diff --git a/deploy/server/kanban/assets/index-DD9Ops83.js b/deploy/server/kanban/assets/index-R6Bmdf99.js similarity index 71% rename from deploy/server/kanban/assets/index-DD9Ops83.js rename to deploy/server/kanban/assets/index-R6Bmdf99.js index b3e90e59ce..1f32e5ae75 100644 --- a/deploy/server/kanban/assets/index-DD9Ops83.js +++ b/deploy/server/kanban/assets/index-R6Bmdf99.js @@ -1,4 +1,4 @@ -var lme=Object.defineProperty;var gL=e=>{throw TypeError(e)};var cme=(e,t,n)=>t in e?lme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pr=(e,t,n)=>cme(e,typeof t!="symbol"?t+"":t,n),dM=(e,t,n)=>t.has(e)||gL("Cannot "+n);var Ae=(e,t,n)=>(dM(e,t,"read from private field"),n?n.call(e):t.get(e)),Tn=(e,t,n)=>t.has(e)?gL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),cn=(e,t,n,r)=>(dM(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),wn=(e,t,n)=>(dM(e,t,"access private method"),n);var Yf=(e,t,n,r)=>({set _(o){cn(e,t,o,n)},get _(){return Ae(e,t,r)}});function UE(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v1(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var XG={exports:{}},WE={},QG={exports:{}},mr={};/** +var sme=Object.defineProperty;var pL=e=>{throw TypeError(e)};var lme=(e,t,n)=>t in e?sme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pr=(e,t,n)=>lme(e,typeof t!="symbol"?t+"":t,n),dM=(e,t,n)=>t.has(e)||pL("Cannot "+n);var Ae=(e,t,n)=>(dM(e,t,"read from private field"),n?n.call(e):t.get(e)),Tn=(e,t,n)=>t.has(e)?pL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),cn=(e,t,n,r)=>(dM(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),wn=(e,t,n)=>(dM(e,t,"access private method"),n);var Yf=(e,t,n,r)=>({set _(o){cn(e,t,o,n)},get _(){return Ae(e,t,r)}});function UE(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function y1(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var YG={exports:{}},WE={},XG={exports:{}},mr={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var lme=Object.defineProperty;var gL=e=>{throw TypeError(e)};var cme=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var y1=Symbol.for("react.element"),ume=Symbol.for("react.portal"),dme=Symbol.for("react.fragment"),fme=Symbol.for("react.strict_mode"),hme=Symbol.for("react.profiler"),pme=Symbol.for("react.provider"),mme=Symbol.for("react.context"),gme=Symbol.for("react.forward_ref"),vme=Symbol.for("react.suspense"),yme=Symbol.for("react.memo"),bme=Symbol.for("react.lazy"),vL=Symbol.iterator;function Sme(e){return e===null||typeof e!="object"?null:(e=vL&&e[vL]||e["@@iterator"],typeof e=="function"?e:null)}var JG={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ZG=Object.assign,eY={};function fv(e,t,n){this.props=e,this.context=t,this.refs=eY,this.updater=n||JG}fv.prototype.isReactComponent={};fv.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")};fv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tY(){}tY.prototype=fv.prototype;function yN(e,t,n){this.props=e,this.context=t,this.refs=eY,this.updater=n||JG}var bN=yN.prototype=new tY;bN.constructor=yN;ZG(bN,fv.prototype);bN.isPureReactComponent=!0;var yL=Array.isArray,nY=Object.prototype.hasOwnProperty,SN={current:null},rY={key:!0,ref:!0,__self:!0,__source:!0};function oY(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)nY.call(t,r)&&!rY.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1{throw TypeError(e)};var cme=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var _me=d,$me=Symbol.for("react.element"),Pme=Symbol.for("react.fragment"),Ome=Object.prototype.hasOwnProperty,Mme=_me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Tme={key:!0,ref:!0,__self:!0,__source:!0};function aY(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Ome.call(t,r)&&!Tme.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:$me,type:e,key:i,ref:a,props:o,_owner:Mme.current}}WE.Fragment=Pme;WE.jsx=aY;WE.jsxs=aY;XG.exports=WE;var N=XG.exports,gI={},sY={exports:{}},Ts={},lY={exports:{}},cY={};/** + */var Eme=d,_me=Symbol.for("react.element"),$me=Symbol.for("react.fragment"),Pme=Object.prototype.hasOwnProperty,Ome=Eme.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mme={key:!0,ref:!0,__self:!0,__source:!0};function iY(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Pme.call(t,r)&&!Mme.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:_me,type:e,key:i,ref:a,props:o,_owner:Ome.current}}WE.Fragment=$me;WE.jsx=iY;WE.jsxs=iY;YG.exports=WE;var N=YG.exports,mI={},aY={exports:{}},Ts={},sY={exports:{}},lY={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var lme=Object.defineProperty;var gL=e=>{throw TypeError(e)};var cme=(e,t,n)=>t * * 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(F,V){var W=F.length;F.push(V);e:for(;0>>1,L=F[K];if(0>>1;Ko(re,W))ieo(G,re)?(F[K]=G,F[ie]=W,K=ie):(F[K]=re,F[ee]=W,K=ee);else if(ieo(G,W))F[K]=G,F[ie]=W,K=ie;else break e}}return V}function o(F,V){var W=F.sortIndex-V.sortIndex;return W!==0?W:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,p=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(c);V!==null;){if(V.callback===null)r(c);else if(V.startTime<=F)r(c),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(c)}}function w(F){if(g=!1,S(F),!m)if(n(l)!==null)m=!0,j(E);else{var V=n(c);V!==null&&k(w,V.startTime-F)}}function E(F,V){m=!1,g&&(g=!1,b(_),_=-1),p=!0;var W=h;try{for(S(V),f=n(l);f!==null&&(!(f.expirationTime>V)||F&&!I());){var K=f.callback;if(typeof K=="function"){f.callback=null,h=f.priorityLevel;var L=K(f.expirationTime<=V);V=e.unstable_now(),typeof L=="function"?f.callback=L:f===n(l)&&r(l),S(V)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var ee=n(c);ee!==null&&k(w,ee.startTime-V),Q=!1}return Q}finally{f=null,h=W,p=!1}}var C=!1,x=null,_=-1,P=5,O=-1;function I(){return!(e.unstable_now()-OF||125K?(F.sortIndex=W,t(c,F),n(l)===null&&F===n(c)&&(g?(b(_),_=-1):g=!0,k(w,W-K))):(F.sortIndex=L,t(l,F),m||p||(m=!0,j(E))),F},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(F){var V=h;return function(){var W=h;h=V;try{return F.apply(this,arguments)}finally{h=W}}}})(cY);lY.exports=cY;var Rme=lY.exports;/** + */(function(e){function t(F,V){var W=F.length;F.push(V);e:for(;0>>1,L=F[K];if(0>>1;Ko(re,W))ieo(G,re)?(F[K]=G,F[ie]=W,K=ie):(F[K]=re,F[ee]=W,K=ee);else if(ieo(G,W))F[K]=G,F[ie]=W,K=ie;else break e}}return V}function o(F,V){var W=F.sortIndex-V.sortIndex;return W!==0?W:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,p=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(c);V!==null;){if(V.callback===null)r(c);else if(V.startTime<=F)r(c),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(c)}}function w(F){if(g=!1,S(F),!m)if(n(l)!==null)m=!0,j(E);else{var V=n(c);V!==null&&k(w,V.startTime-F)}}function E(F,V){m=!1,g&&(g=!1,b(_),_=-1),p=!0;var W=h;try{for(S(V),f=n(l);f!==null&&(!(f.expirationTime>V)||F&&!I());){var K=f.callback;if(typeof K=="function"){f.callback=null,h=f.priorityLevel;var L=K(f.expirationTime<=V);V=e.unstable_now(),typeof L=="function"?f.callback=L:f===n(l)&&r(l),S(V)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var ee=n(c);ee!==null&&k(w,ee.startTime-V),Q=!1}return Q}finally{f=null,h=W,p=!1}}var C=!1,x=null,_=-1,P=5,O=-1;function I(){return!(e.unstable_now()-OF||125K?(F.sortIndex=W,t(c,F),n(l)===null&&F===n(c)&&(g?(b(_),_=-1):g=!0,k(w,W-K))):(F.sortIndex=L,t(l,F),m||p||(m=!0,j(E))),F},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(F){var V=h;return function(){var W=h;h=V;try{return F.apply(this,arguments)}finally{h=W}}}})(lY);sY.exports=lY;var Tme=sY.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var lme=Object.defineProperty;var gL=e=>{throw TypeError(e)};var cme=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ime=d,_s=Rme;function nn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vI=Object.prototype.hasOwnProperty,kme=/^[: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]*$/,SL={},CL={};function Nme(e){return vI.call(CL,e)?!0:vI.call(SL,e)?!1:kme.test(e)?CL[e]=!0:(SL[e]=!0,!1)}function Ame(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 Dme(e,t,n,r){if(t===null||typeof t>"u"||Ame(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 $a(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Di={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Di[e]=new $a(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Di[t]=new $a(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Di[e]=new $a(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Di[e]=new $a(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){Di[e]=new $a(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Di[e]=new $a(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Di[e]=new $a(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Di[e]=new $a(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Di[e]=new $a(e,5,!1,e.toLowerCase(),null,!1,!1)});var wN=/[\-:]([a-z])/g;function xN(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(wN,xN);Di[t]=new $a(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(wN,xN);Di[t]=new $a(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(wN,xN);Di[t]=new $a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Di[e]=new $a(e,1,!1,e.toLowerCase(),null,!1,!1)});Di.xlinkHref=new $a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Di[e]=new $a(e,1,!1,e.toLowerCase(),null,!0,!0)});function EN(e,t,n,r){var o=Di.hasOwnProperty(t)?Di[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gI=Object.prototype.hasOwnProperty,Ime=/^[: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]*$/,yL={},bL={};function kme(e){return gI.call(bL,e)?!0:gI.call(yL,e)?!1:Ime.test(e)?bL[e]=!0:(yL[e]=!0,!1)}function Nme(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 Ame(e,t,n,r){if(t===null||typeof t>"u"||Nme(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 $a(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Di={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Di[e]=new $a(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Di[t]=new $a(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Di[e]=new $a(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Di[e]=new $a(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){Di[e]=new $a(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Di[e]=new $a(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Di[e]=new $a(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Di[e]=new $a(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Di[e]=new $a(e,5,!1,e.toLowerCase(),null,!1,!1)});var SN=/[\-:]([a-z])/g;function CN(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(SN,CN);Di[t]=new $a(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(SN,CN);Di[t]=new $a(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(SN,CN);Di[t]=new $a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Di[e]=new $a(e,1,!1,e.toLowerCase(),null,!1,!1)});Di.xlinkHref=new $a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Di[e]=new $a(e,1,!1,e.toLowerCase(),null,!0,!0)});function wN(e,t,n,r){var o=Di.hasOwnProperty(t)?Di[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ty(e):""}function jme(e){switch(e.tag){case 5:return ty(e.type);case 16:return ty("Lazy");case 13:return ty("Suspense");case 19:return ty("SuspenseList");case 0:case 2:case 15:return e=mM(e.type,!1),e;case 11:return e=mM(e.type.render,!1),e;case 1:return e=mM(e.type,!0),e;default:return""}}function CI(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 Mm:return"Fragment";case Om:return"Portal";case yI:return"Profiler";case _N:return"StrictMode";case bI:return"Suspense";case SI:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fY:return(e.displayName||"Context")+".Consumer";case dY:return(e._context.displayName||"Context")+".Provider";case $N:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case PN:return t=e.displayName||null,t!==null?t:CI(e.type)||"Memo";case Fd:t=e._payload,e=e._init;try{return CI(e(t))}catch{}}return null}function Fme(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 CI(t);case 8:return t===_N?"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 Cf(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pY(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lme(e){var t=pY(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.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 nC(e){e._valueTracker||(e._valueTracker=Lme(e))}function mY(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pY(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ix(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 wI(e,t){var n=t.checked;return Ro({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xL(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cf(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 gY(e,t){t=t.checked,t!=null&&EN(e,"checked",t,!1)}function xI(e,t){gY(e,t);var n=Cf(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")?EI(e,t.type,n):t.hasOwnProperty("defaultValue")&&EI(e,t.type,Cf(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function EL(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 EI(e,t,n){(t!=="number"||Ix(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ny=Array.isArray;function qm(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=rC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rb(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wy={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},Bme=["Webkit","ms","Moz","O"];Object.keys(wy).forEach(function(e){Bme.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wy[t]=wy[e]})});function SY(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wy.hasOwnProperty(e)&&wy[e]?(""+t).trim():t+"px"}function CY(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=SY(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var zme=Ro({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 PI(e,t){if(t){if(zme[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(nn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(nn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(nn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(nn(62))}}function OI(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 MI=null;function ON(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var TI=null,Gm=null,Ym=null;function PL(e){if(e=w1(e)){if(typeof TI!="function")throw Error(nn(280));var t=e.stateNode;t&&(t=YE(t),TI(e.stateNode,e.type,t))}}function wY(e){Gm?Ym?Ym.push(e):Ym=[e]:Gm=e}function xY(){if(Gm){var e=Gm,t=Ym;if(Ym=Gm=null,PL(e),t)for(e=0;e>>=0,e===0?32:31-(Jme(e)/Zme|0)|0}var oC=64,iC=4194304;function ry(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 Dx(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ry(s):(i&=a,i!==0&&(r=ry(i)))}else a=n&~o,a!==0?r=ry(a):i!==0&&(r=ry(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function S1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ul(t),e[t]=n}function rge(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=Ey),DL=" ",jL=!1;function UY(e,t){switch(e){case"keyup":return Rge.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WY(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tm=!1;function kge(e,t){switch(e){case"compositionend":return WY(t);case"keypress":return t.which!==32?null:(jL=!0,DL);case"textInput":return e=t.data,e===DL&&jL?null:e;default:return null}}function Nge(e,t){if(Tm)return e==="compositionend"||!DN&&UY(e,t)?(e=zY(),bw=kN=Yd=null,Tm=!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)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=zL(n)}}function GY(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?GY(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YY(){for(var e=window,t=Ix();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ix(e.document)}return t}function jN(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 Uge(e){var t=YY(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&GY(n.ownerDocument.documentElement,n)){if(r!==null&&jN(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=HL(n,i);var a=HL(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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=document.documentMode,Rm=null,DI=null,$y=null,jI=!1;function UL(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jI||Rm==null||Rm!==Ix(r)||(r=Rm,"selectionStart"in r&&jN(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}),$y&&cb($y,r)||($y=r,r=Lx(DI,"onSelect"),0Nm||(e.current=UI[Nm],UI[Nm]=null,Nm--)}function io(e,t){Nm++,UI[Nm]=e.current,e.current=t}var wf={},ra=If(wf),za=If(!1),ep=wf;function $g(e,t){var n=e.type.contextTypes;if(!n)return wf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ha(e){return e=e.childContextTypes,e!=null}function zx(){ho(za),ho(ra)}function XL(e,t,n){if(ra.current!==wf)throw Error(nn(168));io(ra,t),io(za,n)}function oX(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(nn(108,Fme(e)||"Unknown",o));return Ro({},n,r)}function Hx(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wf,ep=ra.current,io(ra,e),io(za,za.current),!0}function QL(e,t,n){var r=e.stateNode;if(!r)throw Error(nn(169));n?(e=oX(e,t,ep),r.__reactInternalMemoizedMergedChildContext=e,ho(za),ho(ra),io(ra,e)):ho(za),io(za,n)}var Tu=null,XE=!1,MM=!1;function iX(e){Tu===null?Tu=[e]:Tu.push(e)}function tve(e){XE=!0,iX(e)}function kf(){if(!MM&&Tu!==null){MM=!0;var e=0,t=Br;try{var n=Tu;for(Br=1;e>=a,o-=a,ku=1<<32-Ul(t)+o|n<_?(P=x,x=null):P=x.sibling;var O=h(b,x,S[_],w);if(O===null){x===null&&(x=P);break}e&&x&&O.alternate===null&&t(b,x),y=i(O,y,_),C===null?E=O:C.sibling=O,C=O,x=P}if(_===S.length)return n(b,x),xo&&lh(b,_),E;if(x===null){for(;__?(P=x,x=null):P=x.sibling;var I=h(b,x,O.value,w);if(I===null){x===null&&(x=P);break}e&&x&&I.alternate===null&&t(b,x),y=i(I,y,_),C===null?E=I:C.sibling=I,C=I,x=P}if(O.done)return n(b,x),xo&&lh(b,_),E;if(x===null){for(;!O.done;_++,O=S.next())O=f(b,O.value,w),O!==null&&(y=i(O,y,_),C===null?E=O:C.sibling=O,C=O);return xo&&lh(b,_),E}for(x=r(b,x);!O.done;_++,O=S.next())O=p(x,b,_,O.value,w),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?_:O.key),y=i(O,y,_),C===null?E=O:C.sibling=O,C=O);return e&&x.forEach(function(M){return t(b,M)}),xo&&lh(b,_),E}function v(b,y,S,w){if(typeof S=="object"&&S!==null&&S.type===Mm&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case tC:e:{for(var E=S.key,C=y;C!==null;){if(C.key===E){if(E=S.type,E===Mm){if(C.tag===7){n(b,C.sibling),y=o(C,S.props.children),y.return=b,b=y;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Fd&&e7(E)===C.type){n(b,C.sibling),y=o(C,S.props),y.ref=w0(b,C,S),y.return=b,b=y;break e}n(b,C);break}else t(b,C);C=C.sibling}S.type===Mm?(y=Bh(S.props.children,b.mode,w,S.key),y.return=b,b=y):(w=Pw(S.type,S.key,S.props,null,b.mode,w),w.ref=w0(b,y,S),w.return=b,b=w)}return a(b);case Om:e:{for(C=S.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(b,y.sibling),y=o(y,S.children||[]),y.return=b,b=y;break e}else{n(b,y);break}else t(b,y);y=y.sibling}y=jM(S,b.mode,w),y.return=b,b=y}return a(b);case Fd:return C=S._init,v(b,y,C(S._payload),w)}if(ny(S))return m(b,y,S,w);if(v0(S))return g(b,y,S,w);fC(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(b,y.sibling),y=o(y,S),y.return=b,b=y):(n(b,y),y=DM(S,b.mode,w),y.return=b,b=y),a(b)):n(b,y)}return v}var Og=cX(!0),uX=cX(!1),Vx=If(null),Kx=null,jm=null,zN=null;function HN(){zN=jm=Kx=null}function UN(e){var t=Vx.current;ho(Vx),e._currentValue=t}function KI(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 Qm(e,t){Kx=e,zN=jm=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ba=!0),e.firstContext=null)}function sl(e){var t=e._currentValue;if(zN!==e)if(e={context:e,memoizedValue:t,next:null},jm===null){if(Kx===null)throw Error(nn(308));jm=e,Kx.dependencies={lanes:0,firstContext:e}}else jm=jm.next=e;return t}var Ch=null;function WN(e){Ch===null?Ch=[e]:Ch.push(e)}function dX(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,WN(t)):(n.next=o.next,o.next=n),t.interleaved=n,Yu(e,r)}function Yu(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 Ld=!1;function VN(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fX(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 Bu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uf(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Or&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Yu(e,n)}return o=r.interleaved,o===null?(t.next=t,WN(r)):(t.next=o.next,o.next=t),r.interleaved=t,Yu(e,n)}function Cw(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,TN(e,n)}}function t7(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 qx(e,t,n,r){var o=e.updateQueue;Ld=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=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(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;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,g=s;switch(h=t,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(p,f,h);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(p,f,h):m,h==null)break e;f=Ro({},f,h);break e;case 2:Ld=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.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=f):u=u.next=p,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);rp|=a,e.lanes=a,e.memoizedState=f}}function n7(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=RM.transition;RM.transition={};try{e(!1),t()}finally{Br=n,RM.transition=r}}function MX(){return ll().memoizedState}function ive(e,t,n){var r=ff(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},TX(e))RX(t,n);else if(n=dX(e,t,n,r),n!==null){var o=Sa();Wl(n,e,r,o),IX(n,t,r)}}function ave(e,t,n){var r=ff(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(TX(e))RX(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Jl(s,a)){var l=t.interleaved;l===null?(o.next=o,WN(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=dX(e,t,o,r),n!==null&&(o=Sa(),Wl(n,e,r,o),IX(n,t,r))}}function TX(e){var t=e.alternate;return e===To||t!==null&&t===To}function RX(e,t){Py=Yx=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function IX(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,TN(e,n)}}var Xx={readContext:sl,useCallback:Ki,useContext:Ki,useEffect:Ki,useImperativeHandle:Ki,useInsertionEffect:Ki,useLayoutEffect:Ki,useMemo:Ki,useReducer:Ki,useRef:Ki,useState:Ki,useDebugValue:Ki,useDeferredValue:Ki,useTransition:Ki,useMutableSource:Ki,useSyncExternalStore:Ki,useId:Ki,unstable_isNewReconciler:!1},sve={readContext:sl,useCallback:function(e,t){return $c().memoizedState=[e,t===void 0?null:t],e},useContext:sl,useEffect:o7,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xw(4194308,4,EX.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xw(4194308,4,e,t)},useInsertionEffect:function(e,t){return xw(4,2,e,t)},useMemo:function(e,t){var n=$c();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$c();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=ive.bind(null,To,e),[r.memoizedState,e]},useRef:function(e){var t=$c();return e={current:e},t.memoizedState=e},useState:r7,useDebugValue:ZN,useDeferredValue:function(e){return $c().memoizedState=e},useTransition:function(){var e=r7(!1),t=e[0];return e=ove.bind(null,e[1]),$c().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=To,o=$c();if(xo){if(n===void 0)throw Error(nn(407));n=n()}else{if(n=t(),$i===null)throw Error(nn(349));np&30||gX(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,o7(yX.bind(null,r,i,e),[e]),r.flags|=2048,vb(9,vX.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$c(),t=$i.identifierPrefix;if(xo){var n=Nu,r=ku;n=(r&~(1<<32-Ul(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mb++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ty(e):""}function Dme(e){switch(e.tag){case 5:return ty(e.type);case 16:return ty("Lazy");case 13:return ty("Suspense");case 19:return ty("SuspenseList");case 0:case 2:case 15:return e=mM(e.type,!1),e;case 11:return e=mM(e.type.render,!1),e;case 1:return e=mM(e.type,!0),e;default:return""}}function SI(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 Mm:return"Fragment";case Om:return"Portal";case vI:return"Profiler";case xN:return"StrictMode";case yI:return"Suspense";case bI:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dY:return(e.displayName||"Context")+".Consumer";case uY:return(e._context.displayName||"Context")+".Provider";case EN:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _N:return t=e.displayName||null,t!==null?t:SI(e.type)||"Memo";case Fd:t=e._payload,e=e._init;try{return SI(e(t))}catch{}}return null}function jme(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 SI(t);case 8:return t===xN?"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 Cf(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hY(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fme(e){var t=hY(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.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 rC(e){e._valueTracker||(e._valueTracker=Fme(e))}function pY(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hY(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kx(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 CI(e,t){var n=t.checked;return Ro({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function CL(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cf(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 mY(e,t){t=t.checked,t!=null&&wN(e,"checked",t,!1)}function wI(e,t){mY(e,t);var n=Cf(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")?xI(e,t.type,n):t.hasOwnProperty("defaultValue")&&xI(e,t.type,Cf(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wL(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 xI(e,t,n){(t!=="number"||kx(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ny=Array.isArray;function qm(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=oC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rb(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wy={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},Lme=["Webkit","ms","Moz","O"];Object.keys(wy).forEach(function(e){Lme.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wy[t]=wy[e]})});function bY(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wy.hasOwnProperty(e)&&wy[e]?(""+t).trim():t+"px"}function SY(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bY(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bme=Ro({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 $I(e,t){if(t){if(Bme[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(nn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(nn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(nn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(nn(62))}}function PI(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 OI=null;function $N(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var MI=null,Gm=null,Ym=null;function _L(e){if(e=x1(e)){if(typeof MI!="function")throw Error(nn(280));var t=e.stateNode;t&&(t=YE(t),MI(e.stateNode,e.type,t))}}function CY(e){Gm?Ym?Ym.push(e):Ym=[e]:Gm=e}function wY(){if(Gm){var e=Gm,t=Ym;if(Ym=Gm=null,_L(e),t)for(e=0;e>>=0,e===0?32:31-(Qme(e)/Jme|0)|0}var iC=64,aC=4194304;function ry(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 jx(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ry(s):(i&=a,i!==0&&(r=ry(i)))}else a=n&~o,a!==0?r=ry(a):i!==0&&(r=ry(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function C1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ul(t),e[t]=n}function nge(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=Ey),NL=" ",AL=!1;function HY(e,t){switch(e){case"keyup":return Tge.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UY(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tm=!1;function Ige(e,t){switch(e){case"compositionend":return UY(t);case"keypress":return t.which!==32?null:(AL=!0,NL);case"textInput":return e=t.data,e===NL&&AL?null:e;default:return null}}function kge(e,t){if(Tm)return e==="compositionend"||!NN&&HY(e,t)?(e=BY(),Sw=RN=Yd=null,Tm=!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)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=LL(n)}}function qY(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qY(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function GY(){for(var e=window,t=kx();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kx(e.document)}return t}function AN(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 Hge(e){var t=GY(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qY(n.ownerDocument.documentElement,n)){if(r!==null&&AN(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=BL(n,i);var a=BL(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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=document.documentMode,Rm=null,AI=null,$y=null,DI=!1;function zL(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;DI||Rm==null||Rm!==kx(r)||(r=Rm,"selectionStart"in r&&AN(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}),$y&&cb($y,r)||($y=r,r=Bx(AI,"onSelect"),0Nm||(e.current=HI[Nm],HI[Nm]=null,Nm--)}function io(e,t){Nm++,HI[Nm]=e.current,e.current=t}var wf={},ra=If(wf),za=If(!1),ep=wf;function $g(e,t){var n=e.type.contextTypes;if(!n)return wf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ha(e){return e=e.childContextTypes,e!=null}function Hx(){ho(za),ho(ra)}function GL(e,t,n){if(ra.current!==wf)throw Error(nn(168));io(ra,t),io(za,n)}function rX(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(nn(108,jme(e)||"Unknown",o));return Ro({},n,r)}function Ux(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wf,ep=ra.current,io(ra,e),io(za,za.current),!0}function YL(e,t,n){var r=e.stateNode;if(!r)throw Error(nn(169));n?(e=rX(e,t,ep),r.__reactInternalMemoizedMergedChildContext=e,ho(za),ho(ra),io(ra,e)):ho(za),io(za,n)}var Mu=null,XE=!1,MM=!1;function oX(e){Mu===null?Mu=[e]:Mu.push(e)}function eve(e){XE=!0,oX(e)}function kf(){if(!MM&&Mu!==null){MM=!0;var e=0,t=Br;try{var n=Mu;for(Br=1;e>=a,o-=a,Iu=1<<32-Ul(t)+o|n<_?(P=x,x=null):P=x.sibling;var O=h(b,x,S[_],w);if(O===null){x===null&&(x=P);break}e&&x&&O.alternate===null&&t(b,x),y=i(O,y,_),C===null?E=O:C.sibling=O,C=O,x=P}if(_===S.length)return n(b,x),xo&&lh(b,_),E;if(x===null){for(;__?(P=x,x=null):P=x.sibling;var I=h(b,x,O.value,w);if(I===null){x===null&&(x=P);break}e&&x&&I.alternate===null&&t(b,x),y=i(I,y,_),C===null?E=I:C.sibling=I,C=I,x=P}if(O.done)return n(b,x),xo&&lh(b,_),E;if(x===null){for(;!O.done;_++,O=S.next())O=f(b,O.value,w),O!==null&&(y=i(O,y,_),C===null?E=O:C.sibling=O,C=O);return xo&&lh(b,_),E}for(x=r(b,x);!O.done;_++,O=S.next())O=p(x,b,_,O.value,w),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?_:O.key),y=i(O,y,_),C===null?E=O:C.sibling=O,C=O);return e&&x.forEach(function(M){return t(b,M)}),xo&&lh(b,_),E}function v(b,y,S,w){if(typeof S=="object"&&S!==null&&S.type===Mm&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case nC:e:{for(var E=S.key,C=y;C!==null;){if(C.key===E){if(E=S.type,E===Mm){if(C.tag===7){n(b,C.sibling),y=o(C,S.props.children),y.return=b,b=y;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Fd&&JL(E)===C.type){n(b,C.sibling),y=o(C,S.props),y.ref=w0(b,C,S),y.return=b,b=y;break e}n(b,C);break}else t(b,C);C=C.sibling}S.type===Mm?(y=Bh(S.props.children,b.mode,w,S.key),y.return=b,b=y):(w=Ow(S.type,S.key,S.props,null,b.mode,w),w.ref=w0(b,y,S),w.return=b,b=w)}return a(b);case Om:e:{for(C=S.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(b,y.sibling),y=o(y,S.children||[]),y.return=b,b=y;break e}else{n(b,y);break}else t(b,y);y=y.sibling}y=jM(S,b.mode,w),y.return=b,b=y}return a(b);case Fd:return C=S._init,v(b,y,C(S._payload),w)}if(ny(S))return m(b,y,S,w);if(v0(S))return g(b,y,S,w);hC(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(b,y.sibling),y=o(y,S),y.return=b,b=y):(n(b,y),y=DM(S,b.mode,w),y.return=b,b=y),a(b)):n(b,y)}return v}var Og=lX(!0),cX=lX(!1),Kx=If(null),qx=null,jm=null,LN=null;function BN(){LN=jm=qx=null}function zN(e){var t=Kx.current;ho(Kx),e._currentValue=t}function VI(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 Qm(e,t){qx=e,LN=jm=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ba=!0),e.firstContext=null)}function sl(e){var t=e._currentValue;if(LN!==e)if(e={context:e,memoizedValue:t,next:null},jm===null){if(qx===null)throw Error(nn(308));jm=e,qx.dependencies={lanes:0,firstContext:e}}else jm=jm.next=e;return t}var Ch=null;function HN(e){Ch===null?Ch=[e]:Ch.push(e)}function uX(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,HN(t)):(n.next=o.next,o.next=n),t.interleaved=n,Gu(e,r)}function Gu(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 Ld=!1;function UN(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dX(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 Lu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uf(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Or&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Gu(e,n)}return o=r.interleaved,o===null?(t.next=t,HN(r)):(t.next=o.next,o.next=t),r.interleaved=t,Gu(e,n)}function ww(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,ON(e,n)}}function ZL(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Gx(e,t,n,r){var o=e.updateQueue;Ld=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=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(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;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,g=s;switch(h=t,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(p,f,h);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(p,f,h):m,h==null)break e;f=Ro({},f,h);break e;case 2:Ld=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.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=f):u=u.next=p,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);rp|=a,e.lanes=a,e.memoizedState=f}}function e7(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=RM.transition;RM.transition={};try{e(!1),t()}finally{Br=n,RM.transition=r}}function OX(){return ll().memoizedState}function ove(e,t,n){var r=ff(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},MX(e))TX(t,n);else if(n=uX(e,t,n,r),n!==null){var o=Sa();Wl(n,e,r,o),RX(n,t,r)}}function ive(e,t,n){var r=ff(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(MX(e))TX(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Jl(s,a)){var l=t.interleaved;l===null?(o.next=o,HN(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=uX(e,t,o,r),n!==null&&(o=Sa(),Wl(n,e,r,o),RX(n,t,r))}}function MX(e){var t=e.alternate;return e===To||t!==null&&t===To}function TX(e,t){Py=Xx=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function RX(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ON(e,n)}}var Qx={readContext:sl,useCallback:Ki,useContext:Ki,useEffect:Ki,useImperativeHandle:Ki,useInsertionEffect:Ki,useLayoutEffect:Ki,useMemo:Ki,useReducer:Ki,useRef:Ki,useState:Ki,useDebugValue:Ki,useDeferredValue:Ki,useTransition:Ki,useMutableSource:Ki,useSyncExternalStore:Ki,useId:Ki,unstable_isNewReconciler:!1},ave={readContext:sl,useCallback:function(e,t){return $c().memoizedState=[e,t===void 0?null:t],e},useContext:sl,useEffect:n7,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ew(4194308,4,xX.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ew(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ew(4,2,e,t)},useMemo:function(e,t){var n=$c();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$c();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=ove.bind(null,To,e),[r.memoizedState,e]},useRef:function(e){var t=$c();return e={current:e},t.memoizedState=e},useState:t7,useDebugValue:QN,useDeferredValue:function(e){return $c().memoizedState=e},useTransition:function(){var e=t7(!1),t=e[0];return e=rve.bind(null,e[1]),$c().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=To,o=$c();if(xo){if(n===void 0)throw Error(nn(407));n=n()}else{if(n=t(),$i===null)throw Error(nn(349));np&30||mX(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,n7(vX.bind(null,r,i,e),[e]),r.flags|=2048,vb(9,gX.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$c(),t=$i.identifierPrefix;if(xo){var n=ku,r=Iu;n=(r&~(1<<32-Ul(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mb++,0<\/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[Ic]=t,e[fb]=r,HX(e,t,!1,!1),t.stateNode=e;e:{switch(a=OI(n,r),n){case"dialog":lo("cancel",e),lo("close",e),o=r;break;case"iframe":case"object":case"embed":lo("load",e),o=r;break;case"video":case"audio":for(o=0;oRg&&(t.flags|=128,r=!0,x0(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gx(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),x0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xo)return qi(t),null}else 2*Xo()-i.renderingStartTime>Rg&&n!==1073741824&&(t.flags|=128,r=!0,x0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xo(),t.sibling=null,n=Oo.current,io(Oo,r?n&1|2:n&1),t):(qi(t),null);case 22:case 23:return i5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ps&1073741824&&(qi(t),t.subtreeFlags&6&&(t.flags|=8192)):qi(t),null;case 24:return null;case 25:return null}throw Error(nn(156,t.tag))}function mve(e,t){switch(LN(t),t.tag){case 1:return Ha(t.type)&&zx(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mg(),ho(za),ho(ra),GN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qN(t),null;case 13:if(ho(Oo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(nn(340));Pg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ho(Oo),null;case 4:return Mg(),null;case 10:return UN(t.type._context),null;case 22:case 23:return i5(),null;case 24:return null;default:return null}}var pC=!1,Zi=!1,gve=typeof WeakSet=="function"?WeakSet:Set,On=null;function Fm(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Lo(e,t,r)}else n.current=null}function tk(e,t,n){try{n()}catch(r){Lo(e,t,r)}}var m7=!1;function vve(e,t){if(FI=jx,e=YY(),jN(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(LI={focusedElem:e,selectionRange:n},jx=!1,On=t;On!==null;)if(t=On,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,On=e;else for(;On!==null;){t=On;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 g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ol(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(nn(163))}}catch(w){Lo(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,On=e;break}On=t.return}return m=m7,m7=!1,m}function Oy(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tk(t,n,i)}o=o.next}while(o!==r)}}function ZE(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 nk(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 VX(e){var t=e.alternate;t!==null&&(e.alternate=null,VX(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ic],delete t[fb],delete t[HI],delete t[Zge],delete t[eve])),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 KX(e){return e.tag===5||e.tag===3||e.tag===4}function g7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||KX(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 rk(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=Bx));else if(r!==4&&(e=e.child,e!==null))for(rk(e,t,n),e=e.sibling;e!==null;)rk(e,t,n),e=e.sibling}function ok(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(ok(e,t,n),e=e.sibling;e!==null;)ok(e,t,n),e=e.sibling}var ki=null,Rl=!1;function Ed(e,t,n){for(n=n.child;n!==null;)qX(e,t,n),n=n.sibling}function qX(e,t,n){if(Hc&&typeof Hc.onCommitFiberUnmount=="function")try{Hc.onCommitFiberUnmount(VE,n)}catch{}switch(n.tag){case 5:Zi||Fm(n,t);case 6:var r=ki,o=Rl;ki=null,Ed(e,t,n),ki=r,Rl=o,ki!==null&&(Rl?(e=ki,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ki.removeChild(n.stateNode));break;case 18:ki!==null&&(Rl?(e=ki,n=n.stateNode,e.nodeType===8?OM(e.parentNode,n):e.nodeType===1&&OM(e,n),sb(e)):OM(ki,n.stateNode));break;case 4:r=ki,o=Rl,ki=n.stateNode.containerInfo,Rl=!0,Ed(e,t,n),ki=r,Rl=o;break;case 0:case 11:case 14:case 15:if(!Zi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&tk(n,t,a),o=o.next}while(o!==r)}Ed(e,t,n);break;case 1:if(!Zi&&(Fm(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Lo(n,t,s)}Ed(e,t,n);break;case 21:Ed(e,t,n);break;case 22:n.mode&1?(Zi=(r=Zi)||n.memoizedState!==null,Ed(e,t,n),Zi=r):Ed(e,t,n);break;default:Ed(e,t,n)}}function v7(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gve),t.forEach(function(r){var o=$ve.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Xo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bve(r/1960))-r,10e?16:e,Xd===null)var r=!1;else{if(e=Xd,Xd=null,Zx=0,Or&6)throw Error(nn(331));var o=Or;for(Or|=4,On=e.current;On!==null;){var i=On,a=i.child;if(On.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lXo()-r5?Lh(e,0):n5|=n),Ua(e,t)}function tQ(e,t){t===0&&(e.mode&1?(t=iC,iC<<=1,!(iC&130023424)&&(iC=4194304)):t=1);var n=Sa();e=Yu(e,t),e!==null&&(S1(e,t,n),Ua(e,n))}function _ve(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tQ(e,n)}function $ve(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(nn(314))}r!==null&&r.delete(t),tQ(e,n)}var nQ;nQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||za.current)Ba=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ba=!1,hve(e,t,n);Ba=!!(e.flags&131072)}else Ba=!1,xo&&t.flags&1048576&&aX(t,Wx,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ew(e,t),e=t.pendingProps;var o=$g(t,ra.current);Qm(t,n),o=XN(null,t,r,e,o,n);var i=QN();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ha(r)?(i=!0,Hx(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,VN(t),o.updater=JE,t.stateNode=o,o._reactInternals=t,GI(t,r,e,n),t=QI(null,t,r,!0,i,n)):(t.tag=0,xo&&i&&FN(t),ha(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ew(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ove(r),e=Ol(r,e),o){case 0:t=XI(null,t,r,e,n);break e;case 1:t=f7(null,t,r,e,n);break e;case 11:t=u7(null,t,r,e,n);break e;case 14:t=d7(null,t,r,Ol(r.type,e),n);break e}throw Error(nn(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),XI(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),f7(e,t,r,o,n);case 3:e:{if(LX(t),e===null)throw Error(nn(387));r=t.pendingProps,i=t.memoizedState,o=i.element,fX(e,t),qx(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Tg(Error(nn(423)),t),t=h7(e,t,r,n,o);break e}else if(r!==o){o=Tg(Error(nn(424)),t),t=h7(e,t,r,n,o);break e}else for(bs=cf(t.stateNode.containerInfo.firstChild),xs=t,xo=!0,Al=null,n=uX(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pg(),r===o){t=Xu(e,t,n);break e}ha(e,t,r,n)}t=t.child}return t;case 5:return hX(t),e===null&&VI(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,BI(r,o)?a=null:i!==null&&BI(r,i)&&(t.flags|=32),FX(e,t),ha(e,t,a,n),t.child;case 6:return e===null&&VI(t),null;case 13:return BX(e,t,n);case 4:return KN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Og(t,null,r,n):ha(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),u7(e,t,r,o,n);case 7:return ha(e,t,t.pendingProps,n),t.child;case 8:return ha(e,t,t.pendingProps.children,n),t.child;case 12:return ha(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,io(Vx,r._currentValue),r._currentValue=a,i!==null)if(Jl(i.value,a)){if(i.children===o.children&&!za.current){t=Xu(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Bu(-1,n&-n),l.tag=2;var c=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),KI(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(nn(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),KI(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ha(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Qm(t,n),o=sl(o),r=r(o),t.flags|=1,ha(e,t,r,n),t.child;case 14:return r=t.type,o=Ol(r,t.pendingProps),o=Ol(r.type,o),d7(e,t,r,o,n);case 15:return DX(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),Ew(e,t),t.tag=1,Ha(r)?(e=!0,Hx(t)):e=!1,Qm(t,n),kX(t,r,o),GI(t,r,o,n),QI(null,t,r,!0,e,n);case 19:return zX(e,t,n);case 22:return jX(e,t,n)}throw Error(nn(156,t.tag))};function rQ(e,t){return TY(e,t)}function Pve(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 el(e,t,n,r){return new Pve(e,t,n,r)}function s5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ove(e){if(typeof e=="function")return s5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$N)return 11;if(e===PN)return 14}return 2}function hf(e,t){var n=e.alternate;return n===null?(n=el(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 Pw(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")s5(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mm:return Bh(n.children,o,i,t);case _N:a=8,o|=8;break;case yI:return e=el(12,n,t,o|2),e.elementType=yI,e.lanes=i,e;case bI:return e=el(13,n,t,o),e.elementType=bI,e.lanes=i,e;case SI:return e=el(19,n,t,o),e.elementType=SI,e.lanes=i,e;case hY:return t_(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dY:a=10;break e;case fY:a=9;break e;case $N:a=11;break e;case PN:a=14;break e;case Fd:a=16,r=null;break e}throw Error(nn(130,e==null?e:typeof e,""))}return t=el(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Bh(e,t,n,r){return e=el(7,e,r,t),e.lanes=n,e}function t_(e,t,n,r){return e=el(22,e,r,t),e.elementType=hY,e.lanes=n,e.stateNode={isHidden:!1},e}function DM(e,t,n){return e=el(6,e,null,t),e.lanes=n,e}function jM(e,t,n){return t=el(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mve(e,t,n,r,o){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=vM(0),this.expirationTimes=vM(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vM(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function l5(e,t,n,r,o,i,a,s,l){return e=new Mve(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=el(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},VN(i),e}function Tve(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sQ)}catch(e){console.error(e)}}sQ(),sY.exports=Ts;var hi=sY.exports;const bb=Fr(hi),lQ=UE({__proto__:null,default:bb},[hi]);var _7=hi;gI.createRoot=_7.createRoot,gI.hydrateRoot=_7.hydrateRoot;const Ave={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},$7=e=>{let t;const n=new Set,r=(u,f)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const p=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(m=>m(t,p))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Ave?"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,o,l);return l},Dve=e=>e?$7(e):$7;var cQ={exports:{}},uQ={},dQ={exports:{}},fQ={};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function NM(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function GI(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cve=typeof WeakMap=="function"?WeakMap:Map;function kX(e,t,n){n=Lu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zx||(Zx=!0,ok=r),GI(e,t)},n}function NX(e,t,n){n=Lu(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){GI(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){GI(e,t),typeof r!="function"&&(df===null?df=new Set([this]):df.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function i7(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cve;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=xve.bind(null,e,t,n),t.then(e,e))}function a7(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 s7(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=Lu(-1,1),t.tag=2,uf(n,t,1))),n.lanes|=1),e)}var uve=sd.ReactCurrentOwner,Ba=!1;function ha(e,t,n,r){t.child=e===null?cX(t,null,n,r):Og(t,e.child,n,r)}function l7(e,t,n,r,o){n=n.render;var i=t.ref;return Qm(t,o),r=GN(e,t,n,r,i,o),n=YN(),e!==null&&!Ba?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Yu(e,t,o)):(xo&&n&&DN(t),t.flags|=1,ha(e,t,r,o),t.child)}function c7(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!i5(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,AX(e,t,i,r,o)):(e=Ow(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:cb,n(a,r)&&e.ref===t.ref)return Yu(e,t,o)}return t.flags|=1,e=hf(i,r),e.ref=t.ref,e.return=t,t.child=e}function AX(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(cb(i,r)&&e.ref===t.ref)if(Ba=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ba=!0);else return t.lanes=e.lanes,Yu(e,t,o)}return YI(e,t,n,r,o)}function DX(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},io(Lm,ps),ps|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,io(Lm,ps),ps|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,io(Lm,ps),ps|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,io(Lm,ps),ps|=r;return ha(e,t,o,n),t.child}function jX(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function YI(e,t,n,r,o){var i=Ha(n)?ep:ra.current;return i=$g(t,i),Qm(t,o),n=GN(e,t,n,r,i,o),r=YN(),e!==null&&!Ba?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Yu(e,t,o)):(xo&&r&&DN(t),t.flags|=1,ha(e,t,n,o),t.child)}function u7(e,t,n,r,o){if(Ha(n)){var i=!0;Ux(t)}else i=!1;if(Qm(t,o),t.stateNode===null)_w(e,t),IX(t,n,r),qI(t,n,r,o),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=sl(c):(c=Ha(n)?ep:ra.current,c=$g(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&o7(t,a,r,c),Ld=!1;var h=t.memoizedState;a.state=h,Gx(t,r,a,o),l=t.memoizedState,s!==r||h!==l||za.current||Ld?(typeof u=="function"&&(KI(t,n,u,r),l=t.memoizedState),(s=Ld||r7(t,n,s,r,h,l,c))?(f||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,dX(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ol(t.type,s),a.props=c,f=t.pendingProps,h=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=sl(l):(l=Ha(n)?ep:ra.current,l=$g(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||h!==l)&&o7(t,a,r,l),Ld=!1,h=t.memoizedState,a.state=h,Gx(t,r,a,o);var m=t.memoizedState;s!==f||h!==m||za.current||Ld?(typeof p=="function"&&(KI(t,n,p,r),m=t.memoizedState),(c=Ld||r7(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 XI(e,t,n,r,i,o)}function XI(e,t,n,r,o,i){jX(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&YL(t,n,!1),Yu(e,t,i);r=t.stateNode,uve.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Og(t,e.child,null,i),t.child=Og(t,null,s,i)):ha(e,t,s,i),t.memoizedState=r.state,o&&YL(t,n,!0),t.child}function FX(e){var t=e.stateNode;t.pendingContext?GL(e,t.pendingContext,t.pendingContext!==t.context):t.context&&GL(e,t.context,!1),WN(e,t.containerInfo)}function d7(e,t,n,r,o){return Pg(),FN(o),t.flags|=256,ha(e,t,n,r),t.child}var QI={dehydrated:null,treeContext:null,retryLane:0};function JI(e){return{baseLanes:e,cachePool:null,transitions:null}}function LX(e,t,n){var r=t.pendingProps,o=Oo.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),io(Oo,o&1),e===null)return WI(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,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=t_(a,r,0,null),e=Bh(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=JI(n),t.memoizedState=QI,e):JN(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return dve(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=hf(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=hf(s,i):(i=Bh(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?JI(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=QI,r}return i=e.child,e=i.sibling,r=hf(i,{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 JN(e,t){return t=t_({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function pC(e,t,n,r){return r!==null&&FN(r),Og(t,e.child,null,n),e=JN(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dve(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=NM(Error(nn(422))),pC(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=t_({mode:"visible",children:r.children},o,0,null),i=Bh(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Og(t,e.child,null,a),t.child.memoizedState=JI(a),t.memoizedState=QI,i);if(!(t.mode&1))return pC(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(nn(419)),r=NM(i,r,void 0),pC(e,t,a,r)}if(s=(a&e.childLanes)!==0,Ba||s){if(r=$i,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Gu(e,o),Wl(r,e,o,-1))}return o5(),r=NM(Error(nn(421))),pC(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Eve.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,bs=cf(o.nextSibling),xs=t,xo=!0,Al=null,e!==null&&(Gs[Ys++]=Iu,Gs[Ys++]=ku,Gs[Ys++]=tp,Iu=e.id,ku=e.overflow,tp=t),t=JN(t,r.children),t.flags|=4096,t)}function f7(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),VI(e.return,t,n)}function AM(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function BX(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ha(e,t,r.children,n),r=Oo.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&&f7(e,n,t);else if(e.tag===19)f7(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(io(Oo,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Yx(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),AM(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Yx(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}AM(t,!0,n,null,i);break;case"together":AM(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _w(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yu(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rp|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(nn(153));if(t.child!==null){for(e=t.child,n=hf(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hf(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fve(e,t,n){switch(t.tag){case 3:FX(t),Pg();break;case 5:fX(t);break;case 1:Ha(t.type)&&Ux(t);break;case 4:WN(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;io(Kx,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(io(Oo,Oo.current&1),t.flags|=128,null):n&t.child.childLanes?LX(e,t,n):(io(Oo,Oo.current&1),e=Yu(e,t,n),e!==null?e.sibling:null);io(Oo,Oo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return BX(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),io(Oo,Oo.current),r)break;return null;case 22:case 23:return t.lanes=0,DX(e,t,n)}return Yu(e,t,n)}var zX,ZI,HX,UX;zX=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}};ZI=function(){};HX=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,wh(Uc.current);var i=null;switch(n){case"input":o=CI(e,o),r=CI(e,r),i=[];break;case"select":o=Ro({},o,{value:void 0}),r=Ro({},r,{value:void 0}),i=[];break;case"textarea":o=EI(e,o),r=EI(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zx)}$I(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(nb.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=o!=null?o[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||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(nb.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&lo("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};UX=function(e,t,n,r){n!==r&&(t.flags|=4)};function x0(e,t){if(!xo)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 qi(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hve(e,t,n){var r=t.pendingProps;switch(jN(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qi(t),null;case 1:return Ha(t.type)&&Hx(),qi(t),null;case 3:return r=t.stateNode,Mg(),ho(za),ho(ra),KN(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(fC(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Al!==null&&(sk(Al),Al=null))),ZI(e,t),qi(t),null;case 5:VN(t);var o=wh(pb.current);if(n=t.type,e!==null&&t.stateNode!=null)HX(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(nn(166));return qi(t),null}if(e=wh(Uc.current),fC(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ic]=t,r[fb]=i,e=(t.mode&1)!==0,n){case"dialog":lo("cancel",r),lo("close",r);break;case"iframe":case"object":case"embed":lo("load",r);break;case"video":case"audio":for(o=0;o<\/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[Ic]=t,e[fb]=r,zX(e,t,!1,!1),t.stateNode=e;e:{switch(a=PI(n,r),n){case"dialog":lo("cancel",e),lo("close",e),o=r;break;case"iframe":case"object":case"embed":lo("load",e),o=r;break;case"video":case"audio":for(o=0;oRg&&(t.flags|=128,r=!0,x0(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yx(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),x0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xo)return qi(t),null}else 2*Xo()-i.renderingStartTime>Rg&&n!==1073741824&&(t.flags|=128,r=!0,x0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xo(),t.sibling=null,n=Oo.current,io(Oo,r?n&1|2:n&1),t):(qi(t),null);case 22:case 23:return r5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ps&1073741824&&(qi(t),t.subtreeFlags&6&&(t.flags|=8192)):qi(t),null;case 24:return null;case 25:return null}throw Error(nn(156,t.tag))}function pve(e,t){switch(jN(t),t.tag){case 1:return Ha(t.type)&&Hx(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mg(),ho(za),ho(ra),KN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return VN(t),null;case 13:if(ho(Oo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(nn(340));Pg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ho(Oo),null;case 4:return Mg(),null;case 10:return zN(t.type._context),null;case 22:case 23:return r5(),null;case 24:return null;default:return null}}var mC=!1,Zi=!1,mve=typeof WeakSet=="function"?WeakSet:Set,On=null;function Fm(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Lo(e,t,r)}else n.current=null}function ek(e,t,n){try{n()}catch(r){Lo(e,t,r)}}var h7=!1;function gve(e,t){if(jI=Fx,e=GY(),AN(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(FI={focusedElem:e,selectionRange:n},Fx=!1,On=t;On!==null;)if(t=On,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,On=e;else for(;On!==null;){t=On;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 g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ol(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(nn(163))}}catch(w){Lo(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,On=e;break}On=t.return}return m=h7,h7=!1,m}function Oy(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ek(t,n,i)}o=o.next}while(o!==r)}}function ZE(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 tk(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 WX(e){var t=e.alternate;t!==null&&(e.alternate=null,WX(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ic],delete t[fb],delete t[zI],delete t[Jge],delete t[Zge])),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 VX(e){return e.tag===5||e.tag===3||e.tag===4}function p7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VX(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 nk(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=zx));else if(r!==4&&(e=e.child,e!==null))for(nk(e,t,n),e=e.sibling;e!==null;)nk(e,t,n),e=e.sibling}function rk(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(rk(e,t,n),e=e.sibling;e!==null;)rk(e,t,n),e=e.sibling}var ki=null,Rl=!1;function Ed(e,t,n){for(n=n.child;n!==null;)KX(e,t,n),n=n.sibling}function KX(e,t,n){if(Hc&&typeof Hc.onCommitFiberUnmount=="function")try{Hc.onCommitFiberUnmount(VE,n)}catch{}switch(n.tag){case 5:Zi||Fm(n,t);case 6:var r=ki,o=Rl;ki=null,Ed(e,t,n),ki=r,Rl=o,ki!==null&&(Rl?(e=ki,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ki.removeChild(n.stateNode));break;case 18:ki!==null&&(Rl?(e=ki,n=n.stateNode,e.nodeType===8?OM(e.parentNode,n):e.nodeType===1&&OM(e,n),sb(e)):OM(ki,n.stateNode));break;case 4:r=ki,o=Rl,ki=n.stateNode.containerInfo,Rl=!0,Ed(e,t,n),ki=r,Rl=o;break;case 0:case 11:case 14:case 15:if(!Zi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&ek(n,t,a),o=o.next}while(o!==r)}Ed(e,t,n);break;case 1:if(!Zi&&(Fm(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Lo(n,t,s)}Ed(e,t,n);break;case 21:Ed(e,t,n);break;case 22:n.mode&1?(Zi=(r=Zi)||n.memoizedState!==null,Ed(e,t,n),Zi=r):Ed(e,t,n);break;default:Ed(e,t,n)}}function m7(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mve),t.forEach(function(r){var o=_ve.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Xo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yve(r/1960))-r,10e?16:e,Xd===null)var r=!1;else{if(e=Xd,Xd=null,e2=0,Or&6)throw Error(nn(331));var o=Or;for(Or|=4,On=e.current;On!==null;){var i=On,a=i.child;if(On.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lXo()-t5?Lh(e,0):e5|=n),Ua(e,t)}function eQ(e,t){t===0&&(e.mode&1?(t=aC,aC<<=1,!(aC&130023424)&&(aC=4194304)):t=1);var n=Sa();e=Gu(e,t),e!==null&&(C1(e,t,n),Ua(e,n))}function Eve(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eQ(e,n)}function _ve(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(nn(314))}r!==null&&r.delete(t),eQ(e,n)}var tQ;tQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||za.current)Ba=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ba=!1,fve(e,t,n);Ba=!!(e.flags&131072)}else Ba=!1,xo&&t.flags&1048576&&iX(t,Vx,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_w(e,t),e=t.pendingProps;var o=$g(t,ra.current);Qm(t,n),o=GN(null,t,r,e,o,n);var i=YN();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ha(r)?(i=!0,Ux(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,UN(t),o.updater=JE,t.stateNode=o,o._reactInternals=t,qI(t,r,e,n),t=XI(null,t,r,!0,i,n)):(t.tag=0,xo&&i&&DN(t),ha(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_w(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Pve(r),e=Ol(r,e),o){case 0:t=YI(null,t,r,e,n);break e;case 1:t=u7(null,t,r,e,n);break e;case 11:t=l7(null,t,r,e,n);break e;case 14:t=c7(null,t,r,Ol(r.type,e),n);break e}throw Error(nn(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),YI(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),u7(e,t,r,o,n);case 3:e:{if(FX(t),e===null)throw Error(nn(387));r=t.pendingProps,i=t.memoizedState,o=i.element,dX(e,t),Gx(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Tg(Error(nn(423)),t),t=d7(e,t,r,n,o);break e}else if(r!==o){o=Tg(Error(nn(424)),t),t=d7(e,t,r,n,o);break e}else for(bs=cf(t.stateNode.containerInfo.firstChild),xs=t,xo=!0,Al=null,n=cX(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pg(),r===o){t=Yu(e,t,n);break e}ha(e,t,r,n)}t=t.child}return t;case 5:return fX(t),e===null&&WI(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,LI(r,o)?a=null:i!==null&&LI(r,i)&&(t.flags|=32),jX(e,t),ha(e,t,a,n),t.child;case 6:return e===null&&WI(t),null;case 13:return LX(e,t,n);case 4:return WN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Og(t,null,r,n):ha(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),l7(e,t,r,o,n);case 7:return ha(e,t,t.pendingProps,n),t.child;case 8:return ha(e,t,t.pendingProps.children,n),t.child;case 12:return ha(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,io(Kx,r._currentValue),r._currentValue=a,i!==null)if(Jl(i.value,a)){if(i.children===o.children&&!za.current){t=Yu(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Lu(-1,n&-n),l.tag=2;var c=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),VI(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(nn(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),VI(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ha(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Qm(t,n),o=sl(o),r=r(o),t.flags|=1,ha(e,t,r,n),t.child;case 14:return r=t.type,o=Ol(r,t.pendingProps),o=Ol(r.type,o),c7(e,t,r,o,n);case 15:return AX(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),_w(e,t),t.tag=1,Ha(r)?(e=!0,Ux(t)):e=!1,Qm(t,n),IX(t,r,o),qI(t,r,o,n),XI(null,t,r,!0,e,n);case 19:return BX(e,t,n);case 22:return DX(e,t,n)}throw Error(nn(156,t.tag))};function nQ(e,t){return MY(e,t)}function $ve(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 el(e,t,n,r){return new $ve(e,t,n,r)}function i5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pve(e){if(typeof e=="function")return i5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===EN)return 11;if(e===_N)return 14}return 2}function hf(e,t){var n=e.alternate;return n===null?(n=el(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 Ow(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")i5(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mm:return Bh(n.children,o,i,t);case xN:a=8,o|=8;break;case vI:return e=el(12,n,t,o|2),e.elementType=vI,e.lanes=i,e;case yI:return e=el(13,n,t,o),e.elementType=yI,e.lanes=i,e;case bI:return e=el(19,n,t,o),e.elementType=bI,e.lanes=i,e;case fY:return t_(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uY:a=10;break e;case dY:a=9;break e;case EN:a=11;break e;case _N:a=14;break e;case Fd:a=16,r=null;break e}throw Error(nn(130,e==null?e:typeof e,""))}return t=el(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Bh(e,t,n,r){return e=el(7,e,r,t),e.lanes=n,e}function t_(e,t,n,r){return e=el(22,e,r,t),e.elementType=fY,e.lanes=n,e.stateNode={isHidden:!1},e}function DM(e,t,n){return e=el(6,e,null,t),e.lanes=n,e}function jM(e,t,n){return t=el(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ove(e,t,n,r,o){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=vM(0),this.expirationTimes=vM(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vM(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function a5(e,t,n,r,o,i,a,s,l){return e=new Ove(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=el(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},UN(i),e}function Mve(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aQ)}catch(e){console.error(e)}}aQ(),aY.exports=Ts;var _i=aY.exports;const bb=Fr(_i),sQ=UE({__proto__:null,default:bb},[_i]);var x7=_i;mI.createRoot=x7.createRoot,mI.hydrateRoot=x7.hydrateRoot;const Nve={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},E7=e=>{let t;const n=new Set,r=(u,f)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const p=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(m=>m(t,p))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Nve?"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,o,l);return l},Ave=e=>e?E7(e):E7;var lQ={exports:{}},cQ={},uQ={exports:{}},dQ={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -45,7 +45,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ig=d;function jve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fve=typeof Object.is=="function"?Object.is:jve,Lve=Ig.useState,Bve=Ig.useEffect,zve=Ig.useLayoutEffect,Hve=Ig.useDebugValue;function Uve(e,t){var n=t(),r=Lve({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return zve(function(){o.value=n,o.getSnapshot=t,FM(o)&&i({inst:o})},[e,n,t]),Bve(function(){return FM(o)&&i({inst:o}),e(function(){FM(o)&&i({inst:o})})},[e]),Hve(n),n}function FM(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fve(e,n)}catch{return!0}}function Wve(e,t){return t()}var Vve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Wve:Uve;fQ.useSyncExternalStore=Ig.useSyncExternalStore!==void 0?Ig.useSyncExternalStore:Vve;dQ.exports=fQ;var hQ=dQ.exports;/** + */var Ig=d;function Dve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jve=typeof Object.is=="function"?Object.is:Dve,Fve=Ig.useState,Lve=Ig.useEffect,Bve=Ig.useLayoutEffect,zve=Ig.useDebugValue;function Hve(e,t){var n=t(),r=Fve({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Bve(function(){o.value=n,o.getSnapshot=t,FM(o)&&i({inst:o})},[e,n,t]),Lve(function(){return FM(o)&&i({inst:o}),e(function(){FM(o)&&i({inst:o})})},[e]),zve(n),n}function FM(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jve(e,n)}catch{return!0}}function Uve(e,t){return t()}var Wve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Uve:Hve;dQ.useSyncExternalStore=Ig.useSyncExternalStore!==void 0?Ig.useSyncExternalStore:Wve;uQ.exports=dQ;var fQ=uQ.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -53,37 +53,37 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var a_=d,Kve=hQ;function qve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gve=typeof Object.is=="function"?Object.is:qve,Yve=Kve.useSyncExternalStore,Xve=a_.useRef,Qve=a_.useEffect,Jve=a_.useMemo,Zve=a_.useDebugValue;uQ.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Xve(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Jve(function(){function l(p){if(!c){if(c=!0,u=p,p=r(p),o!==void 0&&a.hasValue){var m=a.value;if(o(m,p))return f=m}return f=p}if(m=f,Gve(u,p))return m;var g=r(p);return o!==void 0&&o(m,g)?m:(u=p,f=g)}var c=!1,u,f,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,o]);var s=Yve(e,i[0],i[1]);return Qve(function(){a.hasValue=!0,a.value=s},[s]),Zve(s),s};cQ.exports=uQ;var e0e=cQ.exports;const t0e=Fr(e0e),pQ={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:n0e}=de,{useSyncExternalStoreWithSelector:r0e}=t0e;let P7=!1;const o0e=e=>e;function i0e(e,t=o0e,n){(pQ?"open":void 0)!=="production"&&n&&!P7&&(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"),P7=!0);const r=r0e(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return n0e(r),r}const O7=e=>{(pQ?"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"?Dve(e):e,n=(r,o)=>i0e(t,r,o);return Object.assign(n,t),n},hl=e=>e?O7(e):O7,Ow={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},ck=new Map,vC=e=>{const t=ck.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},a0e=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=ck.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return ck.set(n.name,o),{type:"tracked",store:e,...o}},s0e=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=(i??(Ow?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(Ow?"open":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...f}=a0e(s,c,l);let h=!0;o.setState=(g,v,b)=>{const y=n(g,v);if(!h)return y;const S=b===void 0?{type:a||"anonymous"}:typeof b=="string"?{type:b}:b;return s===void 0?(u==null||u.send(S,r()),y):(u==null||u.send({...S,type:`${s}/${S.type}`},{...vC(l.name),[s]:o.getState()}),y)};const p=(...g)=>{const v=h;h=!1,n(...g),h=v},m=e(o.setState,r,o);if(f.type==="untracked"?u==null||u.init(m):(f.stores[f.store]=o,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,v])=>[g,g===f.store?m:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let g=!1;const v=o.dispatch;o.dispatch=(...b)=>{(Ow?"open":void 0)!=="production"&&b[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...b)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return LM(g.payload,b=>{if(b.type==="__setState"){if(s===void 0){p(b.state);return}Object.keys(b.state).length!==1&&console.error(` + */var a_=d,Vve=fQ;function Kve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qve=typeof Object.is=="function"?Object.is:Kve,Gve=Vve.useSyncExternalStore,Yve=a_.useRef,Xve=a_.useEffect,Qve=a_.useMemo,Jve=a_.useDebugValue;cQ.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Yve(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Qve(function(){function l(p){if(!c){if(c=!0,u=p,p=r(p),o!==void 0&&a.hasValue){var m=a.value;if(o(m,p))return f=m}return f=p}if(m=f,qve(u,p))return m;var g=r(p);return o!==void 0&&o(m,g)?m:(u=p,f=g)}var c=!1,u,f,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,o]);var s=Gve(e,i[0],i[1]);return Xve(function(){a.hasValue=!0,a.value=s},[s]),Jve(s),s};lQ.exports=cQ;var Zve=lQ.exports;const e0e=Fr(Zve),hQ={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:t0e}=de,{useSyncExternalStoreWithSelector:n0e}=e0e;let _7=!1;const r0e=e=>e;function o0e(e,t=r0e,n){(hQ?"open":void 0)!=="production"&&n&&!_7&&(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"),_7=!0);const r=n0e(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return t0e(r),r}const $7=e=>{(hQ?"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"?Ave(e):e,n=(r,o)=>o0e(t,r,o);return Object.assign(n,t),n},hl=e=>e?$7(e):$7,Mw={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},lk=new Map,yC=e=>{const t=lk.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},i0e=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=lk.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return lk.set(n.name,o),{type:"tracked",store:e,...o}},a0e=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=(i??(Mw?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(Mw?"open":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...f}=i0e(s,c,l);let h=!0;o.setState=(g,v,b)=>{const y=n(g,v);if(!h)return y;const S=b===void 0?{type:a||"anonymous"}:typeof b=="string"?{type:b}:b;return s===void 0?(u==null||u.send(S,r()),y):(u==null||u.send({...S,type:`${s}/${S.type}`},{...yC(l.name),[s]:o.getState()}),y)};const p=(...g)=>{const v=h;h=!1,n(...g),h=v},m=e(o.setState,r,o);if(f.type==="untracked"?u==null||u.init(m):(f.stores[f.store]=o,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,v])=>[g,g===f.store?m:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let g=!1;const v=o.dispatch;o.dispatch=(...b)=>{(Mw?"open":void 0)!=="production"&&b[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...b)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return LM(g.payload,b=>{if(b.type==="__setState"){if(s===void 0){p(b.state);return}Object.keys(b.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 y=b.state[s];if(y==null)return;JSON.stringify(o.getState())!==JSON.stringify(y)&&p(y);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(b)});case"DISPATCH":switch(g.payload.type){case"RESET":return p(m),s===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(vC(l.name));case"COMMIT":if(s===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(vC(l.name));case"ROLLBACK":return LM(g.state,b=>{if(s===void 0){p(b),u==null||u.init(o.getState());return}p(b[s]),u==null||u.init(vC(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return LM(g.state,b=>{if(s===void 0){p(b);return}JSON.stringify(o.getState())!==JSON.stringify(b[s])&&p(b[s])});case"IMPORT_STATE":{const{nextLiftedState:b}=g.payload,y=(v=b.computedStates.slice(-1)[0])==null?void 0:v.state;if(!y)return;p(s===void 0?y:y[s]),u==null||u.send(null,b);return}case"PAUSE_RECORDING":return h=!h}return}}),m},uc=s0e,LM=(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 l0e(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;const a=l=>l===null?null:JSON.parse(l,void 0),s=(i=n.getItem(o))!=null?i:null;return s instanceof Promise?s.then(a):a(s)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,void 0)),removeItem:o=>n.removeItem(o)}}const Sb=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Sb(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Sb(r)(n)}}}},c0e=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,b)=>({...b,...v}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch{}if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...v)},r,o);const u=Sb(i.serialize),f=()=>{const v=i.partialize({...r()});let b;const y=u({state:v,version:i.version}).then(S=>c.setItem(i.name,S)).catch(S=>{b=S});if(b)throw b;return y},h=o.setState;o.setState=(v,b)=>{h(v,b),f()};const p=e((...v)=>{n(...v),f()},r,o);let m;const g=()=>{var v;if(!c)return;a=!1,s.forEach(y=>y(r()));const b=((v=i.onRehydrateStorage)==null?void 0:v.call(i,r()))||void 0;return Sb(c.getItem.bind(c))(i.name).then(y=>{if(y)return i.deserialize(y)}).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return i.migrate(y.state,y.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return y.state}).then(y=>{var S;return m=i.merge(y,(S=r())!=null?S:p),n(m,!0),f()}).then(()=>{b==null||b(m,void 0),a=!0,l.forEach(y=>y(m))}).catch(y=>{b==null||b(void 0,y)})};return o.persist={setOptions:v=>{i={...i,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),m||p},u0e=(e,t)=>(n,r,o)=>{let i={storage:l0e(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},a=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...g)},r,o);const u=()=>{const g=i.partialize({...r()});return c.setItem(i.name,{state:g,version:i.version})},f=o.setState;o.setState=(g,v)=>{f(g,v),u()};const h=e((...g)=>{n(...g),u()},r,o);o.getInitialState=()=>h;let p;const m=()=>{var g,v;if(!c)return;a=!1,s.forEach(y=>{var S;return y((S=r())!=null?S:h)});const b=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(g=r())!=null?g:h))||void 0;return Sb(c.getItem.bind(c))(i.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return[!0,i.migrate(y.state,y.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var S;const[w,E]=y;if(p=i.merge(E,(S=r())!=null?S:h),n(p,!0),w)return u()}).then(()=>{b==null||b(p,void 0),p=r(),a=!0,l.forEach(y=>y(p))}).catch(y=>{b==null||b(void 0,y)})};return o.persist={setOptions:g=>{i={...i,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||m(),p||h},d0e=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Ow?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),c0e(e,t)):u0e(e,t),dc=d0e;var mQ=Symbol.for("immer-nothing"),M7=Symbol.for("immer-draftable"),$s=Symbol.for("immer-state");function Dl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kg=Object.getPrototypeOf;function Ng(e){return!!e&&!!e[$s]}function ip(e){var t;return e?gQ(e)||Array.isArray(e)||!!e[M7]||!!((t=e.constructor)!=null&&t[M7])||l_(e)||c_(e):!1}var f0e=Object.prototype.constructor.toString();function gQ(e){if(!e||typeof e!="object")return!1;const t=kg(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)===f0e}function n2(e,t){s_(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function s_(e){const t=e[$s];return t?t.type_:Array.isArray(e)?1:l_(e)?2:c_(e)?3:0}function uk(e,t){return s_(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vQ(e,t,n){const r=s_(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function h0e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function l_(e){return e instanceof Map}function c_(e){return e instanceof Set}function uh(e){return e.copy_||e.base_}function dk(e,t){if(l_(e))return new Map(e);if(c_(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=gQ(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[$s];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=p0e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>f5(r,!0))),e}function p0e(){Dl(2)}function u_(e){return Object.isFrozen(e)}var m0e={};function ap(e){const t=m0e[e];return t||Dl(0,e),t}var Cb;function yQ(){return Cb}function g0e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function T7(e,t){t&&(ap("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function fk(e){hk(e),e.drafts_.forEach(v0e),e.drafts_=null}function hk(e){e===Cb&&(Cb=e.parent_)}function R7(e){return Cb=g0e(Cb,e)}function v0e(e){const t=e[$s];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function I7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[$s].modified_&&(fk(t),Dl(4)),ip(e)&&(e=r2(t,e),t.parent_||o2(t,e)),t.patches_&&ap("Patches").generateReplacementPatches_(n[$s].base_,e,t.patches_,t.inversePatches_)):e=r2(t,n,[]),fk(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==mQ?e:void 0}function r2(e,t,n){if(u_(t))return t;const r=t[$s];if(!r)return n2(t,(o,i)=>k7(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return o2(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),n2(i,(s,l)=>k7(e,r,o,s,l,n,a)),o2(e,o,!1),n&&e.patches_&&ap("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function k7(e,t,n,r,o,i,a){if(Ng(o)){const s=i&&t&&t.type_!==3&&!uk(t.assigned_,r)?i.concat(r):void 0,l=r2(e,o,s);if(vQ(n,r,l),Ng(l))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(ip(o)&&!u_(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;r2(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&o2(e,o)}}function o2(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&f5(t,n)}function y0e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:yQ(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=h5;n&&(o=[r],i=wb);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var h5={get(e,t){if(t===$s)return e;const n=uh(e);if(!uk(n,t))return b0e(e,n,t);const r=n[t];return e.finalized_||!ip(r)?r:r===BM(e.base_,t)?(zM(e),e.copy_[t]=mk(r,e)):r},has(e,t){return t in uh(e)},ownKeys(e){return Reflect.ownKeys(uh(e))},set(e,t,n){const r=bQ(uh(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=BM(uh(e),t),i=o==null?void 0:o[$s];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(h0e(n,o)&&(n!==void 0||uk(e.base_,t)))return!0;zM(e),pk(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 BM(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,zM(e),pk(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=uh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Dl(11)},getPrototypeOf(e){return kg(e.base_)},setPrototypeOf(){Dl(12)}},wb={};n2(h5,(e,t)=>{wb[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});wb.deleteProperty=function(e,t){return wb.set.call(this,e,t,void 0)};wb.set=function(e,t,n){return h5.set.call(this,e[0],t,n,e[0])};function BM(e,t){const n=e[$s];return(n?uh(n):e)[t]}function b0e(e,t,n){var o;const r=bQ(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function bQ(e,t){if(!(t in e))return;let n=kg(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=kg(n)}}function pk(e){e.modified_||(e.modified_=!0,e.parent_&&pk(e.parent_))}function zM(e){e.copy_||(e.copy_=dk(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var S0e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Dl(6),r!==void 0&&typeof r!="function"&&Dl(7);let o;if(ip(t)){const i=R7(this),a=mk(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?fk(i):hk(i)}return T7(i,r),I7(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===mQ&&(o=void 0),this.autoFreeze_&&f5(o,!0),r){const i=[],a=[];ap("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else Dl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},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){ip(e)||Dl(8),Ng(e)&&(e=C0e(e));const t=R7(this),n=mk(e,void 0);return n[$s].isManual_=!0,hk(t),n}finishDraft(e,t){const n=e&&e[$s];(!n||!n.isManual_)&&Dl(9);const{scope_:r}=n;return T7(r,t),I7(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 o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=ap("Patches").applyPatches_;return Ng(e)?r(e,t):this.produce(e,o=>r(o,t))}};function mk(e,t){const n=l_(e)?ap("MapSet").proxyMap_(e,t):c_(e)?ap("MapSet").proxySet_(e,t):y0e(e,t);return(t?t.scope_:yQ()).drafts_.push(n),n}function C0e(e){return Ng(e)||Dl(10,e),SQ(e)}function SQ(e){if(!ip(e)||u_(e))return e;const t=e[$s];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=dk(e,t.scope_.immer_.useStrictShallowCopy_)}else n=dk(e,!0);return n2(n,(r,o)=>{vQ(n,r,SQ(o))}),t&&(t.finalized_=!1),n}var Ps=new S0e,w0e=Ps.produce;Ps.produceWithPatches.bind(Ps);Ps.setAutoFreeze.bind(Ps);Ps.setUseStrictShallowCopy.bind(Ps);Ps.applyPatches.bind(Ps);Ps.createDraft.bind(Ps);Ps.finishDraft.bind(Ps);const x0e=e=>(t,n,r)=>(r.setState=(o,i,...a)=>{const s=typeof o=="function"?w0e(o):o;return t(s,i,...a)},e(r.setState,n,r)),fc=x0e,E0e="dev",CQ="open",N7="prod",_0e="quanjing",wQ="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let Qs;switch(wQ){case"dev":Qs={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:E0e,CLIENT:"WEB"};break;case"prod-open":Qs={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:CQ,CLIENT:"WEB"};break;case"prod-quanjing":Qs={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:_0e,CLIENT:"WEB"};break;case"prod-web":Qs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:N7,CLIENT:"WEB"};break;default:Qs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:N7,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",wQ,Qs);const Pi=navigator.userAgent.toLowerCase().indexOf("electron")>-1,HM=Qs.API_URL,A7=Qs.MQTT_URL;Qs.HTML_URL;const Ag=Qs.IS_DEBUG,$0e=Qs.SERVER_MODE,po=Qs.CLIENT,cl="BYTEDESK",D7="locale",j7="mode",Zm="team",sp="agent",i2="personal",F7="i18n.",yC="i18n.new.message",xQ="ANONYMOUS",ms="bytedesk_login_credentials",L7="THEME_MODE_TYPE",B7="THEME_NAME_TYPE",Mw="PLAY_AUDIO",Ry="NETWORK_STATUS_NOTIFICATION",Iy="CONFIG_ENABLED_AGENT",Tw="CONFIG_API_URL_AGENT",Rw="CONFIG_WEBSOCKET_URL_AGENT",UM="CONFIG_HTML_URL_AGENT",Bm="CONFIG_CUSTOM_ENABLED_AGENT",iy="CONFIG_CUSTOM_API_URL_AGENT",ay="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",P0e="CONFIG_PROPERTIES",O0e="SCREENSHOT_OK",M0e="EVENT_BUS_SERVER_ERROR_500",pf="EVENT_BUS_TOKEN_INVALID",xb="EVENT_BUS_MQTT_MESSAGE",gk="EVENT_BUS_MQTT_CONNECTED",vk="EVENT_BUS_MQTT_OFFLINE",yk="EVENT_BUS_MQTT_CLOSE",bk="EVENT_BUS_MQTT_DISCONNECTED",Sk="EVENT_BUS_MQTT_ERROR",Ck="EVENT_BUS_MQTT_END",EQ="EVENT_BUS_MESSAGE_TYPE_STATUS",T0e="EVENT_BUS_MESSAGE_TYPE_TYPING",R0e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",I0e="EVENT_BUS_MESSAGE_TYPE_STREAM",k0e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",wk="EVENT_BUS_MESSAGE_TYPE_TRANSFER",xk="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",Ek="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",N0e="EVENT_BUS_SCREEN_CAPTURE_IMAGE",A0e="AUTH_STORE",Eb="ACCESS_TOKEN",D0e="ORGANIZATION_STORE",j0e="MEMBER_STORE",F0e="MESSAGE_STORE",L0e="CONTACT_STORE",B0e="USER_STORE",z0e="SETTINGS_STORE",H0e="THREAD_STORE",U0e="DEVICE_STORE",W0e="AGENT_STORE",V0e="WORKGROUP_STORE",K0e="member",_Q="device",q0e="MOBILE_LOGIN",G0e="MOBILE_RESET",Y0e="MOBILE_VERIFY",X0e="EMAIL_RESET",Q0e="EMAIL_VERIFY",J0e="PENDING",Z0e="SCANNED",eye="CONFIRMED",tye="EXPIRED",nye="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",rye="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",oye="https://www.weiyuai.cn/download.html",z7="AGENT",H7="USER",U7="AGENT",W7="WORKGROUP",V7="QUEUING",K7="CLOSED",q7="SENDING",_k="SUCCESS",iye="TRANSFER_ACCEPT",aye="TRANSFER_REJECT",$k="CONTINUE",$Q="SYSTEM",sye="QUEUE",lye="TEXT",cye="IMAGE",uye="FILE",dye="AUDIO",fye="VIDEO",Pk="TYPING",Ok="PROCESSING",_b="STREAM",G7="PREVIEW",Y7="RECALL",Mk="DELIVERED",Tk="READ",hye="FAQ_UP",pye="FAQ_DOWN",mye="ROBOT_UP",gye="ROBOT_DOWN",vye="RATE_SUBMIT",yye="RATE_CANCEL",$b="AUTO_CLOSED",Pb="AGENT_CLOSED",X7="TRANSFER",Q7="TRANSFER_ACCEPT",J7="TRANSFER_REJECT",Z7="AVAILABLE",WM="OFFLINE",eB="REST",bye="org/group/",Sye="CHAT",tB="lastPath",Cye="ROLE_SUPER",wye="ROLE_ADMIN",xye="ROLE_MEMBER",Eye="ROLE_AGENT",E1=hl()(uc(dc(fc((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Eb,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Eb),e({accessToken:""})}})),{name:A0e}))),_ye=hl()(uc(dc(fc(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:z0e})));var Op={},PQ={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})(PQ);var ir=PQ.exports,d_={};Object.defineProperty(d_,"__esModule",{value:!0});d_.default=void 0;var $ye={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"};d_.default=$ye;var f_={},_1={},h_={},OQ={exports:{}},MQ={exports:{}},TQ={exports:{}},RQ={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})(RQ);var Mp=RQ.exports,IQ={exports:{}};(function(e){var t=Mp.default;function n(r,o){if(t(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(IQ);var Pye=IQ.exports;(function(e){var t=Mp.default,n=Pye;function r(o){var i=n(o,"string");return t(i)=="symbol"?i:i+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(TQ);var Oye=TQ.exports;(function(e){var t=Oye;function n(r,o,i){return(o=t(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(MQ);var kQ=MQ.exports;(function(e){var t=kQ;function n(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),a.push.apply(a,s)}return a}function r(o){for(var i=1;i{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")}))},[]),d.useEffect(()=>{localStorage.setItem(L7,o),o==="light"?n("light"):o==="dark"?n("dark"):o==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[o]),d.useEffect(()=>{localStorage.setItem(B7,t)},[t]),{themeName:t,setThemeName:n,themeMode:o,setThemeMode:i,isDarkMode:t==="dark",isLightMode:t==="light"}}function BQ(e,t){return function(){return e.apply(t,arguments)}}const{toString:Cbe}=Object.prototype,{getPrototypeOf:p5}=Object,__=(e=>t=>{const n=Cbe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hc=e=>(e=e.toLowerCase(),t=>__(t)===e),$_=e=>t=>typeof t===e,{isArray:gv}=Array,Ob=$_("undefined");function wbe(e){return e!==null&&!Ob(e)&&e.constructor!==null&&!Ob(e.constructor)&&Es(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zQ=hc("ArrayBuffer");function xbe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zQ(e.buffer),t}const Ebe=$_("string"),Es=$_("function"),HQ=$_("number"),P_=e=>e!==null&&typeof e=="object",_be=e=>e===!0||e===!1,Iw=e=>{if(__(e)!=="object")return!1;const t=p5(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$be=hc("Date"),Pbe=hc("File"),Obe=hc("Blob"),Mbe=hc("FileList"),Tbe=e=>P_(e)&&Es(e.pipe),Rbe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Es(e.append)&&((t=__(e))==="formdata"||t==="object"&&Es(e.toString)&&e.toString()==="[object FormData]"))},Ibe=hc("URLSearchParams"),[kbe,Nbe,Abe,Dbe]=["ReadableStream","Request","Response","Headers"].map(hc),jbe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function R1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),gv(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const xh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,WQ=e=>!Ob(e)&&e!==xh;function Rk(){const{caseless:e}=WQ(this)&&this||{},t={},n=(r,o)=>{const i=e&&UQ(t,o)||o;Iw(t[i])&&Iw(r)?t[i]=Rk(t[i],r):Iw(r)?t[i]=Rk({},r):gv(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(R1(t,(o,i)=>{n&&Es(o)?e[i]=BQ(o,n):e[i]=o},{allOwnKeys:r}),e),Lbe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bbe=(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)},zbe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&p5(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Hbe=(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},Ube=e=>{if(!e)return null;if(gv(e))return e;let t=e.length;if(!HQ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wbe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&p5(Uint8Array)),Vbe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Kbe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qbe=hc("HTMLFormElement"),Gbe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),aB=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ybe=hc("RegExp"),VQ=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};R1(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Xbe=e=>{VQ(e,(t,n)=>{if(Es(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Es(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+"'")})}})},Qbe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gv(e)?r(e):r(String(e).split(t)),n},Jbe=()=>{},Zbe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,VM="abcdefghijklmnopqrstuvwxyz",sB="0123456789",KQ={DIGIT:sB,ALPHA:VM,ALPHA_DIGIT:VM+VM.toUpperCase()+sB},e1e=(e=16,t=KQ.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function t1e(e){return!!(e&&Es(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const n1e=e=>{const t=new Array(10),n=(r,o)=>{if(P_(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=gv(r)?[]:{};return R1(r,(a,s)=>{const l=n(a,o+1);!Ob(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},r1e=hc("AsyncFunction"),o1e=e=>e&&(P_(e)||Es(e))&&Es(e.then)&&Es(e.catch),qQ=((e,t)=>e?setImmediate:t?((n,r)=>(xh.addEventListener("message",({source:o,data:i})=>{o===xh&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),xh.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Es(xh.postMessage)),i1e=typeof queueMicrotask<"u"?queueMicrotask.bind(xh):typeof process<"u"&&process.nextTick||qQ,zt={isArray:gv,isArrayBuffer:zQ,isBuffer:wbe,isFormData:Rbe,isArrayBufferView:xbe,isString:Ebe,isNumber:HQ,isBoolean:_be,isObject:P_,isPlainObject:Iw,isReadableStream:kbe,isRequest:Nbe,isResponse:Abe,isHeaders:Dbe,isUndefined:Ob,isDate:$be,isFile:Pbe,isBlob:Obe,isRegExp:Ybe,isFunction:Es,isStream:Tbe,isURLSearchParams:Ibe,isTypedArray:Wbe,isFileList:Mbe,forEach:R1,merge:Rk,extend:Fbe,trim:jbe,stripBOM:Lbe,inherits:Bbe,toFlatObject:zbe,kindOf:__,kindOfTest:hc,endsWith:Hbe,toArray:Ube,forEachEntry:Vbe,matchAll:Kbe,isHTMLForm:qbe,hasOwnProperty:aB,hasOwnProp:aB,reduceDescriptors:VQ,freezeMethods:Xbe,toObjectSet:Qbe,toCamelCase:Gbe,noop:Jbe,toFiniteNumber:Zbe,findKey:UQ,global:xh,isContextDefined:WQ,ALPHABET:KQ,generateString:e1e,isSpecCompliantForm:t1e,toJSONObject:n1e,isAsyncFn:r1e,isThenable:o1e,setImmediate:qQ,asap:i1e};function sr(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}zt.inherits(sr,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:zt.toJSONObject(this.config),code:this.code,status:this.status}}});const GQ=sr.prototype,YQ={};["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=>{YQ[e]={value:e}});Object.defineProperties(sr,YQ);Object.defineProperty(GQ,"isAxiosError",{value:!0});sr.from=(e,t,n,r,o,i)=>{const a=Object.create(GQ);return zt.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),sr.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const a1e=null;function Ik(e){return zt.isPlainObject(e)||zt.isArray(e)}function XQ(e){return zt.endsWith(e,"[]")?e.slice(0,-2):e}function lB(e,t,n){return e?e.concat(t).map(function(o,i){return o=XQ(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function s1e(e){return zt.isArray(e)&&!e.some(Ik)}const l1e=zt.toFlatObject(zt,{},null,function(t){return/^is[A-Z]/.test(t)});function O_(e,t,n){if(!zt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=zt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!zt.isUndefined(v[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&zt.isSpecCompliantForm(t);if(!zt.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(zt.isDate(m))return m.toISOString();if(!l&&zt.isBlob(m))throw new sr("Blob is not supported. Use a Buffer instead.");return zt.isArrayBuffer(m)||zt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let b=m;if(m&&!v&&typeof m=="object"){if(zt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(zt.isArray(m)&&s1e(m)||(zt.isFileList(m)||zt.endsWith(g,"[]"))&&(b=zt.toArray(m)))return g=XQ(g),b.forEach(function(S,w){!(zt.isUndefined(S)||S===null)&&t.append(a===!0?lB([g],w,i):a===null?g:g+"[]",c(S))}),!1}return Ik(m)?!0:(t.append(lB(v,g,i),c(m)),!1)}const f=[],h=Object.assign(l1e,{defaultVisitor:u,convertValue:c,isVisitable:Ik});function p(m,g){if(!zt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),zt.forEach(m,function(b,y){(!(zt.isUndefined(b)||b===null)&&o.call(t,b,zt.isString(y)?y.trim():y,g,h))===!0&&p(b,g?g.concat(y):[y])}),f.pop()}}if(!zt.isObject(e))throw new TypeError("data must be an object");return p(e),t}function cB(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function m5(e,t){this._pairs=[],e&&O_(e,this,t)}const QQ=m5.prototype;QQ.append=function(t,n){this._pairs.push([t,n])};QQ.toString=function(t){const n=t?function(r){return t.call(this,r,cB)}:cB;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function c1e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function JQ(e,t,n){if(!t)return e;const r=n&&n.encode||c1e;zt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=zt.isURLSearchParams(t)?t.toString():new m5(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class uB{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){zt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ZQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u1e=typeof URLSearchParams<"u"?URLSearchParams:m5,d1e=typeof FormData<"u"?FormData:null,f1e=typeof Blob<"u"?Blob:null,h1e={isBrowser:!0,classes:{URLSearchParams:u1e,FormData:d1e,Blob:f1e},protocols:["http","https","file","blob","url","data"]},g5=typeof window<"u"&&typeof document<"u",kk=typeof navigator=="object"&&navigator||void 0,p1e=g5&&(!kk||["ReactNative","NativeScript","NS"].indexOf(kk.product)<0),m1e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g1e=g5&&window.location.href||"http://localhost",v1e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:g5,hasStandardBrowserEnv:p1e,hasStandardBrowserWebWorkerEnv:m1e,navigator:kk,origin:g1e},Symbol.toStringTag,{value:"Module"})),ea={...v1e,...h1e};function y1e(e,t){return O_(e,new ea.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ea.isNode&&zt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function b1e(e){return zt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S1e(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&zt.isArray(o)?o.length:a,l?(zt.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!zt.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&zt.isArray(o[a])&&(o[a]=S1e(o[a])),!s)}if(zt.isFormData(e)&&zt.isFunction(e.entries)){const n={};return zt.forEachEntry(e,(r,o)=>{t(b1e(r),o,n,0)}),n}return null}function C1e(e,t,n){if(zt.isString(e))try{return(t||JSON.parse)(e),zt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const I1={transitional:ZQ,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=zt.isObject(t);if(i&&zt.isHTMLForm(t)&&(t=new FormData(t)),zt.isFormData(t))return o?JSON.stringify(eJ(t)):t;if(zt.isArrayBuffer(t)||zt.isBuffer(t)||zt.isStream(t)||zt.isFile(t)||zt.isBlob(t)||zt.isReadableStream(t))return t;if(zt.isArrayBufferView(t))return t.buffer;if(zt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return y1e(t,this.formSerializer).toString();if((s=zt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return O_(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),C1e(t)):t}],transformResponse:[function(t){const n=this.transitional||I1.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(zt.isResponse(t)||zt.isReadableStream(t))return t;if(t&&zt.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?sr.from(s,sr.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:ea.classes.FormData,Blob:ea.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zt.forEach(["delete","get","head","post","put","patch"],e=>{I1.headers[e]={}});const w1e=zt.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"]),x1e=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&w1e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},dB=Symbol("internals");function _0(e){return e&&String(e).trim().toLowerCase()}function kw(e){return e===!1||e==null?e:zt.isArray(e)?e.map(kw):String(e)}function E1e(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 _1e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function KM(e,t,n,r,o){if(zt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!zt.isString(t)){if(zt.isString(r))return t.indexOf(r)!==-1;if(zt.isRegExp(r))return r.test(t)}}function $1e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function P1e(e,t){const n=zt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Wa{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=_0(l);if(!u)throw new Error("header name must be a non-empty string");const f=zt.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=kw(s))}const a=(s,l)=>zt.forEach(s,(c,u)=>i(c,u,l));if(zt.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(zt.isString(t)&&(t=t.trim())&&!_1e(t))a(x1e(t),n);else if(zt.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=_0(t),t){const r=zt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return E1e(o);if(zt.isFunction(n))return n.call(this,o,r);if(zt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_0(t),t){const r=zt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||KM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=_0(a),a){const s=zt.findKey(r,a);s&&(!n||KM(r,r[s],s,n))&&(delete r[s],o=!0)}}return zt.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||KM(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return zt.forEach(this,(o,i)=>{const a=zt.findKey(r,i);if(a){n[a]=kw(o),delete n[i];return}const s=t?$1e(i):String(i).trim();s!==i&&delete n[i],n[s]=kw(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return zt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&zt.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(o=>r.set(o)),r}static accessor(t){const r=(this[dB]=this[dB]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=_0(a);r[s]||(P1e(o,a),r[s]=!0)}return zt.isArray(t)?t.forEach(i):i(t),this}}Wa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);zt.reduceDescriptors(Wa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});zt.freezeMethods(Wa);function qM(e,t){const n=this||I1,r=t||n,o=Wa.from(r.headers);let i=r.data;return zt.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function tJ(e){return!!(e&&e.__CANCEL__)}function vv(e,t,n){sr.call(this,e??"canceled",sr.ERR_CANCELED,t,n),this.name="CanceledError"}zt.inherits(vv,sr,{__CANCEL__:!0});function nJ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new sr("Request failed with status code "+n.status,[sr.ERR_BAD_REQUEST,sr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function O1e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function M1e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const a2=(e,t,n=3)=>{let r=0;const o=M1e(50,250);return T1e(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={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:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},fB=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hB=e=>(...t)=>zt.asap(()=>e(...t)),R1e=ea.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ea.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ea.origin),ea.navigator&&/(msie|trident)/i.test(ea.navigator.userAgent)):()=>!0,I1e=ea.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];zt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),zt.isString(r)&&a.push("path="+r),zt.isString(o)&&a.push("domain="+o),i===!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 k1e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N1e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rJ(e,t){return e&&!k1e(t)?N1e(e,t):t}const pB=e=>e instanceof Wa?{...e}:e;function lp(e,t){t=t||{};const n={};function r(c,u,f,h){return zt.isPlainObject(c)&&zt.isPlainObject(u)?zt.merge.call({caseless:h},c,u):zt.isPlainObject(u)?zt.merge({},u):zt.isArray(u)?u.slice():u}function o(c,u,f,h){if(zt.isUndefined(u)){if(!zt.isUndefined(c))return r(void 0,c,f,h)}else return r(c,u,f,h)}function i(c,u){if(!zt.isUndefined(u))return r(void 0,u)}function a(c,u){if(zt.isUndefined(u)){if(!zt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,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,f)=>o(pB(c),pB(u),f,!0)};return zt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);zt.isUndefined(h)&&f!==s||(n[u]=h)}),n}const oJ=e=>{const t=lp({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Wa.from(a),t.url=JQ(rJ(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(zt.isFormData(n)){if(ea.hasStandardBrowserEnv||ea.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ea.hasStandardBrowserEnv&&(r&&zt.isFunction(r)&&(r=r(t)),r||r!==!1&&R1e(t.url))){const c=o&&i&&I1e.read(i);c&&a.set(o,c)}return t},A1e=typeof XMLHttpRequest<"u",D1e=A1e&&function(e){return new Promise(function(n,r){const o=oJ(e);let i=o.data;const a=Wa.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,f,h,p,m;function g(){p&&p(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function b(){if(!v)return;const S=Wa.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:S,config:e,request:v};nJ(function(x){n(x),g()},function(x){r(x),g()},E),v=null}"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(b)},v.onabort=function(){v&&(r(new sr("Request aborted",sr.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new sr("Network Error",sr.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||ZQ;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new sr(w,E.clarifyTimeoutError?sr.ETIMEDOUT:sr.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&zt.forEach(a.toJSON(),function(w,E){v.setRequestHeader(E,w)}),zt.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),c&&([h,m]=a2(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([f,p]=a2(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=S=>{v&&(r(!S||S.type?new vv(null,e,v):S),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const y=O1e(o.url);if(y&&ea.protocols.indexOf(y)===-1){r(new sr("Unsupported protocol "+y+":",sr.ERR_BAD_REQUEST,e));return}v.send(i||null)})},j1e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof sr?u:new vv(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new sr(`timeout ${t} of ms exceeded`,sr.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>zt.asap(s),l}},F1e=function*(e,t){let n=e.byteLength;if(n{const o=L1e(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},M_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",iJ=M_&&typeof ReadableStream=="function",z1e=M_&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),aJ=(e,...t)=>{try{return!!e(...t)}catch{return!1}},H1e=iJ&&aJ(()=>{let e=!1;const t=new Request(ea.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gB=64*1024,Nk=iJ&&aJ(()=>zt.isReadableStream(new Response("").body)),s2={stream:Nk&&(e=>e.body)};M_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!s2[t]&&(s2[t]=zt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new sr(`Response type '${t}' is not supported`,sr.ERR_NOT_SUPPORT,r)})})})(new Response);const U1e=async e=>{if(e==null)return 0;if(zt.isBlob(e))return e.size;if(zt.isSpecCompliantForm(e))return(await new Request(ea.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(zt.isArrayBufferView(e)||zt.isArrayBuffer(e))return e.byteLength;if(zt.isURLSearchParams(e)&&(e=e+""),zt.isString(e))return(await z1e(e)).byteLength},W1e=async(e,t)=>{const n=zt.toFiniteNumber(e.getContentLength());return n??U1e(t)},V1e=M_&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=oJ(e);c=c?(c+"").toLowerCase():"text";let p=j1e([o,i&&i.toAbortSignal()],a),m;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&H1e&&n!=="get"&&n!=="head"&&(v=await W1e(u,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(zt.isFormData(r)&&(C=E.headers.get("content-type"))&&u.setContentType(C),E.body){const[x,_]=fB(v,a2(hB(l)));r=mB(E.body,gB,x,_)}}zt.isString(f)||(f=f?"include":"omit");const b="credentials"in Request.prototype;m=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?f:void 0});let y=await fetch(m);const S=Nk&&(c==="stream"||c==="response");if(Nk&&(s||S&&g)){const E={};["status","statusText","headers"].forEach(P=>{E[P]=y[P]});const C=zt.toFiniteNumber(y.headers.get("content-length")),[x,_]=s&&fB(C,a2(hB(s),!0))||[];y=new Response(mB(y.body,gB,x,()=>{_&&_(),g&&g()}),E)}c=c||"text";let w=await s2[zt.findKey(s2,c)||"text"](y,e);return!S&&g&&g(),await new Promise((E,C)=>{nJ(E,C,{data:w,headers:Wa.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:m})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new sr("Network Error",sr.ERR_NETWORK,e,m),{cause:b.cause||b}):sr.from(b,b&&b.code,e,m)}}),Ak={http:a1e,xhr:D1e,fetch:V1e};zt.forEach(Ak,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vB=e=>`- ${e}`,K1e=e=>zt.isFunction(e)||e===null||e===!1,sJ={getAdapter:e=>{e=zt.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : -`+i.map(vB).join(` -`):" "+vB(i[0]):"as no adapter specified";throw new sr("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Ak};function GM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vv(null,e)}function yB(e){return GM(e),e.headers=Wa.from(e.headers),e.data=qM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sJ.getAdapter(e.adapter||I1.adapter)(e).then(function(r){return GM(e),r.data=qM.call(e,e.transformResponse,r),r.headers=Wa.from(r.headers),r},function(r){return tJ(r)||(GM(e),r&&r.response&&(r.response.data=qM.call(e,e.transformResponse,r.response),r.response.headers=Wa.from(r.response.headers))),Promise.reject(r)})}const lJ="1.7.9",T_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{T_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const bB={};T_.transitional=function(t,n,r){function o(i,a){return"[Axios v"+lJ+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new sr(o(a," has been removed"+(n?" in "+n:"")),sr.ERR_DEPRECATED);return n&&!bB[a]&&(bB[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};T_.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function q1e(e,t,n){if(typeof e!="object")throw new sr("options must be an object",sr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new sr("option "+i+" must be "+l,sr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new sr("Unknown option "+i,sr.ERR_BAD_OPTION)}}const Nw={assertOptions:q1e,validators:T_},Cc=Nw.validators;class zh{constructor(t){this.defaults=t,this.interceptors={request:new uB,response:new uB}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=lp(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Nw.assertOptions(r,{silentJSONParsing:Cc.transitional(Cc.boolean),forcedJSONParsing:Cc.transitional(Cc.boolean),clarifyTimeoutError:Cc.transitional(Cc.boolean)},!1),o!=null&&(zt.isFunction(o)?n.paramsSerializer={serialize:o}:Nw.assertOptions(o,{encode:Cc.function,serialize:Cc.function},!0)),Nw.assertOptions(n,{baseUrl:Cc.spelling("baseURL"),withXsrfToken:Cc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&zt.merge(i.common,i[n.method]);i&&zt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Wa.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,h;if(!l){const m=[yB.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new vv(i,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 v5(function(o){t=o}),cancel:t}}}function G1e(e){return function(n){return e.apply(null,n)}}function Y1e(e){return zt.isObject(e)&&e.isAxiosError===!0}const Dk={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(Dk).forEach(([e,t])=>{Dk[t]=e});function cJ(e){const t=new zh(e),n=BQ(zh.prototype.request,t);return zt.extend(n,zh.prototype,t,{allOwnKeys:!0}),zt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return cJ(lp(e,o))},n}const Qo=cJ(I1);Qo.Axios=zh;Qo.CanceledError=vv;Qo.CancelToken=v5;Qo.isCancel=tJ;Qo.VERSION=lJ;Qo.toFormData=O_;Qo.AxiosError=sr;Qo.Cancel=Qo.CanceledError;Qo.all=function(t){return Promise.all(t)};Qo.spread=G1e;Qo.isAxiosError=Y1e;Qo.mergeConfig=lp;Qo.AxiosHeaders=Wa;Qo.formToJSON=e=>eJ(zt.isHTMLForm(e)?new FormData(e):e);Qo.getAdapter=sJ.getAdapter;Qo.HttpStatusCode=Dk;Qo.default=Qo;function X1e(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(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const Jn=X1e();async function Q1e(){return ko("/config/bytedesk/properties",{method:"GET",params:{client:po}})}async function uJ(){try{const t=(await Qo.get("/agent/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(Iy,"true"),localStorage.setItem(Tw,t.apiUrl),localStorage.setItem(Rw,t.websocketUrl),localStorage.setItem(UM,t.htmlUrl);else if($0e===CQ){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,o="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",o),localStorage.setItem(Iy,"true"),localStorage.setItem(Tw,r),localStorage.setItem(Rw,o),localStorage.setItem(UM,r)}else console.log("config disabled"),localStorage.setItem(Iy,"false"),localStorage.removeItem(Tw),localStorage.removeItem(Rw),localStorage.removeItem(UM)}catch(e){console.log("loadConfig error: ",e)}}function R_(){const e=localStorage.getItem(Bm);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(iy);return n===null?HM:n}if(localStorage.getItem(Iy)==="true"){const n=localStorage.getItem(Tw);return n===null?HM:n}return HM}function dJ(){return R_()+"/api/v1/upload/file"}function J1e(){const e=localStorage.getItem(Bm);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(ay);return r===null?A7:r}const t=localStorage.getItem(Iy),n=localStorage.getItem(Rw);return t==="true"?n:A7}async function fJ(){const e=await Q1e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(P0e,JSON.stringify(e.data.data)),e.data.data):null}const ko=Qo.create({timeout:2e4,baseURL:R_(),paramsSerializer:{indexes:null}});ko.interceptors.request.use(e=>{e.baseURL=R_();const t=localStorage.getItem(Eb);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(Z1e):e},e=>(console.debug("request error",e),e.response.status===403&&Jn.emit(pf,"403"),e.response.status===401&&Jn.emit(pf,"401"),Promise.reject(e)));ko.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"),Jn.emit(pf,"400");break;case 401:console.log("axios interception error 401"),Jn.emit(pf,"401");break;case 403:console.log("axios interception error 403"),Jn.emit(pf,"403");break;case 500:console.log("axios interception error 500"),Jn.emit(M0e,"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 YM={data:null,status:601,statusText:xQ,headers:{},config:{headers:void 0},request:null},Z1e={message:"匿名用户,无需访问服务器接口",name:xQ,code:"601",config:YM.config,request:YM.request,response:YM,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 eSe(e){return ko("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:po}})}async function tSe(e){return ko("/api/v1/agent/update",{method:"POST",data:{...e,client:po}})}async function nSe(e){return ko("/api/v1/agent/update/status",{method:"POST",data:{...e,client:po}})}async function rSe(e){return ko("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:po}})}async function oSe(e){return ko("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:po}})}var y5=Object.defineProperty,iSe=Object.getOwnPropertyDescriptor,aSe=Object.getOwnPropertyNames,sSe=Object.prototype.hasOwnProperty,Fi=(e,t)=>()=>(e&&(t=e(e=0)),t),Zt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rp=(e,t)=>{for(var n in t)y5(e,n,{get:t[n],enumerable:!0})},lSe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of aSe(t))!sSe.call(e,o)&&o!==n&&y5(e,o,{get:()=>t[o],enumerable:!(r=iSe(t,o))||r.enumerable});return e},Qr=e=>lSe(y5({},"__esModule",{value:!0}),e),Vt=Fi(()=>{}),jr={};Rp(jr,{_debugEnd:()=>m4,_debugProcess:()=>p4,_events:()=>T4,_eventsCount:()=>R4,_exiting:()=>e4,_fatalExceptions:()=>d4,_getActiveHandles:()=>bJ,_getActiveRequests:()=>yJ,_kill:()=>r4,_linkedBinding:()=>gJ,_maxListeners:()=>M4,_preload_modules:()=>P4,_rawDebug:()=>Qk,_startProfilerIdleNotifier:()=>g4,_stopProfilerIdleNotifier:()=>v4,_tickCallback:()=>h4,abort:()=>C4,addListener:()=>I4,allowedNodeEnvironmentFlags:()=>c4,arch:()=>Fk,argv:()=>zk,argv0:()=>$4,assert:()=>SJ,binding:()=>Kk,chdir:()=>Yk,config:()=>t4,cpuUsage:()=>sy,cwd:()=>Gk,debugPort:()=>_4,default:()=>S5,dlopen:()=>vJ,domain:()=>Zk,emit:()=>j4,emitWarning:()=>Vk,env:()=>Bk,execArgv:()=>Hk,execPath:()=>E4,exit:()=>s4,features:()=>u4,hasUncaughtExceptionCaptureCallback:()=>CJ,hrtime:()=>Aw,kill:()=>a4,listeners:()=>xJ,memoryUsage:()=>i4,moduleLoadList:()=>Jk,nextTick:()=>pJ,off:()=>N4,on:()=>Su,once:()=>k4,openStdin:()=>l4,pid:()=>w4,platform:()=>Lk,ppid:()=>x4,prependListener:()=>F4,prependOnceListener:()=>L4,reallyExit:()=>n4,release:()=>Xk,removeAllListeners:()=>D4,removeListener:()=>A4,resourceUsage:()=>o4,setSourceMapsEnabled:()=>O4,setUncaughtExceptionCaptureCallback:()=>f4,stderr:()=>b4,stdin:()=>S4,stdout:()=>y4,title:()=>jk,umask:()=>qk,uptime:()=>wJ,version:()=>Uk,versions:()=>Wk});function b5(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function cSe(){!Hh||!Eh||(Hh=!1,Eh.length?Ac=Eh.concat(Ac):ky=-1,Ac.length&&hJ())}function hJ(){if(!Hh){var e=setTimeout(cSe,0);Hh=!0;for(var t=Ac.length;t;){for(Eh=Ac,Ac=[];++ky1)for(var n=1;n{Vt(),qt(),Kt(),Ac=[],Hh=!1,ky=-1,mJ.prototype.run=function(){this.fun.apply(null,this.array)},jk="browser",Fk="x64",Lk="browser",Bk={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},zk=["/usr/bin/node"],Hk=[],Uk="v16.8.0",Wk={},Vk=function(e,t){console.warn((t?t+": ":"")+e)},Kk=function(e){b5("binding")},qk=function(e){return 0},Gk=function(){return"/"},Yk=function(e){},Xk={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Qk=Gi,Jk=[],Zk={},e4=!1,t4={},n4=Gi,r4=Gi,sy=function(){return{}},o4=sy,i4=sy,a4=Gi,s4=Gi,l4=Gi,c4={},u4={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},d4=Gi,f4=Gi,h4=Gi,p4=Gi,m4=Gi,g4=Gi,v4=Gi,y4=void 0,b4=void 0,S4=void 0,C4=Gi,w4=2,x4=1,E4="/bin/usr/node",_4=9229,$4="node",P4=[],O4=Gi,Ru={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Ru.now===void 0&&(XM=Date.now(),Ru.timing&&Ru.timing.navigationStart&&(XM=Ru.timing.navigationStart),Ru.now=()=>Date.now()-XM),Dw=1e9,Aw.bigint=function(e){var t=Aw(e);return typeof BigInt>"u"?t[0]*Dw+t[1]:BigInt(t[0]*Dw)+BigInt(t[1])},M4=10,T4={},R4=0,I4=Su,k4=Su,N4=Su,A4=Su,D4=Su,j4=Gi,F4=Su,L4=Su,S5={version:Uk,versions:Wk,arch:Fk,platform:Lk,release:Xk,_rawDebug:Qk,moduleLoadList:Jk,binding:Kk,_linkedBinding:gJ,_events:T4,_eventsCount:R4,_maxListeners:M4,on:Su,addListener:I4,once:k4,off:N4,removeListener:A4,removeAllListeners:D4,emit:j4,prependListener:F4,prependOnceListener:L4,listeners:xJ,domain:Zk,_exiting:e4,config:t4,dlopen:vJ,uptime:wJ,_getActiveRequests:yJ,_getActiveHandles:bJ,reallyExit:n4,_kill:r4,cpuUsage:sy,resourceUsage:o4,memoryUsage:i4,kill:a4,exit:s4,openStdin:l4,allowedNodeEnvironmentFlags:c4,assert:SJ,features:u4,_fatalExceptions:d4,setUncaughtExceptionCaptureCallback:f4,hasUncaughtExceptionCaptureCallback:CJ,emitWarning:Vk,nextTick:pJ,_tickCallback:h4,_debugProcess:p4,_debugEnd:m4,_startProfilerIdleNotifier:g4,_stopProfilerIdleNotifier:v4,stdout:y4,stdin:S4,stderr:b4,abort:C4,umask:qk,chdir:Yk,cwd:Gk,env:Bk,title:jk,argv:zk,execArgv:Hk,pid:w4,ppid:x4,execPath:E4,debugPort:_4,hrtime:Aw,argv0:$4,_preload_modules:P4,setSourceMapsEnabled:O4}}),Kt=Fi(()=>{uSe()}),Li={};Rp(Li,{Buffer:()=>l2,INSPECT_MAX_BYTES:()=>EJ,default:()=>Cu,kMaxLength:()=>_J});function dSe(){if(B4)return _m;B4=!0,_m.byteLength=s,_m.toByteArray=c,_m.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(p){var m=a(p),g=m[0],v=m[1];return(g+v)*3/4-v}function l(p,m,g){return(m+g)*3/4-g}function c(p){var m,g=a(p),v=g[0],b=g[1],y=new n(l(p,v,b)),S=0,w=b>0?v-4:v,E;for(E=0;E>16&255,y[S++]=m>>8&255,y[S++]=m&255;return b===2&&(m=t[p.charCodeAt(E)]<<2|t[p.charCodeAt(E+1)]>>4,y[S++]=m&255),b===1&&(m=t[p.charCodeAt(E)]<<10|t[p.charCodeAt(E+1)]<<4|t[p.charCodeAt(E+2)]>>2,y[S++]=m>>8&255,y[S++]=m&255),y}function u(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function f(p,m,g){for(var v,b=[],y=m;yw?w:S+y));return v===1?(m=p[g-1],b.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(p[g-2]<<8)+p[g-1],b.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),b.join("")}return _m}function fSe(){return z4?ly:(z4=!0,ly.read=function(e,t,n,r,o){var i,a,s=o*8-r-1,l=(1<>1,u=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=i*256+e[t+f],f+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=a*256+e[t+f],f+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-c}return(p?-1:1)*a*Math.pow(2,i-r)},ly.write=function(e,t,n,r,o,i){var a,s,l,c=i*8-o-1,u=(1<>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,m=r?1:-1,g=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+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a=a+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=s&255,p+=m,s/=256,o-=8);for(a=a<0;e[n+p]=a&255,p+=m,a/=256,c-=8);e[n+p-m]|=g*128},ly)}function hSe(){if(H4)return Od;H4=!0;let e=dSe(),t=fSe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Od.Buffer=a,Od.SlowBuffer=b,Od.INSPECT_MAX_BYTES=50;let r=2147483647;Od.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=o(),!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 o(){try{let U=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(U,H),U.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 i(U){if(U>r)throw new RangeError('The value "'+U+'" is invalid for option "size"');let H=new Uint8Array(U);return Object.setPrototypeOf(H,a.prototype),H}function a(U,H,q){if(typeof U=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(U)}return s(U,H,q)}a.poolSize=8192;function s(U,H,q){if(typeof U=="string")return f(U,H);if(ArrayBuffer.isView(U))return p(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(ye(U,ArrayBuffer)||U&&ye(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ye(U,SharedArrayBuffer)||U&&ye(U.buffer,SharedArrayBuffer)))return m(U,H,q);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let me=U.valueOf&&U.valueOf();if(me!=null&&me!==U)return a.from(me,H,q);let Ce=g(U);if(Ce)return Ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return a.from(U[Symbol.toPrimitive]("string"),H,q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}a.from=function(U,H,q){return s(U,H,q)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function c(U,H,q){return l(U),U<=0?i(U):H!==void 0?typeof q=="string"?i(U).fill(H,q):i(U).fill(H):i(U)}a.alloc=function(U,H,q){return c(U,H,q)};function u(U){return l(U),i(U<0?0:v(U)|0)}a.allocUnsafe=function(U){return u(U)},a.allocUnsafeSlow=function(U){return u(U)};function f(U,H){if((typeof H!="string"||H==="")&&(H="utf8"),!a.isEncoding(H))throw new TypeError("Unknown encoding: "+H);let q=y(U,H)|0,me=i(q),Ce=me.write(U,H);return Ce!==q&&(me=me.slice(0,Ce)),me}function h(U){let H=U.length<0?0:v(U.length)|0,q=i(H);for(let me=0;me=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return U|0}function b(U){return+U!=U&&(U=0),a.alloc(+U)}a.isBuffer=function(U){return U!=null&&U._isBuffer===!0&&U!==a.prototype},a.compare=function(U,H){if(ye(U,Uint8Array)&&(U=a.from(U,U.offset,U.byteLength)),ye(H,Uint8Array)&&(H=a.from(H,H.offset,H.byteLength)),!a.isBuffer(U)||!a.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===H)return 0;let q=U.length,me=H.length;for(let Ce=0,ue=Math.min(q,me);Ceme.length?(a.isBuffer(ue)||(ue=a.from(ue)),ue.copy(me,Ce)):Uint8Array.prototype.set.call(me,ue,Ce);else if(a.isBuffer(ue))ue.copy(me,Ce);else throw new TypeError('"list" argument must be an Array of Buffers');Ce+=ue.length}return me};function y(U,H){if(a.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||ye(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);let q=U.length,me=arguments.length>2&&arguments[2]===!0;if(!me&&q===0)return 0;let Ce=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return q;case"utf8":case"utf-8":return he(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q*2;case"hex":return q>>>1;case"base64":return Me(U).length;default:if(Ce)return me?-1:he(U).length;H=(""+H).toLowerCase(),Ce=!0}}a.byteLength=y;function S(U,H,q){let me=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((q===void 0||q>this.length)&&(q=this.length),q<=0)||(q>>>=0,H>>>=0,q<=H))return"";for(U||(U="utf8");;)switch(U){case"hex":return F(this,H,q);case"utf8":case"utf-8":return T(this,H,q);case"ascii":return j(this,H,q);case"latin1":case"binary":return k(this,H,q);case"base64":return M(this,H,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,H,q);default:if(me)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),me=!0}}a.prototype._isBuffer=!0;function w(U,H,q){let me=U[H];U[H]=U[q],U[q]=me}a.prototype.swap16=function(){let U=this.length;if(U%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(U+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(U,H,q,me,Ce){if(ye(U,Uint8Array)&&(U=a.from(U,U.offset,U.byteLength)),!a.isBuffer(U))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(H===void 0&&(H=0),q===void 0&&(q=U?U.length:0),me===void 0&&(me=0),Ce===void 0&&(Ce=this.length),H<0||q>U.length||me<0||Ce>this.length)throw new RangeError("out of range index");if(me>=Ce&&H>=q)return 0;if(me>=Ce)return-1;if(H>=q)return 1;if(H>>>=0,q>>>=0,me>>>=0,Ce>>>=0,this===U)return 0;let ue=Ce-me,Le=q-H,He=Math.min(ue,Le),ge=this.slice(me,Ce),De=U.slice(H,q);for(let qe=0;qe2147483647?q=2147483647:q<-2147483648&&(q=-2147483648),q=+q,ve(q)&&(q=Ce?0:U.length-1),q<0&&(q=U.length+q),q>=U.length){if(Ce)return-1;q=U.length-1}else if(q<0)if(Ce)q=0;else return-1;if(typeof H=="string"&&(H=a.from(H,me)),a.isBuffer(H))return H.length===0?-1:C(U,H,q,me,Ce);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?Ce?Uint8Array.prototype.indexOf.call(U,H,q):Uint8Array.prototype.lastIndexOf.call(U,H,q):C(U,[H],q,me,Ce);throw new TypeError("val must be string, number or Buffer")}function C(U,H,q,me,Ce){let ue=1,Le=U.length,He=H.length;if(me!==void 0&&(me=String(me).toLowerCase(),me==="ucs2"||me==="ucs-2"||me==="utf16le"||me==="utf-16le")){if(U.length<2||H.length<2)return-1;ue=2,Le/=2,He/=2,q/=2}function ge(qe,je){return ue===1?qe[je]:qe.readUInt16BE(je*ue)}let De;if(Ce){let qe=-1;for(De=q;DeLe&&(q=Le-He),De=q;De>=0;De--){let qe=!0;for(let je=0;jeCe&&(me=Ce)):me=Ce;let ue=H.length;me>ue/2&&(me=ue/2);let Le;for(Le=0;Le>>0,isFinite(q)?(q=q>>>0,me===void 0&&(me="utf8")):(me=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Ce=this.length-H;if((q===void 0||q>Ce)&&(q=Ce),U.length>0&&(q<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");let ue=!1;for(;;)switch(me){case"hex":return x(this,U,H,q);case"utf8":case"utf-8":return _(this,U,H,q);case"ascii":case"latin1":case"binary":return P(this,U,H,q);case"base64":return O(this,U,H,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,U,H,q);default:if(ue)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),ue=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(U,H,q){return H===0&&q===U.length?e.fromByteArray(U):e.fromByteArray(U.slice(H,q))}function T(U,H,q){q=Math.min(U.length,q);let me=[],Ce=H;for(;Ce239?4:ue>223?3:ue>191?2:1;if(Ce+He<=q){let ge,De,qe,je;switch(He){case 1:ue<128&&(Le=ue);break;case 2:ge=U[Ce+1],(ge&192)===128&&(je=(ue&31)<<6|ge&63,je>127&&(Le=je));break;case 3:ge=U[Ce+1],De=U[Ce+2],(ge&192)===128&&(De&192)===128&&(je=(ue&15)<<12|(ge&63)<<6|De&63,je>2047&&(je<55296||je>57343)&&(Le=je));break;case 4:ge=U[Ce+1],De=U[Ce+2],qe=U[Ce+3],(ge&192)===128&&(De&192)===128&&(qe&192)===128&&(je=(ue&15)<<18|(ge&63)<<12|(De&63)<<6|qe&63,je>65535&&je<1114112&&(Le=je))}}Le===null?(Le=65533,He=1):Le>65535&&(Le-=65536,me.push(Le>>>10&1023|55296),Le=56320|Le&1023),me.push(Le),Ce+=He}return A(me)}let D=4096;function A(U){let H=U.length;if(H<=D)return String.fromCharCode.apply(String,U);let q="",me=0;for(;meme)&&(q=me);let Ce="";for(let ue=H;ueq&&(U=q),H<0?(H+=q,H<0&&(H=0)):H>q&&(H=q),Hq)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(U,H,q){U=U>>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U],Ce=1,ue=0;for(;++ue>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U+--H],Ce=1;for(;H>0&&(Ce*=256);)me+=this[U+--H]*Ce;return me},a.prototype.readUint8=a.prototype.readUInt8=function(U,H){return U=U>>>0,H||W(U,1,this.length),this[U]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(U,H){return U=U>>>0,H||W(U,2,this.length),this[U]|this[U+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(U,H){return U=U>>>0,H||W(U,2,this.length),this[U]<<8|this[U+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(U,H){return U=U>>>0,H||W(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+this[U+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]*16777216+(this[U+1]<<16|this[U+2]<<8|this[U+3])},a.prototype.readBigUInt64LE=Pe(function(U){U=U>>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=H+this[++U]*2**8+this[++U]*2**16+this[++U]*2**24,Ce=this[++U]+this[++U]*2**8+this[++U]*2**16+q*2**24;return BigInt(me)+(BigInt(Ce)<>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=H*2**24+this[++U]*2**16+this[++U]*2**8+this[++U],Ce=this[++U]*2**24+this[++U]*2**16+this[++U]*2**8+q;return(BigInt(me)<>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U],Ce=1,ue=0;for(;++ue=Ce&&(me-=Math.pow(2,8*H)),me},a.prototype.readIntBE=function(U,H,q){U=U>>>0,H=H>>>0,q||W(U,H,this.length);let me=H,Ce=1,ue=this[U+--me];for(;me>0&&(Ce*=256);)ue+=this[U+--me]*Ce;return Ce*=128,ue>=Ce&&(ue-=Math.pow(2,8*H)),ue},a.prototype.readInt8=function(U,H){return U=U>>>0,H||W(U,1,this.length),this[U]&128?(255-this[U]+1)*-1:this[U]},a.prototype.readInt16LE=function(U,H){U=U>>>0,H||W(U,2,this.length);let q=this[U]|this[U+1]<<8;return q&32768?q|4294901760:q},a.prototype.readInt16BE=function(U,H){U=U>>>0,H||W(U,2,this.length);let q=this[U+1]|this[U]<<8;return q&32768?q|4294901760:q},a.prototype.readInt32LE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},a.prototype.readInt32BE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},a.prototype.readBigInt64LE=Pe(function(U){U=U>>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=this[U+4]+this[U+5]*2**8+this[U+6]*2**16+(q<<24);return(BigInt(me)<>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=(H<<24)+this[++U]*2**16+this[++U]*2**8+this[++U];return(BigInt(me)<>>0,H||W(U,4,this.length),t.read(this,U,!0,23,4)},a.prototype.readFloatBE=function(U,H){return U=U>>>0,H||W(U,4,this.length),t.read(this,U,!1,23,4)},a.prototype.readDoubleLE=function(U,H){return U=U>>>0,H||W(U,8,this.length),t.read(this,U,!0,52,8)},a.prototype.readDoubleBE=function(U,H){return U=U>>>0,H||W(U,8,this.length),t.read(this,U,!1,52,8)};function K(U,H,q,me,Ce,ue){if(!a.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>Ce||HU.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(U,H,q,me){if(U=+U,H=H>>>0,q=q>>>0,!me){let Le=Math.pow(2,8*q)-1;K(this,U,H,q,Le,0)}let Ce=1,ue=0;for(this[H]=U&255;++ue>>0,q=q>>>0,!me){let Le=Math.pow(2,8*q)-1;K(this,U,H,q,Le,0)}let Ce=q-1,ue=1;for(this[H+Ce]=U&255;--Ce>=0&&(ue*=256);)this[H+Ce]=U/ue&255;return H+q},a.prototype.writeUint8=a.prototype.writeUInt8=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,1,255,0),this[H]=U&255,H+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,65535,0),this[H]=U&255,this[H+1]=U>>>8,H+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,65535,0),this[H]=U>>>8,this[H+1]=U&255,H+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,4294967295,0),this[H+3]=U>>>24,this[H+2]=U>>>16,this[H+1]=U>>>8,this[H]=U&255,H+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,4294967295,0),this[H]=U>>>24,this[H+1]=U>>>16,this[H+2]=U>>>8,this[H+3]=U&255,H+4};function L(U,H,q,me,Ce){ce(H,me,Ce,U,q,7);let ue=Number(H&BigInt(4294967295));U[q++]=ue,ue=ue>>8,U[q++]=ue,ue=ue>>8,U[q++]=ue,ue=ue>>8,U[q++]=ue;let Le=Number(H>>BigInt(32)&BigInt(4294967295));return U[q++]=Le,Le=Le>>8,U[q++]=Le,Le=Le>>8,U[q++]=Le,Le=Le>>8,U[q++]=Le,q}function Q(U,H,q,me,Ce){ce(H,me,Ce,U,q,7);let ue=Number(H&BigInt(4294967295));U[q+7]=ue,ue=ue>>8,U[q+6]=ue,ue=ue>>8,U[q+5]=ue,ue=ue>>8,U[q+4]=ue;let Le=Number(H>>BigInt(32)&BigInt(4294967295));return U[q+3]=Le,Le=Le>>8,U[q+2]=Le,Le=Le>>8,U[q+1]=Le,Le=Le>>8,U[q]=Le,q+8}a.prototype.writeBigUInt64LE=Pe(function(U,H=0){return L(this,U,H,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Pe(function(U,H=0){return Q(this,U,H,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(U,H,q,me){if(U=+U,H=H>>>0,!me){let He=Math.pow(2,8*q-1);K(this,U,H,q,He-1,-He)}let Ce=0,ue=1,Le=0;for(this[H]=U&255;++Ce>0)-Le&255;return H+q},a.prototype.writeIntBE=function(U,H,q,me){if(U=+U,H=H>>>0,!me){let He=Math.pow(2,8*q-1);K(this,U,H,q,He-1,-He)}let Ce=q-1,ue=1,Le=0;for(this[H+Ce]=U&255;--Ce>=0&&(ue*=256);)U<0&&Le===0&&this[H+Ce+1]!==0&&(Le=1),this[H+Ce]=(U/ue>>0)-Le&255;return H+q},a.prototype.writeInt8=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,1,127,-128),U<0&&(U=255+U+1),this[H]=U&255,H+1},a.prototype.writeInt16LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,32767,-32768),this[H]=U&255,this[H+1]=U>>>8,H+2},a.prototype.writeInt16BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,32767,-32768),this[H]=U>>>8,this[H+1]=U&255,H+2},a.prototype.writeInt32LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,2147483647,-2147483648),this[H]=U&255,this[H+1]=U>>>8,this[H+2]=U>>>16,this[H+3]=U>>>24,H+4},a.prototype.writeInt32BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),this[H]=U>>>24,this[H+1]=U>>>16,this[H+2]=U>>>8,this[H+3]=U&255,H+4},a.prototype.writeBigInt64LE=Pe(function(U,H=0){return L(this,U,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Pe(function(U,H=0){return Q(this,U,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ee(U,H,q,me,Ce,ue){if(q+me>U.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("Index out of range")}function re(U,H,q,me,Ce){return H=+H,q=q>>>0,Ce||ee(U,H,q,4),t.write(U,H,q,me,23,4),q+4}a.prototype.writeFloatLE=function(U,H,q){return re(this,U,H,!0,q)},a.prototype.writeFloatBE=function(U,H,q){return re(this,U,H,!1,q)};function ie(U,H,q,me,Ce){return H=+H,q=q>>>0,Ce||ee(U,H,q,8),t.write(U,H,q,me,52,8),q+8}a.prototype.writeDoubleLE=function(U,H,q){return ie(this,U,H,!0,q)},a.prototype.writeDoubleBE=function(U,H,q){return ie(this,U,H,!1,q)},a.prototype.copy=function(U,H,q,me){if(!a.isBuffer(U))throw new TypeError("argument should be a Buffer");if(q||(q=0),!me&&me!==0&&(me=this.length),H>=U.length&&(H=U.length),H||(H=0),me>0&&me=this.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),U.length-H>>0,q=q===void 0?this.length:q>>>0,U||(U=0);let Ce;if(typeof U=="number")for(Ce=H;Ce2**32?Ce=ne(String(q)):typeof q=="bigint"&&(Ce=String(q),(q>BigInt(2)**BigInt(32)||q<-(BigInt(2)**BigInt(32)))&&(Ce=ne(Ce)),Ce+="n"),me+=` It must be ${H}. Received ${Ce}`,me},RangeError);function ne(U){let H="",q=U.length,me=U[0]==="-"?1:0;for(;q>=me+4;q-=3)H=`_${U.slice(q-3,q)}${H}`;return`${U.slice(0,q)}${H}`}function le(U,H,q){oe(H,"offset"),(U[H]===void 0||U[H+q]===void 0)&&se(H,U.length-(q+1))}function ce(U,H,q,me,Ce,ue){if(U>q||U= 0${Le} and < 2${Le} ** ${(ue+1)*8}${Le}`:He=`>= -(2${Le} ** ${(ue+1)*8-1}${Le}) and < 2 ** ${(ue+1)*8-1}${Le}`,new G.ERR_OUT_OF_RANGE("value",He,U)}le(me,Ce,ue)}function oe(U,H){if(typeof U!="number")throw new G.ERR_INVALID_ARG_TYPE(H,"number",U)}function se(U,H,q){throw Math.floor(U)!==U?(oe(U,q),new G.ERR_OUT_OF_RANGE("offset","an integer",U)):H<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,U)}let fe=/[^+/0-9A-Za-z-_]/g;function te(U){if(U=U.split("=")[0],U=U.trim().replace(fe,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function he(U,H){H=H||1/0;let q,me=U.length,Ce=null,ue=[];for(let Le=0;Le55295&&q<57344){if(!Ce){if(q>56319){(H-=3)>-1&&ue.push(239,191,189);continue}else if(Le+1===me){(H-=3)>-1&&ue.push(239,191,189);continue}Ce=q;continue}if(q<56320){(H-=3)>-1&&ue.push(239,191,189),Ce=q;continue}q=(Ce-55296<<10|q-56320)+65536}else Ce&&(H-=3)>-1&&ue.push(239,191,189);if(Ce=null,q<128){if((H-=1)<0)break;ue.push(q)}else if(q<2048){if((H-=2)<0)break;ue.push(q>>6|192,q&63|128)}else if(q<65536){if((H-=3)<0)break;ue.push(q>>12|224,q>>6&63|128,q&63|128)}else if(q<1114112){if((H-=4)<0)break;ue.push(q>>18|240,q>>12&63|128,q>>6&63|128,q&63|128)}else throw new Error("Invalid code point")}return ue}function pe(U){let H=[];for(let q=0;q>8,Ce=q%256,ue.push(Ce),ue.push(me);return ue}function Me(U){return e.toByteArray(te(U))}function Se(U,H,q,me){let Ce;for(Ce=0;Ce=H.length||Ce>=U.length);++Ce)H[Ce+q]=U[Ce];return Ce}function ye(U,H){return U instanceof H||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===H.name}function ve(U){return U!==U}let be=function(){let U="0123456789abcdef",H=new Array(256);for(let q=0;q<16;++q){let me=q*16;for(let Ce=0;Ce<16;++Ce)H[me+Ce]=U[q]+U[Ce]}return H}();function Pe(U){return typeof BigInt>"u"?Ne:U}function Ne(){throw new Error("BigInt not supported")}return Od}var _m,B4,ly,z4,Od,H4,Cu,l2,EJ,_J,Bi=Fi(()=>{Vt(),qt(),Kt(),_m={},B4=!1,ly={},z4=!1,Od={},H4=!1,Cu=hSe(),Cu.Buffer,Cu.SlowBuffer,Cu.INSPECT_MAX_BYTES,Cu.kMaxLength,l2=Cu.Buffer,EJ=Cu.INSPECT_MAX_BYTES,_J=Cu.kMaxLength}),qt=Fi(()=>{Bi()}),pSe=Zt(e=>{Vt(),qt(),Kt(),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}),vi=Zt((e,t)=>{Vt(),qt(),Kt(),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,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},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,o){return Object.defineProperty(n,r,o)},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,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},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,o){return n.set(r,o)},Uint8Array}}),Qu=Zt((e,t)=>{Vt(),qt(),Kt();var n=(Bi(),Qr(Li)),r=Object.getPrototypeOf(async function(){}).constructor,o=globalThis.Blob||n.Blob,i=typeof o<"u"?function(s){return s instanceof o}: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=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...f)=>u?c(u):l(...f))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let f=l.shift();return u==="f"?f.toFixed(6):u==="j"?JSON.stringify(f):u==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.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:i},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),C5=Zt((e,t)=>{Vt(),qt(),Kt();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}),Ga=Zt((e,t)=>{Vt(),qt(),Kt();var{format:n,inspect:r,AggregateError:o}=Qu(),i=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function f(y,S){if(!y)throw new u.ERR_INTERNAL_ASSERTION(S)}function h(y){let S="",w=y.length,E=y[0]==="-"?1:0;for(;w>=E+4;w-=3)S=`_${y.slice(w-3,w)}${S}`;return`${y.slice(0,w)}${S}`}function p(y,S,w){if(typeof S=="function")return f(S.length<=w.length,`Code: ${y}; The provided arguments length (${w.length}) does not match the required ones (${S.length}).`),S(...w);let E=(S.match(/%[dfijoOs]/g)||[]).length;return f(E===w.length,`Code: ${y}; The provided arguments length (${w.length}) does not match the required ones (${E}).`),w.length===0?S:n(S,...w)}function m(y,S,w){w||(w=Error);class E extends w{constructor(...x){super(p(y,S,x))}toString(){return`${this.name} [${y}]: ${this.message}`}}Object.defineProperties(E.prototype,{name:{value:w.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${y}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),E.prototype.code=y,E.prototype[a]=!0,u[y]=E}function g(y){let S=c+y.name;return Object.defineProperty(y,"name",{value:S}),y}function v(y,S){if(y&&S&&y!==S){if(Array.isArray(S.errors))return S.errors.push(y),S;let w=new i([S,y],S.message);return w.code=S.code,w}return y||S}var b=class extends Error{constructor(y="The operation was aborted",S=void 0){if(S!==void 0&&typeof S!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",S);super(y,S),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(y,S,w)=>{f(typeof y=="string","'name' must be a string"),Array.isArray(S)||(S=[S]);let E="The ";y.endsWith(" argument")?E+=`${y} `:E+=`"${y}" ${y.includes(".")?"property":"argument"} `,E+="must be ";let C=[],x=[],_=[];for(let O of S)f(typeof O=="string","All expected entries have to be of type string"),s.includes(O)?C.push(O.toLowerCase()):l.test(O)?x.push(O):(f(O!=="object",'The value "object" should be written as "Object"'),_.push(O));if(x.length>0){let O=C.indexOf("object");O!==-1&&(C.splice(C,O,1),x.push("Object"))}if(C.length>0){switch(C.length){case 1:E+=`of type ${C[0]}`;break;case 2:E+=`one of type ${C[0]} or ${C[1]}`;break;default:{let O=C.pop();E+=`one of type ${C.join(", ")}, or ${O}`}}(x.length>0||_.length>0)&&(E+=" or ")}if(x.length>0){switch(x.length){case 1:E+=`an instance of ${x[0]}`;break;case 2:E+=`an instance of ${x[0]} or ${x[1]}`;break;default:{let O=x.pop();E+=`an instance of ${x.join(", ")}, or ${O}`}}_.length>0&&(E+=" or ")}switch(_.length){case 0:break;case 1:_[0].toLowerCase()!==_[0]&&(E+="an "),E+=`${_[0]}`;break;case 2:E+=`one of ${_[0]} or ${_[1]}`;break;default:{let O=_.pop();E+=`one of ${_.join(", ")}, or ${O}`}}if(w==null)E+=`. Received ${w}`;else if(typeof w=="function"&&w.name)E+=`. Received function ${w.name}`;else if(typeof w=="object"){var P;if((P=w.constructor)!==null&&P!==void 0&&P.name)E+=`. Received an instance of ${w.constructor.name}`;else{let O=r(w,{depth:-1});E+=`. Received ${O}`}}else{let O=r(w,{colors:!1});O.length>25&&(O=`${O.slice(0,25)}...`),E+=`. Received type ${typeof w} (${O})`}return E},TypeError),m("ERR_INVALID_ARG_VALUE",(y,S,w="is invalid")=>{let E=r(S);return E.length>128&&(E=E.slice(0,128)+"..."),`The ${y.includes(".")?"property":"argument"} '${y}' ${w}. Received ${E}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(y,S,w)=>{var E;let C=w!=null&&(E=w.constructor)!==null&&E!==void 0&&E.name?`instance of ${w.constructor.name}`:`type ${typeof w}`;return`Expected ${y} to be returned from the "${S}" function but got ${C}.`},TypeError),m("ERR_MISSING_ARGS",(...y)=>{f(y.length>0,"At least one arg needs to be specified");let S,w=y.length;switch(y=(Array.isArray(y)?y:[y]).map(E=>`"${E}"`).join(" or "),w){case 1:S+=`The ${y[0]} argument`;break;case 2:S+=`The ${y[0]} and ${y[1]} arguments`;break;default:{let E=y.pop();S+=`The ${y.join(", ")}, and ${E} arguments`}break}return`${S} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(y,S,w)=>{f(S,'Missing "range" argument');let E;return Number.isInteger(w)&&Math.abs(w)>2**32?E=h(String(w)):typeof w=="bigint"?(E=String(w),(w>2n**32n||w<-(2n**32n))&&(E=h(E)),E+="n"):E=r(w),`The value of "${y}" is out of range. It must be ${S}. Received ${E}`},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:b,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),I_=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:o,ArrayPrototypeMap:i,NumberIsInteger:a,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=vi(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:S,ERR_OUT_OF_RANGE:w,ERR_UNKNOWN_SIGNAL:E}}=Ga(),{normalizeEncoding:C}=Qu(),{isAsyncFunction:x,isArrayBufferView:_}=Qu().types,P={};function O(Se){return Se===(Se|0)}function I(Se){return Se===Se>>>0}var M=/^[0-7]+$/,T="must be a 32-bit unsigned integer or an octal string";function D(Se,ye,ve){if(typeof Se>"u"&&(Se=ve),typeof Se=="string"){if(h(M,Se)===null)throw new S(ye,Se,T);Se=u(Se,8)}return k(Se,ye),Se}var A=v((Se,ye,ve=c,be=l)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);if(Sebe)throw new w(ye,`>= ${ve} && <= ${be}`,Se)}),j=v((Se,ye,ve=-2147483648,be=2147483647)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);if(Sebe)throw new w(ye,`>= ${ve} && <= ${be}`,Se)}),k=v((Se,ye,ve=!1)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);let be=ve?1:0,Pe=4294967295;if(SePe)throw new w(ye,`>= ${be} && <= ${Pe}`,Se)});function F(Se,ye){if(typeof Se!="string")throw new y(ye,"string",Se)}function V(Se,ye,ve=void 0,be){if(typeof Se!="number")throw new y(ye,"number",Se);if(ve!=null&&Sebe||(ve!=null||be!=null)&&s(Se))throw new w(ye,`${ve!=null?`>= ${ve}`:""}${ve!=null&&be!=null?" && ":""}${be!=null?`<= ${be}`:""}`,Se)}var W=v((Se,ye,ve)=>{if(!r(ve,Se)){let be="must be one of: "+o(i(ve,Pe=>typeof Pe=="string"?`'${Pe}'`:p(Pe)),", ");throw new S(ye,Se,be)}});function K(Se,ye){if(typeof Se!="boolean")throw new y(ye,"boolean",Se)}function L(Se,ye,ve){return Se==null||!f(Se,ye)?ve:Se[ye]}var Q=v((Se,ye,ve=null)=>{let be=L(ve,"allowArray",!1),Pe=L(ve,"allowFunction",!1);if(!L(ve,"nullable",!1)&&Se===null||!be&&n(Se)||typeof Se!="object"&&(!Pe||typeof Se!="function"))throw new y(ye,"Object",Se)}),ee=v((Se,ye)=>{if(Se!=null&&typeof Se!="object"&&typeof Se!="function")throw new y(ye,"a dictionary",Se)}),re=v((Se,ye,ve=0)=>{if(!n(Se))throw new y(ye,"Array",Se);if(Se.length{if(!_(Se))throw new y(ye,["Buffer","TypedArray","DataView"],Se)});function le(Se,ye){let ve=C(ye),be=Se.length;if(ve==="hex"&&be%2!==0)throw new S("encoding",ye,`is invalid for data of length ${be}`)}function ce(Se,ye="Port",ve=!0){if(typeof Se!="number"&&typeof Se!="string"||typeof Se=="string"&&g(Se).length===0||+Se!==+Se>>>0||Se>65535||Se===0&&!ve)throw new b(ye,Se,ve);return Se|0}var oe=v((Se,ye)=>{if(Se!==void 0&&(Se===null||typeof Se!="object"||!("aborted"in Se)))throw new y(ye,"AbortSignal",Se)}),se=v((Se,ye)=>{if(typeof Se!="function")throw new y(ye,"Function",Se)}),fe=v((Se,ye)=>{if(typeof Se!="function"||x(Se))throw new y(ye,"Function",Se)}),te=v((Se,ye)=>{if(Se!==void 0)throw new y(ye,"undefined",Se)});function he(Se,ye,ve){if(!r(ve,Se))throw new y(ye,`('${o(ve,"|")}')`,Se)}var pe=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Oe(Se,ye){if(typeof Se>"u"||!h(pe,Se))throw new S(ye,Se,'must be an array or string of format "; rel=preload; as=style"')}function Me(Se){if(typeof Se=="string")return Oe(Se,"hints"),Se;if(n(Se)){let ye=Se.length,ve="";if(ye===0)return ve;for(let be=0;be; rel=preload; as=style"')}t.exports={isInt32:O,isUint32:I,parseFileMode:D,validateArray:re,validateStringArray:ie,validateBooleanArray:G,validateBoolean:K,validateBuffer:ne,validateDictionary:ee,validateEncoding:le,validateFunction:se,validateInt32:j,validateInteger:A,validateNumber:V,validateObject:Q,validateOneOf:W,validatePlainFunction:fe,validatePort:ce,validateSignalName:X,validateString:F,validateUint32:k,validateUndefined:te,validateUnion:he,validateAbortSignal:oe,validateLinkHeaderValue:Me}}),Ip=Zt((e,t)=>{Vt(),qt(),Kt();var n=t.exports={},r,o;function i(){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=i}catch{r=i}try{typeof clearTimeout=="function"?o=clearTimeout:o=a}catch{o=a}})();function s(b){if(r===setTimeout)return setTimeout(b,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(b,0);try{return r(b,0)}catch{try{return r.call(null,b,0)}catch{return r.call(this,b,0)}}}function l(b){if(o===clearTimeout)return clearTimeout(b);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(b);try{return o(b)}catch{try{return o.call(null,b)}catch{return o.call(this,b)}}}var c=[],u=!1,f,h=-1;function p(){!u||!f||(u=!1,f.length?c=f.concat(c):h=-1,c.length&&m())}function m(){if(!u){var b=s(p);u=!0;for(var y=c.length;y;){for(f=c,c=[];++h1)for(var S=1;S{Vt(),qt(),Kt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:o,SymbolFor:i}=vi(),a=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=i("nodejs.webstream.isClosedPromise"),f=i("nodejs.webstream.controllerErrorFunction");function h(L,Q=!1){var ee;return!!(L&&typeof L.pipe=="function"&&typeof L.on=="function"&&(!Q||typeof L.pause=="function"&&typeof L.resume=="function")&&(!L._writableState||((ee=L._readableState)===null||ee===void 0?void 0:ee.readable)!==!1)&&(!L._writableState||L._readableState))}function p(L){var Q;return!!(L&&typeof L.write=="function"&&typeof L.on=="function"&&(!L._readableState||((Q=L._writableState)===null||Q===void 0?void 0:Q.writable)!==!1))}function m(L){return!!(L&&typeof L.pipe=="function"&&L._readableState&&typeof L.on=="function"&&typeof L.write=="function")}function g(L){return L&&(L._readableState||L._writableState||typeof L.write=="function"&&typeof L.on=="function"||typeof L.pipe=="function"&&typeof L.on=="function")}function v(L){return!!(L&&!g(L)&&typeof L.pipeThrough=="function"&&typeof L.getReader=="function"&&typeof L.cancel=="function")}function b(L){return!!(L&&!g(L)&&typeof L.getWriter=="function"&&typeof L.abort=="function")}function y(L){return!!(L&&!g(L)&&typeof L.readable=="object"&&typeof L.writable=="object")}function S(L){return v(L)||b(L)||y(L)}function w(L,Q){return L==null?!1:Q===!0?typeof L[r]=="function":Q===!1?typeof L[o]=="function":typeof L[r]=="function"||typeof L[o]=="function"}function E(L){if(!g(L))return null;let Q=L._writableState,ee=L._readableState,re=Q||ee;return!!(L.destroyed||L[a]||re!=null&&re.destroyed)}function C(L){if(!p(L))return null;if(L.writableEnded===!0)return!0;let Q=L._writableState;return Q!=null&&Q.errored?!1:typeof(Q==null?void 0:Q.ended)!="boolean"?null:Q.ended}function x(L,Q){if(!p(L))return null;if(L.writableFinished===!0)return!0;let ee=L._writableState;return ee!=null&&ee.errored?!1:typeof(ee==null?void 0:ee.finished)!="boolean"?null:!!(ee.finished||Q===!1&&ee.ended===!0&&ee.length===0)}function _(L){if(!h(L))return null;if(L.readableEnded===!0)return!0;let Q=L._readableState;return!Q||Q.errored?!1:typeof(Q==null?void 0:Q.ended)!="boolean"?null:Q.ended}function P(L,Q){if(!h(L))return null;let ee=L._readableState;return ee!=null&&ee.errored?!1:typeof(ee==null?void 0:ee.endEmitted)!="boolean"?null:!!(ee.endEmitted||Q===!1&&ee.ended===!0&&ee.length===0)}function O(L){return L&&L[l]!=null?L[l]:typeof(L==null?void 0:L.readable)!="boolean"?null:E(L)?!1:h(L)&&L.readable&&!P(L)}function I(L){return typeof(L==null?void 0:L.writable)!="boolean"?null:E(L)?!1:p(L)&&L.writable&&!C(L)}function M(L,Q){return g(L)?E(L)?!0:!((Q==null?void 0:Q.readable)!==!1&&O(L)||(Q==null?void 0:Q.writable)!==!1&&I(L)):null}function T(L){var Q,ee;return g(L)?L.writableErrored?L.writableErrored:(Q=(ee=L._writableState)===null||ee===void 0?void 0:ee.errored)!==null&&Q!==void 0?Q:null:null}function D(L){var Q,ee;return g(L)?L.readableErrored?L.readableErrored:(Q=(ee=L._readableState)===null||ee===void 0?void 0:ee.errored)!==null&&Q!==void 0?Q:null:null}function A(L){if(!g(L))return null;if(typeof L.closed=="boolean")return L.closed;let Q=L._writableState,ee=L._readableState;return typeof(Q==null?void 0:Q.closed)=="boolean"||typeof(ee==null?void 0:ee.closed)=="boolean"?(Q==null?void 0:Q.closed)||(ee==null?void 0:ee.closed):typeof L._closed=="boolean"&&j(L)?L._closed:null}function j(L){return typeof L._closed=="boolean"&&typeof L._defaultKeepAlive=="boolean"&&typeof L._removedConnection=="boolean"&&typeof L._removedContLen=="boolean"}function k(L){return typeof L._sent100=="boolean"&&j(L)}function F(L){var Q;return typeof L._consuming=="boolean"&&typeof L._dumped=="boolean"&&((Q=L.req)===null||Q===void 0?void 0:Q.upgradeOrConnect)===void 0}function V(L){if(!g(L))return null;let Q=L._writableState,ee=L._readableState,re=Q||ee;return!re&&k(L)||!!(re&&re.autoDestroy&&re.emitClose&&re.closed===!1)}function W(L){var Q;return!!(L&&((Q=L[c])!==null&&Q!==void 0?Q:L.readableDidRead||L.readableAborted))}function K(L){var Q,ee,re,ie,G,X,ne,le,ce,oe;return!!(L&&((Q=(ee=(re=(ie=(G=(X=L[s])!==null&&X!==void 0?X:L.readableErrored)!==null&&G!==void 0?G:L.writableErrored)!==null&&ie!==void 0?ie:(ne=L._readableState)===null||ne===void 0?void 0:ne.errorEmitted)!==null&&re!==void 0?re:(le=L._writableState)===null||le===void 0?void 0:le.errorEmitted)!==null&&ee!==void 0?ee:(ce=L._readableState)===null||ce===void 0?void 0:ce.errored)!==null&&Q!==void 0?Q:!((oe=L._writableState)===null||oe===void 0)&&oe.errored))}t.exports={kDestroyed:a,isDisturbed:W,kIsDisturbed:c,isErrored:K,kIsErrored:s,isReadable:O,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:A,isDestroyed:E,isDuplexNodeStream:m,isFinished:M,isIterable:w,isReadableNodeStream:h,isReadableStream:v,isReadableEnded:_,isReadableFinished:P,isReadableErrored:D,isNodeStream:g,isWebStream:S,isWritable:I,isWritableNodeStream:p,isWritableStream:b,isWritableEnded:C,isWritableFinished:x,isWritableErrored:T,isServerRequest:F,isServerResponse:k,willEmitClose:V,isTransformStream:y}}),Nf=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{AbortError:r,codes:o}=Ga(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:s,once:l}=Qu(),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:h}=I_(),{Promise:p,PromisePrototypeThen:m}=vi(),{isClosed:g,isReadable:v,isReadableNodeStream:b,isReadableStream:y,isReadableFinished:S,isReadableErrored:w,isWritable:E,isWritableNodeStream:C,isWritableStream:x,isWritableFinished:_,isWritableErrored:P,isNodeStream:O,willEmitClose:I,kIsClosedPromise:M}=ld();function T(F){return F.setHeader&&typeof F.abort=="function"}var D=()=>{};function A(F,V,W){var K,L;if(arguments.length===2?(W=V,V=s):V==null?V=s:f(V,"options"),u(W,"callback"),c(V.signal,"options.signal"),W=l(W),y(F)||x(F))return j(F,V,W);if(!O(F))throw new i("stream",["ReadableStream","WritableStream","Stream"],F);let Q=(K=V.readable)!==null&&K!==void 0?K:b(F),ee=(L=V.writable)!==null&&L!==void 0?L:C(F),re=F._writableState,ie=F._readableState,G=()=>{F.writable||le()},X=I(F)&&b(F)===Q&&C(F)===ee,ne=_(F,!1),le=()=>{ne=!0,F.destroyed&&(X=!1),!(X&&(!F.readable||Q))&&(!Q||ce)&&W.call(F)},ce=S(F,!1),oe=()=>{ce=!0,F.destroyed&&(X=!1),!(X&&(!F.writable||ee))&&(!ee||ne)&&W.call(F)},se=Me=>{W.call(F,Me)},fe=g(F),te=()=>{fe=!0;let Me=P(F)||w(F);if(Me&&typeof Me!="boolean")return W.call(F,Me);if(Q&&!ce&&b(F,!0)&&!S(F,!1))return W.call(F,new a);if(ee&&!ne&&!_(F,!1))return W.call(F,new a);W.call(F)},he=()=>{fe=!0;let Me=P(F)||w(F);if(Me&&typeof Me!="boolean")return W.call(F,Me);W.call(F)},pe=()=>{F.req.on("finish",le)};T(F)?(F.on("complete",le),X||F.on("abort",te),F.req?pe():F.on("request",pe)):ee&&!re&&(F.on("end",G),F.on("close",G)),!X&&typeof F.aborted=="boolean"&&F.on("aborted",te),F.on("end",oe),F.on("finish",le),V.error!==!1&&F.on("error",se),F.on("close",te),fe?n.nextTick(te):re!=null&&re.errorEmitted||ie!=null&&ie.errorEmitted?X||n.nextTick(he):(!Q&&(!X||v(F))&&(ne||E(F)===!1)||!ee&&(!X||E(F))&&(ce||v(F)===!1)||ie&&F.req&&F.aborted)&&n.nextTick(he);let Oe=()=>{W=D,F.removeListener("aborted",te),F.removeListener("complete",le),F.removeListener("abort",te),F.removeListener("request",pe),F.req&&F.req.removeListener("finish",le),F.removeListener("end",G),F.removeListener("close",G),F.removeListener("finish",le),F.removeListener("end",oe),F.removeListener("error",se),F.removeListener("close",te)};if(V.signal&&!fe){let Me=()=>{let Se=W;Oe(),Se.call(F,new r(void 0,{cause:V.signal.reason}))};if(V.signal.aborted)n.nextTick(Me);else{let Se=W;W=l((...ye)=>{V.signal.removeEventListener("abort",Me),Se.apply(F,ye)}),V.signal.addEventListener("abort",Me)}}return Oe}function j(F,V,W){let K=!1,L=D;if(V.signal)if(L=()=>{K=!0,W.call(F,new r(void 0,{cause:V.signal.reason}))},V.signal.aborted)n.nextTick(L);else{let ee=W;W=l((...re)=>{V.signal.removeEventListener("abort",L),ee.apply(F,re)}),V.signal.addEventListener("abort",L)}let Q=(...ee)=>{K||n.nextTick(()=>W.apply(F,ee))};return m(F[M].promise,Q,Q),D}function k(F,V){var W;let K=!1;return V===null&&(V=s),(W=V)!==null&&W!==void 0&&W.cleanup&&(h(V.cleanup,"cleanup"),K=V.cleanup),new p((L,Q)=>{let ee=A(F,V,re=>{K&&ee(),re?Q(re):L()})})}t.exports=A,t.exports.finished=k}),yv=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:i}=Ga(),{Symbol:a}=vi(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=ld(),f=a("kDestroy"),h=a("kConstruct");function p(M,T,D){M&&(M.stack,T&&!T.errored&&(T.errored=M),D&&!D.errored&&(D.errored=M))}function m(M,T){let D=this._readableState,A=this._writableState,j=A||D;return A!=null&&A.destroyed||D!=null&&D.destroyed?(typeof T=="function"&&T(),this):(p(M,A,D),A&&(A.destroyed=!0),D&&(D.destroyed=!0),j.constructed?g(this,M,T):this.once(f,function(k){g(this,r(k,M),T)}),this)}function g(M,T,D){let A=!1;function j(k){if(A)return;A=!0;let F=M._readableState,V=M._writableState;p(k,V,F),V&&(V.closed=!0),F&&(F.closed=!0),typeof D=="function"&&D(k),k?n.nextTick(v,M,k):n.nextTick(b,M)}try{M._destroy(T||null,j)}catch(k){j(k)}}function v(M,T){y(M,T),b(M)}function b(M){let T=M._readableState,D=M._writableState;D&&(D.closeEmitted=!0),T&&(T.closeEmitted=!0),(D!=null&&D.emitClose||T!=null&&T.emitClose)&&M.emit("close")}function y(M,T){let D=M._readableState,A=M._writableState;A!=null&&A.errorEmitted||D!=null&&D.errorEmitted||(A&&(A.errorEmitted=!0),D&&(D.errorEmitted=!0),M.emit("error",T))}function S(){let M=this._readableState,T=this._writableState;M&&(M.constructed=!0,M.closed=!1,M.closeEmitted=!1,M.destroyed=!1,M.errored=null,M.errorEmitted=!1,M.reading=!1,M.ended=M.readable===!1,M.endEmitted=M.readable===!1),T&&(T.constructed=!0,T.destroyed=!1,T.closed=!1,T.closeEmitted=!1,T.errored=null,T.errorEmitted=!1,T.finalCalled=!1,T.prefinished=!1,T.ended=T.writable===!1,T.ending=T.writable===!1,T.finished=T.writable===!1)}function w(M,T,D){let A=M._readableState,j=M._writableState;if(j!=null&&j.destroyed||A!=null&&A.destroyed)return this;A!=null&&A.autoDestroy||j!=null&&j.autoDestroy?M.destroy(T):T&&(T.stack,j&&!j.errored&&(j.errored=T),A&&!A.errored&&(A.errored=T),D?n.nextTick(y,M,T):y(M,T))}function E(M,T){if(typeof M._construct!="function")return;let D=M._readableState,A=M._writableState;D&&(D.constructed=!1),A&&(A.constructed=!1),M.once(h,T),!(M.listenerCount(h)>1)&&n.nextTick(C,M)}function C(M){let T=!1;function D(A){if(T){w(M,A??new o);return}T=!0;let j=M._readableState,k=M._writableState,F=k||j;j&&(j.constructed=!0),k&&(k.constructed=!0),F.destroyed?M.emit(f,A):A?w(M,A,!0):n.nextTick(x,M)}try{M._construct(A=>{n.nextTick(D,A)})}catch(A){n.nextTick(D,A)}}function x(M){M.emit(h)}function _(M){return(M==null?void 0:M.setHeader)&&typeof M.abort=="function"}function P(M){M.emit("close")}function O(M,T){M.emit("error",T),n.nextTick(P,M)}function I(M,T){!M||l(M)||(!T&&!c(M)&&(T=new i),u(M)?(M.socket=null,M.destroy(T)):_(M)?M.abort():_(M.req)?M.req.abort():typeof M.destroy=="function"?M.destroy(T):typeof M.close=="function"?M.close():T?n.nextTick(O,M,T):n.nextTick(P,M),M.destroyed||(M[s]=!0))}t.exports={construct:E,destroyer:I,destroy:m,undestroy:S,errorOrDestroy:w}});function Vr(){Vr.init.call(this)}function jw(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function $J(e){return e._maxListeners===void 0?Vr.defaultMaxListeners:e._maxListeners}function SB(e,t,n,r){var o,i,a,s;if(jw(n),(i=e._events)===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=$J(e))>0&&a.length>o&&!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 mSe(){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 CB(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=mSe.bind(r);return o.listener=n,r.wrapFn=o,o}function wB(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?function(i){for(var a=new Array(i.length),s=0;s{Vt(),qt(),Kt(),Xf=typeof Reflect=="object"?Reflect:null,QM=Xf&&typeof Xf.apply=="function"?Xf.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},_B=Xf&&typeof Xf.ownKeys=="function"?Xf.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},JM=Number.isNaN||function(e){return e!=e},EB=Vr,Vr.EventEmitter=Vr,Vr.prototype._events=void 0,Vr.prototype._eventsCount=0,Vr.prototype._maxListeners=void 0,ZM=10,Object.defineProperty(Vr,"defaultMaxListeners",{enumerable:!0,get:function(){return ZM},set:function(e){if(typeof e!="number"||e<0||JM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ZM=e}}),Vr.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},Vr.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||JM(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},Vr.prototype.getMaxListeners=function(){return $J(this)},Vr.prototype.emit=function(e){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(s===void 0)return!1;if(typeof s=="function")QM(s,this,t);else{var l=s.length,c=PJ(s,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():function(s,l){for(;l+1=0;r--)this.removeListener(e,t[r]);return this},Vr.prototype.listeners=function(e){return wB(this,e,!0)},Vr.prototype.rawListeners=function(e){return wB(this,e,!1)},Vr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):xB.call(e,t)},Vr.prototype.listenerCount=xB,Vr.prototype.eventNames=function(){return this._eventsCount>0?_B(this._events):[]},hs=EB,hs.EventEmitter,hs.defaultMaxListeners,hs.init,hs.listenerCount,hs.EventEmitter,hs.defaultMaxListeners,hs.init,hs.listenerCount}),kp={};Rp(kp,{EventEmitter:()=>OJ,default:()=>hs,defaultMaxListeners:()=>MJ,init:()=>TJ,listenerCount:()=>RJ,on:()=>IJ,once:()=>kJ});var OJ,MJ,TJ,RJ,IJ,kJ,bv=Fi(()=>{Vt(),qt(),Kt(),$B(),$B(),hs.once=function(e,t){return new Promise((n,r)=>{function o(...a){i!==void 0&&e.removeListener("error",i),n(a)}let i;t!=="error"&&(i=a=>{e.removeListener(name,o),r(a)},e.once("error",i)),e.once(t,o)})},hs.on=function(e,t){let n=[],r=[],o=null,i=!1,a={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(o){let u=Promise.reject(o);return o=null,u}return i?createIterResult(void 0,!0):new Promise((u,f)=>r.push({resolve:u,reject:f}))},async return(){e.removeListener(t,s),e.removeListener("error",l),i=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){o=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){i=!0;let u=r.shift();u?u.reject(c):o=c,a.return()}},{EventEmitter:OJ,defaultMaxListeners:MJ,init:TJ,listenerCount:RJ,on:IJ,once:kJ}=hs}),w5=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=vi(),{EventEmitter:o}=(bv(),Qr(kp));function i(s){o.call(this,s)}r(i.prototype,o.prototype),r(i,o),i.prototype.pipe=function(s,l){let c=this;function u(b){s.writable&&s.write(b)===!1&&c.pause&&c.pause()}c.on("data",u);function f(){c.readable&&c.resume&&c.resume()}s.on("drain",f),!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 g(b){v(),o.listenerCount(this,"error")===0&&this.emit("error",b)}a(c,"error",g),a(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",f),c.removeListener("end",p),c.removeListener("close",m),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),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:i,prependListener:a}}),k_=Zt((e,t)=>{Vt(),qt(),Kt();var{AbortError:n,codes:r}=Ga(),{isNodeStream:o,isWebStream:i,kControllerErrorFunction:a}=ld(),s=Nf(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,f)=>{if(typeof u!="object"||!("aborted"in u))throw new l(f,"AbortSignal",u)};t.exports.addAbortSignal=function(u,f){if(c(u,"signal"),!o(f)&&!i(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(u,f)},t.exports.addAbortSignalNoValidate=function(u,f){if(typeof u!="object"||!("aborted"in u))return f;let h=o(f)?()=>{f.destroy(new n(void 0,{cause:u.reason}))}:()=>{f[a](new n(void 0,{cause:u.reason}))};return u.aborted?h():(u.addEventListener("abort",h),s(f,()=>u.removeEventListener("abort",h))),f}}),gSe=Zt((e,t)=>{Vt(),qt(),Kt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:o,Uint8Array:i}=vi(),{Buffer:a}=(Bi(),Qr(Li)),{inspect:s}=Qu();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,f=0;for(;u;)o(c,u.data,f),f+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(lh.length)c+=h,l-=h.length;else{l===h.length?(c+=h,++f,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}++f}while((u=u.next)!==null);return this.length-=f,c}_getBuffer(l){let c=a.allocUnsafe(l),u=l,f=this.head,h=0;do{let p=f.data;if(l>p.length)o(c,p,u-l),l-=p.length;else{l===p.length?(o(c,p,u-l),++h,f.next?this.head=f.next:this.head=this.tail=null):(o(c,new i(p.buffer,p.byteOffset,l),u-l),this.head=f,f.data=p.slice(l));break}++h}while((f=f.next)!==null);return this.length-=h,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),x5=Zt((e,t)=>{Vt(),qt(),Kt();var{MathFloor:n,NumberIsInteger:r}=vi(),{ERR_INVALID_ARG_VALUE:o}=Ga().codes;function i(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,f){let h=i(c,f,u);if(h!=null){if(!r(h)||h<0){let p=f?`options.${u}`:"options.highWaterMark";throw new o(p,h)}return n(h)}return a(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:a}});function PB(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 vSe(e,t,n){for(var r,o,i=[],a=t;a>18&63]+Il[o>>12&63]+Il[o>>6&63]+Il[63&o]);return i.join("")}function Au(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Xt.prototype),t}function Xt(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 U4(e)}return NJ(e,t,n)}function NJ(e,t,n){if(typeof e=="string")return function(i,a){if(typeof a=="string"&&a!==""||(a="utf8"),!Xt.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var s=0|DJ(i,a),l=Au(s),c=l.write(i,a);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return eT(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(Du(e,ArrayBuffer)||e&&Du(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Du(e,SharedArrayBuffer)||e&&Du(e.buffer,SharedArrayBuffer)))return ySe(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 Xt.from(r,t,n);var o=function(i){if(Xt.isBuffer(i)){var a=0|E5(i.length),s=Au(a);return s.length===0||i.copy(s,0,0,a),s}if(i.length!==void 0)return typeof i.length!="number"||_5(i.length)?Au(0):eT(i);if(i.type==="Buffer"&&Array.isArray(i.data))return eT(i.data)}(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Xt.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 AJ(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 U4(e){return AJ(e),Au(e<0?0:0|E5(e))}function eT(e){for(var t=e.length<0?0:0|E5(e.length),n=Au(t),r=0;r=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function DJ(e,t){if(Xt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Du(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 o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W4(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return BJ(e).length;default:if(o)return r?-1:W4(e).length;t=(""+t).toLowerCase(),o=!0}}function bSe(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 OSe(this,t,n);case"utf8":case"utf-8":return FJ(this,t,n);case"ascii":return $Se(this,t,n);case"latin1":case"binary":return PSe(this,t,n);case"base64":return _Se(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return MSe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Qf(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function OB(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),_5(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t=="string"&&(t=Xt.from(t,r)),Xt.isBuffer(t))return t.length===0?-1:MB(e,t,n,r,o);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):MB(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function MB(e,t,n,r,o){var i,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(o){var u=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var f=!0,h=0;ho&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,l=a%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function _Se(e,t,n){return t===0&&n===e.length?c2.fromByteArray(e):c2.fromByteArray(e.slice(t,n))}function FJ(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(h){var p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var m="",g=0;gr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Ma(e,t,n,r,o,i){if(!Xt.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function LJ(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function TB(e,t,n,r,o){return t=+t,n>>>=0,o||LJ(e,0,n,4),ph.write(e,t,n,r,23,4),n+4}function RB(e,t,n,r,o){return t=+t,n>>>=0,o||LJ(e,0,n,8),ph.write(e,t,n,r,52,8),n+8}function W4(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function BJ(e){return c2.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(zJ,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function N_(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Du(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function _5(e){return e!=e}function IB(e,t){for(var n in e)t[n]=e[n]}function Jf(e,t,n){return xl(e,t,n)}function $0(e){var t;switch(this.encoding=function(n){var r=function(o){if(!o)return"utf8";for(var i;;)switch(o){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 o;default:if(i)return;o=(""+o).toLowerCase(),i=!0}}(n);if(typeof r!="string"&&(u2.isEncoding===V4||!V4(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=RSe,this.end=ISe,t=4;break;case"utf8":this.fillLast=TSe,t=4;break;case"base64":this.text=kSe,this.end=NSe,t=3;break;default:return this.write=ASe,this.end=DSe,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=u2.allocUnsafe(t)}function tT(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function TSe(e){var t=this.lastTotal-this.lastNeed,n=function(r,o,i){if((192&o[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&o.length>1){if((192&o[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&o.length>2&&(192&o[2])!=128)return r.lastNeed=2,"�"}}(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 RSe(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 ISe(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 kSe(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 NSe(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function ASe(e){return e.toString(this.encoding)}function DSe(e){return e&&e.length?this.write(e):""}var kB,Il,ns,NB,SC,Zf,AB,DB,wc,c2,ph,nT,zJ,HJ,P0,O0,xl,jB,zm,u2,V4,FB=Fi(()=>{for(Vt(),qt(),Kt(),kB={byteLength:function(e){var t=PB(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=PB(e),o=r[0],i=r[1],a=new NB(function(c,u,f){return 3*(u+f)/4-f}(0,o,i)),s=0,l=i>0?o-4:o;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;return i===2&&(t=ns[e.charCodeAt(n)]<<2|ns[e.charCodeAt(n+1)]>>4,a[s++]=255&t),i===1&&(t=ns[e.charCodeAt(n)]<<10|ns[e.charCodeAt(n+1)]<<4|ns[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,o=[],i=0,a=n-r;ia?a:i+16383));return r===1?(t=e[n-1],o.push(Il[t>>2]+Il[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Il[t>>10]+Il[t>>4&63]+Il[t<<2&63]+"=")),o.join("")}},Il=[],ns=[],NB=typeof Uint8Array<"u"?Uint8Array:Array,SC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zf=0,AB=SC.length;Zf>1,u=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},write:function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,m=r?1:-1,g=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+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=m,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=m,a/=256,c-=8);e[n+p-m]|=128*g}},wc={},c2=kB,ph=DB,nT=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,wc.Buffer=Xt,wc.SlowBuffer=function(e){return+e!=e&&(e=0),Xt.alloc(+e)},wc.INSPECT_MAX_BYTES=50,wc.kMaxLength=2147483647,Xt.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}}(),Xt.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(Xt.prototype,"parent",{enumerable:!0,get:function(){if(Xt.isBuffer(this))return this.buffer}}),Object.defineProperty(Xt.prototype,"offset",{enumerable:!0,get:function(){if(Xt.isBuffer(this))return this.byteOffset}}),Xt.poolSize=8192,Xt.from=function(e,t,n){return NJ(e,t,n)},Object.setPrototypeOf(Xt.prototype,Uint8Array.prototype),Object.setPrototypeOf(Xt,Uint8Array),Xt.alloc=function(e,t,n){return function(r,o,i){return AJ(r),r<=0?Au(r):o!==void 0?typeof i=="string"?Au(r).fill(o,i):Au(r).fill(o):Au(r)}(e,t,n)},Xt.allocUnsafe=function(e){return U4(e)},Xt.allocUnsafeSlow=function(e){return U4(e)},Xt.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Xt.prototype},Xt.compare=function(e,t){if(Du(e,Uint8Array)&&(e=Xt.from(e,e.offset,e.byteLength)),Du(t,Uint8Array)&&(t=Xt.from(t,t.offset,t.byteLength)),!Xt.isBuffer(e)||!Xt.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,o=0,i=Math.min(n,r);ot&&(e+=" ... "),""},nT&&(Xt.prototype[nT]=Xt.prototype.inspect),Xt.prototype.compare=function(e,t,n,r,o){if(Du(e,Uint8Array)&&(e=Xt.from(e,e.offset,e.byteLength)),!Xt.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),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),c=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return SSe(this,e,t,n);case"utf8":case"utf-8":return CSe(this,e,t,n);case"ascii":return jJ(this,e,t,n);case"latin1":case"binary":return wSe(this,e,t,n);case"base64":return xSe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ESe(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Xt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Xt.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>>=0,t>>>=0,n||Ci(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||Ci(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Xt.prototype.readUInt8=function(e,t){return e>>>=0,t||Ci(e,1,this.length),this[e]},Xt.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Ci(e,2,this.length),this[e]|this[e+1]<<8},Xt.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Ci(e,2,this.length),this[e]<<8|this[e+1]},Xt.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Ci(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Xt.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Ci(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Xt.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Ci(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Xt.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Ci(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Xt.prototype.readInt8=function(e,t){return e>>>=0,t||Ci(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Xt.prototype.readInt16LE=function(e,t){e>>>=0,t||Ci(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Xt.prototype.readInt16BE=function(e,t){e>>>=0,t||Ci(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Xt.prototype.readInt32LE=function(e,t){return e>>>=0,t||Ci(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Xt.prototype.readInt32BE=function(e,t){return e>>>=0,t||Ci(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Xt.prototype.readFloatLE=function(e,t){return e>>>=0,t||Ci(e,4,this.length),ph.read(this,e,!0,23,4)},Xt.prototype.readFloatBE=function(e,t){return e>>>=0,t||Ci(e,4,this.length),ph.read(this,e,!1,23,4)},Xt.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Ci(e,8,this.length),ph.read(this,e,!0,52,8)},Xt.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Ci(e,8,this.length),ph.read(this,e,!1,52,8)},Xt.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||Ma(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||Ma(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Xt.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,1,255,0),this[t]=255&e,t+1},Xt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Xt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Xt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(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},Xt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(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},Xt.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);Ma(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},Xt.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);Ma(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Xt.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Xt.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Xt.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Xt.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(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},Xt.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(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},Xt.prototype.writeFloatLE=function(e,t,n){return TB(this,e,t,!0,n)},Xt.prototype.writeFloatBE=function(e,t,n){return TB(this,e,t,!1,n)},Xt.prototype.writeDoubleLE=function(e,t,n){return RB(this,e,t,!0,n)},Xt.prototype.writeDoubleBE=function(e,t,n){return RB(this,e,t,!1,n)},Xt.prototype.copy=function(e,t,n,r){if(!Xt.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=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=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},Xt.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"&&!Xt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var o=e.charCodeAt(0);(r==="utf8"&&o<128||r==="latin1")&&(e=o)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(i=t;i=0?(l>0&&(o.lastNeed=l-1),l):--s=0?(l>0&&(o.lastNeed=l-2),l):--s=0?(l>0&&(l===2?l=0:o.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)},$0.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},zm.StringDecoder,zm.StringDecoder}),UJ={};Rp(UJ,{StringDecoder:()=>WJ,default:()=>zm});var WJ,jSe=Fi(()=>{Vt(),qt(),Kt(),FB(),FB(),WJ=zm.StringDecoder}),VJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{PromisePrototypeThen:r,SymbolAsyncIterator:o,SymbolIterator:i}=vi(),{Buffer:a}=(Bi(),Qr(Li)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Ga().codes;function c(u,f,h){let p;if(typeof f=="string"||f instanceof a)return new u({objectMode:!0,...h,read(){this.push(f),this.push(null)}});let m;if(f&&f[o])m=!0,p=f[o]();else if(f&&f[i])m=!1,p=f[i]();else throw new s("iterable",["Iterable"],f);let g=new u({objectMode:!0,highWaterMark:1,...h}),v=!1;g._read=function(){v||(v=!0,y())},g._destroy=function(S,w){r(b(S),()=>n.nextTick(w,S),E=>n.nextTick(w,E||S))};async function b(S){let w=S!=null,E=typeof p.throw=="function";if(w&&E){let{value:C,done:x}=await p.throw(S);if(await C,x)return}if(typeof p.return=="function"){let{value:C}=await p.return();await C}}async function y(){for(;;){try{let{value:S,done:w}=m?await p.next():p.next();if(w)g.push(null);else{let E=S&&typeof S.then=="function"?await S:S;if(E===null)throw v=!1,new l;if(g.push(E))continue;v=!1}}catch(S){g.destroy(S)}break}}return g}t.exports=c}),A_=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:h,Symbol:p}=vi();t.exports=L,L.ReadableState=K;var{EventEmitter:m}=(bv(),Qr(kp)),{Stream:g,prependListener:v}=w5(),{Buffer:b}=(Bi(),Qr(Li)),{addAbortSignal:y}=k_(),S=Nf(),w=Qu().debuglog("stream",H=>{w=H}),E=gSe(),C=yv(),{getHighWaterMark:x,getDefaultHighWaterMark:_}=x5(),{aggregateTwoErrors:P,codes:{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:T,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:D}}=Ga(),{validateObject:A}=I_(),j=p("kPaused"),{StringDecoder:k}=(jSe(),Qr(UJ)),F=VJ();c(L.prototype,g.prototype),c(L,g);var V=()=>{},{errorOrDestroy:W}=C;function K(H,q,me){typeof me!="boolean"&&(me=q instanceof Ju()),this.objectMode=!!(H&&H.objectMode),me&&(this.objectMode=this.objectMode||!!(H&&H.readableObjectMode)),this.highWaterMark=H?x(this,H,"readableHighWaterMark",me):_(!1),this.buffer=new E,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[j]=null,this.errorEmitted=!1,this.emitClose=!H||H.emitClose!==!1,this.autoDestroy=!H||H.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=H&&H.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,H&&H.encoding&&(this.decoder=new k(H.encoding),this.encoding=H.encoding)}function L(H){if(!(this instanceof L))return new L(H);let q=this instanceof Ju();this._readableState=new K(H,this,q),H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.construct=="function"&&(this._construct=H.construct),H.signal&&!q&&y(H.signal,this)),g.call(this,H),C.construct(this,()=>{this._readableState.needReadable&&ce(this,this._readableState)})}L.prototype.destroy=C.destroy,L.prototype._undestroy=C.undestroy,L.prototype._destroy=function(H,q){q(H)},L.prototype[m.captureRejectionSymbol]=function(H){this.destroy(H)},L.prototype.push=function(H,q){return Q(this,H,q,!1)},L.prototype.unshift=function(H,q){return Q(this,H,q,!0)};function Q(H,q,me,Ce){w("readableAddChunk",q);let ue=H._readableState,Le;if(ue.objectMode||(typeof q=="string"?(me=me||ue.defaultEncoding,ue.encoding!==me&&(Ce&&ue.encoding?q=b.from(q,me).toString(ue.encoding):(q=b.from(q,me),me=""))):q instanceof b?me="":g._isUint8Array(q)?(q=g._uint8ArrayToBuffer(q),me=""):q!=null&&(Le=new O("chunk",["string","Buffer","Uint8Array"],q))),Le)W(H,Le);else if(q===null)ue.reading=!1,X(H,ue);else if(ue.objectMode||q&&q.length>0)if(Ce)if(ue.endEmitted)W(H,new D);else{if(ue.destroyed||ue.errored)return!1;ee(H,ue,q,!0)}else if(ue.ended)W(H,new T);else{if(ue.destroyed||ue.errored)return!1;ue.reading=!1,ue.decoder&&!me?(q=ue.decoder.write(q),ue.objectMode||q.length!==0?ee(H,ue,q,!1):ce(H,ue)):ee(H,ue,q,!1)}else Ce||(ue.reading=!1,ce(H,ue));return!ue.ended&&(ue.length0?(q.multiAwaitDrain?q.awaitDrainWriters.clear():q.awaitDrainWriters=null,q.dataEmitted=!0,H.emit("data",me)):(q.length+=q.objectMode?1:me.length,Ce?q.buffer.unshift(me):q.buffer.push(me),q.needReadable&&ne(H)),ce(H,q)}L.prototype.isPaused=function(){let H=this._readableState;return H[j]===!0||H.flowing===!1},L.prototype.setEncoding=function(H){let q=new k(H);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;let me=this._readableState.buffer,Ce="";for(let ue of me)Ce+=q.write(ue);return me.clear(),Ce!==""&&me.push(Ce),this._readableState.length=Ce.length,this};var re=1073741824;function ie(H){if(H>re)throw new M("size","<= 1GiB",H);return H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++,H}function G(H,q){return H<=0||q.length===0&&q.ended?0:q.objectMode?1:i(H)?q.flowing&&q.length?q.buffer.first().length:q.length:H<=q.length?H:q.ended?q.length:0}L.prototype.read=function(H){w("read",H),H===void 0?H=NaN:o(H)||(H=a(H,10));let q=this._readableState,me=H;if(H>q.highWaterMark&&(q.highWaterMark=ie(H)),H!==0&&(q.emittedReadable=!1),H===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return w("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?ve(this):ne(this),null;if(H=G(H,q),H===0&&q.ended)return q.length===0&&ve(this),null;let Ce=q.needReadable;if(w("need readable",Ce),(q.length===0||q.length-H0?ue=ye(H,q):ue=null,ue===null?(q.needReadable=q.length<=q.highWaterMark,H=0):(q.length-=H,q.multiAwaitDrain?q.awaitDrainWriters.clear():q.awaitDrainWriters=null),q.length===0&&(q.ended||(q.needReadable=!0),me!==H&&q.ended&&ve(this)),ue!==null&&!q.errorEmitted&&!q.closeEmitted&&(q.dataEmitted=!0,this.emit("data",ue)),ue};function X(H,q){if(w("onEofChunk"),!q.ended){if(q.decoder){let me=q.decoder.end();me&&me.length&&(q.buffer.push(me),q.length+=q.objectMode?1:me.length)}q.ended=!0,q.sync?ne(H):(q.needReadable=!1,q.emittedReadable=!0,le(H))}}function ne(H){let q=H._readableState;w("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(w("emitReadable",q.flowing),q.emittedReadable=!0,n.nextTick(le,H))}function le(H){let q=H._readableState;w("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&!q.errored&&(q.length||q.ended)&&(H.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,Oe(H)}function ce(H,q){!q.readingMore&&q.constructed&&(q.readingMore=!0,n.nextTick(oe,H,q))}function oe(H,q){for(;!q.reading&&!q.ended&&(q.length1&&Ce.pipes.includes(H)&&(w("false write response, pause",Ce.awaitDrainWriters.size),Ce.awaitDrainWriters.add(H)),me.pause()),ge||(ge=se(me,H),H.on("drain",ge))}me.on("data",Ke);function Ke(st){w("ondata");let Ct=H.write(st);w("dest.write",Ct),Ct===!1&&je()}function Ue(st){if(w("onerror",st),et(),H.removeListener("error",Ue),H.listenerCount("error")===0){let Ct=H._writableState||H._readableState;Ct&&!Ct.errorEmitted?W(H,st):H.emit("error",st)}}v(H,"error",Ue);function Ve(){H.removeListener("finish",St),et()}H.once("close",Ve);function St(){w("onfinish"),H.removeListener("close",Ve),et()}H.once("finish",St);function et(){w("unpipe"),me.unpipe(H)}return H.emit("pipe",me),H.writableNeedDrain===!0?Ce.flowing&&je():Ce.flowing||(w("pipe resume"),me.resume()),H};function se(H,q){return function(){let me=H._readableState;me.awaitDrainWriters===q?(w("pipeOnDrain",1),me.awaitDrainWriters=null):me.multiAwaitDrain&&(w("pipeOnDrain",me.awaitDrainWriters.size),me.awaitDrainWriters.delete(q)),(!me.awaitDrainWriters||me.awaitDrainWriters.size===0)&&H.listenerCount("data")&&H.resume()}}L.prototype.unpipe=function(H){let q=this._readableState,me={hasUnpiped:!1};if(q.pipes.length===0)return this;if(!H){let ue=q.pipes;q.pipes=[],this.pause();for(let Le=0;Le0,Ce.flowing!==!1&&this.resume()):H==="readable"&&!Ce.endEmitted&&!Ce.readableListening&&(Ce.readableListening=Ce.needReadable=!0,Ce.flowing=!1,Ce.emittedReadable=!1,w("on readable",Ce.length,Ce.reading),Ce.length?ne(this):Ce.reading||n.nextTick(te,this)),me},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(H,q){let me=g.prototype.removeListener.call(this,H,q);return H==="readable"&&n.nextTick(fe,this),me},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(H){let q=g.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&n.nextTick(fe,this),q};function fe(H){let q=H._readableState;q.readableListening=H.listenerCount("readable")>0,q.resumeScheduled&&q[j]===!1?q.flowing=!0:H.listenerCount("data")>0?H.resume():q.readableListening||(q.flowing=null)}function te(H){w("readable nexttick read 0"),H.read(0)}L.prototype.resume=function(){let H=this._readableState;return H.flowing||(w("resume"),H.flowing=!H.readableListening,he(this,H)),H[j]=!1,this};function he(H,q){q.resumeScheduled||(q.resumeScheduled=!0,n.nextTick(pe,H,q))}function pe(H,q){w("resume",q.reading),q.reading||H.read(0),q.resumeScheduled=!1,H.emit("resume"),Oe(H),q.flowing&&!q.reading&&H.read(0)}L.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[j]=!0,this};function Oe(H){let q=H._readableState;for(w("flow",q.flowing);q.flowing&&H.read()!==null;);}L.prototype.wrap=function(H){let q=!1;H.on("data",Ce=>{!this.push(Ce)&&H.pause&&(q=!0,H.pause())}),H.on("end",()=>{this.push(null)}),H.on("error",Ce=>{W(this,Ce)}),H.on("close",()=>{this.destroy()}),H.on("destroy",()=>{this.destroy()}),this._read=()=>{q&&H.resume&&(q=!1,H.resume())};let me=l(H);for(let Ce=1;Ce{ue=He?P(ue,He):null,me(),me=V});try{for(;;){let He=H.destroyed?null:H.read();if(He!==null)yield He;else{if(ue)throw ue;if(ue===null)return;await new u(Ce)}}}catch(He){throw ue=P(ue,He),ue}finally{(ue||(q==null?void 0:q.destroyOnReturn)!==!1)&&(ue===void 0||H._readableState.autoDestroy)?C.destroyer(H,null):(H.off("readable",Ce),Le())}}s(L.prototype,{readable:{__proto__:null,get(){let H=this._readableState;return!!H&&H.readable!==!1&&!H.destroyed&&!H.errorEmitted&&!H.endEmitted},set(H){this._readableState&&(this._readableState.readable=!!H)}},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(H){this._readableState&&(this._readableState.flowing=H)}},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(H){this._readableState&&(this._readableState.destroyed=H)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(K.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(H){this[j]=!!H}}}),L._fromList=ye;function ye(H,q){if(q.length===0)return null;let me;return q.objectMode?me=q.buffer.shift():!H||H>=q.length?(q.decoder?me=q.buffer.join(""):q.buffer.length===1?me=q.buffer.first():me=q.buffer.concat(q.length),q.buffer.clear()):me=q.buffer.consume(H,q.decoder),me}function ve(H){let q=H._readableState;w("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,n.nextTick(be,q,H))}function be(H,q){if(w("endReadableNT",H.endEmitted,H.length),!H.errored&&!H.closeEmitted&&!H.endEmitted&&H.length===0){if(H.endEmitted=!0,q.emit("end"),q.writable&&q.allowHalfOpen===!1)n.nextTick(Pe,q);else if(H.autoDestroy){let me=q._writableState;(!me||me.autoDestroy&&(me.finished||me.writable===!1))&&q.destroy()}}}function Pe(H){H.writable&&!H.writableEnded&&!H.destroyed&&H.end()}L.from=function(H,q){return F(L,H,q)};var Ne;function U(){return Ne===void 0&&(Ne={}),Ne}L.fromWeb=function(H,q){return U().newStreamReadableFromReadableStream(H,q)},L.toWeb=function(H,q){return U().newReadableStreamFromStreamReadable(H,q)},L.wrap=function(H,q){var me,Ce;return new L({objectMode:(me=(Ce=H.readableObjectMode)!==null&&Ce!==void 0?Ce:H.objectMode)!==null&&me!==void 0?me:!0,...q,destroy(ue,Le){C.destroyer(H,ue),Le(ue)}}).wrap(H)}}),KJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=vi();t.exports=k,k.WritableState=A;var{EventEmitter:h}=(bv(),Qr(kp)),p=w5().Stream,{Buffer:m}=(Bi(),Qr(Li)),g=yv(),{addAbortSignal:v}=k_(),{getHighWaterMark:b,getDefaultHighWaterMark:y}=x5(),{ERR_INVALID_ARG_TYPE:S,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:_,ERR_STREAM_NULL_VALUES:P,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:I}=Ga().codes,{errorOrDestroy:M}=g;l(k.prototype,p.prototype),l(k,p);function T(){}var D=u("kOnFinished");function A(te,he,pe){typeof pe!="boolean"&&(pe=he instanceof Ju()),this.objectMode=!!(te&&te.objectMode),pe&&(this.objectMode=this.objectMode||!!(te&&te.writableObjectMode)),this.highWaterMark=te?b(this,te,"writableHighWaterMark",pe):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Oe=!!(te&&te.decodeStrings===!1);this.decodeStrings=!Oe,this.defaultEncoding=te&&te.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=L.bind(void 0,he),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,j(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!te||te.emitClose!==!1,this.autoDestroy=!te||te.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function j(te){te.buffered=[],te.bufferedIndex=0,te.allBuffers=!0,te.allNoop=!0}A.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},a(A.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function k(te){let he=this instanceof Ju();if(!he&&!i(k,this))return new k(te);this._writableState=new A(te,this,he),te&&(typeof te.write=="function"&&(this._write=te.write),typeof te.writev=="function"&&(this._writev=te.writev),typeof te.destroy=="function"&&(this._destroy=te.destroy),typeof te.final=="function"&&(this._final=te.final),typeof te.construct=="function"&&(this._construct=te.construct),te.signal&&v(te.signal,this)),p.call(this,te),g.construct(this,()=>{let pe=this._writableState;pe.writing||ie(this,pe),le(this,pe)})}a(k,f,{__proto__:null,value:function(te){return i(this,te)?!0:this!==k?!1:te&&te._writableState instanceof A}}),k.prototype.pipe=function(){M(this,new C)};function F(te,he,pe,Oe){let Me=te._writableState;if(typeof pe=="function")Oe=pe,pe=Me.defaultEncoding;else{if(!pe)pe=Me.defaultEncoding;else if(pe!=="buffer"&&!m.isEncoding(pe))throw new I(pe);typeof Oe!="function"&&(Oe=T)}if(he===null)throw new P;if(!Me.objectMode)if(typeof he=="string")Me.decodeStrings!==!1&&(he=m.from(he,pe),pe="buffer");else if(he instanceof m)pe="buffer";else if(p._isUint8Array(he))he=p._uint8ArrayToBuffer(he),pe="buffer";else throw new S("chunk",["string","Buffer","Uint8Array"],he);let Se;return Me.ending?Se=new O:Me.destroyed&&(Se=new x("write")),Se?(n.nextTick(Oe,Se),M(te,Se,!0),Se):(Me.pendingcb++,V(te,Me,he,pe,Oe))}k.prototype.write=function(te,he,pe){return F(this,te,he,pe)===!0},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){let te=this._writableState;te.corked&&(te.corked--,te.writing||ie(this,te))},k.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=c(te)),!m.isEncoding(te))throw new I(te);return this._writableState.defaultEncoding=te,this};function V(te,he,pe,Oe,Me){let Se=he.objectMode?1:pe.length;he.length+=Se;let ye=he.lengthpe.bufferedIndex&&ie(te,pe),Oe?pe.afterWriteTickInfo!==null&&pe.afterWriteTickInfo.cb===Me?pe.afterWriteTickInfo.count++:(pe.afterWriteTickInfo={count:1,cb:Me,stream:te,state:pe},n.nextTick(Q,pe.afterWriteTickInfo)):ee(te,pe,1,Me))}function Q({stream:te,state:he,count:pe,cb:Oe}){return he.afterWriteTickInfo=null,ee(te,he,pe,Oe)}function ee(te,he,pe,Oe){for(!he.ending&&!te.destroyed&&he.length===0&&he.needDrain&&(he.needDrain=!1,te.emit("drain"));pe-- >0;)he.pendingcb--,Oe();he.destroyed&&re(he),le(te,he)}function re(te){if(te.writing)return;for(let Me=te.bufferedIndex;Me1&&te._writev){he.pendingcb-=Se-1;let ve=he.allNoop?T:Pe=>{for(let Ne=ye;Ne256?(pe.splice(0,ye),he.bufferedIndex=0):he.bufferedIndex=ye}he.bufferProcessing=!1}k.prototype._write=function(te,he,pe){if(this._writev)this._writev([{chunk:te,encoding:he}],pe);else throw new w("_write()")},k.prototype._writev=null,k.prototype.end=function(te,he,pe){let Oe=this._writableState;typeof te=="function"?(pe=te,te=null,he=null):typeof he=="function"&&(pe=he,he=null);let Me;if(te!=null){let Se=F(this,te,he);Se instanceof o&&(Me=Se)}return Oe.corked&&(Oe.corked=1,this.uncork()),Me||(!Oe.errored&&!Oe.ending?(Oe.ending=!0,le(this,Oe,!0),Oe.ended=!0):Oe.finished?Me=new _("end"):Oe.destroyed&&(Me=new x("end"))),typeof pe=="function"&&(Me||Oe.finished?n.nextTick(pe,Me):Oe[D].push(pe)),this};function G(te){return te.ending&&!te.destroyed&&te.constructed&&te.length===0&&!te.errored&&te.buffered.length===0&&!te.finished&&!te.writing&&!te.errorEmitted&&!te.closeEmitted}function X(te,he){let pe=!1;function Oe(Me){if(pe){M(te,Me??E());return}if(pe=!0,he.pendingcb--,Me){let Se=he[D].splice(0);for(let ye=0;ye{G(Me)?ce(Oe,Me):Me.pendingcb--},te,he)):G(he)&&(he.pendingcb++,ce(te,he))))}function ce(te,he){he.pendingcb--,he.finished=!0;let pe=he[D].splice(0);for(let Oe=0;Oe{Vt(),qt(),Kt();var n=Ip(),r=(Bi(),Qr(Li)),{isReadable:o,isWritable:i,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=ld(),f=Nf(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:m}}=Ga(),{destroyer:g}=yv(),v=Ju(),b=A_(),{createDeferredPromise:y}=Qu(),S=VJ(),w=globalThis.Blob||r.Blob,E=typeof w<"u"?function(I){return I instanceof w}:function(I){return!1},C=globalThis.AbortController||C5().AbortController,{FunctionPrototypeCall:x}=vi(),_=class extends v{constructor(I){super(I),(I==null?void 0:I.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(I==null?void 0:I.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function I(M,T){if(u(M))return M;if(l(M))return O({readable:M});if(c(M))return O({writable:M});if(s(M))return O({writable:!1,readable:!1});if(typeof M=="function"){let{value:A,write:j,final:k,destroy:F}=P(M);if(a(A))return S(_,A,{objectMode:!0,write:j,final:k,destroy:F});let V=A==null?void 0:A.then;if(typeof V=="function"){let W,K=x(V,A,L=>{if(L!=null)throw new m("nully","body",L)},L=>{g(W,L)});return W=new _({objectMode:!0,readable:!1,write:j,final(L){k(async()=>{try{await K,n.nextTick(L,null)}catch(Q){n.nextTick(L,Q)}})},destroy:F})}throw new m("Iterable, AsyncIterable or AsyncFunction",T,A)}if(E(M))return I(M.arrayBuffer());if(a(M))return S(_,M,{objectMode:!0,writable:!1});if(typeof(M==null?void 0:M.writable)=="object"||typeof(M==null?void 0:M.readable)=="object"){let A=M!=null&&M.readable?l(M==null?void 0:M.readable)?M==null?void 0:M.readable:I(M.readable):void 0,j=M!=null&&M.writable?c(M==null?void 0:M.writable)?M==null?void 0:M.writable:I(M.writable):void 0;return O({readable:A,writable:j})}let D=M==null?void 0:M.then;if(typeof D=="function"){let A;return x(D,M,j=>{j!=null&&A.push(j),A.push(null)},j=>{g(A,j)}),A=new _({objectMode:!0,writable:!1,read(){}})}throw new p(T,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],M)};function P(I){let{promise:M,resolve:T}=y(),D=new C,A=D.signal;return{value:I(async function*(){for(;;){let j=M;M=null;let{chunk:k,done:F,cb:V}=await j;if(n.nextTick(V),F)return;if(A.aborted)throw new h(void 0,{cause:A.reason});({promise:M,resolve:T}=y()),yield k}}(),{signal:A}),write(j,k,F){let V=T;T=null,V({chunk:j,done:!1,cb:F})},final(j){let k=T;T=null,k({done:!0,cb:j})},destroy(j,k){D.abort(),k(j)}}}function O(I){let M=I.readable&&typeof I.readable.read!="function"?b.wrap(I.readable):I.readable,T=I.writable,D=!!o(M),A=!!i(T),j,k,F,V,W;function K(L){let Q=V;V=null,Q?Q(L):L&&W.destroy(L)}return W=new _({readableObjectMode:!!(M!=null&&M.readableObjectMode),writableObjectMode:!!(T!=null&&T.writableObjectMode),readable:D,writable:A}),A&&(f(T,L=>{A=!1,L&&g(M,L),K(L)}),W._write=function(L,Q,ee){T.write(L,Q)?ee():j=ee},W._final=function(L){T.end(),k=L},T.on("drain",function(){if(j){let L=j;j=null,L()}}),T.on("finish",function(){if(k){let L=k;k=null,L()}})),D&&(f(M,L=>{D=!1,L&&g(M,L),K(L)}),M.on("readable",function(){if(F){let L=F;F=null,L()}}),M.on("end",function(){W.push(null)}),W._read=function(){for(;;){let L=M.read();if(L===null){F=W._read;return}if(!W.push(L))return}}),W._destroy=function(L,Q){!L&&V!==null&&(L=new h),F=null,j=null,k=null,V===null?Q(L):(V=Q,g(T,L),g(M,L))},W}}),Ju=Zt((e,t)=>{Vt(),qt(),Kt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:i}=vi();t.exports=l;var a=A_(),s=KJ();i(l.prototype,a.prototype),i(l,a);{let h=o(s.prototype);for(let p=0;p{Vt(),qt(),Kt();var{ObjectSetPrototypeOf:n,Symbol:r}=vi();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:o}=Ga().codes,i=Ju(),{getHighWaterMark:a}=x5();n(l.prototype,i.prototype),n(l,i);var s=r("kCallback");function l(f){if(!(this instanceof l))return new l(f);let h=f?a(this,f,"readableHighWaterMark",!0):null;h===0&&(f={...f,highWaterMark:null,readableHighWaterMark:h,writableHighWaterMark:f.writableHighWaterMark||0}),i.call(this,f),this._readableState.sync=!1,this[s]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function c(f){typeof this._flush=="function"&&!this.destroyed?this._flush((h,p)=>{if(h){f?f(h):this.destroy(h);return}p!=null&&this.push(p),this.push(null),f&&f()}):(this.push(null),f&&f())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(f,h,p){throw new o("_transform()")},l.prototype._write=function(f,h,p){let m=this._readableState,g=this._writableState,v=m.length;this._transform(f,h,(b,y)=>{if(b){p(b);return}y!=null&&this.push(y),g.ended||v===m.length||m.length{Vt(),qt(),Kt();var{ObjectSetPrototypeOf:n}=vi();t.exports=o;var r=qJ();n(o.prototype,r.prototype),n(o,r);function o(i){if(!(this instanceof o))return new o(i);r.call(this,i)}o.prototype._transform=function(i,a,s){s(null,i)}}),$5=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayIsArray:r,Promise:o,SymbolAsyncIterator:i}=vi(),a=Nf(),{once:s}=Qu(),l=yv(),c=Ju(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=Ga(),{validateFunction:b,validateAbortSignal:y}=I_(),{isIterable:S,isReadable:w,isReadableNodeStream:E,isNodeStream:C,isTransformStream:x,isWebStream:_,isReadableStream:P,isReadableEnded:O}=ld(),I=globalThis.AbortController||C5().AbortController,M,T;function D(Q,ee,re){let ie=!1;Q.on("close",()=>{ie=!0});let G=a(Q,{readable:ee,writable:re},X=>{ie=!X});return{destroy:X=>{ie||(ie=!0,l.destroyer(Q,X||new m("pipe")))},cleanup:G}}function A(Q){return b(Q[Q.length-1],"streams[stream.length - 1]"),Q.pop()}function j(Q){if(S(Q))return Q;if(E(Q))return k(Q);throw new f("val",["Readable","Iterable","AsyncIterable"],Q)}async function*k(Q){T||(T=A_()),yield*T.prototype[i].call(Q)}async function F(Q,ee,re,{end:ie}){let G,X=null,ne=oe=>{if(oe&&(G=oe),X){let se=X;X=null,se()}},le=()=>new o((oe,se)=>{G?se(G):X=()=>{G?se(G):oe()}});ee.on("drain",ne);let ce=a(ee,{readable:!1},ne);try{ee.writableNeedDrain&&await le();for await(let oe of Q)ee.write(oe)||await le();ie&&ee.end(),await le(),re()}catch(oe){re(G!==oe?u(G,oe):oe)}finally{ce(),ee.off("drain",ne)}}async function V(Q,ee,re,{end:ie}){x(ee)&&(ee=ee.writable);let G=ee.getWriter();try{for await(let X of Q)await G.ready,G.write(X).catch(()=>{});await G.ready,ie&&await G.close(),re()}catch(X){try{await G.abort(X),re(X)}catch(ne){re(ne)}}}function W(...Q){return K(Q,s(A(Q)))}function K(Q,ee,re){if(Q.length===1&&r(Q[0])&&(Q=Q[0]),Q.length<2)throw new p("streams");let ie=new I,G=ie.signal,X=re==null?void 0:re.signal,ne=[];y(X,"options.signal");function le(){he(new v)}X==null||X.addEventListener("abort",le);let ce,oe,se=[],fe=0;function te(Se){he(Se,--fe===0)}function he(Se,ye){if(Se&&(!ce||ce.code==="ERR_STREAM_PREMATURE_CLOSE")&&(ce=Se),!(!ce&&!ye)){for(;se.length;)se.shift()(ce);X==null||X.removeEventListener("abort",le),ie.abort(),ye&&(ce||ne.forEach(ve=>ve()),n.nextTick(ee,ce,oe))}}let pe;for(let Se=0;Se0,Pe=ve||(re==null?void 0:re.end)!==!1,Ne=Se===Q.length-1;if(C(ye)){let U=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&te(H)};if(Pe){let{destroy:H,cleanup:q}=D(ye,ve,be);se.push(H),w(ye)&&Ne&&ne.push(q)}ye.on("error",U),w(ye)&&Ne&&ne.push(()=>{ye.removeListener("error",U)})}if(Se===0)if(typeof ye=="function"){if(pe=ye({signal:G}),!S(pe))throw new h("Iterable, AsyncIterable or Stream","source",pe)}else S(ye)||E(ye)||x(ye)?pe=ye:pe=c.from(ye);else if(typeof ye=="function"){if(x(pe)){var Oe;pe=j((Oe=pe)===null||Oe===void 0?void 0:Oe.readable)}else pe=j(pe);if(pe=ye(pe,{signal:G}),ve){if(!S(pe,!0))throw new h("AsyncIterable",`transform[${Se-1}]`,pe)}else{var Me;M||(M=GJ());let U=new M({objectMode:!0}),H=(Me=pe)===null||Me===void 0?void 0:Me.then;if(typeof H=="function")fe++,H.call(pe,Ce=>{oe=Ce,Ce!=null&&U.write(Ce),Pe&&U.end(),n.nextTick(te)},Ce=>{U.destroy(Ce),n.nextTick(te,Ce)});else if(S(pe,!0))fe++,F(pe,U,te,{end:Pe});else if(P(pe)||x(pe)){let Ce=pe.readable||pe;fe++,F(Ce,U,te,{end:Pe})}else throw new h("AsyncIterable or Promise","destination",pe);pe=U;let{destroy:q,cleanup:me}=D(pe,!1,!0);se.push(q),Ne&&ne.push(me)}}else if(C(ye)){if(E(pe)){fe+=2;let U=L(pe,ye,te,{end:Pe});w(ye)&&Ne&&ne.push(U)}else if(x(pe)||P(pe)){let U=pe.readable||pe;fe++,F(U,ye,te,{end:Pe})}else if(S(pe))fe++,F(pe,ye,te,{end:Pe});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],pe);pe=ye}else if(_(ye)){if(E(pe))fe++,V(j(pe),ye,te,{end:Pe});else if(P(pe)||S(pe))fe++,V(pe,ye,te,{end:Pe});else if(x(pe))fe++,V(pe.readable,ye,te,{end:Pe});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],pe);pe=ye}else pe=c.from(ye)}return(G!=null&&G.aborted||X!=null&&X.aborted)&&n.nextTick(le),pe}function L(Q,ee,re,{end:ie}){let G=!1;if(ee.on("close",()=>{G||re(new g)}),Q.pipe(ee,{end:!1}),ie){let X=function(){G=!0,ee.end()};O(Q)?n.nextTick(X):Q.once("end",X)}else re();return a(Q,{readable:!0,writable:!1},X=>{let ne=Q._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&ne&&ne.ended&&!ne.errored&&!ne.errorEmitted?Q.once("end",re).once("error",re):re(X)}),a(ee,{readable:!1,writable:!0},re)}t.exports={pipelineImpl:K,pipeline:W}}),YJ=Zt((e,t)=>{Vt(),qt(),Kt();var{pipeline:n}=$5(),r=Ju(),{destroyer:o}=yv(),{isNodeStream:i,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=ld(),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=Ga(),g=Nf();t.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return r.from(v[0]);let b=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let M=v.length-1;v[M]=r.from(v[M])}for(let M=0;M0&&!(s(v[M])||u(v[M])||c(v[M])))throw new p(`streams[${M}]`,b[M],"must be writable")}let y,S,w,E,C;function x(M){let T=E;E=null,T?T(M):M?C.destroy(M):!I&&!O&&C.destroy()}let _=v[0],P=n(v,x),O=!!(s(_)||u(_)||c(_)),I=!!(a(P)||f(P)||c(P));if(C=new r({writableObjectMode:!!(_!=null&&_.writableObjectMode),readableObjectMode:!!(P!=null&&P.writableObjectMode),writable:O,readable:I}),O){if(i(_))C._write=function(T,D,A){_.write(T,D)?A():y=A},C._final=function(T){_.end(),S=T},_.on("drain",function(){if(y){let T=y;y=null,T()}});else if(l(_)){let T=(c(_)?_.writable:_).getWriter();C._write=async function(D,A,j){try{await T.ready,T.write(D).catch(()=>{}),j()}catch(k){j(k)}},C._final=async function(D){try{await T.ready,T.close().catch(()=>{}),S=D}catch(A){D(A)}}}let M=c(P)?P.readable:P;g(M,()=>{if(S){let T=S;S=null,T()}})}if(I){if(i(P))P.on("readable",function(){if(w){let M=w;w=null,M()}}),P.on("end",function(){C.push(null)}),C._read=function(){for(;;){let M=P.read();if(M===null){w=C._read;return}if(!C.push(M))return}};else if(l(P)){let M=(c(P)?P.readable:P).getReader();C._read=async function(){for(;;)try{let{value:T,done:D}=await M.read();if(!C.push(T))return;if(D){C.push(null);return}}catch{return}}}}return C._destroy=function(M,T){!M&&E!==null&&(M=new h),w=null,y=null,S=null,E===null?T(M):(E=T,i(P)&&o(P,M))},C}}),LSe=Zt((e,t)=>{Vt(),qt(),Kt();var n=globalThis.AbortController||C5().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:i,ERR_OUT_OF_RANGE:a},AbortError:s}=Ga(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=I_(),f=vi().Symbol("kWeak"),{finished:h}=Nf(),p=YJ(),{addAbortSignalNoValidate:m}=k_(),{isWritable:g,isNodeStream:v}=ld(),{ArrayPrototypePush:b,MathFloor:y,Number:S,NumberIsNaN:w,Promise:E,PromiseReject:C,PromisePrototypeThen:x,Symbol:_}=vi(),P=_("kEmpty"),O=_("kEof");function I(ie,G){if(G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),v(ie)&&!g(ie))throw new r("stream",ie,"must be writable");let X=p(this,ie);return G!=null&&G.signal&&m(G.signal,X),X}function M(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal");let X=1;return(G==null?void 0:G.concurrency)!=null&&(X=y(G.concurrency)),c(X,"concurrency",1),(async function*(){var ne,le;let ce=new n,oe=this,se=[],fe=ce.signal,te={signal:fe},he=()=>ce.abort();G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted&&he(),G==null||(le=G.signal)===null||le===void 0||le.addEventListener("abort",he);let pe,Oe,Me=!1;function Se(){Me=!0}async function ye(){try{for await(let Pe of oe){var ve;if(Me)return;if(fe.aborted)throw new s;try{Pe=ie(Pe,te)}catch(Ne){Pe=C(Ne)}Pe!==P&&(typeof((ve=Pe)===null||ve===void 0?void 0:ve.catch)=="function"&&Pe.catch(Se),se.push(Pe),pe&&(pe(),pe=null),!Me&&se.length&&se.length>=X&&await new E(Ne=>{Oe=Ne}))}se.push(O)}catch(Pe){let Ne=C(Pe);x(Ne,void 0,Se),se.push(Ne)}finally{var be;Me=!0,pe&&(pe(),pe=null),G==null||(be=G.signal)===null||be===void 0||be.removeEventListener("abort",he)}}ye();try{for(;;){for(;se.length>0;){let ve=await se[0];if(ve===O)return;if(fe.aborted)throw new s;ve!==P&&(yield ve),se.shift(),Oe&&(Oe(),Oe=null)}await new E(ve=>{pe=ve})}}finally{ce.abort(),Me=!0,Oe&&(Oe(),Oe=null)}}).call(this)}function T(ie=void 0){return ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal"),(async function*(){let G=0;for await(let ne of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s({cause:ie.signal.reason});yield[G++,ne]}}).call(this)}async function D(ie,G=void 0){for await(let X of F.call(this,ie,G))return!0;return!1}async function A(ie,G=void 0){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);return!await D.call(this,async(...X)=>!await ie(...X),G)}async function j(ie,G){for await(let X of F.call(this,ie,G))return X}async function k(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);async function X(ne,le){return await ie(ne,le),P}for await(let ne of M.call(this,X,G));}function F(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);async function X(ne,le){return await ie(ne,le)?ne:P}return M.call(this,X,G)}var V=class extends i{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function W(ie,G,X){var ne;if(typeof ie!="function")throw new o("reducer",["Function","AsyncFunction"],ie);X!=null&&u(X,"options"),(X==null?void 0:X.signal)!=null&&l(X.signal,"options.signal");let le=arguments.length>1;if(X!=null&&(ne=X.signal)!==null&&ne!==void 0&&ne.aborted){let te=new s(void 0,{cause:X.signal.reason});throw this.once("error",()=>{}),await h(this.destroy(te)),te}let ce=new n,oe=ce.signal;if(X!=null&&X.signal){let te={once:!0,[f]:this};X.signal.addEventListener("abort",()=>ce.abort(),te)}let se=!1;try{for await(let te of this){var fe;if(se=!0,X!=null&&(fe=X.signal)!==null&&fe!==void 0&&fe.aborted)throw new s;le?G=await ie(G,te,{signal:oe}):(G=te,le=!0)}if(!se&&!le)throw new V}finally{ce.abort()}return G}async function K(ie){ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal");let G=[];for await(let ne of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s(void 0,{cause:ie.signal.reason});b(G,ne)}return G}function L(ie,G){let X=M.call(this,ie,G);return(async function*(){for await(let ne of X)yield*ne}).call(this)}function Q(ie){if(ie=S(ie),w(ie))return 0;if(ie<0)throw new a("number",">= 0",ie);return ie}function ee(ie,G=void 0){return G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),ie=Q(ie),(async function*(){var X;if(G!=null&&(X=G.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let le of this){var ne;if(G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;ie--<=0&&(yield le)}}).call(this)}function re(ie,G=void 0){return G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),ie=Q(ie),(async function*(){var X;if(G!=null&&(X=G.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let le of this){var ne;if(G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;if(ie-- >0)yield le;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:T,drop:ee,filter:F,flatMap:L,map:M,take:re,compose:I},t.exports.promiseReturningOperators={every:A,forEach:k,reduce:W,toArray:K,some:D,find:j}}),XJ=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayPrototypePop:n,Promise:r}=vi(),{isIterable:o,isNodeStream:i,isWebStream:a}=ld(),{pipelineImpl:s}=$5(),{finished:l}=Nf();QJ();function c(...u){return new r((f,h)=>{let p,m,g=u[u.length-1];if(g&&typeof g=="object"&&!i(g)&&!o(g)&&!a(g)){let v=n(u);p=v.signal,m=v.end}s(u,(v,b)=>{v?h(v):f(b)},{signal:p,end:m})})}t.exports={finished:l,pipeline:c}}),QJ=Zt((e,t)=>{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:i}=vi(),{promisify:{custom:a}}=Qu(),{streamReturningOperators:s,promiseReturningOperators:l}=LSe(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Ga(),u=YJ(),{pipeline:f}=$5(),{destroyer:h}=yv(),p=Nf(),m=XJ(),g=ld(),v=t.exports=w5().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=A_();for(let y of o(s)){let S=function(...E){if(new.target)throw c();return v.Readable.from(i(w,this,E))},w=s[y];r(S,"name",{__proto__:null,value:w.name}),r(S,"length",{__proto__:null,value:w.length}),r(v.Readable.prototype,y,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}for(let y of o(l)){let S=function(...E){if(new.target)throw c();return i(w,this,E)},w=l[y];r(S,"name",{__proto__:null,value:w.name}),r(S,"length",{__proto__:null,value:w.length}),r(v.Readable.prototype,y,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}v.Writable=KJ(),v.Duplex=Ju(),v.Transform=qJ(),v.PassThrough=GJ(),v.pipeline=f;var{addAbortSignal:b}=k_();v.addAbortSignal=b,v.finished=p,v.destroy=h,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(f,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(p,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(y){return y instanceof Uint8Array},v._uint8ArrayToBuffer=function(y){return n.from(y.buffer,y.byteOffset,y.byteLength)}}),Np=Zt((e,t)=>{Vt(),qt(),Kt();var n=QJ(),r=XJ(),o=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=o,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}),BSe=Zt((e,t)=>{Vt(),qt(),Kt(),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 o=function(){};o.prototype=r.prototype,n.prototype=new o,n.prototype.constructor=n}}}),zSe=Zt((e,t)=>{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),r=Symbol.for("BufferList");function o(i){if(!(this instanceof o))return new o(i);o._init.call(this,i)}o._init=function(i){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,i&&this.append(i)},o.prototype._new=function(i){return new o(i)},o.prototype._offset=function(i){if(i===0)return[0,0];let a=0;for(let s=0;sthis.length||i<0)return;let a=this._offset(i);return this._bufs[a[0]][a[1]]},o.prototype.slice=function(i,a){return typeof i=="number"&&i<0&&(i+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,i,a)},o.prototype.copy=function(i,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 i||n.alloc(0);let c=!!i,u=this._offset(s),f=l-s,h=f,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 g=0;gv)this._bufs[g].copy(i,p,m),p+=v;else{this._bufs[g].copy(i,p,m,m+h),p+=v;break}h-=v,m&&(m=0)}return i.length>p?i.slice(0,p):i},o.prototype.shallowSlice=function(i,a){if(i=i||0,a=typeof a!="number"?this.length:a,i<0&&(i+=this.length),a<0&&(a+=this.length),i===a)return this._new();let s=this._offset(i),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)},o.prototype.toString=function(i,a,s){return this.slice(a,s).toString(i)},o.prototype.consume=function(i){if(i=Math.trunc(i),Number.isNaN(i)||i<=0)return this;for(;this._bufs.length;)if(i>=this._bufs[0].length)i-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(i),this.length-=i;break}return this},o.prototype.duplicate=function(){let i=this._new();for(let a=0;athis.length?this.length:a;let l=this._offset(a),c=l[0],u=l[1];for(;c=i.length){let h=f.indexOf(i,u);if(h!==-1)return this._reverseOffset([c,h]);u=f.length-i.length+1}else{let h=this._reverseOffset([c,u]);if(this._match(h,i))return h;u++}u=0}return-1},o.prototype._match=function(i,a){if(this.length-i{Vt(),qt(),Kt();var n=Np().Duplex,r=BSe(),o=zSe();function i(a){if(!(this instanceof i))return new i(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}o._init.call(this,a),n.call(this)}r(i,n),Object.assign(i.prototype,o.prototype),i.prototype._new=function(a){return new i(a)},i.prototype._write=function(a,s,l){this._appendBuffer(a),typeof l=="function"&&l()},i.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)},i.prototype.end=function(a){n.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},i.prototype._destroy=function(a,s){this._bufs.length=0,this.length=0,s(a)},i.prototype._isBufferList=function(a){return a instanceof i||a instanceof o||i.isBufferList(a)},i.isBufferList=o.isBufferList,t.exports=i,t.exports.BufferListStream=i,t.exports.BufferList=o}),USe=Zt((e,t)=>{Vt(),qt(),Kt();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}),JJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=t.exports,{Buffer:r}=(Bi(),Qr(Li));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 i in n.requiredHeaderFlags){let a=n.requiredHeaderFlags[i];n.requiredHeaderFlagsErrors[i]="Invalid header flag bits, must be 0x"+a.toString(16)+" for "+n.types[i]+" packet"}n.codes={};for(let i in n.types){let a=n.types[i];n.codes[a]=i}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<[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[i]<r.from([i])),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"}}),WSe=Zt((e,t)=>{Vt(),qt(),Kt();var n=1e3,r=n*60,o=r*60,i=o*24,a=i*7,s=i*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]),g=(p[2]||"ms").toLowerCase();switch(g){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*i;case"hours":case"hour":case"hrs":case"hr":case"h":return m*o;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>=i?Math.round(h/i)+"d":p>=o?Math.round(h/o)+"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>=i?f(h,p,i,"day"):p>=o?f(h,p,o,"hour"):p>=r?f(h,p,r,"minute"):p>=n?f(h,p,n,"second"):h+" ms"}function f(h,p,m,g){var v=p>=m*1.5;return Math.round(h/m)+" "+g+(v?"s":"")}}),VSe=Zt((e,t)=>{Vt(),qt(),Kt();function n(r){i.debug=i,i.default=i,i.coerce=f,i.disable=l,i.enable=s,i.enabled=c,i.humanize=WSe(),i.destroy=h,Object.keys(r).forEach(p=>{i[p]=r[p]}),i.names=[],i.skips=[],i.formatters={};function o(p){let m=0;for(let g=0;g{if(_==="%%")return"%";x++;let O=i.formatters[P];if(typeof O=="function"){let I=S[x];_=O.call(w,I),S.splice(x,1),x--}return _}),i.formatArgs.call(w,S),(w.log||i.log).apply(w,S)}return y.namespace=p,y.useColors=i.useColors(),y.color=i.selectColor(p),y.extend=a,y.destroy=i.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==i.namespaces&&(v=i.namespaces,b=i.enabled(p)),b),set:S=>{g=S}}),typeof i.init=="function"&&i.init(y),y}function a(p,m){let g=i(this.namespace+(typeof m>"u"?":":m)+p);return g.log=this.log,g}function s(p){i.save(p),i.namespaces=p,i.names=[],i.skips=[];let m,g=(typeof p=="string"?p:"").split(/[\s,]+/),v=g.length;for(m=0;m"-"+m)].join(",");return i.enable(""),p}function c(p){if(p[p.length-1]==="*")return!0;let m,g;for(m=0,g=i.skips.length;m{Vt(),qt(),Kt(),e.formatArgs=r,e.save=o,e.load=i,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,f=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(f=u))}),l.splice(f,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof jr<"u"&&"env"in jr&&(l=jr.env.DEBUG),l}function a(){try{return localStorage}catch{}}t.exports=VSe()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),KSe=Zt((e,t)=>{Vt(),qt(),Kt();var n=HSe(),{EventEmitter:r}=(bv(),Qr(kp)),o=USe(),i=JJ(),a=Zu()("mqtt-packet:parser"),s=class K4 extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof K4?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new K4().parser(c)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,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>>i.CMD_SHIFT;this.packet.cmd=i.types[u];let f=c&15,h=i.requiredHeaderFlags[u];return h!=null&&f!==h?this._emitError(new Error(i.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&i.RETAIN_MASK)!==0,this.packet.qos=c>>i.QOS_SHIFT&i.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&i.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,f,h,p={},m=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=g,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)&i.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&i.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&i.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&i.WILL_RETAIN_MASK),b=(this._list.readUInt8(this._pos)&i.WILL_QOS_MASK)>>i.WILL_QOS_SHIFT;if(p.will)m.will={},m.will.retain=v,m.will.qos=b;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(b)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)&i.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 S=this._parseProperties();Object.getOwnPropertyNames(S).length&&(m.properties=S)}let y=this._parseString();if(y===null)return this._emitError(new Error("Packet too short"));if(m.clientId=y,a("_parseConnect: packet.clientId: %s",m.clientId),p.will){if(m.protocolVersion===5){let S=this._parseProperties();Object.getOwnPropertyNames(S).length&&(m.will.properties=S)}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(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));m.password=f}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&i.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 f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}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,f,h,p,m,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(c.properties=b)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(h=f&i.SUBSCRIBE_OPTIONS_QOS_MASK,h>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(f>>i.SUBSCRIBE_OPTIONS_NL_SHIFT&i.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(f>>i.SUBSCRIBE_OPTIONS_RAP_SHIFT&i.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,p=f>>i.SUBSCRIBE_OPTIONS_RH_SHIFT&i.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:h},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=p):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_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._pos2&&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._pos2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!i.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!i.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(),i.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(),!i.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(),f=u+this._pos;if(u===-1||f>this._list.length||f>this.packet.length)return null;let h=this._list.toString("utf8",this._pos,f);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 f=this._list.slice(this._pos,u);return this._pos+=c,a("_parseBuffer: result: %o",f),f}_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,f=0,h=1,p=0,m=!1,g,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),m?c?m={bytes:f,value:p}:m=p:m=!1,a("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),r=65536,o={},i=n.isBuffer(n.from([1,2]).subarray(0,1));function a(u){let f=n.allocUnsafe(2);return f.writeUInt8(u>>8,0),f.writeUInt8(u&255,1),f}function s(){for(let u=0;u0&&(f=f|128),p.writeUInt8(f,h++);while(u>0&&h<4);return u>0&&(h=0),i?p.subarray(0,h):p.slice(0,h)}function c(u){let f=n.allocUnsafe(4);return f.writeUInt32BE(u,0),f}t.exports={cache:o,generateCache:s,generateNumber:a,genBufVariableByteInt:l,generate4ByteBuffer:c}}),GSe=Zt((e,t)=>{Vt(),qt(),Kt(),typeof jr>"u"||!jr.version||jr.version.indexOf("v0.")===0||jr.version.indexOf("v1.")===0&&jr.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=jr;function n(r,o,i,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 jr.nextTick(r);case 2:return jr.nextTick(function(){r.call(null,o)});case 3:return jr.nextTick(function(){r.call(null,o,i)});case 4:return jr.nextTick(function(){r.call(null,o,i,a)});default:for(l=new Array(s-1),c=0;c{Vt(),qt(),Kt();var n=JJ(),{Buffer:r}=(Bi(),Qr(Li)),o=r.allocUnsafe(0),i=r.from([0]),a=qSe(),s=GSe().nextTick,l=Zu()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,f=a.generateCache,h=a.genBufVariableByteInt,p=a.generate4ByteBuffer,m=k,g=!0;function v(G,X,ne){switch(l("generate called"),X.cork&&(X.cork(),s(b,X)),g&&(g=!1,f()),l("generate: packet.cmd: %s",G.cmd),G.cmd){case"connect":return y(G,X);case"connack":return S(G,X,ne);case"publish":return w(G,X,ne);case"puback":case"pubrec":case"pubrel":case"pubcomp":return E(G,X,ne);case"subscribe":return C(G,X,ne);case"suback":return x(G,X,ne);case"unsubscribe":return _(G,X,ne);case"unsuback":return P(G,X,ne);case"pingreq":case"pingresp":return O(G,X);case"disconnect":return I(G,X,ne);case"auth":return M(G,X,ne);default:return X.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===k},set(G){G?((!c||Object.keys(c).length===0)&&(g=!0),m=k):(g=!1,m=F)}});function b(G){G.uncork()}function y(G,X,ne){let le=G||{},ce=le.protocolId||"MQTT",oe=le.protocolVersion||4,se=le.will,fe=le.clean,te=le.keepalive||0,he=le.clientId||"",pe=le.username,Oe=le.password,Me=le.properties;fe===void 0&&(fe=!0);let Se=0;if(!ce||typeof ce!="string"&&!r.isBuffer(ce))return X.destroy(new Error("Invalid protocolId")),!1;if(Se+=ce.length+2,oe!==3&&oe!==4&&oe!==5)return X.destroy(new Error("Invalid protocol version")),!1;if(Se+=1,(typeof he=="string"||r.isBuffer(he))&&(he||oe>=4)&&(he||fe))Se+=r.byteLength(he)+2;else{if(oe<4)return X.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(fe*1===0)return X.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof te!="number"||te<0||te>65535||te%1!==0)return X.destroy(new Error("Invalid keepalive")),!1;Se+=2,Se+=1;let ye,ve;if(oe===5){if(ye=K(X,Me),!ye)return!1;Se+=ye.length}if(se){if(typeof se!="object")return X.destroy(new Error("Invalid will")),!1;if(!se.topic||typeof se.topic!="string")return X.destroy(new Error("Invalid will topic")),!1;if(Se+=r.byteLength(se.topic)+2,Se+=2,se.payload)if(se.payload.length>=0)typeof se.payload=="string"?Se+=r.byteLength(se.payload):Se+=se.payload.length;else return X.destroy(new Error("Invalid will payload")),!1;if(ve={},oe===5){if(ve=K(X,se.properties),!ve)return!1;Se+=ve.length}}let be=!1;if(pe!=null)if(ie(pe))be=!0,Se+=r.byteLength(pe)+2;else return X.destroy(new Error("Invalid username")),!1;if(Oe!=null){if(!be)return X.destroy(new Error("Username is required to use password")),!1;if(ie(Oe))Se+=re(Oe)+2;else return X.destroy(new Error("Invalid password")),!1}X.write(n.CONNECT_HEADER),D(X,Se),W(X,ce),le.bridgeMode&&(oe+=128),X.write(oe===131?n.VERSION131:oe===132?n.VERSION132:oe===4?n.VERSION4:oe===5?n.VERSION5:n.VERSION3);let Pe=0;return Pe|=pe!=null?n.USERNAME_MASK:0,Pe|=Oe!=null?n.PASSWORD_MASK:0,Pe|=se&&se.retain?n.WILL_RETAIN_MASK:0,Pe|=se&&se.qos?se.qos<0&&m(X,he),Me==null||Me.write(),l("publish: payload: %o",te),X.write(te)}function E(G,X,ne){let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.cmd||"puback",se=ce.messageId,fe=ce.dup&&oe==="pubrel"?n.DUP_MASK:0,te=0,he=ce.reasonCode,pe=ce.properties,Oe=le===5?3:2;if(oe==="pubrel"&&(te=1),typeof se!="number")return X.destroy(new Error("Invalid messageId")),!1;let Me=null;if(le===5&&typeof pe=="object"){if(Me=L(X,pe,ne,Oe),!Me)return!1;Oe+=Me.length}return X.write(n.ACKS[oe][te][fe][0]),Oe===3&&(Oe+=he!==0?1:-1),D(X,Oe),m(X,se),le===5&&Oe!==2&&X.write(r.from([he])),Me!==null?Me.write():Oe===4&&X.write(r.from([0])),!0}function C(G,X,ne){l("subscribe: packet: ");let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.dup?n.DUP_MASK:0,se=ce.messageId,fe=ce.subscriptions,te=ce.properties,he=0;if(typeof se!="number")return X.destroy(new Error("Invalid messageId")),!1;he+=2;let pe=null;if(le===5){if(pe=K(X,te),!pe)return!1;he+=pe.length}if(typeof fe=="object"&&fe.length)for(let Me=0;Me2)return X.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}he+=r.byteLength(Se)+2+1}else return X.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),X.write(n.SUBSCRIBE_HEADER[1][oe?1:0][0]),D(X,he),m(X,se),pe!==null&&pe.write();let Oe=!0;for(let Me of fe){let Se=Me.topic,ye=Me.qos,ve=+Me.nl,be=+Me.rap,Pe=Me.rh,Ne;A(X,Se),Ne=n.SUBSCRIBE_OPTIONS_QOS[ye],le===5&&(Ne|=ve?n.SUBSCRIBE_OPTIONS_NL:0,Ne|=be?n.SUBSCRIBE_OPTIONS_RAP:0,Ne|=Pe?n.SUBSCRIBE_OPTIONS_RH[Pe]:0),Oe=X.write(r.from([Ne]))}return Oe}function x(G,X,ne){let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.messageId,se=ce.granted,fe=ce.properties,te=0;if(typeof oe!="number")return X.destroy(new Error("Invalid messageId")),!1;if(te+=2,typeof se=="object"&&se.length)for(let pe=0;pen.VARBYTEINT_MAX)return G.destroy(new Error(`Invalid variable byte integer: ${X}`)),!1;let ne=T[X];return ne||(ne=h(X),X<16384&&(T[X]=ne)),l("writeVarByteInt: writing to stream: %o",ne),G.write(ne)}function A(G,X){let ne=r.byteLength(X);return m(G,ne),l("writeString: %s",X),G.write(X,"utf8")}function j(G,X,ne){A(G,X),A(G,ne)}function k(G,X){return l("writeNumberCached: number: %d",X),l("writeNumberCached: %o",c[X]),G.write(c[X])}function F(G,X){let ne=u(X);return l("writeNumberGenerated: %o",ne),G.write(ne)}function V(G,X){let ne=p(X);return l("write4ByteNumber: %o",ne),G.write(ne)}function W(G,X){typeof X=="string"?A(G,X):X?(m(G,X.length),G.write(X)):m(G,0)}function K(G,X){if(typeof X!="object"||X.length!=null)return{length:1,write(){ee(G,{},0)}};let ne=0;function le(ce,oe){let se=n.propertiesTypes[ce],fe=0;switch(se){case"byte":{if(typeof oe!="boolean")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=2;break}case"int8":{if(typeof oe!="number"||oe<0||oe>255)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=2;break}case"binary":{if(oe&&oe===null)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=1+r.byteLength(oe)+2;break}case"int16":{if(typeof oe!="number"||oe<0||oe>65535)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=3;break}case"int32":{if(typeof oe!="number"||oe<0||oe>4294967295)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=5;break}case"var":{if(typeof oe!="number"||oe<0||oe>268435455)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=1+r.byteLength(h(oe));break}case"string":{if(typeof oe!="string")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=3+r.byteLength(oe.toString());break}case"pair":{if(typeof oe!="object")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=Object.getOwnPropertyNames(oe).reduce((te,he)=>{let pe=oe[he];return Array.isArray(pe)?te+=pe.reduce((Oe,Me)=>(Oe+=3+r.byteLength(he.toString())+2+r.byteLength(Me.toString()),Oe),0):te+=3+r.byteLength(he.toString())+2+r.byteLength(oe[he].toString()),te},0);break}default:return G.destroy(new Error(`Invalid property ${ce}: ${oe}`)),!1}return fe}if(X)for(let ce in X){let oe=0,se=0,fe=X[ce];if(Array.isArray(fe))for(let te=0;teoe;){let fe=ce.shift();if(fe&&X[fe])delete X[fe],se=K(G,X);else return!1}return se}function Q(G,X,ne){switch(n.propertiesTypes[X]){case"byte":{G.write(r.from([n.properties[X]])),G.write(r.from([+ne]));break}case"int8":{G.write(r.from([n.properties[X]])),G.write(r.from([ne]));break}case"binary":{G.write(r.from([n.properties[X]])),W(G,ne);break}case"int16":{G.write(r.from([n.properties[X]])),m(G,ne);break}case"int32":{G.write(r.from([n.properties[X]])),V(G,ne);break}case"var":{G.write(r.from([n.properties[X]])),D(G,ne);break}case"string":{G.write(r.from([n.properties[X]])),A(G,ne);break}case"pair":{Object.getOwnPropertyNames(ne).forEach(le=>{let ce=ne[le];Array.isArray(ce)?ce.forEach(oe=>{G.write(r.from([n.properties[X]])),j(G,le.toString(),oe.toString())}):(G.write(r.from([n.properties[X]])),j(G,le.toString(),ce.toString()))});break}default:return G.destroy(new Error(`Invalid property ${X} value: ${ne}`)),!1}}function ee(G,X,ne){D(G,ne);for(let le in X)if(Object.prototype.hasOwnProperty.call(X,le)&&X[le]!==null){let ce=X[le];if(Array.isArray(ce))for(let oe=0;oe{Vt(),qt(),Kt();var n=ZJ(),{EventEmitter:r}=(bv(),Qr(kp)),{Buffer:o}=(Bi(),Qr(Li));function i(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,f;for(f=0;f{Vt(),qt(),Kt(),e.parser=KSe().parser,e.generate=YSe(),e.writeToStream=ZJ()}),eZ=Zt(e=>{Vt(),qt(),Kt(),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}),QSe=Zt((e,t)=>{Vt(),qt(),Kt(),t.exports=r;function n(i){return i instanceof l2?l2.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function r(i){if(i=i||{},i.circles)return o(i);return i.proto?l:s;function a(c,u){for(var f=Object.keys(c),h=new Array(f.length),p=0;p{Vt(),qt(),Kt(),t.exports=QSe()()}),ZSe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let o=r.split("/");for(let i=0;i{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Np(),n={objectMode:!0},r={clean:!0},o=class{constructor(i){this.options=i||{},this.options=Object.assign(Object.assign({},r),i),this._inflights=new Map}put(i,a){return this._inflights.set(i.messageId,i),a&&a(),this}createStream(){let i=new t.Readable(n),a=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{a.push(c)}),i._read=()=>{!s&&l{if(!s)return s=!0,setTimeout(()=>{i.emit("close")},0),i},i}del(i,a){let s=this._inflights.get(i.messageId);return s?(this._inflights.delete(i.messageId),a(null,s)):a&&a(new Error("missing packet")),this}get(i,a){let s=this._inflights.get(i.messageId);return s?a(null,s):a&&a(new Error("missing packet")),this}close(i){this.options.clean&&(this._inflights=null),i&&i()}};e.default=o}),eCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,o,i)=>{r.log("handlePublish: packet %o",o),i=typeof i<"u"?i:r.noop;let a=o.topic.toString(),s=o.payload,{qos:l}=o,{messageId:c}=o,{options:u}=r;if(r.options.protocolVersion===5){let f;if(o.properties&&(f=o.properties.topicAlias),typeof f<"u")if(a.length===0)if(f>0&&f<=65535){let h=r.topicAliasRecv.getTopicByAlias(f);if(h)a=h,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,f);else{r.log("handlePublish :: unregistered topic alias. alias: %d",f),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(a,f))r.log("handlePublish :: registered topic: %s - alias: %d",a,f);else{r.log("handlePublish :: topic alias out of range. alias: %d",f),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,o,(f,h)=>{if(typeof f=="number"&&(h=f,f=null),f)return r.emit("error",f);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},i):r.incomingStore.put(o,()=>{r._sendPacket({cmd:"pubrec",messageId:c},i)})});break}case 1:{u.customHandleAcks(a,s,o,(f,h)=>{if(typeof f=="number"&&(h=f,f=null),f)return r.emit("error",f);if(t.indexOf(h)===-1)return r.emit("error",new Error("Wrong reason code for puback"));h||r.emit("message",a,s,o),r.handleMessage(o,p=>{if(p)return i&&i(p);r._sendPacket({cmd:"puback",messageId:c,reasonCode:h},i)})});break}case 0:r.emit("message",a,s,o),r.handleMessage(o,i);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),tCe=Zt((e,t)=>{t.exports={version:"5.10.3"}}),Sv=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class nZ extends Error{constructor(o,i){super(o),this.code=i,Object.setPrototypeOf(this,nZ.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,o,i=!1){var a;let s=[o];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))(i||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(jr==null?void 0:jr.nextTick)=="function"?jr.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=tCe().version}),D_=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=Sv();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,o)=>{let{messageId:i}=o,a=o.cmd,s=null,l=r.outgoing[i]?r.outgoing[i].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=o.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(i,()=>{l(c,o)})):r._removeOutgoingAndStoreMessage(i,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:i};let u=o.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(i,()=>{l(c,o)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i);let u=o.granted;for(let f=0;f{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[i],r._invokeStoreProcessingQueue(),l(c,o);break}case"unsuback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i),r._invokeStoreProcessingQueue(),l(null,o);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),nCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Sv(),n=D_(),r=(o,i)=>{let{options:a}=o,s=a.protocolVersion,l=s===5?i.reasonCode:i.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);o.emit("error",c);return}o.handleAuth(i,(c,u)=>{if(c){o.emit("error",c);return}if(l===24)o.reconnecting=!1,o._sendPacket(u);else{let f=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);o.emit("error",f)}})};e.default=r}),rCe=Zt(e=>{var p,m,g,v,b,y,S,w,E,C,x,_,P,O,I,M,T,D,A,j,k,F,V,W,K,L,q4,ee,re,ie,G,rZ,ne,le,ce,Md,Td,G4,Fw,Lw,vo,Y4,cy,Se;Vt(),qt(),Kt(),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 jr=="object"&&jr?jr:{},o=(ye,ve,be,Pe)=>{typeof r.emitWarning=="function"?r.emitWarning(ye,ve,be,Pe):console.error(`[${be}] ${ve}: ${ye}`)},i=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof i>"u"){a=class{constructor(){Pr(this,"onabort");Pr(this,"_onabort",[]);Pr(this,"reason");Pr(this,"aborted",!1)}addEventListener(be,Pe){this._onabort.push(Pe)}},i=class{constructor(){Pr(this,"signal",new a);ve()}abort(be){var Pe,Ne;if(!this.signal.aborted){this.signal.reason=be,this.signal.aborted=!0;for(let U of this.signal._onabort)U(be);(Ne=(Pe=this.signal).onabort)==null||Ne.call(Pe,be)}}};let ye=((p=r.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",ve=()=>{ye&&(ye=!1,o("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",ve))}}var s=ye=>!n.has(ye),l=ye=>ye&&ye===Math.floor(ye)&&ye>0&&isFinite(ye),c=ye=>l(ye)?ye<=Math.pow(2,8)?Uint8Array:ye<=Math.pow(2,16)?Uint16Array:ye<=Math.pow(2,32)?Uint32Array:ye<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(ye){super(ye),this.fill(0)}},f=(m=class{constructor(ve,be){Pr(this,"heap");Pr(this,"length");if(!Ae(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new be(ve),this.length=0}static create(ve){let be=c(ve);if(!be)return[];cn(m,g,!0);let Pe=new m(ve,be);return cn(m,g,!1),Pe}push(ve){this.heap[this.length++]=ve}pop(){return this.heap[--this.length]}},g=new WeakMap,Tn(m,g,!1),m),h=(Se=class{constructor(ve){Tn(this,L);Tn(this,v);Tn(this,b);Tn(this,y);Tn(this,S);Tn(this,w);Pr(this,"ttl");Pr(this,"ttlResolution");Pr(this,"ttlAutopurge");Pr(this,"updateAgeOnGet");Pr(this,"updateAgeOnHas");Pr(this,"allowStale");Pr(this,"noDisposeOnSet");Pr(this,"noUpdateTTL");Pr(this,"maxEntrySize");Pr(this,"sizeCalculation");Pr(this,"noDeleteOnFetchRejection");Pr(this,"noDeleteOnStaleGet");Pr(this,"allowStaleOnFetchAbort");Pr(this,"allowStaleOnFetchRejection");Pr(this,"ignoreFetchAbort");Tn(this,E);Tn(this,C);Tn(this,x);Tn(this,_);Tn(this,P);Tn(this,O);Tn(this,I);Tn(this,M);Tn(this,T);Tn(this,D);Tn(this,A);Tn(this,j);Tn(this,k);Tn(this,F);Tn(this,V);Tn(this,W);Tn(this,K);Tn(this,ee,()=>{});Tn(this,re,()=>{});Tn(this,ie,()=>{});Tn(this,G,()=>!1);Tn(this,ne,ve=>{});Tn(this,le,(ve,be,Pe)=>{});Tn(this,ce,(ve,be,Pe,Ne)=>{if(Pe||Ne)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:be=0,ttl:Pe,ttlResolution:Ne=1,ttlAutopurge:U,updateAgeOnGet:H,updateAgeOnHas:q,allowStale:me,dispose:Ce,disposeAfter:ue,noDisposeOnSet:Le,noUpdateTTL:He,maxSize:ge=0,maxEntrySize:De=0,sizeCalculation:qe,fetchMethod:je,noDeleteOnFetchRejection:Ke,noDeleteOnStaleGet:Ue,allowStaleOnFetchRejection:Ve,allowStaleOnFetchAbort:St,ignoreFetchAbort:et}=ve;if(be!==0&&!l(be))throw new TypeError("max option must be a nonnegative integer");let st=be?c(be):Array;if(!st)throw new Error("invalid max value: "+be);if(cn(this,v,be),cn(this,b,ge),this.maxEntrySize=De||Ae(this,b),this.sizeCalculation=qe,this.sizeCalculation){if(!Ae(this,b)&&!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(je!==void 0&&typeof je!="function")throw new TypeError("fetchMethod must be a function if specified");if(cn(this,w,je),cn(this,W,!!je),cn(this,x,new Map),cn(this,_,new Array(be).fill(void 0)),cn(this,P,new Array(be).fill(void 0)),cn(this,O,new st(be)),cn(this,I,new st(be)),cn(this,M,0),cn(this,T,0),cn(this,D,f.create(be)),cn(this,E,0),cn(this,C,0),typeof Ce=="function"&&cn(this,y,Ce),typeof ue=="function"?(cn(this,S,ue),cn(this,A,[])):(cn(this,S,void 0),cn(this,A,void 0)),cn(this,V,!!Ae(this,y)),cn(this,K,!!Ae(this,S)),this.noDisposeOnSet=!!Le,this.noUpdateTTL=!!He,this.noDeleteOnFetchRejection=!!Ke,this.allowStaleOnFetchRejection=!!Ve,this.allowStaleOnFetchAbort=!!St,this.ignoreFetchAbort=!!et,this.maxEntrySize!==0){if(Ae(this,b)!==0&&!l(Ae(this,b)))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");wn(this,L,rZ).call(this)}if(this.allowStale=!!me,this.noDeleteOnStaleGet=!!Ue,this.updateAgeOnGet=!!H,this.updateAgeOnHas=!!q,this.ttlResolution=l(Ne)||Ne===0?Ne:1,this.ttlAutopurge=!!U,this.ttl=Pe||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");wn(this,L,q4).call(this)}if(Ae(this,v)===0&&this.ttl===0&&Ae(this,b)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Ae(this,v)&&!Ae(this,b)){let Ct="LRU_CACHE_UNBOUNDED";s(Ct)&&(n.add(Ct),o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ct,Se))}}static unsafeExposeInternals(ve){return{starts:Ae(ve,k),ttls:Ae(ve,F),sizes:Ae(ve,j),keyMap:Ae(ve,x),keyList:Ae(ve,_),valList:Ae(ve,P),next:Ae(ve,O),prev:Ae(ve,I),get head(){return Ae(ve,M)},get tail(){return Ae(ve,T)},free:Ae(ve,D),isBackgroundFetch:be=>{var Pe;return wn(Pe=ve,L,vo).call(Pe,be)},backgroundFetch:(be,Pe,Ne,U)=>{var H;return wn(H=ve,L,Lw).call(H,be,Pe,Ne,U)},moveToTail:be=>{var Pe;return wn(Pe=ve,L,cy).call(Pe,be)},indexes:be=>{var Pe;return wn(Pe=ve,L,Md).call(Pe,be)},rindexes:be=>{var Pe;return wn(Pe=ve,L,Td).call(Pe,be)},isStale:be=>{var Pe;return Ae(Pe=ve,G).call(Pe,be)}}}get max(){return Ae(this,v)}get maxSize(){return Ae(this,b)}get calculatedSize(){return Ae(this,C)}get size(){return Ae(this,E)}get fetchMethod(){return Ae(this,w)}get dispose(){return Ae(this,y)}get disposeAfter(){return Ae(this,S)}getRemainingTTL(ve){return Ae(this,x).has(ve)?1/0:0}*entries(){for(let ve of wn(this,L,Md).call(this))Ae(this,P)[ve]!==void 0&&Ae(this,_)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield[Ae(this,_)[ve],Ae(this,P)[ve]])}*rentries(){for(let ve of wn(this,L,Td).call(this))Ae(this,P)[ve]!==void 0&&Ae(this,_)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield[Ae(this,_)[ve],Ae(this,P)[ve]])}*keys(){for(let ve of wn(this,L,Md).call(this)){let be=Ae(this,_)[ve];be!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield be)}}*rkeys(){for(let ve of wn(this,L,Td).call(this)){let be=Ae(this,_)[ve];be!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield be)}}*values(){for(let ve of wn(this,L,Md).call(this))Ae(this,P)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield Ae(this,P)[ve])}*rvalues(){for(let ve of wn(this,L,Td).call(this))Ae(this,P)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield Ae(this,P)[ve])}[Symbol.iterator](){return this.entries()}find(ve,be={}){for(let Pe of wn(this,L,Md).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;if(U!==void 0&&ve(U,Ae(this,_)[Pe],this))return this.get(Ae(this,_)[Pe],be)}}forEach(ve,be=this){for(let Pe of wn(this,L,Md).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;U!==void 0&&ve.call(be,U,Ae(this,_)[Pe],this)}}rforEach(ve,be=this){for(let Pe of wn(this,L,Td).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;U!==void 0&&ve.call(be,U,Ae(this,_)[Pe],this)}}purgeStale(){let ve=!1;for(let be of wn(this,L,Td).call(this,{allowStale:!0}))Ae(this,G).call(this,be)&&(this.delete(Ae(this,_)[be]),ve=!0);return ve}dump(){let ve=[];for(let be of wn(this,L,Md).call(this,{allowStale:!0})){let Pe=Ae(this,_)[be],Ne=Ae(this,P)[be],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;if(U===void 0||Pe===void 0)continue;let H={value:U};if(Ae(this,F)&&Ae(this,k)){H.ttl=Ae(this,F)[be];let q=t.now()-Ae(this,k)[be];H.start=Math.floor(Date.now()-q)}Ae(this,j)&&(H.size=Ae(this,j)[be]),ve.unshift([Pe,H])}return ve}load(ve){this.clear();for(let[be,Pe]of ve){if(Pe.start){let Ne=Date.now()-Pe.start;Pe.start=t.now()-Ne}this.set(be,Pe.value,Pe)}}set(ve,be,Pe={}){var He,ge,De,qe,je;if(be===void 0)return this.delete(ve),this;let{ttl:Ne=this.ttl,start:U,noDisposeOnSet:H=this.noDisposeOnSet,sizeCalculation:q=this.sizeCalculation,status:me}=Pe,{noUpdateTTL:Ce=this.noUpdateTTL}=Pe,ue=Ae(this,ce).call(this,ve,be,Pe.size||0,q);if(this.maxEntrySize&&ue>this.maxEntrySize)return me&&(me.set="miss",me.maxEntrySizeExceeded=!0),this.delete(ve),this;let Le=Ae(this,E)===0?void 0:Ae(this,x).get(ve);if(Le===void 0)Le=Ae(this,E)===0?Ae(this,T):Ae(this,D).length!==0?Ae(this,D).pop():Ae(this,E)===Ae(this,v)?wn(this,L,Fw).call(this,!1):Ae(this,E),Ae(this,_)[Le]=ve,Ae(this,P)[Le]=be,Ae(this,x).set(ve,Le),Ae(this,O)[Ae(this,T)]=Le,Ae(this,I)[Le]=Ae(this,T),cn(this,T,Le),Yf(this,E)._++,Ae(this,le).call(this,Le,ue,me),me&&(me.set="add"),Ce=!1;else{wn(this,L,cy).call(this,Le);let Ke=Ae(this,P)[Le];if(be!==Ke){if(Ae(this,W)&&wn(this,L,vo).call(this,Ke)){Ke.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ue}=Ke;Ue!==void 0&&!H&&(Ae(this,V)&&((He=Ae(this,y))==null||He.call(this,Ue,ve,"set")),Ae(this,K)&&((ge=Ae(this,A))==null||ge.push([Ue,ve,"set"])))}else H||(Ae(this,V)&&((De=Ae(this,y))==null||De.call(this,Ke,ve,"set")),Ae(this,K)&&((qe=Ae(this,A))==null||qe.push([Ke,ve,"set"])));if(Ae(this,ne).call(this,Le),Ae(this,le).call(this,Le,ue,me),Ae(this,P)[Le]=be,me){me.set="replace";let Ue=Ke&&wn(this,L,vo).call(this,Ke)?Ke.__staleWhileFetching:Ke;Ue!==void 0&&(me.oldValue=Ue)}}else me&&(me.set="update")}if(Ne!==0&&!Ae(this,F)&&wn(this,L,q4).call(this),Ae(this,F)&&(Ce||Ae(this,ie).call(this,Le,Ne,U),me&&Ae(this,re).call(this,me,Le)),!H&&Ae(this,K)&&Ae(this,A)){let Ke=Ae(this,A),Ue;for(;Ue=Ke==null?void 0:Ke.shift();)(je=Ae(this,S))==null||je.call(this,...Ue)}return this}pop(){var ve;try{for(;Ae(this,E);){let be=Ae(this,P)[Ae(this,M)];if(wn(this,L,Fw).call(this,!0),wn(this,L,vo).call(this,be)){if(be.__staleWhileFetching)return be.__staleWhileFetching}else if(be!==void 0)return be}}finally{if(Ae(this,K)&&Ae(this,A)){let be=Ae(this,A),Pe;for(;Pe=be==null?void 0:be.shift();)(ve=Ae(this,S))==null||ve.call(this,...Pe)}}}has(ve,be={}){let{updateAgeOnHas:Pe=this.updateAgeOnHas,status:Ne}=be,U=Ae(this,x).get(ve);if(U!==void 0){let H=Ae(this,P)[U];if(wn(this,L,vo).call(this,H)&&H.__staleWhileFetching===void 0)return!1;if(Ae(this,G).call(this,U))Ne&&(Ne.has="stale",Ae(this,re).call(this,Ne,U));else return Pe&&Ae(this,ee).call(this,U),Ne&&(Ne.has="hit",Ae(this,re).call(this,Ne,U)),!0}else Ne&&(Ne.has="miss");return!1}peek(ve,be={}){let{allowStale:Pe=this.allowStale}=be,Ne=Ae(this,x).get(ve);if(Ne!==void 0&&(Pe||!Ae(this,G).call(this,Ne))){let U=Ae(this,P)[Ne];return wn(this,L,vo).call(this,U)?U.__staleWhileFetching:U}}async fetch(ve,be={}){let{allowStale:Pe=this.allowStale,updateAgeOnGet:Ne=this.updateAgeOnGet,noDeleteOnStaleGet:U=this.noDeleteOnStaleGet,ttl:H=this.ttl,noDisposeOnSet:q=this.noDisposeOnSet,size:me=0,sizeCalculation:Ce=this.sizeCalculation,noUpdateTTL:ue=this.noUpdateTTL,noDeleteOnFetchRejection:Le=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:He=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:De=this.allowStaleOnFetchAbort,context:qe,forceRefresh:je=!1,status:Ke,signal:Ue}=be;if(!Ae(this,W))return Ke&&(Ke.fetch="get"),this.get(ve,{allowStale:Pe,updateAgeOnGet:Ne,noDeleteOnStaleGet:U,status:Ke});let Ve={allowStale:Pe,updateAgeOnGet:Ne,noDeleteOnStaleGet:U,ttl:H,noDisposeOnSet:q,size:me,sizeCalculation:Ce,noUpdateTTL:ue,noDeleteOnFetchRejection:Le,allowStaleOnFetchRejection:He,allowStaleOnFetchAbort:De,ignoreFetchAbort:ge,status:Ke,signal:Ue},St=Ae(this,x).get(ve);if(St===void 0){Ke&&(Ke.fetch="miss");let et=wn(this,L,Lw).call(this,ve,St,Ve,qe);return et.__returned=et}else{let et=Ae(this,P)[St];if(wn(this,L,vo).call(this,et)){let Lt=Pe&&et.__staleWhileFetching!==void 0;return Ke&&(Ke.fetch="inflight",Lt&&(Ke.returnedStale=!0)),Lt?et.__staleWhileFetching:et.__returned=et}let st=Ae(this,G).call(this,St);if(!je&&!st)return Ke&&(Ke.fetch="hit"),wn(this,L,cy).call(this,St),Ne&&Ae(this,ee).call(this,St),Ke&&Ae(this,re).call(this,Ke,St),et;let Ct=wn(this,L,Lw).call(this,ve,St,Ve,qe),dt=Ct.__staleWhileFetching!==void 0&&Pe;return Ke&&(Ke.fetch=st?"stale":"refresh",dt&&st&&(Ke.returnedStale=!0)),dt?Ct.__staleWhileFetching:Ct.__returned=Ct}}get(ve,be={}){let{allowStale:Pe=this.allowStale,updateAgeOnGet:Ne=this.updateAgeOnGet,noDeleteOnStaleGet:U=this.noDeleteOnStaleGet,status:H}=be,q=Ae(this,x).get(ve);if(q!==void 0){let me=Ae(this,P)[q],Ce=wn(this,L,vo).call(this,me);return H&&Ae(this,re).call(this,H,q),Ae(this,G).call(this,q)?(H&&(H.get="stale"),Ce?(H&&Pe&&me.__staleWhileFetching!==void 0&&(H.returnedStale=!0),Pe?me.__staleWhileFetching:void 0):(U||this.delete(ve),H&&Pe&&(H.returnedStale=!0),Pe?me:void 0)):(H&&(H.get="hit"),Ce?me.__staleWhileFetching:(wn(this,L,cy).call(this,q),Ne&&Ae(this,ee).call(this,q),me))}else H&&(H.get="miss")}delete(ve){var Pe,Ne,U,H;let be=!1;if(Ae(this,E)!==0){let q=Ae(this,x).get(ve);if(q!==void 0)if(be=!0,Ae(this,E)===1)this.clear();else{Ae(this,ne).call(this,q);let me=Ae(this,P)[q];wn(this,L,vo).call(this,me)?me.__abortController.abort(new Error("deleted")):(Ae(this,V)||Ae(this,K))&&(Ae(this,V)&&((Pe=Ae(this,y))==null||Pe.call(this,me,ve,"delete")),Ae(this,K)&&((Ne=Ae(this,A))==null||Ne.push([me,ve,"delete"]))),Ae(this,x).delete(ve),Ae(this,_)[q]=void 0,Ae(this,P)[q]=void 0,q===Ae(this,T)?cn(this,T,Ae(this,I)[q]):q===Ae(this,M)?cn(this,M,Ae(this,O)[q]):(Ae(this,O)[Ae(this,I)[q]]=Ae(this,O)[q],Ae(this,I)[Ae(this,O)[q]]=Ae(this,I)[q]),Yf(this,E)._--,Ae(this,D).push(q)}}if(Ae(this,K)&&((U=Ae(this,A))!=null&&U.length)){let q=Ae(this,A),me;for(;me=q==null?void 0:q.shift();)(H=Ae(this,S))==null||H.call(this,...me)}return be}clear(){var ve,be,Pe;for(let Ne of wn(this,L,Td).call(this,{allowStale:!0})){let U=Ae(this,P)[Ne];if(wn(this,L,vo).call(this,U))U.__abortController.abort(new Error("deleted"));else{let H=Ae(this,_)[Ne];Ae(this,V)&&((ve=Ae(this,y))==null||ve.call(this,U,H,"delete")),Ae(this,K)&&((be=Ae(this,A))==null||be.push([U,H,"delete"]))}}if(Ae(this,x).clear(),Ae(this,P).fill(void 0),Ae(this,_).fill(void 0),Ae(this,F)&&Ae(this,k)&&(Ae(this,F).fill(0),Ae(this,k).fill(0)),Ae(this,j)&&Ae(this,j).fill(0),cn(this,M,0),cn(this,T,0),Ae(this,D).length=0,cn(this,C,0),cn(this,E,0),Ae(this,K)&&Ae(this,A)){let Ne=Ae(this,A),U;for(;U=Ne==null?void 0:Ne.shift();)(Pe=Ae(this,S))==null||Pe.call(this,...U)}}},v=new WeakMap,b=new WeakMap,y=new WeakMap,S=new WeakMap,w=new WeakMap,E=new WeakMap,C=new WeakMap,x=new WeakMap,_=new WeakMap,P=new WeakMap,O=new WeakMap,I=new WeakMap,M=new WeakMap,T=new WeakMap,D=new WeakMap,A=new WeakMap,j=new WeakMap,k=new WeakMap,F=new WeakMap,V=new WeakMap,W=new WeakMap,K=new WeakMap,L=new WeakSet,q4=function(){let ve=new u(Ae(this,v)),be=new u(Ae(this,v));cn(this,F,ve),cn(this,k,be),cn(this,ie,(U,H,q=t.now())=>{if(be[U]=H!==0?q:0,ve[U]=H,H!==0&&this.ttlAutopurge){let me=setTimeout(()=>{Ae(this,G).call(this,U)&&this.delete(Ae(this,_)[U])},H+1);me.unref&&me.unref()}}),cn(this,ee,U=>{be[U]=ve[U]!==0?t.now():0}),cn(this,re,(U,H)=>{if(ve[H]){let q=ve[H],me=be[H];U.ttl=q,U.start=me,U.now=Pe||Ne();let Ce=U.now-me;U.remainingTTL=q-Ce}});let Pe=0,Ne=()=>{let U=t.now();if(this.ttlResolution>0){Pe=U;let H=setTimeout(()=>Pe=0,this.ttlResolution);H.unref&&H.unref()}return U};this.getRemainingTTL=U=>{let H=Ae(this,x).get(U);if(H===void 0)return 0;let q=ve[H],me=be[H];if(q===0||me===0)return 1/0;let Ce=(Pe||Ne())-me;return q-Ce},cn(this,G,U=>ve[U]!==0&&be[U]!==0&&(Pe||Ne())-be[U]>ve[U])},ee=new WeakMap,re=new WeakMap,ie=new WeakMap,G=new WeakMap,rZ=function(){let ve=new u(Ae(this,v));cn(this,C,0),cn(this,j,ve),cn(this,ne,be=>{cn(this,C,Ae(this,C)-ve[be]),ve[be]=0}),cn(this,ce,(be,Pe,Ne,U)=>{if(wn(this,L,vo).call(this,Pe))return 0;if(!l(Ne))if(U){if(typeof U!="function")throw new TypeError("sizeCalculation must be a function");if(Ne=U(Pe,be),!l(Ne))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 Ne}),cn(this,le,(be,Pe,Ne)=>{if(ve[be]=Pe,Ae(this,b)){let U=Ae(this,b)-ve[be];for(;Ae(this,C)>U;)wn(this,L,Fw).call(this,!0)}cn(this,C,Ae(this,C)+ve[be]),Ne&&(Ne.entrySize=Pe,Ne.totalCalculatedSize=Ae(this,C))})},ne=new WeakMap,le=new WeakMap,ce=new WeakMap,Md=function*({allowStale:ve=this.allowStale}={}){if(Ae(this,E))for(let be=Ae(this,T);!(!wn(this,L,G4).call(this,be)||((ve||!Ae(this,G).call(this,be))&&(yield be),be===Ae(this,M)));)be=Ae(this,I)[be]},Td=function*({allowStale:ve=this.allowStale}={}){if(Ae(this,E))for(let be=Ae(this,M);!(!wn(this,L,G4).call(this,be)||((ve||!Ae(this,G).call(this,be))&&(yield be),be===Ae(this,T)));)be=Ae(this,O)[be]},G4=function(ve){return ve!==void 0&&Ae(this,x).get(Ae(this,_)[ve])===ve},Fw=function(ve){var U,H;let be=Ae(this,M),Pe=Ae(this,_)[be],Ne=Ae(this,P)[be];return Ae(this,W)&&wn(this,L,vo).call(this,Ne)?Ne.__abortController.abort(new Error("evicted")):(Ae(this,V)||Ae(this,K))&&(Ae(this,V)&&((U=Ae(this,y))==null||U.call(this,Ne,Pe,"evict")),Ae(this,K)&&((H=Ae(this,A))==null||H.push([Ne,Pe,"evict"]))),Ae(this,ne).call(this,be),ve&&(Ae(this,_)[be]=void 0,Ae(this,P)[be]=void 0,Ae(this,D).push(be)),Ae(this,E)===1?(cn(this,M,cn(this,T,0)),Ae(this,D).length=0):cn(this,M,Ae(this,O)[be]),Ae(this,x).delete(Pe),Yf(this,E)._--,be},Lw=function(ve,be,Pe,Ne){let U=be===void 0?void 0:Ae(this,P)[be];if(wn(this,L,vo).call(this,U))return U;let H=new i,{signal:q}=Pe;q==null||q.addEventListener("abort",()=>H.abort(q.reason),{signal:H.signal});let me={signal:H.signal,options:Pe,context:Ne},Ce=(qe,je=!1)=>{let{aborted:Ke}=H.signal,Ue=Pe.ignoreFetchAbort&&qe!==void 0;if(Pe.status&&(Ke&&!je?(Pe.status.fetchAborted=!0,Pe.status.fetchError=H.signal.reason,Ue&&(Pe.status.fetchAbortIgnored=!0)):Pe.status.fetchResolved=!0),Ke&&!Ue&&!je)return Le(H.signal.reason);let Ve=ge;return Ae(this,P)[be]===ge&&(qe===void 0?Ve.__staleWhileFetching?Ae(this,P)[be]=Ve.__staleWhileFetching:this.delete(ve):(Pe.status&&(Pe.status.fetchUpdated=!0),this.set(ve,qe,me.options))),qe},ue=qe=>(Pe.status&&(Pe.status.fetchRejected=!0,Pe.status.fetchError=qe),Le(qe)),Le=qe=>{let{aborted:je}=H.signal,Ke=je&&Pe.allowStaleOnFetchAbort,Ue=Ke||Pe.allowStaleOnFetchRejection,Ve=Ue||Pe.noDeleteOnFetchRejection,St=ge;if(Ae(this,P)[be]===ge&&(!Ve||St.__staleWhileFetching===void 0?this.delete(ve):Ke||(Ae(this,P)[be]=St.__staleWhileFetching)),Ue)return Pe.status&&St.__staleWhileFetching!==void 0&&(Pe.status.returnedStale=!0),St.__staleWhileFetching;if(St.__returned===St)throw qe},He=(qe,je)=>{var Ue;let Ke=(Ue=Ae(this,w))==null?void 0:Ue.call(this,ve,U,me);Ke&&Ke instanceof Promise&&Ke.then(Ve=>qe(Ve===void 0?void 0:Ve),je),H.signal.addEventListener("abort",()=>{(!Pe.ignoreFetchAbort||Pe.allowStaleOnFetchAbort)&&(qe(void 0),Pe.allowStaleOnFetchAbort&&(qe=Ve=>Ce(Ve,!0)))})};Pe.status&&(Pe.status.fetchDispatched=!0);let ge=new Promise(He).then(Ce,ue),De=Object.assign(ge,{__abortController:H,__staleWhileFetching:U,__returned:void 0});return be===void 0?(this.set(ve,De,{...me.options,status:void 0}),be=Ae(this,x).get(ve)):Ae(this,P)[be]=De,De},vo=function(ve){if(!Ae(this,W))return!1;let be=ve;return!!be&&be instanceof Promise&&be.hasOwnProperty("__staleWhileFetching")&&be.__abortController instanceof i},Y4=function(ve,be){Ae(this,I)[be]=ve,Ae(this,O)[ve]=be},cy=function(ve){ve!==Ae(this,T)&&(ve===Ae(this,M)?cn(this,M,Ae(this,O)[ve]):wn(this,L,Y4).call(this,Ae(this,I)[ve],Ae(this,O)[ve]),wn(this,L,Y4).call(this,Ae(this,T),ve),cn(this,T,ve))},Se);e.LRUCache=h}),cd=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(o=0){this.iteratorType=o}equals(o){return this.o===o.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}),oCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[]){super(),this.S=[];let i=this;o.forEach(function(a){i.push(a)})}clear(){this.i=0,this.S=[]}push(o){return this.S.push(o),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}),iCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[]){super(),this.j=0,this.q=[];let i=this;o.forEach(function(a){i.push(a)})}clear(){this.q=[],this.i=this.j=0}push(o){let i=this.q.length;if(this.j/i>.5&&this.j+this.i>=i&&i>4096){let a=this.i;for(let s=0;s{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[],i=function(s,l){return s>l?-1:s>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(o){let i=this.C[o];for(;o>0;){let a=o-1>>1,s=this.C[a];if(this.v(s,i)<=0)break;this.C[o]=s,o=a}this.C[o]=i}k(o,i){let a=this.C[o];for(;o0&&(s=l,c=this.C[l]),this.v(c,a)>=0)break;this.C[o]=c,o=s}this.C[o]=a}clear(){this.i=0,this.C.length=0}push(o){this.C.push(o),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let o=this.C[0],i=this.C.pop();return this.i-=1,this.i&&(this.C[0]=i,this.k(0,this.i>>1)),o}top(){return this.C[0]}find(o){return this.C.indexOf(o)>=0}remove(o){let i=this.C.indexOf(o);return i<0?!1:(i===0?this.pop():i===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(i,1,this.C.pop()),this.i-=1,this.m(i),this.k(i,this.i>>1)),!0)}updateItem(o){let i=this.C.indexOf(o);return i<0?!1:(this.m(i),this.k(i,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),P5=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Container{},r=n;e.default=r}),ud=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),oZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=cd(),n=ud(),r=class extends t.ContainerIterator{constructor(o,i){super(i),this.o=o,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(o){this.container.setElementByPos(this.o,o)}};e.RandomIterator=r}),sCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(P5()),n=oZ();function r(s){return s&&s.t?s:{default:s}}var o=class iZ extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new iZ(this.o,this.container,this.iteratorType)}},i=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 o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-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;cthis.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{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(P5()),n=cd(),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class aZ extends n.ContainerIterator{constructor(c,u,f,h){super(h),this.o=c,this.h=u,this.container=f,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 aZ(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,f={l,L:c,B:u};c.B=f,u.L=f,c===this.h&&(this.p=f),u===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(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 f=this.p;for(let p=1;p{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(P5()),n=oZ();function r(s){return s&&s.t?s:{default:s}}var o=class sZ extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new sZ(this.o,this.container,this.iteratorType)}},i=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>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let f=this;s.forEach(function(h){f.pushBack(h)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c>1}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-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.N0?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.Dthis.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 f=s;fthis.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;us;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,o){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=o}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 o=r.tt;for(;o.U===r;)r=o,o=r.tt;r=o}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let o=r.tt;for(;o.W===r;)r=o,o=r.tt;return r.W!==o?o:r}}te(){let r=this.tt,o=this.W,i=o.U;return r.tt===this?r.tt=o:r.U===this?r.U=o:r.W=o,o.tt=r,o.U=this,this.tt=o,this.W=i,i&&(i.tt=this),o}se(){let r=this.tt,o=this.U,i=o.W;return r.tt===this?r.tt=o:r.U===this?r.U=o:r.W=o,o.tt=r,o.W=this,this.tt=o,this.U=i,i&&(i.tt=this),o}};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}),lZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=uCe(),n=cd(),r=ud(),o=class extends n.Container{constructor(a=function(l,c){return lc?1:0},s=!1){super(),this.Y=void 0,this.v=a,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let f=this.ne(l,c,u);if(f){let h=f.tt;for(;h!==this.h;)h.rt+=1,h=h.tt;let p=this.he(f);if(p){let{parentNode:m,grandParent:g,curNode:v}=p;m.ie(),g.ie(),v.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 f=this.ne(l,c,u);return f&&this.he(f),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,f=this.v(u.u,a);if(f===0){u.l=s;return}else if(f>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 g=this.v(m.u,a);if(g===0){m.l=s;return}else if(g>0){let v=m.L(),b=this.v(v.u,a);if(b===0){v.l=s;return}else b<0&&(c=new this.re(a,s),v.W===void 0?(v.W=c,c.tt=v):(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)}},i=o;e.default=i}),cZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=ud(),r=class extends t.ContainerIterator{constructor(i,a,s){super(s),this.o=i,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 i=this.o,a=this.h.tt;if(i===this.h)return a?a.rt-1:0;let s=0;for(i.U&&(s+=i.U.rt);i!==a;){let l=i.tt;i===l.W&&(s+=1,l.U&&(s+=l.U.rt)),i=l}return s}},o=r;e.default=o}),dCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(lZ()),n=o(cZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class uZ extends n.default{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new uZ(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(h){f.insert(h)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(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 i(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new i(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new i(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new i(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new i(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}),fCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(lZ()),n=o(cZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class dZ extends n.default{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,h){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new dZ(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(h){f.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 i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(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 i(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new i(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new i(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new i(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 i(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}),fZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),hZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=cd(),n=o(fZ()),r=ud();function o(s){return s&&s.t?s:{default:s}}var i=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=i;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 f=s[this.HASH_TAG];if(f!==void 0)return this.H[f].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 f=this.g[s];if(f)return f.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}),hCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=hZ(),n=ud(),r=class pZ 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 pZ(this.o,this.h,this.container,this.iteratorType)}},o=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)()}},i=o;e.default=i}),pCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=hZ(),n=o(fZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class mZ extends t.HashContainerIterator{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,h){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new mZ(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 i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(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 f=l[this.HASH_TAG];return f!==void 0?this.H[f].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 i(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}),mCe=Zt(e=>{Vt(),qt(),Kt(),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 i.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 o.default}});var t=f(oCe()),n=f(iCe()),r=f(aCe()),o=f(sCe()),i=f(lCe()),a=f(cCe()),s=f(dCe()),l=f(fCe()),c=f(hCe()),u=f(pCe());function f(h){return h&&h.t?h:{default:h}}}),gCe=Zt((e,t)=>{Vt(),qt(),Kt();var n=mCe().OrderedSet,r=Zu()("number-allocator:trace"),o=Zu()("number-allocator:error");function i(s,l){this.low=s,this.high=l}i.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},i.prototype.compare=function(s){return this.lowc.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 i(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},a.prototype.use=function(s){let l=new i(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,f=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 i(u+1,f)),r("use():"+s),!0):f===s?(this.ss.updateKeyByIterator(c,new i(u,f-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new i(s+1,f)),this.ss.insert(new i(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},a.prototype.free=function(s){if(sthis.max){o("free():"+s+" is out of range");return}let l=new i(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 i(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 i(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,f=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 i(h,f))):this.ss.updateKeyByIterator(c,new i(h,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new i(s,f))):this.ss.insert(l)}r("free():"+s)},a.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new i(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}),gZ=Zt((e,t)=>{Vt(),qt(),Kt();var n=gCe();t.exports.NumberAllocator=n}),vCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=rCe(),n=gZ(),r=class{constructor(o){o>0&&(this.aliasToTopic=new t.LRUCache({max:o}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,o),this.max=o,this.length=0)}put(o,i){if(i===0||i>this.max)return!1;let a=this.aliasToTopic.get(i);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(i,o),this.topicToAlias[o]=i,this.numberAllocator.use(i),this.length=this.aliasToTopic.size,!0}getTopicByAlias(o){return this.aliasToTopic.get(o)}getAliasByTopic(o){let i=this.topicToAlias[o];return typeof i<"u"&&this.aliasToTopic.get(i),i}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}),yCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=D_(),r=t(vCe()),o=Sv(),i=(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 o.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);a.emit("error",u),a.options.reconnectOnConnackError&&a._cleanUp(!0)}};e.default=i}),bCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,o)=>{n.log("handling pubrel packet");let i=typeof o<"u"?o:n.noop,{messageId:a}=r,s={cmd:"pubcomp",messageId:a};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,i):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return i(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,i)}))})};e.default=t}),SCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(eCe()),r=t(nCe()),o=t(yCe()),i=t(D_()),a=t(bCe()),s=(l,c,u)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((bv(),Qr(kp))),r=Sv(),o=class{};e.TypedEventEmitter=o,(0,r.applyMixin)(o,n.default)}),j_=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var i;return typeof window<"u"?typeof navigator<"u"&&((i=navigator.userAgent)===null||i===void 0?void 0:i.toLowerCase().indexOf(" electron/"))>-1&&jr!=null&&jr.versions?!Object.prototype.hasOwnProperty.call(jr.versions,"electron"):typeof window.document<"u":!1},n=()=>{var i,a;return!!(typeof self=="object"&&!((a=(i=self==null?void 0:self.constructor)===null||i===void 0?void 0:i.name)===null||a===void 0)&&a.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",o=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=o}),wCe=Zt((e,t)=>{Vt(),qt(),Kt(),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 g=p(m);return m.add(g),g}},o=function(p){return function(m,g){return p.set(m,g),g}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,s=a*2,l=function(p,m){return function(g){var v=m.get(g),b=v===void 0?g.size:vi)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(b);)b=Math.floor(Math.random()*i);return p(g,b)}},c=new WeakMap,u=o(c),f=l(u,c),h=r(f);n.addUniqueNumber=h,n.generateUniqueNumber=f})}),xCe=Zt((e,t)=>{Vt(),qt(),Kt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,wCe()):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 o=function(s){return s.method!==void 0&&s.method==="call"},i=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,f=new Worker(s);f.addEventListener("message",function(v){var b=v.data;if(o(b)){var y=b.params,S=y.timerId,w=y.timerType;if(w==="interval"){var E=l.get(S);if(typeof E=="number"){var C=u.get(E);if(C===void 0||C.timerId!==S||C.timerType!==w)throw new Error("The timer is in an undefined state.")}else if(typeof E<"u")E();else throw new Error("The timer is in an undefined state.")}else if(w==="timeout"){var x=c.get(S);if(typeof x=="number"){var _=u.get(x);if(_===void 0||_.timerId!==S||_.timerType!==w)throw new Error("The timer is in an undefined state.")}else if(typeof x<"u")x(),c.delete(S);else throw new Error("The timer is in an undefined state.")}}else if(i(b)){var P=b.id,O=u.get(P);if(O===void 0)throw new Error("The timer is in an undefined state.");var I=O.timerId,M=O.timerType;u.delete(P),M==="interval"?l.delete(I):c.delete(I)}else{var T=b.error.message;throw new Error(T)}});var h=function(v){var b=r.generateUniqueNumber(u);u.set(b,{timerId:v,timerType:"interval"}),l.set(v,b),f.postMessage({id:b,method:"clear",params:{timerId:v,timerType:"interval"}})},p=function(v){var b=r.generateUniqueNumber(u);u.set(b,{timerId:v,timerType:"timeout"}),c.set(v,b),f.postMessage({id:b,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=r.generateUniqueNumber(l);return l.set(y,function(){v(),typeof l.get(y)=="function"&&f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"interval"}}),y},g=function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=r.generateUniqueNumber(c);return c.set(y,v),f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"timeout"}}),y};return{clearInterval:h,clearTimeout:p,setInterval:m,setTimeout:g}};n.load=a})}),ECe=Zt((e,t)=>{Vt(),qt(),Kt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,xCe()):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 o=function(f,h){var p=null;return function(){if(p!==null)return p;var m=new Blob([h],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return p=f(g),setTimeout(function(){return URL.revokeObjectURL(g)}),p}},i=`(()=>{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=o(r.load,i),s=function(f){return a().clearInterval(f)},l=function(f){return a().clearTimeout(f)},c=function(){var f;return(f=a()).setInterval.apply(f,arguments)},u=function(){var f;return(f=a()).setTimeout.apply(f,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),_Ce=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(c,u,f,h){h===void 0&&(h=f);var p=Object.getOwnPropertyDescriptor(u,f);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,h,p)}:function(c,u,f,h){h===void 0&&(h=f),c[h]=u[f]}),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 f in c)f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)&&t(u,c,f);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var o=r(j_()),i=ECe(),a={set:i.setInterval,clear:i.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 o.default&&!o.isWebWorker&&!o.isReactNativeBrowser?a:s}};e.default=l}),vZ=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(_Ce()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(o,i){this.destroyed=!1,this.client=o,this.timer=typeof i=="object"&&"set"in i&&"clear"in i?i:(0,n.default)(i),this.setKeepalive(o.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(o){if(o*=1e3,isNaN(o)||o<=0||o>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${o}`);this._keepalive=o,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${o}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let o=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+o,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}),X4=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(E,C,x,_){_===void 0&&(_=x);var P=Object.getOwnPropertyDescriptor(C,x);(!P||("get"in P?!C.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return C[x]}}),Object.defineProperty(E,_,P)}:function(E,C,x,_){_===void 0&&(_=x),E[_]=C[x]}),n=e&&e.__setModuleDefault||(Object.create?function(E,C){Object.defineProperty(E,"default",{enumerable:!0,value:C})}:function(E,C){E.default=C}),r=e&&e.__importStar||function(E){if(E&&E.__esModule)return E;var C={};if(E!=null)for(var x in E)x!=="default"&&Object.prototype.hasOwnProperty.call(E,x)&&t(C,E,x);return n(C,E),C},o=e&&e.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0});var i=o(pSe()),a=o(XSe()),s=o(eZ()),l=Np(),c=o(JSe()),u=r(ZSe()),f=o(Zu()),h=o(tZ()),p=o(SCe()),m=Sv(),g=CCe(),v=o(vZ()),b=r(j_()),y=globalThis.setImmediate||((...E)=>{let C=E.shift();(0,m.nextTick)(()=>{C(...E)})}),S={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},w=class Q4 extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(C,x){super(),this.options=x||{};for(let _ in S)typeof this.options[_]>"u"?this.options[_]=S[_]:this.options[_]=x[_];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",Q4.VERSION),b.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",b.default?"browser":"node"),this.log("MqttClient :: options.protocol",x.protocol),this.log("MqttClient :: options.protocolVersion",x.protocolVersion),this.log("MqttClient :: options.username",x.username),this.log("MqttClient :: options.keepalive",x.keepalive),this.log("MqttClient :: options.reconnectPeriod",x.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",x.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",x.properties?x.properties.topicAliasMaximum:void 0),this.options.clientId=typeof x.clientId=="string"?x.clientId:Q4.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=x.protocolVersion===5&&x.customHandleAcks?x.customHandleAcks:(..._)=>{_[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=C,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=x.outgoingStore||new h.default,this.incomingStore=x.incomingStore||new h.default,this.queueQoSZero=x.queueQoSZero===void 0?!0:x.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,x.properties&&x.properties.topicAliasMaximum>0&&(x.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new i.default(x.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:_}=this,P=()=>{let O=_.shift();this.log("deliver :: entry %o",O);let I=null;if(!O){this._resubscribe();return}I=O.packet,this.log("deliver :: call _sendPacket for %o",I);let M=!0;I.messageId&&I.messageId!==0&&(this.messageIdProvider.register(I.messageId)||(M=!1)),M?this._sendPacket(I,T=>{O.cb&&O.cb(T),P()}):(this.log("messageId: %d has already used. The message is skipped and removed.",I.messageId),P())};this.log("connect :: sending queued packets"),P()}),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(C,x){x()}handleMessage(C,x){x()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var C;let x=new l.Writable,_=a.default.parser(this.options),P=null,O=[];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),_.on("packet",A=>{this.log("parser :: on packet push to packets array."),O.push(A)});let I=()=>{this.log("work :: getting next packet in queue");let A=O.shift();if(A)this.log("work :: packet pulled from queue"),(0,p.default)(this,A,M);else{this.log("work :: no packets in queue");let j=P;P=null,this.log("work :: done flag is %s",!!j),j&&j()}},M=()=>{if(O.length)(0,m.nextTick)(I);else{let A=P;P=null,A()}};x._write=(A,j,k)=>{P=k,this.log("writable stream :: parsing buffer"),_.parse(A),I()};let T=A=>{this.log("streamErrorHandler :: error",A.message),A.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",A)):this.noop(A)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(x),this.stream.on("error",T),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 D={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&&(D.will=Object.assign(Object.assign({},this.options.will),{payload:(C=this.options.will)===null||C===void 0?void 0:C.payload})),this.topicAliasRecv&&(D.properties||(D.properties={}),this.topicAliasRecv&&(D.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(D),_.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 A=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(A)}}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(C,x,_,P){this.log("publish :: message `%s` to topic `%s`",x,C);let{options:O}=this;typeof _=="function"&&(P=_,_=null),_=_||{},_=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),_);let{qos:I,retain:M,dup:T,properties:D,cbStorePut:A}=_;if(this._checkDisconnecting(P))return this;let j=()=>{let k=0;if((I===1||I===2)&&(k=this._nextId(),k===null))return this.log("No messageId left"),!1;let F={cmd:"publish",topic:C,payload:x,qos:I,retain:M,messageId:k,dup:T};switch(O.protocolVersion===5&&(F.properties=D),this.log("publish :: qos",I),I){case 1:case 2:this.outgoing[F.messageId]={volatile:!1,cb:P||this.noop},this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,void 0,A);break;default:this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,P,A);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!j())&&this._storeProcessingQueue.push({invoke:j,cbStorePut:_.cbStorePut,callback:P}),this}publishAsync(C,x,_){return new Promise((P,O)=>{this.publish(C,x,_,(I,M)=>{I?O(I):P(M)})})}subscribe(C,x,_){let P=this.options.protocolVersion;typeof x=="function"&&(_=x),_=_||this.noop;let O=!1,I=[];typeof C=="string"?(C=[C],I=C):Array.isArray(C)?I=C:typeof C=="object"&&(O=C.resubscribe,delete C.resubscribe,I=Object.keys(C));let M=u.validateTopics(I);if(M!==null)return y(_,new Error(`Invalid topic ${M}`)),this;if(this._checkDisconnecting(_))return this.log("subscribe: discconecting true"),this;let T={qos:0};P===5&&(T.nl=!1,T.rap=!1,T.rh=0),x=Object.assign(Object.assign({},T),x);let D=x.properties,A=[],j=(F,V)=>{if(V=V||x,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,F)||this._resubscribeTopics[F].qos{this.log("subscribe: array topic %s",F),j(F)}):Object.keys(C).forEach(F=>{this.log("subscribe: object topic %s, %o",F,C[F]),j(F,C[F])}),!A.length)return _(null,[]),this;let k=()=>{let F=this._nextId();if(F===null)return this.log("No messageId left"),!1;let V={cmd:"subscribe",subscriptions:A,messageId:F};if(D&&(V.properties=D),this.options.resubscribe){this.log("subscribe :: resubscribe true");let W=[];A.forEach(K=>{if(this.options.reconnectPeriod>0){let L={qos:K.qos};P===5&&(L.nl=K.nl||!1,L.rap=K.rap||!1,L.rh=K.rh||0,L.properties=K.properties),this._resubscribeTopics[K.topic]=L,W.push(K.topic)}}),this.messageIdToTopic[V.messageId]=W}return this.outgoing[V.messageId]={volatile:!0,cb(W,K){if(!W){let{granted:L}=K;for(let Q=0;Q0||!k())&&this._storeProcessingQueue.push({invoke:k,callback:_}),this}subscribeAsync(C,x){return new Promise((_,P)=>{this.subscribe(C,x,(O,I)=>{O?P(O):_(I)})})}unsubscribe(C,x,_){typeof C=="string"&&(C=[C]),typeof x=="function"&&(_=x),_=_||this.noop;let P=u.validateTopics(C);if(P!==null)return y(_,new Error(`Invalid topic ${P}`)),this;if(this._checkDisconnecting(_))return this;let O=()=>{let I=this._nextId();if(I===null)return this.log("No messageId left"),!1;let M={cmd:"unsubscribe",messageId:I,unsubscriptions:[]};return typeof C=="string"?M.unsubscriptions=[C]:Array.isArray(C)&&(M.unsubscriptions=C),this.options.resubscribe&&M.unsubscriptions.forEach(T=>{delete this._resubscribeTopics[T]}),typeof x=="object"&&x.properties&&(M.properties=x.properties),this.outgoing[M.messageId]={volatile:!0,cb:_},this.log("unsubscribe: call _sendPacket"),this._sendPacket(M),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!O())&&this._storeProcessingQueue.push({invoke:O,callback:_}),this}unsubscribeAsync(C,x){return new Promise((_,P)=>{this.unsubscribe(C,x,(O,I)=>{O?P(O):_(I)})})}end(C,x,_){this.log("end :: (%s)",this.options.clientId),(C==null||typeof C!="boolean")&&(_=_||x,x=C,C=!1),typeof x!="object"&&(_=_||x,x=null),this.log("end :: cb? %s",!!_),(!_||typeof _!="function")&&(_=this.noop);let P=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(I=>{this.outgoingStore.close(M=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),_){let T=I||M;this.log("end :: closeStores: invoking callback with args"),_(T)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},O=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,C),this._cleanUp(C,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(P)},x)};return this.disconnecting?(_(),this):(this._clearReconnect(),this.disconnecting=!0,!C&&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,O,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),O()),this)}endAsync(C,x){return new Promise((_,P)=>{this.end(C,x,O=>{O?P(O):_()})})}removeOutgoingMessage(C){if(this.outgoing[C]){let{cb:x}=this.outgoing[C];this._removeOutgoingAndStoreMessage(C,()=>{x(new Error("Message removed"))})}return this}reconnect(C){this.log("client reconnect");let x=()=>{C?(this.options.incomingStore=C.incomingStore,this.options.outgoingStore=C.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=x:x(),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(C=>{this.outgoing[C].volatile&&typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(C=>{typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_removeTopicAliasAndRecoverTopicName(C){let x;C.properties&&(x=C.properties.topicAlias);let _=C.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",x,_),_.length===0){if(typeof x>"u")return new Error("Unregistered Topic Alias");if(_=this.topicAliasSend.getTopicByAlias(x),typeof _>"u")return new Error("Unregistered Topic Alias");C.topic=_}x&&delete C.properties.topicAlias}_checkDisconnecting(C){return this.disconnecting&&(C&&C!==this.noop?C(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(C,x,_={}){if(x&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",x)),this.log("_cleanUp :: forced? %s",C),C)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let P=Object.assign({cmd:"disconnect"},_);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(P,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),y(()=>{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(),x&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",x),x())}_storeAndSend(C,x,_){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",C.cmd);let P=C,O;if(P.cmd==="publish"&&(P=(0,c.default)(C),O=this._removeTopicAliasAndRecoverTopicName(P),O))return x&&x(O);this.outgoingStore.put(P,I=>{if(I)return x&&x(I);_(),this._writePacket(C,x)})}_applyTopicAlias(C){if(this.options.protocolVersion===5&&C.cmd==="publish"){let x;C.properties&&(x=C.properties.topicAlias);let _=C.topic.toString();if(this.topicAliasSend)if(x){if(_.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",_,x),!this.topicAliasSend.put(_,x)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",_,x),new Error("Sending Topic Alias out of range")}else _.length!==0&&(this.options.autoAssignTopicAlias?(x=this.topicAliasSend.getAliasByTopic(_),x?(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",_,x)):(x=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(_,x),C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",_,x))):this.options.autoUseTopicAlias&&(x=this.topicAliasSend.getAliasByTopic(_),x&&(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",_,x))));else if(x)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",_,x),new Error("Sending Topic Alias out of range")}}_noop(C){this.log("noop ::",C)}_writePacket(C,x){this.log("_writePacket :: packet: %O",C),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",C),this.log("_writePacket :: writing to stream");let _=a.default.writeToStream(C,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",_),!_&&x&&x!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",x)):x&&(this.log("_writePacket :: invoking cb"),x())}_sendPacket(C,x,_,P){this.log("_sendPacket :: (%s) :: start",this.options.clientId),_=_||this.noop,x=x||this.noop;let O=this._applyTopicAlias(C);if(O){x(O);return}if(!this.connected){if(C.cmd==="auth"){this._writePacket(C,x);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(C,x,_);return}if(P){this._writePacket(C,x);return}switch(C.cmd){case"publish":break;case"pubrel":this._storeAndSend(C,x,_);return;default:this._writePacket(C,x);return}switch(C.qos){case 2:case 1:this._storeAndSend(C,x,_);break;case 0:default:this._writePacket(C,x);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(C,x,_){this.log("_storePacket :: packet: %o",C),this.log("_storePacket :: cb? %s",!!x),_=_||this.noop;let P=C;if(P.cmd==="publish"){P=(0,c.default)(C);let I=this._removeTopicAliasAndRecoverTopicName(P);if(I)return x&&x(I)}let O=P.qos||0;O===0&&this.queueQoSZero||P.cmd!=="publish"?this.queue.push({packet:P,cb:x}):O>0?(x=this.outgoing[P.messageId]?this.outgoing[P.messageId].cb:null,this.outgoingStore.put(P,I=>{if(I)return x&&x(I);_()})):x&&x(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(C=!1){this.keepaliveManager&&this.options.keepalive&&(C||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 C=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&C.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let x=0;x{let _=this.outgoingStore.createStream(),P=()=>{_.destroy(),_=null,this._flushStoreProcessingQueue(),O()},O=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",P),_.on("error",M=>{O(),this._flushStoreProcessingQueue(),this.removeListener("close",P),this.emit("error",M)});let I=()=>{if(!_)return;let M=_.read(1),T;if(!M){_.once("readable",I);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[M.messageId]){I();return}!this.disconnecting&&!this.reconnectTimer?(T=this.outgoing[M.messageId]?this.outgoing[M.messageId].cb:null,this.outgoing[M.messageId]={volatile:!1,cb(D,A){T&&T(D,A),I()}},this._packetIdsDuringStoreProcessing[M.messageId]=!0,this.messageIdProvider.register(M.messageId)?this._sendPacket(M,void 0,void 0,!0):this.log("messageId: %d has already used.",M.messageId)):_.destroy&&_.destroy()};_.on("end",()=>{let M=!0;for(let T in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[T]){M=!1;break}this.removeListener("close",P),M?(O(),this._invokeAllStoreProcessingQueue(),this.emit("connect",C)):x()}),I()};x()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let C=this._storeProcessingQueue[0];if(C&&C.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let C of this._storeProcessingQueue)C.cbStorePut&&C.cbStorePut(new Error("Connection closed")),C.callback&&C.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(C,x){delete this.outgoing[C],this.outgoingStore.del({messageId:C},(_,P)=>{x(_,P),this.messageIdProvider.deallocate(C),this._invokeStoreProcessingQueue()})}};w.VERSION=m.MQTTJS_VERSION,e.default=w}),$Ce=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=gZ(),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 eh(e){throw new RangeError(bZ[e])}function LB(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let o=function(i,a){let s=[],l=i.length;for(;l--;)s[l]=a(i[l]);return s}((e=e.replace(yZ,".")).split("."),t).join(".");return r+o}function BB(e){let t=[],n=0,r=e.length;for(;n=55296&&o<=56319&&n{Vt(),qt(),Kt(),zB=/^xn--/,HB=/[^\0-\x7E]/,yZ=/[\x2E\u3002\uFF0E\uFF61]/g,bZ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wl=Math.floor,CC=String.fromCharCode,rT=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},oT=function(e,t,n){let r=0;for(e=n?wl(e/700):e>>1,e+=wl(e/t);e>455;r+=36)e=wl(e/35);return wl(r+36*e/(e+38))},iT=function(e){let t=[],n=e.length,r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let l=0;l=128&&eh("not-basic"),t.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l=n&&eh("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>wl((2147483647-r)/f))&&eh("overflow"),r+=p*f;let m=h<=i?1:h>=i+26?26:h-i;if(pwl(2147483647/g)&&eh("overflow"),f*=g}let u=t.length+1;i=oT(r-c,u,c==0),wl(r/u)>2147483647-o&&eh("overflow"),o+=wl(r/u),r%=u,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},aT=function(e){let t=[],n=(e=BB(e)).length,r=128,o=0,i=72;for(let l of e)l<128&&t.push(CC(l));let a=t.length,s=a;for(a&&t.push("-");s=r&&uwl((2147483647-o)/c)&&eh("overflow"),o+=(l-r)*c,r=l;for(let u of e)if(u2147483647&&eh("overflow"),u==r){let f=o;for(let h=36;;h+=36){let p=h<=i?1:h>=i+26?26:h-i;if(fString.fromCodePoint(...e)},decode:iT,encode:aT,toASCII:function(e){return LB(e,function(t){return HB.test(t)?"xn--"+aT(t):t})},toUnicode:function(e){return LB(e,function(t){return zB.test(t)?iT(t.slice(4).toLowerCase()):t})}},Rd.decode,Rd.encode,Rd.toASCII,Rd.toUnicode,Rd.ucs2,Rd.version});function OCe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var UB,om,WB,Ec,MCe=Fi(()=>{Vt(),qt(),Kt(),UB=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if(typeof e!="string"||e.length===0)return o;var i=/\+/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=0?(c=p.substr(0,m),u=p.substr(m+1)):(c=p,u=""),f=decodeURIComponent(c),h=decodeURIComponent(u),OCe(o,f)?Array.isArray(o[f])?o[f].push(h):o[f]=[o[f],h]:o[f]=h}return o},om=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},WB=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(o){var i=encodeURIComponent(om(o))+n;return Array.isArray(e[o])?e[o].map(function(a){return i+encodeURIComponent(om(a))}).join(t):i+encodeURIComponent(om(e[o]))}).join(t):r?encodeURIComponent(om(r))+n+encodeURIComponent(om(e)):""},Ec={},Ec.decode=Ec.parse=UB,Ec.encode=Ec.stringify=WB,Ec.decode,Ec.encode,Ec.parse,Ec.stringify});function J4(){throw new Error("setTimeout has not been defined")}function Z4(){throw new Error("clearTimeout has not been defined")}function SZ(e){if($u===setTimeout)return setTimeout(e,0);if(($u===J4||!$u)&&setTimeout)return $u=setTimeout,setTimeout(e,0);try{return $u(e,0)}catch{try{return $u.call(null,e,0)}catch{return $u.call(this||Uh,e,0)}}}function TCe(){Wh&&_h&&(Wh=!1,_h.length?Dc=_h.concat(Dc):Ny=-1,Dc.length&&CZ())}function CZ(){if(!Wh){var e=SZ(TCe);Wh=!0;for(var t=Dc.length;t;){for(_h=Dc,Dc=[];++Ny{Vt(),qt(),Kt(),Uh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Ao=KB={},function(){try{$u=typeof setTimeout=="function"?setTimeout:J4}catch{$u=J4}try{Pu=typeof clearTimeout=="function"?clearTimeout:Z4}catch{Pu=Z4}}(),Dc=[],Wh=!1,Ny=-1,Ao.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var b=1;b{Vt(),qt(),Kt(),Bw={},e3=!1,dh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,yo=ICe(),yo.platform="browser",yo.addListener,yo.argv,yo.binding,yo.browser,yo.chdir,yo.cwd,yo.emit,yo.env,yo.listeners,yo.nextTick,yo.off,yo.on,yo.once,yo.prependListener,yo.prependOnceListener,yo.removeAllListeners,yo.removeListener,yo.title,yo.umask,yo.version,yo.versions});function kCe(){if(t3)return zw;t3=!0;var e=yo;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function n(i,a){for(var s="",l=0,c=-1,u=0,f,h=0;h<=i.length;++h){if(h2){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+="/"+i.slice(c+1,h):s=i.slice(c+1,h),l=h-c-1;c=h,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(i,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+i+l:l}var o={resolve:function(){for(var i="",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&&(i=c+"/"+i,a=c.charCodeAt(0)===47)}return i=n(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var a=i.charCodeAt(0)===47,s=i.charCodeAt(i.length-1)===47;return i=n(i,!a),i.length===0&&!a&&(i="."),i.length>0&&s&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=s:i+="/"+s)}return i===void 0?".":o.normalize(i)},relative:function(i,a){if(t(i),t(a),i===a||(i=o.resolve(i),a=o.resolve(a),i===a))return"";for(var s=1;sp){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(i.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=i.charCodeAt(s+g),b=a.charCodeAt(u+g);if(v!==b)break;v===47&&(m=g)}var y="";for(g=s+m+1;g<=l;++g)(g===l||i.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var a=i.charCodeAt(0),s=a===47,l=-1,c=!0,u=i.length-1;u>=1;--u)if(a=i.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(i);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(u=i.length-1;u>=0;--u){var p=i.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=h))}return s===l?l=h:l===-1&&(l=i.length),i.slice(s,l)}else{for(u=i.length-1;u>=0;--u)if(i.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":i.slice(s,l)}},extname:function(i){t(i);for(var a=-1,s=0,l=-1,c=!0,u=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),h===46?a===-1?a=f:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){t(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var s=i.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,f=0,h=-1,p=!0,m=i.length-1,g=0;m>=c;--m){if(s=i.charCodeAt(m),s===47){if(!p){f=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||h===-1||g===0||g===1&&u===h-1&&u===f+1?h!==-1&&(f===0&&l?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&l?(a.name=i.slice(1,u),a.base=i.slice(1,h)):(a.name=i.slice(f,u),a.base=i.slice(f,h)),a.ext=i.slice(u,h)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,zw=o,zw}var zw,t3,n3,NCe=Fi(()=>{Vt(),qt(),Kt(),wZ(),zw={},t3=!1,n3=kCe()}),xZ={};Rp(xZ,{URL:()=>zZ,Url:()=>DZ,default:()=>Wr,fileURLToPath:()=>EZ,format:()=>jZ,parse:()=>BZ,pathToFileURL:()=>_Z,resolve:()=>FZ,resolveObject:()=>LZ});function zs(){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 M0(e,t,n){if(e&&El.isObject(e)&&e instanceof zs)return e;var r=new zs;return r.parse(e,t,n),r}function ACe(){if(r3)return Hw;r3=!0;var e=$o;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function n(i,a){for(var s="",l=0,c=-1,u=0,f,h=0;h<=i.length;++h){if(h2){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+="/"+i.slice(c+1,h):s=i.slice(c+1,h),l=h-c-1;c=h,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(i,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+i+l:l}var o={resolve:function(){for(var i="",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&&(i=c+"/"+i,a=c.charCodeAt(0)===47)}return i=n(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var a=i.charCodeAt(0)===47,s=i.charCodeAt(i.length-1)===47;return i=n(i,!a),i.length===0&&!a&&(i="."),i.length>0&&s&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=s:i+="/"+s)}return i===void 0?".":o.normalize(i)},relative:function(i,a){if(t(i),t(a),i===a||(i=o.resolve(i),a=o.resolve(a),i===a))return"";for(var s=1;sp){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(i.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=i.charCodeAt(s+g),b=a.charCodeAt(u+g);if(v!==b)break;v===47&&(m=g)}var y="";for(g=s+m+1;g<=l;++g)(g===l||i.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var a=i.charCodeAt(0),s=a===47,l=-1,c=!0,u=i.length-1;u>=1;--u)if(a=i.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(i);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(u=i.length-1;u>=0;--u){var p=i.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=h))}return s===l?l=h:l===-1&&(l=i.length),i.slice(s,l)}else{for(u=i.length-1;u>=0;--u)if(i.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":i.slice(s,l)}},extname:function(i){t(i);for(var a=-1,s=0,l=-1,c=!0,u=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),h===46?a===-1?a=f:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){t(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var s=i.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,f=0,h=-1,p=!0,m=i.length-1,g=0;m>=c;--m){if(s=i.charCodeAt(m),s===47){if(!p){f=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||h===-1||g===0||g===1&&u===h-1&&u===f+1?h!==-1&&(f===0&&l?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&l?(a.name=i.slice(1,u),a.base=i.slice(1,h)):(a.name=i.slice(f,u),a.base=i.slice(f,h)),a.ext=i.slice(u,h)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,Hw=o,Hw}function DCe(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 d2?jCe(e):FCe(e)}function jCe(e){let t=e.hostname,n=e.pathname;for(let r=0;rMZ||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function FCe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;nVZ||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function zCe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n{Vt(),qt(),Kt(),PCe(),MCe(),RCe(),NCe(),wZ(),Wr={},qB=Rd,El={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}},Wr.parse=M0,Wr.resolve=function(e,t){return M0(e,!1,!0).resolve(t)},Wr.resolveObject=function(e,t){return e?M0(e,!1,!0).resolveObject(t):t},Wr.format=function(e){return El.isString(e)&&(e=M0(e)),e instanceof zs?e.format():zs.prototype.format.call(e)},Wr.Url=zs,GB=/^([a-z0-9.+-]+:)/i,YB=/:[0-9]*$/,XB=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,QB=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),wC=["'"].concat(QB),sT=["%","/","?",";","#"].concat(wC),lT=["/","?","#"],cT=/^[+a-z0-9A-Z_-]{0,63}$/,JB=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ZB={javascript:!0,"javascript:":!0},xC={javascript:!0,"javascript:":!0},th={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},EC=Ec,zs.prototype.parse=function(e,t,n){if(!El.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r127?w+="x":w+=S[E];if(!w.match(cT)){var x=b.slice(0,m),_=b.slice(m+1),P=S.match(JB);P&&(x.push(P[1]),_.unshift(P[2])),_.length&&(a="/"+_.join(".")+a),this.hostname=x.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=qB.toASCII(this.hostname));var O=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+O,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!ZB[c])for(m=0,y=wC.length;m0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift())),n.search=e.search,n.query=e.query,El.isNull(n.pathname)&&El.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=S.slice(-1)[0],C=(n.host||e.host||S.length>1)&&(E==="."||E==="..")||E==="",x=0,_=S.length;_>=0;_--)(E=S[_])==="."?S.splice(_,1):E===".."?(S.splice(_,1),x++):x&&(S.splice(_,1),x--);if(!b&&!y)for(;x--;x)S.unshift("..");!b||S[0]===""||S[0]&&S[0].charAt(0)==="/"||S.unshift(""),C&&S.join("/").substr(-1)!=="/"&&S.push("");var P,O=S[0]===""||S[0]&&S[0].charAt(0)==="/";return w&&(n.hostname=n.host=O?"":S.length?S.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift())),(b=b||n.host&&S.length)&&!O&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),El.isNull(n.pathname)&&El.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},zs.prototype.parseHost=function(){var e=this.host,t=YB.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},Wr.Url,Wr.format,Wr.resolve,Wr.resolveObject,Hw={},r3=!1,o3=ACe(),e9=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Wr.URL=typeof URL<"u"?URL:null,Wr.pathToFileURL=LCe,Wr.fileURLToPath=DCe,Wr.Url,Wr.format,Wr.resolve,Wr.resolveObject,Wr.URL,$Z=92,PZ=47,OZ=97,MZ=122,d2=e9==="win32",TZ=/\//g,RZ=/%/g,IZ=/\\/g,kZ=/\n/g,NZ=/\r/g,AZ=/\t/g,t9=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Wr.URL=typeof URL<"u"?URL:null,Wr.pathToFileURL=_Z,Wr.fileURLToPath=EZ,DZ=Wr.Url,jZ=Wr.format,FZ=Wr.resolve,LZ=Wr.resolveObject,BZ=Wr.parse,zZ=Wr.URL,HZ=92,UZ=47,WZ=97,VZ=122,f2=t9==="win32",KZ=/\//g,qZ=/%/g,GZ=/\\/g,YZ=/\n/g,XZ=/\r/g,QZ=/\t/g}),UCe=Zt((e,t)=>{Vt(),qt(),Kt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),O5=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=Np(),n=(Bi(),Qr(Li));function r(i,a){let s=new Array(i.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(i){this.proxy.read(i)}_write(i,a,s){this.isSocketOpen?this.writeToProxy(i,a,s):this.writeQueue.push({chunk:i,encoding:a,cb:s})}_final(i){this.writeQueue=[],this.proxy.end(i)}_destroy(i,a){this.writeQueue=[],this.proxy.destroy(),a(i)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(i,a,s){this.proxy.write(i,a)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:i,encoding:a,cb:s}=this.writeQueue.shift();this.writeToProxy(i,a,s)}}};e.BufferedDuplex=o}),_C=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(Bi(),Qr(Li)),r=t(UCe()),o=t(Zu()),i=Np(),a=t(j_()),s=O5(),l=(0,o.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(b,y){let S=`${b.protocol}://${b.hostname}:${b.port}${b.path}`;return typeof b.transformWsUrl=="function"&&(S=b.transformWsUrl(S,b,y)),S}function f(b){let y=b;return b.port||(b.protocol==="wss"?y.port=443:y.port=80),b.path||(y.path="/"),b.wsOptions||(y.wsOptions={}),!a.default&&!b.forceNativeWebSocket&&b.protocol==="wss"&&c.forEach(S=>{Object.prototype.hasOwnProperty.call(b,S)&&!Object.prototype.hasOwnProperty.call(b.wsOptions,S)&&(y.wsOptions[S]=b[S])}),y}function h(b){let y=f(b);if(y.hostname||(y.hostname=y.host),!y.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let S=new URL(document.URL);y.hostname=S.hostname,y.port||(y.port=Number(S.port))}return y.objectMode===void 0&&(y.objectMode=!(y.binary===!0||y.binary===void 0)),y}function p(b,y,S){l("createWebSocket"),l(`protocol: ${S.protocolId} ${S.protocolVersion}`);let w=S.protocolId==="MQIsdp"&&S.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${y} and protocol: ${w}`);let E;return S.createWebsocket?E=S.createWebsocket(y,[w],S):E=new r.default(y,[w],S.wsOptions),E}function m(b,y){let S=y.protocolId==="MQIsdp"&&y.protocolVersion===3?"mqttv3.1":"mqtt",w=u(y,b),E;return y.createWebsocket?E=y.createWebsocket(w,[S],y):E=new WebSocket(w,[S]),E.binaryType="arraybuffer",E}var g=(b,y)=>{l("streamBuilder");let S=f(y);S.hostname=S.hostname||S.host||"localhost";let w=u(S,b),E=p(b,w,S),C=r.default.createWebSocketStream(E,S.wsOptions);return C.url=w,E.on("close",()=>{C.destroy()}),C};e.streamBuilder=g;var v=(b,y)=>{l("browserStreamBuilder");let S,w=h(y).browserBufferSize||1024*512,E=y.browserBufferTimeout||1e3,C=!y.objectMode,x=m(b,y),_=O(y,A,j);y.objectMode||(_._writev=s.writev.bind(_)),_.on("close",()=>{x.close()});let P=typeof x.addEventListener<"u";x.readyState===x.OPEN?(S=_,S.socket=x):(S=new s.BufferedDuplex(y,_,x),P?x.addEventListener("open",I):x.onopen=I),P?(x.addEventListener("close",M),x.addEventListener("error",T),x.addEventListener("message",D)):(x.onclose=M,x.onerror=T,x.onmessage=D);function O(k,F,V){let W=new i.Transform({objectMode:k.objectMode});return W._write=F,W._flush=V,W}function I(){l("WebSocket onOpen"),S instanceof s.BufferedDuplex&&S.socketReady()}function M(k){l("WebSocket onClose",k),S.end(),S.destroy()}function T(k){l("WebSocket onError",k);let F=new Error("WebSocket error");F.event=k,S.destroy(F)}async function D(k){let{data:F}=k;F instanceof ArrayBuffer?F=n.Buffer.from(F):F instanceof Blob?F=n.Buffer.from(await new Response(F).arrayBuffer()):F=n.Buffer.from(F,"utf8"),_&&!_.destroyed&&_.push(F)}function A(k,F,V){if(x.bufferedAmount>w){setTimeout(A,E,k,F,V);return}C&&typeof k=="string"&&(k=n.Buffer.from(k,"utf8"));try{x.send(k)}catch(W){return V(W)}V()}function j(k){x.close(),k()}return S};e.browserStreamBuilder=v}),M5={};Rp(M5,{Server:()=>So,Socket:()=>So,Stream:()=>So,_createServerHandle:()=>So,_normalizeArgs:()=>So,_setSimultaneousAccepts:()=>So,connect:()=>So,createConnection:()=>So,createServer:()=>So,default:()=>JZ,isIP:()=>So,isIPv4:()=>So,isIPv6:()=>So});function So(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var JZ,ZZ=Fi(()=>{Vt(),qt(),Kt(),JZ={_createServerHandle:So,_normalizeArgs:So,_setSimultaneousAccepts:So,connect:So,createConnection:So,createServer:So,isIP:So,isIPv4:So,isIPv6:So,Server:So,Socket:So,Stream:So}}),n9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((ZZ(),Qr(M5))),r=t(Zu()),o=(0,r.default)("mqttjs:tcp"),i=(a,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return o("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=i}),eee={};Rp(eee,{default:()=>tee});var tee,WCe=Fi(()=>{Vt(),qt(),Kt(),tee={}}),r9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((WCe(),Qr(eee))),r=t((ZZ(),Qr(M5))),o=t(Zu()),i=(0,o.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,i("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(f){l.rejectUnauthorized&&s.emit("error",f),c.end()}return c.on("error",u),c};e.default=a}),o9=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Bi(),Qr(Li)),n=Np(),r=O5(),o,i,a;function s(){let h=new n.Transform;return h._write=(p,m,g)=>{o.send({data:p.buffer,success(){g()},fail(v){g(new Error(v))}})},h._flush=p=>{o.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",g=`${m}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(g=`${m}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(g=h.transformWsUrl(g,h,p)),g}function u(){o.onOpen(()=>{a.socketReady()}),o.onMessage(h=>{let{data:p}=h;p instanceof ArrayBuffer?p=t.Buffer.from(p):p=t.Buffer.from(p,"utf8"),i.push(p)}),o.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),o.onError(h=>{let p=new Error(h.errMsg);a.destroy(p)})}var f=(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 g=c(p,h);o=wx.connectSocket({url:g,protocols:[m]}),i=s(),a=new r.BufferedDuplex(p,i,o),a._destroy=(b,y)=>{o.close({success(){y&&y(b)}})};let v=a.destroy;return a.destroy=(b,y)=>(a.destroy=v,setTimeout(()=>{o.close({fail(){a._destroy(b,y)}})},0),a),u(),a};e.default=f}),i9=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Bi(),Qr(Li)),n=Np(),r=O5(),o,i,a,s=!1;function l(){let p=new n.Transform;return p._write=(m,g,v)=>{o.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},p._flush=m=>{o.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 g=p.protocol==="alis"?"wss":"ws",v=`${g}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(v=`${g}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(v=p.transformWsUrl(v,p,m)),v}function f(){s||(s=!0,o.onSocketOpen(()=>{a.socketReady()}),o.onSocketMessage(p=>{if(typeof p.data=="string"){let m=t.Buffer.from(p.data,"base64");i.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),i.push(g)}),m.readAsArrayBuffer(p.data)}}),o.onSocketClose(()=>{a.end(),a.destroy()}),o.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 g=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let v=u(m,p);return o=m.my,o.connectSocket({url:v,protocols:g}),i=l(),a=new r.BufferedDuplex(m,i,o),f(),a};e.default=h}),VCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(Zu()),r=t((HCe(),Qr(xZ))),o=t(X4()),i=t(j_());typeof(jr==null?void 0:jr.nextTick)!="function"&&(jr.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function l(f){let h;f.auth&&(h=f.auth.match(/^(.+):(.+)$/),h?(f.username=h[1],f.password=h[2]):f.username=f.auth)}function c(f,h){var p,m,g,v;if(a("connecting to an MQTT broker..."),typeof f=="object"&&!h&&(h=f,f=""),h=h||{},f&&typeof f=="string"){let S=r.default.parse(f,!0),w={};if(S.port!=null&&(w.port=Number(S.port)),w.host=S.hostname,w.query=S.query,w.auth=S.auth,w.protocol=S.protocol,w.path=S.path,w.protocol=(p=w.protocol)===null||p===void 0?void 0:p.replace(/:$/,""),h=Object.assign(Object.assign({},w),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",""):!(!((g=h.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=h.protocol)===null||v===void 0)&&v.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={},!i.default&&!h.forceNativeWebSocket?(s.ws=_C().streamBuilder,s.wss=_C().streamBuilder,s.mqtt=n9().default,s.tcp=n9().default,s.ssl=r9().default,s.tls=s.ssl,s.mqtts=r9().default):(s.ws=_C().browserStreamBuilder,s.wss=_C().browserStreamBuilder,s.wx=o9().default,s.wxs=o9().default,s.ali=i9().default,s.alis=i9().default)),!s[h.protocol]){let S=["mqtts","wss"].indexOf(h.protocol)!==-1;h.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((w,E)=>S&&E%2===0?!1:typeof s[w]=="function")[0]}if(h.clean===!1&&!h.clientId)throw new Error("Missing clientId for unclean clients");h.protocol&&(h.defaultProtocol=h.protocol);function b(S){return h.servers&&((!S._reconnectCount||S._reconnectCount===h.servers.length)&&(S._reconnectCount=0),h.host=h.servers[S._reconnectCount].host,h.port=h.servers[S._reconnectCount].port,h.protocol=h.servers[S._reconnectCount].protocol?h.servers[S._reconnectCount].protocol:h.defaultProtocol,h.hostname=h.host,S._reconnectCount++),a("calling streambuilder for",h.protocol),s[h.protocol](S,h)}let y=new o.default(b,h);return y.on("error",()=>{}),y}function u(f,h,p=!0){return new Promise((m,g)=>{let v=c(f,h),b={connect:S=>{y(),m(v)},end:()=>{y(),m(v)},error:S=>{y(),v.end(),g(S)}};p===!1&&(b.close=()=>{b.error(new Error("Couldn't connect to server"))});function y(){Object.keys(b).forEach(S=>{v.off(S,b[S])})}Object.keys(b).forEach(S=>{v.on(S,b[S])})})}e.connectAsync=u,e.default=c}),a9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(p,m,g,v){v===void 0&&(v=g);var b=Object.getOwnPropertyDescriptor(m,g);(!b||("get"in b?!m.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(p,v,b)}:function(p,m,g,v){v===void 0&&(v=g),p[v]=m[g]}),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 g in p)g!=="default"&&Object.prototype.hasOwnProperty.call(p,g)&&t(m,p,g);return n(m,p),m},o=e&&e.__exportStar||function(p,m){for(var g in p)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,p,g)},i=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=i(X4());e.MqttClient=a.default;var s=i(eZ());e.DefaultMessageIdProvider=s.default;var l=i($Ce());e.UniqueMessageIdProvider=l.default;var c=i(tZ());e.Store=c.default;var u=r(VCe());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=i(vZ());e.KeepaliveManager=f.default,e.Client=a.default,o(X4(),e),o(Sv(),e);var h=D_();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return h.ReasonCodes}})}),KCe=Zt(e=>{Vt(),qt(),Kt();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},o=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 i=r(a9());e.default=i,o(a9(),e)});const qCe=KCe();/*! Bundled license information: + `);const y=b.state[s];if(y==null)return;JSON.stringify(o.getState())!==JSON.stringify(y)&&p(y);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(b)});case"DISPATCH":switch(g.payload.type){case"RESET":return p(m),s===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(yC(l.name));case"COMMIT":if(s===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(yC(l.name));case"ROLLBACK":return LM(g.state,b=>{if(s===void 0){p(b),u==null||u.init(o.getState());return}p(b[s]),u==null||u.init(yC(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return LM(g.state,b=>{if(s===void 0){p(b);return}JSON.stringify(o.getState())!==JSON.stringify(b[s])&&p(b[s])});case"IMPORT_STATE":{const{nextLiftedState:b}=g.payload,y=(v=b.computedStates.slice(-1)[0])==null?void 0:v.state;if(!y)return;p(s===void 0?y:y[s]),u==null||u.send(null,b);return}case"PAUSE_RECORDING":return h=!h}return}}),m},uc=a0e,LM=(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 s0e(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;const a=l=>l===null?null:JSON.parse(l,void 0),s=(i=n.getItem(o))!=null?i:null;return s instanceof Promise?s.then(a):a(s)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,void 0)),removeItem:o=>n.removeItem(o)}}const Sb=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Sb(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Sb(r)(n)}}}},l0e=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,b)=>({...b,...v}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch{}if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...v)},r,o);const u=Sb(i.serialize),f=()=>{const v=i.partialize({...r()});let b;const y=u({state:v,version:i.version}).then(S=>c.setItem(i.name,S)).catch(S=>{b=S});if(b)throw b;return y},h=o.setState;o.setState=(v,b)=>{h(v,b),f()};const p=e((...v)=>{n(...v),f()},r,o);let m;const g=()=>{var v;if(!c)return;a=!1,s.forEach(y=>y(r()));const b=((v=i.onRehydrateStorage)==null?void 0:v.call(i,r()))||void 0;return Sb(c.getItem.bind(c))(i.name).then(y=>{if(y)return i.deserialize(y)}).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return i.migrate(y.state,y.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return y.state}).then(y=>{var S;return m=i.merge(y,(S=r())!=null?S:p),n(m,!0),f()}).then(()=>{b==null||b(m,void 0),a=!0,l.forEach(y=>y(m))}).catch(y=>{b==null||b(void 0,y)})};return o.persist={setOptions:v=>{i={...i,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),m||p},c0e=(e,t)=>(n,r,o)=>{let i={storage:s0e(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},a=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...g)},r,o);const u=()=>{const g=i.partialize({...r()});return c.setItem(i.name,{state:g,version:i.version})},f=o.setState;o.setState=(g,v)=>{f(g,v),u()};const h=e((...g)=>{n(...g),u()},r,o);o.getInitialState=()=>h;let p;const m=()=>{var g,v;if(!c)return;a=!1,s.forEach(y=>{var S;return y((S=r())!=null?S:h)});const b=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(g=r())!=null?g:h))||void 0;return Sb(c.getItem.bind(c))(i.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return[!0,i.migrate(y.state,y.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var S;const[w,E]=y;if(p=i.merge(E,(S=r())!=null?S:h),n(p,!0),w)return u()}).then(()=>{b==null||b(p,void 0),p=r(),a=!0,l.forEach(y=>y(p))}).catch(y=>{b==null||b(void 0,y)})};return o.persist={setOptions:g=>{i={...i,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||m(),p||h},u0e=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Mw?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),l0e(e,t)):c0e(e,t),dc=u0e;var pQ=Symbol.for("immer-nothing"),P7=Symbol.for("immer-draftable"),$s=Symbol.for("immer-state");function Dl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kg=Object.getPrototypeOf;function Ng(e){return!!e&&!!e[$s]}function ip(e){var t;return e?mQ(e)||Array.isArray(e)||!!e[P7]||!!((t=e.constructor)!=null&&t[P7])||l_(e)||c_(e):!1}var d0e=Object.prototype.constructor.toString();function mQ(e){if(!e||typeof e!="object")return!1;const t=kg(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)===d0e}function r2(e,t){s_(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function s_(e){const t=e[$s];return t?t.type_:Array.isArray(e)?1:l_(e)?2:c_(e)?3:0}function ck(e,t){return s_(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function gQ(e,t,n){const r=s_(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function f0e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function l_(e){return e instanceof Map}function c_(e){return e instanceof Set}function uh(e){return e.copy_||e.base_}function uk(e,t){if(l_(e))return new Map(e);if(c_(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=mQ(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[$s];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=h0e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>u5(r,!0))),e}function h0e(){Dl(2)}function u_(e){return Object.isFrozen(e)}var p0e={};function ap(e){const t=p0e[e];return t||Dl(0,e),t}var Cb;function vQ(){return Cb}function m0e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function O7(e,t){t&&(ap("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function dk(e){fk(e),e.drafts_.forEach(g0e),e.drafts_=null}function fk(e){e===Cb&&(Cb=e.parent_)}function M7(e){return Cb=m0e(Cb,e)}function g0e(e){const t=e[$s];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function T7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[$s].modified_&&(dk(t),Dl(4)),ip(e)&&(e=o2(t,e),t.parent_||i2(t,e)),t.patches_&&ap("Patches").generateReplacementPatches_(n[$s].base_,e,t.patches_,t.inversePatches_)):e=o2(t,n,[]),dk(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pQ?e:void 0}function o2(e,t,n){if(u_(t))return t;const r=t[$s];if(!r)return r2(t,(o,i)=>R7(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return i2(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),r2(i,(s,l)=>R7(e,r,o,s,l,n,a)),i2(e,o,!1),n&&e.patches_&&ap("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function R7(e,t,n,r,o,i,a){if(Ng(o)){const s=i&&t&&t.type_!==3&&!ck(t.assigned_,r)?i.concat(r):void 0,l=o2(e,o,s);if(gQ(n,r,l),Ng(l))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(ip(o)&&!u_(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;o2(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&i2(e,o)}}function i2(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&u5(t,n)}function v0e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:vQ(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=d5;n&&(o=[r],i=wb);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var d5={get(e,t){if(t===$s)return e;const n=uh(e);if(!ck(n,t))return y0e(e,n,t);const r=n[t];return e.finalized_||!ip(r)?r:r===BM(e.base_,t)?(zM(e),e.copy_[t]=pk(r,e)):r},has(e,t){return t in uh(e)},ownKeys(e){return Reflect.ownKeys(uh(e))},set(e,t,n){const r=yQ(uh(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=BM(uh(e),t),i=o==null?void 0:o[$s];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(f0e(n,o)&&(n!==void 0||ck(e.base_,t)))return!0;zM(e),hk(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 BM(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,zM(e),hk(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=uh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Dl(11)},getPrototypeOf(e){return kg(e.base_)},setPrototypeOf(){Dl(12)}},wb={};r2(d5,(e,t)=>{wb[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});wb.deleteProperty=function(e,t){return wb.set.call(this,e,t,void 0)};wb.set=function(e,t,n){return d5.set.call(this,e[0],t,n,e[0])};function BM(e,t){const n=e[$s];return(n?uh(n):e)[t]}function y0e(e,t,n){var o;const r=yQ(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function yQ(e,t){if(!(t in e))return;let n=kg(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=kg(n)}}function hk(e){e.modified_||(e.modified_=!0,e.parent_&&hk(e.parent_))}function zM(e){e.copy_||(e.copy_=uk(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var b0e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Dl(6),r!==void 0&&typeof r!="function"&&Dl(7);let o;if(ip(t)){const i=M7(this),a=pk(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?dk(i):fk(i)}return O7(i,r),T7(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===pQ&&(o=void 0),this.autoFreeze_&&u5(o,!0),r){const i=[],a=[];ap("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else Dl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},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){ip(e)||Dl(8),Ng(e)&&(e=S0e(e));const t=M7(this),n=pk(e,void 0);return n[$s].isManual_=!0,fk(t),n}finishDraft(e,t){const n=e&&e[$s];(!n||!n.isManual_)&&Dl(9);const{scope_:r}=n;return O7(r,t),T7(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 o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=ap("Patches").applyPatches_;return Ng(e)?r(e,t):this.produce(e,o=>r(o,t))}};function pk(e,t){const n=l_(e)?ap("MapSet").proxyMap_(e,t):c_(e)?ap("MapSet").proxySet_(e,t):v0e(e,t);return(t?t.scope_:vQ()).drafts_.push(n),n}function S0e(e){return Ng(e)||Dl(10,e),bQ(e)}function bQ(e){if(!ip(e)||u_(e))return e;const t=e[$s];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=uk(e,t.scope_.immer_.useStrictShallowCopy_)}else n=uk(e,!0);return r2(n,(r,o)=>{gQ(n,r,bQ(o))}),t&&(t.finalized_=!1),n}var Ps=new b0e,C0e=Ps.produce;Ps.produceWithPatches.bind(Ps);Ps.setAutoFreeze.bind(Ps);Ps.setUseStrictShallowCopy.bind(Ps);Ps.applyPatches.bind(Ps);Ps.createDraft.bind(Ps);Ps.finishDraft.bind(Ps);const w0e=e=>(t,n,r)=>(r.setState=(o,i,...a)=>{const s=typeof o=="function"?C0e(o):o;return t(s,i,...a)},e(r.setState,n,r)),fc=w0e,x0e="dev",SQ="open",I7="prod",E0e="quanjing",CQ="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let Qs;switch(CQ){case"dev":Qs={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:x0e,CLIENT:"WEB"};break;case"prod-open":Qs={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:SQ,CLIENT:"WEB"};break;case"prod-quanjing":Qs={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:E0e,CLIENT:"WEB"};break;case"prod-web":Qs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:I7,CLIENT:"WEB"};break;default:Qs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:I7,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",CQ,Qs);const Pi=navigator.userAgent.toLowerCase().indexOf("electron")>-1,HM=Qs.API_URL,k7=Qs.MQTT_URL;Qs.HTML_URL;const Ag=Qs.IS_DEBUG,_0e=Qs.SERVER_MODE,po=Qs.CLIENT,cl="BYTEDESK",N7="locale",A7="mode",Zm="team",sp="agent",a2="personal",D7="i18n.",bC="i18n.new.message",wQ="ANONYMOUS",ms="bytedesk_login_credentials",j7="THEME_MODE_TYPE",F7="THEME_NAME_TYPE",Tw="PLAY_AUDIO",Ry="NETWORK_STATUS_NOTIFICATION",Iy="CONFIG_ENABLED_AGENT",Rw="CONFIG_API_URL_AGENT",Iw="CONFIG_WEBSOCKET_URL_AGENT",UM="CONFIG_HTML_URL_AGENT",Bm="CONFIG_CUSTOM_ENABLED_AGENT",iy="CONFIG_CUSTOM_API_URL_AGENT",ay="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",$0e="CONFIG_PROPERTIES",P0e="SCREENSHOT_OK",O0e="EVENT_BUS_SERVER_ERROR_500",pf="EVENT_BUS_TOKEN_INVALID",xb="EVENT_BUS_MQTT_MESSAGE",mk="EVENT_BUS_MQTT_CONNECTED",gk="EVENT_BUS_MQTT_OFFLINE",vk="EVENT_BUS_MQTT_CLOSE",yk="EVENT_BUS_MQTT_DISCONNECTED",bk="EVENT_BUS_MQTT_ERROR",Sk="EVENT_BUS_MQTT_END",xQ="EVENT_BUS_MESSAGE_TYPE_STATUS",M0e="EVENT_BUS_MESSAGE_TYPE_TYPING",T0e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",R0e="EVENT_BUS_MESSAGE_TYPE_STREAM",I0e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",Ck="EVENT_BUS_MESSAGE_TYPE_TRANSFER",wk="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",xk="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",k0e="EVENT_BUS_SCREEN_CAPTURE_IMAGE",N0e="AUTH_STORE",Eb="ACCESS_TOKEN",A0e="ORGANIZATION_STORE",D0e="MEMBER_STORE",j0e="MESSAGE_STORE",F0e="CONTACT_STORE",L0e="USER_STORE",B0e="SETTINGS_STORE",z0e="THREAD_STORE",H0e="DEVICE_STORE",U0e="AGENT_STORE",W0e="WORKGROUP_STORE",V0e="member",EQ="device",K0e="MOBILE_LOGIN",q0e="MOBILE_RESET",G0e="MOBILE_VERIFY",Y0e="EMAIL_RESET",X0e="EMAIL_VERIFY",Q0e="PENDING",J0e="SCANNED",Z0e="CONFIRMED",eye="EXPIRED",tye="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",nye="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",rye="https://www.weiyuai.cn/download.html",L7="AGENT",B7="USER",z7="AGENT",H7="WORKGROUP",U7="QUEUING",W7="CLOSED",V7="SENDING",Ek="SUCCESS",oye="TRANSFER_ACCEPT",iye="TRANSFER_REJECT",_k="CONTINUE",_Q="SYSTEM",aye="QUEUE",sye="TEXT",lye="IMAGE",cye="FILE",uye="AUDIO",dye="VIDEO",$k="TYPING",Pk="PROCESSING",_b="STREAM",K7="PREVIEW",q7="RECALL",Ok="DELIVERED",Mk="READ",fye="FAQ_UP",hye="FAQ_DOWN",pye="ROBOT_UP",mye="ROBOT_DOWN",gye="RATE_SUBMIT",vye="RATE_CANCEL",$b="AUTO_CLOSED",Pb="AGENT_CLOSED",G7="TRANSFER",Y7="TRANSFER_ACCEPT",X7="TRANSFER_REJECT",Q7="AVAILABLE",WM="OFFLINE",J7="REST",yye="org/group/",bye="CHAT",Z7="lastPath",Sye="ROLE_SUPER",Cye="ROLE_ADMIN",wye="ROLE_MEMBER",xye="ROLE_AGENT",_1=hl()(uc(dc(fc((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Eb,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Eb),e({accessToken:""})}})),{name:N0e}))),Eye=hl()(uc(dc(fc(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:B0e})));var Op={},$Q={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})($Q);var ir=$Q.exports,d_={};Object.defineProperty(d_,"__esModule",{value:!0});d_.default=void 0;var _ye={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"};d_.default=_ye;var f_={},$1={},h_={},PQ={exports:{}},OQ={exports:{}},MQ={exports:{}},TQ={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})(TQ);var Mp=TQ.exports,RQ={exports:{}};(function(e){var t=Mp.default;function n(r,o){if(t(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(RQ);var $ye=RQ.exports;(function(e){var t=Mp.default,n=$ye;function r(o){var i=n(o,"string");return t(i)=="symbol"?i:i+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(MQ);var Pye=MQ.exports;(function(e){var t=Pye;function n(r,o,i){return(o=t(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(OQ);var IQ=OQ.exports;(function(e){var t=IQ;function n(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),a.push.apply(a,s)}return a}function r(o){for(var i=1;i{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")}))},[]),d.useEffect(()=>{localStorage.setItem(j7,o),o==="light"?n("light"):o==="dark"?n("dark"):o==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[o]),d.useEffect(()=>{localStorage.setItem(F7,t)},[t]),{themeName:t,setThemeName:n,themeMode:o,setThemeMode:i,isDarkMode:t==="dark",isLightMode:t==="light"}}function LQ(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sbe}=Object.prototype,{getPrototypeOf:f5}=Object,__=(e=>t=>{const n=Sbe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hc=e=>(e=e.toLowerCase(),t=>__(t)===e),$_=e=>t=>typeof t===e,{isArray:gv}=Array,Ob=$_("undefined");function Cbe(e){return e!==null&&!Ob(e)&&e.constructor!==null&&!Ob(e.constructor)&&Es(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const BQ=hc("ArrayBuffer");function wbe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BQ(e.buffer),t}const xbe=$_("string"),Es=$_("function"),zQ=$_("number"),P_=e=>e!==null&&typeof e=="object",Ebe=e=>e===!0||e===!1,kw=e=>{if(__(e)!=="object")return!1;const t=f5(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_be=hc("Date"),$be=hc("File"),Pbe=hc("Blob"),Obe=hc("FileList"),Mbe=e=>P_(e)&&Es(e.pipe),Tbe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Es(e.append)&&((t=__(e))==="formdata"||t==="object"&&Es(e.toString)&&e.toString()==="[object FormData]"))},Rbe=hc("URLSearchParams"),[Ibe,kbe,Nbe,Abe]=["ReadableStream","Request","Response","Headers"].map(hc),Dbe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),gv(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const xh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,UQ=e=>!Ob(e)&&e!==xh;function Tk(){const{caseless:e}=UQ(this)&&this||{},t={},n=(r,o)=>{const i=e&&HQ(t,o)||o;kw(t[i])&&kw(r)?t[i]=Tk(t[i],r):kw(r)?t[i]=Tk({},r):gv(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(I1(t,(o,i)=>{n&&Es(o)?e[i]=LQ(o,n):e[i]=o},{allOwnKeys:r}),e),Fbe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Lbe=(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)},Bbe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&f5(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zbe=(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},Hbe=e=>{if(!e)return null;if(gv(e))return e;let t=e.length;if(!zQ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ube=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&f5(Uint8Array)),Wbe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Vbe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Kbe=hc("HTMLFormElement"),qbe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),oB=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gbe=hc("RegExp"),WQ=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I1(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Ybe=e=>{WQ(e,(t,n)=>{if(Es(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Es(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+"'")})}})},Xbe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gv(e)?r(e):r(String(e).split(t)),n},Qbe=()=>{},Jbe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,VM="abcdefghijklmnopqrstuvwxyz",iB="0123456789",VQ={DIGIT:iB,ALPHA:VM,ALPHA_DIGIT:VM+VM.toUpperCase()+iB},Zbe=(e=16,t=VQ.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function e1e(e){return!!(e&&Es(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const t1e=e=>{const t=new Array(10),n=(r,o)=>{if(P_(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=gv(r)?[]:{};return I1(r,(a,s)=>{const l=n(a,o+1);!Ob(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},n1e=hc("AsyncFunction"),r1e=e=>e&&(P_(e)||Es(e))&&Es(e.then)&&Es(e.catch),KQ=((e,t)=>e?setImmediate:t?((n,r)=>(xh.addEventListener("message",({source:o,data:i})=>{o===xh&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),xh.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Es(xh.postMessage)),o1e=typeof queueMicrotask<"u"?queueMicrotask.bind(xh):typeof process<"u"&&process.nextTick||KQ,zt={isArray:gv,isArrayBuffer:BQ,isBuffer:Cbe,isFormData:Tbe,isArrayBufferView:wbe,isString:xbe,isNumber:zQ,isBoolean:Ebe,isObject:P_,isPlainObject:kw,isReadableStream:Ibe,isRequest:kbe,isResponse:Nbe,isHeaders:Abe,isUndefined:Ob,isDate:_be,isFile:$be,isBlob:Pbe,isRegExp:Gbe,isFunction:Es,isStream:Mbe,isURLSearchParams:Rbe,isTypedArray:Ube,isFileList:Obe,forEach:I1,merge:Tk,extend:jbe,trim:Dbe,stripBOM:Fbe,inherits:Lbe,toFlatObject:Bbe,kindOf:__,kindOfTest:hc,endsWith:zbe,toArray:Hbe,forEachEntry:Wbe,matchAll:Vbe,isHTMLForm:Kbe,hasOwnProperty:oB,hasOwnProp:oB,reduceDescriptors:WQ,freezeMethods:Ybe,toObjectSet:Xbe,toCamelCase:qbe,noop:Qbe,toFiniteNumber:Jbe,findKey:HQ,global:xh,isContextDefined:UQ,ALPHABET:VQ,generateString:Zbe,isSpecCompliantForm:e1e,toJSONObject:t1e,isAsyncFn:n1e,isThenable:r1e,setImmediate:KQ,asap:o1e};function sr(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}zt.inherits(sr,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:zt.toJSONObject(this.config),code:this.code,status:this.status}}});const qQ=sr.prototype,GQ={};["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=>{GQ[e]={value:e}});Object.defineProperties(sr,GQ);Object.defineProperty(qQ,"isAxiosError",{value:!0});sr.from=(e,t,n,r,o,i)=>{const a=Object.create(qQ);return zt.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),sr.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const i1e=null;function Rk(e){return zt.isPlainObject(e)||zt.isArray(e)}function YQ(e){return zt.endsWith(e,"[]")?e.slice(0,-2):e}function aB(e,t,n){return e?e.concat(t).map(function(o,i){return o=YQ(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function a1e(e){return zt.isArray(e)&&!e.some(Rk)}const s1e=zt.toFlatObject(zt,{},null,function(t){return/^is[A-Z]/.test(t)});function O_(e,t,n){if(!zt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=zt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!zt.isUndefined(v[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&zt.isSpecCompliantForm(t);if(!zt.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(zt.isDate(m))return m.toISOString();if(!l&&zt.isBlob(m))throw new sr("Blob is not supported. Use a Buffer instead.");return zt.isArrayBuffer(m)||zt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let b=m;if(m&&!v&&typeof m=="object"){if(zt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(zt.isArray(m)&&a1e(m)||(zt.isFileList(m)||zt.endsWith(g,"[]"))&&(b=zt.toArray(m)))return g=YQ(g),b.forEach(function(S,w){!(zt.isUndefined(S)||S===null)&&t.append(a===!0?aB([g],w,i):a===null?g:g+"[]",c(S))}),!1}return Rk(m)?!0:(t.append(aB(v,g,i),c(m)),!1)}const f=[],h=Object.assign(s1e,{defaultVisitor:u,convertValue:c,isVisitable:Rk});function p(m,g){if(!zt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),zt.forEach(m,function(b,y){(!(zt.isUndefined(b)||b===null)&&o.call(t,b,zt.isString(y)?y.trim():y,g,h))===!0&&p(b,g?g.concat(y):[y])}),f.pop()}}if(!zt.isObject(e))throw new TypeError("data must be an object");return p(e),t}function sB(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function h5(e,t){this._pairs=[],e&&O_(e,this,t)}const XQ=h5.prototype;XQ.append=function(t,n){this._pairs.push([t,n])};XQ.toString=function(t){const n=t?function(r){return t.call(this,r,sB)}:sB;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function l1e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function QQ(e,t,n){if(!t)return e;const r=n&&n.encode||l1e;zt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=zt.isURLSearchParams(t)?t.toString():new h5(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class lB{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){zt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const JQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},c1e=typeof URLSearchParams<"u"?URLSearchParams:h5,u1e=typeof FormData<"u"?FormData:null,d1e=typeof Blob<"u"?Blob:null,f1e={isBrowser:!0,classes:{URLSearchParams:c1e,FormData:u1e,Blob:d1e},protocols:["http","https","file","blob","url","data"]},p5=typeof window<"u"&&typeof document<"u",Ik=typeof navigator=="object"&&navigator||void 0,h1e=p5&&(!Ik||["ReactNative","NativeScript","NS"].indexOf(Ik.product)<0),p1e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",m1e=p5&&window.location.href||"http://localhost",g1e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:p5,hasStandardBrowserEnv:h1e,hasStandardBrowserWebWorkerEnv:p1e,navigator:Ik,origin:m1e},Symbol.toStringTag,{value:"Module"})),ea={...g1e,...f1e};function v1e(e,t){return O_(e,new ea.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ea.isNode&&zt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function y1e(e){return zt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b1e(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&zt.isArray(o)?o.length:a,l?(zt.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!zt.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&zt.isArray(o[a])&&(o[a]=b1e(o[a])),!s)}if(zt.isFormData(e)&&zt.isFunction(e.entries)){const n={};return zt.forEachEntry(e,(r,o)=>{t(y1e(r),o,n,0)}),n}return null}function S1e(e,t,n){if(zt.isString(e))try{return(t||JSON.parse)(e),zt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const k1={transitional:JQ,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=zt.isObject(t);if(i&&zt.isHTMLForm(t)&&(t=new FormData(t)),zt.isFormData(t))return o?JSON.stringify(ZQ(t)):t;if(zt.isArrayBuffer(t)||zt.isBuffer(t)||zt.isStream(t)||zt.isFile(t)||zt.isBlob(t)||zt.isReadableStream(t))return t;if(zt.isArrayBufferView(t))return t.buffer;if(zt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return v1e(t,this.formSerializer).toString();if((s=zt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return O_(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),S1e(t)):t}],transformResponse:[function(t){const n=this.transitional||k1.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(zt.isResponse(t)||zt.isReadableStream(t))return t;if(t&&zt.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?sr.from(s,sr.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:ea.classes.FormData,Blob:ea.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zt.forEach(["delete","get","head","post","put","patch"],e=>{k1.headers[e]={}});const C1e=zt.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"]),w1e=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&C1e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},cB=Symbol("internals");function _0(e){return e&&String(e).trim().toLowerCase()}function Nw(e){return e===!1||e==null?e:zt.isArray(e)?e.map(Nw):String(e)}function x1e(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 E1e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function KM(e,t,n,r,o){if(zt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!zt.isString(t)){if(zt.isString(r))return t.indexOf(r)!==-1;if(zt.isRegExp(r))return r.test(t)}}function _1e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $1e(e,t){const n=zt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Wa{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=_0(l);if(!u)throw new Error("header name must be a non-empty string");const f=zt.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Nw(s))}const a=(s,l)=>zt.forEach(s,(c,u)=>i(c,u,l));if(zt.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(zt.isString(t)&&(t=t.trim())&&!E1e(t))a(w1e(t),n);else if(zt.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=_0(t),t){const r=zt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return x1e(o);if(zt.isFunction(n))return n.call(this,o,r);if(zt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_0(t),t){const r=zt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||KM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=_0(a),a){const s=zt.findKey(r,a);s&&(!n||KM(r,r[s],s,n))&&(delete r[s],o=!0)}}return zt.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||KM(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return zt.forEach(this,(o,i)=>{const a=zt.findKey(r,i);if(a){n[a]=Nw(o),delete n[i];return}const s=t?_1e(i):String(i).trim();s!==i&&delete n[i],n[s]=Nw(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return zt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&zt.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(o=>r.set(o)),r}static accessor(t){const r=(this[cB]=this[cB]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=_0(a);r[s]||($1e(o,a),r[s]=!0)}return zt.isArray(t)?t.forEach(i):i(t),this}}Wa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);zt.reduceDescriptors(Wa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});zt.freezeMethods(Wa);function qM(e,t){const n=this||k1,r=t||n,o=Wa.from(r.headers);let i=r.data;return zt.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eJ(e){return!!(e&&e.__CANCEL__)}function vv(e,t,n){sr.call(this,e??"canceled",sr.ERR_CANCELED,t,n),this.name="CanceledError"}zt.inherits(vv,sr,{__CANCEL__:!0});function tJ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new sr("Request failed with status code "+n.status,[sr.ERR_BAD_REQUEST,sr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function P1e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O1e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const s2=(e,t,n=3)=>{let r=0;const o=O1e(50,250);return M1e(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={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:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},uB=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dB=e=>(...t)=>zt.asap(()=>e(...t)),T1e=ea.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ea.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ea.origin),ea.navigator&&/(msie|trident)/i.test(ea.navigator.userAgent)):()=>!0,R1e=ea.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];zt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),zt.isString(r)&&a.push("path="+r),zt.isString(o)&&a.push("domain="+o),i===!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 I1e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k1e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function nJ(e,t){return e&&!I1e(t)?k1e(e,t):t}const fB=e=>e instanceof Wa?{...e}:e;function lp(e,t){t=t||{};const n={};function r(c,u,f,h){return zt.isPlainObject(c)&&zt.isPlainObject(u)?zt.merge.call({caseless:h},c,u):zt.isPlainObject(u)?zt.merge({},u):zt.isArray(u)?u.slice():u}function o(c,u,f,h){if(zt.isUndefined(u)){if(!zt.isUndefined(c))return r(void 0,c,f,h)}else return r(c,u,f,h)}function i(c,u){if(!zt.isUndefined(u))return r(void 0,u)}function a(c,u){if(zt.isUndefined(u)){if(!zt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,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,f)=>o(fB(c),fB(u),f,!0)};return zt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);zt.isUndefined(h)&&f!==s||(n[u]=h)}),n}const rJ=e=>{const t=lp({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Wa.from(a),t.url=QQ(nJ(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(zt.isFormData(n)){if(ea.hasStandardBrowserEnv||ea.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ea.hasStandardBrowserEnv&&(r&&zt.isFunction(r)&&(r=r(t)),r||r!==!1&&T1e(t.url))){const c=o&&i&&R1e.read(i);c&&a.set(o,c)}return t},N1e=typeof XMLHttpRequest<"u",A1e=N1e&&function(e){return new Promise(function(n,r){const o=rJ(e);let i=o.data;const a=Wa.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,f,h,p,m;function g(){p&&p(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function b(){if(!v)return;const S=Wa.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:S,config:e,request:v};tJ(function(x){n(x),g()},function(x){r(x),g()},E),v=null}"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(b)},v.onabort=function(){v&&(r(new sr("Request aborted",sr.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new sr("Network Error",sr.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||JQ;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new sr(w,E.clarifyTimeoutError?sr.ETIMEDOUT:sr.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&zt.forEach(a.toJSON(),function(w,E){v.setRequestHeader(E,w)}),zt.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),c&&([h,m]=s2(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([f,p]=s2(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=S=>{v&&(r(!S||S.type?new vv(null,e,v):S),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const y=P1e(o.url);if(y&&ea.protocols.indexOf(y)===-1){r(new sr("Unsupported protocol "+y+":",sr.ERR_BAD_REQUEST,e));return}v.send(i||null)})},D1e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof sr?u:new vv(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new sr(`timeout ${t} of ms exceeded`,sr.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>zt.asap(s),l}},j1e=function*(e,t){let n=e.byteLength;if(n{const o=F1e(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},M_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",oJ=M_&&typeof ReadableStream=="function",B1e=M_&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),iJ=(e,...t)=>{try{return!!e(...t)}catch{return!1}},z1e=oJ&&iJ(()=>{let e=!1;const t=new Request(ea.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pB=64*1024,kk=oJ&&iJ(()=>zt.isReadableStream(new Response("").body)),l2={stream:kk&&(e=>e.body)};M_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!l2[t]&&(l2[t]=zt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new sr(`Response type '${t}' is not supported`,sr.ERR_NOT_SUPPORT,r)})})})(new Response);const H1e=async e=>{if(e==null)return 0;if(zt.isBlob(e))return e.size;if(zt.isSpecCompliantForm(e))return(await new Request(ea.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(zt.isArrayBufferView(e)||zt.isArrayBuffer(e))return e.byteLength;if(zt.isURLSearchParams(e)&&(e=e+""),zt.isString(e))return(await B1e(e)).byteLength},U1e=async(e,t)=>{const n=zt.toFiniteNumber(e.getContentLength());return n??H1e(t)},W1e=M_&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=rJ(e);c=c?(c+"").toLowerCase():"text";let p=D1e([o,i&&i.toAbortSignal()],a),m;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&z1e&&n!=="get"&&n!=="head"&&(v=await U1e(u,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(zt.isFormData(r)&&(C=E.headers.get("content-type"))&&u.setContentType(C),E.body){const[x,_]=uB(v,s2(dB(l)));r=hB(E.body,pB,x,_)}}zt.isString(f)||(f=f?"include":"omit");const b="credentials"in Request.prototype;m=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?f:void 0});let y=await fetch(m);const S=kk&&(c==="stream"||c==="response");if(kk&&(s||S&&g)){const E={};["status","statusText","headers"].forEach(P=>{E[P]=y[P]});const C=zt.toFiniteNumber(y.headers.get("content-length")),[x,_]=s&&uB(C,s2(dB(s),!0))||[];y=new Response(hB(y.body,pB,x,()=>{_&&_(),g&&g()}),E)}c=c||"text";let w=await l2[zt.findKey(l2,c)||"text"](y,e);return!S&&g&&g(),await new Promise((E,C)=>{tJ(E,C,{data:w,headers:Wa.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:m})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new sr("Network Error",sr.ERR_NETWORK,e,m),{cause:b.cause||b}):sr.from(b,b&&b.code,e,m)}}),Nk={http:i1e,xhr:A1e,fetch:W1e};zt.forEach(Nk,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mB=e=>`- ${e}`,V1e=e=>zt.isFunction(e)||e===null||e===!1,aJ={getAdapter:e=>{e=zt.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(mB).join(` +`):" "+mB(i[0]):"as no adapter specified";throw new sr("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Nk};function GM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vv(null,e)}function gB(e){return GM(e),e.headers=Wa.from(e.headers),e.data=qM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),aJ.getAdapter(e.adapter||k1.adapter)(e).then(function(r){return GM(e),r.data=qM.call(e,e.transformResponse,r),r.headers=Wa.from(r.headers),r},function(r){return eJ(r)||(GM(e),r&&r.response&&(r.response.data=qM.call(e,e.transformResponse,r.response),r.response.headers=Wa.from(r.response.headers))),Promise.reject(r)})}const sJ="1.7.9",T_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{T_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vB={};T_.transitional=function(t,n,r){function o(i,a){return"[Axios v"+sJ+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new sr(o(a," has been removed"+(n?" in "+n:"")),sr.ERR_DEPRECATED);return n&&!vB[a]&&(vB[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};T_.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function K1e(e,t,n){if(typeof e!="object")throw new sr("options must be an object",sr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new sr("option "+i+" must be "+l,sr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new sr("Unknown option "+i,sr.ERR_BAD_OPTION)}}const Aw={assertOptions:K1e,validators:T_},Cc=Aw.validators;class zh{constructor(t){this.defaults=t,this.interceptors={request:new lB,response:new lB}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=lp(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Aw.assertOptions(r,{silentJSONParsing:Cc.transitional(Cc.boolean),forcedJSONParsing:Cc.transitional(Cc.boolean),clarifyTimeoutError:Cc.transitional(Cc.boolean)},!1),o!=null&&(zt.isFunction(o)?n.paramsSerializer={serialize:o}:Aw.assertOptions(o,{encode:Cc.function,serialize:Cc.function},!0)),Aw.assertOptions(n,{baseUrl:Cc.spelling("baseURL"),withXsrfToken:Cc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&zt.merge(i.common,i[n.method]);i&&zt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Wa.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,h;if(!l){const m=[gB.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new vv(i,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 m5(function(o){t=o}),cancel:t}}}function q1e(e){return function(n){return e.apply(null,n)}}function G1e(e){return zt.isObject(e)&&e.isAxiosError===!0}const Ak={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(Ak).forEach(([e,t])=>{Ak[t]=e});function lJ(e){const t=new zh(e),n=LQ(zh.prototype.request,t);return zt.extend(n,zh.prototype,t,{allOwnKeys:!0}),zt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return lJ(lp(e,o))},n}const Qo=lJ(k1);Qo.Axios=zh;Qo.CanceledError=vv;Qo.CancelToken=m5;Qo.isCancel=eJ;Qo.VERSION=sJ;Qo.toFormData=O_;Qo.AxiosError=sr;Qo.Cancel=Qo.CanceledError;Qo.all=function(t){return Promise.all(t)};Qo.spread=q1e;Qo.isAxiosError=G1e;Qo.mergeConfig=lp;Qo.AxiosHeaders=Wa;Qo.formToJSON=e=>ZQ(zt.isHTMLForm(e)?new FormData(e):e);Qo.getAdapter=aJ.getAdapter;Qo.HttpStatusCode=Ak;Qo.default=Qo;function Y1e(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(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const Jn=Y1e();async function X1e(){return ko("/config/bytedesk/properties",{method:"GET",params:{client:po}})}async function cJ(){try{const t=(await Qo.get("/agent/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(Iy,"true"),localStorage.setItem(Rw,t.apiUrl),localStorage.setItem(Iw,t.websocketUrl),localStorage.setItem(UM,t.htmlUrl);else if(_0e===SQ){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,o="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",o),localStorage.setItem(Iy,"true"),localStorage.setItem(Rw,r),localStorage.setItem(Iw,o),localStorage.setItem(UM,r)}else console.log("config disabled"),localStorage.setItem(Iy,"false"),localStorage.removeItem(Rw),localStorage.removeItem(Iw),localStorage.removeItem(UM)}catch(e){console.log("loadConfig error: ",e)}}function R_(){const e=localStorage.getItem(Bm);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(iy);return n===null?HM:n}if(localStorage.getItem(Iy)==="true"){const n=localStorage.getItem(Rw);return n===null?HM:n}return HM}function uJ(){return R_()+"/api/v1/upload/file"}function Q1e(){const e=localStorage.getItem(Bm);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(ay);return r===null?k7:r}const t=localStorage.getItem(Iy),n=localStorage.getItem(Iw);return t==="true"?n:k7}async function dJ(){const e=await X1e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem($0e,JSON.stringify(e.data.data)),e.data.data):null}const ko=Qo.create({timeout:2e4,baseURL:R_(),paramsSerializer:{indexes:null}});ko.interceptors.request.use(e=>{e.baseURL=R_();const t=localStorage.getItem(Eb);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(J1e):e},e=>(console.debug("request error",e),e.response.status===403&&Jn.emit(pf,"403"),e.response.status===401&&Jn.emit(pf,"401"),Promise.reject(e)));ko.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"),Jn.emit(pf,"400");break;case 401:console.log("axios interception error 401"),Jn.emit(pf,"401");break;case 403:console.log("axios interception error 403"),Jn.emit(pf,"403");break;case 500:console.log("axios interception error 500"),Jn.emit(O0e,"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 YM={data:null,status:601,statusText:wQ,headers:{},config:{headers:void 0},request:null},J1e={message:"匿名用户,无需访问服务器接口",name:wQ,code:"601",config:YM.config,request:YM.request,response:YM,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 Z1e(e){return ko("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:po}})}async function eSe(e){return ko("/api/v1/agent/update",{method:"POST",data:{...e,client:po}})}async function tSe(e){return ko("/api/v1/agent/update/status",{method:"POST",data:{...e,client:po}})}async function nSe(e){return ko("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:po}})}async function rSe(e){return ko("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:po}})}var g5=Object.defineProperty,oSe=Object.getOwnPropertyDescriptor,iSe=Object.getOwnPropertyNames,aSe=Object.prototype.hasOwnProperty,Fi=(e,t)=>()=>(e&&(t=e(e=0)),t),Zt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rp=(e,t)=>{for(var n in t)g5(e,n,{get:t[n],enumerable:!0})},sSe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iSe(t))!aSe.call(e,o)&&o!==n&&g5(e,o,{get:()=>t[o],enumerable:!(r=oSe(t,o))||r.enumerable});return e},Qr=e=>sSe(g5({},"__esModule",{value:!0}),e),Vt=Fi(()=>{}),jr={};Rp(jr,{_debugEnd:()=>p4,_debugProcess:()=>h4,_events:()=>M4,_eventsCount:()=>T4,_exiting:()=>Zk,_fatalExceptions:()=>u4,_getActiveHandles:()=>yJ,_getActiveRequests:()=>vJ,_kill:()=>n4,_linkedBinding:()=>mJ,_maxListeners:()=>O4,_preload_modules:()=>$4,_rawDebug:()=>Xk,_startProfilerIdleNotifier:()=>m4,_stopProfilerIdleNotifier:()=>g4,_tickCallback:()=>f4,abort:()=>S4,addListener:()=>R4,allowedNodeEnvironmentFlags:()=>l4,arch:()=>jk,argv:()=>Bk,argv0:()=>_4,assert:()=>bJ,binding:()=>Vk,chdir:()=>Gk,config:()=>e4,cpuUsage:()=>sy,cwd:()=>qk,debugPort:()=>E4,default:()=>y5,dlopen:()=>gJ,domain:()=>Jk,emit:()=>D4,emitWarning:()=>Wk,env:()=>Lk,execArgv:()=>zk,execPath:()=>x4,exit:()=>a4,features:()=>c4,hasUncaughtExceptionCaptureCallback:()=>SJ,hrtime:()=>Dw,kill:()=>i4,listeners:()=>wJ,memoryUsage:()=>o4,moduleLoadList:()=>Qk,nextTick:()=>hJ,off:()=>k4,on:()=>bu,once:()=>I4,openStdin:()=>s4,pid:()=>C4,platform:()=>Fk,ppid:()=>w4,prependListener:()=>j4,prependOnceListener:()=>F4,reallyExit:()=>t4,release:()=>Yk,removeAllListeners:()=>A4,removeListener:()=>N4,resourceUsage:()=>r4,setSourceMapsEnabled:()=>P4,setUncaughtExceptionCaptureCallback:()=>d4,stderr:()=>y4,stdin:()=>b4,stdout:()=>v4,title:()=>Dk,umask:()=>Kk,uptime:()=>CJ,version:()=>Hk,versions:()=>Uk});function v5(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function lSe(){!Hh||!Eh||(Hh=!1,Eh.length?Ac=Eh.concat(Ac):ky=-1,Ac.length&&fJ())}function fJ(){if(!Hh){var e=setTimeout(lSe,0);Hh=!0;for(var t=Ac.length;t;){for(Eh=Ac,Ac=[];++ky1)for(var n=1;n{Vt(),qt(),Kt(),Ac=[],Hh=!1,ky=-1,pJ.prototype.run=function(){this.fun.apply(null,this.array)},Dk="browser",jk="x64",Fk="browser",Lk={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Bk=["/usr/bin/node"],zk=[],Hk="v16.8.0",Uk={},Wk=function(e,t){console.warn((t?t+": ":"")+e)},Vk=function(e){v5("binding")},Kk=function(e){return 0},qk=function(){return"/"},Gk=function(e){},Yk={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Xk=Gi,Qk=[],Jk={},Zk=!1,e4={},t4=Gi,n4=Gi,sy=function(){return{}},r4=sy,o4=sy,i4=Gi,a4=Gi,s4=Gi,l4={},c4={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},u4=Gi,d4=Gi,f4=Gi,h4=Gi,p4=Gi,m4=Gi,g4=Gi,v4=void 0,y4=void 0,b4=void 0,S4=Gi,C4=2,w4=1,x4="/bin/usr/node",E4=9229,_4="node",$4=[],P4=Gi,Tu={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Tu.now===void 0&&(XM=Date.now(),Tu.timing&&Tu.timing.navigationStart&&(XM=Tu.timing.navigationStart),Tu.now=()=>Date.now()-XM),jw=1e9,Dw.bigint=function(e){var t=Dw(e);return typeof BigInt>"u"?t[0]*jw+t[1]:BigInt(t[0]*jw)+BigInt(t[1])},O4=10,M4={},T4=0,R4=bu,I4=bu,k4=bu,N4=bu,A4=bu,D4=Gi,j4=bu,F4=bu,y5={version:Hk,versions:Uk,arch:jk,platform:Fk,release:Yk,_rawDebug:Xk,moduleLoadList:Qk,binding:Vk,_linkedBinding:mJ,_events:M4,_eventsCount:T4,_maxListeners:O4,on:bu,addListener:R4,once:I4,off:k4,removeListener:N4,removeAllListeners:A4,emit:D4,prependListener:j4,prependOnceListener:F4,listeners:wJ,domain:Jk,_exiting:Zk,config:e4,dlopen:gJ,uptime:CJ,_getActiveRequests:vJ,_getActiveHandles:yJ,reallyExit:t4,_kill:n4,cpuUsage:sy,resourceUsage:r4,memoryUsage:o4,kill:i4,exit:a4,openStdin:s4,allowedNodeEnvironmentFlags:l4,assert:bJ,features:c4,_fatalExceptions:u4,setUncaughtExceptionCaptureCallback:d4,hasUncaughtExceptionCaptureCallback:SJ,emitWarning:Wk,nextTick:hJ,_tickCallback:f4,_debugProcess:h4,_debugEnd:p4,_startProfilerIdleNotifier:m4,_stopProfilerIdleNotifier:g4,stdout:v4,stdin:b4,stderr:y4,abort:S4,umask:Kk,chdir:Gk,cwd:qk,env:Lk,title:Dk,argv:Bk,execArgv:zk,pid:C4,ppid:w4,execPath:x4,debugPort:E4,hrtime:Dw,argv0:_4,_preload_modules:$4,setSourceMapsEnabled:P4}}),Kt=Fi(()=>{cSe()}),Li={};Rp(Li,{Buffer:()=>c2,INSPECT_MAX_BYTES:()=>xJ,default:()=>Su,kMaxLength:()=>EJ});function uSe(){if(L4)return _m;L4=!0,_m.byteLength=s,_m.toByteArray=c,_m.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(p){var m=a(p),g=m[0],v=m[1];return(g+v)*3/4-v}function l(p,m,g){return(m+g)*3/4-g}function c(p){var m,g=a(p),v=g[0],b=g[1],y=new n(l(p,v,b)),S=0,w=b>0?v-4:v,E;for(E=0;E>16&255,y[S++]=m>>8&255,y[S++]=m&255;return b===2&&(m=t[p.charCodeAt(E)]<<2|t[p.charCodeAt(E+1)]>>4,y[S++]=m&255),b===1&&(m=t[p.charCodeAt(E)]<<10|t[p.charCodeAt(E+1)]<<4|t[p.charCodeAt(E+2)]>>2,y[S++]=m>>8&255,y[S++]=m&255),y}function u(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function f(p,m,g){for(var v,b=[],y=m;yw?w:S+y));return v===1?(m=p[g-1],b.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(p[g-2]<<8)+p[g-1],b.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),b.join("")}return _m}function dSe(){return B4?ly:(B4=!0,ly.read=function(e,t,n,r,o){var i,a,s=o*8-r-1,l=(1<>1,u=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=i*256+e[t+f],f+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=a*256+e[t+f],f+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-c}return(p?-1:1)*a*Math.pow(2,i-r)},ly.write=function(e,t,n,r,o,i){var a,s,l,c=i*8-o-1,u=(1<>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,m=r?1:-1,g=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+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a=a+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=s&255,p+=m,s/=256,o-=8);for(a=a<0;e[n+p]=a&255,p+=m,a/=256,c-=8);e[n+p-m]|=g*128},ly)}function fSe(){if(z4)return Od;z4=!0;let e=uSe(),t=dSe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Od.Buffer=a,Od.SlowBuffer=b,Od.INSPECT_MAX_BYTES=50;let r=2147483647;Od.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=o(),!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 o(){try{let U=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(U,H),U.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 i(U){if(U>r)throw new RangeError('The value "'+U+'" is invalid for option "size"');let H=new Uint8Array(U);return Object.setPrototypeOf(H,a.prototype),H}function a(U,H,q){if(typeof U=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(U)}return s(U,H,q)}a.poolSize=8192;function s(U,H,q){if(typeof U=="string")return f(U,H);if(ArrayBuffer.isView(U))return p(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(ye(U,ArrayBuffer)||U&&ye(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ye(U,SharedArrayBuffer)||U&&ye(U.buffer,SharedArrayBuffer)))return m(U,H,q);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let me=U.valueOf&&U.valueOf();if(me!=null&&me!==U)return a.from(me,H,q);let Ce=g(U);if(Ce)return Ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return a.from(U[Symbol.toPrimitive]("string"),H,q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}a.from=function(U,H,q){return s(U,H,q)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function c(U,H,q){return l(U),U<=0?i(U):H!==void 0?typeof q=="string"?i(U).fill(H,q):i(U).fill(H):i(U)}a.alloc=function(U,H,q){return c(U,H,q)};function u(U){return l(U),i(U<0?0:v(U)|0)}a.allocUnsafe=function(U){return u(U)},a.allocUnsafeSlow=function(U){return u(U)};function f(U,H){if((typeof H!="string"||H==="")&&(H="utf8"),!a.isEncoding(H))throw new TypeError("Unknown encoding: "+H);let q=y(U,H)|0,me=i(q),Ce=me.write(U,H);return Ce!==q&&(me=me.slice(0,Ce)),me}function h(U){let H=U.length<0?0:v(U.length)|0,q=i(H);for(let me=0;me=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return U|0}function b(U){return+U!=U&&(U=0),a.alloc(+U)}a.isBuffer=function(U){return U!=null&&U._isBuffer===!0&&U!==a.prototype},a.compare=function(U,H){if(ye(U,Uint8Array)&&(U=a.from(U,U.offset,U.byteLength)),ye(H,Uint8Array)&&(H=a.from(H,H.offset,H.byteLength)),!a.isBuffer(U)||!a.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===H)return 0;let q=U.length,me=H.length;for(let Ce=0,ue=Math.min(q,me);Ceme.length?(a.isBuffer(ue)||(ue=a.from(ue)),ue.copy(me,Ce)):Uint8Array.prototype.set.call(me,ue,Ce);else if(a.isBuffer(ue))ue.copy(me,Ce);else throw new TypeError('"list" argument must be an Array of Buffers');Ce+=ue.length}return me};function y(U,H){if(a.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||ye(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);let q=U.length,me=arguments.length>2&&arguments[2]===!0;if(!me&&q===0)return 0;let Ce=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return q;case"utf8":case"utf-8":return he(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q*2;case"hex":return q>>>1;case"base64":return Me(U).length;default:if(Ce)return me?-1:he(U).length;H=(""+H).toLowerCase(),Ce=!0}}a.byteLength=y;function S(U,H,q){let me=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((q===void 0||q>this.length)&&(q=this.length),q<=0)||(q>>>=0,H>>>=0,q<=H))return"";for(U||(U="utf8");;)switch(U){case"hex":return F(this,H,q);case"utf8":case"utf-8":return T(this,H,q);case"ascii":return j(this,H,q);case"latin1":case"binary":return k(this,H,q);case"base64":return M(this,H,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,H,q);default:if(me)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),me=!0}}a.prototype._isBuffer=!0;function w(U,H,q){let me=U[H];U[H]=U[q],U[q]=me}a.prototype.swap16=function(){let U=this.length;if(U%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(U+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(U,H,q,me,Ce){if(ye(U,Uint8Array)&&(U=a.from(U,U.offset,U.byteLength)),!a.isBuffer(U))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(H===void 0&&(H=0),q===void 0&&(q=U?U.length:0),me===void 0&&(me=0),Ce===void 0&&(Ce=this.length),H<0||q>U.length||me<0||Ce>this.length)throw new RangeError("out of range index");if(me>=Ce&&H>=q)return 0;if(me>=Ce)return-1;if(H>=q)return 1;if(H>>>=0,q>>>=0,me>>>=0,Ce>>>=0,this===U)return 0;let ue=Ce-me,Le=q-H,He=Math.min(ue,Le),ge=this.slice(me,Ce),De=U.slice(H,q);for(let qe=0;qe2147483647?q=2147483647:q<-2147483648&&(q=-2147483648),q=+q,ve(q)&&(q=Ce?0:U.length-1),q<0&&(q=U.length+q),q>=U.length){if(Ce)return-1;q=U.length-1}else if(q<0)if(Ce)q=0;else return-1;if(typeof H=="string"&&(H=a.from(H,me)),a.isBuffer(H))return H.length===0?-1:C(U,H,q,me,Ce);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?Ce?Uint8Array.prototype.indexOf.call(U,H,q):Uint8Array.prototype.lastIndexOf.call(U,H,q):C(U,[H],q,me,Ce);throw new TypeError("val must be string, number or Buffer")}function C(U,H,q,me,Ce){let ue=1,Le=U.length,He=H.length;if(me!==void 0&&(me=String(me).toLowerCase(),me==="ucs2"||me==="ucs-2"||me==="utf16le"||me==="utf-16le")){if(U.length<2||H.length<2)return-1;ue=2,Le/=2,He/=2,q/=2}function ge(qe,Fe){return ue===1?qe[Fe]:qe.readUInt16BE(Fe*ue)}let De;if(Ce){let qe=-1;for(De=q;DeLe&&(q=Le-He),De=q;De>=0;De--){let qe=!0;for(let Fe=0;FeCe&&(me=Ce)):me=Ce;let ue=H.length;me>ue/2&&(me=ue/2);let Le;for(Le=0;Le>>0,isFinite(q)?(q=q>>>0,me===void 0&&(me="utf8")):(me=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Ce=this.length-H;if((q===void 0||q>Ce)&&(q=Ce),U.length>0&&(q<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");let ue=!1;for(;;)switch(me){case"hex":return x(this,U,H,q);case"utf8":case"utf-8":return _(this,U,H,q);case"ascii":case"latin1":case"binary":return P(this,U,H,q);case"base64":return O(this,U,H,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,U,H,q);default:if(ue)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),ue=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(U,H,q){return H===0&&q===U.length?e.fromByteArray(U):e.fromByteArray(U.slice(H,q))}function T(U,H,q){q=Math.min(U.length,q);let me=[],Ce=H;for(;Ce239?4:ue>223?3:ue>191?2:1;if(Ce+He<=q){let ge,De,qe,Fe;switch(He){case 1:ue<128&&(Le=ue);break;case 2:ge=U[Ce+1],(ge&192)===128&&(Fe=(ue&31)<<6|ge&63,Fe>127&&(Le=Fe));break;case 3:ge=U[Ce+1],De=U[Ce+2],(ge&192)===128&&(De&192)===128&&(Fe=(ue&15)<<12|(ge&63)<<6|De&63,Fe>2047&&(Fe<55296||Fe>57343)&&(Le=Fe));break;case 4:ge=U[Ce+1],De=U[Ce+2],qe=U[Ce+3],(ge&192)===128&&(De&192)===128&&(qe&192)===128&&(Fe=(ue&15)<<18|(ge&63)<<12|(De&63)<<6|qe&63,Fe>65535&&Fe<1114112&&(Le=Fe))}}Le===null?(Le=65533,He=1):Le>65535&&(Le-=65536,me.push(Le>>>10&1023|55296),Le=56320|Le&1023),me.push(Le),Ce+=He}return A(me)}let D=4096;function A(U){let H=U.length;if(H<=D)return String.fromCharCode.apply(String,U);let q="",me=0;for(;meme)&&(q=me);let Ce="";for(let ue=H;ueq&&(U=q),H<0?(H+=q,H<0&&(H=0)):H>q&&(H=q),Hq)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(U,H,q){U=U>>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U],Ce=1,ue=0;for(;++ue>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U+--H],Ce=1;for(;H>0&&(Ce*=256);)me+=this[U+--H]*Ce;return me},a.prototype.readUint8=a.prototype.readUInt8=function(U,H){return U=U>>>0,H||W(U,1,this.length),this[U]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(U,H){return U=U>>>0,H||W(U,2,this.length),this[U]|this[U+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(U,H){return U=U>>>0,H||W(U,2,this.length),this[U]<<8|this[U+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(U,H){return U=U>>>0,H||W(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+this[U+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]*16777216+(this[U+1]<<16|this[U+2]<<8|this[U+3])},a.prototype.readBigUInt64LE=Pe(function(U){U=U>>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=H+this[++U]*2**8+this[++U]*2**16+this[++U]*2**24,Ce=this[++U]+this[++U]*2**8+this[++U]*2**16+q*2**24;return BigInt(me)+(BigInt(Ce)<>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=H*2**24+this[++U]*2**16+this[++U]*2**8+this[++U],Ce=this[++U]*2**24+this[++U]*2**16+this[++U]*2**8+q;return(BigInt(me)<>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U],Ce=1,ue=0;for(;++ue=Ce&&(me-=Math.pow(2,8*H)),me},a.prototype.readIntBE=function(U,H,q){U=U>>>0,H=H>>>0,q||W(U,H,this.length);let me=H,Ce=1,ue=this[U+--me];for(;me>0&&(Ce*=256);)ue+=this[U+--me]*Ce;return Ce*=128,ue>=Ce&&(ue-=Math.pow(2,8*H)),ue},a.prototype.readInt8=function(U,H){return U=U>>>0,H||W(U,1,this.length),this[U]&128?(255-this[U]+1)*-1:this[U]},a.prototype.readInt16LE=function(U,H){U=U>>>0,H||W(U,2,this.length);let q=this[U]|this[U+1]<<8;return q&32768?q|4294901760:q},a.prototype.readInt16BE=function(U,H){U=U>>>0,H||W(U,2,this.length);let q=this[U+1]|this[U]<<8;return q&32768?q|4294901760:q},a.prototype.readInt32LE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},a.prototype.readInt32BE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},a.prototype.readBigInt64LE=Pe(function(U){U=U>>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=this[U+4]+this[U+5]*2**8+this[U+6]*2**16+(q<<24);return(BigInt(me)<>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=(H<<24)+this[++U]*2**16+this[++U]*2**8+this[++U];return(BigInt(me)<>>0,H||W(U,4,this.length),t.read(this,U,!0,23,4)},a.prototype.readFloatBE=function(U,H){return U=U>>>0,H||W(U,4,this.length),t.read(this,U,!1,23,4)},a.prototype.readDoubleLE=function(U,H){return U=U>>>0,H||W(U,8,this.length),t.read(this,U,!0,52,8)},a.prototype.readDoubleBE=function(U,H){return U=U>>>0,H||W(U,8,this.length),t.read(this,U,!1,52,8)};function K(U,H,q,me,Ce,ue){if(!a.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>Ce||HU.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(U,H,q,me){if(U=+U,H=H>>>0,q=q>>>0,!me){let Le=Math.pow(2,8*q)-1;K(this,U,H,q,Le,0)}let Ce=1,ue=0;for(this[H]=U&255;++ue>>0,q=q>>>0,!me){let Le=Math.pow(2,8*q)-1;K(this,U,H,q,Le,0)}let Ce=q-1,ue=1;for(this[H+Ce]=U&255;--Ce>=0&&(ue*=256);)this[H+Ce]=U/ue&255;return H+q},a.prototype.writeUint8=a.prototype.writeUInt8=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,1,255,0),this[H]=U&255,H+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,65535,0),this[H]=U&255,this[H+1]=U>>>8,H+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,65535,0),this[H]=U>>>8,this[H+1]=U&255,H+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,4294967295,0),this[H+3]=U>>>24,this[H+2]=U>>>16,this[H+1]=U>>>8,this[H]=U&255,H+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,4294967295,0),this[H]=U>>>24,this[H+1]=U>>>16,this[H+2]=U>>>8,this[H+3]=U&255,H+4};function L(U,H,q,me,Ce){ce(H,me,Ce,U,q,7);let ue=Number(H&BigInt(4294967295));U[q++]=ue,ue=ue>>8,U[q++]=ue,ue=ue>>8,U[q++]=ue,ue=ue>>8,U[q++]=ue;let Le=Number(H>>BigInt(32)&BigInt(4294967295));return U[q++]=Le,Le=Le>>8,U[q++]=Le,Le=Le>>8,U[q++]=Le,Le=Le>>8,U[q++]=Le,q}function Q(U,H,q,me,Ce){ce(H,me,Ce,U,q,7);let ue=Number(H&BigInt(4294967295));U[q+7]=ue,ue=ue>>8,U[q+6]=ue,ue=ue>>8,U[q+5]=ue,ue=ue>>8,U[q+4]=ue;let Le=Number(H>>BigInt(32)&BigInt(4294967295));return U[q+3]=Le,Le=Le>>8,U[q+2]=Le,Le=Le>>8,U[q+1]=Le,Le=Le>>8,U[q]=Le,q+8}a.prototype.writeBigUInt64LE=Pe(function(U,H=0){return L(this,U,H,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Pe(function(U,H=0){return Q(this,U,H,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(U,H,q,me){if(U=+U,H=H>>>0,!me){let He=Math.pow(2,8*q-1);K(this,U,H,q,He-1,-He)}let Ce=0,ue=1,Le=0;for(this[H]=U&255;++Ce>0)-Le&255;return H+q},a.prototype.writeIntBE=function(U,H,q,me){if(U=+U,H=H>>>0,!me){let He=Math.pow(2,8*q-1);K(this,U,H,q,He-1,-He)}let Ce=q-1,ue=1,Le=0;for(this[H+Ce]=U&255;--Ce>=0&&(ue*=256);)U<0&&Le===0&&this[H+Ce+1]!==0&&(Le=1),this[H+Ce]=(U/ue>>0)-Le&255;return H+q},a.prototype.writeInt8=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,1,127,-128),U<0&&(U=255+U+1),this[H]=U&255,H+1},a.prototype.writeInt16LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,32767,-32768),this[H]=U&255,this[H+1]=U>>>8,H+2},a.prototype.writeInt16BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,32767,-32768),this[H]=U>>>8,this[H+1]=U&255,H+2},a.prototype.writeInt32LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,2147483647,-2147483648),this[H]=U&255,this[H+1]=U>>>8,this[H+2]=U>>>16,this[H+3]=U>>>24,H+4},a.prototype.writeInt32BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),this[H]=U>>>24,this[H+1]=U>>>16,this[H+2]=U>>>8,this[H+3]=U&255,H+4},a.prototype.writeBigInt64LE=Pe(function(U,H=0){return L(this,U,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Pe(function(U,H=0){return Q(this,U,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ee(U,H,q,me,Ce,ue){if(q+me>U.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("Index out of range")}function re(U,H,q,me,Ce){return H=+H,q=q>>>0,Ce||ee(U,H,q,4),t.write(U,H,q,me,23,4),q+4}a.prototype.writeFloatLE=function(U,H,q){return re(this,U,H,!0,q)},a.prototype.writeFloatBE=function(U,H,q){return re(this,U,H,!1,q)};function ie(U,H,q,me,Ce){return H=+H,q=q>>>0,Ce||ee(U,H,q,8),t.write(U,H,q,me,52,8),q+8}a.prototype.writeDoubleLE=function(U,H,q){return ie(this,U,H,!0,q)},a.prototype.writeDoubleBE=function(U,H,q){return ie(this,U,H,!1,q)},a.prototype.copy=function(U,H,q,me){if(!a.isBuffer(U))throw new TypeError("argument should be a Buffer");if(q||(q=0),!me&&me!==0&&(me=this.length),H>=U.length&&(H=U.length),H||(H=0),me>0&&me=this.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),U.length-H>>0,q=q===void 0?this.length:q>>>0,U||(U=0);let Ce;if(typeof U=="number")for(Ce=H;Ce2**32?Ce=ne(String(q)):typeof q=="bigint"&&(Ce=String(q),(q>BigInt(2)**BigInt(32)||q<-(BigInt(2)**BigInt(32)))&&(Ce=ne(Ce)),Ce+="n"),me+=` It must be ${H}. Received ${Ce}`,me},RangeError);function ne(U){let H="",q=U.length,me=U[0]==="-"?1:0;for(;q>=me+4;q-=3)H=`_${U.slice(q-3,q)}${H}`;return`${U.slice(0,q)}${H}`}function le(U,H,q){oe(H,"offset"),(U[H]===void 0||U[H+q]===void 0)&&se(H,U.length-(q+1))}function ce(U,H,q,me,Ce,ue){if(U>q||U= 0${Le} and < 2${Le} ** ${(ue+1)*8}${Le}`:He=`>= -(2${Le} ** ${(ue+1)*8-1}${Le}) and < 2 ** ${(ue+1)*8-1}${Le}`,new G.ERR_OUT_OF_RANGE("value",He,U)}le(me,Ce,ue)}function oe(U,H){if(typeof U!="number")throw new G.ERR_INVALID_ARG_TYPE(H,"number",U)}function se(U,H,q){throw Math.floor(U)!==U?(oe(U,q),new G.ERR_OUT_OF_RANGE("offset","an integer",U)):H<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,U)}let fe=/[^+/0-9A-Za-z-_]/g;function te(U){if(U=U.split("=")[0],U=U.trim().replace(fe,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function he(U,H){H=H||1/0;let q,me=U.length,Ce=null,ue=[];for(let Le=0;Le55295&&q<57344){if(!Ce){if(q>56319){(H-=3)>-1&&ue.push(239,191,189);continue}else if(Le+1===me){(H-=3)>-1&&ue.push(239,191,189);continue}Ce=q;continue}if(q<56320){(H-=3)>-1&&ue.push(239,191,189),Ce=q;continue}q=(Ce-55296<<10|q-56320)+65536}else Ce&&(H-=3)>-1&&ue.push(239,191,189);if(Ce=null,q<128){if((H-=1)<0)break;ue.push(q)}else if(q<2048){if((H-=2)<0)break;ue.push(q>>6|192,q&63|128)}else if(q<65536){if((H-=3)<0)break;ue.push(q>>12|224,q>>6&63|128,q&63|128)}else if(q<1114112){if((H-=4)<0)break;ue.push(q>>18|240,q>>12&63|128,q>>6&63|128,q&63|128)}else throw new Error("Invalid code point")}return ue}function pe(U){let H=[];for(let q=0;q>8,Ce=q%256,ue.push(Ce),ue.push(me);return ue}function Me(U){return e.toByteArray(te(U))}function Se(U,H,q,me){let Ce;for(Ce=0;Ce=H.length||Ce>=U.length);++Ce)H[Ce+q]=U[Ce];return Ce}function ye(U,H){return U instanceof H||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===H.name}function ve(U){return U!==U}let be=function(){let U="0123456789abcdef",H=new Array(256);for(let q=0;q<16;++q){let me=q*16;for(let Ce=0;Ce<16;++Ce)H[me+Ce]=U[q]+U[Ce]}return H}();function Pe(U){return typeof BigInt>"u"?Ne:U}function Ne(){throw new Error("BigInt not supported")}return Od}var _m,L4,ly,B4,Od,z4,Su,c2,xJ,EJ,Bi=Fi(()=>{Vt(),qt(),Kt(),_m={},L4=!1,ly={},B4=!1,Od={},z4=!1,Su=fSe(),Su.Buffer,Su.SlowBuffer,Su.INSPECT_MAX_BYTES,Su.kMaxLength,c2=Su.Buffer,xJ=Su.INSPECT_MAX_BYTES,EJ=Su.kMaxLength}),qt=Fi(()=>{Bi()}),hSe=Zt(e=>{Vt(),qt(),Kt(),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}),gi=Zt((e,t)=>{Vt(),qt(),Kt(),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,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},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,o){return Object.defineProperty(n,r,o)},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,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},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,o){return n.set(r,o)},Uint8Array}}),Xu=Zt((e,t)=>{Vt(),qt(),Kt();var n=(Bi(),Qr(Li)),r=Object.getPrototypeOf(async function(){}).constructor,o=globalThis.Blob||n.Blob,i=typeof o<"u"?function(s){return s instanceof o}: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=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...f)=>u?c(u):l(...f))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let f=l.shift();return u==="f"?f.toFixed(6):u==="j"?JSON.stringify(f):u==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.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:i},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),b5=Zt((e,t)=>{Vt(),qt(),Kt();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}),Ga=Zt((e,t)=>{Vt(),qt(),Kt();var{format:n,inspect:r,AggregateError:o}=Xu(),i=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function f(y,S){if(!y)throw new u.ERR_INTERNAL_ASSERTION(S)}function h(y){let S="",w=y.length,E=y[0]==="-"?1:0;for(;w>=E+4;w-=3)S=`_${y.slice(w-3,w)}${S}`;return`${y.slice(0,w)}${S}`}function p(y,S,w){if(typeof S=="function")return f(S.length<=w.length,`Code: ${y}; The provided arguments length (${w.length}) does not match the required ones (${S.length}).`),S(...w);let E=(S.match(/%[dfijoOs]/g)||[]).length;return f(E===w.length,`Code: ${y}; The provided arguments length (${w.length}) does not match the required ones (${E}).`),w.length===0?S:n(S,...w)}function m(y,S,w){w||(w=Error);class E extends w{constructor(...x){super(p(y,S,x))}toString(){return`${this.name} [${y}]: ${this.message}`}}Object.defineProperties(E.prototype,{name:{value:w.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${y}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),E.prototype.code=y,E.prototype[a]=!0,u[y]=E}function g(y){let S=c+y.name;return Object.defineProperty(y,"name",{value:S}),y}function v(y,S){if(y&&S&&y!==S){if(Array.isArray(S.errors))return S.errors.push(y),S;let w=new i([S,y],S.message);return w.code=S.code,w}return y||S}var b=class extends Error{constructor(y="The operation was aborted",S=void 0){if(S!==void 0&&typeof S!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",S);super(y,S),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(y,S,w)=>{f(typeof y=="string","'name' must be a string"),Array.isArray(S)||(S=[S]);let E="The ";y.endsWith(" argument")?E+=`${y} `:E+=`"${y}" ${y.includes(".")?"property":"argument"} `,E+="must be ";let C=[],x=[],_=[];for(let O of S)f(typeof O=="string","All expected entries have to be of type string"),s.includes(O)?C.push(O.toLowerCase()):l.test(O)?x.push(O):(f(O!=="object",'The value "object" should be written as "Object"'),_.push(O));if(x.length>0){let O=C.indexOf("object");O!==-1&&(C.splice(C,O,1),x.push("Object"))}if(C.length>0){switch(C.length){case 1:E+=`of type ${C[0]}`;break;case 2:E+=`one of type ${C[0]} or ${C[1]}`;break;default:{let O=C.pop();E+=`one of type ${C.join(", ")}, or ${O}`}}(x.length>0||_.length>0)&&(E+=" or ")}if(x.length>0){switch(x.length){case 1:E+=`an instance of ${x[0]}`;break;case 2:E+=`an instance of ${x[0]} or ${x[1]}`;break;default:{let O=x.pop();E+=`an instance of ${x.join(", ")}, or ${O}`}}_.length>0&&(E+=" or ")}switch(_.length){case 0:break;case 1:_[0].toLowerCase()!==_[0]&&(E+="an "),E+=`${_[0]}`;break;case 2:E+=`one of ${_[0]} or ${_[1]}`;break;default:{let O=_.pop();E+=`one of ${_.join(", ")}, or ${O}`}}if(w==null)E+=`. Received ${w}`;else if(typeof w=="function"&&w.name)E+=`. Received function ${w.name}`;else if(typeof w=="object"){var P;if((P=w.constructor)!==null&&P!==void 0&&P.name)E+=`. Received an instance of ${w.constructor.name}`;else{let O=r(w,{depth:-1});E+=`. Received ${O}`}}else{let O=r(w,{colors:!1});O.length>25&&(O=`${O.slice(0,25)}...`),E+=`. Received type ${typeof w} (${O})`}return E},TypeError),m("ERR_INVALID_ARG_VALUE",(y,S,w="is invalid")=>{let E=r(S);return E.length>128&&(E=E.slice(0,128)+"..."),`The ${y.includes(".")?"property":"argument"} '${y}' ${w}. Received ${E}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(y,S,w)=>{var E;let C=w!=null&&(E=w.constructor)!==null&&E!==void 0&&E.name?`instance of ${w.constructor.name}`:`type ${typeof w}`;return`Expected ${y} to be returned from the "${S}" function but got ${C}.`},TypeError),m("ERR_MISSING_ARGS",(...y)=>{f(y.length>0,"At least one arg needs to be specified");let S,w=y.length;switch(y=(Array.isArray(y)?y:[y]).map(E=>`"${E}"`).join(" or "),w){case 1:S+=`The ${y[0]} argument`;break;case 2:S+=`The ${y[0]} and ${y[1]} arguments`;break;default:{let E=y.pop();S+=`The ${y.join(", ")}, and ${E} arguments`}break}return`${S} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(y,S,w)=>{f(S,'Missing "range" argument');let E;return Number.isInteger(w)&&Math.abs(w)>2**32?E=h(String(w)):typeof w=="bigint"?(E=String(w),(w>2n**32n||w<-(2n**32n))&&(E=h(E)),E+="n"):E=r(w),`The value of "${y}" is out of range. It must be ${S}. Received ${E}`},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:b,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),I_=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:o,ArrayPrototypeMap:i,NumberIsInteger:a,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=gi(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:S,ERR_OUT_OF_RANGE:w,ERR_UNKNOWN_SIGNAL:E}}=Ga(),{normalizeEncoding:C}=Xu(),{isAsyncFunction:x,isArrayBufferView:_}=Xu().types,P={};function O(Se){return Se===(Se|0)}function I(Se){return Se===Se>>>0}var M=/^[0-7]+$/,T="must be a 32-bit unsigned integer or an octal string";function D(Se,ye,ve){if(typeof Se>"u"&&(Se=ve),typeof Se=="string"){if(h(M,Se)===null)throw new S(ye,Se,T);Se=u(Se,8)}return k(Se,ye),Se}var A=v((Se,ye,ve=c,be=l)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);if(Sebe)throw new w(ye,`>= ${ve} && <= ${be}`,Se)}),j=v((Se,ye,ve=-2147483648,be=2147483647)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);if(Sebe)throw new w(ye,`>= ${ve} && <= ${be}`,Se)}),k=v((Se,ye,ve=!1)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);let be=ve?1:0,Pe=4294967295;if(SePe)throw new w(ye,`>= ${be} && <= ${Pe}`,Se)});function F(Se,ye){if(typeof Se!="string")throw new y(ye,"string",Se)}function V(Se,ye,ve=void 0,be){if(typeof Se!="number")throw new y(ye,"number",Se);if(ve!=null&&Sebe||(ve!=null||be!=null)&&s(Se))throw new w(ye,`${ve!=null?`>= ${ve}`:""}${ve!=null&&be!=null?" && ":""}${be!=null?`<= ${be}`:""}`,Se)}var W=v((Se,ye,ve)=>{if(!r(ve,Se)){let be="must be one of: "+o(i(ve,Pe=>typeof Pe=="string"?`'${Pe}'`:p(Pe)),", ");throw new S(ye,Se,be)}});function K(Se,ye){if(typeof Se!="boolean")throw new y(ye,"boolean",Se)}function L(Se,ye,ve){return Se==null||!f(Se,ye)?ve:Se[ye]}var Q=v((Se,ye,ve=null)=>{let be=L(ve,"allowArray",!1),Pe=L(ve,"allowFunction",!1);if(!L(ve,"nullable",!1)&&Se===null||!be&&n(Se)||typeof Se!="object"&&(!Pe||typeof Se!="function"))throw new y(ye,"Object",Se)}),ee=v((Se,ye)=>{if(Se!=null&&typeof Se!="object"&&typeof Se!="function")throw new y(ye,"a dictionary",Se)}),re=v((Se,ye,ve=0)=>{if(!n(Se))throw new y(ye,"Array",Se);if(Se.length{if(!_(Se))throw new y(ye,["Buffer","TypedArray","DataView"],Se)});function le(Se,ye){let ve=C(ye),be=Se.length;if(ve==="hex"&&be%2!==0)throw new S("encoding",ye,`is invalid for data of length ${be}`)}function ce(Se,ye="Port",ve=!0){if(typeof Se!="number"&&typeof Se!="string"||typeof Se=="string"&&g(Se).length===0||+Se!==+Se>>>0||Se>65535||Se===0&&!ve)throw new b(ye,Se,ve);return Se|0}var oe=v((Se,ye)=>{if(Se!==void 0&&(Se===null||typeof Se!="object"||!("aborted"in Se)))throw new y(ye,"AbortSignal",Se)}),se=v((Se,ye)=>{if(typeof Se!="function")throw new y(ye,"Function",Se)}),fe=v((Se,ye)=>{if(typeof Se!="function"||x(Se))throw new y(ye,"Function",Se)}),te=v((Se,ye)=>{if(Se!==void 0)throw new y(ye,"undefined",Se)});function he(Se,ye,ve){if(!r(ve,Se))throw new y(ye,`('${o(ve,"|")}')`,Se)}var pe=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Oe(Se,ye){if(typeof Se>"u"||!h(pe,Se))throw new S(ye,Se,'must be an array or string of format "; rel=preload; as=style"')}function Me(Se){if(typeof Se=="string")return Oe(Se,"hints"),Se;if(n(Se)){let ye=Se.length,ve="";if(ye===0)return ve;for(let be=0;be; rel=preload; as=style"')}t.exports={isInt32:O,isUint32:I,parseFileMode:D,validateArray:re,validateStringArray:ie,validateBooleanArray:G,validateBoolean:K,validateBuffer:ne,validateDictionary:ee,validateEncoding:le,validateFunction:se,validateInt32:j,validateInteger:A,validateNumber:V,validateObject:Q,validateOneOf:W,validatePlainFunction:fe,validatePort:ce,validateSignalName:X,validateString:F,validateUint32:k,validateUndefined:te,validateUnion:he,validateAbortSignal:oe,validateLinkHeaderValue:Me}}),Ip=Zt((e,t)=>{Vt(),qt(),Kt();var n=t.exports={},r,o;function i(){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=i}catch{r=i}try{typeof clearTimeout=="function"?o=clearTimeout:o=a}catch{o=a}})();function s(b){if(r===setTimeout)return setTimeout(b,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(b,0);try{return r(b,0)}catch{try{return r.call(null,b,0)}catch{return r.call(this,b,0)}}}function l(b){if(o===clearTimeout)return clearTimeout(b);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(b);try{return o(b)}catch{try{return o.call(null,b)}catch{return o.call(this,b)}}}var c=[],u=!1,f,h=-1;function p(){!u||!f||(u=!1,f.length?c=f.concat(c):h=-1,c.length&&m())}function m(){if(!u){var b=s(p);u=!0;for(var y=c.length;y;){for(f=c,c=[];++h1)for(var S=1;S{Vt(),qt(),Kt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:o,SymbolFor:i}=gi(),a=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=i("nodejs.webstream.isClosedPromise"),f=i("nodejs.webstream.controllerErrorFunction");function h(L,Q=!1){var ee;return!!(L&&typeof L.pipe=="function"&&typeof L.on=="function"&&(!Q||typeof L.pause=="function"&&typeof L.resume=="function")&&(!L._writableState||((ee=L._readableState)===null||ee===void 0?void 0:ee.readable)!==!1)&&(!L._writableState||L._readableState))}function p(L){var Q;return!!(L&&typeof L.write=="function"&&typeof L.on=="function"&&(!L._readableState||((Q=L._writableState)===null||Q===void 0?void 0:Q.writable)!==!1))}function m(L){return!!(L&&typeof L.pipe=="function"&&L._readableState&&typeof L.on=="function"&&typeof L.write=="function")}function g(L){return L&&(L._readableState||L._writableState||typeof L.write=="function"&&typeof L.on=="function"||typeof L.pipe=="function"&&typeof L.on=="function")}function v(L){return!!(L&&!g(L)&&typeof L.pipeThrough=="function"&&typeof L.getReader=="function"&&typeof L.cancel=="function")}function b(L){return!!(L&&!g(L)&&typeof L.getWriter=="function"&&typeof L.abort=="function")}function y(L){return!!(L&&!g(L)&&typeof L.readable=="object"&&typeof L.writable=="object")}function S(L){return v(L)||b(L)||y(L)}function w(L,Q){return L==null?!1:Q===!0?typeof L[r]=="function":Q===!1?typeof L[o]=="function":typeof L[r]=="function"||typeof L[o]=="function"}function E(L){if(!g(L))return null;let Q=L._writableState,ee=L._readableState,re=Q||ee;return!!(L.destroyed||L[a]||re!=null&&re.destroyed)}function C(L){if(!p(L))return null;if(L.writableEnded===!0)return!0;let Q=L._writableState;return Q!=null&&Q.errored?!1:typeof(Q==null?void 0:Q.ended)!="boolean"?null:Q.ended}function x(L,Q){if(!p(L))return null;if(L.writableFinished===!0)return!0;let ee=L._writableState;return ee!=null&&ee.errored?!1:typeof(ee==null?void 0:ee.finished)!="boolean"?null:!!(ee.finished||Q===!1&&ee.ended===!0&&ee.length===0)}function _(L){if(!h(L))return null;if(L.readableEnded===!0)return!0;let Q=L._readableState;return!Q||Q.errored?!1:typeof(Q==null?void 0:Q.ended)!="boolean"?null:Q.ended}function P(L,Q){if(!h(L))return null;let ee=L._readableState;return ee!=null&&ee.errored?!1:typeof(ee==null?void 0:ee.endEmitted)!="boolean"?null:!!(ee.endEmitted||Q===!1&&ee.ended===!0&&ee.length===0)}function O(L){return L&&L[l]!=null?L[l]:typeof(L==null?void 0:L.readable)!="boolean"?null:E(L)?!1:h(L)&&L.readable&&!P(L)}function I(L){return typeof(L==null?void 0:L.writable)!="boolean"?null:E(L)?!1:p(L)&&L.writable&&!C(L)}function M(L,Q){return g(L)?E(L)?!0:!((Q==null?void 0:Q.readable)!==!1&&O(L)||(Q==null?void 0:Q.writable)!==!1&&I(L)):null}function T(L){var Q,ee;return g(L)?L.writableErrored?L.writableErrored:(Q=(ee=L._writableState)===null||ee===void 0?void 0:ee.errored)!==null&&Q!==void 0?Q:null:null}function D(L){var Q,ee;return g(L)?L.readableErrored?L.readableErrored:(Q=(ee=L._readableState)===null||ee===void 0?void 0:ee.errored)!==null&&Q!==void 0?Q:null:null}function A(L){if(!g(L))return null;if(typeof L.closed=="boolean")return L.closed;let Q=L._writableState,ee=L._readableState;return typeof(Q==null?void 0:Q.closed)=="boolean"||typeof(ee==null?void 0:ee.closed)=="boolean"?(Q==null?void 0:Q.closed)||(ee==null?void 0:ee.closed):typeof L._closed=="boolean"&&j(L)?L._closed:null}function j(L){return typeof L._closed=="boolean"&&typeof L._defaultKeepAlive=="boolean"&&typeof L._removedConnection=="boolean"&&typeof L._removedContLen=="boolean"}function k(L){return typeof L._sent100=="boolean"&&j(L)}function F(L){var Q;return typeof L._consuming=="boolean"&&typeof L._dumped=="boolean"&&((Q=L.req)===null||Q===void 0?void 0:Q.upgradeOrConnect)===void 0}function V(L){if(!g(L))return null;let Q=L._writableState,ee=L._readableState,re=Q||ee;return!re&&k(L)||!!(re&&re.autoDestroy&&re.emitClose&&re.closed===!1)}function W(L){var Q;return!!(L&&((Q=L[c])!==null&&Q!==void 0?Q:L.readableDidRead||L.readableAborted))}function K(L){var Q,ee,re,ie,G,X,ne,le,ce,oe;return!!(L&&((Q=(ee=(re=(ie=(G=(X=L[s])!==null&&X!==void 0?X:L.readableErrored)!==null&&G!==void 0?G:L.writableErrored)!==null&&ie!==void 0?ie:(ne=L._readableState)===null||ne===void 0?void 0:ne.errorEmitted)!==null&&re!==void 0?re:(le=L._writableState)===null||le===void 0?void 0:le.errorEmitted)!==null&&ee!==void 0?ee:(ce=L._readableState)===null||ce===void 0?void 0:ce.errored)!==null&&Q!==void 0?Q:!((oe=L._writableState)===null||oe===void 0)&&oe.errored))}t.exports={kDestroyed:a,isDisturbed:W,kIsDisturbed:c,isErrored:K,kIsErrored:s,isReadable:O,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:A,isDestroyed:E,isDuplexNodeStream:m,isFinished:M,isIterable:w,isReadableNodeStream:h,isReadableStream:v,isReadableEnded:_,isReadableFinished:P,isReadableErrored:D,isNodeStream:g,isWebStream:S,isWritable:I,isWritableNodeStream:p,isWritableStream:b,isWritableEnded:C,isWritableFinished:x,isWritableErrored:T,isServerRequest:F,isServerResponse:k,willEmitClose:V,isTransformStream:y}}),Nf=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{AbortError:r,codes:o}=Ga(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:s,once:l}=Xu(),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:h}=I_(),{Promise:p,PromisePrototypeThen:m}=gi(),{isClosed:g,isReadable:v,isReadableNodeStream:b,isReadableStream:y,isReadableFinished:S,isReadableErrored:w,isWritable:E,isWritableNodeStream:C,isWritableStream:x,isWritableFinished:_,isWritableErrored:P,isNodeStream:O,willEmitClose:I,kIsClosedPromise:M}=ld();function T(F){return F.setHeader&&typeof F.abort=="function"}var D=()=>{};function A(F,V,W){var K,L;if(arguments.length===2?(W=V,V=s):V==null?V=s:f(V,"options"),u(W,"callback"),c(V.signal,"options.signal"),W=l(W),y(F)||x(F))return j(F,V,W);if(!O(F))throw new i("stream",["ReadableStream","WritableStream","Stream"],F);let Q=(K=V.readable)!==null&&K!==void 0?K:b(F),ee=(L=V.writable)!==null&&L!==void 0?L:C(F),re=F._writableState,ie=F._readableState,G=()=>{F.writable||le()},X=I(F)&&b(F)===Q&&C(F)===ee,ne=_(F,!1),le=()=>{ne=!0,F.destroyed&&(X=!1),!(X&&(!F.readable||Q))&&(!Q||ce)&&W.call(F)},ce=S(F,!1),oe=()=>{ce=!0,F.destroyed&&(X=!1),!(X&&(!F.writable||ee))&&(!ee||ne)&&W.call(F)},se=Me=>{W.call(F,Me)},fe=g(F),te=()=>{fe=!0;let Me=P(F)||w(F);if(Me&&typeof Me!="boolean")return W.call(F,Me);if(Q&&!ce&&b(F,!0)&&!S(F,!1))return W.call(F,new a);if(ee&&!ne&&!_(F,!1))return W.call(F,new a);W.call(F)},he=()=>{fe=!0;let Me=P(F)||w(F);if(Me&&typeof Me!="boolean")return W.call(F,Me);W.call(F)},pe=()=>{F.req.on("finish",le)};T(F)?(F.on("complete",le),X||F.on("abort",te),F.req?pe():F.on("request",pe)):ee&&!re&&(F.on("end",G),F.on("close",G)),!X&&typeof F.aborted=="boolean"&&F.on("aborted",te),F.on("end",oe),F.on("finish",le),V.error!==!1&&F.on("error",se),F.on("close",te),fe?n.nextTick(te):re!=null&&re.errorEmitted||ie!=null&&ie.errorEmitted?X||n.nextTick(he):(!Q&&(!X||v(F))&&(ne||E(F)===!1)||!ee&&(!X||E(F))&&(ce||v(F)===!1)||ie&&F.req&&F.aborted)&&n.nextTick(he);let Oe=()=>{W=D,F.removeListener("aborted",te),F.removeListener("complete",le),F.removeListener("abort",te),F.removeListener("request",pe),F.req&&F.req.removeListener("finish",le),F.removeListener("end",G),F.removeListener("close",G),F.removeListener("finish",le),F.removeListener("end",oe),F.removeListener("error",se),F.removeListener("close",te)};if(V.signal&&!fe){let Me=()=>{let Se=W;Oe(),Se.call(F,new r(void 0,{cause:V.signal.reason}))};if(V.signal.aborted)n.nextTick(Me);else{let Se=W;W=l((...ye)=>{V.signal.removeEventListener("abort",Me),Se.apply(F,ye)}),V.signal.addEventListener("abort",Me)}}return Oe}function j(F,V,W){let K=!1,L=D;if(V.signal)if(L=()=>{K=!0,W.call(F,new r(void 0,{cause:V.signal.reason}))},V.signal.aborted)n.nextTick(L);else{let ee=W;W=l((...re)=>{V.signal.removeEventListener("abort",L),ee.apply(F,re)}),V.signal.addEventListener("abort",L)}let Q=(...ee)=>{K||n.nextTick(()=>W.apply(F,ee))};return m(F[M].promise,Q,Q),D}function k(F,V){var W;let K=!1;return V===null&&(V=s),(W=V)!==null&&W!==void 0&&W.cleanup&&(h(V.cleanup,"cleanup"),K=V.cleanup),new p((L,Q)=>{let ee=A(F,V,re=>{K&&ee(),re?Q(re):L()})})}t.exports=A,t.exports.finished=k}),yv=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:i}=Ga(),{Symbol:a}=gi(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=ld(),f=a("kDestroy"),h=a("kConstruct");function p(M,T,D){M&&(M.stack,T&&!T.errored&&(T.errored=M),D&&!D.errored&&(D.errored=M))}function m(M,T){let D=this._readableState,A=this._writableState,j=A||D;return A!=null&&A.destroyed||D!=null&&D.destroyed?(typeof T=="function"&&T(),this):(p(M,A,D),A&&(A.destroyed=!0),D&&(D.destroyed=!0),j.constructed?g(this,M,T):this.once(f,function(k){g(this,r(k,M),T)}),this)}function g(M,T,D){let A=!1;function j(k){if(A)return;A=!0;let F=M._readableState,V=M._writableState;p(k,V,F),V&&(V.closed=!0),F&&(F.closed=!0),typeof D=="function"&&D(k),k?n.nextTick(v,M,k):n.nextTick(b,M)}try{M._destroy(T||null,j)}catch(k){j(k)}}function v(M,T){y(M,T),b(M)}function b(M){let T=M._readableState,D=M._writableState;D&&(D.closeEmitted=!0),T&&(T.closeEmitted=!0),(D!=null&&D.emitClose||T!=null&&T.emitClose)&&M.emit("close")}function y(M,T){let D=M._readableState,A=M._writableState;A!=null&&A.errorEmitted||D!=null&&D.errorEmitted||(A&&(A.errorEmitted=!0),D&&(D.errorEmitted=!0),M.emit("error",T))}function S(){let M=this._readableState,T=this._writableState;M&&(M.constructed=!0,M.closed=!1,M.closeEmitted=!1,M.destroyed=!1,M.errored=null,M.errorEmitted=!1,M.reading=!1,M.ended=M.readable===!1,M.endEmitted=M.readable===!1),T&&(T.constructed=!0,T.destroyed=!1,T.closed=!1,T.closeEmitted=!1,T.errored=null,T.errorEmitted=!1,T.finalCalled=!1,T.prefinished=!1,T.ended=T.writable===!1,T.ending=T.writable===!1,T.finished=T.writable===!1)}function w(M,T,D){let A=M._readableState,j=M._writableState;if(j!=null&&j.destroyed||A!=null&&A.destroyed)return this;A!=null&&A.autoDestroy||j!=null&&j.autoDestroy?M.destroy(T):T&&(T.stack,j&&!j.errored&&(j.errored=T),A&&!A.errored&&(A.errored=T),D?n.nextTick(y,M,T):y(M,T))}function E(M,T){if(typeof M._construct!="function")return;let D=M._readableState,A=M._writableState;D&&(D.constructed=!1),A&&(A.constructed=!1),M.once(h,T),!(M.listenerCount(h)>1)&&n.nextTick(C,M)}function C(M){let T=!1;function D(A){if(T){w(M,A??new o);return}T=!0;let j=M._readableState,k=M._writableState,F=k||j;j&&(j.constructed=!0),k&&(k.constructed=!0),F.destroyed?M.emit(f,A):A?w(M,A,!0):n.nextTick(x,M)}try{M._construct(A=>{n.nextTick(D,A)})}catch(A){n.nextTick(D,A)}}function x(M){M.emit(h)}function _(M){return(M==null?void 0:M.setHeader)&&typeof M.abort=="function"}function P(M){M.emit("close")}function O(M,T){M.emit("error",T),n.nextTick(P,M)}function I(M,T){!M||l(M)||(!T&&!c(M)&&(T=new i),u(M)?(M.socket=null,M.destroy(T)):_(M)?M.abort():_(M.req)?M.req.abort():typeof M.destroy=="function"?M.destroy(T):typeof M.close=="function"?M.close():T?n.nextTick(O,M,T):n.nextTick(P,M),M.destroyed||(M[s]=!0))}t.exports={construct:E,destroyer:I,destroy:m,undestroy:S,errorOrDestroy:w}});function Vr(){Vr.init.call(this)}function Fw(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _J(e){return e._maxListeners===void 0?Vr.defaultMaxListeners:e._maxListeners}function yB(e,t,n,r){var o,i,a,s;if(Fw(n),(i=e._events)===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=_J(e))>0&&a.length>o&&!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 pSe(){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 bB(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=pSe.bind(r);return o.listener=n,r.wrapFn=o,o}function SB(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?function(i){for(var a=new Array(i.length),s=0;s{Vt(),qt(),Kt(),Xf=typeof Reflect=="object"?Reflect:null,QM=Xf&&typeof Xf.apply=="function"?Xf.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},xB=Xf&&typeof Xf.ownKeys=="function"?Xf.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},JM=Number.isNaN||function(e){return e!=e},wB=Vr,Vr.EventEmitter=Vr,Vr.prototype._events=void 0,Vr.prototype._eventsCount=0,Vr.prototype._maxListeners=void 0,ZM=10,Object.defineProperty(Vr,"defaultMaxListeners",{enumerable:!0,get:function(){return ZM},set:function(e){if(typeof e!="number"||e<0||JM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ZM=e}}),Vr.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},Vr.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||JM(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},Vr.prototype.getMaxListeners=function(){return _J(this)},Vr.prototype.emit=function(e){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(s===void 0)return!1;if(typeof s=="function")QM(s,this,t);else{var l=s.length,c=$J(s,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():function(s,l){for(;l+1=0;r--)this.removeListener(e,t[r]);return this},Vr.prototype.listeners=function(e){return SB(this,e,!0)},Vr.prototype.rawListeners=function(e){return SB(this,e,!1)},Vr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):CB.call(e,t)},Vr.prototype.listenerCount=CB,Vr.prototype.eventNames=function(){return this._eventsCount>0?xB(this._events):[]},hs=wB,hs.EventEmitter,hs.defaultMaxListeners,hs.init,hs.listenerCount,hs.EventEmitter,hs.defaultMaxListeners,hs.init,hs.listenerCount}),kp={};Rp(kp,{EventEmitter:()=>PJ,default:()=>hs,defaultMaxListeners:()=>OJ,init:()=>MJ,listenerCount:()=>TJ,on:()=>RJ,once:()=>IJ});var PJ,OJ,MJ,TJ,RJ,IJ,bv=Fi(()=>{Vt(),qt(),Kt(),EB(),EB(),hs.once=function(e,t){return new Promise((n,r)=>{function o(...a){i!==void 0&&e.removeListener("error",i),n(a)}let i;t!=="error"&&(i=a=>{e.removeListener(name,o),r(a)},e.once("error",i)),e.once(t,o)})},hs.on=function(e,t){let n=[],r=[],o=null,i=!1,a={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(o){let u=Promise.reject(o);return o=null,u}return i?createIterResult(void 0,!0):new Promise((u,f)=>r.push({resolve:u,reject:f}))},async return(){e.removeListener(t,s),e.removeListener("error",l),i=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){o=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){i=!0;let u=r.shift();u?u.reject(c):o=c,a.return()}},{EventEmitter:PJ,defaultMaxListeners:OJ,init:MJ,listenerCount:TJ,on:RJ,once:IJ}=hs}),S5=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=gi(),{EventEmitter:o}=(bv(),Qr(kp));function i(s){o.call(this,s)}r(i.prototype,o.prototype),r(i,o),i.prototype.pipe=function(s,l){let c=this;function u(b){s.writable&&s.write(b)===!1&&c.pause&&c.pause()}c.on("data",u);function f(){c.readable&&c.resume&&c.resume()}s.on("drain",f),!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 g(b){v(),o.listenerCount(this,"error")===0&&this.emit("error",b)}a(c,"error",g),a(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",f),c.removeListener("end",p),c.removeListener("close",m),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),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:i,prependListener:a}}),k_=Zt((e,t)=>{Vt(),qt(),Kt();var{AbortError:n,codes:r}=Ga(),{isNodeStream:o,isWebStream:i,kControllerErrorFunction:a}=ld(),s=Nf(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,f)=>{if(typeof u!="object"||!("aborted"in u))throw new l(f,"AbortSignal",u)};t.exports.addAbortSignal=function(u,f){if(c(u,"signal"),!o(f)&&!i(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(u,f)},t.exports.addAbortSignalNoValidate=function(u,f){if(typeof u!="object"||!("aborted"in u))return f;let h=o(f)?()=>{f.destroy(new n(void 0,{cause:u.reason}))}:()=>{f[a](new n(void 0,{cause:u.reason}))};return u.aborted?h():(u.addEventListener("abort",h),s(f,()=>u.removeEventListener("abort",h))),f}}),mSe=Zt((e,t)=>{Vt(),qt(),Kt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:o,Uint8Array:i}=gi(),{Buffer:a}=(Bi(),Qr(Li)),{inspect:s}=Xu();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,f=0;for(;u;)o(c,u.data,f),f+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(lh.length)c+=h,l-=h.length;else{l===h.length?(c+=h,++f,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}++f}while((u=u.next)!==null);return this.length-=f,c}_getBuffer(l){let c=a.allocUnsafe(l),u=l,f=this.head,h=0;do{let p=f.data;if(l>p.length)o(c,p,u-l),l-=p.length;else{l===p.length?(o(c,p,u-l),++h,f.next?this.head=f.next:this.head=this.tail=null):(o(c,new i(p.buffer,p.byteOffset,l),u-l),this.head=f,f.data=p.slice(l));break}++h}while((f=f.next)!==null);return this.length-=h,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),C5=Zt((e,t)=>{Vt(),qt(),Kt();var{MathFloor:n,NumberIsInteger:r}=gi(),{ERR_INVALID_ARG_VALUE:o}=Ga().codes;function i(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,f){let h=i(c,f,u);if(h!=null){if(!r(h)||h<0){let p=f?`options.${u}`:"options.highWaterMark";throw new o(p,h)}return n(h)}return a(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:a}});function _B(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 gSe(e,t,n){for(var r,o,i=[],a=t;a>18&63]+Il[o>>12&63]+Il[o>>6&63]+Il[63&o]);return i.join("")}function Nu(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Xt.prototype),t}function Xt(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 H4(e)}return kJ(e,t,n)}function kJ(e,t,n){if(typeof e=="string")return function(i,a){if(typeof a=="string"&&a!==""||(a="utf8"),!Xt.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var s=0|AJ(i,a),l=Nu(s),c=l.write(i,a);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return eT(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(Au(e,ArrayBuffer)||e&&Au(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Au(e,SharedArrayBuffer)||e&&Au(e.buffer,SharedArrayBuffer)))return vSe(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 Xt.from(r,t,n);var o=function(i){if(Xt.isBuffer(i)){var a=0|w5(i.length),s=Nu(a);return s.length===0||i.copy(s,0,0,a),s}if(i.length!==void 0)return typeof i.length!="number"||x5(i.length)?Nu(0):eT(i);if(i.type==="Buffer"&&Array.isArray(i.data))return eT(i.data)}(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Xt.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 NJ(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 H4(e){return NJ(e),Nu(e<0?0:0|w5(e))}function eT(e){for(var t=e.length<0?0:0|w5(e.length),n=Nu(t),r=0;r=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function AJ(e,t){if(Xt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Au(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 o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return U4(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return LJ(e).length;default:if(o)return r?-1:U4(e).length;t=(""+t).toLowerCase(),o=!0}}function ySe(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 PSe(this,t,n);case"utf8":case"utf-8":return jJ(this,t,n);case"ascii":return _Se(this,t,n);case"latin1":case"binary":return $Se(this,t,n);case"base64":return ESe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return OSe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Qf(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function $B(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),x5(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t=="string"&&(t=Xt.from(t,r)),Xt.isBuffer(t))return t.length===0?-1:PB(e,t,n,r,o);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):PB(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function PB(e,t,n,r,o){var i,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(o){var u=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var f=!0,h=0;ho&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,l=a%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function ESe(e,t,n){return t===0&&n===e.length?u2.fromByteArray(e):u2.fromByteArray(e.slice(t,n))}function jJ(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(h){var p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var m="",g=0;gr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Ma(e,t,n,r,o,i){if(!Xt.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function FJ(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function OB(e,t,n,r,o){return t=+t,n>>>=0,o||FJ(e,0,n,4),ph.write(e,t,n,r,23,4),n+4}function MB(e,t,n,r,o){return t=+t,n>>>=0,o||FJ(e,0,n,8),ph.write(e,t,n,r,52,8),n+8}function U4(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function LJ(e){return u2.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(BJ,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function N_(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Au(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function x5(e){return e!=e}function TB(e,t){for(var n in e)t[n]=e[n]}function Jf(e,t,n){return xl(e,t,n)}function $0(e){var t;switch(this.encoding=function(n){var r=function(o){if(!o)return"utf8";for(var i;;)switch(o){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 o;default:if(i)return;o=(""+o).toLowerCase(),i=!0}}(n);if(typeof r!="string"&&(d2.isEncoding===W4||!W4(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=TSe,this.end=RSe,t=4;break;case"utf8":this.fillLast=MSe,t=4;break;case"base64":this.text=ISe,this.end=kSe,t=3;break;default:return this.write=NSe,this.end=ASe,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=d2.allocUnsafe(t)}function tT(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function MSe(e){var t=this.lastTotal-this.lastNeed,n=function(r,o,i){if((192&o[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&o.length>1){if((192&o[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&o.length>2&&(192&o[2])!=128)return r.lastNeed=2,"�"}}(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 TSe(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 RSe(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 ISe(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 kSe(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function NSe(e){return e.toString(this.encoding)}function ASe(e){return e&&e.length?this.write(e):""}var RB,Il,ns,IB,CC,Zf,kB,NB,wc,u2,ph,nT,BJ,zJ,P0,O0,xl,AB,zm,d2,W4,DB=Fi(()=>{for(Vt(),qt(),Kt(),RB={byteLength:function(e){var t=_B(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=_B(e),o=r[0],i=r[1],a=new IB(function(c,u,f){return 3*(u+f)/4-f}(0,o,i)),s=0,l=i>0?o-4:o;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;return i===2&&(t=ns[e.charCodeAt(n)]<<2|ns[e.charCodeAt(n+1)]>>4,a[s++]=255&t),i===1&&(t=ns[e.charCodeAt(n)]<<10|ns[e.charCodeAt(n+1)]<<4|ns[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,o=[],i=0,a=n-r;ia?a:i+16383));return r===1?(t=e[n-1],o.push(Il[t>>2]+Il[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Il[t>>10]+Il[t>>4&63]+Il[t<<2&63]+"=")),o.join("")}},Il=[],ns=[],IB=typeof Uint8Array<"u"?Uint8Array:Array,CC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zf=0,kB=CC.length;Zf>1,u=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},write:function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,m=r?1:-1,g=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+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=m,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=m,a/=256,c-=8);e[n+p-m]|=128*g}},wc={},u2=RB,ph=NB,nT=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,wc.Buffer=Xt,wc.SlowBuffer=function(e){return+e!=e&&(e=0),Xt.alloc(+e)},wc.INSPECT_MAX_BYTES=50,wc.kMaxLength=2147483647,Xt.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}}(),Xt.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(Xt.prototype,"parent",{enumerable:!0,get:function(){if(Xt.isBuffer(this))return this.buffer}}),Object.defineProperty(Xt.prototype,"offset",{enumerable:!0,get:function(){if(Xt.isBuffer(this))return this.byteOffset}}),Xt.poolSize=8192,Xt.from=function(e,t,n){return kJ(e,t,n)},Object.setPrototypeOf(Xt.prototype,Uint8Array.prototype),Object.setPrototypeOf(Xt,Uint8Array),Xt.alloc=function(e,t,n){return function(r,o,i){return NJ(r),r<=0?Nu(r):o!==void 0?typeof i=="string"?Nu(r).fill(o,i):Nu(r).fill(o):Nu(r)}(e,t,n)},Xt.allocUnsafe=function(e){return H4(e)},Xt.allocUnsafeSlow=function(e){return H4(e)},Xt.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Xt.prototype},Xt.compare=function(e,t){if(Au(e,Uint8Array)&&(e=Xt.from(e,e.offset,e.byteLength)),Au(t,Uint8Array)&&(t=Xt.from(t,t.offset,t.byteLength)),!Xt.isBuffer(e)||!Xt.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,o=0,i=Math.min(n,r);ot&&(e+=" ... "),""},nT&&(Xt.prototype[nT]=Xt.prototype.inspect),Xt.prototype.compare=function(e,t,n,r,o){if(Au(e,Uint8Array)&&(e=Xt.from(e,e.offset,e.byteLength)),!Xt.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),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),c=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return bSe(this,e,t,n);case"utf8":case"utf-8":return SSe(this,e,t,n);case"ascii":return DJ(this,e,t,n);case"latin1":case"binary":return CSe(this,e,t,n);case"base64":return wSe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xSe(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Xt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Xt.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>>=0,t>>>=0,n||Si(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||Si(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Xt.prototype.readUInt8=function(e,t){return e>>>=0,t||Si(e,1,this.length),this[e]},Xt.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Si(e,2,this.length),this[e]|this[e+1]<<8},Xt.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Si(e,2,this.length),this[e]<<8|this[e+1]},Xt.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Si(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Xt.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Si(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Xt.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Si(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Xt.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Si(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Xt.prototype.readInt8=function(e,t){return e>>>=0,t||Si(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Xt.prototype.readInt16LE=function(e,t){e>>>=0,t||Si(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Xt.prototype.readInt16BE=function(e,t){e>>>=0,t||Si(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Xt.prototype.readInt32LE=function(e,t){return e>>>=0,t||Si(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Xt.prototype.readInt32BE=function(e,t){return e>>>=0,t||Si(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Xt.prototype.readFloatLE=function(e,t){return e>>>=0,t||Si(e,4,this.length),ph.read(this,e,!0,23,4)},Xt.prototype.readFloatBE=function(e,t){return e>>>=0,t||Si(e,4,this.length),ph.read(this,e,!1,23,4)},Xt.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Si(e,8,this.length),ph.read(this,e,!0,52,8)},Xt.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Si(e,8,this.length),ph.read(this,e,!1,52,8)},Xt.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||Ma(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||Ma(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Xt.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,1,255,0),this[t]=255&e,t+1},Xt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Xt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Xt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(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},Xt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(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},Xt.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);Ma(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},Xt.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);Ma(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Xt.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Xt.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Xt.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Xt.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(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},Xt.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(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},Xt.prototype.writeFloatLE=function(e,t,n){return OB(this,e,t,!0,n)},Xt.prototype.writeFloatBE=function(e,t,n){return OB(this,e,t,!1,n)},Xt.prototype.writeDoubleLE=function(e,t,n){return MB(this,e,t,!0,n)},Xt.prototype.writeDoubleBE=function(e,t,n){return MB(this,e,t,!1,n)},Xt.prototype.copy=function(e,t,n,r){if(!Xt.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=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=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},Xt.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"&&!Xt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var o=e.charCodeAt(0);(r==="utf8"&&o<128||r==="latin1")&&(e=o)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(i=t;i=0?(l>0&&(o.lastNeed=l-1),l):--s=0?(l>0&&(o.lastNeed=l-2),l):--s=0?(l>0&&(l===2?l=0:o.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)},$0.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},zm.StringDecoder,zm.StringDecoder}),HJ={};Rp(HJ,{StringDecoder:()=>UJ,default:()=>zm});var UJ,DSe=Fi(()=>{Vt(),qt(),Kt(),DB(),DB(),UJ=zm.StringDecoder}),WJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{PromisePrototypeThen:r,SymbolAsyncIterator:o,SymbolIterator:i}=gi(),{Buffer:a}=(Bi(),Qr(Li)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Ga().codes;function c(u,f,h){let p;if(typeof f=="string"||f instanceof a)return new u({objectMode:!0,...h,read(){this.push(f),this.push(null)}});let m;if(f&&f[o])m=!0,p=f[o]();else if(f&&f[i])m=!1,p=f[i]();else throw new s("iterable",["Iterable"],f);let g=new u({objectMode:!0,highWaterMark:1,...h}),v=!1;g._read=function(){v||(v=!0,y())},g._destroy=function(S,w){r(b(S),()=>n.nextTick(w,S),E=>n.nextTick(w,E||S))};async function b(S){let w=S!=null,E=typeof p.throw=="function";if(w&&E){let{value:C,done:x}=await p.throw(S);if(await C,x)return}if(typeof p.return=="function"){let{value:C}=await p.return();await C}}async function y(){for(;;){try{let{value:S,done:w}=m?await p.next():p.next();if(w)g.push(null);else{let E=S&&typeof S.then=="function"?await S:S;if(E===null)throw v=!1,new l;if(g.push(E))continue;v=!1}}catch(S){g.destroy(S)}break}}return g}t.exports=c}),A_=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:h,Symbol:p}=gi();t.exports=L,L.ReadableState=K;var{EventEmitter:m}=(bv(),Qr(kp)),{Stream:g,prependListener:v}=S5(),{Buffer:b}=(Bi(),Qr(Li)),{addAbortSignal:y}=k_(),S=Nf(),w=Xu().debuglog("stream",H=>{w=H}),E=mSe(),C=yv(),{getHighWaterMark:x,getDefaultHighWaterMark:_}=C5(),{aggregateTwoErrors:P,codes:{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:T,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:D}}=Ga(),{validateObject:A}=I_(),j=p("kPaused"),{StringDecoder:k}=(DSe(),Qr(HJ)),F=WJ();c(L.prototype,g.prototype),c(L,g);var V=()=>{},{errorOrDestroy:W}=C;function K(H,q,me){typeof me!="boolean"&&(me=q instanceof Qu()),this.objectMode=!!(H&&H.objectMode),me&&(this.objectMode=this.objectMode||!!(H&&H.readableObjectMode)),this.highWaterMark=H?x(this,H,"readableHighWaterMark",me):_(!1),this.buffer=new E,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[j]=null,this.errorEmitted=!1,this.emitClose=!H||H.emitClose!==!1,this.autoDestroy=!H||H.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=H&&H.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,H&&H.encoding&&(this.decoder=new k(H.encoding),this.encoding=H.encoding)}function L(H){if(!(this instanceof L))return new L(H);let q=this instanceof Qu();this._readableState=new K(H,this,q),H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.construct=="function"&&(this._construct=H.construct),H.signal&&!q&&y(H.signal,this)),g.call(this,H),C.construct(this,()=>{this._readableState.needReadable&&ce(this,this._readableState)})}L.prototype.destroy=C.destroy,L.prototype._undestroy=C.undestroy,L.prototype._destroy=function(H,q){q(H)},L.prototype[m.captureRejectionSymbol]=function(H){this.destroy(H)},L.prototype.push=function(H,q){return Q(this,H,q,!1)},L.prototype.unshift=function(H,q){return Q(this,H,q,!0)};function Q(H,q,me,Ce){w("readableAddChunk",q);let ue=H._readableState,Le;if(ue.objectMode||(typeof q=="string"?(me=me||ue.defaultEncoding,ue.encoding!==me&&(Ce&&ue.encoding?q=b.from(q,me).toString(ue.encoding):(q=b.from(q,me),me=""))):q instanceof b?me="":g._isUint8Array(q)?(q=g._uint8ArrayToBuffer(q),me=""):q!=null&&(Le=new O("chunk",["string","Buffer","Uint8Array"],q))),Le)W(H,Le);else if(q===null)ue.reading=!1,X(H,ue);else if(ue.objectMode||q&&q.length>0)if(Ce)if(ue.endEmitted)W(H,new D);else{if(ue.destroyed||ue.errored)return!1;ee(H,ue,q,!0)}else if(ue.ended)W(H,new T);else{if(ue.destroyed||ue.errored)return!1;ue.reading=!1,ue.decoder&&!me?(q=ue.decoder.write(q),ue.objectMode||q.length!==0?ee(H,ue,q,!1):ce(H,ue)):ee(H,ue,q,!1)}else Ce||(ue.reading=!1,ce(H,ue));return!ue.ended&&(ue.length0?(q.multiAwaitDrain?q.awaitDrainWriters.clear():q.awaitDrainWriters=null,q.dataEmitted=!0,H.emit("data",me)):(q.length+=q.objectMode?1:me.length,Ce?q.buffer.unshift(me):q.buffer.push(me),q.needReadable&&ne(H)),ce(H,q)}L.prototype.isPaused=function(){let H=this._readableState;return H[j]===!0||H.flowing===!1},L.prototype.setEncoding=function(H){let q=new k(H);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;let me=this._readableState.buffer,Ce="";for(let ue of me)Ce+=q.write(ue);return me.clear(),Ce!==""&&me.push(Ce),this._readableState.length=Ce.length,this};var re=1073741824;function ie(H){if(H>re)throw new M("size","<= 1GiB",H);return H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++,H}function G(H,q){return H<=0||q.length===0&&q.ended?0:q.objectMode?1:i(H)?q.flowing&&q.length?q.buffer.first().length:q.length:H<=q.length?H:q.ended?q.length:0}L.prototype.read=function(H){w("read",H),H===void 0?H=NaN:o(H)||(H=a(H,10));let q=this._readableState,me=H;if(H>q.highWaterMark&&(q.highWaterMark=ie(H)),H!==0&&(q.emittedReadable=!1),H===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return w("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?ve(this):ne(this),null;if(H=G(H,q),H===0&&q.ended)return q.length===0&&ve(this),null;let Ce=q.needReadable;if(w("need readable",Ce),(q.length===0||q.length-H0?ue=ye(H,q):ue=null,ue===null?(q.needReadable=q.length<=q.highWaterMark,H=0):(q.length-=H,q.multiAwaitDrain?q.awaitDrainWriters.clear():q.awaitDrainWriters=null),q.length===0&&(q.ended||(q.needReadable=!0),me!==H&&q.ended&&ve(this)),ue!==null&&!q.errorEmitted&&!q.closeEmitted&&(q.dataEmitted=!0,this.emit("data",ue)),ue};function X(H,q){if(w("onEofChunk"),!q.ended){if(q.decoder){let me=q.decoder.end();me&&me.length&&(q.buffer.push(me),q.length+=q.objectMode?1:me.length)}q.ended=!0,q.sync?ne(H):(q.needReadable=!1,q.emittedReadable=!0,le(H))}}function ne(H){let q=H._readableState;w("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(w("emitReadable",q.flowing),q.emittedReadable=!0,n.nextTick(le,H))}function le(H){let q=H._readableState;w("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&!q.errored&&(q.length||q.ended)&&(H.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,Oe(H)}function ce(H,q){!q.readingMore&&q.constructed&&(q.readingMore=!0,n.nextTick(oe,H,q))}function oe(H,q){for(;!q.reading&&!q.ended&&(q.length1&&Ce.pipes.includes(H)&&(w("false write response, pause",Ce.awaitDrainWriters.size),Ce.awaitDrainWriters.add(H)),me.pause()),ge||(ge=se(me,H),H.on("drain",ge))}me.on("data",Ke);function Ke(st){w("ondata");let yt=H.write(st);w("dest.write",yt),yt===!1&&Fe()}function Ue(st){if(w("onerror",st),et(),H.removeListener("error",Ue),H.listenerCount("error")===0){let yt=H._writableState||H._readableState;yt&&!yt.errorEmitted?W(H,st):H.emit("error",st)}}v(H,"error",Ue);function Ve(){H.removeListener("finish",Tt),et()}H.once("close",Ve);function Tt(){w("onfinish"),H.removeListener("close",Ve),et()}H.once("finish",Tt);function et(){w("unpipe"),me.unpipe(H)}return H.emit("pipe",me),H.writableNeedDrain===!0?Ce.flowing&&Fe():Ce.flowing||(w("pipe resume"),me.resume()),H};function se(H,q){return function(){let me=H._readableState;me.awaitDrainWriters===q?(w("pipeOnDrain",1),me.awaitDrainWriters=null):me.multiAwaitDrain&&(w("pipeOnDrain",me.awaitDrainWriters.size),me.awaitDrainWriters.delete(q)),(!me.awaitDrainWriters||me.awaitDrainWriters.size===0)&&H.listenerCount("data")&&H.resume()}}L.prototype.unpipe=function(H){let q=this._readableState,me={hasUnpiped:!1};if(q.pipes.length===0)return this;if(!H){let ue=q.pipes;q.pipes=[],this.pause();for(let Le=0;Le0,Ce.flowing!==!1&&this.resume()):H==="readable"&&!Ce.endEmitted&&!Ce.readableListening&&(Ce.readableListening=Ce.needReadable=!0,Ce.flowing=!1,Ce.emittedReadable=!1,w("on readable",Ce.length,Ce.reading),Ce.length?ne(this):Ce.reading||n.nextTick(te,this)),me},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(H,q){let me=g.prototype.removeListener.call(this,H,q);return H==="readable"&&n.nextTick(fe,this),me},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(H){let q=g.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&n.nextTick(fe,this),q};function fe(H){let q=H._readableState;q.readableListening=H.listenerCount("readable")>0,q.resumeScheduled&&q[j]===!1?q.flowing=!0:H.listenerCount("data")>0?H.resume():q.readableListening||(q.flowing=null)}function te(H){w("readable nexttick read 0"),H.read(0)}L.prototype.resume=function(){let H=this._readableState;return H.flowing||(w("resume"),H.flowing=!H.readableListening,he(this,H)),H[j]=!1,this};function he(H,q){q.resumeScheduled||(q.resumeScheduled=!0,n.nextTick(pe,H,q))}function pe(H,q){w("resume",q.reading),q.reading||H.read(0),q.resumeScheduled=!1,H.emit("resume"),Oe(H),q.flowing&&!q.reading&&H.read(0)}L.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[j]=!0,this};function Oe(H){let q=H._readableState;for(w("flow",q.flowing);q.flowing&&H.read()!==null;);}L.prototype.wrap=function(H){let q=!1;H.on("data",Ce=>{!this.push(Ce)&&H.pause&&(q=!0,H.pause())}),H.on("end",()=>{this.push(null)}),H.on("error",Ce=>{W(this,Ce)}),H.on("close",()=>{this.destroy()}),H.on("destroy",()=>{this.destroy()}),this._read=()=>{q&&H.resume&&(q=!1,H.resume())};let me=l(H);for(let Ce=1;Ce{ue=He?P(ue,He):null,me(),me=V});try{for(;;){let He=H.destroyed?null:H.read();if(He!==null)yield He;else{if(ue)throw ue;if(ue===null)return;await new u(Ce)}}}catch(He){throw ue=P(ue,He),ue}finally{(ue||(q==null?void 0:q.destroyOnReturn)!==!1)&&(ue===void 0||H._readableState.autoDestroy)?C.destroyer(H,null):(H.off("readable",Ce),Le())}}s(L.prototype,{readable:{__proto__:null,get(){let H=this._readableState;return!!H&&H.readable!==!1&&!H.destroyed&&!H.errorEmitted&&!H.endEmitted},set(H){this._readableState&&(this._readableState.readable=!!H)}},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(H){this._readableState&&(this._readableState.flowing=H)}},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(H){this._readableState&&(this._readableState.destroyed=H)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(K.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(H){this[j]=!!H}}}),L._fromList=ye;function ye(H,q){if(q.length===0)return null;let me;return q.objectMode?me=q.buffer.shift():!H||H>=q.length?(q.decoder?me=q.buffer.join(""):q.buffer.length===1?me=q.buffer.first():me=q.buffer.concat(q.length),q.buffer.clear()):me=q.buffer.consume(H,q.decoder),me}function ve(H){let q=H._readableState;w("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,n.nextTick(be,q,H))}function be(H,q){if(w("endReadableNT",H.endEmitted,H.length),!H.errored&&!H.closeEmitted&&!H.endEmitted&&H.length===0){if(H.endEmitted=!0,q.emit("end"),q.writable&&q.allowHalfOpen===!1)n.nextTick(Pe,q);else if(H.autoDestroy){let me=q._writableState;(!me||me.autoDestroy&&(me.finished||me.writable===!1))&&q.destroy()}}}function Pe(H){H.writable&&!H.writableEnded&&!H.destroyed&&H.end()}L.from=function(H,q){return F(L,H,q)};var Ne;function U(){return Ne===void 0&&(Ne={}),Ne}L.fromWeb=function(H,q){return U().newStreamReadableFromReadableStream(H,q)},L.toWeb=function(H,q){return U().newReadableStreamFromStreamReadable(H,q)},L.wrap=function(H,q){var me,Ce;return new L({objectMode:(me=(Ce=H.readableObjectMode)!==null&&Ce!==void 0?Ce:H.objectMode)!==null&&me!==void 0?me:!0,...q,destroy(ue,Le){C.destroyer(H,ue),Le(ue)}}).wrap(H)}}),VJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=gi();t.exports=k,k.WritableState=A;var{EventEmitter:h}=(bv(),Qr(kp)),p=S5().Stream,{Buffer:m}=(Bi(),Qr(Li)),g=yv(),{addAbortSignal:v}=k_(),{getHighWaterMark:b,getDefaultHighWaterMark:y}=C5(),{ERR_INVALID_ARG_TYPE:S,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:_,ERR_STREAM_NULL_VALUES:P,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:I}=Ga().codes,{errorOrDestroy:M}=g;l(k.prototype,p.prototype),l(k,p);function T(){}var D=u("kOnFinished");function A(te,he,pe){typeof pe!="boolean"&&(pe=he instanceof Qu()),this.objectMode=!!(te&&te.objectMode),pe&&(this.objectMode=this.objectMode||!!(te&&te.writableObjectMode)),this.highWaterMark=te?b(this,te,"writableHighWaterMark",pe):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Oe=!!(te&&te.decodeStrings===!1);this.decodeStrings=!Oe,this.defaultEncoding=te&&te.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=L.bind(void 0,he),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,j(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!te||te.emitClose!==!1,this.autoDestroy=!te||te.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function j(te){te.buffered=[],te.bufferedIndex=0,te.allBuffers=!0,te.allNoop=!0}A.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},a(A.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function k(te){let he=this instanceof Qu();if(!he&&!i(k,this))return new k(te);this._writableState=new A(te,this,he),te&&(typeof te.write=="function"&&(this._write=te.write),typeof te.writev=="function"&&(this._writev=te.writev),typeof te.destroy=="function"&&(this._destroy=te.destroy),typeof te.final=="function"&&(this._final=te.final),typeof te.construct=="function"&&(this._construct=te.construct),te.signal&&v(te.signal,this)),p.call(this,te),g.construct(this,()=>{let pe=this._writableState;pe.writing||ie(this,pe),le(this,pe)})}a(k,f,{__proto__:null,value:function(te){return i(this,te)?!0:this!==k?!1:te&&te._writableState instanceof A}}),k.prototype.pipe=function(){M(this,new C)};function F(te,he,pe,Oe){let Me=te._writableState;if(typeof pe=="function")Oe=pe,pe=Me.defaultEncoding;else{if(!pe)pe=Me.defaultEncoding;else if(pe!=="buffer"&&!m.isEncoding(pe))throw new I(pe);typeof Oe!="function"&&(Oe=T)}if(he===null)throw new P;if(!Me.objectMode)if(typeof he=="string")Me.decodeStrings!==!1&&(he=m.from(he,pe),pe="buffer");else if(he instanceof m)pe="buffer";else if(p._isUint8Array(he))he=p._uint8ArrayToBuffer(he),pe="buffer";else throw new S("chunk",["string","Buffer","Uint8Array"],he);let Se;return Me.ending?Se=new O:Me.destroyed&&(Se=new x("write")),Se?(n.nextTick(Oe,Se),M(te,Se,!0),Se):(Me.pendingcb++,V(te,Me,he,pe,Oe))}k.prototype.write=function(te,he,pe){return F(this,te,he,pe)===!0},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){let te=this._writableState;te.corked&&(te.corked--,te.writing||ie(this,te))},k.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=c(te)),!m.isEncoding(te))throw new I(te);return this._writableState.defaultEncoding=te,this};function V(te,he,pe,Oe,Me){let Se=he.objectMode?1:pe.length;he.length+=Se;let ye=he.lengthpe.bufferedIndex&&ie(te,pe),Oe?pe.afterWriteTickInfo!==null&&pe.afterWriteTickInfo.cb===Me?pe.afterWriteTickInfo.count++:(pe.afterWriteTickInfo={count:1,cb:Me,stream:te,state:pe},n.nextTick(Q,pe.afterWriteTickInfo)):ee(te,pe,1,Me))}function Q({stream:te,state:he,count:pe,cb:Oe}){return he.afterWriteTickInfo=null,ee(te,he,pe,Oe)}function ee(te,he,pe,Oe){for(!he.ending&&!te.destroyed&&he.length===0&&he.needDrain&&(he.needDrain=!1,te.emit("drain"));pe-- >0;)he.pendingcb--,Oe();he.destroyed&&re(he),le(te,he)}function re(te){if(te.writing)return;for(let Me=te.bufferedIndex;Me1&&te._writev){he.pendingcb-=Se-1;let ve=he.allNoop?T:Pe=>{for(let Ne=ye;Ne256?(pe.splice(0,ye),he.bufferedIndex=0):he.bufferedIndex=ye}he.bufferProcessing=!1}k.prototype._write=function(te,he,pe){if(this._writev)this._writev([{chunk:te,encoding:he}],pe);else throw new w("_write()")},k.prototype._writev=null,k.prototype.end=function(te,he,pe){let Oe=this._writableState;typeof te=="function"?(pe=te,te=null,he=null):typeof he=="function"&&(pe=he,he=null);let Me;if(te!=null){let Se=F(this,te,he);Se instanceof o&&(Me=Se)}return Oe.corked&&(Oe.corked=1,this.uncork()),Me||(!Oe.errored&&!Oe.ending?(Oe.ending=!0,le(this,Oe,!0),Oe.ended=!0):Oe.finished?Me=new _("end"):Oe.destroyed&&(Me=new x("end"))),typeof pe=="function"&&(Me||Oe.finished?n.nextTick(pe,Me):Oe[D].push(pe)),this};function G(te){return te.ending&&!te.destroyed&&te.constructed&&te.length===0&&!te.errored&&te.buffered.length===0&&!te.finished&&!te.writing&&!te.errorEmitted&&!te.closeEmitted}function X(te,he){let pe=!1;function Oe(Me){if(pe){M(te,Me??E());return}if(pe=!0,he.pendingcb--,Me){let Se=he[D].splice(0);for(let ye=0;ye{G(Me)?ce(Oe,Me):Me.pendingcb--},te,he)):G(he)&&(he.pendingcb++,ce(te,he))))}function ce(te,he){he.pendingcb--,he.finished=!0;let pe=he[D].splice(0);for(let Oe=0;Oe{Vt(),qt(),Kt();var n=Ip(),r=(Bi(),Qr(Li)),{isReadable:o,isWritable:i,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=ld(),f=Nf(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:m}}=Ga(),{destroyer:g}=yv(),v=Qu(),b=A_(),{createDeferredPromise:y}=Xu(),S=WJ(),w=globalThis.Blob||r.Blob,E=typeof w<"u"?function(I){return I instanceof w}:function(I){return!1},C=globalThis.AbortController||b5().AbortController,{FunctionPrototypeCall:x}=gi(),_=class extends v{constructor(I){super(I),(I==null?void 0:I.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(I==null?void 0:I.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function I(M,T){if(u(M))return M;if(l(M))return O({readable:M});if(c(M))return O({writable:M});if(s(M))return O({writable:!1,readable:!1});if(typeof M=="function"){let{value:A,write:j,final:k,destroy:F}=P(M);if(a(A))return S(_,A,{objectMode:!0,write:j,final:k,destroy:F});let V=A==null?void 0:A.then;if(typeof V=="function"){let W,K=x(V,A,L=>{if(L!=null)throw new m("nully","body",L)},L=>{g(W,L)});return W=new _({objectMode:!0,readable:!1,write:j,final(L){k(async()=>{try{await K,n.nextTick(L,null)}catch(Q){n.nextTick(L,Q)}})},destroy:F})}throw new m("Iterable, AsyncIterable or AsyncFunction",T,A)}if(E(M))return I(M.arrayBuffer());if(a(M))return S(_,M,{objectMode:!0,writable:!1});if(typeof(M==null?void 0:M.writable)=="object"||typeof(M==null?void 0:M.readable)=="object"){let A=M!=null&&M.readable?l(M==null?void 0:M.readable)?M==null?void 0:M.readable:I(M.readable):void 0,j=M!=null&&M.writable?c(M==null?void 0:M.writable)?M==null?void 0:M.writable:I(M.writable):void 0;return O({readable:A,writable:j})}let D=M==null?void 0:M.then;if(typeof D=="function"){let A;return x(D,M,j=>{j!=null&&A.push(j),A.push(null)},j=>{g(A,j)}),A=new _({objectMode:!0,writable:!1,read(){}})}throw new p(T,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],M)};function P(I){let{promise:M,resolve:T}=y(),D=new C,A=D.signal;return{value:I(async function*(){for(;;){let j=M;M=null;let{chunk:k,done:F,cb:V}=await j;if(n.nextTick(V),F)return;if(A.aborted)throw new h(void 0,{cause:A.reason});({promise:M,resolve:T}=y()),yield k}}(),{signal:A}),write(j,k,F){let V=T;T=null,V({chunk:j,done:!1,cb:F})},final(j){let k=T;T=null,k({done:!0,cb:j})},destroy(j,k){D.abort(),k(j)}}}function O(I){let M=I.readable&&typeof I.readable.read!="function"?b.wrap(I.readable):I.readable,T=I.writable,D=!!o(M),A=!!i(T),j,k,F,V,W;function K(L){let Q=V;V=null,Q?Q(L):L&&W.destroy(L)}return W=new _({readableObjectMode:!!(M!=null&&M.readableObjectMode),writableObjectMode:!!(T!=null&&T.writableObjectMode),readable:D,writable:A}),A&&(f(T,L=>{A=!1,L&&g(M,L),K(L)}),W._write=function(L,Q,ee){T.write(L,Q)?ee():j=ee},W._final=function(L){T.end(),k=L},T.on("drain",function(){if(j){let L=j;j=null,L()}}),T.on("finish",function(){if(k){let L=k;k=null,L()}})),D&&(f(M,L=>{D=!1,L&&g(M,L),K(L)}),M.on("readable",function(){if(F){let L=F;F=null,L()}}),M.on("end",function(){W.push(null)}),W._read=function(){for(;;){let L=M.read();if(L===null){F=W._read;return}if(!W.push(L))return}}),W._destroy=function(L,Q){!L&&V!==null&&(L=new h),F=null,j=null,k=null,V===null?Q(L):(V=Q,g(T,L),g(M,L))},W}}),Qu=Zt((e,t)=>{Vt(),qt(),Kt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:i}=gi();t.exports=l;var a=A_(),s=VJ();i(l.prototype,a.prototype),i(l,a);{let h=o(s.prototype);for(let p=0;p{Vt(),qt(),Kt();var{ObjectSetPrototypeOf:n,Symbol:r}=gi();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:o}=Ga().codes,i=Qu(),{getHighWaterMark:a}=C5();n(l.prototype,i.prototype),n(l,i);var s=r("kCallback");function l(f){if(!(this instanceof l))return new l(f);let h=f?a(this,f,"readableHighWaterMark",!0):null;h===0&&(f={...f,highWaterMark:null,readableHighWaterMark:h,writableHighWaterMark:f.writableHighWaterMark||0}),i.call(this,f),this._readableState.sync=!1,this[s]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function c(f){typeof this._flush=="function"&&!this.destroyed?this._flush((h,p)=>{if(h){f?f(h):this.destroy(h);return}p!=null&&this.push(p),this.push(null),f&&f()}):(this.push(null),f&&f())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(f,h,p){throw new o("_transform()")},l.prototype._write=function(f,h,p){let m=this._readableState,g=this._writableState,v=m.length;this._transform(f,h,(b,y)=>{if(b){p(b);return}y!=null&&this.push(y),g.ended||v===m.length||m.length{Vt(),qt(),Kt();var{ObjectSetPrototypeOf:n}=gi();t.exports=o;var r=KJ();n(o.prototype,r.prototype),n(o,r);function o(i){if(!(this instanceof o))return new o(i);r.call(this,i)}o.prototype._transform=function(i,a,s){s(null,i)}}),E5=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayIsArray:r,Promise:o,SymbolAsyncIterator:i}=gi(),a=Nf(),{once:s}=Xu(),l=yv(),c=Qu(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=Ga(),{validateFunction:b,validateAbortSignal:y}=I_(),{isIterable:S,isReadable:w,isReadableNodeStream:E,isNodeStream:C,isTransformStream:x,isWebStream:_,isReadableStream:P,isReadableEnded:O}=ld(),I=globalThis.AbortController||b5().AbortController,M,T;function D(Q,ee,re){let ie=!1;Q.on("close",()=>{ie=!0});let G=a(Q,{readable:ee,writable:re},X=>{ie=!X});return{destroy:X=>{ie||(ie=!0,l.destroyer(Q,X||new m("pipe")))},cleanup:G}}function A(Q){return b(Q[Q.length-1],"streams[stream.length - 1]"),Q.pop()}function j(Q){if(S(Q))return Q;if(E(Q))return k(Q);throw new f("val",["Readable","Iterable","AsyncIterable"],Q)}async function*k(Q){T||(T=A_()),yield*T.prototype[i].call(Q)}async function F(Q,ee,re,{end:ie}){let G,X=null,ne=oe=>{if(oe&&(G=oe),X){let se=X;X=null,se()}},le=()=>new o((oe,se)=>{G?se(G):X=()=>{G?se(G):oe()}});ee.on("drain",ne);let ce=a(ee,{readable:!1},ne);try{ee.writableNeedDrain&&await le();for await(let oe of Q)ee.write(oe)||await le();ie&&ee.end(),await le(),re()}catch(oe){re(G!==oe?u(G,oe):oe)}finally{ce(),ee.off("drain",ne)}}async function V(Q,ee,re,{end:ie}){x(ee)&&(ee=ee.writable);let G=ee.getWriter();try{for await(let X of Q)await G.ready,G.write(X).catch(()=>{});await G.ready,ie&&await G.close(),re()}catch(X){try{await G.abort(X),re(X)}catch(ne){re(ne)}}}function W(...Q){return K(Q,s(A(Q)))}function K(Q,ee,re){if(Q.length===1&&r(Q[0])&&(Q=Q[0]),Q.length<2)throw new p("streams");let ie=new I,G=ie.signal,X=re==null?void 0:re.signal,ne=[];y(X,"options.signal");function le(){he(new v)}X==null||X.addEventListener("abort",le);let ce,oe,se=[],fe=0;function te(Se){he(Se,--fe===0)}function he(Se,ye){if(Se&&(!ce||ce.code==="ERR_STREAM_PREMATURE_CLOSE")&&(ce=Se),!(!ce&&!ye)){for(;se.length;)se.shift()(ce);X==null||X.removeEventListener("abort",le),ie.abort(),ye&&(ce||ne.forEach(ve=>ve()),n.nextTick(ee,ce,oe))}}let pe;for(let Se=0;Se0,Pe=ve||(re==null?void 0:re.end)!==!1,Ne=Se===Q.length-1;if(C(ye)){let U=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&te(H)};if(Pe){let{destroy:H,cleanup:q}=D(ye,ve,be);se.push(H),w(ye)&&Ne&&ne.push(q)}ye.on("error",U),w(ye)&&Ne&&ne.push(()=>{ye.removeListener("error",U)})}if(Se===0)if(typeof ye=="function"){if(pe=ye({signal:G}),!S(pe))throw new h("Iterable, AsyncIterable or Stream","source",pe)}else S(ye)||E(ye)||x(ye)?pe=ye:pe=c.from(ye);else if(typeof ye=="function"){if(x(pe)){var Oe;pe=j((Oe=pe)===null||Oe===void 0?void 0:Oe.readable)}else pe=j(pe);if(pe=ye(pe,{signal:G}),ve){if(!S(pe,!0))throw new h("AsyncIterable",`transform[${Se-1}]`,pe)}else{var Me;M||(M=qJ());let U=new M({objectMode:!0}),H=(Me=pe)===null||Me===void 0?void 0:Me.then;if(typeof H=="function")fe++,H.call(pe,Ce=>{oe=Ce,Ce!=null&&U.write(Ce),Pe&&U.end(),n.nextTick(te)},Ce=>{U.destroy(Ce),n.nextTick(te,Ce)});else if(S(pe,!0))fe++,F(pe,U,te,{end:Pe});else if(P(pe)||x(pe)){let Ce=pe.readable||pe;fe++,F(Ce,U,te,{end:Pe})}else throw new h("AsyncIterable or Promise","destination",pe);pe=U;let{destroy:q,cleanup:me}=D(pe,!1,!0);se.push(q),Ne&&ne.push(me)}}else if(C(ye)){if(E(pe)){fe+=2;let U=L(pe,ye,te,{end:Pe});w(ye)&&Ne&&ne.push(U)}else if(x(pe)||P(pe)){let U=pe.readable||pe;fe++,F(U,ye,te,{end:Pe})}else if(S(pe))fe++,F(pe,ye,te,{end:Pe});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],pe);pe=ye}else if(_(ye)){if(E(pe))fe++,V(j(pe),ye,te,{end:Pe});else if(P(pe)||S(pe))fe++,V(pe,ye,te,{end:Pe});else if(x(pe))fe++,V(pe.readable,ye,te,{end:Pe});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],pe);pe=ye}else pe=c.from(ye)}return(G!=null&&G.aborted||X!=null&&X.aborted)&&n.nextTick(le),pe}function L(Q,ee,re,{end:ie}){let G=!1;if(ee.on("close",()=>{G||re(new g)}),Q.pipe(ee,{end:!1}),ie){let X=function(){G=!0,ee.end()};O(Q)?n.nextTick(X):Q.once("end",X)}else re();return a(Q,{readable:!0,writable:!1},X=>{let ne=Q._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&ne&&ne.ended&&!ne.errored&&!ne.errorEmitted?Q.once("end",re).once("error",re):re(X)}),a(ee,{readable:!1,writable:!0},re)}t.exports={pipelineImpl:K,pipeline:W}}),GJ=Zt((e,t)=>{Vt(),qt(),Kt();var{pipeline:n}=E5(),r=Qu(),{destroyer:o}=yv(),{isNodeStream:i,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=ld(),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=Ga(),g=Nf();t.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return r.from(v[0]);let b=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let M=v.length-1;v[M]=r.from(v[M])}for(let M=0;M0&&!(s(v[M])||u(v[M])||c(v[M])))throw new p(`streams[${M}]`,b[M],"must be writable")}let y,S,w,E,C;function x(M){let T=E;E=null,T?T(M):M?C.destroy(M):!I&&!O&&C.destroy()}let _=v[0],P=n(v,x),O=!!(s(_)||u(_)||c(_)),I=!!(a(P)||f(P)||c(P));if(C=new r({writableObjectMode:!!(_!=null&&_.writableObjectMode),readableObjectMode:!!(P!=null&&P.writableObjectMode),writable:O,readable:I}),O){if(i(_))C._write=function(T,D,A){_.write(T,D)?A():y=A},C._final=function(T){_.end(),S=T},_.on("drain",function(){if(y){let T=y;y=null,T()}});else if(l(_)){let T=(c(_)?_.writable:_).getWriter();C._write=async function(D,A,j){try{await T.ready,T.write(D).catch(()=>{}),j()}catch(k){j(k)}},C._final=async function(D){try{await T.ready,T.close().catch(()=>{}),S=D}catch(A){D(A)}}}let M=c(P)?P.readable:P;g(M,()=>{if(S){let T=S;S=null,T()}})}if(I){if(i(P))P.on("readable",function(){if(w){let M=w;w=null,M()}}),P.on("end",function(){C.push(null)}),C._read=function(){for(;;){let M=P.read();if(M===null){w=C._read;return}if(!C.push(M))return}};else if(l(P)){let M=(c(P)?P.readable:P).getReader();C._read=async function(){for(;;)try{let{value:T,done:D}=await M.read();if(!C.push(T))return;if(D){C.push(null);return}}catch{return}}}}return C._destroy=function(M,T){!M&&E!==null&&(M=new h),w=null,y=null,S=null,E===null?T(M):(E=T,i(P)&&o(P,M))},C}}),FSe=Zt((e,t)=>{Vt(),qt(),Kt();var n=globalThis.AbortController||b5().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:i,ERR_OUT_OF_RANGE:a},AbortError:s}=Ga(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=I_(),f=gi().Symbol("kWeak"),{finished:h}=Nf(),p=GJ(),{addAbortSignalNoValidate:m}=k_(),{isWritable:g,isNodeStream:v}=ld(),{ArrayPrototypePush:b,MathFloor:y,Number:S,NumberIsNaN:w,Promise:E,PromiseReject:C,PromisePrototypeThen:x,Symbol:_}=gi(),P=_("kEmpty"),O=_("kEof");function I(ie,G){if(G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),v(ie)&&!g(ie))throw new r("stream",ie,"must be writable");let X=p(this,ie);return G!=null&&G.signal&&m(G.signal,X),X}function M(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal");let X=1;return(G==null?void 0:G.concurrency)!=null&&(X=y(G.concurrency)),c(X,"concurrency",1),(async function*(){var ne,le;let ce=new n,oe=this,se=[],fe=ce.signal,te={signal:fe},he=()=>ce.abort();G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted&&he(),G==null||(le=G.signal)===null||le===void 0||le.addEventListener("abort",he);let pe,Oe,Me=!1;function Se(){Me=!0}async function ye(){try{for await(let Pe of oe){var ve;if(Me)return;if(fe.aborted)throw new s;try{Pe=ie(Pe,te)}catch(Ne){Pe=C(Ne)}Pe!==P&&(typeof((ve=Pe)===null||ve===void 0?void 0:ve.catch)=="function"&&Pe.catch(Se),se.push(Pe),pe&&(pe(),pe=null),!Me&&se.length&&se.length>=X&&await new E(Ne=>{Oe=Ne}))}se.push(O)}catch(Pe){let Ne=C(Pe);x(Ne,void 0,Se),se.push(Ne)}finally{var be;Me=!0,pe&&(pe(),pe=null),G==null||(be=G.signal)===null||be===void 0||be.removeEventListener("abort",he)}}ye();try{for(;;){for(;se.length>0;){let ve=await se[0];if(ve===O)return;if(fe.aborted)throw new s;ve!==P&&(yield ve),se.shift(),Oe&&(Oe(),Oe=null)}await new E(ve=>{pe=ve})}}finally{ce.abort(),Me=!0,Oe&&(Oe(),Oe=null)}}).call(this)}function T(ie=void 0){return ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal"),(async function*(){let G=0;for await(let ne of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s({cause:ie.signal.reason});yield[G++,ne]}}).call(this)}async function D(ie,G=void 0){for await(let X of F.call(this,ie,G))return!0;return!1}async function A(ie,G=void 0){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);return!await D.call(this,async(...X)=>!await ie(...X),G)}async function j(ie,G){for await(let X of F.call(this,ie,G))return X}async function k(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);async function X(ne,le){return await ie(ne,le),P}for await(let ne of M.call(this,X,G));}function F(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);async function X(ne,le){return await ie(ne,le)?ne:P}return M.call(this,X,G)}var V=class extends i{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function W(ie,G,X){var ne;if(typeof ie!="function")throw new o("reducer",["Function","AsyncFunction"],ie);X!=null&&u(X,"options"),(X==null?void 0:X.signal)!=null&&l(X.signal,"options.signal");let le=arguments.length>1;if(X!=null&&(ne=X.signal)!==null&&ne!==void 0&&ne.aborted){let te=new s(void 0,{cause:X.signal.reason});throw this.once("error",()=>{}),await h(this.destroy(te)),te}let ce=new n,oe=ce.signal;if(X!=null&&X.signal){let te={once:!0,[f]:this};X.signal.addEventListener("abort",()=>ce.abort(),te)}let se=!1;try{for await(let te of this){var fe;if(se=!0,X!=null&&(fe=X.signal)!==null&&fe!==void 0&&fe.aborted)throw new s;le?G=await ie(G,te,{signal:oe}):(G=te,le=!0)}if(!se&&!le)throw new V}finally{ce.abort()}return G}async function K(ie){ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal");let G=[];for await(let ne of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s(void 0,{cause:ie.signal.reason});b(G,ne)}return G}function L(ie,G){let X=M.call(this,ie,G);return(async function*(){for await(let ne of X)yield*ne}).call(this)}function Q(ie){if(ie=S(ie),w(ie))return 0;if(ie<0)throw new a("number",">= 0",ie);return ie}function ee(ie,G=void 0){return G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),ie=Q(ie),(async function*(){var X;if(G!=null&&(X=G.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let le of this){var ne;if(G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;ie--<=0&&(yield le)}}).call(this)}function re(ie,G=void 0){return G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),ie=Q(ie),(async function*(){var X;if(G!=null&&(X=G.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let le of this){var ne;if(G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;if(ie-- >0)yield le;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:T,drop:ee,filter:F,flatMap:L,map:M,take:re,compose:I},t.exports.promiseReturningOperators={every:A,forEach:k,reduce:W,toArray:K,some:D,find:j}}),YJ=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayPrototypePop:n,Promise:r}=gi(),{isIterable:o,isNodeStream:i,isWebStream:a}=ld(),{pipelineImpl:s}=E5(),{finished:l}=Nf();XJ();function c(...u){return new r((f,h)=>{let p,m,g=u[u.length-1];if(g&&typeof g=="object"&&!i(g)&&!o(g)&&!a(g)){let v=n(u);p=v.signal,m=v.end}s(u,(v,b)=>{v?h(v):f(b)},{signal:p,end:m})})}t.exports={finished:l,pipeline:c}}),XJ=Zt((e,t)=>{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:i}=gi(),{promisify:{custom:a}}=Xu(),{streamReturningOperators:s,promiseReturningOperators:l}=FSe(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Ga(),u=GJ(),{pipeline:f}=E5(),{destroyer:h}=yv(),p=Nf(),m=YJ(),g=ld(),v=t.exports=S5().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=A_();for(let y of o(s)){let S=function(...E){if(new.target)throw c();return v.Readable.from(i(w,this,E))},w=s[y];r(S,"name",{__proto__:null,value:w.name}),r(S,"length",{__proto__:null,value:w.length}),r(v.Readable.prototype,y,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}for(let y of o(l)){let S=function(...E){if(new.target)throw c();return i(w,this,E)},w=l[y];r(S,"name",{__proto__:null,value:w.name}),r(S,"length",{__proto__:null,value:w.length}),r(v.Readable.prototype,y,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}v.Writable=VJ(),v.Duplex=Qu(),v.Transform=KJ(),v.PassThrough=qJ(),v.pipeline=f;var{addAbortSignal:b}=k_();v.addAbortSignal=b,v.finished=p,v.destroy=h,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(f,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(p,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(y){return y instanceof Uint8Array},v._uint8ArrayToBuffer=function(y){return n.from(y.buffer,y.byteOffset,y.byteLength)}}),Np=Zt((e,t)=>{Vt(),qt(),Kt();var n=XJ(),r=YJ(),o=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=o,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}),LSe=Zt((e,t)=>{Vt(),qt(),Kt(),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 o=function(){};o.prototype=r.prototype,n.prototype=new o,n.prototype.constructor=n}}}),BSe=Zt((e,t)=>{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),r=Symbol.for("BufferList");function o(i){if(!(this instanceof o))return new o(i);o._init.call(this,i)}o._init=function(i){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,i&&this.append(i)},o.prototype._new=function(i){return new o(i)},o.prototype._offset=function(i){if(i===0)return[0,0];let a=0;for(let s=0;sthis.length||i<0)return;let a=this._offset(i);return this._bufs[a[0]][a[1]]},o.prototype.slice=function(i,a){return typeof i=="number"&&i<0&&(i+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,i,a)},o.prototype.copy=function(i,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 i||n.alloc(0);let c=!!i,u=this._offset(s),f=l-s,h=f,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 g=0;gv)this._bufs[g].copy(i,p,m),p+=v;else{this._bufs[g].copy(i,p,m,m+h),p+=v;break}h-=v,m&&(m=0)}return i.length>p?i.slice(0,p):i},o.prototype.shallowSlice=function(i,a){if(i=i||0,a=typeof a!="number"?this.length:a,i<0&&(i+=this.length),a<0&&(a+=this.length),i===a)return this._new();let s=this._offset(i),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)},o.prototype.toString=function(i,a,s){return this.slice(a,s).toString(i)},o.prototype.consume=function(i){if(i=Math.trunc(i),Number.isNaN(i)||i<=0)return this;for(;this._bufs.length;)if(i>=this._bufs[0].length)i-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(i),this.length-=i;break}return this},o.prototype.duplicate=function(){let i=this._new();for(let a=0;athis.length?this.length:a;let l=this._offset(a),c=l[0],u=l[1];for(;c=i.length){let h=f.indexOf(i,u);if(h!==-1)return this._reverseOffset([c,h]);u=f.length-i.length+1}else{let h=this._reverseOffset([c,u]);if(this._match(h,i))return h;u++}u=0}return-1},o.prototype._match=function(i,a){if(this.length-i{Vt(),qt(),Kt();var n=Np().Duplex,r=LSe(),o=BSe();function i(a){if(!(this instanceof i))return new i(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}o._init.call(this,a),n.call(this)}r(i,n),Object.assign(i.prototype,o.prototype),i.prototype._new=function(a){return new i(a)},i.prototype._write=function(a,s,l){this._appendBuffer(a),typeof l=="function"&&l()},i.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)},i.prototype.end=function(a){n.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},i.prototype._destroy=function(a,s){this._bufs.length=0,this.length=0,s(a)},i.prototype._isBufferList=function(a){return a instanceof i||a instanceof o||i.isBufferList(a)},i.isBufferList=o.isBufferList,t.exports=i,t.exports.BufferListStream=i,t.exports.BufferList=o}),HSe=Zt((e,t)=>{Vt(),qt(),Kt();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}),QJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=t.exports,{Buffer:r}=(Bi(),Qr(Li));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 i in n.requiredHeaderFlags){let a=n.requiredHeaderFlags[i];n.requiredHeaderFlagsErrors[i]="Invalid header flag bits, must be 0x"+a.toString(16)+" for "+n.types[i]+" packet"}n.codes={};for(let i in n.types){let a=n.types[i];n.codes[a]=i}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<[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[i]<r.from([i])),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"}}),USe=Zt((e,t)=>{Vt(),qt(),Kt();var n=1e3,r=n*60,o=r*60,i=o*24,a=i*7,s=i*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]),g=(p[2]||"ms").toLowerCase();switch(g){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*i;case"hours":case"hour":case"hrs":case"hr":case"h":return m*o;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>=i?Math.round(h/i)+"d":p>=o?Math.round(h/o)+"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>=i?f(h,p,i,"day"):p>=o?f(h,p,o,"hour"):p>=r?f(h,p,r,"minute"):p>=n?f(h,p,n,"second"):h+" ms"}function f(h,p,m,g){var v=p>=m*1.5;return Math.round(h/m)+" "+g+(v?"s":"")}}),WSe=Zt((e,t)=>{Vt(),qt(),Kt();function n(r){i.debug=i,i.default=i,i.coerce=f,i.disable=l,i.enable=s,i.enabled=c,i.humanize=USe(),i.destroy=h,Object.keys(r).forEach(p=>{i[p]=r[p]}),i.names=[],i.skips=[],i.formatters={};function o(p){let m=0;for(let g=0;g{if(_==="%%")return"%";x++;let O=i.formatters[P];if(typeof O=="function"){let I=S[x];_=O.call(w,I),S.splice(x,1),x--}return _}),i.formatArgs.call(w,S),(w.log||i.log).apply(w,S)}return y.namespace=p,y.useColors=i.useColors(),y.color=i.selectColor(p),y.extend=a,y.destroy=i.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==i.namespaces&&(v=i.namespaces,b=i.enabled(p)),b),set:S=>{g=S}}),typeof i.init=="function"&&i.init(y),y}function a(p,m){let g=i(this.namespace+(typeof m>"u"?":":m)+p);return g.log=this.log,g}function s(p){i.save(p),i.namespaces=p,i.names=[],i.skips=[];let m,g=(typeof p=="string"?p:"").split(/[\s,]+/),v=g.length;for(m=0;m"-"+m)].join(",");return i.enable(""),p}function c(p){if(p[p.length-1]==="*")return!0;let m,g;for(m=0,g=i.skips.length;m{Vt(),qt(),Kt(),e.formatArgs=r,e.save=o,e.load=i,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,f=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(f=u))}),l.splice(f,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof jr<"u"&&"env"in jr&&(l=jr.env.DEBUG),l}function a(){try{return localStorage}catch{}}t.exports=WSe()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),VSe=Zt((e,t)=>{Vt(),qt(),Kt();var n=zSe(),{EventEmitter:r}=(bv(),Qr(kp)),o=HSe(),i=QJ(),a=Ju()("mqtt-packet:parser"),s=class V4 extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof V4?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new V4().parser(c)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,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>>i.CMD_SHIFT;this.packet.cmd=i.types[u];let f=c&15,h=i.requiredHeaderFlags[u];return h!=null&&f!==h?this._emitError(new Error(i.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&i.RETAIN_MASK)!==0,this.packet.qos=c>>i.QOS_SHIFT&i.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&i.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,f,h,p={},m=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=g,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)&i.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&i.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&i.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&i.WILL_RETAIN_MASK),b=(this._list.readUInt8(this._pos)&i.WILL_QOS_MASK)>>i.WILL_QOS_SHIFT;if(p.will)m.will={},m.will.retain=v,m.will.qos=b;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(b)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)&i.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 S=this._parseProperties();Object.getOwnPropertyNames(S).length&&(m.properties=S)}let y=this._parseString();if(y===null)return this._emitError(new Error("Packet too short"));if(m.clientId=y,a("_parseConnect: packet.clientId: %s",m.clientId),p.will){if(m.protocolVersion===5){let S=this._parseProperties();Object.getOwnPropertyNames(S).length&&(m.will.properties=S)}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(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));m.password=f}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&i.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 f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}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,f,h,p,m,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(c.properties=b)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(h=f&i.SUBSCRIBE_OPTIONS_QOS_MASK,h>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(f>>i.SUBSCRIBE_OPTIONS_NL_SHIFT&i.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(f>>i.SUBSCRIBE_OPTIONS_RAP_SHIFT&i.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,p=f>>i.SUBSCRIBE_OPTIONS_RH_SHIFT&i.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:h},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=p):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_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._pos2&&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._pos2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!i.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!i.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(),i.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(),!i.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(),f=u+this._pos;if(u===-1||f>this._list.length||f>this.packet.length)return null;let h=this._list.toString("utf8",this._pos,f);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 f=this._list.slice(this._pos,u);return this._pos+=c,a("_parseBuffer: result: %o",f),f}_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,f=0,h=1,p=0,m=!1,g,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),m?c?m={bytes:f,value:p}:m=p:m=!1,a("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),r=65536,o={},i=n.isBuffer(n.from([1,2]).subarray(0,1));function a(u){let f=n.allocUnsafe(2);return f.writeUInt8(u>>8,0),f.writeUInt8(u&255,1),f}function s(){for(let u=0;u0&&(f=f|128),p.writeUInt8(f,h++);while(u>0&&h<4);return u>0&&(h=0),i?p.subarray(0,h):p.slice(0,h)}function c(u){let f=n.allocUnsafe(4);return f.writeUInt32BE(u,0),f}t.exports={cache:o,generateCache:s,generateNumber:a,genBufVariableByteInt:l,generate4ByteBuffer:c}}),qSe=Zt((e,t)=>{Vt(),qt(),Kt(),typeof jr>"u"||!jr.version||jr.version.indexOf("v0.")===0||jr.version.indexOf("v1.")===0&&jr.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=jr;function n(r,o,i,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 jr.nextTick(r);case 2:return jr.nextTick(function(){r.call(null,o)});case 3:return jr.nextTick(function(){r.call(null,o,i)});case 4:return jr.nextTick(function(){r.call(null,o,i,a)});default:for(l=new Array(s-1),c=0;c{Vt(),qt(),Kt();var n=QJ(),{Buffer:r}=(Bi(),Qr(Li)),o=r.allocUnsafe(0),i=r.from([0]),a=KSe(),s=qSe().nextTick,l=Ju()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,f=a.generateCache,h=a.genBufVariableByteInt,p=a.generate4ByteBuffer,m=k,g=!0;function v(G,X,ne){switch(l("generate called"),X.cork&&(X.cork(),s(b,X)),g&&(g=!1,f()),l("generate: packet.cmd: %s",G.cmd),G.cmd){case"connect":return y(G,X);case"connack":return S(G,X,ne);case"publish":return w(G,X,ne);case"puback":case"pubrec":case"pubrel":case"pubcomp":return E(G,X,ne);case"subscribe":return C(G,X,ne);case"suback":return x(G,X,ne);case"unsubscribe":return _(G,X,ne);case"unsuback":return P(G,X,ne);case"pingreq":case"pingresp":return O(G,X);case"disconnect":return I(G,X,ne);case"auth":return M(G,X,ne);default:return X.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===k},set(G){G?((!c||Object.keys(c).length===0)&&(g=!0),m=k):(g=!1,m=F)}});function b(G){G.uncork()}function y(G,X,ne){let le=G||{},ce=le.protocolId||"MQTT",oe=le.protocolVersion||4,se=le.will,fe=le.clean,te=le.keepalive||0,he=le.clientId||"",pe=le.username,Oe=le.password,Me=le.properties;fe===void 0&&(fe=!0);let Se=0;if(!ce||typeof ce!="string"&&!r.isBuffer(ce))return X.destroy(new Error("Invalid protocolId")),!1;if(Se+=ce.length+2,oe!==3&&oe!==4&&oe!==5)return X.destroy(new Error("Invalid protocol version")),!1;if(Se+=1,(typeof he=="string"||r.isBuffer(he))&&(he||oe>=4)&&(he||fe))Se+=r.byteLength(he)+2;else{if(oe<4)return X.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(fe*1===0)return X.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof te!="number"||te<0||te>65535||te%1!==0)return X.destroy(new Error("Invalid keepalive")),!1;Se+=2,Se+=1;let ye,ve;if(oe===5){if(ye=K(X,Me),!ye)return!1;Se+=ye.length}if(se){if(typeof se!="object")return X.destroy(new Error("Invalid will")),!1;if(!se.topic||typeof se.topic!="string")return X.destroy(new Error("Invalid will topic")),!1;if(Se+=r.byteLength(se.topic)+2,Se+=2,se.payload)if(se.payload.length>=0)typeof se.payload=="string"?Se+=r.byteLength(se.payload):Se+=se.payload.length;else return X.destroy(new Error("Invalid will payload")),!1;if(ve={},oe===5){if(ve=K(X,se.properties),!ve)return!1;Se+=ve.length}}let be=!1;if(pe!=null)if(ie(pe))be=!0,Se+=r.byteLength(pe)+2;else return X.destroy(new Error("Invalid username")),!1;if(Oe!=null){if(!be)return X.destroy(new Error("Username is required to use password")),!1;if(ie(Oe))Se+=re(Oe)+2;else return X.destroy(new Error("Invalid password")),!1}X.write(n.CONNECT_HEADER),D(X,Se),W(X,ce),le.bridgeMode&&(oe+=128),X.write(oe===131?n.VERSION131:oe===132?n.VERSION132:oe===4?n.VERSION4:oe===5?n.VERSION5:n.VERSION3);let Pe=0;return Pe|=pe!=null?n.USERNAME_MASK:0,Pe|=Oe!=null?n.PASSWORD_MASK:0,Pe|=se&&se.retain?n.WILL_RETAIN_MASK:0,Pe|=se&&se.qos?se.qos<0&&m(X,he),Me==null||Me.write(),l("publish: payload: %o",te),X.write(te)}function E(G,X,ne){let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.cmd||"puback",se=ce.messageId,fe=ce.dup&&oe==="pubrel"?n.DUP_MASK:0,te=0,he=ce.reasonCode,pe=ce.properties,Oe=le===5?3:2;if(oe==="pubrel"&&(te=1),typeof se!="number")return X.destroy(new Error("Invalid messageId")),!1;let Me=null;if(le===5&&typeof pe=="object"){if(Me=L(X,pe,ne,Oe),!Me)return!1;Oe+=Me.length}return X.write(n.ACKS[oe][te][fe][0]),Oe===3&&(Oe+=he!==0?1:-1),D(X,Oe),m(X,se),le===5&&Oe!==2&&X.write(r.from([he])),Me!==null?Me.write():Oe===4&&X.write(r.from([0])),!0}function C(G,X,ne){l("subscribe: packet: ");let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.dup?n.DUP_MASK:0,se=ce.messageId,fe=ce.subscriptions,te=ce.properties,he=0;if(typeof se!="number")return X.destroy(new Error("Invalid messageId")),!1;he+=2;let pe=null;if(le===5){if(pe=K(X,te),!pe)return!1;he+=pe.length}if(typeof fe=="object"&&fe.length)for(let Me=0;Me2)return X.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}he+=r.byteLength(Se)+2+1}else return X.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),X.write(n.SUBSCRIBE_HEADER[1][oe?1:0][0]),D(X,he),m(X,se),pe!==null&&pe.write();let Oe=!0;for(let Me of fe){let Se=Me.topic,ye=Me.qos,ve=+Me.nl,be=+Me.rap,Pe=Me.rh,Ne;A(X,Se),Ne=n.SUBSCRIBE_OPTIONS_QOS[ye],le===5&&(Ne|=ve?n.SUBSCRIBE_OPTIONS_NL:0,Ne|=be?n.SUBSCRIBE_OPTIONS_RAP:0,Ne|=Pe?n.SUBSCRIBE_OPTIONS_RH[Pe]:0),Oe=X.write(r.from([Ne]))}return Oe}function x(G,X,ne){let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.messageId,se=ce.granted,fe=ce.properties,te=0;if(typeof oe!="number")return X.destroy(new Error("Invalid messageId")),!1;if(te+=2,typeof se=="object"&&se.length)for(let pe=0;pen.VARBYTEINT_MAX)return G.destroy(new Error(`Invalid variable byte integer: ${X}`)),!1;let ne=T[X];return ne||(ne=h(X),X<16384&&(T[X]=ne)),l("writeVarByteInt: writing to stream: %o",ne),G.write(ne)}function A(G,X){let ne=r.byteLength(X);return m(G,ne),l("writeString: %s",X),G.write(X,"utf8")}function j(G,X,ne){A(G,X),A(G,ne)}function k(G,X){return l("writeNumberCached: number: %d",X),l("writeNumberCached: %o",c[X]),G.write(c[X])}function F(G,X){let ne=u(X);return l("writeNumberGenerated: %o",ne),G.write(ne)}function V(G,X){let ne=p(X);return l("write4ByteNumber: %o",ne),G.write(ne)}function W(G,X){typeof X=="string"?A(G,X):X?(m(G,X.length),G.write(X)):m(G,0)}function K(G,X){if(typeof X!="object"||X.length!=null)return{length:1,write(){ee(G,{},0)}};let ne=0;function le(ce,oe){let se=n.propertiesTypes[ce],fe=0;switch(se){case"byte":{if(typeof oe!="boolean")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=2;break}case"int8":{if(typeof oe!="number"||oe<0||oe>255)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=2;break}case"binary":{if(oe&&oe===null)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=1+r.byteLength(oe)+2;break}case"int16":{if(typeof oe!="number"||oe<0||oe>65535)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=3;break}case"int32":{if(typeof oe!="number"||oe<0||oe>4294967295)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=5;break}case"var":{if(typeof oe!="number"||oe<0||oe>268435455)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=1+r.byteLength(h(oe));break}case"string":{if(typeof oe!="string")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=3+r.byteLength(oe.toString());break}case"pair":{if(typeof oe!="object")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=Object.getOwnPropertyNames(oe).reduce((te,he)=>{let pe=oe[he];return Array.isArray(pe)?te+=pe.reduce((Oe,Me)=>(Oe+=3+r.byteLength(he.toString())+2+r.byteLength(Me.toString()),Oe),0):te+=3+r.byteLength(he.toString())+2+r.byteLength(oe[he].toString()),te},0);break}default:return G.destroy(new Error(`Invalid property ${ce}: ${oe}`)),!1}return fe}if(X)for(let ce in X){let oe=0,se=0,fe=X[ce];if(Array.isArray(fe))for(let te=0;teoe;){let fe=ce.shift();if(fe&&X[fe])delete X[fe],se=K(G,X);else return!1}return se}function Q(G,X,ne){switch(n.propertiesTypes[X]){case"byte":{G.write(r.from([n.properties[X]])),G.write(r.from([+ne]));break}case"int8":{G.write(r.from([n.properties[X]])),G.write(r.from([ne]));break}case"binary":{G.write(r.from([n.properties[X]])),W(G,ne);break}case"int16":{G.write(r.from([n.properties[X]])),m(G,ne);break}case"int32":{G.write(r.from([n.properties[X]])),V(G,ne);break}case"var":{G.write(r.from([n.properties[X]])),D(G,ne);break}case"string":{G.write(r.from([n.properties[X]])),A(G,ne);break}case"pair":{Object.getOwnPropertyNames(ne).forEach(le=>{let ce=ne[le];Array.isArray(ce)?ce.forEach(oe=>{G.write(r.from([n.properties[X]])),j(G,le.toString(),oe.toString())}):(G.write(r.from([n.properties[X]])),j(G,le.toString(),ce.toString()))});break}default:return G.destroy(new Error(`Invalid property ${X} value: ${ne}`)),!1}}function ee(G,X,ne){D(G,ne);for(let le in X)if(Object.prototype.hasOwnProperty.call(X,le)&&X[le]!==null){let ce=X[le];if(Array.isArray(ce))for(let oe=0;oe{Vt(),qt(),Kt();var n=JJ(),{EventEmitter:r}=(bv(),Qr(kp)),{Buffer:o}=(Bi(),Qr(Li));function i(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,f;for(f=0;f{Vt(),qt(),Kt(),e.parser=VSe().parser,e.generate=GSe(),e.writeToStream=JJ()}),ZJ=Zt(e=>{Vt(),qt(),Kt(),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}),XSe=Zt((e,t)=>{Vt(),qt(),Kt(),t.exports=r;function n(i){return i instanceof c2?c2.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function r(i){if(i=i||{},i.circles)return o(i);return i.proto?l:s;function a(c,u){for(var f=Object.keys(c),h=new Array(f.length),p=0;p{Vt(),qt(),Kt(),t.exports=XSe()()}),JSe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let o=r.split("/");for(let i=0;i{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Np(),n={objectMode:!0},r={clean:!0},o=class{constructor(i){this.options=i||{},this.options=Object.assign(Object.assign({},r),i),this._inflights=new Map}put(i,a){return this._inflights.set(i.messageId,i),a&&a(),this}createStream(){let i=new t.Readable(n),a=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{a.push(c)}),i._read=()=>{!s&&l{if(!s)return s=!0,setTimeout(()=>{i.emit("close")},0),i},i}del(i,a){let s=this._inflights.get(i.messageId);return s?(this._inflights.delete(i.messageId),a(null,s)):a&&a(new Error("missing packet")),this}get(i,a){let s=this._inflights.get(i.messageId);return s?a(null,s):a&&a(new Error("missing packet")),this}close(i){this.options.clean&&(this._inflights=null),i&&i()}};e.default=o}),ZSe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,o,i)=>{r.log("handlePublish: packet %o",o),i=typeof i<"u"?i:r.noop;let a=o.topic.toString(),s=o.payload,{qos:l}=o,{messageId:c}=o,{options:u}=r;if(r.options.protocolVersion===5){let f;if(o.properties&&(f=o.properties.topicAlias),typeof f<"u")if(a.length===0)if(f>0&&f<=65535){let h=r.topicAliasRecv.getTopicByAlias(f);if(h)a=h,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,f);else{r.log("handlePublish :: unregistered topic alias. alias: %d",f),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(a,f))r.log("handlePublish :: registered topic: %s - alias: %d",a,f);else{r.log("handlePublish :: topic alias out of range. alias: %d",f),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,o,(f,h)=>{if(typeof f=="number"&&(h=f,f=null),f)return r.emit("error",f);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},i):r.incomingStore.put(o,()=>{r._sendPacket({cmd:"pubrec",messageId:c},i)})});break}case 1:{u.customHandleAcks(a,s,o,(f,h)=>{if(typeof f=="number"&&(h=f,f=null),f)return r.emit("error",f);if(t.indexOf(h)===-1)return r.emit("error",new Error("Wrong reason code for puback"));h||r.emit("message",a,s,o),r.handleMessage(o,p=>{if(p)return i&&i(p);r._sendPacket({cmd:"puback",messageId:c,reasonCode:h},i)})});break}case 0:r.emit("message",a,s,o),r.handleMessage(o,i);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),eCe=Zt((e,t)=>{t.exports={version:"5.10.3"}}),Sv=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class tZ extends Error{constructor(o,i){super(o),this.code=i,Object.setPrototypeOf(this,tZ.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,o,i=!1){var a;let s=[o];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))(i||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(jr==null?void 0:jr.nextTick)=="function"?jr.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=eCe().version}),D_=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=Sv();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,o)=>{let{messageId:i}=o,a=o.cmd,s=null,l=r.outgoing[i]?r.outgoing[i].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=o.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(i,()=>{l(c,o)})):r._removeOutgoingAndStoreMessage(i,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:i};let u=o.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(i,()=>{l(c,o)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i);let u=o.granted;for(let f=0;f{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[i],r._invokeStoreProcessingQueue(),l(c,o);break}case"unsuback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i),r._invokeStoreProcessingQueue(),l(null,o);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),tCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Sv(),n=D_(),r=(o,i)=>{let{options:a}=o,s=a.protocolVersion,l=s===5?i.reasonCode:i.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);o.emit("error",c);return}o.handleAuth(i,(c,u)=>{if(c){o.emit("error",c);return}if(l===24)o.reconnecting=!1,o._sendPacket(u);else{let f=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);o.emit("error",f)}})};e.default=r}),nCe=Zt(e=>{var p,m,g,v,b,y,S,w,E,C,x,_,P,O,I,M,T,D,A,j,k,F,V,W,K,L,K4,ee,re,ie,G,nZ,ne,le,ce,Md,Td,q4,Lw,Bw,vo,G4,cy,Se;Vt(),qt(),Kt(),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 jr=="object"&&jr?jr:{},o=(ye,ve,be,Pe)=>{typeof r.emitWarning=="function"?r.emitWarning(ye,ve,be,Pe):console.error(`[${be}] ${ve}: ${ye}`)},i=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof i>"u"){a=class{constructor(){Pr(this,"onabort");Pr(this,"_onabort",[]);Pr(this,"reason");Pr(this,"aborted",!1)}addEventListener(be,Pe){this._onabort.push(Pe)}},i=class{constructor(){Pr(this,"signal",new a);ve()}abort(be){var Pe,Ne;if(!this.signal.aborted){this.signal.reason=be,this.signal.aborted=!0;for(let U of this.signal._onabort)U(be);(Ne=(Pe=this.signal).onabort)==null||Ne.call(Pe,be)}}};let ye=((p=r.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",ve=()=>{ye&&(ye=!1,o("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",ve))}}var s=ye=>!n.has(ye),l=ye=>ye&&ye===Math.floor(ye)&&ye>0&&isFinite(ye),c=ye=>l(ye)?ye<=Math.pow(2,8)?Uint8Array:ye<=Math.pow(2,16)?Uint16Array:ye<=Math.pow(2,32)?Uint32Array:ye<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(ye){super(ye),this.fill(0)}},f=(m=class{constructor(ve,be){Pr(this,"heap");Pr(this,"length");if(!Ae(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new be(ve),this.length=0}static create(ve){let be=c(ve);if(!be)return[];cn(m,g,!0);let Pe=new m(ve,be);return cn(m,g,!1),Pe}push(ve){this.heap[this.length++]=ve}pop(){return this.heap[--this.length]}},g=new WeakMap,Tn(m,g,!1),m),h=(Se=class{constructor(ve){Tn(this,L);Tn(this,v);Tn(this,b);Tn(this,y);Tn(this,S);Tn(this,w);Pr(this,"ttl");Pr(this,"ttlResolution");Pr(this,"ttlAutopurge");Pr(this,"updateAgeOnGet");Pr(this,"updateAgeOnHas");Pr(this,"allowStale");Pr(this,"noDisposeOnSet");Pr(this,"noUpdateTTL");Pr(this,"maxEntrySize");Pr(this,"sizeCalculation");Pr(this,"noDeleteOnFetchRejection");Pr(this,"noDeleteOnStaleGet");Pr(this,"allowStaleOnFetchAbort");Pr(this,"allowStaleOnFetchRejection");Pr(this,"ignoreFetchAbort");Tn(this,E);Tn(this,C);Tn(this,x);Tn(this,_);Tn(this,P);Tn(this,O);Tn(this,I);Tn(this,M);Tn(this,T);Tn(this,D);Tn(this,A);Tn(this,j);Tn(this,k);Tn(this,F);Tn(this,V);Tn(this,W);Tn(this,K);Tn(this,ee,()=>{});Tn(this,re,()=>{});Tn(this,ie,()=>{});Tn(this,G,()=>!1);Tn(this,ne,ve=>{});Tn(this,le,(ve,be,Pe)=>{});Tn(this,ce,(ve,be,Pe,Ne)=>{if(Pe||Ne)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:be=0,ttl:Pe,ttlResolution:Ne=1,ttlAutopurge:U,updateAgeOnGet:H,updateAgeOnHas:q,allowStale:me,dispose:Ce,disposeAfter:ue,noDisposeOnSet:Le,noUpdateTTL:He,maxSize:ge=0,maxEntrySize:De=0,sizeCalculation:qe,fetchMethod:Fe,noDeleteOnFetchRejection:Ke,noDeleteOnStaleGet:Ue,allowStaleOnFetchRejection:Ve,allowStaleOnFetchAbort:Tt,ignoreFetchAbort:et}=ve;if(be!==0&&!l(be))throw new TypeError("max option must be a nonnegative integer");let st=be?c(be):Array;if(!st)throw new Error("invalid max value: "+be);if(cn(this,v,be),cn(this,b,ge),this.maxEntrySize=De||Ae(this,b),this.sizeCalculation=qe,this.sizeCalculation){if(!Ae(this,b)&&!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(Fe!==void 0&&typeof Fe!="function")throw new TypeError("fetchMethod must be a function if specified");if(cn(this,w,Fe),cn(this,W,!!Fe),cn(this,x,new Map),cn(this,_,new Array(be).fill(void 0)),cn(this,P,new Array(be).fill(void 0)),cn(this,O,new st(be)),cn(this,I,new st(be)),cn(this,M,0),cn(this,T,0),cn(this,D,f.create(be)),cn(this,E,0),cn(this,C,0),typeof Ce=="function"&&cn(this,y,Ce),typeof ue=="function"?(cn(this,S,ue),cn(this,A,[])):(cn(this,S,void 0),cn(this,A,void 0)),cn(this,V,!!Ae(this,y)),cn(this,K,!!Ae(this,S)),this.noDisposeOnSet=!!Le,this.noUpdateTTL=!!He,this.noDeleteOnFetchRejection=!!Ke,this.allowStaleOnFetchRejection=!!Ve,this.allowStaleOnFetchAbort=!!Tt,this.ignoreFetchAbort=!!et,this.maxEntrySize!==0){if(Ae(this,b)!==0&&!l(Ae(this,b)))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");wn(this,L,nZ).call(this)}if(this.allowStale=!!me,this.noDeleteOnStaleGet=!!Ue,this.updateAgeOnGet=!!H,this.updateAgeOnHas=!!q,this.ttlResolution=l(Ne)||Ne===0?Ne:1,this.ttlAutopurge=!!U,this.ttl=Pe||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");wn(this,L,K4).call(this)}if(Ae(this,v)===0&&this.ttl===0&&Ae(this,b)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Ae(this,v)&&!Ae(this,b)){let yt="LRU_CACHE_UNBOUNDED";s(yt)&&(n.add(yt),o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",yt,Se))}}static unsafeExposeInternals(ve){return{starts:Ae(ve,k),ttls:Ae(ve,F),sizes:Ae(ve,j),keyMap:Ae(ve,x),keyList:Ae(ve,_),valList:Ae(ve,P),next:Ae(ve,O),prev:Ae(ve,I),get head(){return Ae(ve,M)},get tail(){return Ae(ve,T)},free:Ae(ve,D),isBackgroundFetch:be=>{var Pe;return wn(Pe=ve,L,vo).call(Pe,be)},backgroundFetch:(be,Pe,Ne,U)=>{var H;return wn(H=ve,L,Bw).call(H,be,Pe,Ne,U)},moveToTail:be=>{var Pe;return wn(Pe=ve,L,cy).call(Pe,be)},indexes:be=>{var Pe;return wn(Pe=ve,L,Md).call(Pe,be)},rindexes:be=>{var Pe;return wn(Pe=ve,L,Td).call(Pe,be)},isStale:be=>{var Pe;return Ae(Pe=ve,G).call(Pe,be)}}}get max(){return Ae(this,v)}get maxSize(){return Ae(this,b)}get calculatedSize(){return Ae(this,C)}get size(){return Ae(this,E)}get fetchMethod(){return Ae(this,w)}get dispose(){return Ae(this,y)}get disposeAfter(){return Ae(this,S)}getRemainingTTL(ve){return Ae(this,x).has(ve)?1/0:0}*entries(){for(let ve of wn(this,L,Md).call(this))Ae(this,P)[ve]!==void 0&&Ae(this,_)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield[Ae(this,_)[ve],Ae(this,P)[ve]])}*rentries(){for(let ve of wn(this,L,Td).call(this))Ae(this,P)[ve]!==void 0&&Ae(this,_)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield[Ae(this,_)[ve],Ae(this,P)[ve]])}*keys(){for(let ve of wn(this,L,Md).call(this)){let be=Ae(this,_)[ve];be!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield be)}}*rkeys(){for(let ve of wn(this,L,Td).call(this)){let be=Ae(this,_)[ve];be!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield be)}}*values(){for(let ve of wn(this,L,Md).call(this))Ae(this,P)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield Ae(this,P)[ve])}*rvalues(){for(let ve of wn(this,L,Td).call(this))Ae(this,P)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield Ae(this,P)[ve])}[Symbol.iterator](){return this.entries()}find(ve,be={}){for(let Pe of wn(this,L,Md).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;if(U!==void 0&&ve(U,Ae(this,_)[Pe],this))return this.get(Ae(this,_)[Pe],be)}}forEach(ve,be=this){for(let Pe of wn(this,L,Md).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;U!==void 0&&ve.call(be,U,Ae(this,_)[Pe],this)}}rforEach(ve,be=this){for(let Pe of wn(this,L,Td).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;U!==void 0&&ve.call(be,U,Ae(this,_)[Pe],this)}}purgeStale(){let ve=!1;for(let be of wn(this,L,Td).call(this,{allowStale:!0}))Ae(this,G).call(this,be)&&(this.delete(Ae(this,_)[be]),ve=!0);return ve}dump(){let ve=[];for(let be of wn(this,L,Md).call(this,{allowStale:!0})){let Pe=Ae(this,_)[be],Ne=Ae(this,P)[be],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;if(U===void 0||Pe===void 0)continue;let H={value:U};if(Ae(this,F)&&Ae(this,k)){H.ttl=Ae(this,F)[be];let q=t.now()-Ae(this,k)[be];H.start=Math.floor(Date.now()-q)}Ae(this,j)&&(H.size=Ae(this,j)[be]),ve.unshift([Pe,H])}return ve}load(ve){this.clear();for(let[be,Pe]of ve){if(Pe.start){let Ne=Date.now()-Pe.start;Pe.start=t.now()-Ne}this.set(be,Pe.value,Pe)}}set(ve,be,Pe={}){var He,ge,De,qe,Fe;if(be===void 0)return this.delete(ve),this;let{ttl:Ne=this.ttl,start:U,noDisposeOnSet:H=this.noDisposeOnSet,sizeCalculation:q=this.sizeCalculation,status:me}=Pe,{noUpdateTTL:Ce=this.noUpdateTTL}=Pe,ue=Ae(this,ce).call(this,ve,be,Pe.size||0,q);if(this.maxEntrySize&&ue>this.maxEntrySize)return me&&(me.set="miss",me.maxEntrySizeExceeded=!0),this.delete(ve),this;let Le=Ae(this,E)===0?void 0:Ae(this,x).get(ve);if(Le===void 0)Le=Ae(this,E)===0?Ae(this,T):Ae(this,D).length!==0?Ae(this,D).pop():Ae(this,E)===Ae(this,v)?wn(this,L,Lw).call(this,!1):Ae(this,E),Ae(this,_)[Le]=ve,Ae(this,P)[Le]=be,Ae(this,x).set(ve,Le),Ae(this,O)[Ae(this,T)]=Le,Ae(this,I)[Le]=Ae(this,T),cn(this,T,Le),Yf(this,E)._++,Ae(this,le).call(this,Le,ue,me),me&&(me.set="add"),Ce=!1;else{wn(this,L,cy).call(this,Le);let Ke=Ae(this,P)[Le];if(be!==Ke){if(Ae(this,W)&&wn(this,L,vo).call(this,Ke)){Ke.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ue}=Ke;Ue!==void 0&&!H&&(Ae(this,V)&&((He=Ae(this,y))==null||He.call(this,Ue,ve,"set")),Ae(this,K)&&((ge=Ae(this,A))==null||ge.push([Ue,ve,"set"])))}else H||(Ae(this,V)&&((De=Ae(this,y))==null||De.call(this,Ke,ve,"set")),Ae(this,K)&&((qe=Ae(this,A))==null||qe.push([Ke,ve,"set"])));if(Ae(this,ne).call(this,Le),Ae(this,le).call(this,Le,ue,me),Ae(this,P)[Le]=be,me){me.set="replace";let Ue=Ke&&wn(this,L,vo).call(this,Ke)?Ke.__staleWhileFetching:Ke;Ue!==void 0&&(me.oldValue=Ue)}}else me&&(me.set="update")}if(Ne!==0&&!Ae(this,F)&&wn(this,L,K4).call(this),Ae(this,F)&&(Ce||Ae(this,ie).call(this,Le,Ne,U),me&&Ae(this,re).call(this,me,Le)),!H&&Ae(this,K)&&Ae(this,A)){let Ke=Ae(this,A),Ue;for(;Ue=Ke==null?void 0:Ke.shift();)(Fe=Ae(this,S))==null||Fe.call(this,...Ue)}return this}pop(){var ve;try{for(;Ae(this,E);){let be=Ae(this,P)[Ae(this,M)];if(wn(this,L,Lw).call(this,!0),wn(this,L,vo).call(this,be)){if(be.__staleWhileFetching)return be.__staleWhileFetching}else if(be!==void 0)return be}}finally{if(Ae(this,K)&&Ae(this,A)){let be=Ae(this,A),Pe;for(;Pe=be==null?void 0:be.shift();)(ve=Ae(this,S))==null||ve.call(this,...Pe)}}}has(ve,be={}){let{updateAgeOnHas:Pe=this.updateAgeOnHas,status:Ne}=be,U=Ae(this,x).get(ve);if(U!==void 0){let H=Ae(this,P)[U];if(wn(this,L,vo).call(this,H)&&H.__staleWhileFetching===void 0)return!1;if(Ae(this,G).call(this,U))Ne&&(Ne.has="stale",Ae(this,re).call(this,Ne,U));else return Pe&&Ae(this,ee).call(this,U),Ne&&(Ne.has="hit",Ae(this,re).call(this,Ne,U)),!0}else Ne&&(Ne.has="miss");return!1}peek(ve,be={}){let{allowStale:Pe=this.allowStale}=be,Ne=Ae(this,x).get(ve);if(Ne!==void 0&&(Pe||!Ae(this,G).call(this,Ne))){let U=Ae(this,P)[Ne];return wn(this,L,vo).call(this,U)?U.__staleWhileFetching:U}}async fetch(ve,be={}){let{allowStale:Pe=this.allowStale,updateAgeOnGet:Ne=this.updateAgeOnGet,noDeleteOnStaleGet:U=this.noDeleteOnStaleGet,ttl:H=this.ttl,noDisposeOnSet:q=this.noDisposeOnSet,size:me=0,sizeCalculation:Ce=this.sizeCalculation,noUpdateTTL:ue=this.noUpdateTTL,noDeleteOnFetchRejection:Le=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:He=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:De=this.allowStaleOnFetchAbort,context:qe,forceRefresh:Fe=!1,status:Ke,signal:Ue}=be;if(!Ae(this,W))return Ke&&(Ke.fetch="get"),this.get(ve,{allowStale:Pe,updateAgeOnGet:Ne,noDeleteOnStaleGet:U,status:Ke});let Ve={allowStale:Pe,updateAgeOnGet:Ne,noDeleteOnStaleGet:U,ttl:H,noDisposeOnSet:q,size:me,sizeCalculation:Ce,noUpdateTTL:ue,noDeleteOnFetchRejection:Le,allowStaleOnFetchRejection:He,allowStaleOnFetchAbort:De,ignoreFetchAbort:ge,status:Ke,signal:Ue},Tt=Ae(this,x).get(ve);if(Tt===void 0){Ke&&(Ke.fetch="miss");let et=wn(this,L,Bw).call(this,ve,Tt,Ve,qe);return et.__returned=et}else{let et=Ae(this,P)[Tt];if(wn(this,L,vo).call(this,et)){let Lt=Pe&&et.__staleWhileFetching!==void 0;return Ke&&(Ke.fetch="inflight",Lt&&(Ke.returnedStale=!0)),Lt?et.__staleWhileFetching:et.__returned=et}let st=Ae(this,G).call(this,Tt);if(!Fe&&!st)return Ke&&(Ke.fetch="hit"),wn(this,L,cy).call(this,Tt),Ne&&Ae(this,ee).call(this,Tt),Ke&&Ae(this,re).call(this,Ke,Tt),et;let yt=wn(this,L,Bw).call(this,ve,Tt,Ve,qe),gt=yt.__staleWhileFetching!==void 0&&Pe;return Ke&&(Ke.fetch=st?"stale":"refresh",gt&&st&&(Ke.returnedStale=!0)),gt?yt.__staleWhileFetching:yt.__returned=yt}}get(ve,be={}){let{allowStale:Pe=this.allowStale,updateAgeOnGet:Ne=this.updateAgeOnGet,noDeleteOnStaleGet:U=this.noDeleteOnStaleGet,status:H}=be,q=Ae(this,x).get(ve);if(q!==void 0){let me=Ae(this,P)[q],Ce=wn(this,L,vo).call(this,me);return H&&Ae(this,re).call(this,H,q),Ae(this,G).call(this,q)?(H&&(H.get="stale"),Ce?(H&&Pe&&me.__staleWhileFetching!==void 0&&(H.returnedStale=!0),Pe?me.__staleWhileFetching:void 0):(U||this.delete(ve),H&&Pe&&(H.returnedStale=!0),Pe?me:void 0)):(H&&(H.get="hit"),Ce?me.__staleWhileFetching:(wn(this,L,cy).call(this,q),Ne&&Ae(this,ee).call(this,q),me))}else H&&(H.get="miss")}delete(ve){var Pe,Ne,U,H;let be=!1;if(Ae(this,E)!==0){let q=Ae(this,x).get(ve);if(q!==void 0)if(be=!0,Ae(this,E)===1)this.clear();else{Ae(this,ne).call(this,q);let me=Ae(this,P)[q];wn(this,L,vo).call(this,me)?me.__abortController.abort(new Error("deleted")):(Ae(this,V)||Ae(this,K))&&(Ae(this,V)&&((Pe=Ae(this,y))==null||Pe.call(this,me,ve,"delete")),Ae(this,K)&&((Ne=Ae(this,A))==null||Ne.push([me,ve,"delete"]))),Ae(this,x).delete(ve),Ae(this,_)[q]=void 0,Ae(this,P)[q]=void 0,q===Ae(this,T)?cn(this,T,Ae(this,I)[q]):q===Ae(this,M)?cn(this,M,Ae(this,O)[q]):(Ae(this,O)[Ae(this,I)[q]]=Ae(this,O)[q],Ae(this,I)[Ae(this,O)[q]]=Ae(this,I)[q]),Yf(this,E)._--,Ae(this,D).push(q)}}if(Ae(this,K)&&((U=Ae(this,A))!=null&&U.length)){let q=Ae(this,A),me;for(;me=q==null?void 0:q.shift();)(H=Ae(this,S))==null||H.call(this,...me)}return be}clear(){var ve,be,Pe;for(let Ne of wn(this,L,Td).call(this,{allowStale:!0})){let U=Ae(this,P)[Ne];if(wn(this,L,vo).call(this,U))U.__abortController.abort(new Error("deleted"));else{let H=Ae(this,_)[Ne];Ae(this,V)&&((ve=Ae(this,y))==null||ve.call(this,U,H,"delete")),Ae(this,K)&&((be=Ae(this,A))==null||be.push([U,H,"delete"]))}}if(Ae(this,x).clear(),Ae(this,P).fill(void 0),Ae(this,_).fill(void 0),Ae(this,F)&&Ae(this,k)&&(Ae(this,F).fill(0),Ae(this,k).fill(0)),Ae(this,j)&&Ae(this,j).fill(0),cn(this,M,0),cn(this,T,0),Ae(this,D).length=0,cn(this,C,0),cn(this,E,0),Ae(this,K)&&Ae(this,A)){let Ne=Ae(this,A),U;for(;U=Ne==null?void 0:Ne.shift();)(Pe=Ae(this,S))==null||Pe.call(this,...U)}}},v=new WeakMap,b=new WeakMap,y=new WeakMap,S=new WeakMap,w=new WeakMap,E=new WeakMap,C=new WeakMap,x=new WeakMap,_=new WeakMap,P=new WeakMap,O=new WeakMap,I=new WeakMap,M=new WeakMap,T=new WeakMap,D=new WeakMap,A=new WeakMap,j=new WeakMap,k=new WeakMap,F=new WeakMap,V=new WeakMap,W=new WeakMap,K=new WeakMap,L=new WeakSet,K4=function(){let ve=new u(Ae(this,v)),be=new u(Ae(this,v));cn(this,F,ve),cn(this,k,be),cn(this,ie,(U,H,q=t.now())=>{if(be[U]=H!==0?q:0,ve[U]=H,H!==0&&this.ttlAutopurge){let me=setTimeout(()=>{Ae(this,G).call(this,U)&&this.delete(Ae(this,_)[U])},H+1);me.unref&&me.unref()}}),cn(this,ee,U=>{be[U]=ve[U]!==0?t.now():0}),cn(this,re,(U,H)=>{if(ve[H]){let q=ve[H],me=be[H];U.ttl=q,U.start=me,U.now=Pe||Ne();let Ce=U.now-me;U.remainingTTL=q-Ce}});let Pe=0,Ne=()=>{let U=t.now();if(this.ttlResolution>0){Pe=U;let H=setTimeout(()=>Pe=0,this.ttlResolution);H.unref&&H.unref()}return U};this.getRemainingTTL=U=>{let H=Ae(this,x).get(U);if(H===void 0)return 0;let q=ve[H],me=be[H];if(q===0||me===0)return 1/0;let Ce=(Pe||Ne())-me;return q-Ce},cn(this,G,U=>ve[U]!==0&&be[U]!==0&&(Pe||Ne())-be[U]>ve[U])},ee=new WeakMap,re=new WeakMap,ie=new WeakMap,G=new WeakMap,nZ=function(){let ve=new u(Ae(this,v));cn(this,C,0),cn(this,j,ve),cn(this,ne,be=>{cn(this,C,Ae(this,C)-ve[be]),ve[be]=0}),cn(this,ce,(be,Pe,Ne,U)=>{if(wn(this,L,vo).call(this,Pe))return 0;if(!l(Ne))if(U){if(typeof U!="function")throw new TypeError("sizeCalculation must be a function");if(Ne=U(Pe,be),!l(Ne))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 Ne}),cn(this,le,(be,Pe,Ne)=>{if(ve[be]=Pe,Ae(this,b)){let U=Ae(this,b)-ve[be];for(;Ae(this,C)>U;)wn(this,L,Lw).call(this,!0)}cn(this,C,Ae(this,C)+ve[be]),Ne&&(Ne.entrySize=Pe,Ne.totalCalculatedSize=Ae(this,C))})},ne=new WeakMap,le=new WeakMap,ce=new WeakMap,Md=function*({allowStale:ve=this.allowStale}={}){if(Ae(this,E))for(let be=Ae(this,T);!(!wn(this,L,q4).call(this,be)||((ve||!Ae(this,G).call(this,be))&&(yield be),be===Ae(this,M)));)be=Ae(this,I)[be]},Td=function*({allowStale:ve=this.allowStale}={}){if(Ae(this,E))for(let be=Ae(this,M);!(!wn(this,L,q4).call(this,be)||((ve||!Ae(this,G).call(this,be))&&(yield be),be===Ae(this,T)));)be=Ae(this,O)[be]},q4=function(ve){return ve!==void 0&&Ae(this,x).get(Ae(this,_)[ve])===ve},Lw=function(ve){var U,H;let be=Ae(this,M),Pe=Ae(this,_)[be],Ne=Ae(this,P)[be];return Ae(this,W)&&wn(this,L,vo).call(this,Ne)?Ne.__abortController.abort(new Error("evicted")):(Ae(this,V)||Ae(this,K))&&(Ae(this,V)&&((U=Ae(this,y))==null||U.call(this,Ne,Pe,"evict")),Ae(this,K)&&((H=Ae(this,A))==null||H.push([Ne,Pe,"evict"]))),Ae(this,ne).call(this,be),ve&&(Ae(this,_)[be]=void 0,Ae(this,P)[be]=void 0,Ae(this,D).push(be)),Ae(this,E)===1?(cn(this,M,cn(this,T,0)),Ae(this,D).length=0):cn(this,M,Ae(this,O)[be]),Ae(this,x).delete(Pe),Yf(this,E)._--,be},Bw=function(ve,be,Pe,Ne){let U=be===void 0?void 0:Ae(this,P)[be];if(wn(this,L,vo).call(this,U))return U;let H=new i,{signal:q}=Pe;q==null||q.addEventListener("abort",()=>H.abort(q.reason),{signal:H.signal});let me={signal:H.signal,options:Pe,context:Ne},Ce=(qe,Fe=!1)=>{let{aborted:Ke}=H.signal,Ue=Pe.ignoreFetchAbort&&qe!==void 0;if(Pe.status&&(Ke&&!Fe?(Pe.status.fetchAborted=!0,Pe.status.fetchError=H.signal.reason,Ue&&(Pe.status.fetchAbortIgnored=!0)):Pe.status.fetchResolved=!0),Ke&&!Ue&&!Fe)return Le(H.signal.reason);let Ve=ge;return Ae(this,P)[be]===ge&&(qe===void 0?Ve.__staleWhileFetching?Ae(this,P)[be]=Ve.__staleWhileFetching:this.delete(ve):(Pe.status&&(Pe.status.fetchUpdated=!0),this.set(ve,qe,me.options))),qe},ue=qe=>(Pe.status&&(Pe.status.fetchRejected=!0,Pe.status.fetchError=qe),Le(qe)),Le=qe=>{let{aborted:Fe}=H.signal,Ke=Fe&&Pe.allowStaleOnFetchAbort,Ue=Ke||Pe.allowStaleOnFetchRejection,Ve=Ue||Pe.noDeleteOnFetchRejection,Tt=ge;if(Ae(this,P)[be]===ge&&(!Ve||Tt.__staleWhileFetching===void 0?this.delete(ve):Ke||(Ae(this,P)[be]=Tt.__staleWhileFetching)),Ue)return Pe.status&&Tt.__staleWhileFetching!==void 0&&(Pe.status.returnedStale=!0),Tt.__staleWhileFetching;if(Tt.__returned===Tt)throw qe},He=(qe,Fe)=>{var Ue;let Ke=(Ue=Ae(this,w))==null?void 0:Ue.call(this,ve,U,me);Ke&&Ke instanceof Promise&&Ke.then(Ve=>qe(Ve===void 0?void 0:Ve),Fe),H.signal.addEventListener("abort",()=>{(!Pe.ignoreFetchAbort||Pe.allowStaleOnFetchAbort)&&(qe(void 0),Pe.allowStaleOnFetchAbort&&(qe=Ve=>Ce(Ve,!0)))})};Pe.status&&(Pe.status.fetchDispatched=!0);let ge=new Promise(He).then(Ce,ue),De=Object.assign(ge,{__abortController:H,__staleWhileFetching:U,__returned:void 0});return be===void 0?(this.set(ve,De,{...me.options,status:void 0}),be=Ae(this,x).get(ve)):Ae(this,P)[be]=De,De},vo=function(ve){if(!Ae(this,W))return!1;let be=ve;return!!be&&be instanceof Promise&&be.hasOwnProperty("__staleWhileFetching")&&be.__abortController instanceof i},G4=function(ve,be){Ae(this,I)[be]=ve,Ae(this,O)[ve]=be},cy=function(ve){ve!==Ae(this,T)&&(ve===Ae(this,M)?cn(this,M,Ae(this,O)[ve]):wn(this,L,G4).call(this,Ae(this,I)[ve],Ae(this,O)[ve]),wn(this,L,G4).call(this,Ae(this,T),ve),cn(this,T,ve))},Se);e.LRUCache=h}),cd=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(o=0){this.iteratorType=o}equals(o){return this.o===o.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}),rCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[]){super(),this.S=[];let i=this;o.forEach(function(a){i.push(a)})}clear(){this.i=0,this.S=[]}push(o){return this.S.push(o),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}),oCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[]){super(),this.j=0,this.q=[];let i=this;o.forEach(function(a){i.push(a)})}clear(){this.q=[],this.i=this.j=0}push(o){let i=this.q.length;if(this.j/i>.5&&this.j+this.i>=i&&i>4096){let a=this.i;for(let s=0;s{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[],i=function(s,l){return s>l?-1:s>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(o){let i=this.C[o];for(;o>0;){let a=o-1>>1,s=this.C[a];if(this.v(s,i)<=0)break;this.C[o]=s,o=a}this.C[o]=i}k(o,i){let a=this.C[o];for(;o0&&(s=l,c=this.C[l]),this.v(c,a)>=0)break;this.C[o]=c,o=s}this.C[o]=a}clear(){this.i=0,this.C.length=0}push(o){this.C.push(o),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let o=this.C[0],i=this.C.pop();return this.i-=1,this.i&&(this.C[0]=i,this.k(0,this.i>>1)),o}top(){return this.C[0]}find(o){return this.C.indexOf(o)>=0}remove(o){let i=this.C.indexOf(o);return i<0?!1:(i===0?this.pop():i===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(i,1,this.C.pop()),this.i-=1,this.m(i),this.k(i,this.i>>1)),!0)}updateItem(o){let i=this.C.indexOf(o);return i<0?!1:(this.m(i),this.k(i,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),_5=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Container{},r=n;e.default=r}),ud=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),rZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=cd(),n=ud(),r=class extends t.ContainerIterator{constructor(o,i){super(i),this.o=o,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(o){this.container.setElementByPos(this.o,o)}};e.RandomIterator=r}),aCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(_5()),n=rZ();function r(s){return s&&s.t?s:{default:s}}var o=class oZ extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new oZ(this.o,this.container,this.iteratorType)}},i=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 o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-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;cthis.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{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(_5()),n=cd(),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class iZ extends n.ContainerIterator{constructor(c,u,f,h){super(h),this.o=c,this.h=u,this.container=f,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 iZ(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,f={l,L:c,B:u};c.B=f,u.L=f,c===this.h&&(this.p=f),u===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(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 f=this.p;for(let p=1;p{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(_5()),n=rZ();function r(s){return s&&s.t?s:{default:s}}var o=class aZ extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new aZ(this.o,this.container,this.iteratorType)}},i=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>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let f=this;s.forEach(function(h){f.pushBack(h)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c>1}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-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.N0?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.Dthis.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 f=s;fthis.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;us;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,o){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=o}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 o=r.tt;for(;o.U===r;)r=o,o=r.tt;r=o}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let o=r.tt;for(;o.W===r;)r=o,o=r.tt;return r.W!==o?o:r}}te(){let r=this.tt,o=this.W,i=o.U;return r.tt===this?r.tt=o:r.U===this?r.U=o:r.W=o,o.tt=r,o.U=this,this.tt=o,this.W=i,i&&(i.tt=this),o}se(){let r=this.tt,o=this.U,i=o.W;return r.tt===this?r.tt=o:r.U===this?r.U=o:r.W=o,o.tt=r,o.W=this,this.tt=o,this.U=i,i&&(i.tt=this),o}};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}),sZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cCe(),n=cd(),r=ud(),o=class extends n.Container{constructor(a=function(l,c){return lc?1:0},s=!1){super(),this.Y=void 0,this.v=a,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let f=this.ne(l,c,u);if(f){let h=f.tt;for(;h!==this.h;)h.rt+=1,h=h.tt;let p=this.he(f);if(p){let{parentNode:m,grandParent:g,curNode:v}=p;m.ie(),g.ie(),v.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 f=this.ne(l,c,u);return f&&this.he(f),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,f=this.v(u.u,a);if(f===0){u.l=s;return}else if(f>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 g=this.v(m.u,a);if(g===0){m.l=s;return}else if(g>0){let v=m.L(),b=this.v(v.u,a);if(b===0){v.l=s;return}else b<0&&(c=new this.re(a,s),v.W===void 0?(v.W=c,c.tt=v):(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)}},i=o;e.default=i}),lZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=ud(),r=class extends t.ContainerIterator{constructor(i,a,s){super(s),this.o=i,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 i=this.o,a=this.h.tt;if(i===this.h)return a?a.rt-1:0;let s=0;for(i.U&&(s+=i.U.rt);i!==a;){let l=i.tt;i===l.W&&(s+=1,l.U&&(s+=l.U.rt)),i=l}return s}},o=r;e.default=o}),uCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(sZ()),n=o(lZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class cZ extends n.default{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new cZ(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(h){f.insert(h)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(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 i(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new i(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new i(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new i(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new i(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}),dCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(sZ()),n=o(lZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class uZ extends n.default{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,h){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new uZ(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(h){f.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 i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(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 i(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new i(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new i(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new i(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 i(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}),dZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),fZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=cd(),n=o(dZ()),r=ud();function o(s){return s&&s.t?s:{default:s}}var i=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=i;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 f=s[this.HASH_TAG];if(f!==void 0)return this.H[f].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 f=this.g[s];if(f)return f.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}),fCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=fZ(),n=ud(),r=class hZ 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 hZ(this.o,this.h,this.container,this.iteratorType)}},o=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)()}},i=o;e.default=i}),hCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=fZ(),n=o(dZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class pZ extends t.HashContainerIterator{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,h){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new pZ(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 i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(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 f=l[this.HASH_TAG];return f!==void 0?this.H[f].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 i(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}),pCe=Zt(e=>{Vt(),qt(),Kt(),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 i.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 o.default}});var t=f(rCe()),n=f(oCe()),r=f(iCe()),o=f(aCe()),i=f(sCe()),a=f(lCe()),s=f(uCe()),l=f(dCe()),c=f(fCe()),u=f(hCe());function f(h){return h&&h.t?h:{default:h}}}),mCe=Zt((e,t)=>{Vt(),qt(),Kt();var n=pCe().OrderedSet,r=Ju()("number-allocator:trace"),o=Ju()("number-allocator:error");function i(s,l){this.low=s,this.high=l}i.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},i.prototype.compare=function(s){return this.lowc.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 i(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},a.prototype.use=function(s){let l=new i(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,f=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 i(u+1,f)),r("use():"+s),!0):f===s?(this.ss.updateKeyByIterator(c,new i(u,f-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new i(s+1,f)),this.ss.insert(new i(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},a.prototype.free=function(s){if(sthis.max){o("free():"+s+" is out of range");return}let l=new i(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 i(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 i(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,f=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 i(h,f))):this.ss.updateKeyByIterator(c,new i(h,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new i(s,f))):this.ss.insert(l)}r("free():"+s)},a.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new i(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}),mZ=Zt((e,t)=>{Vt(),qt(),Kt();var n=mCe();t.exports.NumberAllocator=n}),gCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=nCe(),n=mZ(),r=class{constructor(o){o>0&&(this.aliasToTopic=new t.LRUCache({max:o}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,o),this.max=o,this.length=0)}put(o,i){if(i===0||i>this.max)return!1;let a=this.aliasToTopic.get(i);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(i,o),this.topicToAlias[o]=i,this.numberAllocator.use(i),this.length=this.aliasToTopic.size,!0}getTopicByAlias(o){return this.aliasToTopic.get(o)}getAliasByTopic(o){let i=this.topicToAlias[o];return typeof i<"u"&&this.aliasToTopic.get(i),i}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}),vCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=D_(),r=t(gCe()),o=Sv(),i=(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 o.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);a.emit("error",u),a.options.reconnectOnConnackError&&a._cleanUp(!0)}};e.default=i}),yCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,o)=>{n.log("handling pubrel packet");let i=typeof o<"u"?o:n.noop,{messageId:a}=r,s={cmd:"pubcomp",messageId:a};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,i):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return i(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,i)}))})};e.default=t}),bCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(ZSe()),r=t(tCe()),o=t(vCe()),i=t(D_()),a=t(yCe()),s=(l,c,u)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((bv(),Qr(kp))),r=Sv(),o=class{};e.TypedEventEmitter=o,(0,r.applyMixin)(o,n.default)}),j_=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var i;return typeof window<"u"?typeof navigator<"u"&&((i=navigator.userAgent)===null||i===void 0?void 0:i.toLowerCase().indexOf(" electron/"))>-1&&jr!=null&&jr.versions?!Object.prototype.hasOwnProperty.call(jr.versions,"electron"):typeof window.document<"u":!1},n=()=>{var i,a;return!!(typeof self=="object"&&!((a=(i=self==null?void 0:self.constructor)===null||i===void 0?void 0:i.name)===null||a===void 0)&&a.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",o=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=o}),CCe=Zt((e,t)=>{Vt(),qt(),Kt(),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 g=p(m);return m.add(g),g}},o=function(p){return function(m,g){return p.set(m,g),g}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,s=a*2,l=function(p,m){return function(g){var v=m.get(g),b=v===void 0?g.size:vi)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(b);)b=Math.floor(Math.random()*i);return p(g,b)}},c=new WeakMap,u=o(c),f=l(u,c),h=r(f);n.addUniqueNumber=h,n.generateUniqueNumber=f})}),wCe=Zt((e,t)=>{Vt(),qt(),Kt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,CCe()):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 o=function(s){return s.method!==void 0&&s.method==="call"},i=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,f=new Worker(s);f.addEventListener("message",function(v){var b=v.data;if(o(b)){var y=b.params,S=y.timerId,w=y.timerType;if(w==="interval"){var E=l.get(S);if(typeof E=="number"){var C=u.get(E);if(C===void 0||C.timerId!==S||C.timerType!==w)throw new Error("The timer is in an undefined state.")}else if(typeof E<"u")E();else throw new Error("The timer is in an undefined state.")}else if(w==="timeout"){var x=c.get(S);if(typeof x=="number"){var _=u.get(x);if(_===void 0||_.timerId!==S||_.timerType!==w)throw new Error("The timer is in an undefined state.")}else if(typeof x<"u")x(),c.delete(S);else throw new Error("The timer is in an undefined state.")}}else if(i(b)){var P=b.id,O=u.get(P);if(O===void 0)throw new Error("The timer is in an undefined state.");var I=O.timerId,M=O.timerType;u.delete(P),M==="interval"?l.delete(I):c.delete(I)}else{var T=b.error.message;throw new Error(T)}});var h=function(v){var b=r.generateUniqueNumber(u);u.set(b,{timerId:v,timerType:"interval"}),l.set(v,b),f.postMessage({id:b,method:"clear",params:{timerId:v,timerType:"interval"}})},p=function(v){var b=r.generateUniqueNumber(u);u.set(b,{timerId:v,timerType:"timeout"}),c.set(v,b),f.postMessage({id:b,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=r.generateUniqueNumber(l);return l.set(y,function(){v(),typeof l.get(y)=="function"&&f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"interval"}}),y},g=function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=r.generateUniqueNumber(c);return c.set(y,v),f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"timeout"}}),y};return{clearInterval:h,clearTimeout:p,setInterval:m,setTimeout:g}};n.load=a})}),xCe=Zt((e,t)=>{Vt(),qt(),Kt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,wCe()):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 o=function(f,h){var p=null;return function(){if(p!==null)return p;var m=new Blob([h],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return p=f(g),setTimeout(function(){return URL.revokeObjectURL(g)}),p}},i=`(()=>{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=o(r.load,i),s=function(f){return a().clearInterval(f)},l=function(f){return a().clearTimeout(f)},c=function(){var f;return(f=a()).setInterval.apply(f,arguments)},u=function(){var f;return(f=a()).setTimeout.apply(f,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),ECe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(c,u,f,h){h===void 0&&(h=f);var p=Object.getOwnPropertyDescriptor(u,f);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,h,p)}:function(c,u,f,h){h===void 0&&(h=f),c[h]=u[f]}),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 f in c)f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)&&t(u,c,f);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var o=r(j_()),i=xCe(),a={set:i.setInterval,clear:i.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 o.default&&!o.isWebWorker&&!o.isReactNativeBrowser?a:s}};e.default=l}),gZ=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(ECe()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(o,i){this.destroyed=!1,this.client=o,this.timer=typeof i=="object"&&"set"in i&&"clear"in i?i:(0,n.default)(i),this.setKeepalive(o.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(o){if(o*=1e3,isNaN(o)||o<=0||o>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${o}`);this._keepalive=o,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${o}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let o=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+o,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}),Y4=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(E,C,x,_){_===void 0&&(_=x);var P=Object.getOwnPropertyDescriptor(C,x);(!P||("get"in P?!C.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return C[x]}}),Object.defineProperty(E,_,P)}:function(E,C,x,_){_===void 0&&(_=x),E[_]=C[x]}),n=e&&e.__setModuleDefault||(Object.create?function(E,C){Object.defineProperty(E,"default",{enumerable:!0,value:C})}:function(E,C){E.default=C}),r=e&&e.__importStar||function(E){if(E&&E.__esModule)return E;var C={};if(E!=null)for(var x in E)x!=="default"&&Object.prototype.hasOwnProperty.call(E,x)&&t(C,E,x);return n(C,E),C},o=e&&e.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0});var i=o(hSe()),a=o(YSe()),s=o(ZJ()),l=Np(),c=o(QSe()),u=r(JSe()),f=o(Ju()),h=o(eZ()),p=o(bCe()),m=Sv(),g=SCe(),v=o(gZ()),b=r(j_()),y=globalThis.setImmediate||((...E)=>{let C=E.shift();(0,m.nextTick)(()=>{C(...E)})}),S={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},w=class X4 extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(C,x){super(),this.options=x||{};for(let _ in S)typeof this.options[_]>"u"?this.options[_]=S[_]:this.options[_]=x[_];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",X4.VERSION),b.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",b.default?"browser":"node"),this.log("MqttClient :: options.protocol",x.protocol),this.log("MqttClient :: options.protocolVersion",x.protocolVersion),this.log("MqttClient :: options.username",x.username),this.log("MqttClient :: options.keepalive",x.keepalive),this.log("MqttClient :: options.reconnectPeriod",x.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",x.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",x.properties?x.properties.topicAliasMaximum:void 0),this.options.clientId=typeof x.clientId=="string"?x.clientId:X4.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=x.protocolVersion===5&&x.customHandleAcks?x.customHandleAcks:(..._)=>{_[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=C,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=x.outgoingStore||new h.default,this.incomingStore=x.incomingStore||new h.default,this.queueQoSZero=x.queueQoSZero===void 0?!0:x.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,x.properties&&x.properties.topicAliasMaximum>0&&(x.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new i.default(x.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:_}=this,P=()=>{let O=_.shift();this.log("deliver :: entry %o",O);let I=null;if(!O){this._resubscribe();return}I=O.packet,this.log("deliver :: call _sendPacket for %o",I);let M=!0;I.messageId&&I.messageId!==0&&(this.messageIdProvider.register(I.messageId)||(M=!1)),M?this._sendPacket(I,T=>{O.cb&&O.cb(T),P()}):(this.log("messageId: %d has already used. The message is skipped and removed.",I.messageId),P())};this.log("connect :: sending queued packets"),P()}),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(C,x){x()}handleMessage(C,x){x()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var C;let x=new l.Writable,_=a.default.parser(this.options),P=null,O=[];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),_.on("packet",A=>{this.log("parser :: on packet push to packets array."),O.push(A)});let I=()=>{this.log("work :: getting next packet in queue");let A=O.shift();if(A)this.log("work :: packet pulled from queue"),(0,p.default)(this,A,M);else{this.log("work :: no packets in queue");let j=P;P=null,this.log("work :: done flag is %s",!!j),j&&j()}},M=()=>{if(O.length)(0,m.nextTick)(I);else{let A=P;P=null,A()}};x._write=(A,j,k)=>{P=k,this.log("writable stream :: parsing buffer"),_.parse(A),I()};let T=A=>{this.log("streamErrorHandler :: error",A.message),A.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",A)):this.noop(A)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(x),this.stream.on("error",T),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 D={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&&(D.will=Object.assign(Object.assign({},this.options.will),{payload:(C=this.options.will)===null||C===void 0?void 0:C.payload})),this.topicAliasRecv&&(D.properties||(D.properties={}),this.topicAliasRecv&&(D.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(D),_.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 A=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(A)}}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(C,x,_,P){this.log("publish :: message `%s` to topic `%s`",x,C);let{options:O}=this;typeof _=="function"&&(P=_,_=null),_=_||{},_=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),_);let{qos:I,retain:M,dup:T,properties:D,cbStorePut:A}=_;if(this._checkDisconnecting(P))return this;let j=()=>{let k=0;if((I===1||I===2)&&(k=this._nextId(),k===null))return this.log("No messageId left"),!1;let F={cmd:"publish",topic:C,payload:x,qos:I,retain:M,messageId:k,dup:T};switch(O.protocolVersion===5&&(F.properties=D),this.log("publish :: qos",I),I){case 1:case 2:this.outgoing[F.messageId]={volatile:!1,cb:P||this.noop},this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,void 0,A);break;default:this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,P,A);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!j())&&this._storeProcessingQueue.push({invoke:j,cbStorePut:_.cbStorePut,callback:P}),this}publishAsync(C,x,_){return new Promise((P,O)=>{this.publish(C,x,_,(I,M)=>{I?O(I):P(M)})})}subscribe(C,x,_){let P=this.options.protocolVersion;typeof x=="function"&&(_=x),_=_||this.noop;let O=!1,I=[];typeof C=="string"?(C=[C],I=C):Array.isArray(C)?I=C:typeof C=="object"&&(O=C.resubscribe,delete C.resubscribe,I=Object.keys(C));let M=u.validateTopics(I);if(M!==null)return y(_,new Error(`Invalid topic ${M}`)),this;if(this._checkDisconnecting(_))return this.log("subscribe: discconecting true"),this;let T={qos:0};P===5&&(T.nl=!1,T.rap=!1,T.rh=0),x=Object.assign(Object.assign({},T),x);let D=x.properties,A=[],j=(F,V)=>{if(V=V||x,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,F)||this._resubscribeTopics[F].qos{this.log("subscribe: array topic %s",F),j(F)}):Object.keys(C).forEach(F=>{this.log("subscribe: object topic %s, %o",F,C[F]),j(F,C[F])}),!A.length)return _(null,[]),this;let k=()=>{let F=this._nextId();if(F===null)return this.log("No messageId left"),!1;let V={cmd:"subscribe",subscriptions:A,messageId:F};if(D&&(V.properties=D),this.options.resubscribe){this.log("subscribe :: resubscribe true");let W=[];A.forEach(K=>{if(this.options.reconnectPeriod>0){let L={qos:K.qos};P===5&&(L.nl=K.nl||!1,L.rap=K.rap||!1,L.rh=K.rh||0,L.properties=K.properties),this._resubscribeTopics[K.topic]=L,W.push(K.topic)}}),this.messageIdToTopic[V.messageId]=W}return this.outgoing[V.messageId]={volatile:!0,cb(W,K){if(!W){let{granted:L}=K;for(let Q=0;Q0||!k())&&this._storeProcessingQueue.push({invoke:k,callback:_}),this}subscribeAsync(C,x){return new Promise((_,P)=>{this.subscribe(C,x,(O,I)=>{O?P(O):_(I)})})}unsubscribe(C,x,_){typeof C=="string"&&(C=[C]),typeof x=="function"&&(_=x),_=_||this.noop;let P=u.validateTopics(C);if(P!==null)return y(_,new Error(`Invalid topic ${P}`)),this;if(this._checkDisconnecting(_))return this;let O=()=>{let I=this._nextId();if(I===null)return this.log("No messageId left"),!1;let M={cmd:"unsubscribe",messageId:I,unsubscriptions:[]};return typeof C=="string"?M.unsubscriptions=[C]:Array.isArray(C)&&(M.unsubscriptions=C),this.options.resubscribe&&M.unsubscriptions.forEach(T=>{delete this._resubscribeTopics[T]}),typeof x=="object"&&x.properties&&(M.properties=x.properties),this.outgoing[M.messageId]={volatile:!0,cb:_},this.log("unsubscribe: call _sendPacket"),this._sendPacket(M),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!O())&&this._storeProcessingQueue.push({invoke:O,callback:_}),this}unsubscribeAsync(C,x){return new Promise((_,P)=>{this.unsubscribe(C,x,(O,I)=>{O?P(O):_(I)})})}end(C,x,_){this.log("end :: (%s)",this.options.clientId),(C==null||typeof C!="boolean")&&(_=_||x,x=C,C=!1),typeof x!="object"&&(_=_||x,x=null),this.log("end :: cb? %s",!!_),(!_||typeof _!="function")&&(_=this.noop);let P=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(I=>{this.outgoingStore.close(M=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),_){let T=I||M;this.log("end :: closeStores: invoking callback with args"),_(T)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},O=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,C),this._cleanUp(C,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(P)},x)};return this.disconnecting?(_(),this):(this._clearReconnect(),this.disconnecting=!0,!C&&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,O,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),O()),this)}endAsync(C,x){return new Promise((_,P)=>{this.end(C,x,O=>{O?P(O):_()})})}removeOutgoingMessage(C){if(this.outgoing[C]){let{cb:x}=this.outgoing[C];this._removeOutgoingAndStoreMessage(C,()=>{x(new Error("Message removed"))})}return this}reconnect(C){this.log("client reconnect");let x=()=>{C?(this.options.incomingStore=C.incomingStore,this.options.outgoingStore=C.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=x:x(),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(C=>{this.outgoing[C].volatile&&typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(C=>{typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_removeTopicAliasAndRecoverTopicName(C){let x;C.properties&&(x=C.properties.topicAlias);let _=C.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",x,_),_.length===0){if(typeof x>"u")return new Error("Unregistered Topic Alias");if(_=this.topicAliasSend.getTopicByAlias(x),typeof _>"u")return new Error("Unregistered Topic Alias");C.topic=_}x&&delete C.properties.topicAlias}_checkDisconnecting(C){return this.disconnecting&&(C&&C!==this.noop?C(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(C,x,_={}){if(x&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",x)),this.log("_cleanUp :: forced? %s",C),C)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let P=Object.assign({cmd:"disconnect"},_);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(P,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),y(()=>{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(),x&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",x),x())}_storeAndSend(C,x,_){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",C.cmd);let P=C,O;if(P.cmd==="publish"&&(P=(0,c.default)(C),O=this._removeTopicAliasAndRecoverTopicName(P),O))return x&&x(O);this.outgoingStore.put(P,I=>{if(I)return x&&x(I);_(),this._writePacket(C,x)})}_applyTopicAlias(C){if(this.options.protocolVersion===5&&C.cmd==="publish"){let x;C.properties&&(x=C.properties.topicAlias);let _=C.topic.toString();if(this.topicAliasSend)if(x){if(_.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",_,x),!this.topicAliasSend.put(_,x)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",_,x),new Error("Sending Topic Alias out of range")}else _.length!==0&&(this.options.autoAssignTopicAlias?(x=this.topicAliasSend.getAliasByTopic(_),x?(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",_,x)):(x=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(_,x),C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",_,x))):this.options.autoUseTopicAlias&&(x=this.topicAliasSend.getAliasByTopic(_),x&&(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",_,x))));else if(x)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",_,x),new Error("Sending Topic Alias out of range")}}_noop(C){this.log("noop ::",C)}_writePacket(C,x){this.log("_writePacket :: packet: %O",C),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",C),this.log("_writePacket :: writing to stream");let _=a.default.writeToStream(C,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",_),!_&&x&&x!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",x)):x&&(this.log("_writePacket :: invoking cb"),x())}_sendPacket(C,x,_,P){this.log("_sendPacket :: (%s) :: start",this.options.clientId),_=_||this.noop,x=x||this.noop;let O=this._applyTopicAlias(C);if(O){x(O);return}if(!this.connected){if(C.cmd==="auth"){this._writePacket(C,x);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(C,x,_);return}if(P){this._writePacket(C,x);return}switch(C.cmd){case"publish":break;case"pubrel":this._storeAndSend(C,x,_);return;default:this._writePacket(C,x);return}switch(C.qos){case 2:case 1:this._storeAndSend(C,x,_);break;case 0:default:this._writePacket(C,x);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(C,x,_){this.log("_storePacket :: packet: %o",C),this.log("_storePacket :: cb? %s",!!x),_=_||this.noop;let P=C;if(P.cmd==="publish"){P=(0,c.default)(C);let I=this._removeTopicAliasAndRecoverTopicName(P);if(I)return x&&x(I)}let O=P.qos||0;O===0&&this.queueQoSZero||P.cmd!=="publish"?this.queue.push({packet:P,cb:x}):O>0?(x=this.outgoing[P.messageId]?this.outgoing[P.messageId].cb:null,this.outgoingStore.put(P,I=>{if(I)return x&&x(I);_()})):x&&x(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(C=!1){this.keepaliveManager&&this.options.keepalive&&(C||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 C=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&C.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let x=0;x{let _=this.outgoingStore.createStream(),P=()=>{_.destroy(),_=null,this._flushStoreProcessingQueue(),O()},O=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",P),_.on("error",M=>{O(),this._flushStoreProcessingQueue(),this.removeListener("close",P),this.emit("error",M)});let I=()=>{if(!_)return;let M=_.read(1),T;if(!M){_.once("readable",I);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[M.messageId]){I();return}!this.disconnecting&&!this.reconnectTimer?(T=this.outgoing[M.messageId]?this.outgoing[M.messageId].cb:null,this.outgoing[M.messageId]={volatile:!1,cb(D,A){T&&T(D,A),I()}},this._packetIdsDuringStoreProcessing[M.messageId]=!0,this.messageIdProvider.register(M.messageId)?this._sendPacket(M,void 0,void 0,!0):this.log("messageId: %d has already used.",M.messageId)):_.destroy&&_.destroy()};_.on("end",()=>{let M=!0;for(let T in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[T]){M=!1;break}this.removeListener("close",P),M?(O(),this._invokeAllStoreProcessingQueue(),this.emit("connect",C)):x()}),I()};x()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let C=this._storeProcessingQueue[0];if(C&&C.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let C of this._storeProcessingQueue)C.cbStorePut&&C.cbStorePut(new Error("Connection closed")),C.callback&&C.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(C,x){delete this.outgoing[C],this.outgoingStore.del({messageId:C},(_,P)=>{x(_,P),this.messageIdProvider.deallocate(C),this._invokeStoreProcessingQueue()})}};w.VERSION=m.MQTTJS_VERSION,e.default=w}),_Ce=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=mZ(),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 eh(e){throw new RangeError(yZ[e])}function jB(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let o=function(i,a){let s=[],l=i.length;for(;l--;)s[l]=a(i[l]);return s}((e=e.replace(vZ,".")).split("."),t).join(".");return r+o}function FB(e){let t=[],n=0,r=e.length;for(;n=55296&&o<=56319&&n{Vt(),qt(),Kt(),LB=/^xn--/,BB=/[^\0-\x7E]/,vZ=/[\x2E\u3002\uFF0E\uFF61]/g,yZ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wl=Math.floor,wC=String.fromCharCode,rT=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},oT=function(e,t,n){let r=0;for(e=n?wl(e/700):e>>1,e+=wl(e/t);e>455;r+=36)e=wl(e/35);return wl(r+36*e/(e+38))},iT=function(e){let t=[],n=e.length,r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let l=0;l=128&&eh("not-basic"),t.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l=n&&eh("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>wl((2147483647-r)/f))&&eh("overflow"),r+=p*f;let m=h<=i?1:h>=i+26?26:h-i;if(pwl(2147483647/g)&&eh("overflow"),f*=g}let u=t.length+1;i=oT(r-c,u,c==0),wl(r/u)>2147483647-o&&eh("overflow"),o+=wl(r/u),r%=u,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},aT=function(e){let t=[],n=(e=FB(e)).length,r=128,o=0,i=72;for(let l of e)l<128&&t.push(wC(l));let a=t.length,s=a;for(a&&t.push("-");s=r&&uwl((2147483647-o)/c)&&eh("overflow"),o+=(l-r)*c,r=l;for(let u of e)if(u2147483647&&eh("overflow"),u==r){let f=o;for(let h=36;;h+=36){let p=h<=i?1:h>=i+26?26:h-i;if(fString.fromCodePoint(...e)},decode:iT,encode:aT,toASCII:function(e){return jB(e,function(t){return BB.test(t)?"xn--"+aT(t):t})},toUnicode:function(e){return jB(e,function(t){return LB.test(t)?iT(t.slice(4).toLowerCase()):t})}},Rd.decode,Rd.encode,Rd.toASCII,Rd.toUnicode,Rd.ucs2,Rd.version});function PCe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var zB,om,HB,Ec,OCe=Fi(()=>{Vt(),qt(),Kt(),zB=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if(typeof e!="string"||e.length===0)return o;var i=/\+/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=0?(c=p.substr(0,m),u=p.substr(m+1)):(c=p,u=""),f=decodeURIComponent(c),h=decodeURIComponent(u),PCe(o,f)?Array.isArray(o[f])?o[f].push(h):o[f]=[o[f],h]:o[f]=h}return o},om=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},HB=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(o){var i=encodeURIComponent(om(o))+n;return Array.isArray(e[o])?e[o].map(function(a){return i+encodeURIComponent(om(a))}).join(t):i+encodeURIComponent(om(e[o]))}).join(t):r?encodeURIComponent(om(r))+n+encodeURIComponent(om(e)):""},Ec={},Ec.decode=Ec.parse=zB,Ec.encode=Ec.stringify=HB,Ec.decode,Ec.encode,Ec.parse,Ec.stringify});function Q4(){throw new Error("setTimeout has not been defined")}function J4(){throw new Error("clearTimeout has not been defined")}function bZ(e){if(_u===setTimeout)return setTimeout(e,0);if((_u===Q4||!_u)&&setTimeout)return _u=setTimeout,setTimeout(e,0);try{return _u(e,0)}catch{try{return _u.call(null,e,0)}catch{return _u.call(this||Uh,e,0)}}}function MCe(){Wh&&_h&&(Wh=!1,_h.length?Dc=_h.concat(Dc):Ny=-1,Dc.length&&SZ())}function SZ(){if(!Wh){var e=bZ(MCe);Wh=!0;for(var t=Dc.length;t;){for(_h=Dc,Dc=[];++Ny{Vt(),qt(),Kt(),Uh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Ao=WB={},function(){try{_u=typeof setTimeout=="function"?setTimeout:Q4}catch{_u=Q4}try{$u=typeof clearTimeout=="function"?clearTimeout:J4}catch{$u=J4}}(),Dc=[],Wh=!1,Ny=-1,Ao.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var b=1;b{Vt(),qt(),Kt(),zw={},Z4=!1,dh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,yo=RCe(),yo.platform="browser",yo.addListener,yo.argv,yo.binding,yo.browser,yo.chdir,yo.cwd,yo.emit,yo.env,yo.listeners,yo.nextTick,yo.off,yo.on,yo.once,yo.prependListener,yo.prependOnceListener,yo.removeAllListeners,yo.removeListener,yo.title,yo.umask,yo.version,yo.versions});function ICe(){if(e3)return Hw;e3=!0;var e=yo;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function n(i,a){for(var s="",l=0,c=-1,u=0,f,h=0;h<=i.length;++h){if(h2){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+="/"+i.slice(c+1,h):s=i.slice(c+1,h),l=h-c-1;c=h,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(i,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+i+l:l}var o={resolve:function(){for(var i="",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&&(i=c+"/"+i,a=c.charCodeAt(0)===47)}return i=n(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var a=i.charCodeAt(0)===47,s=i.charCodeAt(i.length-1)===47;return i=n(i,!a),i.length===0&&!a&&(i="."),i.length>0&&s&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=s:i+="/"+s)}return i===void 0?".":o.normalize(i)},relative:function(i,a){if(t(i),t(a),i===a||(i=o.resolve(i),a=o.resolve(a),i===a))return"";for(var s=1;sp){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(i.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=i.charCodeAt(s+g),b=a.charCodeAt(u+g);if(v!==b)break;v===47&&(m=g)}var y="";for(g=s+m+1;g<=l;++g)(g===l||i.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var a=i.charCodeAt(0),s=a===47,l=-1,c=!0,u=i.length-1;u>=1;--u)if(a=i.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(i);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(u=i.length-1;u>=0;--u){var p=i.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=h))}return s===l?l=h:l===-1&&(l=i.length),i.slice(s,l)}else{for(u=i.length-1;u>=0;--u)if(i.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":i.slice(s,l)}},extname:function(i){t(i);for(var a=-1,s=0,l=-1,c=!0,u=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),h===46?a===-1?a=f:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){t(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var s=i.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,f=0,h=-1,p=!0,m=i.length-1,g=0;m>=c;--m){if(s=i.charCodeAt(m),s===47){if(!p){f=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||h===-1||g===0||g===1&&u===h-1&&u===f+1?h!==-1&&(f===0&&l?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&l?(a.name=i.slice(1,u),a.base=i.slice(1,h)):(a.name=i.slice(f,u),a.base=i.slice(f,h)),a.ext=i.slice(u,h)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,Hw=o,Hw}var Hw,e3,t3,kCe=Fi(()=>{Vt(),qt(),Kt(),CZ(),Hw={},e3=!1,t3=ICe()}),wZ={};Rp(wZ,{URL:()=>BZ,Url:()=>AZ,default:()=>Wr,fileURLToPath:()=>xZ,format:()=>DZ,parse:()=>LZ,pathToFileURL:()=>EZ,resolve:()=>jZ,resolveObject:()=>FZ});function zs(){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 M0(e,t,n){if(e&&El.isObject(e)&&e instanceof zs)return e;var r=new zs;return r.parse(e,t,n),r}function NCe(){if(n3)return Uw;n3=!0;var e=$o;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function n(i,a){for(var s="",l=0,c=-1,u=0,f,h=0;h<=i.length;++h){if(h2){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+="/"+i.slice(c+1,h):s=i.slice(c+1,h),l=h-c-1;c=h,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(i,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+i+l:l}var o={resolve:function(){for(var i="",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&&(i=c+"/"+i,a=c.charCodeAt(0)===47)}return i=n(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var a=i.charCodeAt(0)===47,s=i.charCodeAt(i.length-1)===47;return i=n(i,!a),i.length===0&&!a&&(i="."),i.length>0&&s&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=s:i+="/"+s)}return i===void 0?".":o.normalize(i)},relative:function(i,a){if(t(i),t(a),i===a||(i=o.resolve(i),a=o.resolve(a),i===a))return"";for(var s=1;sp){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(i.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=i.charCodeAt(s+g),b=a.charCodeAt(u+g);if(v!==b)break;v===47&&(m=g)}var y="";for(g=s+m+1;g<=l;++g)(g===l||i.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var a=i.charCodeAt(0),s=a===47,l=-1,c=!0,u=i.length-1;u>=1;--u)if(a=i.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(i);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(u=i.length-1;u>=0;--u){var p=i.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=h))}return s===l?l=h:l===-1&&(l=i.length),i.slice(s,l)}else{for(u=i.length-1;u>=0;--u)if(i.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":i.slice(s,l)}},extname:function(i){t(i);for(var a=-1,s=0,l=-1,c=!0,u=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),h===46?a===-1?a=f:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){t(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var s=i.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,f=0,h=-1,p=!0,m=i.length-1,g=0;m>=c;--m){if(s=i.charCodeAt(m),s===47){if(!p){f=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||h===-1||g===0||g===1&&u===h-1&&u===f+1?h!==-1&&(f===0&&l?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&l?(a.name=i.slice(1,u),a.base=i.slice(1,h)):(a.name=i.slice(f,u),a.base=i.slice(f,h)),a.ext=i.slice(u,h)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,Uw=o,Uw}function ACe(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 f2?DCe(e):jCe(e)}function DCe(e){let t=e.hostname,n=e.pathname;for(let r=0;rOZ||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function jCe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;nWZ||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function BCe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n{Vt(),qt(),Kt(),$Ce(),OCe(),TCe(),kCe(),CZ(),Wr={},VB=Rd,El={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}},Wr.parse=M0,Wr.resolve=function(e,t){return M0(e,!1,!0).resolve(t)},Wr.resolveObject=function(e,t){return e?M0(e,!1,!0).resolveObject(t):t},Wr.format=function(e){return El.isString(e)&&(e=M0(e)),e instanceof zs?e.format():zs.prototype.format.call(e)},Wr.Url=zs,KB=/^([a-z0-9.+-]+:)/i,qB=/:[0-9]*$/,GB=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,YB=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),xC=["'"].concat(YB),sT=["%","/","?",";","#"].concat(xC),lT=["/","?","#"],cT=/^[+a-z0-9A-Z_-]{0,63}$/,XB=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,QB={javascript:!0,"javascript:":!0},EC={javascript:!0,"javascript:":!0},th={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_C=Ec,zs.prototype.parse=function(e,t,n){if(!El.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r127?w+="x":w+=S[E];if(!w.match(cT)){var x=b.slice(0,m),_=b.slice(m+1),P=S.match(XB);P&&(x.push(P[1]),_.unshift(P[2])),_.length&&(a="/"+_.join(".")+a),this.hostname=x.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=VB.toASCII(this.hostname));var O=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+O,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!QB[c])for(m=0,y=xC.length;m0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift())),n.search=e.search,n.query=e.query,El.isNull(n.pathname)&&El.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=S.slice(-1)[0],C=(n.host||e.host||S.length>1)&&(E==="."||E==="..")||E==="",x=0,_=S.length;_>=0;_--)(E=S[_])==="."?S.splice(_,1):E===".."?(S.splice(_,1),x++):x&&(S.splice(_,1),x--);if(!b&&!y)for(;x--;x)S.unshift("..");!b||S[0]===""||S[0]&&S[0].charAt(0)==="/"||S.unshift(""),C&&S.join("/").substr(-1)!=="/"&&S.push("");var P,O=S[0]===""||S[0]&&S[0].charAt(0)==="/";return w&&(n.hostname=n.host=O?"":S.length?S.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift())),(b=b||n.host&&S.length)&&!O&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),El.isNull(n.pathname)&&El.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},zs.prototype.parseHost=function(){var e=this.host,t=qB.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},Wr.Url,Wr.format,Wr.resolve,Wr.resolveObject,Uw={},n3=!1,r3=NCe(),JB=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Wr.URL=typeof URL<"u"?URL:null,Wr.pathToFileURL=FCe,Wr.fileURLToPath=ACe,Wr.Url,Wr.format,Wr.resolve,Wr.resolveObject,Wr.URL,_Z=92,$Z=47,PZ=97,OZ=122,f2=JB==="win32",MZ=/\//g,TZ=/%/g,RZ=/\\/g,IZ=/\n/g,kZ=/\r/g,NZ=/\t/g,ZB=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Wr.URL=typeof URL<"u"?URL:null,Wr.pathToFileURL=EZ,Wr.fileURLToPath=xZ,AZ=Wr.Url,DZ=Wr.format,jZ=Wr.resolve,FZ=Wr.resolveObject,LZ=Wr.parse,BZ=Wr.URL,zZ=92,HZ=47,UZ=97,WZ=122,h2=ZB==="win32",VZ=/\//g,KZ=/%/g,qZ=/\\/g,GZ=/\n/g,YZ=/\r/g,XZ=/\t/g}),HCe=Zt((e,t)=>{Vt(),qt(),Kt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),$5=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=Np(),n=(Bi(),Qr(Li));function r(i,a){let s=new Array(i.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(i){this.proxy.read(i)}_write(i,a,s){this.isSocketOpen?this.writeToProxy(i,a,s):this.writeQueue.push({chunk:i,encoding:a,cb:s})}_final(i){this.writeQueue=[],this.proxy.end(i)}_destroy(i,a){this.writeQueue=[],this.proxy.destroy(),a(i)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(i,a,s){this.proxy.write(i,a)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:i,encoding:a,cb:s}=this.writeQueue.shift();this.writeToProxy(i,a,s)}}};e.BufferedDuplex=o}),$C=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(Bi(),Qr(Li)),r=t(HCe()),o=t(Ju()),i=Np(),a=t(j_()),s=$5(),l=(0,o.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(b,y){let S=`${b.protocol}://${b.hostname}:${b.port}${b.path}`;return typeof b.transformWsUrl=="function"&&(S=b.transformWsUrl(S,b,y)),S}function f(b){let y=b;return b.port||(b.protocol==="wss"?y.port=443:y.port=80),b.path||(y.path="/"),b.wsOptions||(y.wsOptions={}),!a.default&&!b.forceNativeWebSocket&&b.protocol==="wss"&&c.forEach(S=>{Object.prototype.hasOwnProperty.call(b,S)&&!Object.prototype.hasOwnProperty.call(b.wsOptions,S)&&(y.wsOptions[S]=b[S])}),y}function h(b){let y=f(b);if(y.hostname||(y.hostname=y.host),!y.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let S=new URL(document.URL);y.hostname=S.hostname,y.port||(y.port=Number(S.port))}return y.objectMode===void 0&&(y.objectMode=!(y.binary===!0||y.binary===void 0)),y}function p(b,y,S){l("createWebSocket"),l(`protocol: ${S.protocolId} ${S.protocolVersion}`);let w=S.protocolId==="MQIsdp"&&S.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${y} and protocol: ${w}`);let E;return S.createWebsocket?E=S.createWebsocket(y,[w],S):E=new r.default(y,[w],S.wsOptions),E}function m(b,y){let S=y.protocolId==="MQIsdp"&&y.protocolVersion===3?"mqttv3.1":"mqtt",w=u(y,b),E;return y.createWebsocket?E=y.createWebsocket(w,[S],y):E=new WebSocket(w,[S]),E.binaryType="arraybuffer",E}var g=(b,y)=>{l("streamBuilder");let S=f(y);S.hostname=S.hostname||S.host||"localhost";let w=u(S,b),E=p(b,w,S),C=r.default.createWebSocketStream(E,S.wsOptions);return C.url=w,E.on("close",()=>{C.destroy()}),C};e.streamBuilder=g;var v=(b,y)=>{l("browserStreamBuilder");let S,w=h(y).browserBufferSize||1024*512,E=y.browserBufferTimeout||1e3,C=!y.objectMode,x=m(b,y),_=O(y,A,j);y.objectMode||(_._writev=s.writev.bind(_)),_.on("close",()=>{x.close()});let P=typeof x.addEventListener<"u";x.readyState===x.OPEN?(S=_,S.socket=x):(S=new s.BufferedDuplex(y,_,x),P?x.addEventListener("open",I):x.onopen=I),P?(x.addEventListener("close",M),x.addEventListener("error",T),x.addEventListener("message",D)):(x.onclose=M,x.onerror=T,x.onmessage=D);function O(k,F,V){let W=new i.Transform({objectMode:k.objectMode});return W._write=F,W._flush=V,W}function I(){l("WebSocket onOpen"),S instanceof s.BufferedDuplex&&S.socketReady()}function M(k){l("WebSocket onClose",k),S.end(),S.destroy()}function T(k){l("WebSocket onError",k);let F=new Error("WebSocket error");F.event=k,S.destroy(F)}async function D(k){let{data:F}=k;F instanceof ArrayBuffer?F=n.Buffer.from(F):F instanceof Blob?F=n.Buffer.from(await new Response(F).arrayBuffer()):F=n.Buffer.from(F,"utf8"),_&&!_.destroyed&&_.push(F)}function A(k,F,V){if(x.bufferedAmount>w){setTimeout(A,E,k,F,V);return}C&&typeof k=="string"&&(k=n.Buffer.from(k,"utf8"));try{x.send(k)}catch(W){return V(W)}V()}function j(k){x.close(),k()}return S};e.browserStreamBuilder=v}),P5={};Rp(P5,{Server:()=>So,Socket:()=>So,Stream:()=>So,_createServerHandle:()=>So,_normalizeArgs:()=>So,_setSimultaneousAccepts:()=>So,connect:()=>So,createConnection:()=>So,createServer:()=>So,default:()=>QZ,isIP:()=>So,isIPv4:()=>So,isIPv6:()=>So});function So(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var QZ,JZ=Fi(()=>{Vt(),qt(),Kt(),QZ={_createServerHandle:So,_normalizeArgs:So,_setSimultaneousAccepts:So,connect:So,createConnection:So,createServer:So,isIP:So,isIPv4:So,isIPv6:So,Server:So,Socket:So,Stream:So}}),e9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((JZ(),Qr(P5))),r=t(Ju()),o=(0,r.default)("mqttjs:tcp"),i=(a,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return o("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=i}),ZZ={};Rp(ZZ,{default:()=>eee});var eee,UCe=Fi(()=>{Vt(),qt(),Kt(),eee={}}),t9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((UCe(),Qr(ZZ))),r=t((JZ(),Qr(P5))),o=t(Ju()),i=(0,o.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,i("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(f){l.rejectUnauthorized&&s.emit("error",f),c.end()}return c.on("error",u),c};e.default=a}),n9=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Bi(),Qr(Li)),n=Np(),r=$5(),o,i,a;function s(){let h=new n.Transform;return h._write=(p,m,g)=>{o.send({data:p.buffer,success(){g()},fail(v){g(new Error(v))}})},h._flush=p=>{o.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",g=`${m}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(g=`${m}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(g=h.transformWsUrl(g,h,p)),g}function u(){o.onOpen(()=>{a.socketReady()}),o.onMessage(h=>{let{data:p}=h;p instanceof ArrayBuffer?p=t.Buffer.from(p):p=t.Buffer.from(p,"utf8"),i.push(p)}),o.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),o.onError(h=>{let p=new Error(h.errMsg);a.destroy(p)})}var f=(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 g=c(p,h);o=wx.connectSocket({url:g,protocols:[m]}),i=s(),a=new r.BufferedDuplex(p,i,o),a._destroy=(b,y)=>{o.close({success(){y&&y(b)}})};let v=a.destroy;return a.destroy=(b,y)=>(a.destroy=v,setTimeout(()=>{o.close({fail(){a._destroy(b,y)}})},0),a),u(),a};e.default=f}),r9=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Bi(),Qr(Li)),n=Np(),r=$5(),o,i,a,s=!1;function l(){let p=new n.Transform;return p._write=(m,g,v)=>{o.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},p._flush=m=>{o.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 g=p.protocol==="alis"?"wss":"ws",v=`${g}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(v=`${g}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(v=p.transformWsUrl(v,p,m)),v}function f(){s||(s=!0,o.onSocketOpen(()=>{a.socketReady()}),o.onSocketMessage(p=>{if(typeof p.data=="string"){let m=t.Buffer.from(p.data,"base64");i.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),i.push(g)}),m.readAsArrayBuffer(p.data)}}),o.onSocketClose(()=>{a.end(),a.destroy()}),o.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 g=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let v=u(m,p);return o=m.my,o.connectSocket({url:v,protocols:g}),i=l(),a=new r.BufferedDuplex(m,i,o),f(),a};e.default=h}),WCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(Ju()),r=t((zCe(),Qr(wZ))),o=t(Y4()),i=t(j_());typeof(jr==null?void 0:jr.nextTick)!="function"&&(jr.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function l(f){let h;f.auth&&(h=f.auth.match(/^(.+):(.+)$/),h?(f.username=h[1],f.password=h[2]):f.username=f.auth)}function c(f,h){var p,m,g,v;if(a("connecting to an MQTT broker..."),typeof f=="object"&&!h&&(h=f,f=""),h=h||{},f&&typeof f=="string"){let S=r.default.parse(f,!0),w={};if(S.port!=null&&(w.port=Number(S.port)),w.host=S.hostname,w.query=S.query,w.auth=S.auth,w.protocol=S.protocol,w.path=S.path,w.protocol=(p=w.protocol)===null||p===void 0?void 0:p.replace(/:$/,""),h=Object.assign(Object.assign({},w),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",""):!(!((g=h.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=h.protocol)===null||v===void 0)&&v.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={},!i.default&&!h.forceNativeWebSocket?(s.ws=$C().streamBuilder,s.wss=$C().streamBuilder,s.mqtt=e9().default,s.tcp=e9().default,s.ssl=t9().default,s.tls=s.ssl,s.mqtts=t9().default):(s.ws=$C().browserStreamBuilder,s.wss=$C().browserStreamBuilder,s.wx=n9().default,s.wxs=n9().default,s.ali=r9().default,s.alis=r9().default)),!s[h.protocol]){let S=["mqtts","wss"].indexOf(h.protocol)!==-1;h.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((w,E)=>S&&E%2===0?!1:typeof s[w]=="function")[0]}if(h.clean===!1&&!h.clientId)throw new Error("Missing clientId for unclean clients");h.protocol&&(h.defaultProtocol=h.protocol);function b(S){return h.servers&&((!S._reconnectCount||S._reconnectCount===h.servers.length)&&(S._reconnectCount=0),h.host=h.servers[S._reconnectCount].host,h.port=h.servers[S._reconnectCount].port,h.protocol=h.servers[S._reconnectCount].protocol?h.servers[S._reconnectCount].protocol:h.defaultProtocol,h.hostname=h.host,S._reconnectCount++),a("calling streambuilder for",h.protocol),s[h.protocol](S,h)}let y=new o.default(b,h);return y.on("error",()=>{}),y}function u(f,h,p=!0){return new Promise((m,g)=>{let v=c(f,h),b={connect:S=>{y(),m(v)},end:()=>{y(),m(v)},error:S=>{y(),v.end(),g(S)}};p===!1&&(b.close=()=>{b.error(new Error("Couldn't connect to server"))});function y(){Object.keys(b).forEach(S=>{v.off(S,b[S])})}Object.keys(b).forEach(S=>{v.on(S,b[S])})})}e.connectAsync=u,e.default=c}),o9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(p,m,g,v){v===void 0&&(v=g);var b=Object.getOwnPropertyDescriptor(m,g);(!b||("get"in b?!m.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(p,v,b)}:function(p,m,g,v){v===void 0&&(v=g),p[v]=m[g]}),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 g in p)g!=="default"&&Object.prototype.hasOwnProperty.call(p,g)&&t(m,p,g);return n(m,p),m},o=e&&e.__exportStar||function(p,m){for(var g in p)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,p,g)},i=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=i(Y4());e.MqttClient=a.default;var s=i(ZJ());e.DefaultMessageIdProvider=s.default;var l=i(_Ce());e.UniqueMessageIdProvider=l.default;var c=i(eZ());e.Store=c.default;var u=r(WCe());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=i(gZ());e.KeepaliveManager=f.default,e.Client=a.default,o(Y4(),e),o(Sv(),e);var h=D_();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return h.ReasonCodes}})}),VCe=Zt(e=>{Vt(),qt(),Kt();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},o=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 i=r(o9());e.default=i,o(o9(),e)});const KCe=VCe();/*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) -*/var vn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function($,R,J){$!=Array.prototype&&$!=Object.prototype&&($[R]=J.value)},n=(typeof window<"u"&&window===ro||typeof ro<"u"&&ro!=null,ro);function r($,R){if(R){var J=n;$=$.split(".");for(var Ee=0;Ee<$.length-1;Ee++){var ke=$[Ee];ke in J||(J[ke]={}),J=J[ke]}$=$[$.length-1],Ee=J[$],R=R(Ee),R!=Ee&&R!=null&&t(J,$,{configurable:!0,writable:!0,value:R})}}function o($){var R=0;return function(){return R<$.length?{done:!1,value:$[R++]}:{done:!0}}}function i(){i=function(){},n.Symbol||(n.Symbol=s)}function a($,R){this.a=$,t(this,"description",{configurable:!0,writable:!0,value:R})}a.prototype.toString=function(){return this.a};var s=function(){function $(J){if(this instanceof $)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(J||"")+"_"+R++,J)}var R=0;return $}();function l(){i();var $=n.Symbol.iterator;$||($=n.Symbol.iterator=n.Symbol("Symbol.iterator")),typeof Array.prototype[$]!="function"&&t(Array.prototype,$,{configurable:!0,writable:!0,value:function(){return c(o(this))}}),l=function(){}}function c($){return l(),$={next:$},$[n.Symbol.iterator]=function(){return this},$}function u($,R){l(),$ instanceof String&&($+="");var J=0,Ee={next:function(){if(J<$.length){var ke=J++;return{value:R(ke,$[ke]),done:!1}}return Ee.next=function(){return{done:!0,value:void 0}},Ee.next()}};return Ee[Symbol.iterator]=function(){return Ee},Ee}r("Array.prototype.entries",function($){return $||function(){return u(this,function(R,J){return[R,J]})}});var f=ro||self;function h($,R,J){$=$.split("."),J=J||f,$[0]in J||typeof J.execScript>"u"||J.execScript("var "+$[0]);for(var Ee;$.length&&(Ee=$.shift());)$.length||R===void 0?J[Ee]&&J[Ee]!==Object.prototype[Ee]?J=J[Ee]:J=J[Ee]={}:J[Ee]=R}function p($){var R=typeof $;if(R=="object")if($){if($ instanceof Array)return"array";if($ instanceof Object)return R;var J=Object.prototype.toString.call($);if(J=="[object Window]")return"object";if(J=="[object Array]"||typeof $.length=="number"&&typeof $.splice<"u"&&typeof $.propertyIsEnumerable<"u"&&!$.propertyIsEnumerable("splice"))return"array";if(J=="[object Function]"||typeof $.call<"u"&&typeof $.propertyIsEnumerable<"u"&&!$.propertyIsEnumerable("call"))return"function"}else return"null";else if(R=="function"&&typeof $.call>"u")return"object";return R}function m($){var R=typeof $;return R=="object"&&$!=null||R=="function"}function g($,R,J){h($,R,J)}function v($,R){function J(){}J.prototype=R.prototype,$.prototype=new J,$.prototype.constructor=$}var b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function y($,R){for(var J,Ee,ke=1;ke=arguments.length?Array.prototype.slice.call($,R):Array.prototype.slice.call($,R,J)}function C($,R,J,Ee){var ke="Assertion failed";if(J){ke+=": "+J;var Je=Ee}else $&&(ke+=": "+$,Je=R);throw Error(ke,Je||[])}function x($,R,J){for(var Ee=[],ke=2;ke=$.length)return String.fromCharCode.apply(null,$);for(var R="",J=0;J<$.length;J+=8192)R+=String.fromCharCode.apply(null,E($,J,J+8192));return R}var V={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},W={"'":"\\'"},K={},L=null;function Q($,R){R===void 0&&(R=0),ie(),R=K[R];for(var J=[],Ee=0;Ee<$.length;Ee+=3){var ke=$[Ee],Je=Ee+1<$.length,Dt=Je?$[Ee+1]:0,an=Ee+2<$.length,En=an?$[Ee+2]:0,Cr=ke>>2;ke=(ke&3)<<4|Dt>>4,Dt=(Dt&15)<<2|En>>6,En&=63,an||(En=64,Je||(Dt=64)),J.push(R[Cr],R[ke],R[Dt]||"",R[En]||"")}return J.join("")}function ee($){var R=$.length,J=3*R/4;J%3?J=Math.floor(J):"=.".indexOf($[R-1])!=-1&&(J="=.".indexOf($[R-2])!=-1?J-2:J-1);var Ee=new Uint8Array(J),ke=0;return re($,function(Je){Ee[ke++]=Je}),Ee.subarray(0,ke)}function re($,R){function J(En){for(;Ee<$.length;){var Cr=$.charAt(Ee++),ur=L[Cr];if(ur!=null)return ur;if(!/^[\s\xa0]*$/.test(Cr))throw Error("Unknown base64 encoding at char: "+Cr)}return En}ie();for(var Ee=0;;){var ke=J(-1),Je=J(0),Dt=J(64),an=J(64);if(an===64&&ke===-1)break;R(ke<<2|Je>>4),Dt!=64&&(R(Je<<4&240|Dt>>2),an!=64&&R(Dt<<6&192|an))}}function ie(){if(!L){L={};for(var $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),R=["+/=","+/","-_=","-_.","-_"],J=0;5>J;J++){var Ee=$.concat(R[J].split(""));K[J]=Ee;for(var ke=0;ke>>0;$=Math.floor(($-R)/4294967296)>>>0,G=R,X=$}h("jspb.utils.splitUint64",ne,void 0);function le($){var R=0>$;$=Math.abs($);var J=$>>>0;$=Math.floor(($-J)/4294967296),$>>>=0,R&&($=~$>>>0,J=(~J>>>0)+1,4294967295$;$=2*Math.abs($),ne($),$=G;var J=X;R&&($==0?J==0?J=$=4294967295:(J--,$=4294967295):$--),G=$,X=J}h("jspb.utils.splitZigzag64",ce,void 0);function oe($){var R=0>$?1:0;if($=R?-$:$,$===0)0<1/$?G=X=0:(X=0,G=2147483648);else if(isNaN($))X=0,G=2147483647;else if(34028234663852886e22<$)X=0,G=(R<<31|2139095040)>>>0;else if(11754943508222875e-54>$)$=Math.round($/Math.pow(2,-149)),X=0,G=(R<<31|$)>>>0;else{var J=Math.floor(Math.log($)/Math.LN2);$*=Math.pow(2,-J),$=Math.round(8388608*$),16777216<=$&&++J,X=0,G=(R<<31|J+127<<23|$&8388607)>>>0}}h("jspb.utils.splitFloat32",oe,void 0);function se($){var R=0>$?1:0;if($=R?-$:$,$===0)X=0<1/$?0:2147483648,G=0;else if(isNaN($))X=2147483647,G=4294967295;else if(17976931348623157e292<$)X=(R<<31|2146435072)>>>0,G=0;else if(22250738585072014e-324>$)$/=Math.pow(2,-1074),X=(R<<31|$/4294967296)>>>0,G=$>>>0;else{var J=$,Ee=0;if(2<=J)for(;2<=J&&1023>Ee;)Ee++,J/=2;else for(;1>J&&-1022>>0,G=4503599627370496*$>>>0}}h("jspb.utils.splitFloat64",se,void 0);function fe($){var R=$.charCodeAt(4),J=$.charCodeAt(5),Ee=$.charCodeAt(6),ke=$.charCodeAt(7);G=$.charCodeAt(0)+($.charCodeAt(1)<<8)+($.charCodeAt(2)<<16)+($.charCodeAt(3)<<24)>>>0,X=R+(J<<8)+(Ee<<16)+(ke<<24)>>>0}h("jspb.utils.splitHash64",fe,void 0);function te($,R){return 4294967296*R+($>>>0)}h("jspb.utils.joinUint64",te,void 0);function he($,R){var J=R&2147483648;return J&&($=~$+1>>>0,R=~R>>>0,$==0&&(R=R+1>>>0)),$=te($,R),J?-$:$}h("jspb.utils.joinInt64",he,void 0);function pe($,R,J){var Ee=R>>31;return J($<<1^Ee,(R<<1|$>>>31)^Ee)}h("jspb.utils.toZigzag64",pe,void 0);function Oe($,R){return Me($,R,he)}h("jspb.utils.joinZigzag64",Oe,void 0);function Me($,R,J){var Ee=-($&1);return J(($>>>1|R<<31)^Ee,R>>>1^Ee)}h("jspb.utils.fromZigzag64",Me,void 0);function Se($){var R=2*($>>31)+1,J=$>>>23&255;return $&=8388607,J==255?$?NaN:1/0*R:J==0?R*Math.pow(2,-149)*$:R*Math.pow(2,J-150)*($+Math.pow(2,23))}h("jspb.utils.joinFloat32",Se,void 0);function ye($,R){var J=2*(R>>31)+1,Ee=R>>>20&2047;return $=4294967296*(R&1048575)+$,Ee==2047?$?NaN:1/0*J:Ee==0?J*Math.pow(2,-1074)*$:J*Math.pow(2,Ee-1075)*($+4503599627370496)}h("jspb.utils.joinFloat64",ye,void 0);function ve($,R){return String.fromCharCode($>>>0&255,$>>>8&255,$>>>16&255,$>>>24&255,R>>>0&255,R>>>8&255,R>>>16&255,R>>>24&255)}h("jspb.utils.joinHash64",ve,void 0),h("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function be($,R){function J(ke,Je){return ke=ke?String(ke):"",Je?"0000000".slice(ke.length)+ke:ke}if(2097151>=R)return""+te($,R);var Ee=($>>>24|R<<8)>>>0&16777215;return R=R>>16&65535,$=($&16777215)+6777216*Ee+6710656*R,Ee+=8147497*R,R*=2,1e7<=$&&(Ee+=Math.floor($/1e7),$%=1e7),1e7<=Ee&&(R+=Math.floor(Ee/1e7),Ee%=1e7),J(R,0)+J(Ee,R)+J($,1)}h("jspb.utils.joinUnsignedDecimalString",be,void 0);function Pe($,R){var J=R&2147483648;return J&&($=~$+1>>>0,R=~R+($==0?1:0)>>>0),$=be($,R),J?"-"+$:$}h("jspb.utils.joinSignedDecimalString",Pe,void 0);function Ne($,R){fe($),$=G;var J=X;return R?Pe($,J):be($,J)}h("jspb.utils.hash64ToDecimalString",Ne,void 0),h("jspb.utils.hash64ArrayToDecimalStrings",function($,R){for(var J=Array($.length),Ee=0;Ee<$.length;Ee++)J[Ee]=Ne($[Ee],R);return J},void 0);function U($){function R(Dt,an){for(var En=0;8>En&&(Dt!==1||0>>=8}function J(){for(var Dt=0;8>Dt;Dt++)ke[Dt]=~ke[Dt]&255}x(0<$.length);var Ee=!1;$[0]==="-"&&(Ee=!0,$=$.slice(1));for(var ke=[0,0,0,0,0,0,0,0],Je=0;Je<$.length;Je++)R(10,$.charCodeAt(Je)-48);return Ee&&(J(),R(1,1)),F(ke)}h("jspb.utils.decimalStringToHash64",U,void 0),h("jspb.utils.splitDecimalString",function($){fe(U($))},void 0);function H($){return String.fromCharCode(10>$?48+$:87+$)}function q($){return 97<=$?$-97+10:$-48}h("jspb.utils.hash64ToHexString",function($){var R=Array(18);R[0]="0",R[1]="x";for(var J=0;8>J;J++){var Ee=$.charCodeAt(7-J);R[2*J+2]=H(Ee>>4),R[2*J+3]=H(Ee&15)}return R.join("")},void 0),h("jspb.utils.hexStringToHash64",function($){$=$.toLowerCase(),x($.length==18),x($[0]=="0"),x($[1]=="x");for(var R="",J=0;8>J;J++)R=String.fromCharCode(16*q($.charCodeAt(2*J+2))+q($.charCodeAt(2*J+3)))+R;return R},void 0),h("jspb.utils.hash64ToNumber",function($,R){fe($),$=G;var J=X;return R?he($,J):te($,J)},void 0),h("jspb.utils.numberToHash64",function($){return le($),ve(G,X)},void 0),h("jspb.utils.countVarints",function($,R,J){for(var Ee=0,ke=R;ke>7;return J-R-Ee},void 0),h("jspb.utils.countVarintFields",function($,R,J,Ee){var ke=0;if(Ee*=8,128>Ee)for(;R>=7}if($[R++]!=Je)break;for(ke++;Je=$[R++],(Je&128)!=0;);}return ke},void 0);function me($,R,J,Ee,ke){var Je=0;if(128>Ee)for(;R>=7}if($[R++]!=Dt)break;Je++,R+=ke}return Je}h("jspb.utils.countFixed32Fields",function($,R,J,Ee){return me($,R,J,8*Ee+5,4)},void 0),h("jspb.utils.countFixed64Fields",function($,R,J,Ee){return me($,R,J,8*Ee+1,8)},void 0),h("jspb.utils.countDelimitedFields",function($,R,J,Ee){var ke=0;for(Ee=8*Ee+2;R>=7}if($[R++]!=Je)break;ke++;for(var Dt=0,an=1;Je=$[R++],Dt+=(Je&127)*an,an*=128,(Je&128)!=0;);R+=Dt}return ke},void 0),h("jspb.utils.debugBytesToTextFormat",function($){var R='"';if($){$=Ce($);for(var J=0;J<$.length;J++)R+="\\x",16>$[J]&&(R+="0"),R+=$[J].toString(16)}return R+'"'},void 0),h("jspb.utils.debugScalarToTextFormat",function($){if(typeof $=="string"){$=String($);for(var R=['"'],J=0;J<$.length;J++){var Ee=$.charAt(J),ke=Ee.charCodeAt(0),Je=J+1,Dt;(Dt=V[Ee])||(31ke||(ke=Ee,ke in W?Ee=W[ke]:ke in V?Ee=W[ke]=V[ke]:(Dt=ke.charCodeAt(0),31Dt?Ee=ke:(256>Dt?(Ee="\\x",(16>Dt||256Dt&&(Ee+="0")),Ee+=Dt.toString(16).toUpperCase()),Ee=W[ke]=Ee)),Dt=Ee),R[Je]=Dt}R.push('"'),$=R.join("")}else $=$.toString();return $},void 0),h("jspb.utils.stringToByteArray",function($){for(var R=new Uint8Array($.length),J=0;J<$.length;J++){var Ee=$.charCodeAt(J);if(255Le.length&&Le.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.clone=function(){return He(this.b,this.h,this.c-this.h)},ue.prototype.clone=ue.prototype.clone,ue.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ue.prototype.clear=ue.prototype.clear,ue.prototype.Y=function(){return this.b},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.H=function($,R,J){this.b=Ce($),this.h=R!==void 0?R:0,this.c=J!==void 0?this.h+J:this.b.length,this.a=this.h},ue.prototype.setBlock=ue.prototype.H,ue.prototype.Db=function(){return this.c},ue.prototype.getEnd=ue.prototype.Db,ue.prototype.setEnd=function($){this.c=$},ue.prototype.setEnd=ue.prototype.setEnd,ue.prototype.reset=function(){this.a=this.h},ue.prototype.reset=ue.prototype.reset,ue.prototype.B=function(){return this.a},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Ma=function($){this.a=$},ue.prototype.setCursor=ue.prototype.Ma,ue.prototype.advance=function($){this.a+=$,x(this.a<=this.c)},ue.prototype.advance=ue.prototype.advance,ue.prototype.ya=function(){return this.a==this.c},ue.prototype.atEnd=ue.prototype.ya,ue.prototype.Qb=function(){return this.a>this.c},ue.prototype.pastEnd=ue.prototype.Qb,ue.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ue.prototype.getError=ue.prototype.getError,ue.prototype.w=function($){for(var R=128,J=0,Ee=0,ke=0;4>ke&&128<=R;ke++)R=this.b[this.a++],J|=(R&127)<<7*ke;if(128<=R&&(R=this.b[this.a++],J|=(R&127)<<28,Ee|=(R&127)>>4),128<=R)for(ke=0;5>ke&&128<=R;ke++)R=this.b[this.a++],Ee|=(R&127)<<7*ke+3;if(128>R)return $(J>>>0,Ee>>>0);O("Failed to read varint, encoding is invalid."),this.v=!0},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function($){return this.w(function(R,J){return Me(R,J,$)})},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.ta=function($){var R=this.b,J=this.a;this.a+=8;for(var Ee=0,ke=0,Je=J+7;Je>=J;Je--)Ee=Ee<<8|R[Je],ke=ke<<8|R[Je+4];return $(Ee,ke)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},ue.prototype.skipVarint=ue.prototype.kb,ue.prototype.mb=function($){for(;128<$;)this.a--,$>>>=7;this.a--},ue.prototype.unskipVarint=ue.prototype.mb,ue.prototype.o=function(){var $=this.b,R=$[this.a],J=R&127;return 128>R?(this.a+=1,x(this.a<=this.c),J):(R=$[this.a+1],J|=(R&127)<<7,128>R?(this.a+=2,x(this.a<=this.c),J):(R=$[this.a+2],J|=(R&127)<<14,128>R?(this.a+=3,x(this.a<=this.c),J):(R=$[this.a+3],J|=(R&127)<<21,128>R?(this.a+=4,x(this.a<=this.c),J):(R=$[this.a+4],J|=(R&15)<<28,128>R?(this.a+=5,x(this.a<=this.c),J>>>0):(this.a+=5,128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&x(!1),x(this.a<=this.c),J)))))},ue.prototype.readUnsignedVarint32=ue.prototype.o,ue.prototype.da=function(){return~~this.o()},ue.prototype.readSignedVarint32=ue.prototype.da,ue.prototype.O=function(){return this.o().toString()},ue.prototype.Ea=function(){return this.da().toString()},ue.prototype.readSignedVarint32String=ue.prototype.Ea,ue.prototype.Ia=function(){var $=this.o();return $>>>1^-($&1)},ue.prototype.readZigzagVarint32=ue.prototype.Ia,ue.prototype.Ga=function(){return this.w(te)},ue.prototype.readUnsignedVarint64=ue.prototype.Ga,ue.prototype.Ha=function(){return this.w(be)},ue.prototype.readUnsignedVarint64String=ue.prototype.Ha,ue.prototype.sa=function(){return this.w(he)},ue.prototype.readSignedVarint64=ue.prototype.sa,ue.prototype.Fa=function(){return this.w(Pe)},ue.prototype.readSignedVarint64String=ue.prototype.Fa,ue.prototype.Ja=function(){return this.w(Oe)},ue.prototype.readZigzagVarint64=ue.prototype.Ja,ue.prototype.fb=function(){return this.ea(ve)},ue.prototype.readZigzagVarintHash64=ue.prototype.fb,ue.prototype.Ka=function(){return this.ea(Pe)},ue.prototype.readZigzagVarint64String=ue.prototype.Ka,ue.prototype.Gc=function(){var $=this.b[this.a];return this.a+=1,x(this.a<=this.c),$},ue.prototype.readUint8=ue.prototype.Gc,ue.prototype.Ec=function(){var $=this.b[this.a],R=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),$<<0|R<<8},ue.prototype.readUint16=ue.prototype.Ec,ue.prototype.m=function(){var $=this.b[this.a],R=this.b[this.a+1],J=this.b[this.a+2],Ee=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),($<<0|R<<8|J<<16|Ee<<24)>>>0},ue.prototype.readUint32=ue.prototype.m,ue.prototype.ga=function(){var $=this.m(),R=this.m();return te($,R)},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){var $=this.m(),R=this.m();return be($,R)},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.Xb=function(){var $=this.b[this.a];return this.a+=1,x(this.a<=this.c),$<<24>>24},ue.prototype.readInt8=ue.prototype.Xb,ue.prototype.Vb=function(){var $=this.b[this.a],R=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),($<<0|R<<8)<<16>>16},ue.prototype.readInt16=ue.prototype.Vb,ue.prototype.P=function(){var $=this.b[this.a],R=this.b[this.a+1],J=this.b[this.a+2],Ee=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),$<<0|R<<8|J<<16|Ee<<24},ue.prototype.readInt32=ue.prototype.P,ue.prototype.ba=function(){var $=this.m(),R=this.m();return he($,R)},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){var $=this.m(),R=this.m();return Pe($,R)},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.aa=function(){var $=this.m();return Se($)},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){var $=this.m(),R=this.m();return ye($,R)},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return!!this.b[this.a++]},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return this.da()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function($){var R=this.b,J=this.a;$=J+$;for(var Ee=[],ke="";J<$;){var Je=R[J++];if(128>Je)Ee.push(Je);else{if(192>Je)continue;if(224>Je){var Dt=R[J++];Ee.push((Je&31)<<6|Dt&63)}else if(240>Je){Dt=R[J++];var an=R[J++];Ee.push((Je&15)<<12|(Dt&63)<<6|an&63)}else if(248>Je){Dt=R[J++],an=R[J++];var En=R[J++];Je=(Je&7)<<18|(Dt&63)<<12|(an&63)<<6|En&63,Je-=65536,Ee.push((Je>>10&1023)+55296,(Je&1023)+56320)}}8192<=Ee.length&&(ke+=String.fromCharCode.apply(null,Ee),Ee.length=0)}return ke+=F(Ee),this.a=J,ke},ue.prototype.readString=ue.prototype.fa,ue.prototype.Dc=function(){var $=this.o();return this.fa($)},ue.prototype.readStringWithLength=ue.prototype.Dc,ue.prototype.qa=function($){if(0>$||this.a+$>this.b.length)return this.v=!0,O("Invalid byte length!"),new Uint8Array(0);var R=this.b.subarray(this.a,this.a+$);return this.a+=$,x(this.a<=this.c),R},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return this.w(ve)},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.$=function(){var $=this.b,R=this.a,J=$[R],Ee=$[R+1],ke=$[R+2],Je=$[R+3],Dt=$[R+4],an=$[R+5],En=$[R+6];return $=$[R+7],this.a+=8,String.fromCharCode(J,Ee,ke,Je,Dt,an,En,$)},ue.prototype.readFixedHash64=ue.prototype.$;function ge($,R,J){this.a=He($,R,J),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}h("jspb.BinaryReader",ge,void 0);var De=[];ge.clearInstanceCache=function(){De=[]},ge.getInstanceCacheLength=function(){return De.length};function qe($,R,J){if(De.length){var Ee=De.pop();return $&&Ee.a.H($,R,J),Ee}return new ge($,R,J)}ge.alloc=qe,ge.prototype.zb=qe,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>De.length&&De.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function($,R,J){this.a.H($,R,J),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function($){this.a.advance($)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return O("Decoder hit an error"),!1;this.O=this.a.B();var $=this.a.o(),R=$>>>3;return $&=7,$!=0&&$!=5&&$!=1&&$!=2&&$!=3&&$!=4?(O("Invalid wire type: %s (at position %s)",$,this.O),this.h=!0,!1):(this.c=R,this.b=$,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var $=this.c;for(this.Oa();this.oa()&&this.c==$;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(O("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)O("Invalid wire type for skipDelimitedField"),this.C();else{var $=this.a.o();this.a.advance($)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(O("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(O("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var $=this.c;do{if(!this.oa()){O("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=$&&(O("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.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:O("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function($,R){this.v===null&&(this.v={}),x(!this.v[$]),this.v[$]=R},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function($){return x(this.v!==null),$=this.v[$],x($),$(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function($,R){x(this.b==2);var J=this.a.c,Ee=this.a.o();Ee=this.a.B()+Ee,this.a.setEnd(Ee),R($,this),this.a.Ma(Ee),this.a.setEnd(J)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function($,R,J){x(this.b==3),x(this.c==$),J(R,this),this.h||this.b==4||(O("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){x(this.b==2);var $=this.a.o(),R=this.a.B(),J=R+$;return $=He(this.a.Y(),R,$),this.a.Ma(J),$},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return x(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return x(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return x(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return x(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return x(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return x(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return x(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return x(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return x(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return x(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return x(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return x(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return x(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return x(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return x(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return x(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return x(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return x(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return x(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return x(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return x(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return x(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){x(this.b==2);var $=this.a.o();return this.a.fa($)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){x(this.b==2);var $=this.a.o();return this.a.qa($)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return x(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return x(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function($){return x(this.b==0),this.a.w($)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function($){return x(this.b==0),this.a.w(function(R,J){return Me(R,J,$)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return x(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function($){return x(this.b==1),this.a.ta($)},ge.prototype.readSplitFixed64=ge.prototype.ta;function je($,R){x($.b==2);var J=$.a.o();J=$.a.B()+J;for(var Ee=[];$.a.B()R.length?J.length:R.length;for($.b&&(Ee[0]=$.b,ke=1);ke$),x(0<=R&&4294967296>R);0>>7|R<<25)>>>0,R>>>=7;this.a.push($)},at.prototype.writeSplitVarint64=at.prototype.l,at.prototype.A=function($,R){x($==Math.floor($)),x(R==Math.floor(R)),x(0<=$&&4294967296>$),x(0<=R&&4294967296>R),this.s($),this.s(R)},at.prototype.writeSplitFixed64=at.prototype.A,at.prototype.j=function($){for(x($==Math.floor($)),x(0<=$&&4294967296>$);127<$;)this.a.push($&127|128),$>>>=7;this.a.push($)},at.prototype.writeUnsignedVarint32=at.prototype.j,at.prototype.M=function($){if(x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),0<=$)this.j($);else{for(var R=0;9>R;R++)this.a.push($&127|128),$>>=7;this.a.push(1)}},at.prototype.writeSignedVarint32=at.prototype.M,at.prototype.va=function($){x($==Math.floor($)),x(0<=$&&18446744073709552e3>$),le($),this.l(G,X)},at.prototype.writeUnsignedVarint64=at.prototype.va,at.prototype.ua=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),le($),this.l(G,X)},at.prototype.writeSignedVarint64=at.prototype.ua,at.prototype.wa=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.j(($<<1^$>>31)>>>0)},at.prototype.writeZigzagVarint32=at.prototype.wa,at.prototype.xa=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),ce($),this.l(G,X)},at.prototype.writeZigzagVarint64=at.prototype.xa,at.prototype.Ta=function($){this.W(U($))},at.prototype.writeZigzagVarint64String=at.prototype.Ta,at.prototype.W=function($){var R=this;fe($),pe(G,X,function(J,Ee){R.l(J>>>0,Ee>>>0)})},at.prototype.writeZigzagVarintHash64=at.prototype.W,at.prototype.be=function($){x($==Math.floor($)),x(0<=$&&256>$),this.a.push($>>>0&255)},at.prototype.writeUint8=at.prototype.be,at.prototype.ae=function($){x($==Math.floor($)),x(0<=$&&65536>$),this.a.push($>>>0&255),this.a.push($>>>8&255)},at.prototype.writeUint16=at.prototype.ae,at.prototype.s=function($){x($==Math.floor($)),x(0<=$&&4294967296>$),this.a.push($>>>0&255),this.a.push($>>>8&255),this.a.push($>>>16&255),this.a.push($>>>24&255)},at.prototype.writeUint32=at.prototype.s,at.prototype.V=function($){x($==Math.floor($)),x(0<=$&&18446744073709552e3>$),ne($),this.s(G),this.s(X)},at.prototype.writeUint64=at.prototype.V,at.prototype.Qc=function($){x($==Math.floor($)),x(-128<=$&&128>$),this.a.push($>>>0&255)},at.prototype.writeInt8=at.prototype.Qc,at.prototype.Pc=function($){x($==Math.floor($)),x(-32768<=$&&32768>$),this.a.push($>>>0&255),this.a.push($>>>8&255)},at.prototype.writeInt16=at.prototype.Pc,at.prototype.S=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.a.push($>>>0&255),this.a.push($>>>8&255),this.a.push($>>>16&255),this.a.push($>>>24&255)},at.prototype.writeInt32=at.prototype.S,at.prototype.T=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),le($),this.A(G,X)},at.prototype.writeInt64=at.prototype.T,at.prototype.ka=function($){x($==Math.floor($)),x(-9223372036854776e3<=+$&&9223372036854776e3>+$),fe(U($)),this.A(G,X)},at.prototype.writeInt64String=at.prototype.ka,at.prototype.L=function($){x($===1/0||$===-1/0||isNaN($)||-34028234663852886e22<=$&&34028234663852886e22>=$),oe($),this.s(G)},at.prototype.writeFloat=at.prototype.L,at.prototype.J=function($){x($===1/0||$===-1/0||isNaN($)||-17976931348623157e292<=$&&17976931348623157e292>=$),se($),this.s(G),this.s(X)},at.prototype.writeDouble=at.prototype.J,at.prototype.I=function($){x(typeof $=="boolean"||typeof $=="number"),this.a.push($?1:0)},at.prototype.writeBool=at.prototype.I,at.prototype.R=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.M($)},at.prototype.writeEnum=at.prototype.R,at.prototype.ja=function($){this.a.push.apply(this.a,$)},at.prototype.writeBytes=at.prototype.ja,at.prototype.N=function($){fe($),this.l(G,X)},at.prototype.writeVarintHash64=at.prototype.N,at.prototype.K=function($){fe($),this.s(G),this.s(X)},at.prototype.writeFixedHash64=at.prototype.K,at.prototype.U=function($){var R=this.a.length;_($);for(var J=0;J<$.length;J++){var Ee=$.charCodeAt(J);if(128>Ee)this.a.push(Ee);else if(2048>Ee)this.a.push(Ee>>6|192),this.a.push(Ee&63|128);else if(65536>Ee)if(55296<=Ee&&56319>=Ee&&J+1<$.length){var ke=$.charCodeAt(J+1);56320<=ke&&57343>=ke&&(Ee=1024*(Ee-55296)+ke-56320+65536,this.a.push(Ee>>18|240),this.a.push(Ee>>12&63|128),this.a.push(Ee>>6&63|128),this.a.push(Ee&63|128),J++)}else this.a.push(Ee>>12|224),this.a.push(Ee>>6&63|128),this.a.push(Ee&63|128)}return this.a.length-R},at.prototype.writeString=at.prototype.U;function Pt($,R){this.lo=$,this.hi=R}h("jspb.arith.UInt64",Pt,void 0),Pt.prototype.cmp=function($){return this.hi<$.hi||this.hi==$.hi&&this.lo<$.lo?-1:this.hi==$.hi&&this.lo==$.lo?0:1},Pt.prototype.cmp=Pt.prototype.cmp,Pt.prototype.La=function(){return new Pt((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},Pt.prototype.rightShift=Pt.prototype.La,Pt.prototype.Da=function(){return new Pt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Pt.prototype.leftShift=Pt.prototype.Da,Pt.prototype.cb=function(){return!!(this.hi&2147483648)},Pt.prototype.msb=Pt.prototype.cb,Pt.prototype.Ob=function(){return!!(this.lo&1)},Pt.prototype.lsb=Pt.prototype.Ob,Pt.prototype.Ua=function(){return this.lo==0&&this.hi==0},Pt.prototype.zero=Pt.prototype.Ua,Pt.prototype.add=function($){return new Pt((this.lo+$.lo&4294967295)>>>0>>>0,((this.hi+$.hi&4294967295)>>>0)+(4294967296<=this.lo+$.lo?1:0)>>>0)},Pt.prototype.add=Pt.prototype.add,Pt.prototype.sub=function($){return new Pt((this.lo-$.lo&4294967295)>>>0>>>0,((this.hi-$.hi&4294967295)>>>0)-(0>this.lo-$.lo?1:0)>>>0)},Pt.prototype.sub=Pt.prototype.sub;function Bt($,R){var J=$&65535;$>>>=16;var Ee=R&65535,ke=R>>>16;for(R=J*Ee+65536*(J*ke&65535)+65536*($*Ee&65535),J=$*ke+(J*ke>>>16)+($*Ee>>>16);4294967296<=R;)R-=4294967296,J+=1;return new Pt(R>>>0,J>>>0)}Pt.mul32x32=Bt,Pt.prototype.eb=function($){var R=Bt(this.lo,$);return $=Bt(this.hi,$),$.hi=$.lo,$.lo=0,R.add($)},Pt.prototype.mul=Pt.prototype.eb,Pt.prototype.Xa=function($){if($==0)return[];var R=new Pt(0,0),J=new Pt(this.lo,this.hi);$=new Pt($,0);for(var Ee=new Pt(1,0);!$.cb();)$=$.Da(),Ee=Ee.Da();for(;!Ee.Ua();)0>=$.cmp(J)&&(R=R.add(Ee),J=J.sub($)),$=$.La(),Ee=Ee.La();return[R,J]},Pt.prototype.div=Pt.prototype.Xa,Pt.prototype.toString=function(){for(var $="",R=this;!R.Ua();){R=R.Xa(10);var J=R[0];$=R[1].lo+$,R=J}return $==""&&($="0"),$},Pt.prototype.toString=Pt.prototype.toString;function xt($){for(var R=new Pt(0,0),J=new Pt(0,0),Ee=0;Ee<$.length;Ee++){if("0">$[Ee]||"9"<$[Ee])return null;J.lo=parseInt($[Ee],10),R=R.eb(10).add(J)}return R}Pt.fromString=xt,Pt.prototype.clone=function(){return new Pt(this.lo,this.hi)},Pt.prototype.clone=Pt.prototype.clone;function yt($,R){this.lo=$,this.hi=R}h("jspb.arith.Int64",yt,void 0),yt.prototype.add=function($){return new yt((this.lo+$.lo&4294967295)>>>0>>>0,((this.hi+$.hi&4294967295)>>>0)+(4294967296<=this.lo+$.lo?1:0)>>>0)},yt.prototype.add=yt.prototype.add,yt.prototype.sub=function($){return new yt((this.lo-$.lo&4294967295)>>>0>>>0,((this.hi-$.hi&4294967295)>>>0)-(0>this.lo-$.lo?1:0)>>>0)},yt.prototype.sub=yt.prototype.sub,yt.prototype.clone=function(){return new yt(this.lo,this.hi)},yt.prototype.clone=yt.prototype.clone,yt.prototype.toString=function(){var $=(this.hi&2147483648)!=0,R=new Pt(this.lo,this.hi);return $&&(R=new Pt(0,0).sub(R)),($?"-":"")+R.toString()},yt.prototype.toString=yt.prototype.toString;function Ft($){var R=0<$.length&&$[0]=="-";return R&&($=$.substring(1)),$=xt($),$===null?null:(R&&($=new Pt(0,0).sub($)),new yt($.lo,$.hi))}yt.fromString=Ft;function Re(){this.c=[],this.b=0,this.a=new at,this.h=[]}h("jspb.BinaryWriter",Re,void 0);function kt($,R){var J=$.a.end();$.c.push(J),$.c.push(R),$.b+=J.length+R.length}function tt($,R){return Ot($,R,2),R=$.a.end(),$.c.push(R),$.b+=R.length,R.push($.b),R}function Mt($,R){var J=R.pop();for(J=$.b+$.a.length()-J,x(0<=J);127>>=7,$.b++;R.push(J),$.b++}Re.prototype.pb=function($,R,J){kt(this,$.subarray(R,J))},Re.prototype.writeSerializedMessage=Re.prototype.pb,Re.prototype.Pb=function($,R,J){$!=null&&R!=null&&J!=null&&this.pb($,R,J)},Re.prototype.maybeWriteSerializedMessage=Re.prototype.Pb,Re.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Re.prototype.reset=Re.prototype.reset,Re.prototype.ab=function(){x(this.h.length==0);for(var $=new Uint8Array(this.b+this.a.length()),R=this.c,J=R.length,Ee=0,ke=0;keR),Pn(this,$,R))},Re.prototype.writeInt32=Re.prototype.S,Re.prototype.ob=function($,R){R!=null&&(R=parseInt(R,10),x(-2147483648<=R&&2147483648>R),Pn(this,$,R))},Re.prototype.writeInt32String=Re.prototype.ob,Re.prototype.T=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),R!=null&&(Ot(this,$,0),this.a.ua(R)))},Re.prototype.writeInt64=Re.prototype.T,Re.prototype.ka=function($,R){R!=null&&(R=Ft(R),Ot(this,$,0),this.a.l(R.lo,R.hi))},Re.prototype.writeInt64String=Re.prototype.ka,Re.prototype.s=function($,R){R!=null&&(x(0<=R&&4294967296>R),pn(this,$,R))},Re.prototype.writeUint32=Re.prototype.s,Re.prototype.ub=function($,R){R!=null&&(R=parseInt(R,10),x(0<=R&&4294967296>R),pn(this,$,R))},Re.prototype.writeUint32String=Re.prototype.ub,Re.prototype.V=function($,R){R!=null&&(x(0<=R&&18446744073709552e3>R),R!=null&&(Ot(this,$,0),this.a.va(R)))},Re.prototype.writeUint64=Re.prototype.V,Re.prototype.vb=function($,R){R!=null&&(R=xt(R),Ot(this,$,0),this.a.l(R.lo,R.hi))},Re.prototype.writeUint64String=Re.prototype.vb,Re.prototype.rb=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),R!=null&&(Ot(this,$,0),this.a.wa(R)))},Re.prototype.writeSint32=Re.prototype.rb,Re.prototype.sb=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),R!=null&&(Ot(this,$,0),this.a.xa(R)))},Re.prototype.writeSint64=Re.prototype.sb,Re.prototype.$d=function($,R){R!=null&&R!=null&&(Ot(this,$,0),this.a.W(R))},Re.prototype.writeSintHash64=Re.prototype.$d,Re.prototype.Zd=function($,R){R!=null&&R!=null&&(Ot(this,$,0),this.a.Ta(R))},Re.prototype.writeSint64String=Re.prototype.Zd,Re.prototype.Pa=function($,R){R!=null&&(x(0<=R&&4294967296>R),Ot(this,$,5),this.a.s(R))},Re.prototype.writeFixed32=Re.prototype.Pa,Re.prototype.Qa=function($,R){R!=null&&(x(0<=R&&18446744073709552e3>R),Ot(this,$,1),this.a.V(R))},Re.prototype.writeFixed64=Re.prototype.Qa,Re.prototype.nb=function($,R){R!=null&&(R=xt(R),Ot(this,$,1),this.a.A(R.lo,R.hi))},Re.prototype.writeFixed64String=Re.prototype.nb,Re.prototype.Ra=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),Ot(this,$,5),this.a.S(R))},Re.prototype.writeSfixed32=Re.prototype.Ra,Re.prototype.Sa=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),Ot(this,$,1),this.a.T(R))},Re.prototype.writeSfixed64=Re.prototype.Sa,Re.prototype.qb=function($,R){R!=null&&(R=Ft(R),Ot(this,$,1),this.a.A(R.lo,R.hi))},Re.prototype.writeSfixed64String=Re.prototype.qb,Re.prototype.L=function($,R){R!=null&&(Ot(this,$,5),this.a.L(R))},Re.prototype.writeFloat=Re.prototype.L,Re.prototype.J=function($,R){R!=null&&(Ot(this,$,1),this.a.J(R))},Re.prototype.writeDouble=Re.prototype.J,Re.prototype.I=function($,R){R!=null&&(x(typeof R=="boolean"||typeof R=="number"),Ot(this,$,0),this.a.I(R))},Re.prototype.writeBool=Re.prototype.I,Re.prototype.R=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),Ot(this,$,0),this.a.M(R))},Re.prototype.writeEnum=Re.prototype.R,Re.prototype.U=function($,R){R!=null&&($=tt(this,$),this.a.U(R),Mt(this,$))},Re.prototype.writeString=Re.prototype.U,Re.prototype.ja=function($,R){R!=null&&(R=Ce(R),Ot(this,$,2),this.a.j(R.length),kt(this,R))},Re.prototype.writeBytes=Re.prototype.ja,Re.prototype.Rc=function($,R,J){R!=null&&($=tt(this,$),J(R,this),Mt(this,$))},Re.prototype.writeMessage=Re.prototype.Rc,Re.prototype.Sc=function($,R,J){R!=null&&(Ot(this,1,3),Ot(this,2,0),this.a.M($),$=tt(this,3),J(R,this),Mt(this,$),Ot(this,1,4))},Re.prototype.writeMessageSet=Re.prototype.Sc,Re.prototype.Oc=function($,R,J){R!=null&&(Ot(this,$,3),J(R,this),Ot(this,$,4))},Re.prototype.writeGroup=Re.prototype.Oc,Re.prototype.K=function($,R){R!=null&&(x(R.length==8),Ot(this,$,1),this.a.K(R))},Re.prototype.writeFixedHash64=Re.prototype.K,Re.prototype.N=function($,R){R!=null&&(x(R.length==8),Ot(this,$,0),this.a.N(R))},Re.prototype.writeVarintHash64=Re.prototype.N,Re.prototype.A=function($,R,J){Ot(this,$,1),this.a.A(R,J)},Re.prototype.writeSplitFixed64=Re.prototype.A,Re.prototype.l=function($,R,J){Ot(this,$,0),this.a.l(R,J)},Re.prototype.writeSplitVarint64=Re.prototype.l,Re.prototype.tb=function($,R,J){Ot(this,$,0);var Ee=this.a;pe(R,J,function(ke,Je){Ee.l(ke>>>0,Je>>>0)})},Re.prototype.writeSplitZigzagVarint64=Re.prototype.tb,Re.prototype.Ed=function($,R){if(R!=null)for(var J=0;J>>0,an>>>0)});Mt(this,$)}},Re.prototype.writePackedSplitZigzagVarint64=Re.prototype.od,Re.prototype.dd=function($,R){if(R!=null&&R.length){$=tt(this,$);for(var J=0;J0&&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 s9=proto;var I5=T5,a3=(function(){return this?this:typeof window<"u"?window:typeof a3<"u"?a3:typeof self<"u"?self:Function("return this")()}).call(null);I5.exportSymbol("proto.Thread",null,a3);proto.Thread=function(e){vn.Message.initialize(this,e,0,-1,null,null)};I5.inherits(proto.Thread,vn.Message);I5.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 YCe=proto;var k5=T5,s3=(function(){return this?this:typeof window<"u"?window:typeof s3<"u"?s3:typeof self<"u"?self:Function("return this")()}).call(null);k5.exportSymbol("proto.Message",null,s3);proto.Message=function(e){vn.Message.initialize(this,e,0,-1,null,null)};k5.inherits(proto.Message,vn.Message);k5.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 nee=proto,XCe="modulepreload",QCe=function(e){return"/kanban/"+e},l9={},JCe=function(t,n,r){let o=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"));o=Promise.allSettled(n.map(l=>{if(l=QCe(l),l in l9)return;l9[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":XCe,c||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};//! moment.js +*/var vn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function($,R,J){$!=Array.prototype&&$!=Object.prototype&&($[R]=J.value)},n=(typeof window<"u"&&window===ro||typeof ro<"u"&&ro!=null,ro);function r($,R){if(R){var J=n;$=$.split(".");for(var Ee=0;Ee<$.length-1;Ee++){var ke=$[Ee];ke in J||(J[ke]={}),J=J[ke]}$=$[$.length-1],Ee=J[$],R=R(Ee),R!=Ee&&R!=null&&t(J,$,{configurable:!0,writable:!0,value:R})}}function o($){var R=0;return function(){return R<$.length?{done:!1,value:$[R++]}:{done:!0}}}function i(){i=function(){},n.Symbol||(n.Symbol=s)}function a($,R){this.a=$,t(this,"description",{configurable:!0,writable:!0,value:R})}a.prototype.toString=function(){return this.a};var s=function(){function $(J){if(this instanceof $)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(J||"")+"_"+R++,J)}var R=0;return $}();function l(){i();var $=n.Symbol.iterator;$||($=n.Symbol.iterator=n.Symbol("Symbol.iterator")),typeof Array.prototype[$]!="function"&&t(Array.prototype,$,{configurable:!0,writable:!0,value:function(){return c(o(this))}}),l=function(){}}function c($){return l(),$={next:$},$[n.Symbol.iterator]=function(){return this},$}function u($,R){l(),$ instanceof String&&($+="");var J=0,Ee={next:function(){if(J<$.length){var ke=J++;return{value:R(ke,$[ke]),done:!1}}return Ee.next=function(){return{done:!0,value:void 0}},Ee.next()}};return Ee[Symbol.iterator]=function(){return Ee},Ee}r("Array.prototype.entries",function($){return $||function(){return u(this,function(R,J){return[R,J]})}});var f=ro||self;function h($,R,J){$=$.split("."),J=J||f,$[0]in J||typeof J.execScript>"u"||J.execScript("var "+$[0]);for(var Ee;$.length&&(Ee=$.shift());)$.length||R===void 0?J[Ee]&&J[Ee]!==Object.prototype[Ee]?J=J[Ee]:J=J[Ee]={}:J[Ee]=R}function p($){var R=typeof $;if(R=="object")if($){if($ instanceof Array)return"array";if($ instanceof Object)return R;var J=Object.prototype.toString.call($);if(J=="[object Window]")return"object";if(J=="[object Array]"||typeof $.length=="number"&&typeof $.splice<"u"&&typeof $.propertyIsEnumerable<"u"&&!$.propertyIsEnumerable("splice"))return"array";if(J=="[object Function]"||typeof $.call<"u"&&typeof $.propertyIsEnumerable<"u"&&!$.propertyIsEnumerable("call"))return"function"}else return"null";else if(R=="function"&&typeof $.call>"u")return"object";return R}function m($){var R=typeof $;return R=="object"&&$!=null||R=="function"}function g($,R,J){h($,R,J)}function v($,R){function J(){}J.prototype=R.prototype,$.prototype=new J,$.prototype.constructor=$}var b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function y($,R){for(var J,Ee,ke=1;ke=arguments.length?Array.prototype.slice.call($,R):Array.prototype.slice.call($,R,J)}function C($,R,J,Ee){var ke="Assertion failed";if(J){ke+=": "+J;var Je=Ee}else $&&(ke+=": "+$,Je=R);throw Error(ke,Je||[])}function x($,R,J){for(var Ee=[],ke=2;ke=$.length)return String.fromCharCode.apply(null,$);for(var R="",J=0;J<$.length;J+=8192)R+=String.fromCharCode.apply(null,E($,J,J+8192));return R}var V={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},W={"'":"\\'"},K={},L=null;function Q($,R){R===void 0&&(R=0),ie(),R=K[R];for(var J=[],Ee=0;Ee<$.length;Ee+=3){var ke=$[Ee],Je=Ee+1<$.length,Dt=Je?$[Ee+1]:0,an=Ee+2<$.length,En=an?$[Ee+2]:0,Cr=ke>>2;ke=(ke&3)<<4|Dt>>4,Dt=(Dt&15)<<2|En>>6,En&=63,an||(En=64,Je||(Dt=64)),J.push(R[Cr],R[ke],R[Dt]||"",R[En]||"")}return J.join("")}function ee($){var R=$.length,J=3*R/4;J%3?J=Math.floor(J):"=.".indexOf($[R-1])!=-1&&(J="=.".indexOf($[R-2])!=-1?J-2:J-1);var Ee=new Uint8Array(J),ke=0;return re($,function(Je){Ee[ke++]=Je}),Ee.subarray(0,ke)}function re($,R){function J(En){for(;Ee<$.length;){var Cr=$.charAt(Ee++),ur=L[Cr];if(ur!=null)return ur;if(!/^[\s\xa0]*$/.test(Cr))throw Error("Unknown base64 encoding at char: "+Cr)}return En}ie();for(var Ee=0;;){var ke=J(-1),Je=J(0),Dt=J(64),an=J(64);if(an===64&&ke===-1)break;R(ke<<2|Je>>4),Dt!=64&&(R(Je<<4&240|Dt>>2),an!=64&&R(Dt<<6&192|an))}}function ie(){if(!L){L={};for(var $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),R=["+/=","+/","-_=","-_.","-_"],J=0;5>J;J++){var Ee=$.concat(R[J].split(""));K[J]=Ee;for(var ke=0;ke>>0;$=Math.floor(($-R)/4294967296)>>>0,G=R,X=$}h("jspb.utils.splitUint64",ne,void 0);function le($){var R=0>$;$=Math.abs($);var J=$>>>0;$=Math.floor(($-J)/4294967296),$>>>=0,R&&($=~$>>>0,J=(~J>>>0)+1,4294967295$;$=2*Math.abs($),ne($),$=G;var J=X;R&&($==0?J==0?J=$=4294967295:(J--,$=4294967295):$--),G=$,X=J}h("jspb.utils.splitZigzag64",ce,void 0);function oe($){var R=0>$?1:0;if($=R?-$:$,$===0)0<1/$?G=X=0:(X=0,G=2147483648);else if(isNaN($))X=0,G=2147483647;else if(34028234663852886e22<$)X=0,G=(R<<31|2139095040)>>>0;else if(11754943508222875e-54>$)$=Math.round($/Math.pow(2,-149)),X=0,G=(R<<31|$)>>>0;else{var J=Math.floor(Math.log($)/Math.LN2);$*=Math.pow(2,-J),$=Math.round(8388608*$),16777216<=$&&++J,X=0,G=(R<<31|J+127<<23|$&8388607)>>>0}}h("jspb.utils.splitFloat32",oe,void 0);function se($){var R=0>$?1:0;if($=R?-$:$,$===0)X=0<1/$?0:2147483648,G=0;else if(isNaN($))X=2147483647,G=4294967295;else if(17976931348623157e292<$)X=(R<<31|2146435072)>>>0,G=0;else if(22250738585072014e-324>$)$/=Math.pow(2,-1074),X=(R<<31|$/4294967296)>>>0,G=$>>>0;else{var J=$,Ee=0;if(2<=J)for(;2<=J&&1023>Ee;)Ee++,J/=2;else for(;1>J&&-1022>>0,G=4503599627370496*$>>>0}}h("jspb.utils.splitFloat64",se,void 0);function fe($){var R=$.charCodeAt(4),J=$.charCodeAt(5),Ee=$.charCodeAt(6),ke=$.charCodeAt(7);G=$.charCodeAt(0)+($.charCodeAt(1)<<8)+($.charCodeAt(2)<<16)+($.charCodeAt(3)<<24)>>>0,X=R+(J<<8)+(Ee<<16)+(ke<<24)>>>0}h("jspb.utils.splitHash64",fe,void 0);function te($,R){return 4294967296*R+($>>>0)}h("jspb.utils.joinUint64",te,void 0);function he($,R){var J=R&2147483648;return J&&($=~$+1>>>0,R=~R>>>0,$==0&&(R=R+1>>>0)),$=te($,R),J?-$:$}h("jspb.utils.joinInt64",he,void 0);function pe($,R,J){var Ee=R>>31;return J($<<1^Ee,(R<<1|$>>>31)^Ee)}h("jspb.utils.toZigzag64",pe,void 0);function Oe($,R){return Me($,R,he)}h("jspb.utils.joinZigzag64",Oe,void 0);function Me($,R,J){var Ee=-($&1);return J(($>>>1|R<<31)^Ee,R>>>1^Ee)}h("jspb.utils.fromZigzag64",Me,void 0);function Se($){var R=2*($>>31)+1,J=$>>>23&255;return $&=8388607,J==255?$?NaN:1/0*R:J==0?R*Math.pow(2,-149)*$:R*Math.pow(2,J-150)*($+Math.pow(2,23))}h("jspb.utils.joinFloat32",Se,void 0);function ye($,R){var J=2*(R>>31)+1,Ee=R>>>20&2047;return $=4294967296*(R&1048575)+$,Ee==2047?$?NaN:1/0*J:Ee==0?J*Math.pow(2,-1074)*$:J*Math.pow(2,Ee-1075)*($+4503599627370496)}h("jspb.utils.joinFloat64",ye,void 0);function ve($,R){return String.fromCharCode($>>>0&255,$>>>8&255,$>>>16&255,$>>>24&255,R>>>0&255,R>>>8&255,R>>>16&255,R>>>24&255)}h("jspb.utils.joinHash64",ve,void 0),h("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function be($,R){function J(ke,Je){return ke=ke?String(ke):"",Je?"0000000".slice(ke.length)+ke:ke}if(2097151>=R)return""+te($,R);var Ee=($>>>24|R<<8)>>>0&16777215;return R=R>>16&65535,$=($&16777215)+6777216*Ee+6710656*R,Ee+=8147497*R,R*=2,1e7<=$&&(Ee+=Math.floor($/1e7),$%=1e7),1e7<=Ee&&(R+=Math.floor(Ee/1e7),Ee%=1e7),J(R,0)+J(Ee,R)+J($,1)}h("jspb.utils.joinUnsignedDecimalString",be,void 0);function Pe($,R){var J=R&2147483648;return J&&($=~$+1>>>0,R=~R+($==0?1:0)>>>0),$=be($,R),J?"-"+$:$}h("jspb.utils.joinSignedDecimalString",Pe,void 0);function Ne($,R){fe($),$=G;var J=X;return R?Pe($,J):be($,J)}h("jspb.utils.hash64ToDecimalString",Ne,void 0),h("jspb.utils.hash64ArrayToDecimalStrings",function($,R){for(var J=Array($.length),Ee=0;Ee<$.length;Ee++)J[Ee]=Ne($[Ee],R);return J},void 0);function U($){function R(Dt,an){for(var En=0;8>En&&(Dt!==1||0>>=8}function J(){for(var Dt=0;8>Dt;Dt++)ke[Dt]=~ke[Dt]&255}x(0<$.length);var Ee=!1;$[0]==="-"&&(Ee=!0,$=$.slice(1));for(var ke=[0,0,0,0,0,0,0,0],Je=0;Je<$.length;Je++)R(10,$.charCodeAt(Je)-48);return Ee&&(J(),R(1,1)),F(ke)}h("jspb.utils.decimalStringToHash64",U,void 0),h("jspb.utils.splitDecimalString",function($){fe(U($))},void 0);function H($){return String.fromCharCode(10>$?48+$:87+$)}function q($){return 97<=$?$-97+10:$-48}h("jspb.utils.hash64ToHexString",function($){var R=Array(18);R[0]="0",R[1]="x";for(var J=0;8>J;J++){var Ee=$.charCodeAt(7-J);R[2*J+2]=H(Ee>>4),R[2*J+3]=H(Ee&15)}return R.join("")},void 0),h("jspb.utils.hexStringToHash64",function($){$=$.toLowerCase(),x($.length==18),x($[0]=="0"),x($[1]=="x");for(var R="",J=0;8>J;J++)R=String.fromCharCode(16*q($.charCodeAt(2*J+2))+q($.charCodeAt(2*J+3)))+R;return R},void 0),h("jspb.utils.hash64ToNumber",function($,R){fe($),$=G;var J=X;return R?he($,J):te($,J)},void 0),h("jspb.utils.numberToHash64",function($){return le($),ve(G,X)},void 0),h("jspb.utils.countVarints",function($,R,J){for(var Ee=0,ke=R;ke>7;return J-R-Ee},void 0),h("jspb.utils.countVarintFields",function($,R,J,Ee){var ke=0;if(Ee*=8,128>Ee)for(;R>=7}if($[R++]!=Je)break;for(ke++;Je=$[R++],(Je&128)!=0;);}return ke},void 0);function me($,R,J,Ee,ke){var Je=0;if(128>Ee)for(;R>=7}if($[R++]!=Dt)break;Je++,R+=ke}return Je}h("jspb.utils.countFixed32Fields",function($,R,J,Ee){return me($,R,J,8*Ee+5,4)},void 0),h("jspb.utils.countFixed64Fields",function($,R,J,Ee){return me($,R,J,8*Ee+1,8)},void 0),h("jspb.utils.countDelimitedFields",function($,R,J,Ee){var ke=0;for(Ee=8*Ee+2;R>=7}if($[R++]!=Je)break;ke++;for(var Dt=0,an=1;Je=$[R++],Dt+=(Je&127)*an,an*=128,(Je&128)!=0;);R+=Dt}return ke},void 0),h("jspb.utils.debugBytesToTextFormat",function($){var R='"';if($){$=Ce($);for(var J=0;J<$.length;J++)R+="\\x",16>$[J]&&(R+="0"),R+=$[J].toString(16)}return R+'"'},void 0),h("jspb.utils.debugScalarToTextFormat",function($){if(typeof $=="string"){$=String($);for(var R=['"'],J=0;J<$.length;J++){var Ee=$.charAt(J),ke=Ee.charCodeAt(0),Je=J+1,Dt;(Dt=V[Ee])||(31ke||(ke=Ee,ke in W?Ee=W[ke]:ke in V?Ee=W[ke]=V[ke]:(Dt=ke.charCodeAt(0),31Dt?Ee=ke:(256>Dt?(Ee="\\x",(16>Dt||256Dt&&(Ee+="0")),Ee+=Dt.toString(16).toUpperCase()),Ee=W[ke]=Ee)),Dt=Ee),R[Je]=Dt}R.push('"'),$=R.join("")}else $=$.toString();return $},void 0),h("jspb.utils.stringToByteArray",function($){for(var R=new Uint8Array($.length),J=0;J<$.length;J++){var Ee=$.charCodeAt(J);if(255Le.length&&Le.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.clone=function(){return He(this.b,this.h,this.c-this.h)},ue.prototype.clone=ue.prototype.clone,ue.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ue.prototype.clear=ue.prototype.clear,ue.prototype.Y=function(){return this.b},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.H=function($,R,J){this.b=Ce($),this.h=R!==void 0?R:0,this.c=J!==void 0?this.h+J:this.b.length,this.a=this.h},ue.prototype.setBlock=ue.prototype.H,ue.prototype.Db=function(){return this.c},ue.prototype.getEnd=ue.prototype.Db,ue.prototype.setEnd=function($){this.c=$},ue.prototype.setEnd=ue.prototype.setEnd,ue.prototype.reset=function(){this.a=this.h},ue.prototype.reset=ue.prototype.reset,ue.prototype.B=function(){return this.a},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Ma=function($){this.a=$},ue.prototype.setCursor=ue.prototype.Ma,ue.prototype.advance=function($){this.a+=$,x(this.a<=this.c)},ue.prototype.advance=ue.prototype.advance,ue.prototype.ya=function(){return this.a==this.c},ue.prototype.atEnd=ue.prototype.ya,ue.prototype.Qb=function(){return this.a>this.c},ue.prototype.pastEnd=ue.prototype.Qb,ue.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ue.prototype.getError=ue.prototype.getError,ue.prototype.w=function($){for(var R=128,J=0,Ee=0,ke=0;4>ke&&128<=R;ke++)R=this.b[this.a++],J|=(R&127)<<7*ke;if(128<=R&&(R=this.b[this.a++],J|=(R&127)<<28,Ee|=(R&127)>>4),128<=R)for(ke=0;5>ke&&128<=R;ke++)R=this.b[this.a++],Ee|=(R&127)<<7*ke+3;if(128>R)return $(J>>>0,Ee>>>0);O("Failed to read varint, encoding is invalid."),this.v=!0},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function($){return this.w(function(R,J){return Me(R,J,$)})},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.ta=function($){var R=this.b,J=this.a;this.a+=8;for(var Ee=0,ke=0,Je=J+7;Je>=J;Je--)Ee=Ee<<8|R[Je],ke=ke<<8|R[Je+4];return $(Ee,ke)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},ue.prototype.skipVarint=ue.prototype.kb,ue.prototype.mb=function($){for(;128<$;)this.a--,$>>>=7;this.a--},ue.prototype.unskipVarint=ue.prototype.mb,ue.prototype.o=function(){var $=this.b,R=$[this.a],J=R&127;return 128>R?(this.a+=1,x(this.a<=this.c),J):(R=$[this.a+1],J|=(R&127)<<7,128>R?(this.a+=2,x(this.a<=this.c),J):(R=$[this.a+2],J|=(R&127)<<14,128>R?(this.a+=3,x(this.a<=this.c),J):(R=$[this.a+3],J|=(R&127)<<21,128>R?(this.a+=4,x(this.a<=this.c),J):(R=$[this.a+4],J|=(R&15)<<28,128>R?(this.a+=5,x(this.a<=this.c),J>>>0):(this.a+=5,128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&x(!1),x(this.a<=this.c),J)))))},ue.prototype.readUnsignedVarint32=ue.prototype.o,ue.prototype.da=function(){return~~this.o()},ue.prototype.readSignedVarint32=ue.prototype.da,ue.prototype.O=function(){return this.o().toString()},ue.prototype.Ea=function(){return this.da().toString()},ue.prototype.readSignedVarint32String=ue.prototype.Ea,ue.prototype.Ia=function(){var $=this.o();return $>>>1^-($&1)},ue.prototype.readZigzagVarint32=ue.prototype.Ia,ue.prototype.Ga=function(){return this.w(te)},ue.prototype.readUnsignedVarint64=ue.prototype.Ga,ue.prototype.Ha=function(){return this.w(be)},ue.prototype.readUnsignedVarint64String=ue.prototype.Ha,ue.prototype.sa=function(){return this.w(he)},ue.prototype.readSignedVarint64=ue.prototype.sa,ue.prototype.Fa=function(){return this.w(Pe)},ue.prototype.readSignedVarint64String=ue.prototype.Fa,ue.prototype.Ja=function(){return this.w(Oe)},ue.prototype.readZigzagVarint64=ue.prototype.Ja,ue.prototype.fb=function(){return this.ea(ve)},ue.prototype.readZigzagVarintHash64=ue.prototype.fb,ue.prototype.Ka=function(){return this.ea(Pe)},ue.prototype.readZigzagVarint64String=ue.prototype.Ka,ue.prototype.Gc=function(){var $=this.b[this.a];return this.a+=1,x(this.a<=this.c),$},ue.prototype.readUint8=ue.prototype.Gc,ue.prototype.Ec=function(){var $=this.b[this.a],R=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),$<<0|R<<8},ue.prototype.readUint16=ue.prototype.Ec,ue.prototype.m=function(){var $=this.b[this.a],R=this.b[this.a+1],J=this.b[this.a+2],Ee=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),($<<0|R<<8|J<<16|Ee<<24)>>>0},ue.prototype.readUint32=ue.prototype.m,ue.prototype.ga=function(){var $=this.m(),R=this.m();return te($,R)},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){var $=this.m(),R=this.m();return be($,R)},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.Xb=function(){var $=this.b[this.a];return this.a+=1,x(this.a<=this.c),$<<24>>24},ue.prototype.readInt8=ue.prototype.Xb,ue.prototype.Vb=function(){var $=this.b[this.a],R=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),($<<0|R<<8)<<16>>16},ue.prototype.readInt16=ue.prototype.Vb,ue.prototype.P=function(){var $=this.b[this.a],R=this.b[this.a+1],J=this.b[this.a+2],Ee=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),$<<0|R<<8|J<<16|Ee<<24},ue.prototype.readInt32=ue.prototype.P,ue.prototype.ba=function(){var $=this.m(),R=this.m();return he($,R)},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){var $=this.m(),R=this.m();return Pe($,R)},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.aa=function(){var $=this.m();return Se($)},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){var $=this.m(),R=this.m();return ye($,R)},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return!!this.b[this.a++]},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return this.da()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function($){var R=this.b,J=this.a;$=J+$;for(var Ee=[],ke="";J<$;){var Je=R[J++];if(128>Je)Ee.push(Je);else{if(192>Je)continue;if(224>Je){var Dt=R[J++];Ee.push((Je&31)<<6|Dt&63)}else if(240>Je){Dt=R[J++];var an=R[J++];Ee.push((Je&15)<<12|(Dt&63)<<6|an&63)}else if(248>Je){Dt=R[J++],an=R[J++];var En=R[J++];Je=(Je&7)<<18|(Dt&63)<<12|(an&63)<<6|En&63,Je-=65536,Ee.push((Je>>10&1023)+55296,(Je&1023)+56320)}}8192<=Ee.length&&(ke+=String.fromCharCode.apply(null,Ee),Ee.length=0)}return ke+=F(Ee),this.a=J,ke},ue.prototype.readString=ue.prototype.fa,ue.prototype.Dc=function(){var $=this.o();return this.fa($)},ue.prototype.readStringWithLength=ue.prototype.Dc,ue.prototype.qa=function($){if(0>$||this.a+$>this.b.length)return this.v=!0,O("Invalid byte length!"),new Uint8Array(0);var R=this.b.subarray(this.a,this.a+$);return this.a+=$,x(this.a<=this.c),R},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return this.w(ve)},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.$=function(){var $=this.b,R=this.a,J=$[R],Ee=$[R+1],ke=$[R+2],Je=$[R+3],Dt=$[R+4],an=$[R+5],En=$[R+6];return $=$[R+7],this.a+=8,String.fromCharCode(J,Ee,ke,Je,Dt,an,En,$)},ue.prototype.readFixedHash64=ue.prototype.$;function ge($,R,J){this.a=He($,R,J),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}h("jspb.BinaryReader",ge,void 0);var De=[];ge.clearInstanceCache=function(){De=[]},ge.getInstanceCacheLength=function(){return De.length};function qe($,R,J){if(De.length){var Ee=De.pop();return $&&Ee.a.H($,R,J),Ee}return new ge($,R,J)}ge.alloc=qe,ge.prototype.zb=qe,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>De.length&&De.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function($,R,J){this.a.H($,R,J),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function($){this.a.advance($)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return O("Decoder hit an error"),!1;this.O=this.a.B();var $=this.a.o(),R=$>>>3;return $&=7,$!=0&&$!=5&&$!=1&&$!=2&&$!=3&&$!=4?(O("Invalid wire type: %s (at position %s)",$,this.O),this.h=!0,!1):(this.c=R,this.b=$,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var $=this.c;for(this.Oa();this.oa()&&this.c==$;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(O("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)O("Invalid wire type for skipDelimitedField"),this.C();else{var $=this.a.o();this.a.advance($)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(O("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(O("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var $=this.c;do{if(!this.oa()){O("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=$&&(O("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.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:O("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function($,R){this.v===null&&(this.v={}),x(!this.v[$]),this.v[$]=R},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function($){return x(this.v!==null),$=this.v[$],x($),$(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function($,R){x(this.b==2);var J=this.a.c,Ee=this.a.o();Ee=this.a.B()+Ee,this.a.setEnd(Ee),R($,this),this.a.Ma(Ee),this.a.setEnd(J)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function($,R,J){x(this.b==3),x(this.c==$),J(R,this),this.h||this.b==4||(O("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){x(this.b==2);var $=this.a.o(),R=this.a.B(),J=R+$;return $=He(this.a.Y(),R,$),this.a.Ma(J),$},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return x(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return x(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return x(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return x(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return x(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return x(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return x(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return x(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return x(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return x(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return x(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return x(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return x(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return x(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return x(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return x(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return x(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return x(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return x(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return x(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return x(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return x(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){x(this.b==2);var $=this.a.o();return this.a.fa($)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){x(this.b==2);var $=this.a.o();return this.a.qa($)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return x(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return x(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function($){return x(this.b==0),this.a.w($)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function($){return x(this.b==0),this.a.w(function(R,J){return Me(R,J,$)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return x(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function($){return x(this.b==1),this.a.ta($)},ge.prototype.readSplitFixed64=ge.prototype.ta;function Fe($,R){x($.b==2);var J=$.a.o();J=$.a.B()+J;for(var Ee=[];$.a.B()R.length?J.length:R.length;for($.b&&(Ee[0]=$.b,ke=1);ke$),x(0<=R&&4294967296>R);0>>7|R<<25)>>>0,R>>>=7;this.a.push($)},at.prototype.writeSplitVarint64=at.prototype.l,at.prototype.A=function($,R){x($==Math.floor($)),x(R==Math.floor(R)),x(0<=$&&4294967296>$),x(0<=R&&4294967296>R),this.s($),this.s(R)},at.prototype.writeSplitFixed64=at.prototype.A,at.prototype.j=function($){for(x($==Math.floor($)),x(0<=$&&4294967296>$);127<$;)this.a.push($&127|128),$>>>=7;this.a.push($)},at.prototype.writeUnsignedVarint32=at.prototype.j,at.prototype.M=function($){if(x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),0<=$)this.j($);else{for(var R=0;9>R;R++)this.a.push($&127|128),$>>=7;this.a.push(1)}},at.prototype.writeSignedVarint32=at.prototype.M,at.prototype.va=function($){x($==Math.floor($)),x(0<=$&&18446744073709552e3>$),le($),this.l(G,X)},at.prototype.writeUnsignedVarint64=at.prototype.va,at.prototype.ua=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),le($),this.l(G,X)},at.prototype.writeSignedVarint64=at.prototype.ua,at.prototype.wa=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.j(($<<1^$>>31)>>>0)},at.prototype.writeZigzagVarint32=at.prototype.wa,at.prototype.xa=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),ce($),this.l(G,X)},at.prototype.writeZigzagVarint64=at.prototype.xa,at.prototype.Ta=function($){this.W(U($))},at.prototype.writeZigzagVarint64String=at.prototype.Ta,at.prototype.W=function($){var R=this;fe($),pe(G,X,function(J,Ee){R.l(J>>>0,Ee>>>0)})},at.prototype.writeZigzagVarintHash64=at.prototype.W,at.prototype.be=function($){x($==Math.floor($)),x(0<=$&&256>$),this.a.push($>>>0&255)},at.prototype.writeUint8=at.prototype.be,at.prototype.ae=function($){x($==Math.floor($)),x(0<=$&&65536>$),this.a.push($>>>0&255),this.a.push($>>>8&255)},at.prototype.writeUint16=at.prototype.ae,at.prototype.s=function($){x($==Math.floor($)),x(0<=$&&4294967296>$),this.a.push($>>>0&255),this.a.push($>>>8&255),this.a.push($>>>16&255),this.a.push($>>>24&255)},at.prototype.writeUint32=at.prototype.s,at.prototype.V=function($){x($==Math.floor($)),x(0<=$&&18446744073709552e3>$),ne($),this.s(G),this.s(X)},at.prototype.writeUint64=at.prototype.V,at.prototype.Qc=function($){x($==Math.floor($)),x(-128<=$&&128>$),this.a.push($>>>0&255)},at.prototype.writeInt8=at.prototype.Qc,at.prototype.Pc=function($){x($==Math.floor($)),x(-32768<=$&&32768>$),this.a.push($>>>0&255),this.a.push($>>>8&255)},at.prototype.writeInt16=at.prototype.Pc,at.prototype.S=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.a.push($>>>0&255),this.a.push($>>>8&255),this.a.push($>>>16&255),this.a.push($>>>24&255)},at.prototype.writeInt32=at.prototype.S,at.prototype.T=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),le($),this.A(G,X)},at.prototype.writeInt64=at.prototype.T,at.prototype.ka=function($){x($==Math.floor($)),x(-9223372036854776e3<=+$&&9223372036854776e3>+$),fe(U($)),this.A(G,X)},at.prototype.writeInt64String=at.prototype.ka,at.prototype.L=function($){x($===1/0||$===-1/0||isNaN($)||-34028234663852886e22<=$&&34028234663852886e22>=$),oe($),this.s(G)},at.prototype.writeFloat=at.prototype.L,at.prototype.J=function($){x($===1/0||$===-1/0||isNaN($)||-17976931348623157e292<=$&&17976931348623157e292>=$),se($),this.s(G),this.s(X)},at.prototype.writeDouble=at.prototype.J,at.prototype.I=function($){x(typeof $=="boolean"||typeof $=="number"),this.a.push($?1:0)},at.prototype.writeBool=at.prototype.I,at.prototype.R=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.M($)},at.prototype.writeEnum=at.prototype.R,at.prototype.ja=function($){this.a.push.apply(this.a,$)},at.prototype.writeBytes=at.prototype.ja,at.prototype.N=function($){fe($),this.l(G,X)},at.prototype.writeVarintHash64=at.prototype.N,at.prototype.K=function($){fe($),this.s(G),this.s(X)},at.prototype.writeFixedHash64=at.prototype.K,at.prototype.U=function($){var R=this.a.length;_($);for(var J=0;J<$.length;J++){var Ee=$.charCodeAt(J);if(128>Ee)this.a.push(Ee);else if(2048>Ee)this.a.push(Ee>>6|192),this.a.push(Ee&63|128);else if(65536>Ee)if(55296<=Ee&&56319>=Ee&&J+1<$.length){var ke=$.charCodeAt(J+1);56320<=ke&&57343>=ke&&(Ee=1024*(Ee-55296)+ke-56320+65536,this.a.push(Ee>>18|240),this.a.push(Ee>>12&63|128),this.a.push(Ee>>6&63|128),this.a.push(Ee&63|128),J++)}else this.a.push(Ee>>12|224),this.a.push(Ee>>6&63|128),this.a.push(Ee&63|128)}return this.a.length-R},at.prototype.writeString=at.prototype.U;function $t($,R){this.lo=$,this.hi=R}h("jspb.arith.UInt64",$t,void 0),$t.prototype.cmp=function($){return this.hi<$.hi||this.hi==$.hi&&this.lo<$.lo?-1:this.hi==$.hi&&this.lo==$.lo?0:1},$t.prototype.cmp=$t.prototype.cmp,$t.prototype.La=function(){return new $t((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},$t.prototype.rightShift=$t.prototype.La,$t.prototype.Da=function(){return new $t(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},$t.prototype.leftShift=$t.prototype.Da,$t.prototype.cb=function(){return!!(this.hi&2147483648)},$t.prototype.msb=$t.prototype.cb,$t.prototype.Ob=function(){return!!(this.lo&1)},$t.prototype.lsb=$t.prototype.Ob,$t.prototype.Ua=function(){return this.lo==0&&this.hi==0},$t.prototype.zero=$t.prototype.Ua,$t.prototype.add=function($){return new $t((this.lo+$.lo&4294967295)>>>0>>>0,((this.hi+$.hi&4294967295)>>>0)+(4294967296<=this.lo+$.lo?1:0)>>>0)},$t.prototype.add=$t.prototype.add,$t.prototype.sub=function($){return new $t((this.lo-$.lo&4294967295)>>>0>>>0,((this.hi-$.hi&4294967295)>>>0)-(0>this.lo-$.lo?1:0)>>>0)},$t.prototype.sub=$t.prototype.sub;function Bt($,R){var J=$&65535;$>>>=16;var Ee=R&65535,ke=R>>>16;for(R=J*Ee+65536*(J*ke&65535)+65536*($*Ee&65535),J=$*ke+(J*ke>>>16)+($*Ee>>>16);4294967296<=R;)R-=4294967296,J+=1;return new $t(R>>>0,J>>>0)}$t.mul32x32=Bt,$t.prototype.eb=function($){var R=Bt(this.lo,$);return $=Bt(this.hi,$),$.hi=$.lo,$.lo=0,R.add($)},$t.prototype.mul=$t.prototype.eb,$t.prototype.Xa=function($){if($==0)return[];var R=new $t(0,0),J=new $t(this.lo,this.hi);$=new $t($,0);for(var Ee=new $t(1,0);!$.cb();)$=$.Da(),Ee=Ee.Da();for(;!Ee.Ua();)0>=$.cmp(J)&&(R=R.add(Ee),J=J.sub($)),$=$.La(),Ee=Ee.La();return[R,J]},$t.prototype.div=$t.prototype.Xa,$t.prototype.toString=function(){for(var $="",R=this;!R.Ua();){R=R.Xa(10);var J=R[0];$=R[1].lo+$,R=J}return $==""&&($="0"),$},$t.prototype.toString=$t.prototype.toString;function xt($){for(var R=new $t(0,0),J=new $t(0,0),Ee=0;Ee<$.length;Ee++){if("0">$[Ee]||"9"<$[Ee])return null;J.lo=parseInt($[Ee],10),R=R.eb(10).add(J)}return R}$t.fromString=xt,$t.prototype.clone=function(){return new $t(this.lo,this.hi)},$t.prototype.clone=$t.prototype.clone;function bt($,R){this.lo=$,this.hi=R}h("jspb.arith.Int64",bt,void 0),bt.prototype.add=function($){return new bt((this.lo+$.lo&4294967295)>>>0>>>0,((this.hi+$.hi&4294967295)>>>0)+(4294967296<=this.lo+$.lo?1:0)>>>0)},bt.prototype.add=bt.prototype.add,bt.prototype.sub=function($){return new bt((this.lo-$.lo&4294967295)>>>0>>>0,((this.hi-$.hi&4294967295)>>>0)-(0>this.lo-$.lo?1:0)>>>0)},bt.prototype.sub=bt.prototype.sub,bt.prototype.clone=function(){return new bt(this.lo,this.hi)},bt.prototype.clone=bt.prototype.clone,bt.prototype.toString=function(){var $=(this.hi&2147483648)!=0,R=new $t(this.lo,this.hi);return $&&(R=new $t(0,0).sub(R)),($?"-":"")+R.toString()},bt.prototype.toString=bt.prototype.toString;function Ft($){var R=0<$.length&&$[0]=="-";return R&&($=$.substring(1)),$=xt($),$===null?null:(R&&($=new $t(0,0).sub($)),new bt($.lo,$.hi))}bt.fromString=Ft;function Re(){this.c=[],this.b=0,this.a=new at,this.h=[]}h("jspb.BinaryWriter",Re,void 0);function It($,R){var J=$.a.end();$.c.push(J),$.c.push(R),$.b+=J.length+R.length}function tt($,R){return Pt($,R,2),R=$.a.end(),$.c.push(R),$.b+=R.length,R.push($.b),R}function Ot($,R){var J=R.pop();for(J=$.b+$.a.length()-J,x(0<=J);127>>=7,$.b++;R.push(J),$.b++}Re.prototype.pb=function($,R,J){It(this,$.subarray(R,J))},Re.prototype.writeSerializedMessage=Re.prototype.pb,Re.prototype.Pb=function($,R,J){$!=null&&R!=null&&J!=null&&this.pb($,R,J)},Re.prototype.maybeWriteSerializedMessage=Re.prototype.Pb,Re.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Re.prototype.reset=Re.prototype.reset,Re.prototype.ab=function(){x(this.h.length==0);for(var $=new Uint8Array(this.b+this.a.length()),R=this.c,J=R.length,Ee=0,ke=0;keR),Pn(this,$,R))},Re.prototype.writeInt32=Re.prototype.S,Re.prototype.ob=function($,R){R!=null&&(R=parseInt(R,10),x(-2147483648<=R&&2147483648>R),Pn(this,$,R))},Re.prototype.writeInt32String=Re.prototype.ob,Re.prototype.T=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),R!=null&&(Pt(this,$,0),this.a.ua(R)))},Re.prototype.writeInt64=Re.prototype.T,Re.prototype.ka=function($,R){R!=null&&(R=Ft(R),Pt(this,$,0),this.a.l(R.lo,R.hi))},Re.prototype.writeInt64String=Re.prototype.ka,Re.prototype.s=function($,R){R!=null&&(x(0<=R&&4294967296>R),pn(this,$,R))},Re.prototype.writeUint32=Re.prototype.s,Re.prototype.ub=function($,R){R!=null&&(R=parseInt(R,10),x(0<=R&&4294967296>R),pn(this,$,R))},Re.prototype.writeUint32String=Re.prototype.ub,Re.prototype.V=function($,R){R!=null&&(x(0<=R&&18446744073709552e3>R),R!=null&&(Pt(this,$,0),this.a.va(R)))},Re.prototype.writeUint64=Re.prototype.V,Re.prototype.vb=function($,R){R!=null&&(R=xt(R),Pt(this,$,0),this.a.l(R.lo,R.hi))},Re.prototype.writeUint64String=Re.prototype.vb,Re.prototype.rb=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),R!=null&&(Pt(this,$,0),this.a.wa(R)))},Re.prototype.writeSint32=Re.prototype.rb,Re.prototype.sb=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),R!=null&&(Pt(this,$,0),this.a.xa(R)))},Re.prototype.writeSint64=Re.prototype.sb,Re.prototype.$d=function($,R){R!=null&&R!=null&&(Pt(this,$,0),this.a.W(R))},Re.prototype.writeSintHash64=Re.prototype.$d,Re.prototype.Zd=function($,R){R!=null&&R!=null&&(Pt(this,$,0),this.a.Ta(R))},Re.prototype.writeSint64String=Re.prototype.Zd,Re.prototype.Pa=function($,R){R!=null&&(x(0<=R&&4294967296>R),Pt(this,$,5),this.a.s(R))},Re.prototype.writeFixed32=Re.prototype.Pa,Re.prototype.Qa=function($,R){R!=null&&(x(0<=R&&18446744073709552e3>R),Pt(this,$,1),this.a.V(R))},Re.prototype.writeFixed64=Re.prototype.Qa,Re.prototype.nb=function($,R){R!=null&&(R=xt(R),Pt(this,$,1),this.a.A(R.lo,R.hi))},Re.prototype.writeFixed64String=Re.prototype.nb,Re.prototype.Ra=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),Pt(this,$,5),this.a.S(R))},Re.prototype.writeSfixed32=Re.prototype.Ra,Re.prototype.Sa=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),Pt(this,$,1),this.a.T(R))},Re.prototype.writeSfixed64=Re.prototype.Sa,Re.prototype.qb=function($,R){R!=null&&(R=Ft(R),Pt(this,$,1),this.a.A(R.lo,R.hi))},Re.prototype.writeSfixed64String=Re.prototype.qb,Re.prototype.L=function($,R){R!=null&&(Pt(this,$,5),this.a.L(R))},Re.prototype.writeFloat=Re.prototype.L,Re.prototype.J=function($,R){R!=null&&(Pt(this,$,1),this.a.J(R))},Re.prototype.writeDouble=Re.prototype.J,Re.prototype.I=function($,R){R!=null&&(x(typeof R=="boolean"||typeof R=="number"),Pt(this,$,0),this.a.I(R))},Re.prototype.writeBool=Re.prototype.I,Re.prototype.R=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),Pt(this,$,0),this.a.M(R))},Re.prototype.writeEnum=Re.prototype.R,Re.prototype.U=function($,R){R!=null&&($=tt(this,$),this.a.U(R),Ot(this,$))},Re.prototype.writeString=Re.prototype.U,Re.prototype.ja=function($,R){R!=null&&(R=Ce(R),Pt(this,$,2),this.a.j(R.length),It(this,R))},Re.prototype.writeBytes=Re.prototype.ja,Re.prototype.Rc=function($,R,J){R!=null&&($=tt(this,$),J(R,this),Ot(this,$))},Re.prototype.writeMessage=Re.prototype.Rc,Re.prototype.Sc=function($,R,J){R!=null&&(Pt(this,1,3),Pt(this,2,0),this.a.M($),$=tt(this,3),J(R,this),Ot(this,$),Pt(this,1,4))},Re.prototype.writeMessageSet=Re.prototype.Sc,Re.prototype.Oc=function($,R,J){R!=null&&(Pt(this,$,3),J(R,this),Pt(this,$,4))},Re.prototype.writeGroup=Re.prototype.Oc,Re.prototype.K=function($,R){R!=null&&(x(R.length==8),Pt(this,$,1),this.a.K(R))},Re.prototype.writeFixedHash64=Re.prototype.K,Re.prototype.N=function($,R){R!=null&&(x(R.length==8),Pt(this,$,0),this.a.N(R))},Re.prototype.writeVarintHash64=Re.prototype.N,Re.prototype.A=function($,R,J){Pt(this,$,1),this.a.A(R,J)},Re.prototype.writeSplitFixed64=Re.prototype.A,Re.prototype.l=function($,R,J){Pt(this,$,0),this.a.l(R,J)},Re.prototype.writeSplitVarint64=Re.prototype.l,Re.prototype.tb=function($,R,J){Pt(this,$,0);var Ee=this.a;pe(R,J,function(ke,Je){Ee.l(ke>>>0,Je>>>0)})},Re.prototype.writeSplitZigzagVarint64=Re.prototype.tb,Re.prototype.Ed=function($,R){if(R!=null)for(var J=0;J>>0,an>>>0)});Ot(this,$)}},Re.prototype.writePackedSplitZigzagVarint64=Re.prototype.od,Re.prototype.dd=function($,R){if(R!=null&&R.length){$=tt(this,$);for(var J=0;J0&&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 i9=proto;var T5=O5,i3=(function(){return this?this:typeof window<"u"?window:typeof i3<"u"?i3:typeof self<"u"?self:Function("return this")()}).call(null);T5.exportSymbol("proto.Thread",null,i3);proto.Thread=function(e){vn.Message.initialize(this,e,0,-1,null,null)};T5.inherits(proto.Thread,vn.Message);T5.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 GCe=proto;var R5=O5,a3=(function(){return this?this:typeof window<"u"?window:typeof a3<"u"?a3:typeof self<"u"?self:Function("return this")()}).call(null);R5.exportSymbol("proto.Message",null,a3);proto.Message=function(e){vn.Message.initialize(this,e,0,-1,null,null)};R5.inherits(proto.Message,vn.Message);R5.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 tee=proto,YCe="modulepreload",XCe=function(e){return"/kanban/"+e},a9={},QCe=function(t,n,r){let o=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"));o=Promise.allSettled(n.map(l=>{if(l=XCe(l),l in a9)return;a9[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":YCe,c||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var ree;function yn(){return ree.apply(null,arguments)}function ZCe(e){ree=e}function Zl(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Vh(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Rr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function N5(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Rr(e,t))return!1;return!0}function ka(e){return e===void 0}function ed(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function k1(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function oee(e,t){var n=[],r,o=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var F5=/(\[[^\[]*\])|(\\)?([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,$C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,dT={},eg={};function Wn(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(eg[e]=o),t&&(eg[t[0]]=function(){return qc(o.apply(this,arguments),t[1],t[2])}),n&&(eg[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function owe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function iwe(e){var t=e.match(F5),n,r;for(n=0,r=t.length;n=0&&$C.test(e);)e=e.replace($C,r),$C.lastIndex=0,n-=1;return e}var awe={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 swe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(F5).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var lwe="Invalid date";function cwe(){return this._invalidDate}var uwe="%d",dwe=/\d{1,2}/;function fwe(e){return this._ordinal.replace("%d",e)}var hwe={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 pwe(e,t,n,r){var o=this._relativeTime[n];return nu(o)?o(e,t,n,r):o.replace(/%d/i,e)}function mwe(e,t){var n=this._relativeTime[e>0?"future":"past"];return nu(n)?n(t):n.replace(/%s/i,t)}var d9={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 ml(e){return typeof e=="string"?d9[e]||d9[e.toLowerCase()]:void 0}function L5(e){var t={},n,r;for(r in e)Rr(e,r)&&(n=ml(r),n&&(t[n]=e[r]));return t}var gwe={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 vwe(e){var t=[],n;for(n in e)Rr(e,n)&&t.push({unit:n,priority:gwe[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var lee=/\d/,Is=/\d\d/,cee=/\d{3}/,B5=/\d{4}/,L_=/[+-]?\d{6}/,go=/\d\d?/,uee=/\d\d\d\d?/,dee=/\d\d\d\d\d\d?/,B_=/\d{1,3}/,z5=/\d{1,4}/,z_=/[+-]?\d{1,6}/,Cv=/\d+/,H_=/[+-]?\d+/,ywe=/Z|[+-]\d\d:?\d\d/gi,U_=/Z|[+-]\d\d(?::?\d\d)?/gi,bwe=/[+-]?\d+(\.\d{1,3})?/,A1=/[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,wv=/^[1-9]\d?/,H5=/^([1-9]\d|\d)/,h2;h2={};function $n(e,t,n){h2[e]=nu(t)?t:function(r,o){return r&&n?n:t}}function Swe(e,t){return Rr(h2,e)?h2[e](t._strict,t._locale):new RegExp(Cwe(e))}function Cwe(e){return zu(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function zu(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function gr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Xs(t)),n}var d3={};function Gr(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),ed(t)&&(r=function(i,a){a[t]=gr(i)}),o=e.length,n=0;n68?1900:2e3)};var fee=xv("FullYear",!0);function _we(){return W_(this.year())}function xv(e,t){return function(n){return n!=null?(hee(this,e,n),yn.updateOffset(this,t),this):Mb(this,e)}}function Mb(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 hee(e,t,n){var r,o,i,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!W_(i)?28:s,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function $we(e){return e=ml(e),nu(this[e])?this[e]():this}function Pwe(e,t){if(typeof e=="object"){e=L5(e);var n=vwe(e),r,o=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function Tb(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 p2(e,t,n){var r=7+t-n,o=(7+Tb(e,0,r).getUTCDay()-t)%7;return-o+r-1}function bee(e,t,n,r,o){var i=(7+n-r)%7,a=p2(e,r,o),s=1+7*(t-1)+i+a,l,c;return s<=0?(l=e-1,c=Ay(l)+s):s>Ay(e)?(l=e+1,c=s-Ay(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Rb(e,t,n){var r=p2(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+Hu(a,t,n)):o>Hu(e.year(),t,n)?(i=o-Hu(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Hu(e,t,n){var r=p2(e,t,n),o=p2(e+1,t,n);return(Ay(e)-r+o)/7}Wn("w",["ww",2],"wo","week");Wn("W",["WW",2],"Wo","isoWeek");$n("w",go,wv);$n("ww",go,Is);$n("W",go,wv);$n("WW",go,Is);D1(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=gr(e)});function Bwe(e){return Rb(e,this._week.dow,this._week.doy).week}var zwe={dow:0,doy:6};function Hwe(){return this._week.dow}function Uwe(){return this._week.doy}function Wwe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Vwe(e){var t=Rb(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Wn("d",0,"do","day");Wn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Wn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Wn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Wn("e",0,0,"weekday");Wn("E",0,0,"isoWeekday");$n("d",go);$n("e",go);$n("E",go);$n("dd",function(e,t){return t.weekdaysMinRegex(e)});$n("ddd",function(e,t){return t.weekdaysShortRegex(e)});$n("dddd",function(e,t){return t.weekdaysRegex(e)});D1(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:lr(n).invalidWeekday=e});D1(["d","e","E"],function(e,t,n,r){t[r]=gr(e)});function Kwe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function qwe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function W5(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Gwe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),See="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ywe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xwe=A1,Qwe=A1,Jwe=A1;function Zwe(e,t){var n=Zl(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?W5(n,this._week.dow):e?n[e.day()]:n}function exe(e){return e===!0?W5(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function txe(e){return e===!0?W5(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function nxe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=tu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Go.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=Go.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=Go.call(this._weekdaysParse,a),o!==-1||(o=Go.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=Go.call(this._shortWeekdaysParse,a),o!==-1||(o=Go.call(this._weekdaysParse,a),o!==-1)?o:(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=Go.call(this._minWeekdaysParse,a),o!==-1||(o=Go.call(this._weekdaysParse,a),o!==-1)?o:(o=Go.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function rxe(e,t,n){var r,o,i;if(this._weekdaysParseExact)return nxe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=tu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.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 oxe(e){if(!this.isValid())return e!=null?this:NaN;var t=Mb(this,"Day");return e!=null?(e=Kwe(e,this.localeData()),this.add(e-t,"d")):t}function ixe(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 axe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=qwe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function sxe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||V5.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Rr(this,"_weekdaysRegex")||(this._weekdaysRegex=Xwe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function lxe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||V5.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Rr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qwe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cxe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||V5.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Rr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jwe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function V5(){function e(u,f){return f.length-u.length}var t=[],n=[],r=[],o=[],i,a,s,l,c;for(i=0;i<7;i++)a=tu([2e3,1]).day(i),s=zu(this.weekdaysMin(a,"")),l=zu(this.weekdaysShort(a,"")),c=zu(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),o.push(s),o.push(l),o.push(c);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.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 K5(){return this.hours()%12||12}function uxe(){return this.hours()||24}Wn("H",["HH",2],0,"hour");Wn("h",["hh",2],0,K5);Wn("k",["kk",2],0,uxe);Wn("hmm",0,0,function(){return""+K5.apply(this)+qc(this.minutes(),2)});Wn("hmmss",0,0,function(){return""+K5.apply(this)+qc(this.minutes(),2)+qc(this.seconds(),2)});Wn("Hmm",0,0,function(){return""+this.hours()+qc(this.minutes(),2)});Wn("Hmmss",0,0,function(){return""+this.hours()+qc(this.minutes(),2)+qc(this.seconds(),2)});function Cee(e,t){Wn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Cee("a",!0);Cee("A",!1);function wee(e,t){return t._meridiemParse}$n("a",wee);$n("A",wee);$n("H",go,H5);$n("h",go,wv);$n("k",go,wv);$n("HH",go,Is);$n("hh",go,Is);$n("kk",go,Is);$n("hmm",uee);$n("hmmss",dee);$n("Hmm",uee);$n("Hmmss",dee);Gr(["H","HH"],mi);Gr(["k","kk"],function(e,t,n){var r=gr(e);t[mi]=r===24?0:r});Gr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Gr(["h","hh"],function(e,t,n){t[mi]=gr(e),lr(n).bigHour=!0});Gr("hmm",function(e,t,n){var r=e.length-2;t[mi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r)),lr(n).bigHour=!0});Gr("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[mi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r,2)),t[Fu]=gr(e.substr(o)),lr(n).bigHour=!0});Gr("Hmm",function(e,t,n){var r=e.length-2;t[mi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r))});Gr("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[mi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r,2)),t[Fu]=gr(e.substr(o))});function dxe(e){return(e+"").toLowerCase().charAt(0)==="p"}var fxe=/[ap]\.?m?\.?/i,hxe=xv("Hours",!0);function pxe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var xee={calendar:nwe,longDateFormat:awe,invalidDate:lwe,ordinal:uwe,dayOfMonthOrdinalParse:dwe,relativeTime:hwe,months:Mwe,monthsShort:pee,week:zwe,weekdays:Gwe,weekdaysMin:Ywe,weekdaysShort:See,meridiemParse:fxe},bo={},T0={},Ib;function mxe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=V_(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&mxe(i,r)>=n-1)break;n--}t++}return Ib}function vxe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function V_(e){var t=null,n;if(bo[e]===void 0&&typeof module<"u"&&module&&module.exports&&vxe(e))try{t=Ib._abbr,n=require,n("./locale/"+e),mf(t)}catch{bo[e]=null}return bo[e]}function mf(e,t){var n;return e&&(ka(t)?n=dd(e):n=q5(e,t),n?Ib=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ib._abbr}function q5(e,t){if(t!==null){var n,r=xee;if(t.abbr=e,bo[e]!=null)aee("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=bo[e]._config;else if(t.parentLocale!=null)if(bo[t.parentLocale]!=null)r=bo[t.parentLocale]._config;else if(n=V_(t.parentLocale),n!=null)r=n._config;else return T0[t.parentLocale]||(T0[t.parentLocale]=[]),T0[t.parentLocale].push({name:e,config:t}),null;return bo[e]=new j5(c3(r,t)),T0[e]&&T0[e].forEach(function(o){q5(o.name,o.config)}),mf(e),bo[e]}else return delete bo[e],null}function yxe(e,t){if(t!=null){var n,r,o=xee;bo[e]!=null&&bo[e].parentLocale!=null?bo[e].set(c3(bo[e]._config,t)):(r=V_(e),r!=null&&(o=r._config),t=c3(o,t),r==null&&(t.abbr=e),n=new j5(t),n.parentLocale=bo[e],bo[e]=n),mf(e)}else bo[e]!=null&&(bo[e].parentLocale!=null?(bo[e]=bo[e].parentLocale,e===mf()&&mf(e)):bo[e]!=null&&delete bo[e]);return bo[e]}function dd(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ib;if(!Zl(e)){if(t=V_(e),t)return t;e=[e]}return gxe(e)}function bxe(){return u3(bo)}function G5(e){var t,n=e._a;return n&&lr(e).overflow===-2&&(t=n[ju]<0||n[ju]>11?ju:n[kc]<1||n[kc]>U5(n[na],n[ju])?kc:n[mi]<0||n[mi]>24||n[mi]===24&&(n[Fl]!==0||n[Fu]!==0||n[$h]!==0)?mi:n[Fl]<0||n[Fl]>59?Fl:n[Fu]<0||n[Fu]>59?Fu:n[$h]<0||n[$h]>999?$h:-1,lr(e)._overflowDayOfYear&&(tkc)&&(t=kc),lr(e)._overflowWeeks&&t===-1&&(t=xwe),lr(e)._overflowWeekday&&t===-1&&(t=Ewe),lr(e).overflow=t),e}var Sxe=/^\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)?)?$/,Cxe=/^\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)?)?$/,wxe=/Z|[+-]\d\d(?::?\d\d)?/,PC=[["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]],fT=[["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/]],xxe=/^\/?Date\((-?\d+)/i,Exe=/^(?:(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}))$/,_xe={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 Eee(e){var t,n,r=e._i,o=Sxe.exec(r)||Cxe.exec(r),i,a,s,l,c=PC.length,u=fT.length;if(o){for(lr(e).iso=!0,t=0,n=c;tAy(a)||e._dayOfYear===0)&&(lr(e)._overflowDayOfYear=!0),n=Tb(a,0,e._dayOfYear),e._a[ju]=n.getUTCMonth(),e._a[kc]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[mi]===24&&e._a[Fl]===0&&e._a[Fu]===0&&e._a[$h]===0&&(e._nextDay=!0,e._a[mi]=0),e._d=(e._useUTC?Tb:Lwe).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[mi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(lr(e).weekdayMismatch=!0)}}function kxe(e){var t,n,r,o,i,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=$m(t.GG,e._a[na],Rb(mo(),1,4).year),r=$m(t.W,1),o=$m(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Rb(mo(),i,a),n=$m(t.gg,e._a[na],c.year),r=$m(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Hu(n,i,a)?lr(e)._overflowWeeks=!0:l!=null?lr(e)._overflowWeekday=!0:(s=bee(n,r,o,i,a),e._a[na]=s.year,e._dayOfYear=s.dayOfYear)}yn.ISO_8601=function(){};yn.RFC_2822=function(){};function X5(e){if(e._f===yn.ISO_8601){Eee(e);return}if(e._f===yn.RFC_2822){_ee(e);return}e._a=[],lr(e).empty=!0;var t=""+e._i,n,r,o,i,a,s=t.length,l=0,c,u;for(o=see(e._f,e._locale).match(F5)||[],u=o.length,n=0;n0&&lr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),eg[i]?(r?lr(e).empty=!1:lr(e).unusedTokens.push(i),wwe(i,r,e)):e._strict&&!r&&lr(e).unusedTokens.push(i);lr(e).charsLeftOver=s-l,t.length>0&&lr(e).unusedInput.push(t),e._a[mi]<=12&&lr(e).bigHour===!0&&e._a[mi]>0&&(lr(e).bigHour=void 0),lr(e).parsedDateParts=e._a.slice(0),lr(e).meridiem=e._meridiem,e._a[mi]=Nxe(e._locale,e._a[mi],e._meridiem),c=lr(e).era,c!==null&&(e._a[na]=e._locale.erasConvertYear(c,e._a[na])),Y5(e),G5(e)}function Nxe(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 Axe(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(l===0){lr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:F_()});function Oee(e,t){var n,r;if(t.length===1&&Zl(t[0])&&(t=t[0]),!t.length)return mo();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function n2e(){if(!ka(this._isDSTShifted))return this._isDSTShifted;var e={},t;return D5(e,this),e=$ee(e),e._a?(t=e._isUTC?tu(e._a):mo(e._a),this._isDSTShifted=this.isValid()&&qxe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function r2e(){return this.isValid()?!this._isUTC:!1}function o2e(){return this.isValid()?this._isUTC:!1}function Tee(){return this.isValid()?this._isUTC&&this._offset===0:!1}var i2e=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,a2e=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function pc(e,t){var n=e,r=null,o,i,a;return Ww(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ed(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=i2e.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:gr(r[kc])*o,h:gr(r[mi])*o,m:gr(r[Fl])*o,s:gr(r[Fu])*o,ms:gr(f3(r[$h]*1e3))*o}):(r=a2e.exec(e))?(o=r[1]==="-"?-1:1,n={y:nh(r[2],o),M:nh(r[3],o),w:nh(r[4],o),d:nh(r[5],o),h:nh(r[6],o),m:nh(r[7],o),s:nh(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=s2e(mo(n.from),mo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new K_(n),Ww(e)&&Rr(e,"_locale")&&(i._locale=e._locale),Ww(e)&&Rr(e,"_isValid")&&(i._isValid=e._isValid),i}pc.fn=K_.prototype;pc.invalid=Kxe;function nh(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function h9(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 s2e(e,t){var n;return e.isValid()&&t.isValid()?(t=J5(t,e),e.isBefore(t)?n=h9(e,t):(n=h9(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ree(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(aee(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."),i=n,n=r,r=i),o=pc(n,r),Iee(this,o,e),this}}function Iee(e,t,n,r){var o=t._milliseconds,i=f3(t._days),a=f3(t._months);e.isValid()&&(r=r??!0,a&&gee(e,Mb(e,"Month")+a*n),i&&hee(e,"Date",Mb(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&yn.updateOffset(e,i||a))}var l2e=Ree(1,"add"),c2e=Ree(-1,"subtract");function kee(e){return typeof e=="string"||e instanceof String}function u2e(e){return ec(e)||k1(e)||kee(e)||ed(e)||f2e(e)||d2e(e)||e===null||e===void 0}function d2e(e){var t=Vh(e)&&!N5(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"],o,i,a=r.length;for(o=0;on.valueOf():n.valueOf()9999?Uw(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Uw(n,"Z")):Uw(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $2e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function P2e(e){e||(e=this.isUtc()?yn.defaultFormatUtc:yn.defaultFormat);var t=Uw(this,e);return this.localeData().postformat(t)}function O2e(e,t){return this.isValid()&&(ec(e)&&e.isValid()||mo(e).isValid())?pc({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function M2e(e){return this.from(mo(),e)}function T2e(e,t){return this.isValid()&&(ec(e)&&e.isValid()||mo(e).isValid())?pc({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function R2e(e){return this.to(mo(),e)}function Nee(e){var t;return e===void 0?this._locale._abbr:(t=dd(e),t!=null&&(this._locale=t),this)}var Aee=pl("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 Dee(){return this._locale}var m2=1e3,tg=60*m2,g2=60*tg,jee=(365*400+97)*24*g2;function ng(e,t){return(e%t+t)%t}function Fee(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-jee:new Date(e,t,n).valueOf()}function Lee(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-jee:Date.UTC(e,t,n)}function I2e(e){var t,n;if(e=ml(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Lee:Fee,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-=ng(t+(this._isUTC?0:this.utcOffset()*tg),g2);break;case"minute":t=this._d.valueOf(),t-=ng(t,tg);break;case"second":t=this._d.valueOf(),t-=ng(t,m2);break}return this._d.setTime(t),yn.updateOffset(this,!0),this}function k2e(e){var t,n;if(e=ml(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Lee:Fee,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+=g2-ng(t+(this._isUTC?0:this.utcOffset()*tg),g2)-1;break;case"minute":t=this._d.valueOf(),t+=tg-ng(t,tg)-1;break;case"second":t=this._d.valueOf(),t+=m2-ng(t,m2)-1;break}return this._d.setTime(t),yn.updateOffset(this,!0),this}function N2e(){return this._d.valueOf()-(this._offset||0)*6e4}function A2e(){return Math.floor(this.valueOf()/1e3)}function D2e(){return new Date(this.valueOf())}function j2e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function F2e(){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 L2e(){return this.isValid()?this.toISOString():null}function B2e(){return A5(this)}function z2e(){return Qd({},lr(this))}function H2e(){return lr(this).overflow}function U2e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Wn("N",0,0,"eraAbbr");Wn("NN",0,0,"eraAbbr");Wn("NNN",0,0,"eraAbbr");Wn("NNNN",0,0,"eraName");Wn("NNNNN",0,0,"eraNarrow");Wn("y",["y",1],"yo","eraYear");Wn("y",["yy",2],0,"eraYear");Wn("y",["yyy",3],0,"eraYear");Wn("y",["yyyy",4],0,"eraYear");$n("N",Z5);$n("NN",Z5);$n("NNN",Z5);$n("NNNN",eEe);$n("NNNNN",tEe);Gr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?lr(n).era=o:lr(n).invalidEra=e});$n("y",Cv);$n("yy",Cv);$n("yyy",Cv);$n("yyyy",Cv);$n("yo",nEe);Gr(["y","yy","yyy","yyyy"],na);Gr(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[na]=n._locale.eraYearOrdinalParse(e,o):t[na]=parseInt(e,10)});function W2e(e,t){var n,r,o,i=this._eras||dd("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function K2e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?yn(e.since).year():yn(e.since).year()+(t-e.offset)*n}function q2e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),cEe.call(this,e,t,n,r,o))}function cEe(e,t,n,r,o){var i=bee(e,t,n,r,o),a=Tb(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Wn("Q",0,"Qo","quarter");$n("Q",lee);Gr("Q",function(e,t){t[ju]=(gr(e)-1)*3});function uEe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Wn("D",["DD",2],"Do","date");$n("D",go,wv);$n("DD",go,Is);$n("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Gr(["D","DD"],kc);Gr("Do",function(e,t){t[kc]=gr(e.match(go)[0])});var zee=xv("Date",!0);Wn("DDD",["DDDD",3],"DDDo","dayOfYear");$n("DDD",B_);$n("DDDD",cee);Gr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=gr(e)});function dEe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Wn("m",["mm",2],0,"minute");$n("m",go,H5);$n("mm",go,Is);Gr(["m","mm"],Fl);var fEe=xv("Minutes",!1);Wn("s",["ss",2],0,"second");$n("s",go,H5);$n("ss",go,Is);Gr(["s","ss"],Fu);var hEe=xv("Seconds",!1);Wn("S",0,0,function(){return~~(this.millisecond()/100)});Wn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Wn(0,["SSS",3],0,"millisecond");Wn(0,["SSSS",4],0,function(){return this.millisecond()*10});Wn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Wn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Wn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Wn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Wn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});$n("S",B_,lee);$n("SS",B_,Is);$n("SSS",B_,cee);var Jd,Hee;for(Jd="SSSS";Jd.length<=9;Jd+="S")$n(Jd,Cv);function pEe(e,t){t[$h]=gr(("0."+e)*1e3)}for(Jd="S";Jd.length<=9;Jd+="S")Gr(Jd,pEe);Hee=xv("Milliseconds",!1);Wn("z",0,0,"zoneAbbr");Wn("zz",0,0,"zoneName");function mEe(){return this._isUTC?"UTC":""}function gEe(){return this._isUTC?"Coordinated Universal Time":""}var on=N1.prototype;on.add=l2e;on.calendar=m2e;on.clone=g2e;on.diff=x2e;on.endOf=k2e;on.format=P2e;on.from=O2e;on.fromNow=M2e;on.to=T2e;on.toNow=R2e;on.get=$we;on.invalidAt=H2e;on.isAfter=v2e;on.isBefore=y2e;on.isBetween=b2e;on.isSame=S2e;on.isSameOrAfter=C2e;on.isSameOrBefore=w2e;on.isValid=B2e;on.lang=Aee;on.locale=Nee;on.localeData=Dee;on.max=Bxe;on.min=Lxe;on.parsingFlags=z2e;on.set=Pwe;on.startOf=I2e;on.subtract=c2e;on.toArray=j2e;on.toObject=F2e;on.toDate=D2e;on.toISOString=_2e;on.inspect=$2e;typeof Symbol<"u"&&Symbol.for!=null&&(on[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});on.toJSON=L2e;on.toString=E2e;on.unix=A2e;on.valueOf=N2e;on.creationData=U2e;on.eraName=q2e;on.eraNarrow=G2e;on.eraAbbr=Y2e;on.eraYear=X2e;on.year=fee;on.isLeapYear=_we;on.weekYear=rEe;on.isoWeekYear=oEe;on.quarter=on.quarters=uEe;on.month=vee;on.daysInMonth=Dwe;on.week=on.weeks=Wwe;on.isoWeek=on.isoWeeks=Vwe;on.weeksInYear=sEe;on.weeksInWeekYear=lEe;on.isoWeeksInYear=iEe;on.isoWeeksInISOWeekYear=aEe;on.date=zee;on.day=on.days=oxe;on.weekday=ixe;on.isoWeekday=axe;on.dayOfYear=dEe;on.hour=on.hours=hxe;on.minute=on.minutes=fEe;on.second=on.seconds=hEe;on.millisecond=on.milliseconds=Hee;on.utcOffset=Yxe;on.utc=Qxe;on.local=Jxe;on.parseZone=Zxe;on.hasAlignedHourOffset=e2e;on.isDST=t2e;on.isLocal=r2e;on.isUtcOffset=o2e;on.isUtc=Tee;on.isUTC=Tee;on.zoneAbbr=mEe;on.zoneName=gEe;on.dates=pl("dates accessor is deprecated. Use date instead.",zee);on.months=pl("months accessor is deprecated. Use month instead",vee);on.years=pl("years accessor is deprecated. Use year instead",fee);on.zone=pl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Xxe);on.isDSTShifted=pl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",n2e);function vEe(e){return mo(e*1e3)}function yEe(){return mo.apply(null,arguments).parseZone()}function Uee(e){return e}var Ir=j5.prototype;Ir.calendar=rwe;Ir.longDateFormat=swe;Ir.invalidDate=cwe;Ir.ordinal=fwe;Ir.preparse=Uee;Ir.postformat=Uee;Ir.relativeTime=pwe;Ir.pastFuture=mwe;Ir.set=twe;Ir.eras=W2e;Ir.erasParse=V2e;Ir.erasConvertYear=K2e;Ir.erasAbbrRegex=J2e;Ir.erasNameRegex=Q2e;Ir.erasNarrowRegex=Z2e;Ir.months=Iwe;Ir.monthsShort=kwe;Ir.monthsParse=Awe;Ir.monthsRegex=Fwe;Ir.monthsShortRegex=jwe;Ir.week=Bwe;Ir.firstDayOfYear=Uwe;Ir.firstDayOfWeek=Hwe;Ir.weekdays=Zwe;Ir.weekdaysMin=txe;Ir.weekdaysShort=exe;Ir.weekdaysParse=rxe;Ir.weekdaysRegex=sxe;Ir.weekdaysShortRegex=lxe;Ir.weekdaysMinRegex=cxe;Ir.isPM=dxe;Ir.meridiem=pxe;function v2(e,t,n,r){var o=dd(),i=tu().set(r,t);return o[n](i,e)}function Wee(e,t,n){if(ed(e)&&(t=e,e=void 0),e=e||"",t!=null)return v2(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=v2(e,r,n,"month");return o}function tA(e,t,n,r){typeof e=="boolean"?(ed(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ed(t)&&(n=t,t=void 0),t=t||"");var o=dd(),i=e?o._week.dow:0,a,s=[];if(n!=null)return v2(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=v2(t,(a+i)%7,r,"day");return s}function bEe(e,t){return Wee(e,t,"months")}function SEe(e,t){return Wee(e,t,"monthsShort")}function CEe(e,t,n){return tA(e,t,n,"weekdays")}function wEe(e,t,n){return tA(e,t,n,"weekdaysShort")}function xEe(e,t,n){return tA(e,t,n,"weekdaysMin")}mf("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=gr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});yn.lang=pl("moment.lang is deprecated. Use moment.locale instead.",mf);yn.langData=pl("moment.langData is deprecated. Use moment.localeData instead.",dd);var gu=Math.abs;function EEe(){var e=this._data;return this._milliseconds=gu(this._milliseconds),this._days=gu(this._days),this._months=gu(this._months),e.milliseconds=gu(e.milliseconds),e.seconds=gu(e.seconds),e.minutes=gu(e.minutes),e.hours=gu(e.hours),e.months=gu(e.months),e.years=gu(e.years),this}function Vee(e,t,n,r){var o=pc(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _Ee(e,t){return Vee(this,e,t,1)}function $Ee(e,t){return Vee(this,e,t,-1)}function p9(e){return e<0?Math.floor(e):Math.ceil(e)}function PEe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=p9(p3(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Xs(e/1e3),r.seconds=o%60,i=Xs(o/60),r.minutes=i%60,a=Xs(i/60),r.hours=a%24,t+=Xs(a/24),l=Xs(Kee(t)),n+=l,t-=p9(p3(l)),s=Xs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Kee(e){return e*4800/146097}function p3(e){return e*146097/4800}function OEe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ml(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Kee(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(p3(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 fd(e){return function(){return this.as(e)}}var qee=fd("ms"),MEe=fd("s"),TEe=fd("m"),REe=fd("h"),IEe=fd("d"),kEe=fd("w"),NEe=fd("M"),AEe=fd("Q"),DEe=fd("y"),jEe=qee;function FEe(){return pc(this)}function LEe(e){return e=ml(e),this.isValid()?this[e+"s"]():NaN}function Ap(e){return function(){return this.isValid()?this._data[e]:NaN}}var BEe=Ap("milliseconds"),zEe=Ap("seconds"),HEe=Ap("minutes"),UEe=Ap("hours"),WEe=Ap("days"),VEe=Ap("months"),KEe=Ap("years");function qEe(){return Xs(this.days()/7)}var Ou=Math.round,Hm={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function GEe(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function YEe(e,t,n,r){var o=pc(e).abs(),i=Ou(o.as("s")),a=Ou(o.as("m")),s=Ou(o.as("h")),l=Ou(o.as("d")),c=Ou(o.as("M")),u=Ou(o.as("w")),f=Ou(o.as("y")),h=i<=n.ss&&["s",i]||i0,h[4]=r,GEe.apply(null,h)}function XEe(e){return e===void 0?Ou:typeof e=="function"?(Ou=e,!0):!1}function QEe(e,t){return Hm[e]===void 0?!1:t===void 0?Hm[e]:(Hm[e]=t,e==="s"&&(Hm.ss=t-1),!0)}function JEe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Hm,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Hm,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=YEe(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var hT=Math.abs;function im(e){return(e>0)-(e<0)||+e}function G_(){if(!this.isValid())return this.localeData().invalidDate();var e=hT(this._milliseconds)/1e3,t=hT(this._days),n=hT(this._months),r,o,i,a,s=this.asSeconds(),l,c,u,f;return s?(r=Xs(e/60),o=Xs(r/60),e%=60,r%=60,i=Xs(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=im(this._months)!==im(s)?"-":"",u=im(this._days)!==im(s)?"-":"",f=im(this._milliseconds)!==im(s)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var _r=K_.prototype;_r.isValid=Vxe;_r.abs=EEe;_r.add=_Ee;_r.subtract=$Ee;_r.as=OEe;_r.asMilliseconds=qee;_r.asSeconds=MEe;_r.asMinutes=TEe;_r.asHours=REe;_r.asDays=IEe;_r.asWeeks=kEe;_r.asMonths=NEe;_r.asQuarters=AEe;_r.asYears=DEe;_r.valueOf=jEe;_r._bubble=PEe;_r.clone=FEe;_r.get=LEe;_r.milliseconds=BEe;_r.seconds=zEe;_r.minutes=HEe;_r.hours=UEe;_r.days=WEe;_r.weeks=qEe;_r.months=VEe;_r.years=KEe;_r.humanize=JEe;_r.toISOString=G_;_r.toString=G_;_r.toJSON=G_;_r.locale=Nee;_r.localeData=Dee;_r.toIsoString=pl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",G_);_r.lang=Aee;Wn("X",0,0,"unix");Wn("x",0,0,"valueOf");$n("x",H_);$n("X",bwe);Gr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Gr("x",function(e,t,n){n._d=new Date(gr(e))});//! moment.js -yn.version="2.30.1";ZCe(mo);yn.fn=on;yn.min=zxe;yn.max=Hxe;yn.now=Uxe;yn.utc=tu;yn.unix=vEe;yn.months=bEe;yn.isDate=k1;yn.locale=mf;yn.invalid=F_;yn.duration=pc;yn.isMoment=ec;yn.weekdays=CEe;yn.parseZone=yEe;yn.localeData=dd;yn.isDuration=Ww;yn.monthsShort=SEe;yn.weekdaysMin=xEe;yn.defineLocale=q5;yn.updateLocale=yxe;yn.locales=bxe;yn.weekdaysShort=wEe;yn.normalizeUnits=ml;yn.relativeTimeRounding=XEe;yn.relativeTimeThreshold=QEe;yn.calendarFormat=p2e;yn.prototype=on;yn.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 OC;const ZEe=new Uint8Array(16);function e_e(){if(!OC&&(OC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!OC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return OC(ZEe)}const Ii=[];for(let e=0;e<256;++e)Ii.push((e+256).toString(16).slice(1));function t_e(e,t=0){return Ii[e[t+0]]+Ii[e[t+1]]+Ii[e[t+2]]+Ii[e[t+3]]+"-"+Ii[e[t+4]]+Ii[e[t+5]]+"-"+Ii[e[t+6]]+Ii[e[t+7]]+"-"+Ii[e[t+8]]+Ii[e[t+9]]+"-"+Ii[e[t+10]]+Ii[e[t+11]]+Ii[e[t+12]]+Ii[e[t+13]]+Ii[e[t+14]]+Ii[e[t+15]]}const n_e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),m9={randomUUID:n_e};function r_e(e,t,n){if(m9.randomUUID&&!t&&!e)return m9.randomUUID();e=e||{};const r=e.random||(e.rng||e_e)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,t_e(r)}const o_e="1.0.2";function i_e(){return o_e}function a_e(){const e=localStorage.getItem(Mw);(e===null||e==="true")&&new Audio(nye).play()}function s_e(){return yn().format("YYYY-MM-DD HH:mm:ss")}function Y_(){return r_e().replaceAll(/-/g,"")}function am(e){return e.endsWith("/")?e.slice(0,-1):e}function g9(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function l_e(e){if(lye===e||cye===e||uye===e||dye===e||fye===e)return!0}function c_e(e){return e===$b||e===Pb}function u_e(e){return e===$b||e===Pb}function d_e(e){return e.startsWith(bye)}function Gee(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const Dp=hl()(uc(dc(fc(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:D0e}))),Ll=hl()(uc(dc(fc((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 o,i;if(n.state===V7)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((o=t().currentThread)==null?void 0:o.topic)===""||((i=t().currentThread)==null?void 0:i.topic)!==n.topic){for(let a=0;aa.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===sye)return t().addQueuingThread(n),0;const o=t().threads.some(c=>c.topic===n.topic),i=!c_e(r.type);if(u_e(r.type)&&(n.state=K7),o)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.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 i&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(o=>o.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let o=null;const i=t().threads.map(a=>a.topic===n?(o={...a,unreadCount:a.unreadCount+1,content:r},o):a);return e({threads:i}),o},updateThreadStatus(n,r){let o=null;const i=t().threads.map(a=>a.topic===n?(o={...a,state:r},o):a);return e({threads:i}),o},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(o=>o.topic===n?{...o,state:K7}:o);e({threads:r})},addThreads(n){for(let r=0;ra.topic===o.topic))e({threads:[...t().threads,o]});else{const a=t().threads.map(s=>s.topic===o.topic?{...o,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(i=>{i.showQueueList=!1});const r={...n,unreadCount:0},o=t().threads.map(i=>i.topic===r.topic?r:i);e(i=>{i.currentThread=r,i.threads=o})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var o;return r.unreadCount>0&&r.topic!==((o=t().currentThread)==null?void 0:o.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(o=>{o.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=Dp.getState();if(n!=null&&n.uid){const{threadService:r}=await JCe(async()=>{const{threadService:o}=await import("./threadService-BvUCCLW3.js");return{threadService:o}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:H0e}))),hd=hl()(uc(dc(fc((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(o=>o.uid===n.uid)){if(n.type===_b){const i=t().messageList.findIndex(a=>a.type===_b&&a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i].content+=n.content,e({messageList:a});return}}const o=t().messageList.findIndex(i=>i.uid===n.uid);if(o!==-1){const i=[...t().messageList];i[o]=n,e({messageList:i})}}else{const o=t().messageList[t().messageList.length-1];if(o&&n.type===$k&&o.type===$k){const i=t().messageList.findIndex(s=>s.uid===o.uid),a=[...t().messageList];a[i]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let i=0;il.uid===a.uid)||r.unshift(a)}const o=[...r,...t().messageList].sort((i,a)=>{const s=yn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=yn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",o),e({messageList:o})},updateMessageStatus(n,r){const o=t().messageList.findIndex(i=>i.uid===n);if(o!==-1){const i=[...t().messageList];i[o].status=r,e({messageList:i})}},updateMessage(n){const r=t().messageList.findIndex(o=>o.uid===n.uid);if(r!==-1){const o=[...t().messageList];o[r].content=n.content,e({messageList:o})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(o=>o.uid===n);if(r!==-1){const o=[...t().messageList];o.splice(r,1),e({messageList:o})}},recallMessage(n){const r=t().messageList.findIndex(o=>o.uid===n);if(r!==-1){const o=[...t().messageList];o[r].type=$Q,o[r].content="该消息已被撤回",e({messageList:o})}},sortMessageList(){const n=t().messageList.sort((r,o)=>{const i=yn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=yn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return i-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:F0e}))),yi=hl()(uc(dc(fc((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:B0e}))),jp=hl()(uc(dc(fc((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const o=r.agentResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o[i]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const o=r.agentResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o.splice(i,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,o=r.findIndex(i=>i.uid===n);o!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,o),...r.slice(o+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:W0e})));var Yee={exports:{}};/*! +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var l9={};function iee(e,t){yn.deprecationHandler!=null&&yn.deprecationHandler(e,t),l9[e]||(oee(t),l9[e]=!0)}yn.suppressDeprecationWarnings=!1;yn.deprecationHandler=null;function tu(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ewe(e){var t,n;for(n in e)Rr(e,n)&&(t=e[n],tu(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 l3(e,t){var n=Qd({},e),r;for(r in t)Rr(t,r)&&(Vh(e[r])&&Vh(t[r])?(n[r]={},Qd(n[r],e[r]),Qd(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Rr(e,r)&&!Rr(t,r)&&Vh(e[r])&&(n[r]=Qd({},n[r]));return n}function A5(e){e!=null&&this.set(e)}var c3;Object.keys?c3=Object.keys:c3=function(e){var t,n=[];for(t in e)Rr(e,t)&&n.push(t);return n};var twe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function nwe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return tu(r)?r.call(t,n):r}function qc(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var D5=/(\[[^\[]*\])|(\\)?([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,PC=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,dT={},eg={};function Wn(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(eg[e]=o),t&&(eg[t[0]]=function(){return qc(o.apply(this,arguments),t[1],t[2])}),n&&(eg[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function rwe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function owe(e){var t=e.match(D5),n,r;for(n=0,r=t.length;n=0&&PC.test(e);)e=e.replace(PC,r),PC.lastIndex=0,n-=1;return e}var iwe={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 awe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D5).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var swe="Invalid date";function lwe(){return this._invalidDate}var cwe="%d",uwe=/\d{1,2}/;function dwe(e){return this._ordinal.replace("%d",e)}var fwe={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 hwe(e,t,n,r){var o=this._relativeTime[n];return tu(o)?o(e,t,n,r):o.replace(/%d/i,e)}function pwe(e,t){var n=this._relativeTime[e>0?"future":"past"];return tu(n)?n(t):n.replace(/%s/i,t)}var c9={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 ml(e){return typeof e=="string"?c9[e]||c9[e.toLowerCase()]:void 0}function j5(e){var t={},n,r;for(r in e)Rr(e,r)&&(n=ml(r),n&&(t[n]=e[r]));return t}var mwe={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 gwe(e){var t=[],n;for(n in e)Rr(e,n)&&t.push({unit:n,priority:mwe[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var see=/\d/,Is=/\d\d/,lee=/\d{3}/,F5=/\d{4}/,L_=/[+-]?\d{6}/,go=/\d\d?/,cee=/\d\d\d\d?/,uee=/\d\d\d\d\d\d?/,B_=/\d{1,3}/,L5=/\d{1,4}/,z_=/[+-]?\d{1,6}/,Cv=/\d+/,H_=/[+-]?\d+/,vwe=/Z|[+-]\d\d:?\d\d/gi,U_=/Z|[+-]\d\d(?::?\d\d)?/gi,ywe=/[+-]?\d+(\.\d{1,3})?/,D1=/[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,wv=/^[1-9]\d?/,B5=/^([1-9]\d|\d)/,p2;p2={};function $n(e,t,n){p2[e]=tu(t)?t:function(r,o){return r&&n?n:t}}function bwe(e,t){return Rr(p2,e)?p2[e](t._strict,t._locale):new RegExp(Swe(e))}function Swe(e){return Bu(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function Bu(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function gr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Xs(t)),n}var u3={};function Gr(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Zu(t)&&(r=function(i,a){a[t]=gr(i)}),o=e.length,n=0;n68?1900:2e3)};var dee=xv("FullYear",!0);function Ewe(){return W_(this.year())}function xv(e,t){return function(n){return n!=null?(fee(this,e,n),yn.updateOffset(this,t),this):Mb(this,e)}}function Mb(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 fee(e,t,n){var r,o,i,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!W_(i)?28:s,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function _we(e){return e=ml(e),tu(this[e])?this[e]():this}function $we(e,t){if(typeof e=="object"){e=j5(e);var n=gwe(e),r,o=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function Tb(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 m2(e,t,n){var r=7+t-n,o=(7+Tb(e,0,r).getUTCDay()-t)%7;return-o+r-1}function yee(e,t,n,r,o){var i=(7+n-r)%7,a=m2(e,r,o),s=1+7*(t-1)+i+a,l,c;return s<=0?(l=e-1,c=Ay(l)+s):s>Ay(e)?(l=e+1,c=s-Ay(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Rb(e,t,n){var r=m2(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+zu(a,t,n)):o>zu(e.year(),t,n)?(i=o-zu(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function zu(e,t,n){var r=m2(e,t,n),o=m2(e+1,t,n);return(Ay(e)-r+o)/7}Wn("w",["ww",2],"wo","week");Wn("W",["WW",2],"Wo","isoWeek");$n("w",go,wv);$n("ww",go,Is);$n("W",go,wv);$n("WW",go,Is);j1(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=gr(e)});function Lwe(e){return Rb(e,this._week.dow,this._week.doy).week}var Bwe={dow:0,doy:6};function zwe(){return this._week.dow}function Hwe(){return this._week.doy}function Uwe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Wwe(e){var t=Rb(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Wn("d",0,"do","day");Wn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Wn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Wn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Wn("e",0,0,"weekday");Wn("E",0,0,"isoWeekday");$n("d",go);$n("e",go);$n("E",go);$n("dd",function(e,t){return t.weekdaysMinRegex(e)});$n("ddd",function(e,t){return t.weekdaysShortRegex(e)});$n("dddd",function(e,t){return t.weekdaysRegex(e)});j1(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:lr(n).invalidWeekday=e});j1(["d","e","E"],function(e,t,n,r){t[r]=gr(e)});function Vwe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Kwe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function H5(e,t){return e.slice(t,7).concat(e.slice(0,t))}var qwe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bee="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gwe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ywe=D1,Xwe=D1,Qwe=D1;function Jwe(e,t){var n=Zl(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?H5(n,this._week.dow):e?n[e.day()]:n}function Zwe(e){return e===!0?H5(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function exe(e){return e===!0?H5(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function txe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=eu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Go.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=Go.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=Go.call(this._weekdaysParse,a),o!==-1||(o=Go.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=Go.call(this._shortWeekdaysParse,a),o!==-1||(o=Go.call(this._weekdaysParse,a),o!==-1)?o:(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=Go.call(this._minWeekdaysParse,a),o!==-1||(o=Go.call(this._weekdaysParse,a),o!==-1)?o:(o=Go.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function nxe(e,t,n){var r,o,i;if(this._weekdaysParseExact)return txe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=eu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.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 rxe(e){if(!this.isValid())return e!=null?this:NaN;var t=Mb(this,"Day");return e!=null?(e=Vwe(e,this.localeData()),this.add(e-t,"d")):t}function oxe(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 ixe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Kwe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function axe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||U5.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Rr(this,"_weekdaysRegex")||(this._weekdaysRegex=Ywe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function sxe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||U5.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Rr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xwe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function lxe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||U5.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Rr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qwe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function U5(){function e(u,f){return f.length-u.length}var t=[],n=[],r=[],o=[],i,a,s,l,c;for(i=0;i<7;i++)a=eu([2e3,1]).day(i),s=Bu(this.weekdaysMin(a,"")),l=Bu(this.weekdaysShort(a,"")),c=Bu(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),o.push(s),o.push(l),o.push(c);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.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 W5(){return this.hours()%12||12}function cxe(){return this.hours()||24}Wn("H",["HH",2],0,"hour");Wn("h",["hh",2],0,W5);Wn("k",["kk",2],0,cxe);Wn("hmm",0,0,function(){return""+W5.apply(this)+qc(this.minutes(),2)});Wn("hmmss",0,0,function(){return""+W5.apply(this)+qc(this.minutes(),2)+qc(this.seconds(),2)});Wn("Hmm",0,0,function(){return""+this.hours()+qc(this.minutes(),2)});Wn("Hmmss",0,0,function(){return""+this.hours()+qc(this.minutes(),2)+qc(this.seconds(),2)});function See(e,t){Wn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}See("a",!0);See("A",!1);function Cee(e,t){return t._meridiemParse}$n("a",Cee);$n("A",Cee);$n("H",go,B5);$n("h",go,wv);$n("k",go,wv);$n("HH",go,Is);$n("hh",go,Is);$n("kk",go,Is);$n("hmm",cee);$n("hmmss",uee);$n("Hmm",cee);$n("Hmmss",uee);Gr(["H","HH"],pi);Gr(["k","kk"],function(e,t,n){var r=gr(e);t[pi]=r===24?0:r});Gr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Gr(["h","hh"],function(e,t,n){t[pi]=gr(e),lr(n).bigHour=!0});Gr("hmm",function(e,t,n){var r=e.length-2;t[pi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r)),lr(n).bigHour=!0});Gr("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[pi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r,2)),t[ju]=gr(e.substr(o)),lr(n).bigHour=!0});Gr("Hmm",function(e,t,n){var r=e.length-2;t[pi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r))});Gr("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[pi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r,2)),t[ju]=gr(e.substr(o))});function uxe(e){return(e+"").toLowerCase().charAt(0)==="p"}var dxe=/[ap]\.?m?\.?/i,fxe=xv("Hours",!0);function hxe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var wee={calendar:twe,longDateFormat:iwe,invalidDate:swe,ordinal:cwe,dayOfMonthOrdinalParse:uwe,relativeTime:fwe,months:Owe,monthsShort:hee,week:Bwe,weekdays:qwe,weekdaysMin:Gwe,weekdaysShort:bee,meridiemParse:dxe},bo={},T0={},Ib;function pxe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=V_(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&pxe(i,r)>=n-1)break;n--}t++}return Ib}function gxe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function V_(e){var t=null,n;if(bo[e]===void 0&&typeof module<"u"&&module&&module.exports&&gxe(e))try{t=Ib._abbr,n=require,n("./locale/"+e),mf(t)}catch{bo[e]=null}return bo[e]}function mf(e,t){var n;return e&&(ka(t)?n=dd(e):n=V5(e,t),n?Ib=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ib._abbr}function V5(e,t){if(t!==null){var n,r=wee;if(t.abbr=e,bo[e]!=null)iee("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=bo[e]._config;else if(t.parentLocale!=null)if(bo[t.parentLocale]!=null)r=bo[t.parentLocale]._config;else if(n=V_(t.parentLocale),n!=null)r=n._config;else return T0[t.parentLocale]||(T0[t.parentLocale]=[]),T0[t.parentLocale].push({name:e,config:t}),null;return bo[e]=new A5(l3(r,t)),T0[e]&&T0[e].forEach(function(o){V5(o.name,o.config)}),mf(e),bo[e]}else return delete bo[e],null}function vxe(e,t){if(t!=null){var n,r,o=wee;bo[e]!=null&&bo[e].parentLocale!=null?bo[e].set(l3(bo[e]._config,t)):(r=V_(e),r!=null&&(o=r._config),t=l3(o,t),r==null&&(t.abbr=e),n=new A5(t),n.parentLocale=bo[e],bo[e]=n),mf(e)}else bo[e]!=null&&(bo[e].parentLocale!=null?(bo[e]=bo[e].parentLocale,e===mf()&&mf(e)):bo[e]!=null&&delete bo[e]);return bo[e]}function dd(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ib;if(!Zl(e)){if(t=V_(e),t)return t;e=[e]}return mxe(e)}function yxe(){return c3(bo)}function K5(e){var t,n=e._a;return n&&lr(e).overflow===-2&&(t=n[Du]<0||n[Du]>11?Du:n[kc]<1||n[kc]>z5(n[na],n[Du])?kc:n[pi]<0||n[pi]>24||n[pi]===24&&(n[Fl]!==0||n[ju]!==0||n[$h]!==0)?pi:n[Fl]<0||n[Fl]>59?Fl:n[ju]<0||n[ju]>59?ju:n[$h]<0||n[$h]>999?$h:-1,lr(e)._overflowDayOfYear&&(tkc)&&(t=kc),lr(e)._overflowWeeks&&t===-1&&(t=wwe),lr(e)._overflowWeekday&&t===-1&&(t=xwe),lr(e).overflow=t),e}var bxe=/^\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)?)?$/,Sxe=/^\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)?)?$/,Cxe=/Z|[+-]\d\d(?::?\d\d)?/,OC=[["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]],fT=[["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/]],wxe=/^\/?Date\((-?\d+)/i,xxe=/^(?:(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}))$/,Exe={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 xee(e){var t,n,r=e._i,o=bxe.exec(r)||Sxe.exec(r),i,a,s,l,c=OC.length,u=fT.length;if(o){for(lr(e).iso=!0,t=0,n=c;tAy(a)||e._dayOfYear===0)&&(lr(e)._overflowDayOfYear=!0),n=Tb(a,0,e._dayOfYear),e._a[Du]=n.getUTCMonth(),e._a[kc]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pi]===24&&e._a[Fl]===0&&e._a[ju]===0&&e._a[$h]===0&&(e._nextDay=!0,e._a[pi]=0),e._d=(e._useUTC?Tb:Fwe).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(lr(e).weekdayMismatch=!0)}}function Ixe(e){var t,n,r,o,i,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=$m(t.GG,e._a[na],Rb(mo(),1,4).year),r=$m(t.W,1),o=$m(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Rb(mo(),i,a),n=$m(t.gg,e._a[na],c.year),r=$m(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>zu(n,i,a)?lr(e)._overflowWeeks=!0:l!=null?lr(e)._overflowWeekday=!0:(s=yee(n,r,o,i,a),e._a[na]=s.year,e._dayOfYear=s.dayOfYear)}yn.ISO_8601=function(){};yn.RFC_2822=function(){};function G5(e){if(e._f===yn.ISO_8601){xee(e);return}if(e._f===yn.RFC_2822){Eee(e);return}e._a=[],lr(e).empty=!0;var t=""+e._i,n,r,o,i,a,s=t.length,l=0,c,u;for(o=aee(e._f,e._locale).match(D5)||[],u=o.length,n=0;n0&&lr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),eg[i]?(r?lr(e).empty=!1:lr(e).unusedTokens.push(i),Cwe(i,r,e)):e._strict&&!r&&lr(e).unusedTokens.push(i);lr(e).charsLeftOver=s-l,t.length>0&&lr(e).unusedInput.push(t),e._a[pi]<=12&&lr(e).bigHour===!0&&e._a[pi]>0&&(lr(e).bigHour=void 0),lr(e).parsedDateParts=e._a.slice(0),lr(e).meridiem=e._meridiem,e._a[pi]=kxe(e._locale,e._a[pi],e._meridiem),c=lr(e).era,c!==null&&(e._a[na]=e._locale.erasConvertYear(c,e._a[na])),q5(e),K5(e)}function kxe(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 Nxe(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(l===0){lr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:F_()});function Pee(e,t){var n,r;if(t.length===1&&Zl(t[0])&&(t=t[0]),!t.length)return mo();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function t2e(){if(!ka(this._isDSTShifted))return this._isDSTShifted;var e={},t;return N5(e,this),e=_ee(e),e._a?(t=e._isUTC?eu(e._a):mo(e._a),this._isDSTShifted=this.isValid()&&Kxe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function n2e(){return this.isValid()?!this._isUTC:!1}function r2e(){return this.isValid()?this._isUTC:!1}function Mee(){return this.isValid()?this._isUTC&&this._offset===0:!1}var o2e=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,i2e=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function pc(e,t){var n=e,r=null,o,i,a;return Vw(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Zu(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=o2e.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:gr(r[kc])*o,h:gr(r[pi])*o,m:gr(r[Fl])*o,s:gr(r[ju])*o,ms:gr(d3(r[$h]*1e3))*o}):(r=i2e.exec(e))?(o=r[1]==="-"?-1:1,n={y:nh(r[2],o),M:nh(r[3],o),w:nh(r[4],o),d:nh(r[5],o),h:nh(r[6],o),m:nh(r[7],o),s:nh(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=a2e(mo(n.from),mo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new K_(n),Vw(e)&&Rr(e,"_locale")&&(i._locale=e._locale),Vw(e)&&Rr(e,"_isValid")&&(i._isValid=e._isValid),i}pc.fn=K_.prototype;pc.invalid=Vxe;function nh(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function d9(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 a2e(e,t){var n;return e.isValid()&&t.isValid()?(t=X5(t,e),e.isBefore(t)?n=d9(e,t):(n=d9(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tee(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(iee(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."),i=n,n=r,r=i),o=pc(n,r),Ree(this,o,e),this}}function Ree(e,t,n,r){var o=t._milliseconds,i=d3(t._days),a=d3(t._months);e.isValid()&&(r=r??!0,a&&mee(e,Mb(e,"Month")+a*n),i&&fee(e,"Date",Mb(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&yn.updateOffset(e,i||a))}var s2e=Tee(1,"add"),l2e=Tee(-1,"subtract");function Iee(e){return typeof e=="string"||e instanceof String}function c2e(e){return ec(e)||N1(e)||Iee(e)||Zu(e)||d2e(e)||u2e(e)||e===null||e===void 0}function u2e(e){var t=Vh(e)&&!I5(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"],o,i,a=r.length;for(o=0;on.valueOf():n.valueOf()9999?Ww(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):tu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ww(n,"Z")):Ww(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _2e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function $2e(e){e||(e=this.isUtc()?yn.defaultFormatUtc:yn.defaultFormat);var t=Ww(this,e);return this.localeData().postformat(t)}function P2e(e,t){return this.isValid()&&(ec(e)&&e.isValid()||mo(e).isValid())?pc({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function O2e(e){return this.from(mo(),e)}function M2e(e,t){return this.isValid()&&(ec(e)&&e.isValid()||mo(e).isValid())?pc({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function T2e(e){return this.to(mo(),e)}function kee(e){var t;return e===void 0?this._locale._abbr:(t=dd(e),t!=null&&(this._locale=t),this)}var Nee=pl("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 Aee(){return this._locale}var g2=1e3,tg=60*g2,v2=60*tg,Dee=(365*400+97)*24*v2;function ng(e,t){return(e%t+t)%t}function jee(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Dee:new Date(e,t,n).valueOf()}function Fee(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Dee:Date.UTC(e,t,n)}function R2e(e){var t,n;if(e=ml(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Fee:jee,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-=ng(t+(this._isUTC?0:this.utcOffset()*tg),v2);break;case"minute":t=this._d.valueOf(),t-=ng(t,tg);break;case"second":t=this._d.valueOf(),t-=ng(t,g2);break}return this._d.setTime(t),yn.updateOffset(this,!0),this}function I2e(e){var t,n;if(e=ml(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Fee:jee,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+=v2-ng(t+(this._isUTC?0:this.utcOffset()*tg),v2)-1;break;case"minute":t=this._d.valueOf(),t+=tg-ng(t,tg)-1;break;case"second":t=this._d.valueOf(),t+=g2-ng(t,g2)-1;break}return this._d.setTime(t),yn.updateOffset(this,!0),this}function k2e(){return this._d.valueOf()-(this._offset||0)*6e4}function N2e(){return Math.floor(this.valueOf()/1e3)}function A2e(){return new Date(this.valueOf())}function D2e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function j2e(){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 F2e(){return this.isValid()?this.toISOString():null}function L2e(){return k5(this)}function B2e(){return Qd({},lr(this))}function z2e(){return lr(this).overflow}function H2e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Wn("N",0,0,"eraAbbr");Wn("NN",0,0,"eraAbbr");Wn("NNN",0,0,"eraAbbr");Wn("NNNN",0,0,"eraName");Wn("NNNNN",0,0,"eraNarrow");Wn("y",["y",1],"yo","eraYear");Wn("y",["yy",2],0,"eraYear");Wn("y",["yyy",3],0,"eraYear");Wn("y",["yyyy",4],0,"eraYear");$n("N",Q5);$n("NN",Q5);$n("NNN",Q5);$n("NNNN",Z2e);$n("NNNNN",eEe);Gr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?lr(n).era=o:lr(n).invalidEra=e});$n("y",Cv);$n("yy",Cv);$n("yyy",Cv);$n("yyyy",Cv);$n("yo",tEe);Gr(["y","yy","yyy","yyyy"],na);Gr(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[na]=n._locale.eraYearOrdinalParse(e,o):t[na]=parseInt(e,10)});function U2e(e,t){var n,r,o,i=this._eras||dd("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function V2e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?yn(e.since).year():yn(e.since).year()+(t-e.offset)*n}function K2e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),lEe.call(this,e,t,n,r,o))}function lEe(e,t,n,r,o){var i=yee(e,t,n,r,o),a=Tb(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Wn("Q",0,"Qo","quarter");$n("Q",see);Gr("Q",function(e,t){t[Du]=(gr(e)-1)*3});function cEe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Wn("D",["DD",2],"Do","date");$n("D",go,wv);$n("DD",go,Is);$n("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Gr(["D","DD"],kc);Gr("Do",function(e,t){t[kc]=gr(e.match(go)[0])});var Bee=xv("Date",!0);Wn("DDD",["DDDD",3],"DDDo","dayOfYear");$n("DDD",B_);$n("DDDD",lee);Gr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=gr(e)});function uEe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Wn("m",["mm",2],0,"minute");$n("m",go,B5);$n("mm",go,Is);Gr(["m","mm"],Fl);var dEe=xv("Minutes",!1);Wn("s",["ss",2],0,"second");$n("s",go,B5);$n("ss",go,Is);Gr(["s","ss"],ju);var fEe=xv("Seconds",!1);Wn("S",0,0,function(){return~~(this.millisecond()/100)});Wn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Wn(0,["SSS",3],0,"millisecond");Wn(0,["SSSS",4],0,function(){return this.millisecond()*10});Wn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Wn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Wn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Wn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Wn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});$n("S",B_,see);$n("SS",B_,Is);$n("SSS",B_,lee);var Jd,zee;for(Jd="SSSS";Jd.length<=9;Jd+="S")$n(Jd,Cv);function hEe(e,t){t[$h]=gr(("0."+e)*1e3)}for(Jd="S";Jd.length<=9;Jd+="S")Gr(Jd,hEe);zee=xv("Milliseconds",!1);Wn("z",0,0,"zoneAbbr");Wn("zz",0,0,"zoneName");function pEe(){return this._isUTC?"UTC":""}function mEe(){return this._isUTC?"Coordinated Universal Time":""}var on=A1.prototype;on.add=s2e;on.calendar=p2e;on.clone=m2e;on.diff=w2e;on.endOf=I2e;on.format=$2e;on.from=P2e;on.fromNow=O2e;on.to=M2e;on.toNow=T2e;on.get=_we;on.invalidAt=z2e;on.isAfter=g2e;on.isBefore=v2e;on.isBetween=y2e;on.isSame=b2e;on.isSameOrAfter=S2e;on.isSameOrBefore=C2e;on.isValid=L2e;on.lang=Nee;on.locale=kee;on.localeData=Aee;on.max=Lxe;on.min=Fxe;on.parsingFlags=B2e;on.set=$we;on.startOf=R2e;on.subtract=l2e;on.toArray=D2e;on.toObject=j2e;on.toDate=A2e;on.toISOString=E2e;on.inspect=_2e;typeof Symbol<"u"&&Symbol.for!=null&&(on[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});on.toJSON=F2e;on.toString=x2e;on.unix=N2e;on.valueOf=k2e;on.creationData=H2e;on.eraName=K2e;on.eraNarrow=q2e;on.eraAbbr=G2e;on.eraYear=Y2e;on.year=dee;on.isLeapYear=Ewe;on.weekYear=nEe;on.isoWeekYear=rEe;on.quarter=on.quarters=cEe;on.month=gee;on.daysInMonth=Awe;on.week=on.weeks=Uwe;on.isoWeek=on.isoWeeks=Wwe;on.weeksInYear=aEe;on.weeksInWeekYear=sEe;on.isoWeeksInYear=oEe;on.isoWeeksInISOWeekYear=iEe;on.date=Bee;on.day=on.days=rxe;on.weekday=oxe;on.isoWeekday=ixe;on.dayOfYear=uEe;on.hour=on.hours=fxe;on.minute=on.minutes=dEe;on.second=on.seconds=fEe;on.millisecond=on.milliseconds=zee;on.utcOffset=Gxe;on.utc=Xxe;on.local=Qxe;on.parseZone=Jxe;on.hasAlignedHourOffset=Zxe;on.isDST=e2e;on.isLocal=n2e;on.isUtcOffset=r2e;on.isUtc=Mee;on.isUTC=Mee;on.zoneAbbr=pEe;on.zoneName=mEe;on.dates=pl("dates accessor is deprecated. Use date instead.",Bee);on.months=pl("months accessor is deprecated. Use month instead",gee);on.years=pl("years accessor is deprecated. Use year instead",dee);on.zone=pl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Yxe);on.isDSTShifted=pl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",t2e);function gEe(e){return mo(e*1e3)}function vEe(){return mo.apply(null,arguments).parseZone()}function Hee(e){return e}var Ir=A5.prototype;Ir.calendar=nwe;Ir.longDateFormat=awe;Ir.invalidDate=lwe;Ir.ordinal=dwe;Ir.preparse=Hee;Ir.postformat=Hee;Ir.relativeTime=hwe;Ir.pastFuture=pwe;Ir.set=ewe;Ir.eras=U2e;Ir.erasParse=W2e;Ir.erasConvertYear=V2e;Ir.erasAbbrRegex=Q2e;Ir.erasNameRegex=X2e;Ir.erasNarrowRegex=J2e;Ir.months=Rwe;Ir.monthsShort=Iwe;Ir.monthsParse=Nwe;Ir.monthsRegex=jwe;Ir.monthsShortRegex=Dwe;Ir.week=Lwe;Ir.firstDayOfYear=Hwe;Ir.firstDayOfWeek=zwe;Ir.weekdays=Jwe;Ir.weekdaysMin=exe;Ir.weekdaysShort=Zwe;Ir.weekdaysParse=nxe;Ir.weekdaysRegex=axe;Ir.weekdaysShortRegex=sxe;Ir.weekdaysMinRegex=lxe;Ir.isPM=uxe;Ir.meridiem=hxe;function y2(e,t,n,r){var o=dd(),i=eu().set(r,t);return o[n](i,e)}function Uee(e,t,n){if(Zu(e)&&(t=e,e=void 0),e=e||"",t!=null)return y2(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=y2(e,r,n,"month");return o}function Z5(e,t,n,r){typeof e=="boolean"?(Zu(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Zu(t)&&(n=t,t=void 0),t=t||"");var o=dd(),i=e?o._week.dow:0,a,s=[];if(n!=null)return y2(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=y2(t,(a+i)%7,r,"day");return s}function yEe(e,t){return Uee(e,t,"months")}function bEe(e,t){return Uee(e,t,"monthsShort")}function SEe(e,t,n){return Z5(e,t,n,"weekdays")}function CEe(e,t,n){return Z5(e,t,n,"weekdaysShort")}function wEe(e,t,n){return Z5(e,t,n,"weekdaysMin")}mf("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=gr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});yn.lang=pl("moment.lang is deprecated. Use moment.locale instead.",mf);yn.langData=pl("moment.langData is deprecated. Use moment.localeData instead.",dd);var mu=Math.abs;function xEe(){var e=this._data;return this._milliseconds=mu(this._milliseconds),this._days=mu(this._days),this._months=mu(this._months),e.milliseconds=mu(e.milliseconds),e.seconds=mu(e.seconds),e.minutes=mu(e.minutes),e.hours=mu(e.hours),e.months=mu(e.months),e.years=mu(e.years),this}function Wee(e,t,n,r){var o=pc(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function EEe(e,t){return Wee(this,e,t,1)}function _Ee(e,t){return Wee(this,e,t,-1)}function f9(e){return e<0?Math.floor(e):Math.ceil(e)}function $Ee(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=f9(h3(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Xs(e/1e3),r.seconds=o%60,i=Xs(o/60),r.minutes=i%60,a=Xs(i/60),r.hours=a%24,t+=Xs(a/24),l=Xs(Vee(t)),n+=l,t-=f9(h3(l)),s=Xs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Vee(e){return e*4800/146097}function h3(e){return e*146097/4800}function PEe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ml(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Vee(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(h3(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 fd(e){return function(){return this.as(e)}}var Kee=fd("ms"),OEe=fd("s"),MEe=fd("m"),TEe=fd("h"),REe=fd("d"),IEe=fd("w"),kEe=fd("M"),NEe=fd("Q"),AEe=fd("y"),DEe=Kee;function jEe(){return pc(this)}function FEe(e){return e=ml(e),this.isValid()?this[e+"s"]():NaN}function Ap(e){return function(){return this.isValid()?this._data[e]:NaN}}var LEe=Ap("milliseconds"),BEe=Ap("seconds"),zEe=Ap("minutes"),HEe=Ap("hours"),UEe=Ap("days"),WEe=Ap("months"),VEe=Ap("years");function KEe(){return Xs(this.days()/7)}var Pu=Math.round,Hm={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qEe(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function GEe(e,t,n,r){var o=pc(e).abs(),i=Pu(o.as("s")),a=Pu(o.as("m")),s=Pu(o.as("h")),l=Pu(o.as("d")),c=Pu(o.as("M")),u=Pu(o.as("w")),f=Pu(o.as("y")),h=i<=n.ss&&["s",i]||i0,h[4]=r,qEe.apply(null,h)}function YEe(e){return e===void 0?Pu:typeof e=="function"?(Pu=e,!0):!1}function XEe(e,t){return Hm[e]===void 0?!1:t===void 0?Hm[e]:(Hm[e]=t,e==="s"&&(Hm.ss=t-1),!0)}function QEe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Hm,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Hm,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=GEe(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var hT=Math.abs;function im(e){return(e>0)-(e<0)||+e}function G_(){if(!this.isValid())return this.localeData().invalidDate();var e=hT(this._milliseconds)/1e3,t=hT(this._days),n=hT(this._months),r,o,i,a,s=this.asSeconds(),l,c,u,f;return s?(r=Xs(e/60),o=Xs(r/60),e%=60,r%=60,i=Xs(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=im(this._months)!==im(s)?"-":"",u=im(this._days)!==im(s)?"-":"",f=im(this._milliseconds)!==im(s)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var _r=K_.prototype;_r.isValid=Wxe;_r.abs=xEe;_r.add=EEe;_r.subtract=_Ee;_r.as=PEe;_r.asMilliseconds=Kee;_r.asSeconds=OEe;_r.asMinutes=MEe;_r.asHours=TEe;_r.asDays=REe;_r.asWeeks=IEe;_r.asMonths=kEe;_r.asQuarters=NEe;_r.asYears=AEe;_r.valueOf=DEe;_r._bubble=$Ee;_r.clone=jEe;_r.get=FEe;_r.milliseconds=LEe;_r.seconds=BEe;_r.minutes=zEe;_r.hours=HEe;_r.days=UEe;_r.weeks=KEe;_r.months=WEe;_r.years=VEe;_r.humanize=QEe;_r.toISOString=G_;_r.toString=G_;_r.toJSON=G_;_r.locale=kee;_r.localeData=Aee;_r.toIsoString=pl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",G_);_r.lang=Nee;Wn("X",0,0,"unix");Wn("x",0,0,"valueOf");$n("x",H_);$n("X",ywe);Gr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Gr("x",function(e,t,n){n._d=new Date(gr(e))});//! moment.js +yn.version="2.30.1";JCe(mo);yn.fn=on;yn.min=Bxe;yn.max=zxe;yn.now=Hxe;yn.utc=eu;yn.unix=gEe;yn.months=yEe;yn.isDate=N1;yn.locale=mf;yn.invalid=F_;yn.duration=pc;yn.isMoment=ec;yn.weekdays=SEe;yn.parseZone=vEe;yn.localeData=dd;yn.isDuration=Vw;yn.monthsShort=bEe;yn.weekdaysMin=wEe;yn.defineLocale=V5;yn.updateLocale=vxe;yn.locales=yxe;yn.weekdaysShort=CEe;yn.normalizeUnits=ml;yn.relativeTimeRounding=YEe;yn.relativeTimeThreshold=XEe;yn.calendarFormat=h2e;yn.prototype=on;yn.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 MC;const JEe=new Uint8Array(16);function ZEe(){if(!MC&&(MC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!MC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return MC(JEe)}const Ii=[];for(let e=0;e<256;++e)Ii.push((e+256).toString(16).slice(1));function e_e(e,t=0){return Ii[e[t+0]]+Ii[e[t+1]]+Ii[e[t+2]]+Ii[e[t+3]]+"-"+Ii[e[t+4]]+Ii[e[t+5]]+"-"+Ii[e[t+6]]+Ii[e[t+7]]+"-"+Ii[e[t+8]]+Ii[e[t+9]]+"-"+Ii[e[t+10]]+Ii[e[t+11]]+Ii[e[t+12]]+Ii[e[t+13]]+Ii[e[t+14]]+Ii[e[t+15]]}const t_e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),h9={randomUUID:t_e};function n_e(e,t,n){if(h9.randomUUID&&!t&&!e)return h9.randomUUID();e=e||{};const r=e.random||(e.rng||ZEe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,e_e(r)}const r_e="1.0.2";function o_e(){return r_e}function i_e(){const e=localStorage.getItem(Tw);(e===null||e==="true")&&new Audio(tye).play()}function a_e(){return yn().format("YYYY-MM-DD HH:mm:ss")}function Y_(){return n_e().replaceAll(/-/g,"")}function am(e){return e.endsWith("/")?e.slice(0,-1):e}function p9(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function s_e(e){if(sye===e||lye===e||cye===e||uye===e||dye===e)return!0}function l_e(e){return e===$b||e===Pb}function c_e(e){return e===$b||e===Pb}function u_e(e){return e.startsWith(yye)}function qee(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const Dp=hl()(uc(dc(fc(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:A0e}))),Ll=hl()(uc(dc(fc((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 o,i;if(n.state===U7)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((o=t().currentThread)==null?void 0:o.topic)===""||((i=t().currentThread)==null?void 0:i.topic)!==n.topic){for(let a=0;aa.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===aye)return t().addQueuingThread(n),0;const o=t().threads.some(c=>c.topic===n.topic),i=!l_e(r.type);if(c_e(r.type)&&(n.state=W7),o)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.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 i&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(o=>o.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let o=null;const i=t().threads.map(a=>a.topic===n?(o={...a,unreadCount:a.unreadCount+1,content:r},o):a);return e({threads:i}),o},updateThreadStatus(n,r){let o=null;const i=t().threads.map(a=>a.topic===n?(o={...a,state:r},o):a);return e({threads:i}),o},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(o=>o.topic===n?{...o,state:W7}:o);e({threads:r})},addThreads(n){for(let r=0;ra.topic===o.topic))e({threads:[...t().threads,o]});else{const a=t().threads.map(s=>s.topic===o.topic?{...o,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(i=>{i.showQueueList=!1});const r={...n,unreadCount:0},o=t().threads.map(i=>i.topic===r.topic?r:i);e(i=>{i.currentThread=r,i.threads=o})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var o;return r.unreadCount>0&&r.topic!==((o=t().currentThread)==null?void 0:o.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(o=>{o.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=Dp.getState();if(n!=null&&n.uid){const{threadService:r}=await QCe(async()=>{const{threadService:o}=await import("./threadService-D4_peaIE.js");return{threadService:o}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:z0e}))),hd=hl()(uc(dc(fc((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(o=>o.uid===n.uid)){if(n.type===_b){const i=t().messageList.findIndex(a=>a.type===_b&&a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i].content+=n.content,e({messageList:a});return}}const o=t().messageList.findIndex(i=>i.uid===n.uid);if(o!==-1){const i=[...t().messageList];i[o]=n,e({messageList:i})}}else{const o=t().messageList[t().messageList.length-1];if(o&&n.type===_k&&o.type===_k){const i=t().messageList.findIndex(s=>s.uid===o.uid),a=[...t().messageList];a[i]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let i=0;il.uid===a.uid)||r.unshift(a)}const o=[...r,...t().messageList].sort((i,a)=>{const s=yn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=yn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",o),e({messageList:o})},updateMessageStatus(n,r){const o=t().messageList.findIndex(i=>i.uid===n);if(o!==-1){const i=[...t().messageList];i[o].status=r,e({messageList:i})}},updateMessage(n){const r=t().messageList.findIndex(o=>o.uid===n.uid);if(r!==-1){const o=[...t().messageList];o[r].content=n.content,e({messageList:o})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(o=>o.uid===n);if(r!==-1){const o=[...t().messageList];o.splice(r,1),e({messageList:o})}},recallMessage(n){const r=t().messageList.findIndex(o=>o.uid===n);if(r!==-1){const o=[...t().messageList];o[r].type=_Q,o[r].content="该消息已被撤回",e({messageList:o})}},sortMessageList(){const n=t().messageList.sort((r,o)=>{const i=yn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=yn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return i-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:j0e}))),vi=hl()(uc(dc(fc((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:L0e}))),jp=hl()(uc(dc(fc((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const o=r.agentResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o[i]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const o=r.agentResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o.splice(i,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,o=r.findIndex(i=>i.uid===n);o!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,o),...r.slice(o+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:U0e})));var Gee={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 i="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return de.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ai(r)):Xee(r)&&r.props?n=n.concat(ai(r.props.children,t)):n.push(r))}),n}var m3={},m_e=function(t){};function g_e(e,t){}function v_e(e,t){}function y_e(){m3={}}function Qee(e,t,n){!t&&!m3[n]&&(e(!1,n),m3[n]=!0)}function yr(e,t){Qee(g_e,e,t)}function y2(e,t){Qee(v_e,e,t)}yr.preMessage=m_e;yr.resetWarned=y_e;yr.noteOnce=y2;function b_e(e,t){if(Ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jee(e){var t=b_e(e,"string");return Ht(t)=="symbol"?t:t+""}function Z(e,t,n){return(t=Jee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=[];return de.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ai(r)):Yee(r)&&r.props?n=n.concat(ai(r.props.children,t)):n.push(r))}),n}var p3={},p_e=function(t){};function m_e(e,t){}function g_e(e,t){}function v_e(){p3={}}function Xee(e,t,n){!t&&!p3[n]&&(e(!1,n),p3[n]=!0)}function yr(e,t){Xee(m_e,e,t)}function b2(e,t){Xee(g_e,e,t)}yr.preMessage=p_e;yr.resetWarned=v_e;yr.noteOnce=b2;function y_e(e,t){if(Ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qee(e){var t=y_e(e,"string");return Ht(t)=="symbol"?t:t+""}function Z(e,t,n){return(t=Qee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t0},e.prototype.connect_=function(){!v3||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),M_e?(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(){!v3||!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,o=O_e.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),nte=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Dg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new F_e(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 Dg(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 L_e(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}(),ote=typeof WeakMap<"u"?new WeakMap:new tte,ite=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=T_e.getInstance(),r=new B_e(t,n,this);ote.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ite.prototype[e]=function(){var t;return(t=ote.get(this))[e].apply(t,arguments)}});var z_e=function(){return typeof b2.ResizeObserver<"u"?b2.ResizeObserver:ite}(),Zd=new Map;function H_e(e){e.forEach(function(t){var n,r=t.target;(n=Zd.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var ate=new z_e(H_e);function U_e(e,t){Zd.has(e)||(Zd.set(e,new Set),ate.observe(e)),Zd.get(e).add(t)}function W_e(e,t){Zd.has(e)&&(Zd.get(e).delete(t),Zd.get(e).size||(ate.unobserve(e),Zd.delete(e)))}function br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b9(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;S9+=1;var r=S9;function o(i){if(i===0)dte(r),t();else{var a=cte(function(){o(i-1)});iA.set(r,a)}}return o(n),r};zn.cancel=function(e){var t=iA.get(e);return dte(e),ute(t)};function fte(e){if(Array.isArray(e))return e}function J_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function hte(){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 $e(e,t){return fte(e)||J_e(e,t)||u$(e,t)||hte()}function Db(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Ev(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Z_e(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 C9="data-rc-order",w9="data-rc-priority",e$e="rc-util-key",b3=new Map;function pte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):e$e}function d$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function t$e(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function aA(e){return Array.from((b3.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function mte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ev())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=t$e(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(C9,a),s&&i&&l.setAttribute(w9,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=d$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||aA(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(C9)))return!1;var p=Number(h.getAttribute(w9)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function gte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=d$(t);return(t.styles||aA(n)).find(function(r){return r.getAttribute(pte(t))===e})}function sA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=gte(e,t);if(n){var r=d$(t);r.removeChild(n)}}function n$e(e,t){var n=b3.get(e);if(!n||!Z_e(document,n)){var r=mte("",t),o=r.parentNode;b3.set(e,o),e.removeChild(r)}}function rg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d$(n),o=aA(r),i=z(z({},n),{},{styles:o});n$e(r,i);var a=gte(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=mte(e,i);return u.setAttribute(pte(i),t),u}function r$e(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 At(e,t){if(e==null)return{};var n,r,o=r$e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(j1(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&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&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.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 o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=$e(c,2),h=f[1];return o.internalGet(u)[1]0,void 0),E9+=1}return Sr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),gT=new cA;function up(e){var t=Array.isArray(e)?e:[e];return gT.has(t)||gT.set(t,new uA(t)),gT.get(t)}var b$e=new WeakMap,vT={};function S$e(e,t){for(var n=b$e,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=z(z({},o),{},(r={},Z(r,jg,t),Z(r,Vl,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"")}var Fy=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()},x$e=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(o){var i=$e(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},wte=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=$e(a,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,p=Fy(u,r==null?void 0:r.prefix);o[p]=typeof f=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(p,")")}}),[i,x$e(o,n,{scope:r==null?void 0:r.scope})]},P9=Ev()?d.useLayoutEffect:d.useEffect,E$e=function(t,n){var r=d.useRef(!0);P9(function(){return t(r.current)},n),P9(function(){return r.current=!1,function(){r.current=!0}},[])},_$e=z({},b1),O9=_$e.useInsertionEffect,$$e=function(t,n,r){d.useMemo(t,r),E$e(function(){return n(!0)},r)},P$e=O9?function(e,t,n){return O9(function(){return e(),t()},n)}:$$e,O$e=z({},b1),M$e=O$e.useInsertionEffect,T$e=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},R$e=function(){return function(t){t()}},I$e=typeof M$e<"u"?T$e:R$e;function dA(e,t,n,r,o){var i=d.useContext(Fg),a=i.cache,s=[e].concat(Ze(t)),l=C3(s),c=I$e([l]),u=function(m){a.opUpdate(l,function(g){var v=g||[void 0,void 0],b=$e(v,2),y=b[0],S=y===void 0?0:y,w=b[1],E=w,C=E||n(),x=[S,C];return m?m(x):x})};d.useMemo(function(){u()},[l]);var f=a.opGet(l),h=f[1];return P$e(function(){o==null||o(h)},function(p){return u(function(m){var g=$e(m,2),v=g[0],b=g[1];return p&&v===0&&(o==null||o(h)),[v+1,b]}),function(){a.opUpdate(l,function(m){var g=m||[],v=$e(g,2),b=v[0],y=b===void 0?0:b,S=v[1],w=y-1;return w===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(S,!1))}),null):[y-1,S]})}},[l]),h}var k$e={},N$e="css",mh=new Map;function A$e(e){mh.set(e,(mh.get(e)||0)+1)}function D$e(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(jg,'="').concat(e,'"]'));n.forEach(function(r){if(r[ef]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var j$e=0;function F$e(e,t){mh.set(e,(mh.get(e)||0)-1);var n=Array.from(mh.keys()),r=n.filter(function(o){var i=mh.get(o)||0;return i<=0});n.length-r.length>j$e&&r.forEach(function(o){D$e(o,t),mh.delete(o)})}var fA=function(t,n,r,o){var i=r.getDerivativeToken(t),a=z(z({},i),n);return o&&(a=o(a)),a},xte="token";function hA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Fg),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?k$e:l,u=n.formatToken,f=n.getComputedToken,h=n.cssVar,p=S$e(function(){return Object.assign.apply(Object,[{}].concat(Ze(t)))},t),m=jy(p),g=jy(c),v=h?jy(h):"",b=dA(xte,[s,e.id,m,g,v],function(){var y,S=f?f(p,c,e):fA(p,c,e,u),w=z({},S),E="";if(h){var C=wte(S,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),x=$e(C,2);S=x[0],E=x[1]}var _=$9(S,s);S._tokenKey=_,w._tokenKey=$9(w,s);var P=(y=h==null?void 0:h.key)!==null&&y!==void 0?y:_;S._themeKey=P,A$e(P);var O="".concat(N$e,"-").concat(Db(_));return S._hashId=O,[S,O,w,E,(h==null?void 0:h.key)||""]},function(y){F$e(y[0]._themeKey,o)},function(y){var S=$e(y,4),w=S[0],E=S[3];if(h&&E){var C=rg(E,Db("css-variables-".concat(w._themeKey)),{mark:Vl,prepend:"queue",attachTo:i,priority:-999});C[ef]=o,C.setAttribute(jg,w._themeKey)}});return b}var L$e=function(t,n,r){var o=$e(t,5),i=o[2],a=o[3],s=o[4],l=r||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=jb(a,s,u,h,c);return[f,u,p]},Ete={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},_te="comm",$te="rule",Pte="decl",B$e="@import",z$e="@keyframes",H$e="@layer",Ote=Math.abs,pA=String.fromCharCode;function Mte(e){return e.trim()}function Kw(e,t,n){return e.replace(t,n)}function U$e(e,t,n){return e.indexOf(t,n)}function Fb(e,t){return e.charCodeAt(t)|0}function Bg(e,t,n){return e.slice(t,n)}function Pc(e){return e.length}function W$e(e){return e.length}function MC(e,t){return t.push(e),e}var f$=1,zg=1,Tte=0,ul=0,oi=0,_v="";function mA(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:f$,column:zg,length:a,return:"",siblings:s}}function V$e(){return oi}function K$e(){return oi=ul>0?Fb(_v,--ul):0,zg--,oi===10&&(zg=1,f$--),oi}function Kl(){return oi=ul2||Lb(oi)>3?"":" "}function X$e(e,t){for(;--t&&Kl()&&!(oi<48||oi>102||oi>57&&oi<65||oi>70&&oi<97););return h$(e,qw()+(t<6&&tf()==32&&Kl()==32))}function x3(e){for(;Kl();)switch(oi){case e:return ul;case 34:case 39:e!==34&&e!==39&&x3(oi);break;case 40:e===41&&x3(e);break;case 92:Kl();break}return ul}function Q$e(e,t){for(;Kl()&&e+oi!==57;)if(e+oi===84&&tf()===47)break;return"/*"+h$(t,ul-1)+"*"+pA(e===47?e:Kl())}function J$e(e){for(;!Lb(tf());)Kl();return h$(e,ul)}function Z$e(e){return G$e(Gw("",null,null,null,[""],e=q$e(e),0,[0],e))}function Gw(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,p=0,m=0,g=1,v=1,b=1,y=0,S="",w=o,E=i,C=r,x=S;v;)switch(m=y,y=Kl()){case 40:if(m!=108&&Fb(x,f-1)==58){U$e(x+=Kw(ST(y),"&","&\f"),"&\f",Ote(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:x+=ST(y);break;case 9:case 10:case 13:case 32:x+=Y$e(m);break;case 92:x+=X$e(qw()-1,7);continue;case 47:switch(tf()){case 42:case 47:MC(ePe(Q$e(Kl(),qw()),t,n,l),l),(Lb(m||1)==5||Lb(tf()||1)==5)&&Pc(x)&&Bg(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*g:s[c++]=Pc(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:b==-1&&(x=Kw(x,/\f/g,"")),p>0&&(Pc(x)-f||g===0&&m===47)&&MC(p>32?T9(x+";",r,n,f-1,l):T9(Kw(x," ","")+";",r,n,f-2,l),l);break;case 59:x+=";";default:if(MC(C=M9(x,t,n,c,u,o,s,S,w=[],E=[],f,i),i),y===123)if(u===0)Gw(x,t,C,C,w,i,f,s,E);else switch(h===99&&Fb(x,3)===110?100:h){case 100:case 108:case 109:case 115:Gw(e,C,C,r&&MC(M9(e,C,C,0,0,o,s,S,o,w=[],f,E),E),o,E,f,s,r?w:E);break;default:Gw(x,C,C,C,[""],E,0,s,E)}}c=u=p=0,g=b=1,S=x="",f=a;break;case 58:f=1+Pc(x),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&K$e()==125)continue}switch(x+=pA(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Pc(x)-1)*b,b=1;break;case 64:tf()===45&&(x+=ST(Kl())),h=tf(),u=f=Pc(S=x+=J$e(qw())),y++;break;case 45:m===45&&Pc(x)==2&&(g=0)}}return i}function M9(e,t,n,r,o,i,a,s,l,c,u,f){for(var h=o-1,p=o===0?i:[""],m=W$e(p),g=0,v=0,b=0;g0?p[y]+" "+S:Kw(S,/&\f/g,p[y])))&&(l[b++]=w);return mA(e,t,n,o===0?$te:s,l,c,u,f)}function ePe(e,t,n,r){return mA(e,t,n,_te,pA(V$e()),Bg(e,2,-2),0,r)}function T9(e,t,n,r,o){return mA(e,t,n,Pte,Bg(e,0,r),Bg(e,r+1,-1),r,o)}function E3(e,t){for(var n="",r=0;r1}function rPe(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var oPe=function(t,n,r){var o=rPe(r),i=o.match(/:not\([^)]*\)/g)||[];i.length>0&&i.some(nPe)&&Ph("Concat ':not' selector not support in legacy browsers.",r)},iPe=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":Ph("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 o=n.split(" ").map(function(s){return s.trim()});o.length===4&&o[1]!==o[3]&&Ph("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")&&Ph("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 i=n.split("/").map(function(s){return s.trim()}),a=i.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&&Ph("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}},aPe=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&Ph("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},sPe=function(t,n,r){r.parentSelectors.some(function(o){var i=o.split(",");return i.some(function(a){return a.split("&").length>2})})&&Ph("Should not use more than one `&` in a selector.",r)},Ly="data-ant-cssinjs-cache-path",Rte="_FILE_STYLE__";function lPe(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var Kh,Ite=!0;function cPe(){if(!Kh&&(Kh={},Ev())){var e=document.createElement("div");e.className=Ly,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(o){var i=o.split(":"),a=$e(i,2),s=a[0],l=a[1];Kh[s]=l});var n=document.querySelector("style[".concat(Ly,"]"));if(n){var r;Ite=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function uPe(e){return cPe(),!!Kh[e]}function dPe(e){var t=Kh[e],n=null;if(t&&Ev())if(Ite)n=Rte;else{var r=document.querySelector("style[".concat(Vl,'="').concat(Kh[e],'"]'));r?n=r.innerHTML:delete Kh[e]}return[n,t]}var fPe="_skip_check_",kte="_multi_value_";function Yw(e){var t=E3(Z$e(e),tPe);return t.replace(/\{%%%\:[^;];}/g,";")}function hPe(e){return Ht(e)==="object"&&e&&(fPe in e||kte in e)}function R9(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=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(o).concat(c.slice(u.length)),[c].concat(Ze(l.slice(1))).join(" ")});return i.join(",")}var pPe=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:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var h="",p={};function m(b){var y=b.getName(s);if(!p[y]){var S=e(b.style,n,{root:!1,parentSelectors:a}),w=$e(S,1),E=w[0];p[y]="@keyframes ".concat(b.getName(s)).concat(E)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(S){Array.isArray(S)?g(S,y):S&&y.push(S)}),y}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")h+="".concat(y,` -`);else if(y._keyframe)m(y);else{var S=f.reduce(function(w,E){var C;return(E==null||(C=E.visit)===null||C===void 0?void 0:C.call(E,w))||w},y);Object.keys(S).forEach(function(w){var E=S[w];if(Ht(E)==="object"&&E&&(w!=="animationName"||!E._keyframe)&&!hPe(E)){var C=!1,x=w.trim(),_=!1;(o||i)&&s?x.startsWith("@")?C=!0:x==="&"?x=R9("",s,c):x=R9(w,s,c):o&&!s&&(x==="&"||x==="")&&(x="",_=!0);var P=e(E,n,{root:_,injectHash:C,parentSelectors:[].concat(Ze(a),[x])}),O=$e(P,2),I=O[0],M=O[1];p=z(z({},p),M),h+="".concat(x).concat(I)}else{let A=function(j,k){var F=j.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),V=k;!Ete[j]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),j==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(m(k),V=k.getName(s)),h+="".concat(F,":").concat(V,";")};var T,D=(T=E==null?void 0:E.value)!==null&&T!==void 0?T:E;Ht(E)==="object"&&E!==null&&E!==void 0&&E[kte]&&Array.isArray(D)?D.forEach(function(j){A(w,j)}):A(w,D)}})}}),o?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(` -`))):h="{".concat(h,"}"),[h,p]};function Nte(e,t){return Db("".concat(e.join("%")).concat(t))}function mPe(){return null}var Ate="style";function Bb(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(Fg),f=u.autoClear;u.mock;var h=u.defaultCache,p=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,S=u.layer,w=n._tokenKey,E=[w];S&&E.push("layer"),E.push.apply(E,Ze(r));var C=w3,x=dA(Ate,E,function(){var M=E.join("|");if(uPe(M)){var T=dPe(M),D=$e(T,2),A=D[0],j=D[1];if(A)return[A,w,j,{},s,c]}var k=t(),F=pPe(k,{hashId:o,hashPriority:p,layer:S?i:void 0,path:r.join("-"),transformers:v,linters:b}),V=$e(F,2),W=V[0],K=V[1],L=Yw(W),Q=Nte(E,L);return[L,w,Q,K,s,c]},function(M,T){var D=$e(M,3),A=D[2];(T||f)&&w3&&sA(A,{mark:Vl})},function(M){var T=$e(M,4),D=T[0];T[1];var A=T[2],j=T[3];if(C&&D!==Rte){var k={mark:Vl,prepend:S?!1:"queue",attachTo:m,priority:c},F=typeof a=="function"?a():a;F&&(k.csp={nonce:F});var V=[],W=[];Object.keys(j).forEach(function(L){L.startsWith("@layer")?V.push(L):W.push(L)}),V.forEach(function(L){rg(Yw(j[L]),"_layer-".concat(L),z(z({},k),{},{prepend:!0}))});var K=rg(D,A,k);K[ef]=y.instanceId,K.setAttribute(jg,w),W.forEach(function(L){rg(Yw(j[L]),"_effect-".concat(L),k)})}}),_=$e(x,3),P=_[0],O=_[1],I=_[2];return function(M){var T;if(!g||C||!h)T=d.createElement(mPe,null);else{var D;T=d.createElement("style",Ge({},(D={},Z(D,jg,O),Z(D,Vl,I),D),{dangerouslySetInnerHTML:{__html:P}}))}return d.createElement(d.Fragment,null,T,M)}}var gPe=function(t,n,r){var o=$e(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},h=f.plain;if(c)return null;var p=i,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=jb(i,a,s,m,h),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=Yw(l[g]),b=jb(v,a,"_effect-".concat(g),m,h);g.startsWith("@layer")?p=b+p:p+=b}}),[u,s,p]},Dte="cssVar",jte=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(Fg),f=u.cache.instanceId,h=u.container,p=s._tokenKey,m=[].concat(Ze(t.path),[r,c,p]),g=dA(Dte,m,function(){var v=n(),b=wte(v,r,{prefix:o,unitless:i,ignore:a,scope:c}),y=$e(b,2),S=y[0],w=y[1],E=Nte(m,w);return[S,w,E,r]},function(v){var b=$e(v,3),y=b[2];w3&&sA(y,{mark:Vl})},function(v){var b=$e(v,3),y=b[1],S=b[2];if(y){var w=rg(y,S,{mark:Vl,prepend:"queue",attachTo:h,priority:-999});w[ef]=f,w.setAttribute(jg,r)}});return g},vPe=function(t,n,r){var o=$e(t,4),i=o[1],a=o[2],s=o[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=jb(i,s,a,f,c);return[u,a,h]},I0,yPe=(I0={},Z(I0,Ate,gPe),Z(I0,xte,L$e),Z(I0,Dte,vPe),I0);function bPe(e){return e!==null}function SPe(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,o=r===void 0?!1:r,i=n.types,a=i===void 0?["style","token","cssVar"]:i,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={},f="";return l.map(function(h){var p=h.replace(s,"").replace(/%/g,"|"),m=h.split("%"),g=$e(m,1),v=g[0],b=yPe[v],y=b(e.cache.get(h)[1],c,{plain:o});if(!y)return null;var S=$e(y,3),w=S[0],E=S[1],C=S[2];return h.startsWith("style")&&(u[p]=E),[w,C]}).filter(bPe).sort(function(h,p){var m=$e(h,1),g=m[0],v=$e(p,1),b=v[0];return g-b}).forEach(function(h){var p=$e(h,2),m=p[1];f+=m}),f+=jb(".".concat(Ly,'{content:"').concat(lPe(u),'";}'),void 0,void 0,Z({},Ly,Ly),o),f}var Gn=function(){function e(t,n){br(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n}return Sr(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 CPe(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+/),o=[],i=0;return[r.reduce(function(a,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;i+=l-c}return i>=0&&o.push(s),i===0&&(a.push(o.join(" ")),o=[]),a},[]),!!n]}function sm(e){return e.notSplit=!0,e}var wPe={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:sm(["borderTop","borderBottom"]),borderBlockStart:sm(["borderTop"]),borderBlockEnd:sm(["borderBottom"]),borderInline:sm(["borderLeft","borderRight"]),borderInlineStart:sm(["borderLeft"]),borderInlineEnd:sm(["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 TC(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var xPe={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var o=t[r],i=wPe[r];if(i&&(typeof o=="number"||typeof o=="string")){var a=CPe(o),s=$e(a,2),l=s[0],c=s[1];i.length&&i.notSplit?i.forEach(function(u){n[u]=TC(o,c)}):i.length===1?n[i[0]]=TC(l[0],c):i.length===2?i.forEach(function(u,f){var h;n[u]=TC((h=l[f])!==null&&h!==void 0?h:l[0],c)}):i.length===4?i.forEach(function(u,f){var h,p;n[u]=TC((h=(p=l[f])!==null&&p!==void 0?p:l[f-2])!==null&&h!==void 0?h:l[0],c)}):n[r]=o}else n[r]=o}),n}},CT=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function EPe(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var _Pe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,o=t.precision,i=o===void 0?5:o,a=t.mediaQuery,s=a===void 0?!1:a,l=function(f,h){if(!h)return f;var p=parseFloat(h);if(p<=1)return f;var m=EPe(p/r,i);return"".concat(m,"rem")},c=function(f){var h=z({},f);return Object.entries(f).forEach(function(p){var m=$e(p,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var b=v.replace(CT,l);h[g]=b}!Ete[g]&&typeof v=="number"&&v!==0&&(h[g]="".concat(v,"px").replace(CT,l));var y=g.trim();if(y.startsWith("@")&&y.includes("px")&&s){var S=g.replace(CT,l);h[S]=h[g],delete h[g]}}),h};return{visit:c}},$Pe={supportModernCSS:function(){return C$e()&&w$e()}};const PPe=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:Gn,NaNLinter:aPe,StyleProvider:h$e,Theme:uA,_experimental:$Pe,createCache:lA,createTheme:up,extractStyle:SPe,genCalc:v$e,getComputedToken:fA,legacyLogicalPropertiesTransformer:xPe,legacyNotSelectorLinter:oPe,logicalPropertiesLinter:iPe,parentSelectorLinter:sPe,px2remTransformer:_Pe,token2CSSVar:Fy,unit:_e,useCSSVarRegister:jte,useCacheToken:hA,useStyleRegister:Bb},Symbol.toStringTag,{value:"Module"}));var p$=d.createContext({});function Fte(e){return fte(e)||lte(e)||u$(e)||hte()}function Mo(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Mo(e,t.slice(0,-1))?e:Lte(e,t,n,r)}function OPe(e){return Ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function I9(e){return Array.isArray(e)?[]:{}}var MPe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Um(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=TPe,e},Bte=d.createContext(void 0);var zte={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"},Hte={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},IPe=z(z({},Hte),{},{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 Ute={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},zb={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"]},IPe),timePickerLocale:Object.assign({},Ute)},rs="${label} is not a valid ${type}",Os={locale:"en",Pagination:zte,DatePicker:zb,TimePicker:Ute,Calendar:zb,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:rs,method:rs,array:rs,object:rs,number:rs,date:rs,boolean:rs,integer:rs,float:rs,regexp:rs,email:rs,url:rs,hex:rs},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 Xw=Object.assign({},Os.Modal),Qw=[];const k9=()=>Qw.reduce((e,t)=>Object.assign(Object.assign({},e),t),Os.Modal);function kPe(e){if(e){const t=Object.assign({},e);return Qw.push(t),Xw=k9(),()=>{Qw=Qw.filter(n=>n!==t),Xw=k9()}}Xw=Object.assign({},Os.Modal)}function Wte(){return Xw}const gA=d.createContext(void 0),zi=(e,t)=>{const n=d.useContext(gA),r=d.useMemo(()=>{var i;const a=t||Os[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=d.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Os.locale:i},[n]);return[r,o]},NPe="internalMark",APe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>kPe(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(gA.Provider,{value:o},n)},wi=Math.round;function wT(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const N9=(e,t,n)=>n===0?e:e/100;function k0(e,t){const n=t||255;return e>n?n:e<0?0:e}class Un{constructor(t){Z(this,"isValid",!0),Z(this,"r",0),Z(this,"g",0),Z(this,"b",0),Z(this,"a",1),Z(this,"_h",void 0),Z(this,"_s",void 0),Z(this,"_l",void 0),Z(this,"_v",void 0),Z(this,"_max",void 0),Z(this,"_min",void 0),Z(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 o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof Un)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=k0(t.r),this.g=k0(t.g),this.b=k0(t.b),this.a=typeof t.a=="number"?k0(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=wi(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"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 o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],a={r:wi(i("r")),g:wi(i("g")),b:wi(i("b")),a:wi(i("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),o=i=>wi((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("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 o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=wi(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=wi(this.getSaturation()*100),r=wi(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 o=this.clone();return o[t]=k0(n,r),o}_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(o,i){return parseInt(n[o]+n[i||o],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:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const h=wi(r*255);this.r=h,this.g=h,this.b=h}let i=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?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const f=r-c/2;this.r=wi((i+f)*255),this.g=wi((a+f)*255),this.b=wi((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=wi(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=wi(r*(1-n)*255),u=wi(r*(1-n*l)*255),f=wi(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=wT(t,N9);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=wT(t,N9);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=wT(t,(r,o)=>o.includes("%")?wi(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const DPe=Object.freeze(Object.defineProperty({__proto__:null,FastColor:Un},Symbol.toStringTag,{value:"Module"}));var RC=2,A9=.16,jPe=.05,FPe=.05,LPe=.15,Vte=5,Kte=4,BPe=[{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 D9(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-RC*t:Math.round(e.h)+RC*t:r=n?Math.round(e.h)+RC*t:Math.round(e.h)-RC*t,r<0?r+=360:r>=360&&(r-=360),r}function j9(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-A9*t:t===Kte?r=e.s+A9:r=e.s+jPe*t,r>1&&(r=1),n&&t===Vte&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function F9(e,t,n){var r;return n?r=e.v+FPe*t:r=e.v-LPe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function xf(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Un(e),o=r.toHsv(),i=Vte;i>0;i-=1){var a=new Un({h:D9(o,i,!0),s:j9(o,i,!0),v:F9(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=Kte;s+=1){var l=new Un({h:D9(o,s),s:j9(o,s),v:F9(o,s)});n.push(l)}return t.theme==="dark"?BPe.map(function(c){var u=c.index,f=c.amount;return new Un(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var qh={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"},C2=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];C2.primary=C2[5];var w2=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];w2.primary=w2[5];var x2=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];x2.primary=x2[5];var E2=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];E2.primary=E2[5];var _2=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];_2.primary=_2[5];var $2=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];$2.primary=$2[5];var P2=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];P2.primary=P2[5];var O2=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];O2.primary=O2[5];var dp=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];dp.primary=dp[5];var M2=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];M2.primary=M2[5];var T2=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];T2.primary=T2[5];var R2=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];R2.primary=R2[5];var Hb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Hb.primary=Hb[5];var zPe=Hb,Jw={red:C2,volcano:w2,orange:x2,gold:E2,yellow:_2,lime:$2,green:P2,cyan:O2,blue:dp,geekblue:M2,purple:T2,magenta:R2,grey:Hb},I2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];I2.primary=I2[5];var k2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];k2.primary=k2[5];var N2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];N2.primary=N2[5];var A2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];A2.primary=A2[5];var D2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];D2.primary=D2[5];var j2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];j2.primary=j2[5];var F2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];F2.primary=F2[5];var L2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];L2.primary=L2[5];var B2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];B2.primary=B2[5];var z2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];z2.primary=z2[5];var H2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];H2.primary=H2[5];var U2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];U2.primary=U2[5];var W2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];W2.primary=W2[5];var HPe={red:I2,volcano:k2,orange:N2,gold:A2,yellow:D2,lime:j2,green:F2,cyan:L2,blue:B2,geekblue:z2,purple:H2,magenta:U2,grey:W2};const UPe=Object.freeze(Object.defineProperty({__proto__:null,blue:dp,blueDark:B2,cyan:O2,cyanDark:L2,geekblue:M2,geekblueDark:z2,generate:xf,gold:E2,goldDark:A2,gray:zPe,green:P2,greenDark:F2,grey:Hb,greyDark:W2,lime:$2,limeDark:j2,magenta:R2,magentaDark:U2,orange:x2,orangeDark:N2,presetDarkPalettes:HPe,presetPalettes:Jw,presetPrimaryColors:qh,purple:T2,purpleDark:H2,red:C2,redDark:I2,volcano:w2,volcanoDark:k2,yellow:_2,yellowDark:D2},Symbol.toStringTag,{value:"Module"})),vA={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"},Hg=Object.assign(Object.assign({},vA),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var eA=Symbol.for("react.element"),tA=Symbol.for("react.portal"),J_=Symbol.for("react.fragment"),Z_=Symbol.for("react.strict_mode"),e$=Symbol.for("react.profiler"),t$=Symbol.for("react.provider"),n$=Symbol.for("react.context"),b_e=Symbol.for("react.server_context"),r$=Symbol.for("react.forward_ref"),o$=Symbol.for("react.suspense"),i$=Symbol.for("react.suspense_list"),a$=Symbol.for("react.memo"),s$=Symbol.for("react.lazy"),S_e=Symbol.for("react.offscreen"),Zee;Zee=Symbol.for("react.module.reference");function gl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eA:switch(e=e.type,e){case J_:case e$:case Z_:case o$:case i$:return e;default:switch(e=e&&e.$$typeof,e){case b_e:case n$:case r$:case s$:case a$:case t$:return e;default:return t}}case tA:return t}}}zr.ContextConsumer=n$;zr.ContextProvider=t$;zr.Element=eA;zr.ForwardRef=r$;zr.Fragment=J_;zr.Lazy=s$;zr.Memo=a$;zr.Portal=tA;zr.Profiler=e$;zr.StrictMode=Z_;zr.Suspense=o$;zr.SuspenseList=i$;zr.isAsyncMode=function(){return!1};zr.isConcurrentMode=function(){return!1};zr.isContextConsumer=function(e){return gl(e)===n$};zr.isContextProvider=function(e){return gl(e)===t$};zr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eA};zr.isForwardRef=function(e){return gl(e)===r$};zr.isFragment=function(e){return gl(e)===J_};zr.isLazy=function(e){return gl(e)===s$};zr.isMemo=function(e){return gl(e)===a$};zr.isPortal=function(e){return gl(e)===tA};zr.isProfiler=function(e){return gl(e)===e$};zr.isStrictMode=function(e){return gl(e)===Z_};zr.isSuspense=function(e){return gl(e)===o$};zr.isSuspenseList=function(e){return gl(e)===i$};zr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===J_||e===e$||e===Z_||e===o$||e===i$||e===S_e||typeof e=="object"&&e!==null&&(e.$$typeof===s$||e.$$typeof===a$||e.$$typeof===t$||e.$$typeof===n$||e.$$typeof===r$||e.$$typeof===Zee||e.getModuleId!==void 0)};zr.typeOf=gl;Jee.exports=zr;var pT=Jee.exports;function ed(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Nb=function(t,n){typeof t=="function"?t(n):Ht(t)==="object"&&t&&"current"in t&&(t.current=n)},bi=function(){for(var t=arguments.length,n=new Array(t),r=0;r0},e.prototype.connect_=function(){!g3||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),O_e?(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(){!g3||!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,o=P_e.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),tte=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Dg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new j_e(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 Dg(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 F_e(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}(),rte=typeof WeakMap<"u"?new WeakMap:new ete,ote=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=M_e.getInstance(),r=new L_e(t,n,this);rte.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ote.prototype[e]=function(){var t;return(t=rte.get(this))[e].apply(t,arguments)}});var B_e=function(){return typeof S2.ResizeObserver<"u"?S2.ResizeObserver:ote}(),Zd=new Map;function z_e(e){e.forEach(function(t){var n,r=t.target;(n=Zd.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var ite=new B_e(z_e);function H_e(e,t){Zd.has(e)||(Zd.set(e,new Set),ite.observe(e)),Zd.get(e).add(t)}function U_e(e,t){Zd.has(e)&&(Zd.get(e).delete(t),Zd.get(e).size||(ite.unobserve(e),Zd.delete(e)))}function br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v9(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;y9+=1;var r=y9;function o(i){if(i===0)ute(r),t();else{var a=lte(function(){o(i-1)});rA.set(r,a)}}return o(n),r};zn.cancel=function(e){var t=rA.get(e);return ute(e),cte(t)};function dte(e){if(Array.isArray(e))return e}function Q_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function fte(){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 $e(e,t){return dte(e)||Q_e(e,t)||u$(e,t)||fte()}function Db(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Ev(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function J_e(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 b9="data-rc-order",S9="data-rc-priority",Z_e="rc-util-key",y3=new Map;function hte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Z_e}function d$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function e$e(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function oA(e){return Array.from((y3.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function pte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ev())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=e$e(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(b9,a),s&&i&&l.setAttribute(S9,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=d$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||oA(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(b9)))return!1;var p=Number(h.getAttribute(S9)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function mte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=d$(t);return(t.styles||oA(n)).find(function(r){return r.getAttribute(hte(t))===e})}function iA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mte(e,t);if(n){var r=d$(t);r.removeChild(n)}}function t$e(e,t){var n=y3.get(e);if(!n||!J_e(document,n)){var r=pte("",t),o=r.parentNode;y3.set(e,o),e.removeChild(r)}}function rg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d$(n),o=oA(r),i=z(z({},n),{},{styles:o});t$e(r,i);var a=mte(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=pte(e,i);return u.setAttribute(hte(i),t),u}function n$e(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 At(e,t){if(e==null)return{};var n,r,o=n$e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(F1(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&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&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.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 o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=$e(c,2),h=f[1];return o.internalGet(u)[1]0,void 0),w9+=1}return Sr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),gT=new sA;function up(e){var t=Array.isArray(e)?e:[e];return gT.has(t)||gT.set(t,new lA(t)),gT.get(t)}var y$e=new WeakMap,vT={};function b$e(e,t){for(var n=y$e,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=z(z({},o),{},(r={},Z(r,jg,t),Z(r,Vl,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"")}var Fy=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()},w$e=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(o){var i=$e(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Cte=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=$e(a,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,p=Fy(u,r==null?void 0:r.prefix);o[p]=typeof f=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(p,")")}}),[i,w$e(o,n,{scope:r==null?void 0:r.scope})]},_9=Ev()?d.useLayoutEffect:d.useEffect,x$e=function(t,n){var r=d.useRef(!0);_9(function(){return t(r.current)},n),_9(function(){return r.current=!1,function(){r.current=!0}},[])},E$e=z({},S1),$9=E$e.useInsertionEffect,_$e=function(t,n,r){d.useMemo(t,r),x$e(function(){return n(!0)},r)},$$e=$9?function(e,t,n){return $9(function(){return e(),t()},n)}:_$e,P$e=z({},S1),O$e=P$e.useInsertionEffect,M$e=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},T$e=function(){return function(t){t()}},R$e=typeof O$e<"u"?M$e:T$e;function cA(e,t,n,r,o){var i=d.useContext(Fg),a=i.cache,s=[e].concat(Ze(t)),l=S3(s),c=R$e([l]),u=function(m){a.opUpdate(l,function(g){var v=g||[void 0,void 0],b=$e(v,2),y=b[0],S=y===void 0?0:y,w=b[1],E=w,C=E||n(),x=[S,C];return m?m(x):x})};d.useMemo(function(){u()},[l]);var f=a.opGet(l),h=f[1];return $$e(function(){o==null||o(h)},function(p){return u(function(m){var g=$e(m,2),v=g[0],b=g[1];return p&&v===0&&(o==null||o(h)),[v+1,b]}),function(){a.opUpdate(l,function(m){var g=m||[],v=$e(g,2),b=v[0],y=b===void 0?0:b,S=v[1],w=y-1;return w===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(S,!1))}),null):[y-1,S]})}},[l]),h}var I$e={},k$e="css",mh=new Map;function N$e(e){mh.set(e,(mh.get(e)||0)+1)}function A$e(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(jg,'="').concat(e,'"]'));n.forEach(function(r){if(r[ef]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var D$e=0;function j$e(e,t){mh.set(e,(mh.get(e)||0)-1);var n=Array.from(mh.keys()),r=n.filter(function(o){var i=mh.get(o)||0;return i<=0});n.length-r.length>D$e&&r.forEach(function(o){A$e(o,t),mh.delete(o)})}var uA=function(t,n,r,o){var i=r.getDerivativeToken(t),a=z(z({},i),n);return o&&(a=o(a)),a},wte="token";function dA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Fg),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?I$e:l,u=n.formatToken,f=n.getComputedToken,h=n.cssVar,p=b$e(function(){return Object.assign.apply(Object,[{}].concat(Ze(t)))},t),m=jy(p),g=jy(c),v=h?jy(h):"",b=cA(wte,[s,e.id,m,g,v],function(){var y,S=f?f(p,c,e):uA(p,c,e,u),w=z({},S),E="";if(h){var C=Cte(S,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),x=$e(C,2);S=x[0],E=x[1]}var _=E9(S,s);S._tokenKey=_,w._tokenKey=E9(w,s);var P=(y=h==null?void 0:h.key)!==null&&y!==void 0?y:_;S._themeKey=P,N$e(P);var O="".concat(k$e,"-").concat(Db(_));return S._hashId=O,[S,O,w,E,(h==null?void 0:h.key)||""]},function(y){j$e(y[0]._themeKey,o)},function(y){var S=$e(y,4),w=S[0],E=S[3];if(h&&E){var C=rg(E,Db("css-variables-".concat(w._themeKey)),{mark:Vl,prepend:"queue",attachTo:i,priority:-999});C[ef]=o,C.setAttribute(jg,w._themeKey)}});return b}var F$e=function(t,n,r){var o=$e(t,5),i=o[2],a=o[3],s=o[4],l=r||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=jb(a,s,u,h,c);return[f,u,p]},xte={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},Ete="comm",_te="rule",$te="decl",L$e="@import",B$e="@keyframes",z$e="@layer",Pte=Math.abs,fA=String.fromCharCode;function Ote(e){return e.trim()}function qw(e,t,n){return e.replace(t,n)}function H$e(e,t,n){return e.indexOf(t,n)}function Fb(e,t){return e.charCodeAt(t)|0}function Bg(e,t,n){return e.slice(t,n)}function Pc(e){return e.length}function U$e(e){return e.length}function TC(e,t){return t.push(e),e}var f$=1,zg=1,Mte=0,ul=0,oi=0,_v="";function hA(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:f$,column:zg,length:a,return:"",siblings:s}}function W$e(){return oi}function V$e(){return oi=ul>0?Fb(_v,--ul):0,zg--,oi===10&&(zg=1,f$--),oi}function Kl(){return oi=ul2||Lb(oi)>3?"":" "}function Y$e(e,t){for(;--t&&Kl()&&!(oi<48||oi>102||oi>57&&oi<65||oi>70&&oi<97););return h$(e,Gw()+(t<6&&tf()==32&&Kl()==32))}function w3(e){for(;Kl();)switch(oi){case e:return ul;case 34:case 39:e!==34&&e!==39&&w3(oi);break;case 40:e===41&&w3(e);break;case 92:Kl();break}return ul}function X$e(e,t){for(;Kl()&&e+oi!==57;)if(e+oi===84&&tf()===47)break;return"/*"+h$(t,ul-1)+"*"+fA(e===47?e:Kl())}function Q$e(e){for(;!Lb(tf());)Kl();return h$(e,ul)}function J$e(e){return q$e(Yw("",null,null,null,[""],e=K$e(e),0,[0],e))}function Yw(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,p=0,m=0,g=1,v=1,b=1,y=0,S="",w=o,E=i,C=r,x=S;v;)switch(m=y,y=Kl()){case 40:if(m!=108&&Fb(x,f-1)==58){H$e(x+=qw(ST(y),"&","&\f"),"&\f",Pte(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:x+=ST(y);break;case 9:case 10:case 13:case 32:x+=G$e(m);break;case 92:x+=Y$e(Gw()-1,7);continue;case 47:switch(tf()){case 42:case 47:TC(Z$e(X$e(Kl(),Gw()),t,n,l),l),(Lb(m||1)==5||Lb(tf()||1)==5)&&Pc(x)&&Bg(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*g:s[c++]=Pc(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:b==-1&&(x=qw(x,/\f/g,"")),p>0&&(Pc(x)-f||g===0&&m===47)&&TC(p>32?O9(x+";",r,n,f-1,l):O9(qw(x," ","")+";",r,n,f-2,l),l);break;case 59:x+=";";default:if(TC(C=P9(x,t,n,c,u,o,s,S,w=[],E=[],f,i),i),y===123)if(u===0)Yw(x,t,C,C,w,i,f,s,E);else switch(h===99&&Fb(x,3)===110?100:h){case 100:case 108:case 109:case 115:Yw(e,C,C,r&&TC(P9(e,C,C,0,0,o,s,S,o,w=[],f,E),E),o,E,f,s,r?w:E);break;default:Yw(x,C,C,C,[""],E,0,s,E)}}c=u=p=0,g=b=1,S=x="",f=a;break;case 58:f=1+Pc(x),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&V$e()==125)continue}switch(x+=fA(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Pc(x)-1)*b,b=1;break;case 64:tf()===45&&(x+=ST(Kl())),h=tf(),u=f=Pc(S=x+=Q$e(Gw())),y++;break;case 45:m===45&&Pc(x)==2&&(g=0)}}return i}function P9(e,t,n,r,o,i,a,s,l,c,u,f){for(var h=o-1,p=o===0?i:[""],m=U$e(p),g=0,v=0,b=0;g0?p[y]+" "+S:qw(S,/&\f/g,p[y])))&&(l[b++]=w);return hA(e,t,n,o===0?_te:s,l,c,u,f)}function Z$e(e,t,n,r){return hA(e,t,n,Ete,fA(W$e()),Bg(e,2,-2),0,r)}function O9(e,t,n,r,o){return hA(e,t,n,$te,Bg(e,0,r),Bg(e,r+1,-1),r,o)}function x3(e,t){for(var n="",r=0;r1}function nPe(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var rPe=function(t,n,r){var o=nPe(r),i=o.match(/:not\([^)]*\)/g)||[];i.length>0&&i.some(tPe)&&Ph("Concat ':not' selector not support in legacy browsers.",r)},oPe=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":Ph("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 o=n.split(" ").map(function(s){return s.trim()});o.length===4&&o[1]!==o[3]&&Ph("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")&&Ph("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 i=n.split("/").map(function(s){return s.trim()}),a=i.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&&Ph("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}},iPe=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&Ph("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},aPe=function(t,n,r){r.parentSelectors.some(function(o){var i=o.split(",");return i.some(function(a){return a.split("&").length>2})})&&Ph("Should not use more than one `&` in a selector.",r)},Ly="data-ant-cssinjs-cache-path",Tte="_FILE_STYLE__";function sPe(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var Kh,Rte=!0;function lPe(){if(!Kh&&(Kh={},Ev())){var e=document.createElement("div");e.className=Ly,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(o){var i=o.split(":"),a=$e(i,2),s=a[0],l=a[1];Kh[s]=l});var n=document.querySelector("style[".concat(Ly,"]"));if(n){var r;Rte=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function cPe(e){return lPe(),!!Kh[e]}function uPe(e){var t=Kh[e],n=null;if(t&&Ev())if(Rte)n=Tte;else{var r=document.querySelector("style[".concat(Vl,'="').concat(Kh[e],'"]'));r?n=r.innerHTML:delete Kh[e]}return[n,t]}var dPe="_skip_check_",Ite="_multi_value_";function Xw(e){var t=x3(J$e(e),ePe);return t.replace(/\{%%%\:[^;];}/g,";")}function fPe(e){return Ht(e)==="object"&&e&&(dPe in e||Ite in e)}function M9(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=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(o).concat(c.slice(u.length)),[c].concat(Ze(l.slice(1))).join(" ")});return i.join(",")}var hPe=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:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var h="",p={};function m(b){var y=b.getName(s);if(!p[y]){var S=e(b.style,n,{root:!1,parentSelectors:a}),w=$e(S,1),E=w[0];p[y]="@keyframes ".concat(b.getName(s)).concat(E)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(S){Array.isArray(S)?g(S,y):S&&y.push(S)}),y}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")h+="".concat(y,` +`);else if(y._keyframe)m(y);else{var S=f.reduce(function(w,E){var C;return(E==null||(C=E.visit)===null||C===void 0?void 0:C.call(E,w))||w},y);Object.keys(S).forEach(function(w){var E=S[w];if(Ht(E)==="object"&&E&&(w!=="animationName"||!E._keyframe)&&!fPe(E)){var C=!1,x=w.trim(),_=!1;(o||i)&&s?x.startsWith("@")?C=!0:x==="&"?x=M9("",s,c):x=M9(w,s,c):o&&!s&&(x==="&"||x==="")&&(x="",_=!0);var P=e(E,n,{root:_,injectHash:C,parentSelectors:[].concat(Ze(a),[x])}),O=$e(P,2),I=O[0],M=O[1];p=z(z({},p),M),h+="".concat(x).concat(I)}else{let A=function(j,k){var F=j.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),V=k;!xte[j]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),j==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(m(k),V=k.getName(s)),h+="".concat(F,":").concat(V,";")};var T,D=(T=E==null?void 0:E.value)!==null&&T!==void 0?T:E;Ht(E)==="object"&&E!==null&&E!==void 0&&E[Ite]&&Array.isArray(D)?D.forEach(function(j){A(w,j)}):A(w,D)}})}}),o?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(` +`))):h="{".concat(h,"}"),[h,p]};function kte(e,t){return Db("".concat(e.join("%")).concat(t))}function pPe(){return null}var Nte="style";function Bb(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(Fg),f=u.autoClear;u.mock;var h=u.defaultCache,p=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,S=u.layer,w=n._tokenKey,E=[w];S&&E.push("layer"),E.push.apply(E,Ze(r));var C=C3,x=cA(Nte,E,function(){var M=E.join("|");if(cPe(M)){var T=uPe(M),D=$e(T,2),A=D[0],j=D[1];if(A)return[A,w,j,{},s,c]}var k=t(),F=hPe(k,{hashId:o,hashPriority:p,layer:S?i:void 0,path:r.join("-"),transformers:v,linters:b}),V=$e(F,2),W=V[0],K=V[1],L=Xw(W),Q=kte(E,L);return[L,w,Q,K,s,c]},function(M,T){var D=$e(M,3),A=D[2];(T||f)&&C3&&iA(A,{mark:Vl})},function(M){var T=$e(M,4),D=T[0];T[1];var A=T[2],j=T[3];if(C&&D!==Tte){var k={mark:Vl,prepend:S?!1:"queue",attachTo:m,priority:c},F=typeof a=="function"?a():a;F&&(k.csp={nonce:F});var V=[],W=[];Object.keys(j).forEach(function(L){L.startsWith("@layer")?V.push(L):W.push(L)}),V.forEach(function(L){rg(Xw(j[L]),"_layer-".concat(L),z(z({},k),{},{prepend:!0}))});var K=rg(D,A,k);K[ef]=y.instanceId,K.setAttribute(jg,w),W.forEach(function(L){rg(Xw(j[L]),"_effect-".concat(L),k)})}}),_=$e(x,3),P=_[0],O=_[1],I=_[2];return function(M){var T;if(!g||C||!h)T=d.createElement(pPe,null);else{var D;T=d.createElement("style",Ge({},(D={},Z(D,jg,O),Z(D,Vl,I),D),{dangerouslySetInnerHTML:{__html:P}}))}return d.createElement(d.Fragment,null,T,M)}}var mPe=function(t,n,r){var o=$e(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},h=f.plain;if(c)return null;var p=i,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=jb(i,a,s,m,h),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=Xw(l[g]),b=jb(v,a,"_effect-".concat(g),m,h);g.startsWith("@layer")?p=b+p:p+=b}}),[u,s,p]},Ate="cssVar",Dte=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(Fg),f=u.cache.instanceId,h=u.container,p=s._tokenKey,m=[].concat(Ze(t.path),[r,c,p]),g=cA(Ate,m,function(){var v=n(),b=Cte(v,r,{prefix:o,unitless:i,ignore:a,scope:c}),y=$e(b,2),S=y[0],w=y[1],E=kte(m,w);return[S,w,E,r]},function(v){var b=$e(v,3),y=b[2];C3&&iA(y,{mark:Vl})},function(v){var b=$e(v,3),y=b[1],S=b[2];if(y){var w=rg(y,S,{mark:Vl,prepend:"queue",attachTo:h,priority:-999});w[ef]=f,w.setAttribute(jg,r)}});return g},gPe=function(t,n,r){var o=$e(t,4),i=o[1],a=o[2],s=o[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=jb(i,s,a,f,c);return[u,a,h]},I0,vPe=(I0={},Z(I0,Nte,mPe),Z(I0,wte,F$e),Z(I0,Ate,gPe),I0);function yPe(e){return e!==null}function bPe(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,o=r===void 0?!1:r,i=n.types,a=i===void 0?["style","token","cssVar"]:i,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={},f="";return l.map(function(h){var p=h.replace(s,"").replace(/%/g,"|"),m=h.split("%"),g=$e(m,1),v=g[0],b=vPe[v],y=b(e.cache.get(h)[1],c,{plain:o});if(!y)return null;var S=$e(y,3),w=S[0],E=S[1],C=S[2];return h.startsWith("style")&&(u[p]=E),[w,C]}).filter(yPe).sort(function(h,p){var m=$e(h,1),g=m[0],v=$e(p,1),b=v[0];return g-b}).forEach(function(h){var p=$e(h,2),m=p[1];f+=m}),f+=jb(".".concat(Ly,'{content:"').concat(sPe(u),'";}'),void 0,void 0,Z({},Ly,Ly),o),f}var Gn=function(){function e(t,n){br(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n}return Sr(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 SPe(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+/),o=[],i=0;return[r.reduce(function(a,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;i+=l-c}return i>=0&&o.push(s),i===0&&(a.push(o.join(" ")),o=[]),a},[]),!!n]}function sm(e){return e.notSplit=!0,e}var CPe={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:sm(["borderTop","borderBottom"]),borderBlockStart:sm(["borderTop"]),borderBlockEnd:sm(["borderBottom"]),borderInline:sm(["borderLeft","borderRight"]),borderInlineStart:sm(["borderLeft"]),borderInlineEnd:sm(["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 RC(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var wPe={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var o=t[r],i=CPe[r];if(i&&(typeof o=="number"||typeof o=="string")){var a=SPe(o),s=$e(a,2),l=s[0],c=s[1];i.length&&i.notSplit?i.forEach(function(u){n[u]=RC(o,c)}):i.length===1?n[i[0]]=RC(l[0],c):i.length===2?i.forEach(function(u,f){var h;n[u]=RC((h=l[f])!==null&&h!==void 0?h:l[0],c)}):i.length===4?i.forEach(function(u,f){var h,p;n[u]=RC((h=(p=l[f])!==null&&p!==void 0?p:l[f-2])!==null&&h!==void 0?h:l[0],c)}):n[r]=o}else n[r]=o}),n}},CT=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function xPe(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var EPe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,o=t.precision,i=o===void 0?5:o,a=t.mediaQuery,s=a===void 0?!1:a,l=function(f,h){if(!h)return f;var p=parseFloat(h);if(p<=1)return f;var m=xPe(p/r,i);return"".concat(m,"rem")},c=function(f){var h=z({},f);return Object.entries(f).forEach(function(p){var m=$e(p,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var b=v.replace(CT,l);h[g]=b}!xte[g]&&typeof v=="number"&&v!==0&&(h[g]="".concat(v,"px").replace(CT,l));var y=g.trim();if(y.startsWith("@")&&y.includes("px")&&s){var S=g.replace(CT,l);h[S]=h[g],delete h[g]}}),h};return{visit:c}},_Pe={supportModernCSS:function(){return S$e()&&C$e()}};const $Pe=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:Gn,NaNLinter:iPe,StyleProvider:f$e,Theme:lA,_experimental:_Pe,createCache:aA,createTheme:up,extractStyle:bPe,genCalc:g$e,getComputedToken:uA,legacyLogicalPropertiesTransformer:wPe,legacyNotSelectorLinter:rPe,logicalPropertiesLinter:oPe,parentSelectorLinter:aPe,px2remTransformer:EPe,token2CSSVar:Fy,unit:_e,useCSSVarRegister:Dte,useCacheToken:dA,useStyleRegister:Bb},Symbol.toStringTag,{value:"Module"}));var p$=d.createContext({});function jte(e){return dte(e)||ste(e)||u$(e)||fte()}function Mo(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Mo(e,t.slice(0,-1))?e:Fte(e,t,n,r)}function PPe(e){return Ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function T9(e){return Array.isArray(e)?[]:{}}var OPe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Um(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=MPe,e},Lte=d.createContext(void 0);var Bte={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"},zte={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},RPe=z(z({},zte),{},{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 Hte={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},zb={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),timePickerLocale:Object.assign({},Hte)},rs="${label} is not a valid ${type}",Os={locale:"en",Pagination:Bte,DatePicker:zb,TimePicker:Hte,Calendar:zb,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:rs,method:rs,array:rs,object:rs,number:rs,date:rs,boolean:rs,integer:rs,float:rs,regexp:rs,email:rs,url:rs,hex:rs},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 Qw=Object.assign({},Os.Modal),Jw=[];const R9=()=>Jw.reduce((e,t)=>Object.assign(Object.assign({},e),t),Os.Modal);function IPe(e){if(e){const t=Object.assign({},e);return Jw.push(t),Qw=R9(),()=>{Jw=Jw.filter(n=>n!==t),Qw=R9()}}Qw=Object.assign({},Os.Modal)}function Ute(){return Qw}const pA=d.createContext(void 0),zi=(e,t)=>{const n=d.useContext(pA),r=d.useMemo(()=>{var i;const a=t||Os[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=d.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Os.locale:i},[n]);return[r,o]},kPe="internalMark",NPe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>IPe(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(pA.Provider,{value:o},n)},Ci=Math.round;function wT(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const I9=(e,t,n)=>n===0?e:e/100;function k0(e,t){const n=t||255;return e>n?n:e<0?0:e}class Un{constructor(t){Z(this,"isValid",!0),Z(this,"r",0),Z(this,"g",0),Z(this,"b",0),Z(this,"a",1),Z(this,"_h",void 0),Z(this,"_s",void 0),Z(this,"_l",void 0),Z(this,"_v",void 0),Z(this,"_max",void 0),Z(this,"_min",void 0),Z(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 o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof Un)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=k0(t.r),this.g=k0(t.g),this.b=k0(t.b),this.a=typeof t.a=="number"?k0(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ci(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"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 o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],a={r:Ci(i("r")),g:Ci(i("g")),b:Ci(i("b")),a:Ci(i("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),o=i=>Ci((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("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 o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Ci(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ci(this.getSaturation()*100),r=Ci(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 o=this.clone();return o[t]=k0(n,r),o}_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(o,i){return parseInt(n[o]+n[i||o],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:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const h=Ci(r*255);this.r=h,this.g=h,this.b=h}let i=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?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const f=r-c/2;this.r=Ci((i+f)*255),this.g=Ci((a+f)*255),this.b=Ci((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=Ci(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Ci(r*(1-n)*255),u=Ci(r*(1-n*l)*255),f=Ci(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=wT(t,I9);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=wT(t,I9);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=wT(t,(r,o)=>o.includes("%")?Ci(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const APe=Object.freeze(Object.defineProperty({__proto__:null,FastColor:Un},Symbol.toStringTag,{value:"Module"}));var IC=2,k9=.16,DPe=.05,jPe=.05,FPe=.15,Wte=5,Vte=4,LPe=[{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 N9(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-IC*t:Math.round(e.h)+IC*t:r=n?Math.round(e.h)+IC*t:Math.round(e.h)-IC*t,r<0?r+=360:r>=360&&(r-=360),r}function A9(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-k9*t:t===Vte?r=e.s+k9:r=e.s+DPe*t,r>1&&(r=1),n&&t===Wte&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function D9(e,t,n){var r;return n?r=e.v+jPe*t:r=e.v-FPe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function xf(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Un(e),o=r.toHsv(),i=Wte;i>0;i-=1){var a=new Un({h:N9(o,i,!0),s:A9(o,i,!0),v:D9(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=Vte;s+=1){var l=new Un({h:N9(o,s),s:A9(o,s),v:D9(o,s)});n.push(l)}return t.theme==="dark"?LPe.map(function(c){var u=c.index,f=c.amount;return new Un(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var qh={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"},w2=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];w2.primary=w2[5];var x2=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];x2.primary=x2[5];var E2=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];E2.primary=E2[5];var _2=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_2.primary=_2[5];var $2=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];$2.primary=$2[5];var P2=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];P2.primary=P2[5];var O2=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];O2.primary=O2[5];var M2=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];M2.primary=M2[5];var dp=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];dp.primary=dp[5];var T2=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];T2.primary=T2[5];var R2=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];R2.primary=R2[5];var I2=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];I2.primary=I2[5];var Hb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Hb.primary=Hb[5];var BPe=Hb,Zw={red:w2,volcano:x2,orange:E2,gold:_2,yellow:$2,lime:P2,green:O2,cyan:M2,blue:dp,geekblue:T2,purple:R2,magenta:I2,grey:Hb},k2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];k2.primary=k2[5];var N2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];N2.primary=N2[5];var A2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];A2.primary=A2[5];var D2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];D2.primary=D2[5];var j2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];j2.primary=j2[5];var F2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];F2.primary=F2[5];var L2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];L2.primary=L2[5];var B2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];B2.primary=B2[5];var z2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];z2.primary=z2[5];var H2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];H2.primary=H2[5];var U2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];U2.primary=U2[5];var W2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];W2.primary=W2[5];var V2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];V2.primary=V2[5];var zPe={red:k2,volcano:N2,orange:A2,gold:D2,yellow:j2,lime:F2,green:L2,cyan:B2,blue:z2,geekblue:H2,purple:U2,magenta:W2,grey:V2};const HPe=Object.freeze(Object.defineProperty({__proto__:null,blue:dp,blueDark:z2,cyan:M2,cyanDark:B2,geekblue:T2,geekblueDark:H2,generate:xf,gold:_2,goldDark:D2,gray:BPe,green:O2,greenDark:L2,grey:Hb,greyDark:V2,lime:P2,limeDark:F2,magenta:I2,magentaDark:W2,orange:E2,orangeDark:A2,presetDarkPalettes:zPe,presetPalettes:Zw,presetPrimaryColors:qh,purple:R2,purpleDark:U2,red:w2,redDark:k2,volcano:x2,volcanoDark:N2,yellow:$2,yellowDark:j2},Symbol.toStringTag,{value:"Module"})),mA={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"},Hg=Object.assign(Object.assign({},mA),{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 qte(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(o),p=n(i),m=n(a),g=n(s),v=r(c,u),b=e.colorLink||e.colorInfo,y=n(b),S=new Un(m[1]).mix(new Un(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[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:S,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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Un("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const WPe=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function VPe(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},WPe(r))}const Gte=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Zw(e){return(e+8)/e}function KPe(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Zw(n)}))}const Yte=e=>{const t=KPe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,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*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function qPe(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 Ds=(e,t)=>new Un(e).setA(t).toRgbString(),N0=(e,t)=>new Un(e).darken(t).toHexString(),GPe=e=>{const t=xf(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]}},YPe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ds(r,.88),colorTextSecondary:Ds(r,.65),colorTextTertiary:Ds(r,.45),colorTextQuaternary:Ds(r,.25),colorFill:Ds(r,.15),colorFillSecondary:Ds(r,.06),colorFillTertiary:Ds(r,.04),colorFillQuaternary:Ds(r,.02),colorBgSolid:Ds(r,1),colorBgSolidHover:Ds(r,.75),colorBgSolidActive:Ds(r,.95),colorBgLayout:N0(n,4),colorBgContainer:N0(n,0),colorBgElevated:N0(n,0),colorBgSpotlight:Ds(r,.85),colorBgBlur:"transparent",colorBorder:N0(n,15),colorBorderSecondary:N0(n,6)}};function F1(e){qh.pink=qh.magenta,Jw.pink=Jw.magenta;const t=Object.keys(vA).map(n=>{const r=e[n]===qh[n]?Jw[n]:xf(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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),qte(e,{generateColorPalettes:GPe,generateNeutralColorPalettes:YPe})),Yte(e.fontSize)),qPe(e)),Gte(e)),VPe(e))}const Xte=up(F1),Ub={token:Hg,override:{override:Hg},hashed:!0},yA=de.createContext(Ub),Wb="ant",m$="anticon",XPe=["outlined","borderless","filled"],QPe=(e,t)=>t||(e?`${Wb}-${e}`:Wb),Yt=d.createContext({getPrefixCls:QPe,iconPrefixCls:m$});function Ca(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _3(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 L9="data-rc-order",B9="data-rc-priority",JPe="rc-util-key",$3=new Map;function Qte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):JPe}function g$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ZPe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function bA(e){return Array.from(($3.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Jte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ca())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=ZPe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(L9,a),s&&i&&l.setAttribute(B9,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=g$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||bA(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(L9)))return!1;var p=Number(h.getAttribute(B9)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Zte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=g$(t);return(t.styles||bA(n)).find(function(r){return r.getAttribute(Qte(t))===e})}function P3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Zte(e,t);if(n){var r=g$(t);r.removeChild(n)}}function eOe(e,t){var n=$3.get(e);if(!n||!_3(document,n)){var r=Jte("",t),o=r.parentNode;$3.set(e,o),e.removeChild(r)}}function v$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=g$(n),o=bA(r),i=z(z({},n),{},{styles:o});eOe(r,i);var a=Zte(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Jte(e,i);return u.setAttribute(Qte(i),t),u}const tOe=`-ant-${Date.now()}-${Math.random()}`;function nOe(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new Un(a),c=xf(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){o(t.primaryColor,"primary");const a=new Un(t.primaryColor),s=xf(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 Un(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&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` +'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 Kte(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(o),p=n(i),m=n(a),g=n(s),v=r(c,u),b=e.colorLink||e.colorInfo,y=n(b),S=new Un(m[1]).mix(new Un(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[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:S,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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Un("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const UPe=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function WPe(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},UPe(r))}const qte=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ex(e){return(e+8)/e}function VPe(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ex(n)}))}const Gte=e=>{const t=VPe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,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*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function KPe(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 Ds=(e,t)=>new Un(e).setA(t).toRgbString(),N0=(e,t)=>new Un(e).darken(t).toHexString(),qPe=e=>{const t=xf(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]}},GPe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ds(r,.88),colorTextSecondary:Ds(r,.65),colorTextTertiary:Ds(r,.45),colorTextQuaternary:Ds(r,.25),colorFill:Ds(r,.15),colorFillSecondary:Ds(r,.06),colorFillTertiary:Ds(r,.04),colorFillQuaternary:Ds(r,.02),colorBgSolid:Ds(r,1),colorBgSolidHover:Ds(r,.75),colorBgSolidActive:Ds(r,.95),colorBgLayout:N0(n,4),colorBgContainer:N0(n,0),colorBgElevated:N0(n,0),colorBgSpotlight:Ds(r,.85),colorBgBlur:"transparent",colorBorder:N0(n,15),colorBorderSecondary:N0(n,6)}};function L1(e){qh.pink=qh.magenta,Zw.pink=Zw.magenta;const t=Object.keys(mA).map(n=>{const r=e[n]===qh[n]?Zw[n]:xf(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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),Kte(e,{generateColorPalettes:qPe,generateNeutralColorPalettes:GPe})),Gte(e.fontSize)),KPe(e)),qte(e)),WPe(e))}const Yte=up(L1),Ub={token:Hg,override:{override:Hg},hashed:!0},gA=de.createContext(Ub),Wb="ant",m$="anticon",YPe=["outlined","borderless","filled"],XPe=(e,t)=>t||(e?`${Wb}-${e}`:Wb),Yt=d.createContext({getPrefixCls:XPe,iconPrefixCls:m$});function Ca(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function E3(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 j9="data-rc-order",F9="data-rc-priority",QPe="rc-util-key",_3=new Map;function Xte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):QPe}function g$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function JPe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vA(e){return Array.from((_3.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Qte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ca())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=JPe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(j9,a),s&&i&&l.setAttribute(F9,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=g$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||vA(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(j9)))return!1;var p=Number(h.getAttribute(F9)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Jte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=g$(t);return(t.styles||vA(n)).find(function(r){return r.getAttribute(Xte(t))===e})}function $3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Jte(e,t);if(n){var r=g$(t);r.removeChild(n)}}function ZPe(e,t){var n=_3.get(e);if(!n||!E3(document,n)){var r=Qte("",t),o=r.parentNode;_3.set(e,o),e.removeChild(r)}}function v$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=g$(n),o=vA(r),i=z(z({},n),{},{styles:o});ZPe(r,i);var a=Jte(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Qte(e,i);return u.setAttribute(Xte(i),t),u}const eOe=`-ant-${Date.now()}-${Math.random()}`;function tOe(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new Un(a),c=xf(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){o(t.primaryColor,"primary");const a=new Un(t.primaryColor),s=xf(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 Un(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&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } - `.trim()}function rOe(e,t){const n=nOe(e,t);Ca()&&v$(n,`${tOe}-dynamic-theme`)}const zo=d.createContext(!1),SA=e=>{let{children:t,disabled:n}=e;const r=d.useContext(zo);return d.createElement(zo.Provider,{value:n??r},t)},fp=d.createContext(void 0),oOe=e=>{let{children:t,size:n}=e;const r=d.useContext(fp);return d.createElement(fp.Provider,{value:n||r},t)};function iOe(){const e=d.useContext(zo),t=d.useContext(fp);return{componentDisabled:e,componentSize:t}}function dl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(yr(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>dOe&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),V9=new fOe;function hOe(e,t){return de.useMemo(function(){var n=V9.get(t);if(n)return n;var r=e();return V9.set(t,r),r},t)}var pOe=function(){return{}};function ine(e){var t=e.useCSP,n=t===void 0?pOe:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(h,p,m,g){var v=Array.isArray(h)?h[0]:h;function b(_){return"".concat(String(v)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var y=(g==null?void 0:g.unitless)||{},S=typeof s=="function"?s(h):{},w=z(z({},S),{},Z({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(_){w[b(_)]=y[_]});var E=z(z({},g),{},{unitless:w,prefixToken:b}),C=u(h,p,m,E),x=c(v,m,E);return function(_){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,O=C(_,P),I=$e(O,2),M=I[1],T=x(P),D=$e(T,2),A=D[0],j=D[1];return[A,M,j]}}function c(h,p,m){var g=m.unitless,v=m.injectStyle,b=v===void 0?!0:v,y=m.prefixToken,S=m.ignore,w=function(x){var _=x.rootCls,P=x.cssVar,O=P===void 0?{}:P,I=r(),M=I.realToken;return jte({path:[h],prefix:O.prefix,key:O.key,unitless:g,ignore:S,token:M,scope:_},function(){var T=W9(h,M,p),D=U9(h,M,T,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(T).forEach(function(A){D[y(A)]=D[A],delete D[A]}),D}),null},E=function(x){var _=r(),P=_.cssVar;return[function(O){return b&&P?de.createElement(de.Fragment,null,de.createElement(w,{rootCls:x,cssVar:P,component:h}),O):O},P==null?void 0:P.key]};return E}function u(h,p,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(h)?h:[h,h],b=$e(v,1),y=b[0],S=v.join("-"),w=e.layer||{name:"antd"};return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=r(),_=x.theme,P=x.realToken,O=x.hashId,I=x.token,M=x.cssVar,T=o(),D=T.rootPrefixCls,A=T.iconPrefixCls,j=n(),k=M?"css":"js",F=hOe(function(){var ee=new Set;return M&&Object.keys(g.unitless||{}).forEach(function(re){ee.add(Fy(re,M.prefix)),ee.add(Fy(re,z9(y,M.prefix)))}),nne(k,ee)},[k,y,M==null?void 0:M.prefix]),V=uOe(k),W=V.max,K=V.min,L={theme:_,token:I,hashId:O,nonce:function(){return j.nonce},clientOnly:g.clientOnly,layer:w,order:g.order||-999};typeof i=="function"&&Bb(z(z({},L),{},{clientOnly:!1,path:["Shared",D]}),function(){return i(I,{prefix:{rootPrefixCls:D,iconPrefixCls:A},csp:j})});var Q=Bb(z(z({},L),{},{path:[S,E,A]}),function(){if(g.injectStyle===!1)return[];var ee=one(I),re=ee.token,ie=ee.flush,G=W9(y,P,m),X=".".concat(E),ne=U9(y,P,G,{deprecatedTokens:g.deprecatedTokens});M&&G&&Ht(G)==="object"&&Object.keys(G).forEach(function(se){G[se]="var(".concat(Fy(se,z9(y,M.prefix)),")")});var le=kn(re,{componentCls:X,prefixCls:E,iconCls:".".concat(A),antCls:".".concat(D),calc:F,max:W,min:K},M?G:ne),ce=p(le,{hashId:O,prefixCls:E,rootPrefixCls:D,iconPrefixCls:A});ie(y,ne);var oe=typeof a=="function"?a(le,E,C,g.resetFont):null;return[g.resetStyle===!1?null:oe,ce]});return[Q,O]}}function f(h,p,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(h,p,m,z({resetStyle:!1,order:-998},g)),b=function(S){var w=S.prefixCls,E=S.rootCls,C=E===void 0?w:E;return v(w,C),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const mOe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:nne,genStyleUtils:ine,mergeToken:kn,statistic:M3,statisticToken:one},Symbol.toStringTag,{value:"Module"})),pp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],nd="5.23.2";function _T(e){return e>=0&&e<=255}function IC(e,t){const{r:n,g:r,b:o,a:i}=new Un(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Un(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(_T(u)&&_T(f)&&_T(h))return new Un({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new Un({r:n,g:r,b:o,a:1}).toRgbString()}var gOe=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 o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:IC(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:IC(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:IC(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:IC(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` + `.trim()}function nOe(e,t){const n=tOe(e,t);Ca()&&v$(n,`${eOe}-dynamic-theme`)}const zo=d.createContext(!1),yA=e=>{let{children:t,disabled:n}=e;const r=d.useContext(zo);return d.createElement(zo.Provider,{value:n??r},t)},fp=d.createContext(void 0),rOe=e=>{let{children:t,size:n}=e;const r=d.useContext(fp);return d.createElement(fp.Provider,{value:n||r},t)};function oOe(){const e=d.useContext(zo),t=d.useContext(fp);return{componentDisabled:e,componentSize:t}}function dl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(yr(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>uOe&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),U9=new dOe;function fOe(e,t){return de.useMemo(function(){var n=U9.get(t);if(n)return n;var r=e();return U9.set(t,r),r},t)}var hOe=function(){return{}};function one(e){var t=e.useCSP,n=t===void 0?hOe:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(h,p,m,g){var v=Array.isArray(h)?h[0]:h;function b(_){return"".concat(String(v)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var y=(g==null?void 0:g.unitless)||{},S=typeof s=="function"?s(h):{},w=z(z({},S),{},Z({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(_){w[b(_)]=y[_]});var E=z(z({},g),{},{unitless:w,prefixToken:b}),C=u(h,p,m,E),x=c(v,m,E);return function(_){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,O=C(_,P),I=$e(O,2),M=I[1],T=x(P),D=$e(T,2),A=D[0],j=D[1];return[A,M,j]}}function c(h,p,m){var g=m.unitless,v=m.injectStyle,b=v===void 0?!0:v,y=m.prefixToken,S=m.ignore,w=function(x){var _=x.rootCls,P=x.cssVar,O=P===void 0?{}:P,I=r(),M=I.realToken;return Dte({path:[h],prefix:O.prefix,key:O.key,unitless:g,ignore:S,token:M,scope:_},function(){var T=H9(h,M,p),D=z9(h,M,T,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(T).forEach(function(A){D[y(A)]=D[A],delete D[A]}),D}),null},E=function(x){var _=r(),P=_.cssVar;return[function(O){return b&&P?de.createElement(de.Fragment,null,de.createElement(w,{rootCls:x,cssVar:P,component:h}),O):O},P==null?void 0:P.key]};return E}function u(h,p,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(h)?h:[h,h],b=$e(v,1),y=b[0],S=v.join("-"),w=e.layer||{name:"antd"};return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=r(),_=x.theme,P=x.realToken,O=x.hashId,I=x.token,M=x.cssVar,T=o(),D=T.rootPrefixCls,A=T.iconPrefixCls,j=n(),k=M?"css":"js",F=fOe(function(){var ee=new Set;return M&&Object.keys(g.unitless||{}).forEach(function(re){ee.add(Fy(re,M.prefix)),ee.add(Fy(re,L9(y,M.prefix)))}),tne(k,ee)},[k,y,M==null?void 0:M.prefix]),V=cOe(k),W=V.max,K=V.min,L={theme:_,token:I,hashId:O,nonce:function(){return j.nonce},clientOnly:g.clientOnly,layer:w,order:g.order||-999};typeof i=="function"&&Bb(z(z({},L),{},{clientOnly:!1,path:["Shared",D]}),function(){return i(I,{prefix:{rootPrefixCls:D,iconPrefixCls:A},csp:j})});var Q=Bb(z(z({},L),{},{path:[S,E,A]}),function(){if(g.injectStyle===!1)return[];var ee=rne(I),re=ee.token,ie=ee.flush,G=H9(y,P,m),X=".".concat(E),ne=z9(y,P,G,{deprecatedTokens:g.deprecatedTokens});M&&G&&Ht(G)==="object"&&Object.keys(G).forEach(function(se){G[se]="var(".concat(Fy(se,L9(y,M.prefix)),")")});var le=kn(re,{componentCls:X,prefixCls:E,iconCls:".".concat(A),antCls:".".concat(D),calc:F,max:W,min:K},M?G:ne),ce=p(le,{hashId:O,prefixCls:E,rootPrefixCls:D,iconPrefixCls:A});ie(y,ne);var oe=typeof a=="function"?a(le,E,C,g.resetFont):null;return[g.resetStyle===!1?null:oe,ce]});return[Q,O]}}function f(h,p,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(h,p,m,z({resetStyle:!1,order:-998},g)),b=function(S){var w=S.prefixCls,E=S.rootCls,C=E===void 0?w:E;return v(w,C),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const pOe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:tne,genStyleUtils:one,mergeToken:kn,statistic:O3,statisticToken:rne},Symbol.toStringTag,{value:"Module"})),pp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],td="5.23.2";function _T(e){return e>=0&&e<=255}function kC(e,t){const{r:n,g:r,b:o,a:i}=new Un(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Un(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(_T(u)&&_T(f)&&_T(h))return new Un({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new Un({r:n,g:r,b:o,a:1}).toRgbString()}var mOe=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 o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:kC(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:kC(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:kC(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:kC(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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) @@ -134,7 +134,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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 K9=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 o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=K9(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=CA(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=K9(c,["theme"]);let h=f;u&&(h=sne(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};function Ho(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=de.useContext(yA),i=`${nd}-${t||""}`,a=n||Xte,[s,l,c]=hA(a,[Hg,e],{salt:i,override:r,getComputedToken:sne,formatToken:CA,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ane,ignore:vOe,preserve:yOe}});return[a,c,t?l:"",s,o]}const wa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Qn=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}},Fp=()=>({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"}}),nc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),bOe=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"}}}),SOe=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},rc=(e,t)=>({outline:`${_e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ka=(e,t)=>({"&:focus-visible":Object.assign({},rc(e,t))}),lne=e=>({[`.${e}`]:Object.assign(Object.assign({},Fp()),{[`.${e} .${e}-icon`]:{display:"block"}})}),COe=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"},Ka(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Kn,genComponentStyleHook:cne,genSubStyleComponent:$v}=ine({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Yt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Ho();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=d.useContext(Yt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":bOe(e)},lne((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:m$)]},getCommonStyle:SOe,getCompUnitless:()=>ane});function y$(e,t){return pp.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const wOe=(e,t)=>{const[n,r]=Ho();return Bb({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[lne(e)])},xOe=Object.assign({},b1),{useId:q9}=xOe,EOe=()=>"",_Oe=typeof q9>"u"?EOe:q9;function $Oe(e,t,n){var r;ru();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Ub),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Ub.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=_Oe();return td(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.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,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!dl(c,f,!0)}))}var POe=["children"],une=d.createContext({});function dne(e){var t=e.children,n=At(e,POe);return d.createElement(une.Provider,{value:n},t)}var OOe=function(e){la(n,e);var t=Pa(n);function n(){return br(this,n),t.apply(this,arguments)}return Sr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function MOe(e){var t=d.useReducer(function(s){return s+1},0),n=$e(t,2),r=n[1],o=d.useRef(e),i=An(function(){return o.current}),a=An(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Id="none",kC="appear",NC="enter",AC="leave",G9="none",kl="prepare",Wm="start",Vm="active",wA="end",fne="prepared";function Y9(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 TOe(e,t){var n={animationend:Y9("Animation","AnimationEnd"),transitionend:Y9("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ROe=TOe(Ca(),typeof window<"u"?window:{}),hne={};if(Ca()){var IOe=document.createElement("div");hne=IOe.style}var DC={};function pne(e){if(DC[e])return DC[e];var t=ROe[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=zn(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var AOe=[kl,Wm,Vm,wA],DOe=[kl,fne],bne=!1,jOe=!0;function Sne(e){return e===Vm||e===wA}const FOe=function(e,t,n){var r=hp(G9),o=$e(r,2),i=o[0],a=o[1],s=NOe(),l=$e(s,2),c=l[0],u=l[1];function f(){a(kl,!0)}var h=t?DOe:AOe;return yne(function(){if(i!==G9&&i!==wA){var p=h.indexOf(i),m=h[p+1],g=n(i);g===bne?a(m,!0):m&&c(function(v){function b(){v.isCanceled()||a(m,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,i]),d.useEffect(function(){return function(){u()}},[]),[f,i]};function LOe(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,p=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,w=r.onLeaveActive,E=r.onAppearEnd,C=r.onEnterEnd,x=r.onLeaveEnd,_=r.onVisibleChanged,P=hp(),O=$e(P,2),I=O[0],M=O[1],T=MOe(Id),D=$e(T,2),A=D[0],j=D[1],k=hp(null),F=$e(k,2),V=F[0],W=F[1],K=A(),L=d.useRef(!1),Q=d.useRef(null);function ee(){return n()}var re=d.useRef(!1);function ie(){j(Id),W(null,!0)}var G=An(function(ye){var ve=A();if(ve!==Id){var be=ee();if(!(ye&&!ye.deadline&&ye.target!==be)){var Pe=re.current,Ne;ve===kC&&Pe?Ne=E==null?void 0:E(be,ye):ve===NC&&Pe?Ne=C==null?void 0:C(be,ye):ve===AC&&Pe&&(Ne=x==null?void 0:x(be,ye)),Pe&&Ne!==!1&&ie()}}}),X=kOe(G),ne=$e(X,1),le=ne[0],ce=function(ve){switch(ve){case kC:return Z(Z(Z({},kl,h),Wm,g),Vm,y);case NC:return Z(Z(Z({},kl,p),Wm,v),Vm,S);case AC:return Z(Z(Z({},kl,m),Wm,b),Vm,w);default:return{}}},oe=d.useMemo(function(){return ce(K)},[K]),se=FOe(K,!e,function(ye){if(ye===kl){var ve=oe[kl];return ve?ve(ee()):bne}if(he in oe){var be;W(((be=oe[he])===null||be===void 0?void 0:be.call(oe,ee(),null))||null)}return he===Vm&&K!==Id&&(le(ee()),u>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){G({deadline:!0})},u))),he===fne&&ie(),jOe}),fe=$e(se,2),te=fe[0],he=fe[1],pe=Sne(he);re.current=pe;var Oe=d.useRef(null);yne(function(){if(!(L.current&&Oe.current===t)){M(t);var ye=L.current;L.current=!0;var ve;!ye&&t&&s&&(ve=kC),ye&&t&&i&&(ve=NC),(ye&&!t&&c||!ye&&f&&!t&&c)&&(ve=AC);var be=ce(ve);ve&&(e||be[kl])?(j(ve),te()):j(Id),Oe.current=t}},[t]),d.useEffect(function(){(K===kC&&!s||K===NC&&!i||K===AC&&!c)&&j(Id)},[s,i,c]),d.useEffect(function(){return function(){L.current=!1,clearTimeout(Q.current)}},[]);var Me=d.useRef(!1);d.useEffect(function(){I&&(Me.current=!0),I!==void 0&&K===Id&&((Me.current||I)&&(_==null||_(I)),Me.current=!0)},[I,K]);var Se=V;return oe[kl]&&he===Wm&&(Se=z({transition:"none"},Se)),[K,he,Se,I??t]}function BOe(e){var t=e;Ht(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=d.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,h=o.motionName,p=o.leavedClassName,m=o.eventProps,g=d.useContext(une),v=g.motion,b=n(o,v),y=d.useRef(),S=d.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:Dy(S.current)}catch{return null}}var E=LOe(b,s,w,o),C=$e(E,4),x=C[0],_=C[1],P=C[2],O=C[3],I=d.useRef(O);O&&(I.current=!0);var M=d.useCallback(function(F){y.current=F,Nb(i,F)},[i]),T,D=z(z({},m),{},{visible:s});if(!f)T=null;else if(x===Id)O?T=f(z({},D),M):!c&&I.current&&p?T=f(z(z({},D),{},{className:p}),M):u||!c&&!p?T=f(z(z({},D),{},{style:{display:"none"}}),M):T=null;else{var A;_===kl?A="prepare":Sne(_)?A="active":_===Wm&&(A="start");var j=J9(h,"".concat(x,"-").concat(A));T=f(z(z({},D),{},{className:xe(J9(h,x),Z(Z({},j,j&&A),h,typeof h=="string")),style:P}),M)}if(d.isValidElement(T)&&tc(T)){var k=Af(T);k||(T=d.cloneElement(T,{ref:M}))}return d.createElement(OOe,{ref:S},T)});return r.displayName="CSSMotion",r}const Jo=BOe(vne);var T3="add",R3="keep",I3="remove",$T="removed";function zOe(e){var t;return e&&Ht(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function k3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(zOe)}function HOe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=k3(e),a=k3(t);i.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,h=u.status;return f!==c||h!==I3}),n.forEach(function(u){u.key===c&&(u.status=R3)})}),n}var UOe=["component","children","onVisibleChanged","onAllRemoved"],WOe=["status"],VOe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function KOe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jo,n=function(r){la(i,r);var o=Pa(i);function i(){var a;br(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var XOe=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 o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const eMe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(V2=t),n!==void 0&&(Cne=n),"holderRender"in e&&(xne=o),r&&(ZOe(r)?rOe(ex(),r):wne=r)},Ene=()=>({getPrefixCls:(e,t)=>t||(e?`${ex()}-${e}`:ex()),getIconPrefixCls:JOe,getRootPrefixCls:()=>V2||ex(),getTheme:()=>wne,holderRender:xne}),tMe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:h,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:S,componentDisabled:w,segmented:E,statistic:C,spin:x,calendar:_,carousel:P,cascader:O,collapse:I,typography:M,checkbox:T,descriptions:D,divider:A,drawer:j,skeleton:k,steps:F,image:V,layout:W,list:K,mentions:L,modal:Q,progress:ee,result:re,slider:ie,breadcrumb:G,menu:X,pagination:ne,input:le,textArea:ce,empty:oe,badge:se,radio:fe,rate:te,switch:he,transfer:pe,avatar:Oe,message:Me,tag:Se,table:ye,card:ve,tabs:be,timeline:Pe,timePicker:Ne,upload:U,notification:H,tree:q,colorPicker:me,datePicker:Ce,rangePicker:ue,flex:Le,wave:He,dropdown:ge,warning:De,tour:qe,tooltip:je,popover:Ke,popconfirm:Ue,floatButtonGroup:Ve,variant:St,inputNumber:et,treeSelect:st}=e,Ct=d.useCallback((pt,Rt)=>{const{prefixCls:_t}=e;if(Rt)return Rt;const vt=_t||b.getPrefixCls("");return pt?`${vt}-${pt}`:vt},[b.getPrefixCls,e.prefixCls]),dt=y||b.iconPrefixCls||m$,Lt=n||b.csp;wOe(dt,Lt);const wt=$Oe(S,b.theme,{prefixCls:Ct("")}),Et={csp:Lt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:c,space:u,splitter:f,virtual:h,popupMatchSelectWidth:m??p,popupOverflow:g,getPrefixCls:Ct,iconPrefixCls:dt,theme:wt,segmented:E,statistic:C,spin:x,calendar:_,carousel:P,cascader:O,collapse:I,typography:M,checkbox:T,descriptions:D,divider:A,drawer:j,skeleton:k,steps:F,image:V,input:le,textArea:ce,layout:W,list:K,mentions:L,modal:Q,progress:ee,result:re,slider:ie,breadcrumb:G,menu:X,pagination:ne,empty:oe,badge:se,radio:fe,rate:te,switch:he,transfer:pe,avatar:Oe,message:Me,tag:Se,table:ye,card:ve,tabs:be,timeline:Pe,timePicker:Ne,upload:U,notification:H,tree:q,colorPicker:me,datePicker:Ce,rangePicker:ue,flex:Le,wave:He,dropdown:ge,warning:De,tour:qe,tooltip:je,popover:Ke,popconfirm:Ue,floatButtonGroup:Ve,variant:St,inputNumber:et,treeSelect:st},Tt=Object.assign({},b);Object.keys(Et).forEach(pt=>{Et[pt]!==void 0&&(Tt[pt]=Et[pt])}),QOe.forEach(pt=>{const Rt=e[pt];Rt&&(Tt[pt]=Rt)}),typeof r<"u"&&(Tt.button=Object.assign({autoInsertSpace:r},Tt.button));const Be=td(()=>Tt,Tt,(pt,Rt)=>{const _t=Object.keys(pt),vt=Object.keys(Rt);return _t.length!==vt.length||_t.some(ft=>pt[ft]!==Rt[ft])}),We=d.useMemo(()=>({prefixCls:dt,csp:Lt}),[dt,Lt]);let Fe=d.createElement(d.Fragment,null,d.createElement(YOe,{dropdownMatchSelectWidth:p}),t);const Xe=d.useMemo(()=>{var pt,Rt,_t,vt;return Um(((pt=Os.Form)===null||pt===void 0?void 0:pt.defaultValidateMessages)||{},((_t=(Rt=Be.locale)===null||Rt===void 0?void 0:Rt.Form)===null||_t===void 0?void 0:_t.defaultValidateMessages)||{},((vt=Be.form)===null||vt===void 0?void 0:vt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Be,a==null?void 0:a.validateMessages]);Object.keys(Xe).length>0&&(Fe=d.createElement(Bte.Provider,{value:Xe},Fe)),s&&(Fe=d.createElement(APe,{locale:s,_ANT_MARK__:NPe},Fe)),(dt||Lt)&&(Fe=d.createElement(p$.Provider,{value:We},Fe)),l&&(Fe=d.createElement(oOe,{size:l},Fe)),Fe=d.createElement(GOe,null,Fe);const gt=d.useMemo(()=>{const pt=wt||{},{algorithm:Rt,token:_t,components:vt,cssVar:ft}=pt,It=XOe(pt,["algorithm","token","components","cssVar"]),bt=Rt&&(!Array.isArray(Rt)||Rt.length>0)?up(Rt):Xte,Wt={};Object.entries(vt||{}).forEach(Pt=>{let[Bt,xt]=Pt;const yt=Object.assign({},xt);"algorithm"in yt&&(yt.algorithm===!0?yt.theme=bt:(Array.isArray(yt.algorithm)||typeof yt.algorithm=="function")&&(yt.theme=up(yt.algorithm)),delete yt.algorithm),Wt[Bt]=yt});const at=Object.assign(Object.assign({},Hg),_t);return Object.assign(Object.assign({},It),{theme:bt,token:at,components:Wt,override:Object.assign({override:at},Wt),cssVar:ft})},[wt]);return S&&(Fe=d.createElement(yA.Provider,{value:gt},Fe)),Be.warning&&(Fe=d.createElement(RPe.Provider,{value:Be.warning},Fe)),w!==void 0&&(Fe=d.createElement(SA,{disabled:w},Fe)),d.createElement(Yt.Provider,{value:Be},Fe)},Mn=e=>{const t=d.useContext(Yt),n=d.useContext(gA);return d.createElement(tMe,Object.assign({parentContext:t,legacyLocale:n},e))};Mn.ConfigContext=Yt;Mn.SizeContext=fp;Mn.config=eMe;Mn.useConfig=iOe;Object.defineProperty(Mn,"SizeContext",{get:()=>fp});var nMe={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 _ne(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function rMe(e){return _ne(e)instanceof ShadowRoot}function K2(e){return rMe(e)?_ne(e):null}function oMe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function N3(e,t){yr(e,"[@ant-design/icons] ".concat(t))}function Z9(e){return Ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ht(e.icon)==="object"||typeof e.icon=="function")}function ez(){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[oMe(n)]=r}return t},{})}function A3(e,t,n){return n?de.createElement(e.tag,z(z({key:t},ez(e.attrs)),n),(e.children||[]).map(function(r,o){return A3(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):de.createElement(e.tag,z({key:t},ez(e.attrs)),(e.children||[]).map(function(r,o){return A3(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function $ne(e){return xf(e)[0]}function Pne(e){return e?Array.isArray(e)?e:[e]:[]}var iMe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},aMe=` + `,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 W9=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 o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=W9(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=bA(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=W9(c,["theme"]);let h=f;u&&(h=ane(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};function Ho(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=de.useContext(gA),i=`${td}-${t||""}`,a=n||Yte,[s,l,c]=dA(a,[Hg,e],{salt:i,override:r,getComputedToken:ane,formatToken:bA,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ine,ignore:gOe,preserve:vOe}});return[a,c,t?l:"",s,o]}const wa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Qn=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}},Fp=()=>({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"}}),nc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),yOe=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"}}}),bOe=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},rc=(e,t)=>({outline:`${_e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ka=(e,t)=>({"&:focus-visible":Object.assign({},rc(e,t))}),sne=e=>({[`.${e}`]:Object.assign(Object.assign({},Fp()),{[`.${e} .${e}-icon`]:{display:"block"}})}),SOe=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"},Ka(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Kn,genComponentStyleHook:lne,genSubStyleComponent:$v}=one({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Yt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Ho();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=d.useContext(Yt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":yOe(e)},sne((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:m$)]},getCommonStyle:bOe,getCompUnitless:()=>ine});function y$(e,t){return pp.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const COe=(e,t)=>{const[n,r]=Ho();return Bb({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[sne(e)])},wOe=Object.assign({},S1),{useId:V9}=wOe,xOe=()=>"",EOe=typeof V9>"u"?xOe:V9;function _Oe(e,t,n){var r;nu();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Ub),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Ub.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=EOe();return ed(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.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,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!dl(c,f,!0)}))}var $Oe=["children"],cne=d.createContext({});function une(e){var t=e.children,n=At(e,$Oe);return d.createElement(cne.Provider,{value:n},t)}var POe=function(e){la(n,e);var t=Pa(n);function n(){return br(this,n),t.apply(this,arguments)}return Sr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function OOe(e){var t=d.useReducer(function(s){return s+1},0),n=$e(t,2),r=n[1],o=d.useRef(e),i=An(function(){return o.current}),a=An(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Id="none",NC="appear",AC="enter",DC="leave",K9="none",kl="prepare",Wm="start",Vm="active",SA="end",dne="prepared";function q9(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 MOe(e,t){var n={animationend:q9("Animation","AnimationEnd"),transitionend:q9("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var TOe=MOe(Ca(),typeof window<"u"?window:{}),fne={};if(Ca()){var ROe=document.createElement("div");fne=ROe.style}var jC={};function hne(e){if(jC[e])return jC[e];var t=TOe[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=zn(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var NOe=[kl,Wm,Vm,SA],AOe=[kl,dne],yne=!1,DOe=!0;function bne(e){return e===Vm||e===SA}const jOe=function(e,t,n){var r=hp(K9),o=$e(r,2),i=o[0],a=o[1],s=kOe(),l=$e(s,2),c=l[0],u=l[1];function f(){a(kl,!0)}var h=t?AOe:NOe;return vne(function(){if(i!==K9&&i!==SA){var p=h.indexOf(i),m=h[p+1],g=n(i);g===yne?a(m,!0):m&&c(function(v){function b(){v.isCanceled()||a(m,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,i]),d.useEffect(function(){return function(){u()}},[]),[f,i]};function FOe(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,p=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,w=r.onLeaveActive,E=r.onAppearEnd,C=r.onEnterEnd,x=r.onLeaveEnd,_=r.onVisibleChanged,P=hp(),O=$e(P,2),I=O[0],M=O[1],T=OOe(Id),D=$e(T,2),A=D[0],j=D[1],k=hp(null),F=$e(k,2),V=F[0],W=F[1],K=A(),L=d.useRef(!1),Q=d.useRef(null);function ee(){return n()}var re=d.useRef(!1);function ie(){j(Id),W(null,!0)}var G=An(function(ye){var ve=A();if(ve!==Id){var be=ee();if(!(ye&&!ye.deadline&&ye.target!==be)){var Pe=re.current,Ne;ve===NC&&Pe?Ne=E==null?void 0:E(be,ye):ve===AC&&Pe?Ne=C==null?void 0:C(be,ye):ve===DC&&Pe&&(Ne=x==null?void 0:x(be,ye)),Pe&&Ne!==!1&&ie()}}}),X=IOe(G),ne=$e(X,1),le=ne[0],ce=function(ve){switch(ve){case NC:return Z(Z(Z({},kl,h),Wm,g),Vm,y);case AC:return Z(Z(Z({},kl,p),Wm,v),Vm,S);case DC:return Z(Z(Z({},kl,m),Wm,b),Vm,w);default:return{}}},oe=d.useMemo(function(){return ce(K)},[K]),se=jOe(K,!e,function(ye){if(ye===kl){var ve=oe[kl];return ve?ve(ee()):yne}if(he in oe){var be;W(((be=oe[he])===null||be===void 0?void 0:be.call(oe,ee(),null))||null)}return he===Vm&&K!==Id&&(le(ee()),u>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){G({deadline:!0})},u))),he===dne&&ie(),DOe}),fe=$e(se,2),te=fe[0],he=fe[1],pe=bne(he);re.current=pe;var Oe=d.useRef(null);vne(function(){if(!(L.current&&Oe.current===t)){M(t);var ye=L.current;L.current=!0;var ve;!ye&&t&&s&&(ve=NC),ye&&t&&i&&(ve=AC),(ye&&!t&&c||!ye&&f&&!t&&c)&&(ve=DC);var be=ce(ve);ve&&(e||be[kl])?(j(ve),te()):j(Id),Oe.current=t}},[t]),d.useEffect(function(){(K===NC&&!s||K===AC&&!i||K===DC&&!c)&&j(Id)},[s,i,c]),d.useEffect(function(){return function(){L.current=!1,clearTimeout(Q.current)}},[]);var Me=d.useRef(!1);d.useEffect(function(){I&&(Me.current=!0),I!==void 0&&K===Id&&((Me.current||I)&&(_==null||_(I)),Me.current=!0)},[I,K]);var Se=V;return oe[kl]&&he===Wm&&(Se=z({transition:"none"},Se)),[K,he,Se,I??t]}function LOe(e){var t=e;Ht(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=d.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,h=o.motionName,p=o.leavedClassName,m=o.eventProps,g=d.useContext(cne),v=g.motion,b=n(o,v),y=d.useRef(),S=d.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:Dy(S.current)}catch{return null}}var E=FOe(b,s,w,o),C=$e(E,4),x=C[0],_=C[1],P=C[2],O=C[3],I=d.useRef(O);O&&(I.current=!0);var M=d.useCallback(function(F){y.current=F,Nb(i,F)},[i]),T,D=z(z({},m),{},{visible:s});if(!f)T=null;else if(x===Id)O?T=f(z({},D),M):!c&&I.current&&p?T=f(z(z({},D),{},{className:p}),M):u||!c&&!p?T=f(z(z({},D),{},{style:{display:"none"}}),M):T=null;else{var A;_===kl?A="prepare":bne(_)?A="active":_===Wm&&(A="start");var j=X9(h,"".concat(x,"-").concat(A));T=f(z(z({},D),{},{className:xe(X9(h,x),Z(Z({},j,j&&A),h,typeof h=="string")),style:P}),M)}if(d.isValidElement(T)&&tc(T)){var k=Af(T);k||(T=d.cloneElement(T,{ref:M}))}return d.createElement(POe,{ref:S},T)});return r.displayName="CSSMotion",r}const Jo=LOe(gne);var M3="add",T3="keep",R3="remove",$T="removed";function BOe(e){var t;return e&&Ht(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function I3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(BOe)}function zOe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=I3(e),a=I3(t);i.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,h=u.status;return f!==c||h!==R3}),n.forEach(function(u){u.key===c&&(u.status=T3)})}),n}var HOe=["component","children","onVisibleChanged","onAllRemoved"],UOe=["status"],WOe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function VOe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jo,n=function(r){la(i,r);var o=Pa(i);function i(){var a;br(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var YOe=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 o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const ZOe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(K2=t),n!==void 0&&(Sne=n),"holderRender"in e&&(wne=o),r&&(JOe(r)?nOe(tx(),r):Cne=r)},xne=()=>({getPrefixCls:(e,t)=>t||(e?`${tx()}-${e}`:tx()),getIconPrefixCls:QOe,getRootPrefixCls:()=>K2||tx(),getTheme:()=>Cne,holderRender:wne}),eMe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:h,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:S,componentDisabled:w,segmented:E,statistic:C,spin:x,calendar:_,carousel:P,cascader:O,collapse:I,typography:M,checkbox:T,descriptions:D,divider:A,drawer:j,skeleton:k,steps:F,image:V,layout:W,list:K,mentions:L,modal:Q,progress:ee,result:re,slider:ie,breadcrumb:G,menu:X,pagination:ne,input:le,textArea:ce,empty:oe,badge:se,radio:fe,rate:te,switch:he,transfer:pe,avatar:Oe,message:Me,tag:Se,table:ye,card:ve,tabs:be,timeline:Pe,timePicker:Ne,upload:U,notification:H,tree:q,colorPicker:me,datePicker:Ce,rangePicker:ue,flex:Le,wave:He,dropdown:ge,warning:De,tour:qe,tooltip:Fe,popover:Ke,popconfirm:Ue,floatButtonGroup:Ve,variant:Tt,inputNumber:et,treeSelect:st}=e,yt=d.useCallback((vt,Mt)=>{const{prefixCls:Et}=e;if(Mt)return Mt;const ft=Et||b.getPrefixCls("");return vt?`${ft}-${vt}`:ft},[b.getPrefixCls,e.prefixCls]),gt=y||b.iconPrefixCls||m$,Lt=n||b.csp;COe(gt,Lt);const St=_Oe(S,b.theme,{prefixCls:yt("")}),wt={csp:Lt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:c,space:u,splitter:f,virtual:h,popupMatchSelectWidth:m??p,popupOverflow:g,getPrefixCls:yt,iconPrefixCls:gt,theme:St,segmented:E,statistic:C,spin:x,calendar:_,carousel:P,cascader:O,collapse:I,typography:M,checkbox:T,descriptions:D,divider:A,drawer:j,skeleton:k,steps:F,image:V,input:le,textArea:ce,layout:W,list:K,mentions:L,modal:Q,progress:ee,result:re,slider:ie,breadcrumb:G,menu:X,pagination:ne,empty:oe,badge:se,radio:fe,rate:te,switch:he,transfer:pe,avatar:Oe,message:Me,tag:Se,table:ye,card:ve,tabs:be,timeline:Pe,timePicker:Ne,upload:U,notification:H,tree:q,colorPicker:me,datePicker:Ce,rangePicker:ue,flex:Le,wave:He,dropdown:ge,warning:De,tour:qe,tooltip:Fe,popover:Ke,popconfirm:Ue,floatButtonGroup:Ve,variant:Tt,inputNumber:et,treeSelect:st},Nt=Object.assign({},b);Object.keys(wt).forEach(vt=>{wt[vt]!==void 0&&(Nt[vt]=wt[vt])}),XOe.forEach(vt=>{const Mt=e[vt];Mt&&(Nt[vt]=Mt)}),typeof r<"u"&&(Nt.button=Object.assign({autoInsertSpace:r},Nt.button));const Be=ed(()=>Nt,Nt,(vt,Mt)=>{const Et=Object.keys(vt),ft=Object.keys(Mt);return Et.length!==ft.length||Et.some(dt=>vt[dt]!==Mt[dt])}),We=d.useMemo(()=>({prefixCls:gt,csp:Lt}),[gt,Lt]);let je=d.createElement(d.Fragment,null,d.createElement(GOe,{dropdownMatchSelectWidth:p}),t);const Xe=d.useMemo(()=>{var vt,Mt,Et,ft;return Um(((vt=Os.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((Et=(Mt=Be.locale)===null||Mt===void 0?void 0:Mt.Form)===null||Et===void 0?void 0:Et.defaultValidateMessages)||{},((ft=Be.form)===null||ft===void 0?void 0:ft.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Be,a==null?void 0:a.validateMessages]);Object.keys(Xe).length>0&&(je=d.createElement(Lte.Provider,{value:Xe},je)),s&&(je=d.createElement(NPe,{locale:s,_ANT_MARK__:kPe},je)),(gt||Lt)&&(je=d.createElement(p$.Provider,{value:We},je)),l&&(je=d.createElement(rOe,{size:l},je)),je=d.createElement(qOe,null,je);const pt=d.useMemo(()=>{const vt=St||{},{algorithm:Mt,token:Et,components:ft,cssVar:dt}=vt,Rt=YOe(vt,["algorithm","token","components","cssVar"]),Ct=Mt&&(!Array.isArray(Mt)||Mt.length>0)?up(Mt):Yte,Wt={};Object.entries(ft||{}).forEach($t=>{let[Bt,xt]=$t;const bt=Object.assign({},xt);"algorithm"in bt&&(bt.algorithm===!0?bt.theme=Ct:(Array.isArray(bt.algorithm)||typeof bt.algorithm=="function")&&(bt.theme=up(bt.algorithm)),delete bt.algorithm),Wt[Bt]=bt});const at=Object.assign(Object.assign({},Hg),Et);return Object.assign(Object.assign({},Rt),{theme:Ct,token:at,components:Wt,override:Object.assign({override:at},Wt),cssVar:dt})},[St]);return S&&(je=d.createElement(gA.Provider,{value:pt},je)),Be.warning&&(je=d.createElement(TPe.Provider,{value:Be.warning},je)),w!==void 0&&(je=d.createElement(yA,{disabled:w},je)),d.createElement(Yt.Provider,{value:Be},je)},Mn=e=>{const t=d.useContext(Yt),n=d.useContext(pA);return d.createElement(eMe,Object.assign({parentContext:t,legacyLocale:n},e))};Mn.ConfigContext=Yt;Mn.SizeContext=fp;Mn.config=ZOe;Mn.useConfig=oOe;Object.defineProperty(Mn,"SizeContext",{get:()=>fp});var tMe={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 Ene(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function nMe(e){return Ene(e)instanceof ShadowRoot}function q2(e){return nMe(e)?Ene(e):null}function rMe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function k3(e,t){yr(e,"[@ant-design/icons] ".concat(t))}function Q9(e){return Ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ht(e.icon)==="object"||typeof e.icon=="function")}function J9(){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[rMe(n)]=r}return t},{})}function N3(e,t,n){return n?de.createElement(e.tag,z(z({key:t},J9(e.attrs)),n),(e.children||[]).map(function(r,o){return N3(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):de.createElement(e.tag,z({key:t},J9(e.attrs)),(e.children||[]).map(function(r,o){return N3(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function _ne(e){return xf(e)[0]}function $ne(e){return e?Array.isArray(e)?e:[e]:[]}var oMe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},iMe=` .anticon { display: inline-flex; align-items: center; @@ -189,9 +189,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,One=function(t){var n=d.useContext(p$),r=n.csp,o=n.prefixCls,i=n.layer,a=aMe;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { +`,Pne=function(t){var n=d.useContext(p$),r=n.csp,o=n.prefixCls,i=n.layer,a=iMe;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` -}`)),d.useEffect(function(){var s=t.current,l=K2(s);v$(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},sMe=["icon","className","onClick","style","primaryColor","secondaryColor"],By={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function lMe(e){var t=e.primaryColor,n=e.secondaryColor;By.primaryColor=t,By.secondaryColor=n||$ne(t),By.calculated=!!n}function cMe(){return z({},By)}var Pv=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=At(t,sMe),c=d.useRef(),u=By;if(a&&(u={primaryColor:a,secondaryColor:s||$ne(a)}),One(c),N3(Z9(n),"icon should be icon definiton, but got ".concat(n)),!Z9(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),A3(f.icon,"svg-".concat(f.name),z(z({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Pv.displayName="IconReact";Pv.getTwoToneColors=cMe;Pv.setTwoToneColors=lMe;function Mne(e){var t=Pne(e),n=$e(t,2),r=n[0],o=n[1];return Pv.setTwoToneColors({primaryColor:r,secondaryColor:o})}function uMe(){var e=Pv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var dMe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Mne(dp.primary);var Nn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=At(e,dMe),u=d.useContext(p$),f=u.prefixCls,h=f===void 0?"anticon":f,p=u.rootClassName,m=xe(p,h,Z(Z({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Pne(l),y=$e(b,2),S=y[0],w=y[1];return d.createElement("span",Ge({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),d.createElement(Pv,{icon:r,primaryColor:S,secondaryColor:w,style:v}))});Nn.displayName="AntdIcon";Nn.getTwoToneColor=uMe;Nn.setTwoToneColor=Mne;var fMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:nMe}))},Lp=d.forwardRef(fMe),hMe={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"},pMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:hMe}))},ou=d.forwardRef(pMe),mMe={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"},gMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:mMe}))},iu=d.forwardRef(gMe),vMe={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"},yMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:vMe}))},Df=d.forwardRef(yMe),bMe={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"},SMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:bMe}))},S$=d.forwardRef(SMe),CMe=`accept acceptCharset accessKey action allowFullScreen allowTransparency +}`)),d.useEffect(function(){var s=t.current,l=q2(s);v$(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},aMe=["icon","className","onClick","style","primaryColor","secondaryColor"],By={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function sMe(e){var t=e.primaryColor,n=e.secondaryColor;By.primaryColor=t,By.secondaryColor=n||_ne(t),By.calculated=!!n}function lMe(){return z({},By)}var Pv=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=At(t,aMe),c=d.useRef(),u=By;if(a&&(u={primaryColor:a,secondaryColor:s||_ne(a)}),Pne(c),k3(Q9(n),"icon should be icon definiton, but got ".concat(n)),!Q9(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),N3(f.icon,"svg-".concat(f.name),z(z({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Pv.displayName="IconReact";Pv.getTwoToneColors=lMe;Pv.setTwoToneColors=sMe;function One(e){var t=$ne(e),n=$e(t,2),r=n[0],o=n[1];return Pv.setTwoToneColors({primaryColor:r,secondaryColor:o})}function cMe(){var e=Pv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var uMe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];One(dp.primary);var Nn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=At(e,uMe),u=d.useContext(p$),f=u.prefixCls,h=f===void 0?"anticon":f,p=u.rootClassName,m=xe(p,h,Z(Z({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=$ne(l),y=$e(b,2),S=y[0],w=y[1];return d.createElement("span",Ge({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),d.createElement(Pv,{icon:r,primaryColor:S,secondaryColor:w,style:v}))});Nn.displayName="AntdIcon";Nn.getTwoToneColor=cMe;Nn.setTwoToneColor=One;var dMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:tMe}))},Lp=d.forwardRef(dMe),fMe={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"},hMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:fMe}))},ru=d.forwardRef(hMe),pMe={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"},mMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:pMe}))},ou=d.forwardRef(mMe),gMe={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"},vMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:gMe}))},Df=d.forwardRef(vMe),yMe={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"},bMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:yMe}))},S$=d.forwardRef(bMe),SMe=`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 @@ -202,69 +202,69 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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`,wMe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,CMe=`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`,xMe="".concat(CMe," ").concat(wMe).split(/[\s\n]+/),EMe="aria-",_Me="data-";function tz(e,t){return e.indexOf(t)===0}function Jr(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=z({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||tz(o,EMe))||n.data&&tz(o,_Me)||n.attr&&xMe.includes(o))&&(r[o]=e[o])}),r}function Tne(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const xA=(e,t,n)=>de.isValidElement(e)?de.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Zo(e,t){return xA(e,e,t)}const jC=(e,t,n,r,o)=>({background:e,border:`${_e(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),$Me=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},Qn(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:i,lineHeight:s},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,wMe="".concat(SMe," ").concat(CMe).split(/[\s\n]+/),xMe="aria-",EMe="data-";function Z9(e,t){return e.indexOf(t)===0}function Jr(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=z({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Z9(o,xMe))||n.data&&Z9(o,EMe)||n.attr&&wMe.includes(o))&&(r[o]=e[o])}),r}function Mne(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const CA=(e,t,n)=>de.isValidElement(e)?de.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Zo(e,t){return CA(e,e,t)}const FC=(e,t,n,r,o)=>({background:e,border:`${_e(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),_Me=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},Qn(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:i,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:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},PMe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:h,colorInfoBg:p}=e;return{[t]:{"&-success":jC(o,r,n,e,t),"&-info":jC(p,h,f,e,t),"&-warning":jC(s,a,i,e,t),"&-error":Object.assign(Object.assign({},jC(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},OMe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:_e(i),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}}}}},MMe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),TMe=Kn("Alert",e=>[$Me(e),PMe(e),OMe(e)],MMe);var nz=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:r}=e,o=RMe[r]||null;return t?xA(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:xe(`${n}-icon`,t.props.className)})):d.createElement(o,{className:`${n}-icon`})},kMe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=r===!0||r===void 0?d.createElement(iu,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},Rne=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:h,showIcon:p,closable:m,closeText:g,closeIcon:v,action:b,id:y}=e,S=nz(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,E]=d.useState(!1),C=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:C.current}));const{getPrefixCls:x,direction:_,alert:P}=d.useContext(Yt),O=x("alert",r),[I,M,T]=TMe(O),D=L=>{var Q;E(!0),(Q=e.onClose)===null||Q===void 0||Q.call(e,L)},A=d.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),j=d.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!(P!=null&&P.closable),[g,v,m,P==null?void 0:P.closable]),k=i&&p===void 0?!0:p,F=xe(O,`${O}-${A}`,{[`${O}-with-description`]:!!n,[`${O}-no-icon`]:!k,[`${O}-banner`]:!!i,[`${O}-rtl`]:_==="rtl"},P==null?void 0:P.className,a,s,T,M),V=Jr(S,{aria:!0,data:!0}),W=d.useMemo(()=>{var L,Q;return typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof(P==null?void 0:P.closable)=="object"&&(!((L=P==null?void 0:P.closable)===null||L===void 0)&&L.closeIcon)?(Q=P==null?void 0:P.closable)===null||Q===void 0?void 0:Q.closeIcon:P==null?void 0:P.closeIcon)},[v,m,g,P==null?void 0:P.closeIcon]),K=d.useMemo(()=>{const L=m??(P==null?void 0:P.closable);return typeof L=="object"?nz(L,["closeIcon"]):{}},[m,P==null?void 0:P.closable]);return I(d.createElement(Jo,{visible:!w,motionName:`${O}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:L=>({maxHeight:L.offsetHeight}),onLeaveEnd:h},(L,Q)=>{let{className:ee,style:re}=L;return d.createElement("div",Object.assign({id:y,ref:Si(C,Q),"data-show":!w,className:xe(F,ee),style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),l),re),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},V),k?d.createElement(IMe,{description:n,icon:e.icon,prefixCls:O,type:A}):null,d.createElement("div",{className:`${O}-content`},o?d.createElement("div",{className:`${O}-message`},o):null,n?d.createElement("div",{className:`${O}-description`},n):null),b?d.createElement("div",{className:`${O}-action`},b):null,d.createElement(kMe,{isClosable:j,prefixCls:O,closeIcon:W,handleClose:D,ariaProps:K}))}))});function NMe(e,t,n){return t=cp(t),ste(e,c$()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}let AMe=function(e){function t(){var n;return br(this,t),n=NMe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return la(t,e),Sr(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,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,f=typeof o>"u"?c:o;return s?d.createElement(Rne,{id:i,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):a}}])}(d.Component);const Ine=Rne;Ine.ErrorBoundary=AMe;const rz=e=>typeof e=="object"&&e!=null&&e.nodeType===1,oz=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",PT=(e,t)=>{if(e.clientHeight{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,DMe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},iz=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:j=>j!==c;if(!rz(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let m=e;for(;rz(m)&&f(m);){if(m=DMe(m),m===h){p.push(m);break}m!=null&&m===document.body&&PT(m)&&!PT(document.documentElement)||m!=null&&PT(m,u)&&p.push(m)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:S,width:w,top:E,right:C,bottom:x,left:_}=e.getBoundingClientRect(),{top:P,right:O,bottom:I,left:M}=(j=>{const k=window.getComputedStyle(j);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let T=s==="start"||s==="nearest"?E-P:s==="end"?x+I:E+S/2-P+I,D=l==="center"?_+w/2-M+O:l==="end"?C+O:_-M;const A=[];for(let j=0;j=0&&_>=0&&x<=v&&C<=g&&E>=W&&x<=L&&_>=Q&&C<=K)return A;const ee=getComputedStyle(k),re=parseInt(ee.borderLeftWidth,10),ie=parseInt(ee.borderTopWidth,10),G=parseInt(ee.borderRightWidth,10),X=parseInt(ee.borderBottomWidth,10);let ne=0,le=0;const ce="offsetWidth"in k?k.offsetWidth-k.clientWidth-re-G:0,oe="offsetHeight"in k?k.offsetHeight-k.clientHeight-ie-X:0,se="offsetWidth"in k?k.offsetWidth===0?0:V/k.offsetWidth:0,fe="offsetHeight"in k?k.offsetHeight===0?0:F/k.offsetHeight:0;if(h===k)ne=s==="start"?T:s==="end"?T-v:s==="nearest"?FC(y,y+v,v,ie,X,y+T,y+T+S,S):T-v/2,le=l==="start"?D:l==="center"?D-g/2:l==="end"?D-g:FC(b,b+g,g,re,G,b+D,b+D+w,w),ne=Math.max(0,ne+y),le=Math.max(0,le+b);else{ne=s==="start"?T-W-ie:s==="end"?T-L+X+oe:s==="nearest"?FC(W,L,F,ie,X+oe,T,T+S,S):T-(W+F/2)+oe/2,le=l==="start"?D-Q-re:l==="center"?D-(Q+V/2)+ce/2:l==="end"?D-K+G+ce:FC(Q,K,V,re,G+ce,D,D+w,w);const{scrollLeft:te,scrollTop:he}=k;ne=fe===0?0:Math.max(0,Math.min(he+ne/fe,k.scrollHeight-F/fe+oe)),le=se===0?0:Math.max(0,Math.min(te+le/se,k.scrollWidth-V/se+ce)),T+=he-ne,D+=te-le}A.push({el:k,top:ne,left:le})}return A},jMe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function FMe(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(iz(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of iz(e,jMe(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}function D3(e){return e!=null&&e===e.window}const LMe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return D3(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!D3(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 BMe(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function zMe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=LMe(i),s=Date.now(),l=()=>{const u=Date.now()-s,f=BMe(u>o?o:u,a,e,o);D3(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,u{const[,,,,t]=Ho();return t?`${e}-css-var`:""};var ut={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>=ut.F1&&n<=ut.F12)return!1;switch(n){case ut.ALT:case ut.CAPS_LOCK:case ut.CONTEXT_MENU:case ut.CTRL:case ut.DOWN:case ut.END:case ut.ESC:case ut.HOME:case ut.INSERT:case ut.LEFT:case ut.MAC_FF_META:case ut.META:case ut.NUMLOCK:case ut.NUM_CENTER:case ut.PAGE_DOWN:case ut.PAGE_UP:case ut.PAUSE:case ut.PRINT_SCREEN:case ut.RIGHT:case ut.SHIFT:case ut.UP:case ut.WIN_KEY:case ut.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ut.ZERO&&t<=ut.NINE||t>=ut.NUM_ZERO&&t<=ut.NUM_MULTIPLY||t>=ut.A&&t<=ut.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ut.SPACE:case ut.QUESTION_MARK:case ut.NUM_PLUS:case ut.NUM_MINUS:case ut.NUM_PERIOD:case ut.NUM_DIVISION:case ut.SEMICOLON:case ut.DASH:case ut.EQUALS:case ut.COMMA:case ut.PERIOD:case ut.SLASH:case ut.APOSTROPHE:case ut.SINGLE_QUOTE:case ut.OPEN_SQUARE_BRACKET:case ut.BACKSLASH:case ut.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},kne=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,h=e.closable,p=e.closeIcon,m=p===void 0?"x":p,g=e.props,v=e.onClick,b=e.onNoticeClose,y=e.times,S=e.hovering,w=d.useState(!1),E=$e(w,2),C=E[0],x=E[1],_=d.useState(0),P=$e(_,2),O=P[0],I=P[1],M=d.useState(0),T=$e(M,2),D=T[0],A=T[1],j=S||C,k=a>0&&s,F=function(){b(u)},V=function(re){(re.key==="Enter"||re.code==="Enter"||re.keyCode===ut.ENTER)&&F()};d.useEffect(function(){if(!j&&a>0){var ee=Date.now()-D,re=setTimeout(function(){F()},a*1e3-D);return function(){c&&clearTimeout(re),A(Date.now()-ee)}}},[a,j,y]),d.useEffect(function(){if(!j&&k&&(c||D===0)){var ee=performance.now(),re,ie=function G(){cancelAnimationFrame(re),re=requestAnimationFrame(function(X){var ne=X+D-ee,le=Math.min(ne/(a*1e3),1);I(le*100),le<1&&G()})};return ie(),function(){c&&cancelAnimationFrame(re)}}},[a,D,j,k,y]);var W=d.useMemo(function(){return Ht(h)==="object"&&h!==null?h:h?{closeIcon:m}:{}},[h,m]),K=Jr(W,!0),L=100-(!O||O<0?0:O>100?100:O),Q="".concat(n,"-notice");return d.createElement("div",Ge({},g,{ref:t,className:xe(Q,o,Z({},"".concat(Q,"-closable"),h)),style:r,onMouseEnter:function(re){var ie;x(!0),g==null||(ie=g.onMouseEnter)===null||ie===void 0||ie.call(g,re)},onMouseLeave:function(re){var ie;x(!1),g==null||(ie=g.onMouseLeave)===null||ie===void 0||ie.call(g,re)},onClick:v}),d.createElement("div",{className:"".concat(Q,"-content")},f),h&&d.createElement("a",Ge({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:V,"aria-label":"Close"},K,{onClick:function(re){re.preventDefault(),re.stopPropagation(),F()}}),W.closeIcon),k&&d.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:L},L+"%"))}),Nne=de.createContext({}),Ane=function(t){var n=t.children,r=t.classNames;return de.createElement(Nne.Provider,{value:{classNames:r}},n)},az=8,sz=3,lz=16,HMe=function(t){var n={offset:az,threshold:sz,gap:lz};if(t&&Ht(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:az,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:sz,n.gap=(i=t.gap)!==null&&i!==void 0?i:lz}return[!!t,n]},UMe=["className","style","classNames","styles"],WMe=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(Nne),h=f.classNames,p=d.useRef({}),m=d.useState(null),g=$e(m,2),v=g[0],b=g[1],y=d.useState([]),S=$e(y,2),w=S[0],E=S[1],C=n.map(function(j){return{config:j,key:String(j.key)}}),x=HMe(u),_=$e(x,2),P=_[0],O=_[1],I=O.offset,M=O.threshold,T=O.gap,D=P&&(w.length>0||C.length<=M),A=typeof s=="function"?s(r):s;return d.useEffect(function(){P&&w.length>1&&E(function(j){return j.filter(function(k){return C.some(function(F){var V=F.key;return k===V})})})},[w,C,P]),d.useEffect(function(){var j;if(P&&p.current[(j=C[C.length-1])===null||j===void 0?void 0:j.key]){var k;b(p.current[(k=C[C.length-1])===null||k===void 0?void 0:k.key])}},[C,P]),de.createElement(b$,Ge({key:r,className:xe(o,"".concat(o,"-").concat(r),h==null?void 0:h.list,i,Z(Z({},"".concat(o,"-stack"),!!P),"".concat(o,"-stack-expanded"),D)),style:a,keys:C,motionAppear:!0},A,{onAllRemoved:function(){l(r)}}),function(j,k){var F=j.config,V=j.className,W=j.style,K=j.index,L=F,Q=L.key,ee=L.times,re=String(Q),ie=F,G=ie.className,X=ie.style,ne=ie.classNames,le=ie.styles,ce=At(ie,UMe),oe=C.findIndex(function(Pe){return Pe.key===re}),se={};if(P){var fe=C.length-1-(oe>-1?oe:K-1),te=r==="top"||r==="bottom"?"-50%":"0";if(fe>0){var he,pe,Oe;se.height=D?(he=p.current[re])===null||he===void 0?void 0:he.offsetHeight:v==null?void 0:v.offsetHeight;for(var Me=0,Se=0;Se-1?p.current[re]=Ne:delete p.current[re]},prefixCls:o,classNames:ne,styles:le,className:xe(G,h==null?void 0:h.notice),style:X,times:ee,key:Q,eventKey:Q,onNoticeClose:c,hovering:P&&w.length>0})))})},VMe=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,h=d.useState([]),p=$e(h,2),m=p[0],g=p[1],v=function(P){var O,I=m.find(function(M){return M.key===P});I==null||(O=I.onClose)===null||O===void 0||O.call(I),g(function(M){return M.filter(function(T){return T.key!==P})})};d.useImperativeHandle(t,function(){return{open:function(P){g(function(O){var I=Ze(O),M=I.findIndex(function(A){return A.key===P.key}),T=z({},P);if(M>=0){var D;T.times=(((D=O[M])===null||D===void 0?void 0:D.times)||0)+1,I[M]=T}else T.times=0,I.push(T);return a>0&&I.length>a&&(I=I.slice(-a)),I})},close:function(P){v(P)},destroy:function(){g([])}}});var b=d.useState({}),y=$e(b,2),S=y[0],w=y[1];d.useEffect(function(){var _={};m.forEach(function(P){var O=P.placement,I=O===void 0?"topRight":O;I&&(_[I]=_[I]||[],_[I].push(P))}),Object.keys(S).forEach(function(P){_[P]=_[P]||[]}),w(_)},[m]);var E=function(P){w(function(O){var I=z({},O),M=I[P]||[];return M.length||delete I[P],I})},C=d.useRef(!1);if(d.useEffect(function(){Object.keys(S).length>0?C.current=!0:C.current&&(c==null||c(),C.current=!1)},[S]),!o)return null;var x=Object.keys(S);return hi.createPortal(d.createElement(d.Fragment,null,x.map(function(_){var P=S[_],O=d.createElement(WMe,{key:_,configList:P,placement:_,prefixCls:r,className:s==null?void 0:s(_),style:l==null?void 0:l(_),motion:i,onNoticeClose:v,onAllNoticeRemoved:E,stack:u});return f?f(O,{prefixCls:r,key:_}):O})),o)}),KMe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],qMe=function(){return document.body},cz=0;function GMe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?qMe:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=At(e,KMe),h=d.useState(),p=$e(h,2),m=p[0],g=p[1],v=d.useRef(),b=d.createElement(VMe,{container:m,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),S=$e(y,2),w=S[0],E=S[1],C=d.useMemo(function(){return{open:function(_){var P=GMe(f,_);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(cz),cz+=1),E(function(O){return[].concat(Ze(O),[{type:"open",config:P}])})},close:function(_){E(function(P){return[].concat(Ze(P),[{type:"close",key:_}])})},destroy:function(){E(function(_){return[].concat(Ze(_),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){v.current&&w.length&&(w.forEach(function(x){switch(x.type){case"open":v.current.open(x.config);break;case"close":v.current.close(x.key);break;case"destroy":v.current.destroy();break}}),E(function(x){return x.filter(function(_){return!w.includes(_)})}))},[w]),[C,b]}var YMe={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"},XMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:YMe}))},Gc=d.forwardRef(XMe);const L1=de.createContext(void 0),kd=100,QMe=10,EA=kd*QMe,jne={Modal:kd,Drawer:kd,Popover:kd,Popconfirm:kd,Tooltip:kd,Tour:kd,FloatButton:kd},JMe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function ZMe(e){return e in jne}const vl=(e,t)=>{const[,n]=Ho(),r=de.useContext(L1),o=ZMe(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+jne[e]:a+=JMe[e],i=[r===void 0?t:a,a]}return i},eTe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:h,paddingXS:p,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:b}=e,y=`${t}-notice`,S=new Gn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new Gn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:v,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, + 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:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},$Me=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:h,colorInfoBg:p}=e;return{[t]:{"&-success":FC(o,r,n,e,t),"&-info":FC(p,h,f,e,t),"&-warning":FC(s,a,i,e,t),"&-error":Object.assign(Object.assign({},FC(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},PMe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:_e(i),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}}}}},OMe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),MMe=Kn("Alert",e=>[_Me(e),$Me(e),PMe(e)],OMe);var ez=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:r}=e,o=TMe[r]||null;return t?CA(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:xe(`${n}-icon`,t.props.className)})):d.createElement(o,{className:`${n}-icon`})},IMe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=r===!0||r===void 0?d.createElement(ou,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},Tne=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:h,showIcon:p,closable:m,closeText:g,closeIcon:v,action:b,id:y}=e,S=ez(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,E]=d.useState(!1),C=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:C.current}));const{getPrefixCls:x,direction:_,alert:P}=d.useContext(Yt),O=x("alert",r),[I,M,T]=MMe(O),D=L=>{var Q;E(!0),(Q=e.onClose)===null||Q===void 0||Q.call(e,L)},A=d.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),j=d.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!(P!=null&&P.closable),[g,v,m,P==null?void 0:P.closable]),k=i&&p===void 0?!0:p,F=xe(O,`${O}-${A}`,{[`${O}-with-description`]:!!n,[`${O}-no-icon`]:!k,[`${O}-banner`]:!!i,[`${O}-rtl`]:_==="rtl"},P==null?void 0:P.className,a,s,T,M),V=Jr(S,{aria:!0,data:!0}),W=d.useMemo(()=>{var L,Q;return typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof(P==null?void 0:P.closable)=="object"&&(!((L=P==null?void 0:P.closable)===null||L===void 0)&&L.closeIcon)?(Q=P==null?void 0:P.closable)===null||Q===void 0?void 0:Q.closeIcon:P==null?void 0:P.closeIcon)},[v,m,g,P==null?void 0:P.closeIcon]),K=d.useMemo(()=>{const L=m??(P==null?void 0:P.closable);return typeof L=="object"?ez(L,["closeIcon"]):{}},[m,P==null?void 0:P.closable]);return I(d.createElement(Jo,{visible:!w,motionName:`${O}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:L=>({maxHeight:L.offsetHeight}),onLeaveEnd:h},(L,Q)=>{let{className:ee,style:re}=L;return d.createElement("div",Object.assign({id:y,ref:bi(C,Q),"data-show":!w,className:xe(F,ee),style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),l),re),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},V),k?d.createElement(RMe,{description:n,icon:e.icon,prefixCls:O,type:A}):null,d.createElement("div",{className:`${O}-content`},o?d.createElement("div",{className:`${O}-message`},o):null,n?d.createElement("div",{className:`${O}-description`},n):null),b?d.createElement("div",{className:`${O}-action`},b):null,d.createElement(IMe,{isClosable:j,prefixCls:O,closeIcon:W,handleClose:D,ariaProps:K}))}))});function kMe(e,t,n){return t=cp(t),ate(e,c$()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}let NMe=function(e){function t(){var n;return br(this,t),n=kMe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return la(t,e),Sr(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,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,f=typeof o>"u"?c:o;return s?d.createElement(Tne,{id:i,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):a}}])}(d.Component);const Rne=Tne;Rne.ErrorBoundary=NMe;const tz=e=>typeof e=="object"&&e!=null&&e.nodeType===1,nz=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",PT=(e,t)=>{if(e.clientHeight{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,AMe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},rz=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:j=>j!==c;if(!tz(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let m=e;for(;tz(m)&&f(m);){if(m=AMe(m),m===h){p.push(m);break}m!=null&&m===document.body&&PT(m)&&!PT(document.documentElement)||m!=null&&PT(m,u)&&p.push(m)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:S,width:w,top:E,right:C,bottom:x,left:_}=e.getBoundingClientRect(),{top:P,right:O,bottom:I,left:M}=(j=>{const k=window.getComputedStyle(j);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let T=s==="start"||s==="nearest"?E-P:s==="end"?x+I:E+S/2-P+I,D=l==="center"?_+w/2-M+O:l==="end"?C+O:_-M;const A=[];for(let j=0;j=0&&_>=0&&x<=v&&C<=g&&E>=W&&x<=L&&_>=Q&&C<=K)return A;const ee=getComputedStyle(k),re=parseInt(ee.borderLeftWidth,10),ie=parseInt(ee.borderTopWidth,10),G=parseInt(ee.borderRightWidth,10),X=parseInt(ee.borderBottomWidth,10);let ne=0,le=0;const ce="offsetWidth"in k?k.offsetWidth-k.clientWidth-re-G:0,oe="offsetHeight"in k?k.offsetHeight-k.clientHeight-ie-X:0,se="offsetWidth"in k?k.offsetWidth===0?0:V/k.offsetWidth:0,fe="offsetHeight"in k?k.offsetHeight===0?0:F/k.offsetHeight:0;if(h===k)ne=s==="start"?T:s==="end"?T-v:s==="nearest"?LC(y,y+v,v,ie,X,y+T,y+T+S,S):T-v/2,le=l==="start"?D:l==="center"?D-g/2:l==="end"?D-g:LC(b,b+g,g,re,G,b+D,b+D+w,w),ne=Math.max(0,ne+y),le=Math.max(0,le+b);else{ne=s==="start"?T-W-ie:s==="end"?T-L+X+oe:s==="nearest"?LC(W,L,F,ie,X+oe,T,T+S,S):T-(W+F/2)+oe/2,le=l==="start"?D-Q-re:l==="center"?D-(Q+V/2)+ce/2:l==="end"?D-K+G+ce:LC(Q,K,V,re,G+ce,D,D+w,w);const{scrollLeft:te,scrollTop:he}=k;ne=fe===0?0:Math.max(0,Math.min(he+ne/fe,k.scrollHeight-F/fe+oe)),le=se===0?0:Math.max(0,Math.min(te+le/se,k.scrollWidth-V/se+ce)),T+=he-ne,D+=te-le}A.push({el:k,top:ne,left:le})}return A},DMe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function jMe(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(rz(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of rz(e,DMe(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}function A3(e){return e!=null&&e===e.window}const FMe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return A3(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!A3(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 LMe(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function BMe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=FMe(i),s=Date.now(),l=()=>{const u=Date.now()-s,f=LMe(u>o?o:u,a,e,o);A3(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,u{const[,,,,t]=Ho();return t?`${e}-css-var`:""};var ut={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>=ut.F1&&n<=ut.F12)return!1;switch(n){case ut.ALT:case ut.CAPS_LOCK:case ut.CONTEXT_MENU:case ut.CTRL:case ut.DOWN:case ut.END:case ut.ESC:case ut.HOME:case ut.INSERT:case ut.LEFT:case ut.MAC_FF_META:case ut.META:case ut.NUMLOCK:case ut.NUM_CENTER:case ut.PAGE_DOWN:case ut.PAGE_UP:case ut.PAUSE:case ut.PRINT_SCREEN:case ut.RIGHT:case ut.SHIFT:case ut.UP:case ut.WIN_KEY:case ut.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ut.ZERO&&t<=ut.NINE||t>=ut.NUM_ZERO&&t<=ut.NUM_MULTIPLY||t>=ut.A&&t<=ut.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ut.SPACE:case ut.QUESTION_MARK:case ut.NUM_PLUS:case ut.NUM_MINUS:case ut.NUM_PERIOD:case ut.NUM_DIVISION:case ut.SEMICOLON:case ut.DASH:case ut.EQUALS:case ut.COMMA:case ut.PERIOD:case ut.SLASH:case ut.APOSTROPHE:case ut.SINGLE_QUOTE:case ut.OPEN_SQUARE_BRACKET:case ut.BACKSLASH:case ut.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ine=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,h=e.closable,p=e.closeIcon,m=p===void 0?"x":p,g=e.props,v=e.onClick,b=e.onNoticeClose,y=e.times,S=e.hovering,w=d.useState(!1),E=$e(w,2),C=E[0],x=E[1],_=d.useState(0),P=$e(_,2),O=P[0],I=P[1],M=d.useState(0),T=$e(M,2),D=T[0],A=T[1],j=S||C,k=a>0&&s,F=function(){b(u)},V=function(re){(re.key==="Enter"||re.code==="Enter"||re.keyCode===ut.ENTER)&&F()};d.useEffect(function(){if(!j&&a>0){var ee=Date.now()-D,re=setTimeout(function(){F()},a*1e3-D);return function(){c&&clearTimeout(re),A(Date.now()-ee)}}},[a,j,y]),d.useEffect(function(){if(!j&&k&&(c||D===0)){var ee=performance.now(),re,ie=function G(){cancelAnimationFrame(re),re=requestAnimationFrame(function(X){var ne=X+D-ee,le=Math.min(ne/(a*1e3),1);I(le*100),le<1&&G()})};return ie(),function(){c&&cancelAnimationFrame(re)}}},[a,D,j,k,y]);var W=d.useMemo(function(){return Ht(h)==="object"&&h!==null?h:h?{closeIcon:m}:{}},[h,m]),K=Jr(W,!0),L=100-(!O||O<0?0:O>100?100:O),Q="".concat(n,"-notice");return d.createElement("div",Ge({},g,{ref:t,className:xe(Q,o,Z({},"".concat(Q,"-closable"),h)),style:r,onMouseEnter:function(re){var ie;x(!0),g==null||(ie=g.onMouseEnter)===null||ie===void 0||ie.call(g,re)},onMouseLeave:function(re){var ie;x(!1),g==null||(ie=g.onMouseLeave)===null||ie===void 0||ie.call(g,re)},onClick:v}),d.createElement("div",{className:"".concat(Q,"-content")},f),h&&d.createElement("a",Ge({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:V,"aria-label":"Close"},K,{onClick:function(re){re.preventDefault(),re.stopPropagation(),F()}}),W.closeIcon),k&&d.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:L},L+"%"))}),kne=de.createContext({}),Nne=function(t){var n=t.children,r=t.classNames;return de.createElement(kne.Provider,{value:{classNames:r}},n)},oz=8,iz=3,az=16,zMe=function(t){var n={offset:oz,threshold:iz,gap:az};if(t&&Ht(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:oz,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:iz,n.gap=(i=t.gap)!==null&&i!==void 0?i:az}return[!!t,n]},HMe=["className","style","classNames","styles"],UMe=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(kne),h=f.classNames,p=d.useRef({}),m=d.useState(null),g=$e(m,2),v=g[0],b=g[1],y=d.useState([]),S=$e(y,2),w=S[0],E=S[1],C=n.map(function(j){return{config:j,key:String(j.key)}}),x=zMe(u),_=$e(x,2),P=_[0],O=_[1],I=O.offset,M=O.threshold,T=O.gap,D=P&&(w.length>0||C.length<=M),A=typeof s=="function"?s(r):s;return d.useEffect(function(){P&&w.length>1&&E(function(j){return j.filter(function(k){return C.some(function(F){var V=F.key;return k===V})})})},[w,C,P]),d.useEffect(function(){var j;if(P&&p.current[(j=C[C.length-1])===null||j===void 0?void 0:j.key]){var k;b(p.current[(k=C[C.length-1])===null||k===void 0?void 0:k.key])}},[C,P]),de.createElement(b$,Ge({key:r,className:xe(o,"".concat(o,"-").concat(r),h==null?void 0:h.list,i,Z(Z({},"".concat(o,"-stack"),!!P),"".concat(o,"-stack-expanded"),D)),style:a,keys:C,motionAppear:!0},A,{onAllRemoved:function(){l(r)}}),function(j,k){var F=j.config,V=j.className,W=j.style,K=j.index,L=F,Q=L.key,ee=L.times,re=String(Q),ie=F,G=ie.className,X=ie.style,ne=ie.classNames,le=ie.styles,ce=At(ie,HMe),oe=C.findIndex(function(Pe){return Pe.key===re}),se={};if(P){var fe=C.length-1-(oe>-1?oe:K-1),te=r==="top"||r==="bottom"?"-50%":"0";if(fe>0){var he,pe,Oe;se.height=D?(he=p.current[re])===null||he===void 0?void 0:he.offsetHeight:v==null?void 0:v.offsetHeight;for(var Me=0,Se=0;Se-1?p.current[re]=Ne:delete p.current[re]},prefixCls:o,classNames:ne,styles:le,className:xe(G,h==null?void 0:h.notice),style:X,times:ee,key:Q,eventKey:Q,onNoticeClose:c,hovering:P&&w.length>0})))})},WMe=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,h=d.useState([]),p=$e(h,2),m=p[0],g=p[1],v=function(P){var O,I=m.find(function(M){return M.key===P});I==null||(O=I.onClose)===null||O===void 0||O.call(I),g(function(M){return M.filter(function(T){return T.key!==P})})};d.useImperativeHandle(t,function(){return{open:function(P){g(function(O){var I=Ze(O),M=I.findIndex(function(A){return A.key===P.key}),T=z({},P);if(M>=0){var D;T.times=(((D=O[M])===null||D===void 0?void 0:D.times)||0)+1,I[M]=T}else T.times=0,I.push(T);return a>0&&I.length>a&&(I=I.slice(-a)),I})},close:function(P){v(P)},destroy:function(){g([])}}});var b=d.useState({}),y=$e(b,2),S=y[0],w=y[1];d.useEffect(function(){var _={};m.forEach(function(P){var O=P.placement,I=O===void 0?"topRight":O;I&&(_[I]=_[I]||[],_[I].push(P))}),Object.keys(S).forEach(function(P){_[P]=_[P]||[]}),w(_)},[m]);var E=function(P){w(function(O){var I=z({},O),M=I[P]||[];return M.length||delete I[P],I})},C=d.useRef(!1);if(d.useEffect(function(){Object.keys(S).length>0?C.current=!0:C.current&&(c==null||c(),C.current=!1)},[S]),!o)return null;var x=Object.keys(S);return _i.createPortal(d.createElement(d.Fragment,null,x.map(function(_){var P=S[_],O=d.createElement(UMe,{key:_,configList:P,placement:_,prefixCls:r,className:s==null?void 0:s(_),style:l==null?void 0:l(_),motion:i,onNoticeClose:v,onAllNoticeRemoved:E,stack:u});return f?f(O,{prefixCls:r,key:_}):O})),o)}),VMe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],KMe=function(){return document.body},sz=0;function qMe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?KMe:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=At(e,VMe),h=d.useState(),p=$e(h,2),m=p[0],g=p[1],v=d.useRef(),b=d.createElement(WMe,{container:m,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),S=$e(y,2),w=S[0],E=S[1],C=d.useMemo(function(){return{open:function(_){var P=qMe(f,_);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(sz),sz+=1),E(function(O){return[].concat(Ze(O),[{type:"open",config:P}])})},close:function(_){E(function(P){return[].concat(Ze(P),[{type:"close",key:_}])})},destroy:function(){E(function(_){return[].concat(Ze(_),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){v.current&&w.length&&(w.forEach(function(x){switch(x.type){case"open":v.current.open(x.config);break;case"close":v.current.close(x.key);break;case"destroy":v.current.destroy();break}}),E(function(x){return x.filter(function(_){return!w.includes(_)})}))},[w]),[C,b]}var GMe={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"},YMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:GMe}))},Gc=d.forwardRef(YMe);const B1=de.createContext(void 0),kd=100,XMe=10,wA=kd*XMe,Dne={Modal:kd,Drawer:kd,Popover:kd,Popconfirm:kd,Tooltip:kd,Tour:kd,FloatButton:kd},QMe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function JMe(e){return e in Dne}const vl=(e,t)=>{const[,n]=Ho(),r=de.useContext(B1),o=JMe(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+Dne[e]:a+=QMe[e],i=[r===void 0?t:a,a]}return i},ZMe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:h,paddingXS:p,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:b}=e,y=`${t}-notice`,S=new Gn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new Gn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:v,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Qn(e)),{color:o,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:S,animationDuration:f,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:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},tTe=e=>({zIndexPopup:e.zIndexPopupBase+EA+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Fne=Kn("Message",e=>{const t=kn(e,{height:150});return[eTe(t)]},tTe);var nTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return d.createElement("div",{className:xe(`${t}-custom-content`,`${t}-${n}`)},r||rTe[n],d.createElement("span",null,o))},oTe=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=nTe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Yt),l=t||s("message"),c=Mr(l),[u,f,h]=Fne(l,c);return u(d.createElement(kne,Object.assign({},a,{prefixCls:l,className:xe(n,f,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:d.createElement(Lne,{prefixCls:l,type:r,icon:o},i)})))};function iTe(e,t){return{motionName:t??`${e}-move-up`}}function _A(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var aTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Mr(n),[o,i,a]=Fne(n,r);return o(d.createElement(Ane,{classNames:{list:xe(i,a,r)}},t))},uTe=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(cTe,{prefixCls:n,key:r},e)},dTe=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=lTe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:h,direction:p}=d.useContext(Yt),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??sTe}),v=()=>xe({[`${m}-rtl`]:s??p==="rtl"}),b=()=>iTe(m,l),y=d.createElement("span",{className:`${m}-close-x`},d.createElement(iu,{className:`${m}-close-icon`})),[S,w]=Dne({prefixCls:m,style:g,className:v,motion:b,closable:!1,closeIcon:y,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:uTe});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:m,message:h})),w});let uz=0;function Bne(e){const t=d.useRef(null);return ru(),[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,message:f}=t.current,h=`${u}-notice`,{content:p,icon:m,type:g,key:v,className:b,style:y,onClose:S}=l,w=aTe(l,["content","icon","type","key","className","style","onClose"]);let E=v;return E==null&&(uz+=1,E=`antd-message-${uz}`),_A(C=>(c(Object.assign(Object.assign({},w),{key:E,content:d.createElement(Lne,{prefixCls:u,type:g,icon:m},p),placement:"top",className:xe(g&&`${h}-${g}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{S==null||S(),C()}})),()=>{r(E)}))},a={open:o,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,f,h)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let m,g;typeof f=="function"?g=f:(m=f,g=h);const v=Object.assign(Object.assign({onClose:g,duration:m},p),{type:l});return o(v)};a[l]=c}),a},[]),d.createElement(dTe,Object.assign({key:"message-holder"},e,{ref:t}))]}function zne(e){return Bne(e)}function fTe(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(o=>[].concat(Ze(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function nr(){nr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(j,k,F){j[k]=F.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(j,k,F){return Object.defineProperty(j,k,{value:F,enumerable:!0,configurable:!0,writable:!0}),j[k]}try{c({},"")}catch{c=function(F,V,W){return F[V]=W}}function u(j,k,F,V){var W=k&&k.prototype instanceof b?k:b,K=Object.create(W.prototype),L=new D(V||[]);return o(K,"_invoke",{value:O(j,F,L)}),K}function f(j,k,F){try{return{type:"normal",arg:j.call(k,F)}}catch(V){return{type:"throw",arg:V}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",v={};function b(){}function y(){}function S(){}var w={};c(w,a,function(){return this});var E=Object.getPrototypeOf,C=E&&E(E(A([])));C&&C!==n&&r.call(C,a)&&(w=C);var x=S.prototype=b.prototype=Object.create(w);function _(j){["next","throw","return"].forEach(function(k){c(j,k,function(F){return this._invoke(k,F)})})}function P(j,k){function F(W,K,L,Q){var ee=f(j[W],j,K);if(ee.type!=="throw"){var re=ee.arg,ie=re.value;return ie&&Ht(ie)=="object"&&r.call(ie,"__await")?k.resolve(ie.__await).then(function(G){F("next",G,L,Q)},function(G){F("throw",G,L,Q)}):k.resolve(ie).then(function(G){re.value=G,L(re)},function(G){return F("throw",G,L,Q)})}Q(ee.arg)}var V;o(this,"_invoke",{value:function(K,L){function Q(){return new k(function(ee,re){F(K,L,ee,re)})}return V=V?V.then(Q,Q):Q()}})}function O(j,k,F){var V=h;return function(W,K){if(V===m)throw Error("Generator is already running");if(V===g){if(W==="throw")throw K;return{value:e,done:!0}}for(F.method=W,F.arg=K;;){var L=F.delegate;if(L){var Q=I(L,F);if(Q){if(Q===v)continue;return Q}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(V===h)throw V=g,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);V=m;var ee=f(j,k,F);if(ee.type==="normal"){if(V=F.done?g:p,ee.arg===v)continue;return{value:ee.arg,done:F.done}}ee.type==="throw"&&(V=g,F.method="throw",F.arg=ee.arg)}}}function I(j,k){var F=k.method,V=j.iterator[F];if(V===e)return k.delegate=null,F==="throw"&&j.iterator.return&&(k.method="return",k.arg=e,I(j,k),k.method==="throw")||F!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+F+"' method")),v;var W=f(V,j.iterator,k.arg);if(W.type==="throw")return k.method="throw",k.arg=W.arg,k.delegate=null,v;var K=W.arg;return K?K.done?(k[j.resultName]=K.value,k.next=j.nextLoc,k.method!=="return"&&(k.method="next",k.arg=e),k.delegate=null,v):K:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,v)}function M(j){var k={tryLoc:j[0]};1 in j&&(k.catchLoc=j[1]),2 in j&&(k.finallyLoc=j[2],k.afterLoc=j[3]),this.tryEntries.push(k)}function T(j){var k=j.completion||{};k.type="normal",delete k.arg,j.completion=k}function D(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(M,this),this.reset(!0)}function A(j){if(j||j===""){var k=j[a];if(k)return k.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var F=-1,V=function W(){for(;++F=0;--W){var K=this.tryEntries[W],L=K.completion;if(K.tryLoc==="root")return V("end");if(K.tryLoc<=this.prev){var Q=r.call(K,"catchLoc"),ee=r.call(K,"finallyLoc");if(Q&&ee){if(this.prev=0;--V){var W=this.tryEntries[V];if(W.tryLoc<=this.prev&&r.call(W,"finallyLoc")&&this.prev=0;--F){var V=this.tryEntries[F];if(V.finallyLoc===k)return this.complete(V.completion,V.afterLoc),T(V),v}},catch:function(k){for(var F=this.tryEntries.length-1;F>=0;--F){var V=this.tryEntries[F];if(V.tryLoc===k){var W=V.completion;if(W.type==="throw"){var K=W.arg;T(V)}return K}}throw Error("illegal catch attempt")},delegateYield:function(k,F,V){return this.delegate={iterator:A(k),resultName:F,nextLoc:V},this.method==="next"&&(this.arg=e),v}},t}function dz(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Bo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){dz(i,r,o,a,s,"next",l)}function s(l){dz(i,r,o,a,s,"throw",l)}a(void 0)})}}var B1=z({},lQ),hTe=B1.version,OT=B1.render,pTe=B1.unmountComponentAtNode,C$;try{var mTe=Number((hTe||"").split(".")[0]);mTe>=18&&(C$=B1.createRoot)}catch{}function fz(e){var t=B1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ht(t)==="object"&&(t.usingClientEntryPoint=e)}var q2="__rc_react_root__";function gTe(e,t){fz(!0);var n=t[q2]||C$(t);fz(!1),n.render(e),t[q2]=n}function vTe(e,t){OT==null||OT(e,t)}function yTe(e,t){if(C$){gTe(e,t);return}vTe(e,t)}function bTe(e){return j3.apply(this,arguments)}function j3(){return j3=Bo(nr().mark(function e(t){return nr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[q2])===null||o===void 0||o.unmount(),delete t[q2]}));case 1:case"end":return r.stop()}},e)})),j3.apply(this,arguments)}function STe(e){pTe(e)}function CTe(e){return F3.apply(this,arguments)}function F3(){return F3=Bo(nr().mark(function e(t){return nr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(C$===void 0){r.next=2;break}return r.abrupt("return",bTe(t));case 2:STe(t);case 3:case"end":return r.stop()}},e)})),F3.apply(this,arguments)}const wTe=(e,t)=>(yTe(e,t),()=>CTe(t));let xTe=wTe;function $A(){return xTe}const MT=()=>({height:0,opacity:0}),hz=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ETe=e=>({height:e?e.offsetHeight:0}),TT=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ug=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wb}-motion-collapse`,onAppearStart:MT,onEnterStart:MT,onAppearActive:hz,onEnterActive:hz,onLeaveStart:ETe,onLeaveActive:MT,onAppearEnd:TT,onEnterEnd:TT,onLeaveEnd:TT,motionDeadline:500}},Mi=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ov=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 o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},_Te=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(",")}}}}},$Te=cne("Wave",e=>[_Te(e)]),w$=`${Wb}-wave-target`;function RT(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 PTe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return RT(t)?t:RT(n)?n:RT(r)?r:null}function IT(e){return Number.isNaN(e)?0:e}const OTe=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=d.useRef(null),a=d.useRef(null);d.useEffect(()=>{a.current=o()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,h]=d.useState(0),[p,m]=d.useState(0),[g,v]=d.useState(0),[b,y]=d.useState(0),[S,w]=d.useState(!1),E={left:f,top:p,width:g,height:b,borderRadius:c.map(_=>`${_}px`).join(" ")};s&&(E["--wave-color"]=s);function C(){const _=getComputedStyle(n);l(PTe(n));const P=_.position==="static",{borderLeftWidth:O,borderTopWidth:I}=_;h(P?n.offsetLeft:IT(-parseFloat(O))),m(P?n.offsetTop:IT(-parseFloat(I))),v(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:T,borderBottomLeftRadius:D,borderBottomRightRadius:A}=_;u([M,T,A,D].map(j=>IT(parseFloat(j))))}if(d.useEffect(()=>{if(n){const _=zn(()=>{C(),w(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(C),P.observe(n)),()=>{zn.cancel(_),P==null||P.disconnect()}}},[]),!S)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(w$));return d.createElement(Jo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,P)=>{var O,I;if(P.deadline||P.propertyName==="opacity"){const M=(O=i.current)===null||O===void 0?void 0:O.parentElement;(I=a.current)===null||I===void 0||I.call(a).then(()=>{M==null||M.remove()})}return!1}},(_,P)=>{let{className:O}=_;return d.createElement("div",{ref:Si(i,P),className:xe(t,O,{"wave-quick":x}),style:E})})},MTe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const i=$A();let a=null;function s(){return a}a=i(d.createElement(OTe,Object.assign({},t,{target:e,registerUnmount:s})),o)},TTe=(e,t,n)=>{const{wave:r}=d.useContext(Yt),[,o,i]=Ho(),a=An(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${w$}`)||u,{showEffect:h}=r||{};(h||MTe)(f,{className:t,token:o,component:n,event:c,hashId:i})}),s=d.useRef(null);return c=>{zn.cancel(s.current),s.current=zn(()=>{a(c)})}},z1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=d.useContext(Yt),i=d.useRef(null),a=o("wave"),[,s]=$Te(a),l=TTe(i,xe(a,s),r);if(de.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const f=h=>{!Ov(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!de.isValidElement(t))return t??null;const c=tc(t)?Si(Af(t),i):i;return Zo(t,{ref:c})},Eo=e=>{const t=de.useContext(fp);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},RTe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},ITe=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"}}}},kTe=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}}}},Hne=Kn("Space",e=>{const t=kn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[ITe(t),kTe(t),RTe(t)]},()=>({}),{resetStyle:!1});var Une=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=d.useContext(x$),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return xe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${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}},NTe=e=>{let{children:t}=e;return d.createElement(x$.Provider,{value:null},t)},ATe=e=>{var{children:t}=e,n=Une(e,["children"]);return d.createElement(x$.Provider,{value:n},t)},DTe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Une(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Eo(S=>r??S),h=t("space-compact",a),[p,m]=Hne(h),g=xe(h,m,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:i,[`${h}-vertical`]:o==="vertical"},s,l),v=d.useContext(x$),b=ai(c),y=d.useMemo(()=>b.map((S,w)=>{const E=(S==null?void 0:S.key)||`${h}-item-${w}`;return d.createElement(ATe,{key:E,compactSize:f,compactDirection:o,isFirstItem:w===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:w===b.length-1&&(!v||(v==null?void 0:v.isLastItem))},S)}),[r,b,v]);return b.length===0?null:p(d.createElement("div",Object.assign({className:g},u),y))};var jTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{prefixCls:r,size:o,className:i}=e,a=jTe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ho();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=xe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return d.createElement(Wne.Provider,{value:o},d.createElement("div",Object.assign({},a,{className:u})))},pz=/^[\u4E00-\u9FA5]{2}$/,L3=pz.test.bind(pz);function PA(e){return e==="danger"?{danger:!0}:{type:e}}function mz(e){return typeof e=="string"}function kT(e){return e==="text"||e==="link"}function LTe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&mz(e.type)&&L3(e.props.children)?Zo(e,{children:e.props.children.split("").join(n)}):mz(e)?L3(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):Tne(e)?de.createElement("span",null,e):e}function BTe(e,t){let n=!1;const r=[];return de.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),de.Children.map(r,o=>LTe(o,t))}["default","primary","danger"].concat(Ze(pp));const B3=d.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=xe(`${i}-icon`,n);return de.createElement("span",{ref:t,className:a,style:r},o)}),gz=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=xe(`${n}-loading-icon`,r);return de.createElement(B3,{prefixCls:n,className:a,style:o,ref:t},de.createElement(Gc,{className:i}))}),NT=()=>({width:0,opacity:0,transform:"scale(0)"}),AT=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),zTe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,s=!!n;return r?de.createElement(gz,{prefixCls:t,className:o,style:i}):de.createElement(Jo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:NT,onAppearActive:AT,onEnterStart:NT,onEnterActive:AT,onLeaveStart:AT,onLeaveActive:NT},(l,c)=>{let{className:u,style:f}=l;const h=Object.assign(Object.assign({},i),f);return de.createElement(gz,{prefixCls:t,className:xe(o,u),style:h,ref:c})})},vz=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),HTe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},vz(`${t}-primary`,o),vz(`${t}-danger`,i)]}};var UTe=["b"],WTe=["v"],DT=function(t){return Math.round(Number(t||0))},VTe=function(t){if(t instanceof Un)return t;if(t&&Ht(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=At(n,UTe);return z(z({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},oc=function(e){la(n,e);var t=Pa(n);function n(r){return br(this,n),t.call(this,VTe(r))}return Sr(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=DT(o.s*100),a=DT(o.b*100),s=DT(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=At(o,WTe);return z(z({},a),{},{b:i,a:this.a})}}]),n}(Un),KTe="rc-color-picker",og=function(t){return t instanceof oc?t:new oc(t)},qTe=og("#1677ff"),Vne=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),f=u.width,h=u.height,p=f/2,m=h/2,g=(n.x+p)/l,v=1-(n.y+m)/c,b=i.toHsb(),y=g,S=(n.x+p)/l*360;if(a)switch(a){case"hue":return og(z(z({},b),{},{h:S<=0?0:S}));case"alpha":return og(z(z({},b),{},{a:y<=0?0:y}))}return og({h:b.h,s:g<=0?0:g,b:v>=1?1:v,a:b.a})},Kne=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}}},OA=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return de.createElement("div",{className:xe(s,o),style:i,onClick:a},de.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function GTe(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 qne(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=d.useState({x:0,y:0}),u=$e(c,2),f=u[0],h=u[1],p=d.useRef(null),m=d.useRef(null);d.useEffect(function(){h(a())},[s]),d.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 g=function(w){var E=GTe(w),C=E.pageX,x=E.pageY,_=n.current.getBoundingClientRect(),P=_.x,O=_.y,I=_.width,M=_.height,T=t.current.getBoundingClientRect(),D=T.width,A=T.height,j=D/2,k=A/2,F=Math.max(0,Math.min(C-P,I))-j,V=Math.max(0,Math.min(x-O,M))-k,W={x:F,y:r==="x"?f.y:V};if(D===0&&A===0||D!==A)return!1;o==null||o(W)},v=function(w){w.preventDefault(),g(w)},b=function(w){w.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,i==null||i()},y=function(w){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),!l&&(g(w),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b),p.current=v,m.current=b)};return[f,y]}var Gne=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return de.createElement("div",{className:xe("".concat(i,"-handler"),Z({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},Yne=function(t){var n=t.children,r=t.style,o=t.prefixCls;return de.createElement("div",{className:"".concat(o,"-palette"),style:z({position:"relative"},r)},n)},Xne=d.forwardRef(function(e,t){var n=e.children,r=e.x,o=e.y;return de.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),YTe=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=d.useRef(),l=d.useRef(),c=d.useRef(n),u=An(function(g){var v=Vne({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),f=qne({color:n,containerRef:s,targetRef:l,calculate:function(){return Kne(n)},onDragChange:u,onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),h=$e(f,2),p=h[0],m=h[1];return de.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:m,onTouchStart:m},de.createElement(Yne,{prefixCls:o},de.createElement(Xne,{x:p.x,y:p.y,ref:l},de.createElement(Gne,{color:n.toRgbString(),prefixCls:o})),de.createElement("div",{className:"".concat(o,"-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))"}})))},XTe=function(t,n){var r=xn(t,{value:n}),o=$e(r,2),i=o[0],a=o[1],s=d.useMemo(function(){return og(i)},[i]);return[s,a]},QTe=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=d.useMemo(function(){return n.map(function(c,u){var f=og(c);return a==="alpha"&&u===n.length-1&&(f=new oc(f.setA(1))),f.toRgbString()}).join(",")},[n,a]);return de.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},JTe=function(t){var n=t.prefixCls,r=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=d.useRef(),u=d.useRef(),f=d.useRef(s),h=function(E){return l==="hue"?E.getHue():E.a*100},p=An(function(w){var E=Vne({offset:w,targetRef:u,containerRef:c,color:s,type:l});f.current=E,i(h(E))}),m=qne({color:s,targetRef:u,containerRef:c,calculate:function(){return Kne(s,l)},onDragChange:p,onDragChangeComplete:function(){a(h(f.current))},direction:"x",disabledDrag:o}),g=$e(m,2),v=g[0],b=g[1],y=de.useMemo(function(){if(l==="hue"){var w=s.toHsb();w.s=1,w.b=1,w.a=1;var E=new oc(w);return E}return s},[s,l]),S=de.useMemo(function(){return r.map(function(w){return"".concat(w.color," ").concat(w.percent,"%")})},[r]);return de.createElement("div",{ref:c,className:xe("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:b,onTouchStart:b},de.createElement(Yne,{prefixCls:n},de.createElement(Xne,{x:v.x,y:v.y,ref:u},de.createElement(Gne,{size:"small",color:y.toHexString(),prefixCls:n})),de.createElement(QTe,{colors:S,type:l,prefixCls:n})))};function ZTe(e){return d.useMemo(function(){var t=e||{},n=t.slider;return[n||JTe]},[e])}var eRe=[{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}],tRe=d.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?KTe:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,h=f===void 0?!1:f,p=e.disabled,m=p===void 0?!1:p,g=e.components,v=ZTe(g),b=$e(v,1),y=b[0],S=XTe(r||qTe,n),w=$e(S,2),E=w[0],C=w[1],x=d.useMemo(function(){return E.setA(1).toRgbString()},[E]),_=function(V,W){n||C(V),a==null||a(V,W)},P=function(V){return new oc(E.setHue(V))},O=function(V){return new oc(E.setA(V/100))},I=function(V){_(P(V),{type:"hue",value:V})},M=function(V){_(O(V),{type:"alpha",value:V})},T=function(V){s&&s(P(V))},D=function(V){s&&s(O(V))},A=xe("".concat(i,"-panel"),l,Z({},"".concat(i,"-panel-disabled"),m)),j={prefixCls:i,disabled:m,color:E},k=de.createElement(de.Fragment,null,de.createElement(YTe,Ge({onChange:_},j,{onChangeComplete:s})),de.createElement("div",{className:"".concat(i,"-slider-container")},de.createElement("div",{className:xe("".concat(i,"-slider-group"),Z({},"".concat(i,"-slider-group-disabled-alpha"),h))},de.createElement(y,Ge({},j,{type:"hue",colors:eRe,min:0,max:359,value:E.getHue(),onChange:I,onChangeComplete:T})),!h&&de.createElement(y,Ge({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:x}],min:0,max:100,value:E.a*100,onChange:M,onChangeComplete:D}))),de.createElement(OA,{color:E.toRgbString(),prefixCls:i})));return de.createElement("div",{className:A,style:c,ref:t},typeof u=="function"?u(k):k)});const uy=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",nRe=(e,t)=>e?uy(e,t):"";let Ss=function(){function e(t){br(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(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(o=>{let{color:i,percent:a}=o;return{color:new e(i),percent:a}}),this.metaColor=new oc(this.colors[0].color.metaColor)):this.metaColor=new oc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Sr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return nRe(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(o=>`${o.color.toRgbString()} ${o.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,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();var rRe={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"},oRe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:rRe}))},rd=d.forwardRef(oRe),Qne=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,a=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=de.useState(s||r),h=$e(f,2),p=h[0],m=h[1];return de.useEffect(function(){(r||s)&&m(!0)},[r,s]),p?de.createElement("div",{ref:t,className:xe("".concat(n,"-content"),Z(Z({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:i,role:l},de.createElement("div",{className:xe("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null});Qne.displayName="PanelContent";var iRe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Jne=de.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,i=e.isActive,a=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,h=f===void 0?{}:f,p=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,b=e.extra,y=e.header,S=e.expandIcon,w=e.openMotion,E=e.destroyInactivePanel,C=e.children,x=At(e,iRe),_=m==="disabled",P=b!=null&&typeof b!="boolean",O=Z(Z(Z({onClick:function(){a==null||a(v)},onKeyDown:function(k){(k.key==="Enter"||k.keyCode===ut.ENTER||k.which===ut.ENTER)&&(a==null||a(v))},role:g?"tab":"button"},"aria-expanded",i),"aria-disabled",_),"tabIndex",_?-1:0),I=typeof S=="function"?S(e):de.createElement("i",{className:"arrow"}),M=I&&de.createElement("div",Ge({className:"".concat(p,"-expand-icon")},["header","icon"].includes(m)?O:{}),I),T=xe("".concat(p,"-item"),Z(Z({},"".concat(p,"-item-active"),i),"".concat(p,"-item-disabled"),_),l),D=xe(o,"".concat(p,"-header"),Z({},"".concat(p,"-collapsible-").concat(m),!!m),u.header),A=z({className:D,style:h.header},["header","icon"].includes(m)?{}:O);return de.createElement("div",Ge({},x,{ref:t,className:T}),de.createElement("div",A,r&&M,de.createElement("span",Ge({className:"".concat(p,"-header-text")},m==="header"?O:{}),y),P&&de.createElement("div",{className:"".concat(p,"-extra")},b)),de.createElement(Jo,Ge({visible:i,leavedClassName:"".concat(p,"-content-hidden")},w,{forceRender:s,removeOnLeave:E}),function(j,k){var F=j.className,V=j.style;return de.createElement(Qne,{ref:k,prefixCls:p,className:F,classNames:u,style:V,styles:h,isActive:i,forceRender:s,role:g?"tabpanel":void 0},C)}))}),aRe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],sRe=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,h){var p=f.children,m=f.label,g=f.key,v=f.collapsible,b=f.onItemClick,y=f.destroyInactivePanel,S=At(f,aRe),w=String(g??h),E=v??i,C=y??a,x=function(O){E!=="disabled"&&(s(O),b==null||b(O))},_=!1;return o?_=l[0]===w:_=l.indexOf(w)>-1,de.createElement(Jne,Ge({},S,{prefixCls:r,key:w,panelKey:w,isActive:_,accordion:o,openMotion:c,expandIcon:u,header:m,collapsible:E,onItemClick:x,destroyInactivePanel:C}),p)})},lRe=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,h=t.key||String(n),p=t.props,m=p.header,g=p.headerClass,v=p.destroyInactivePanel,b=p.collapsible,y=p.onItemClick,S=!1;i?S=c[0]===h:S=c.indexOf(h)>-1;var w=b??a,E=function(_){w!=="disabled"&&(l(_),y==null||y(_))},C={key:h,panelKey:h,header:m,headerClass:g,isActive:S,prefixCls:o,destroyInactivePanel:v??s,openMotion:u,accordion:i,children:t.props.children,onItemClick:E,expandIcon:f,collapsible:w};return typeof t.type=="string"?t:(Object.keys(C).forEach(function(x){typeof C[x]>"u"&&delete C[x]}),de.cloneElement(t,C))};function cRe(e,t,n){return Array.isArray(e)?sRe(e,n):ai(t).map(function(r,o){return lRe(r,o,n)})}function uRe(e){var t=e;if(!Array.isArray(t)){var n=Ht(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var dRe=de.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,h=e.expandIcon,p=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,b=xe(r,l),y=xn([],{value:p,onChange:function(P){return g==null?void 0:g(P)},defaultValue:m,postState:uRe}),S=$e(y,2),w=S[0],E=S[1],C=function(P){return E(function(){if(s)return w[0]===P?[]:[P];var O=w.indexOf(P),I=O>-1;return I?w.filter(function(M){return M!==P}):[].concat(Ze(w),[P])})};yr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=cRe(v,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:h,collapsible:u,destroyInactivePanel:i,onItemClick:C,activeKey:w});return de.createElement("div",Ge({ref:t,className:b,style:a,role:s?"tablist":void 0},Jr(e,{aria:!0,data:!0})),x)});const MA=Object.assign(dRe,{Panel:Jne});MA.Panel;const fRe=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(Yt),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=xe({[`${a}-no-arrow`]:!i},o);return d.createElement(MA.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),H1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},eTe=e=>({zIndexPopup:e.zIndexPopupBase+wA+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),jne=Kn("Message",e=>{const t=kn(e,{height:150});return[ZMe(t)]},eTe);var tTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return d.createElement("div",{className:xe(`${t}-custom-content`,`${t}-${n}`)},r||nTe[n],d.createElement("span",null,o))},rTe=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=tTe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Yt),l=t||s("message"),c=Mr(l),[u,f,h]=jne(l,c);return u(d.createElement(Ine,Object.assign({},a,{prefixCls:l,className:xe(n,f,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:d.createElement(Fne,{prefixCls:l,type:r,icon:o},i)})))};function oTe(e,t){return{motionName:t??`${e}-move-up`}}function xA(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var iTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Mr(n),[o,i,a]=jne(n,r);return o(d.createElement(Nne,{classNames:{list:xe(i,a,r)}},t))},cTe=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(lTe,{prefixCls:n,key:r},e)},uTe=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=sTe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:h,direction:p}=d.useContext(Yt),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??aTe}),v=()=>xe({[`${m}-rtl`]:s??p==="rtl"}),b=()=>oTe(m,l),y=d.createElement("span",{className:`${m}-close-x`},d.createElement(ou,{className:`${m}-close-icon`})),[S,w]=Ane({prefixCls:m,style:g,className:v,motion:b,closable:!1,closeIcon:y,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:cTe});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:m,message:h})),w});let lz=0;function Lne(e){const t=d.useRef(null);return nu(),[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,message:f}=t.current,h=`${u}-notice`,{content:p,icon:m,type:g,key:v,className:b,style:y,onClose:S}=l,w=iTe(l,["content","icon","type","key","className","style","onClose"]);let E=v;return E==null&&(lz+=1,E=`antd-message-${lz}`),xA(C=>(c(Object.assign(Object.assign({},w),{key:E,content:d.createElement(Fne,{prefixCls:u,type:g,icon:m},p),placement:"top",className:xe(g&&`${h}-${g}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{S==null||S(),C()}})),()=>{r(E)}))},a={open:o,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,f,h)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let m,g;typeof f=="function"?g=f:(m=f,g=h);const v=Object.assign(Object.assign({onClose:g,duration:m},p),{type:l});return o(v)};a[l]=c}),a},[]),d.createElement(uTe,Object.assign({key:"message-holder"},e,{ref:t}))]}function Bne(e){return Lne(e)}function dTe(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(o=>[].concat(Ze(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function nr(){nr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(j,k,F){j[k]=F.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(j,k,F){return Object.defineProperty(j,k,{value:F,enumerable:!0,configurable:!0,writable:!0}),j[k]}try{c({},"")}catch{c=function(F,V,W){return F[V]=W}}function u(j,k,F,V){var W=k&&k.prototype instanceof b?k:b,K=Object.create(W.prototype),L=new D(V||[]);return o(K,"_invoke",{value:O(j,F,L)}),K}function f(j,k,F){try{return{type:"normal",arg:j.call(k,F)}}catch(V){return{type:"throw",arg:V}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",v={};function b(){}function y(){}function S(){}var w={};c(w,a,function(){return this});var E=Object.getPrototypeOf,C=E&&E(E(A([])));C&&C!==n&&r.call(C,a)&&(w=C);var x=S.prototype=b.prototype=Object.create(w);function _(j){["next","throw","return"].forEach(function(k){c(j,k,function(F){return this._invoke(k,F)})})}function P(j,k){function F(W,K,L,Q){var ee=f(j[W],j,K);if(ee.type!=="throw"){var re=ee.arg,ie=re.value;return ie&&Ht(ie)=="object"&&r.call(ie,"__await")?k.resolve(ie.__await).then(function(G){F("next",G,L,Q)},function(G){F("throw",G,L,Q)}):k.resolve(ie).then(function(G){re.value=G,L(re)},function(G){return F("throw",G,L,Q)})}Q(ee.arg)}var V;o(this,"_invoke",{value:function(K,L){function Q(){return new k(function(ee,re){F(K,L,ee,re)})}return V=V?V.then(Q,Q):Q()}})}function O(j,k,F){var V=h;return function(W,K){if(V===m)throw Error("Generator is already running");if(V===g){if(W==="throw")throw K;return{value:e,done:!0}}for(F.method=W,F.arg=K;;){var L=F.delegate;if(L){var Q=I(L,F);if(Q){if(Q===v)continue;return Q}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(V===h)throw V=g,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);V=m;var ee=f(j,k,F);if(ee.type==="normal"){if(V=F.done?g:p,ee.arg===v)continue;return{value:ee.arg,done:F.done}}ee.type==="throw"&&(V=g,F.method="throw",F.arg=ee.arg)}}}function I(j,k){var F=k.method,V=j.iterator[F];if(V===e)return k.delegate=null,F==="throw"&&j.iterator.return&&(k.method="return",k.arg=e,I(j,k),k.method==="throw")||F!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+F+"' method")),v;var W=f(V,j.iterator,k.arg);if(W.type==="throw")return k.method="throw",k.arg=W.arg,k.delegate=null,v;var K=W.arg;return K?K.done?(k[j.resultName]=K.value,k.next=j.nextLoc,k.method!=="return"&&(k.method="next",k.arg=e),k.delegate=null,v):K:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,v)}function M(j){var k={tryLoc:j[0]};1 in j&&(k.catchLoc=j[1]),2 in j&&(k.finallyLoc=j[2],k.afterLoc=j[3]),this.tryEntries.push(k)}function T(j){var k=j.completion||{};k.type="normal",delete k.arg,j.completion=k}function D(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(M,this),this.reset(!0)}function A(j){if(j||j===""){var k=j[a];if(k)return k.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var F=-1,V=function W(){for(;++F=0;--W){var K=this.tryEntries[W],L=K.completion;if(K.tryLoc==="root")return V("end");if(K.tryLoc<=this.prev){var Q=r.call(K,"catchLoc"),ee=r.call(K,"finallyLoc");if(Q&&ee){if(this.prev=0;--V){var W=this.tryEntries[V];if(W.tryLoc<=this.prev&&r.call(W,"finallyLoc")&&this.prev=0;--F){var V=this.tryEntries[F];if(V.finallyLoc===k)return this.complete(V.completion,V.afterLoc),T(V),v}},catch:function(k){for(var F=this.tryEntries.length-1;F>=0;--F){var V=this.tryEntries[F];if(V.tryLoc===k){var W=V.completion;if(W.type==="throw"){var K=W.arg;T(V)}return K}}throw Error("illegal catch attempt")},delegateYield:function(k,F,V){return this.delegate={iterator:A(k),resultName:F,nextLoc:V},this.method==="next"&&(this.arg=e),v}},t}function cz(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Bo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){cz(i,r,o,a,s,"next",l)}function s(l){cz(i,r,o,a,s,"throw",l)}a(void 0)})}}var z1=z({},sQ),fTe=z1.version,OT=z1.render,hTe=z1.unmountComponentAtNode,C$;try{var pTe=Number((fTe||"").split(".")[0]);pTe>=18&&(C$=z1.createRoot)}catch{}function uz(e){var t=z1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ht(t)==="object"&&(t.usingClientEntryPoint=e)}var G2="__rc_react_root__";function mTe(e,t){uz(!0);var n=t[G2]||C$(t);uz(!1),n.render(e),t[G2]=n}function gTe(e,t){OT==null||OT(e,t)}function vTe(e,t){if(C$){mTe(e,t);return}gTe(e,t)}function yTe(e){return D3.apply(this,arguments)}function D3(){return D3=Bo(nr().mark(function e(t){return nr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[G2])===null||o===void 0||o.unmount(),delete t[G2]}));case 1:case"end":return r.stop()}},e)})),D3.apply(this,arguments)}function bTe(e){hTe(e)}function STe(e){return j3.apply(this,arguments)}function j3(){return j3=Bo(nr().mark(function e(t){return nr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(C$===void 0){r.next=2;break}return r.abrupt("return",yTe(t));case 2:bTe(t);case 3:case"end":return r.stop()}},e)})),j3.apply(this,arguments)}const CTe=(e,t)=>(vTe(e,t),()=>STe(t));let wTe=CTe;function EA(){return wTe}const MT=()=>({height:0,opacity:0}),dz=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},xTe=e=>({height:e?e.offsetHeight:0}),TT=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ug=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wb}-motion-collapse`,onAppearStart:MT,onEnterStart:MT,onAppearActive:dz,onEnterActive:dz,onLeaveStart:xTe,onLeaveActive:MT,onAppearEnd:TT,onEnterEnd:TT,onLeaveEnd:TT,motionDeadline:500}},Mi=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ov=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 o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},ETe=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(",")}}}}},_Te=lne("Wave",e=>[ETe(e)]),w$=`${Wb}-wave-target`;function RT(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 $Te(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return RT(t)?t:RT(n)?n:RT(r)?r:null}function IT(e){return Number.isNaN(e)?0:e}const PTe=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=d.useRef(null),a=d.useRef(null);d.useEffect(()=>{a.current=o()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,h]=d.useState(0),[p,m]=d.useState(0),[g,v]=d.useState(0),[b,y]=d.useState(0),[S,w]=d.useState(!1),E={left:f,top:p,width:g,height:b,borderRadius:c.map(_=>`${_}px`).join(" ")};s&&(E["--wave-color"]=s);function C(){const _=getComputedStyle(n);l($Te(n));const P=_.position==="static",{borderLeftWidth:O,borderTopWidth:I}=_;h(P?n.offsetLeft:IT(-parseFloat(O))),m(P?n.offsetTop:IT(-parseFloat(I))),v(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:T,borderBottomLeftRadius:D,borderBottomRightRadius:A}=_;u([M,T,A,D].map(j=>IT(parseFloat(j))))}if(d.useEffect(()=>{if(n){const _=zn(()=>{C(),w(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(C),P.observe(n)),()=>{zn.cancel(_),P==null||P.disconnect()}}},[]),!S)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(w$));return d.createElement(Jo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,P)=>{var O,I;if(P.deadline||P.propertyName==="opacity"){const M=(O=i.current)===null||O===void 0?void 0:O.parentElement;(I=a.current)===null||I===void 0||I.call(a).then(()=>{M==null||M.remove()})}return!1}},(_,P)=>{let{className:O}=_;return d.createElement("div",{ref:bi(i,P),className:xe(t,O,{"wave-quick":x}),style:E})})},OTe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const i=EA();let a=null;function s(){return a}a=i(d.createElement(PTe,Object.assign({},t,{target:e,registerUnmount:s})),o)},MTe=(e,t,n)=>{const{wave:r}=d.useContext(Yt),[,o,i]=Ho(),a=An(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${w$}`)||u,{showEffect:h}=r||{};(h||OTe)(f,{className:t,token:o,component:n,event:c,hashId:i})}),s=d.useRef(null);return c=>{zn.cancel(s.current),s.current=zn(()=>{a(c)})}},H1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=d.useContext(Yt),i=d.useRef(null),a=o("wave"),[,s]=_Te(a),l=MTe(i,xe(a,s),r);if(de.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const f=h=>{!Ov(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!de.isValidElement(t))return t??null;const c=tc(t)?bi(Af(t),i):i;return Zo(t,{ref:c})},Eo=e=>{const t=de.useContext(fp);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},TTe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},RTe=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"}}}},ITe=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}}}},zne=Kn("Space",e=>{const t=kn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[RTe(t),ITe(t),TTe(t)]},()=>({}),{resetStyle:!1});var Hne=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=d.useContext(x$),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return xe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${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}},kTe=e=>{let{children:t}=e;return d.createElement(x$.Provider,{value:null},t)},NTe=e=>{var{children:t}=e,n=Hne(e,["children"]);return d.createElement(x$.Provider,{value:n},t)},ATe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Hne(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Eo(S=>r??S),h=t("space-compact",a),[p,m]=zne(h),g=xe(h,m,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:i,[`${h}-vertical`]:o==="vertical"},s,l),v=d.useContext(x$),b=ai(c),y=d.useMemo(()=>b.map((S,w)=>{const E=(S==null?void 0:S.key)||`${h}-item-${w}`;return d.createElement(NTe,{key:E,compactSize:f,compactDirection:o,isFirstItem:w===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:w===b.length-1&&(!v||(v==null?void 0:v.isLastItem))},S)}),[r,b,v]);return b.length===0?null:p(d.createElement("div",Object.assign({className:g},u),y))};var DTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{prefixCls:r,size:o,className:i}=e,a=DTe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ho();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=xe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return d.createElement(Une.Provider,{value:o},d.createElement("div",Object.assign({},a,{className:u})))},fz=/^[\u4E00-\u9FA5]{2}$/,F3=fz.test.bind(fz);function _A(e){return e==="danger"?{danger:!0}:{type:e}}function hz(e){return typeof e=="string"}function kT(e){return e==="text"||e==="link"}function FTe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hz(e.type)&&F3(e.props.children)?Zo(e,{children:e.props.children.split("").join(n)}):hz(e)?F3(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):Mne(e)?de.createElement("span",null,e):e}function LTe(e,t){let n=!1;const r=[];return de.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),de.Children.map(r,o=>FTe(o,t))}["default","primary","danger"].concat(Ze(pp));const L3=d.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=xe(`${i}-icon`,n);return de.createElement("span",{ref:t,className:a,style:r},o)}),pz=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=xe(`${n}-loading-icon`,r);return de.createElement(L3,{prefixCls:n,className:a,style:o,ref:t},de.createElement(Gc,{className:i}))}),NT=()=>({width:0,opacity:0,transform:"scale(0)"}),AT=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),BTe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,s=!!n;return r?de.createElement(pz,{prefixCls:t,className:o,style:i}):de.createElement(Jo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:NT,onAppearActive:AT,onEnterStart:NT,onEnterActive:AT,onLeaveStart:AT,onLeaveActive:NT},(l,c)=>{let{className:u,style:f}=l;const h=Object.assign(Object.assign({},i),f);return de.createElement(pz,{prefixCls:t,className:xe(o,u),style:h,ref:c})})},mz=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),zTe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},mz(`${t}-primary`,o),mz(`${t}-danger`,i)]}};var HTe=["b"],UTe=["v"],DT=function(t){return Math.round(Number(t||0))},WTe=function(t){if(t instanceof Un)return t;if(t&&Ht(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=At(n,HTe);return z(z({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},oc=function(e){la(n,e);var t=Pa(n);function n(r){return br(this,n),t.call(this,WTe(r))}return Sr(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=DT(o.s*100),a=DT(o.b*100),s=DT(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=At(o,UTe);return z(z({},a),{},{b:i,a:this.a})}}]),n}(Un),VTe="rc-color-picker",og=function(t){return t instanceof oc?t:new oc(t)},KTe=og("#1677ff"),Wne=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),f=u.width,h=u.height,p=f/2,m=h/2,g=(n.x+p)/l,v=1-(n.y+m)/c,b=i.toHsb(),y=g,S=(n.x+p)/l*360;if(a)switch(a){case"hue":return og(z(z({},b),{},{h:S<=0?0:S}));case"alpha":return og(z(z({},b),{},{a:y<=0?0:y}))}return og({h:b.h,s:g<=0?0:g,b:v>=1?1:v,a:b.a})},Vne=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}}},$A=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return de.createElement("div",{className:xe(s,o),style:i,onClick:a},de.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function qTe(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 Kne(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=d.useState({x:0,y:0}),u=$e(c,2),f=u[0],h=u[1],p=d.useRef(null),m=d.useRef(null);d.useEffect(function(){h(a())},[s]),d.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 g=function(w){var E=qTe(w),C=E.pageX,x=E.pageY,_=n.current.getBoundingClientRect(),P=_.x,O=_.y,I=_.width,M=_.height,T=t.current.getBoundingClientRect(),D=T.width,A=T.height,j=D/2,k=A/2,F=Math.max(0,Math.min(C-P,I))-j,V=Math.max(0,Math.min(x-O,M))-k,W={x:F,y:r==="x"?f.y:V};if(D===0&&A===0||D!==A)return!1;o==null||o(W)},v=function(w){w.preventDefault(),g(w)},b=function(w){w.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,i==null||i()},y=function(w){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),!l&&(g(w),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b),p.current=v,m.current=b)};return[f,y]}var qne=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return de.createElement("div",{className:xe("".concat(i,"-handler"),Z({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},Gne=function(t){var n=t.children,r=t.style,o=t.prefixCls;return de.createElement("div",{className:"".concat(o,"-palette"),style:z({position:"relative"},r)},n)},Yne=d.forwardRef(function(e,t){var n=e.children,r=e.x,o=e.y;return de.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),GTe=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=d.useRef(),l=d.useRef(),c=d.useRef(n),u=An(function(g){var v=Wne({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),f=Kne({color:n,containerRef:s,targetRef:l,calculate:function(){return Vne(n)},onDragChange:u,onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),h=$e(f,2),p=h[0],m=h[1];return de.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:m,onTouchStart:m},de.createElement(Gne,{prefixCls:o},de.createElement(Yne,{x:p.x,y:p.y,ref:l},de.createElement(qne,{color:n.toRgbString(),prefixCls:o})),de.createElement("div",{className:"".concat(o,"-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))"}})))},YTe=function(t,n){var r=xn(t,{value:n}),o=$e(r,2),i=o[0],a=o[1],s=d.useMemo(function(){return og(i)},[i]);return[s,a]},XTe=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=d.useMemo(function(){return n.map(function(c,u){var f=og(c);return a==="alpha"&&u===n.length-1&&(f=new oc(f.setA(1))),f.toRgbString()}).join(",")},[n,a]);return de.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},QTe=function(t){var n=t.prefixCls,r=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=d.useRef(),u=d.useRef(),f=d.useRef(s),h=function(E){return l==="hue"?E.getHue():E.a*100},p=An(function(w){var E=Wne({offset:w,targetRef:u,containerRef:c,color:s,type:l});f.current=E,i(h(E))}),m=Kne({color:s,targetRef:u,containerRef:c,calculate:function(){return Vne(s,l)},onDragChange:p,onDragChangeComplete:function(){a(h(f.current))},direction:"x",disabledDrag:o}),g=$e(m,2),v=g[0],b=g[1],y=de.useMemo(function(){if(l==="hue"){var w=s.toHsb();w.s=1,w.b=1,w.a=1;var E=new oc(w);return E}return s},[s,l]),S=de.useMemo(function(){return r.map(function(w){return"".concat(w.color," ").concat(w.percent,"%")})},[r]);return de.createElement("div",{ref:c,className:xe("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:b,onTouchStart:b},de.createElement(Gne,{prefixCls:n},de.createElement(Yne,{x:v.x,y:v.y,ref:u},de.createElement(qne,{size:"small",color:y.toHexString(),prefixCls:n})),de.createElement(XTe,{colors:S,type:l,prefixCls:n})))};function JTe(e){return d.useMemo(function(){var t=e||{},n=t.slider;return[n||QTe]},[e])}var ZTe=[{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}],eRe=d.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?VTe:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,h=f===void 0?!1:f,p=e.disabled,m=p===void 0?!1:p,g=e.components,v=JTe(g),b=$e(v,1),y=b[0],S=YTe(r||KTe,n),w=$e(S,2),E=w[0],C=w[1],x=d.useMemo(function(){return E.setA(1).toRgbString()},[E]),_=function(V,W){n||C(V),a==null||a(V,W)},P=function(V){return new oc(E.setHue(V))},O=function(V){return new oc(E.setA(V/100))},I=function(V){_(P(V),{type:"hue",value:V})},M=function(V){_(O(V),{type:"alpha",value:V})},T=function(V){s&&s(P(V))},D=function(V){s&&s(O(V))},A=xe("".concat(i,"-panel"),l,Z({},"".concat(i,"-panel-disabled"),m)),j={prefixCls:i,disabled:m,color:E},k=de.createElement(de.Fragment,null,de.createElement(GTe,Ge({onChange:_},j,{onChangeComplete:s})),de.createElement("div",{className:"".concat(i,"-slider-container")},de.createElement("div",{className:xe("".concat(i,"-slider-group"),Z({},"".concat(i,"-slider-group-disabled-alpha"),h))},de.createElement(y,Ge({},j,{type:"hue",colors:ZTe,min:0,max:359,value:E.getHue(),onChange:I,onChangeComplete:T})),!h&&de.createElement(y,Ge({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:x}],min:0,max:100,value:E.a*100,onChange:M,onChangeComplete:D}))),de.createElement($A,{color:E.toRgbString(),prefixCls:i})));return de.createElement("div",{className:A,style:c,ref:t},typeof u=="function"?u(k):k)});const uy=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",tRe=(e,t)=>e?uy(e,t):"";let Ss=function(){function e(t){br(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(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(o=>{let{color:i,percent:a}=o;return{color:new e(i),percent:a}}),this.metaColor=new oc(this.colors[0].color.metaColor)):this.metaColor=new oc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Sr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return tRe(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(o=>`${o.color.toRgbString()} ${o.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,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();var nRe={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"},rRe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:nRe}))},nd=d.forwardRef(rRe),Xne=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,a=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=de.useState(s||r),h=$e(f,2),p=h[0],m=h[1];return de.useEffect(function(){(r||s)&&m(!0)},[r,s]),p?de.createElement("div",{ref:t,className:xe("".concat(n,"-content"),Z(Z({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:i,role:l},de.createElement("div",{className:xe("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null});Xne.displayName="PanelContent";var oRe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Qne=de.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,i=e.isActive,a=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,h=f===void 0?{}:f,p=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,b=e.extra,y=e.header,S=e.expandIcon,w=e.openMotion,E=e.destroyInactivePanel,C=e.children,x=At(e,oRe),_=m==="disabled",P=b!=null&&typeof b!="boolean",O=Z(Z(Z({onClick:function(){a==null||a(v)},onKeyDown:function(k){(k.key==="Enter"||k.keyCode===ut.ENTER||k.which===ut.ENTER)&&(a==null||a(v))},role:g?"tab":"button"},"aria-expanded",i),"aria-disabled",_),"tabIndex",_?-1:0),I=typeof S=="function"?S(e):de.createElement("i",{className:"arrow"}),M=I&&de.createElement("div",Ge({className:"".concat(p,"-expand-icon")},["header","icon"].includes(m)?O:{}),I),T=xe("".concat(p,"-item"),Z(Z({},"".concat(p,"-item-active"),i),"".concat(p,"-item-disabled"),_),l),D=xe(o,"".concat(p,"-header"),Z({},"".concat(p,"-collapsible-").concat(m),!!m),u.header),A=z({className:D,style:h.header},["header","icon"].includes(m)?{}:O);return de.createElement("div",Ge({},x,{ref:t,className:T}),de.createElement("div",A,r&&M,de.createElement("span",Ge({className:"".concat(p,"-header-text")},m==="header"?O:{}),y),P&&de.createElement("div",{className:"".concat(p,"-extra")},b)),de.createElement(Jo,Ge({visible:i,leavedClassName:"".concat(p,"-content-hidden")},w,{forceRender:s,removeOnLeave:E}),function(j,k){var F=j.className,V=j.style;return de.createElement(Xne,{ref:k,prefixCls:p,className:F,classNames:u,style:V,styles:h,isActive:i,forceRender:s,role:g?"tabpanel":void 0},C)}))}),iRe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],aRe=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,h){var p=f.children,m=f.label,g=f.key,v=f.collapsible,b=f.onItemClick,y=f.destroyInactivePanel,S=At(f,iRe),w=String(g??h),E=v??i,C=y??a,x=function(O){E!=="disabled"&&(s(O),b==null||b(O))},_=!1;return o?_=l[0]===w:_=l.indexOf(w)>-1,de.createElement(Qne,Ge({},S,{prefixCls:r,key:w,panelKey:w,isActive:_,accordion:o,openMotion:c,expandIcon:u,header:m,collapsible:E,onItemClick:x,destroyInactivePanel:C}),p)})},sRe=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,h=t.key||String(n),p=t.props,m=p.header,g=p.headerClass,v=p.destroyInactivePanel,b=p.collapsible,y=p.onItemClick,S=!1;i?S=c[0]===h:S=c.indexOf(h)>-1;var w=b??a,E=function(_){w!=="disabled"&&(l(_),y==null||y(_))},C={key:h,panelKey:h,header:m,headerClass:g,isActive:S,prefixCls:o,destroyInactivePanel:v??s,openMotion:u,accordion:i,children:t.props.children,onItemClick:E,expandIcon:f,collapsible:w};return typeof t.type=="string"?t:(Object.keys(C).forEach(function(x){typeof C[x]>"u"&&delete C[x]}),de.cloneElement(t,C))};function lRe(e,t,n){return Array.isArray(e)?aRe(e,n):ai(t).map(function(r,o){return sRe(r,o,n)})}function cRe(e){var t=e;if(!Array.isArray(t)){var n=Ht(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var uRe=de.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,h=e.expandIcon,p=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,b=xe(r,l),y=xn([],{value:p,onChange:function(P){return g==null?void 0:g(P)},defaultValue:m,postState:cRe}),S=$e(y,2),w=S[0],E=S[1],C=function(P){return E(function(){if(s)return w[0]===P?[]:[P];var O=w.indexOf(P),I=O>-1;return I?w.filter(function(M){return M!==P}):[].concat(Ze(w),[P])})};yr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=lRe(v,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:h,collapsible:u,destroyInactivePanel:i,onItemClick:C,activeKey:w});return de.createElement("div",Ge({ref:t,className:b,style:a,role:s?"tablist":void 0},Jr(e,{aria:!0,data:!0})),x)});const PA=Object.assign(uRe,{Panel:Qne});PA.Panel;const dRe=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(Yt),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=xe({[`${a}-no-arrow`]:!i},o);return d.createElement(PA.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),U1=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`}}}),hRe=e=>({animationDuration:e,animationFillMode:"both"}),pRe=e=>({animationDuration:e,animationFillMode:"both"}),E$=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),fRe=e=>({animationDuration:e,animationFillMode:"both"}),hRe=e=>({animationDuration:e,animationFillMode:"both"}),E$=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear - `]:Object.assign(Object.assign({},hRe(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},pRe(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},fRe(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},hRe(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},mRe=new Gn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),gRe=new Gn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),TA=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[E$(r,mRe,gRe,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pRe=new Gn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),mRe=new Gn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),OA=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[E$(r,pRe,mRe,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},vRe=new Gn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yRe=new Gn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),bRe=new Gn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),SRe=new Gn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),CRe=new Gn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wRe=new Gn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),xRe=new Gn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ERe=new Gn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),_Re={"move-up":{inKeyframes:xRe,outKeyframes:ERe},"move-down":{inKeyframes:vRe,outKeyframes:yRe},"move-left":{inKeyframes:bRe,outKeyframes:SRe},"move-right":{inKeyframes:CRe,outKeyframes:wRe}},Wg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=_Re[t];return[E$(r,o,i,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},gRe=new Gn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vRe=new Gn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),yRe=new Gn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bRe=new Gn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SRe=new Gn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CRe=new Gn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),wRe=new Gn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xRe=new Gn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ERe={"move-up":{inKeyframes:wRe,outKeyframes:xRe},"move-down":{inKeyframes:gRe,outKeyframes:vRe},"move-left":{inKeyframes:yRe,outKeyframes:bRe},"move-right":{inKeyframes:SRe,outKeyframes:CRe}},Wg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ERe[t];return[E$(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_$=new Gn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$$=new Gn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),P$=new Gn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),O$=new Gn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$Re=new Gn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),PRe=new Gn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ORe=new Gn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),MRe=new Gn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),TRe={"slide-up":{inKeyframes:_$,outKeyframes:$$},"slide-down":{inKeyframes:P$,outKeyframes:O$},"slide-left":{inKeyframes:$Re,outKeyframes:PRe},"slide-right":{inKeyframes:ORe,outKeyframes:MRe}},Yc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=TRe[t];return[E$(r,o,i,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_$=new Gn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$$=new Gn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),P$=new Gn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),O$=new Gn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_Re=new Gn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),$Re=new Gn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),PRe=new Gn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ORe=new Gn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),MRe={"slide-up":{inKeyframes:_$,outKeyframes:$$},"slide-down":{inKeyframes:P$,outKeyframes:O$},"slide-left":{inKeyframes:_Re,outKeyframes:$Re},"slide-right":{inKeyframes:PRe,outKeyframes:ORe}},Yc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=MRe[t];return[E$(r,o,i,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}}]},RA=new Gn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),RRe=new Gn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),yz=new Gn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bz=new Gn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),IRe=new Gn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),kRe=new Gn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),NRe=new Gn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ARe=new Gn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),DRe=new Gn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),jRe=new Gn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),FRe=new Gn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),LRe=new Gn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),BRe={zoom:{inKeyframes:RA,outKeyframes:RRe},"zoom-big":{inKeyframes:yz,outKeyframes:bz},"zoom-big-fast":{inKeyframes:yz,outKeyframes:bz},"zoom-left":{inKeyframes:NRe,outKeyframes:ARe},"zoom-right":{inKeyframes:DRe,outKeyframes:jRe},"zoom-up":{inKeyframes:IRe,outKeyframes:kRe},"zoom-down":{inKeyframes:FRe,outKeyframes:LRe}},Mv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=BRe[t];return[E$(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},MA=new Gn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),TRe=new Gn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),gz=new Gn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vz=new Gn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),RRe=new Gn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),IRe=new Gn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),kRe=new Gn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),NRe=new Gn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ARe=new Gn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),DRe=new Gn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),jRe=new Gn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),FRe=new Gn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),LRe={zoom:{inKeyframes:MA,outKeyframes:TRe},"zoom-big":{inKeyframes:gz,outKeyframes:vz},"zoom-big-fast":{inKeyframes:gz,outKeyframes:vz},"zoom-left":{inKeyframes:kRe,outKeyframes:NRe},"zoom-right":{inKeyframes:ARe,outKeyframes:DRe},"zoom-up":{inKeyframes:RRe,outKeyframes:IRe},"zoom-down":{inKeyframes:jRe,outKeyframes:FRe}},Mv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=LRe[t];return[E$(r,o,i,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}}]},zRe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:h,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:b,marginSM:y,paddingSM:S,paddingLG:w,paddingXS:E,motionDurationSlow:C,fontSizeIcon:x,contentPadding:_,fontHeight:P,fontHeightLG:O}=e,I=`${_e(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},Qn(e)),{backgroundColor:o,border:I,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:first-child":{[` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},BRe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:h,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:b,marginSM:y,paddingSM:S,paddingLG:w,paddingXS:E,motionDurationSlow:C,fontSizeIcon:x,contentPadding:_,fontHeight:P,fontHeightLG:O}=e,I=`${_e(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},Qn(e)),{backgroundColor:o,border:I,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:first-child":{[` &, & > ${t}-header`]:{borderRadius:`${_e(l)} ${_e(l)} 0 0`}},"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${_e(l)} ${_e(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`},Ka(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:P,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},Fp()),{fontSize:x,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${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:I,[`& > ${t}-content-box`]:{padding:_},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:E,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(S).sub(E).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:b,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${_e(l)} ${_e(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:y}}}}})}},HRe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},URe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${_e(l)} ${_e(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`},Ka(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:P,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},Fp()),{fontSize:x,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${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:I,[`& > ${t}-content-box`]:{padding:_},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:E,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(S).sub(E).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:b,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${_e(l)} ${_e(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:y}}}}})}},zRe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},HRe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${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}}}},WRe=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}}}}}},VRe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),KRe=Kn("Collapse",e=>{const t=kn(e,{collapseHeaderPaddingSM:`${_e(e.paddingXS)} ${_e(e.paddingSM)}`,collapseHeaderPaddingLG:`${_e(e.padding)} ${_e(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[zRe(t),URe(t),WRe(t),HRe(t),H1(t)]},VRe),qRe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=d.useContext(Yt),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:h="start",children:p,expandIcon:m}=e,g=Eo(I=>{var M;return(M=f??I)!==null&&M!==void 0?M:"middle"}),v=n("collapse",i),b=n(),[y,S,w]=KRe(v),E=d.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),C=m??(o==null?void 0:o.expandIcon),x=d.useCallback(function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=typeof C=="function"?C(I):d.createElement(rd,{rotate:I.isActive?r==="rtl"?-90:90:void 0,"aria-label":I.isActive?"expanded":"collapsed"});return Zo(M,()=>{var T;return{className:xe((T=M==null?void 0:M.props)===null||T===void 0?void 0:T.className,`${v}-arrow`)}})},[C,v]),_=xe(`${v}-icon-position-${E}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},o==null?void 0:o.className,a,s,S,w),P=Object.assign(Object.assign({},Ug(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),O=d.useMemo(()=>p?ai(p).map((I,M)=>{var T,D;const A=I.props;if(A!=null&&A.disabled){const j=(T=I.key)!==null&&T!==void 0?T:String(M),k=Object.assign(Object.assign({},Yn(I.props,["disabled"])),{key:j,collapsible:(D=A.collapsible)!==null&&D!==void 0?D:"disabled"});return Zo(I,k)}return I}):null,[p]);return y(d.createElement(MA,Object.assign({ref:t,openMotion:P},Yn(e,["rootClassName"]),{expandIcon:x,prefixCls:v,className:_,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),O))}),GRe=Object.assign(qRe,{Panel:fRe}),oa=e=>e instanceof Ss?e:new Ss(e),tx=e=>Math.round(Number(e||0)),IA=e=>tx(e.toHsb().a*100),nx=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,oa(r)}return n.a=1,oa(n)},Zne=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Ze(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(oa),t)),ere=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new oc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},Sz=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},YRe=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=zi("ColorPicker"),[,a]=Ho(),[s]=xn(jT(n),{value:jT(n),postState:jT}),l=`${t}-presets`,c=d.useMemo(()=>s.reduce((h,p,m)=>{const{defaultOpen:g=!0}=p;return g&&h.push(Sz(p,m)),h},[]),[s]),u=h=>{o==null||o(h)},f=s.map((h,p)=>{var m;return{key:Sz(h,p),label:de.createElement("div",{className:`${l}-label`},h==null?void 0:h.label),children:de.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((g,v)=>de.createElement(OA,{key:`preset-${v}-${g.toHexString()}`,color:oa(g).toRgbString(),prefixCls:t,className:xe(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:ere(g,a.colorBgElevated)}),onClick:()=>u(g)})):de.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return de.createElement("div",{className:l},de.createElement(GRe,{defaultActiveKey:c,ghost:!0,items:f}))},tre=e=>{const{paddingInline:t,onlyIconSize:n}=e;return kn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},nre=e=>{var t,n,r,o,i,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=(o=e.contentLineHeight)!==null&&o!==void 0?o:Zw(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Zw(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Zw(c),p=ere(new Ss(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:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},XRe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,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:`${_e(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`]:Fp(),"> a":{color:"currentColor"},"&:not(:disabled)":Ka(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:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${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()}}}}}},rre=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),QRe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),JRe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ZRe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),kA=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},rre(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),eIe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ZRe(e))}),tIe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),M$=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?tIe:eIe;return Object.assign(Object.assign({},i(e)),rre(e.componentCls,t,n))},T$=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},M$(e,r,o))}),R$=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},M$(e,r,o))}),I$=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),k$=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},M$(e,n,r))}),Ef=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},M$(e,r,o,n))}),nIe=e=>{const{componentCls:t}=e;return pp.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${_e(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:o,boxShadow:u},T$(e,e.colorTextLightSolid,o,{background:a},{background:c})),R$(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),I$(e)),k$(e,i,{background:s},{background:l})),Ef(e,o,"link",{color:a},{color:c})),Ef(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},rIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},T$(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),I$(e)),k$(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Ef(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),kA(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),oIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},R$(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),I$(e)),k$(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ef(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),kA(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),iIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},T$(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),R$(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),I$(e)),k$(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ef(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ef(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),kA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),aIe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:rIe(e),[`${t}-color-primary`]:oIe(e),[`${t}-color-dangerous`]:iIe(e)},nIe(e))},sIe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},R$(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ef(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),T$(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ef(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),NA=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${_e(l)} ${_e(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:QRe(e)},{[`${n}${n}-round${t}`]:JRe(e)}]},lIe=e=>{const t=kn(e,{fontSize:e.contentFontSize});return NA(t,e.componentCls)},cIe=e=>{const t=kn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return NA(t,`${e.componentCls}-sm`)},uIe=e=>{const t=kn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return NA(t,`${e.componentCls}-lg`)},dIe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},fIe=Kn("Button",e=>{const t=tre(e);return[XRe(t),lIe(t),cIe(t),uIe(t),dIe(t),aIe(t),sIe(t),HTe(t)]},nre,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function hIe(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"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 pIe(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Bp(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({},hIe(e,r,t)),pIe(n,r,t))}}function mIe(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 gIe(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 vIe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},mIe(e,t)),gIe(e.componentCls,t))}}const yIe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(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?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},bIe=$v(["Button","compact"],e=>{const t=tre(e);return[Bp(t),vIe(t),yIe(t)]},nre);var SIe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i;const{loading:a=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:h="default",size:p,styles:m,disabled:g,className:v,rootClassName:b,children:y,icon:S,iconPosition:w="start",ghost:E=!1,block:C=!1,htmlType:x="button",classNames:_,style:P={},autoInsertSpace:O,autoFocus:I}=e,M=SIe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),T=u||"default",[D,A]=d.useMemo(()=>{if(l&&c)return[l,c];const He=wIe[T]||[];return f?["danger",He[1]]:He},[u,l,c,f]),k=D==="danger"?"dangerous":D,{getPrefixCls:F,direction:V,button:W}=d.useContext(Yt),K=(n=O??(W==null?void 0:W.autoInsertSpace))!==null&&n!==void 0?n:!0,L=F("btn",s),[Q,ee,re]=fIe(L),ie=d.useContext(zo),G=g??ie,X=d.useContext(Wne),ne=d.useMemo(()=>CIe(a),[a]),[le,ce]=d.useState(ne.loading),[oe,se]=d.useState(!1),fe=d.useRef(null),te=mc(t,fe),he=d.Children.count(y)===1&&!S&&!kT(A),pe=d.useRef(!0);de.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),d.useEffect(()=>{let He=null;ne.delay>0?He=setTimeout(()=>{He=null,ce(!0)},ne.delay):ce(ne.loading);function ge(){He&&(clearTimeout(He),He=null)}return ge},[ne]),d.useEffect(()=>{if(!fe.current||!K)return;const He=fe.current.textContent||"";he&&L3(He)?oe||se(!0):oe&&se(!1)}),d.useEffect(()=>{I&&fe.current&&fe.current.focus()},[]);const Oe=de.useCallback(He=>{var ge;if(le||G){He.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,He)},[e.onClick,le,G]),{compactSize:Me,compactItemClassnames:Se}=gc(L,V),ye={large:"lg",small:"sm",middle:void 0},ve=Eo(He=>{var ge,De;return(De=(ge=p??Me)!==null&&ge!==void 0?ge:X)!==null&&De!==void 0?De:He}),be=ve&&(r=ye[ve])!==null&&r!==void 0?r:"",Pe=le?"loading":S,Ne=Yn(M,["navigate"]),U=xe(L,ee,re,{[`${L}-${h}`]:h!=="default"&&h,[`${L}-${T}`]:T,[`${L}-dangerous`]:f,[`${L}-color-${k}`]:k,[`${L}-variant-${A}`]:A,[`${L}-${be}`]:be,[`${L}-icon-only`]:!y&&y!==0&&!!Pe,[`${L}-background-ghost`]:E&&!kT(A),[`${L}-loading`]:le,[`${L}-two-chinese-chars`]:oe&&K&&!le,[`${L}-block`]:C,[`${L}-rtl`]:V==="rtl",[`${L}-icon-end`]:w==="end"},Se,v,b,W==null?void 0:W.className),H=Object.assign(Object.assign({},W==null?void 0:W.style),P),q=xe(_==null?void 0:_.icon,(o=W==null?void 0:W.classNames)===null||o===void 0?void 0:o.icon),me=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((i=W==null?void 0:W.styles)===null||i===void 0?void 0:i.icon)||{}),Ce=S&&!le?de.createElement(B3,{prefixCls:L,className:q,style:me},S):typeof a=="object"&&a.icon?de.createElement(B3,{prefixCls:L,className:q,style:me},a.icon):de.createElement(zTe,{existIcon:!!S,prefixCls:L,loading:le,mount:pe.current}),ue=y||y===0?BTe(y,he&&K):null;if(Ne.href!==void 0)return Q(de.createElement("a",Object.assign({},Ne,{className:xe(U,{[`${L}-disabled`]:G}),href:G?void 0:Ne.href,style:H,onClick:Oe,ref:te,tabIndex:G?-1:0}),Ce,ue));let Le=de.createElement("button",Object.assign({},M,{type:x,className:U,style:H,onClick:Oe,disabled:G,ref:te}),Ce,ue,Se&&de.createElement(bIe,{prefixCls:L}));return kT(A)||(Le=de.createElement(z1,{component:"Button",disabled:le},Le)),Q(Le)}),Hn=xIe;Hn.Group=FTe;Hn.__ANT_BUTTON=!0;function FT(e){return!!(e!=null&&e.then)}const AA=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),h=d.useRef(null),[p,m]=hp(!1),g=function(){i==null||i.apply(void 0,arguments)};d.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var S;(S=h.current)===null||S===void 0||S.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const v=y=>{FT(y)&&(m(!0),y.then(function(){m(!1,!0),g.apply(void 0,arguments),f.current=!1},S=>{if(m(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(S)}))},b=y=>{if(f.current)return;if(f.current=!0,!u){g();return}let S;if(s){if(S=u(y),c&&!FT(S)){f.current=!1,g(y);return}}else if(u.length)S=u(i),f.current=!1;else if(S=u(),!FT(S)){g();return}v(S)};return d.createElement(Hn,Object.assign({},PA(t),{onClick:b,loading:p,prefixCls:r},o,{ref:h}),n)},U1=de.createContext({}),{Provider:ore}=U1,Cz=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=d.useContext(U1);return o?de.createElement(AA,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},wz=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=d.useContext(U1);return de.createElement(AA,{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:`${o}-btn`},i)};var ire=d.createContext(null),xz=[];function EIe(e,t){var n=d.useState(function(){if(!Ca())return null;var m=document.createElement("div");return m}),r=$e(n,1),o=r[0],i=d.useRef(!1),a=d.useContext(ire),s=d.useState(xz),l=$e(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(m){u(function(g){var v=[m].concat(Ze(g));return v})});function h(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var m;(m=o.parentElement)===null||m===void 0||m.removeChild(o),i.current=!1}return Zn(function(){return e?a?a(h):h():p(),p},[e]),Zn(function(){c.length&&(c.forEach(function(m){return m()}),u(xz))},[c]),[o,f]}var LT;function are(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 o,i;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,";"):"",f=c?"height: ".concat(s.height,";"):"";v$(` + `]:{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}}}},URe=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}}}}}},WRe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),VRe=Kn("Collapse",e=>{const t=kn(e,{collapseHeaderPaddingSM:`${_e(e.paddingXS)} ${_e(e.paddingSM)}`,collapseHeaderPaddingLG:`${_e(e.padding)} ${_e(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[BRe(t),HRe(t),URe(t),zRe(t),U1(t)]},WRe),KRe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=d.useContext(Yt),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:h="start",children:p,expandIcon:m}=e,g=Eo(I=>{var M;return(M=f??I)!==null&&M!==void 0?M:"middle"}),v=n("collapse",i),b=n(),[y,S,w]=VRe(v),E=d.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),C=m??(o==null?void 0:o.expandIcon),x=d.useCallback(function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=typeof C=="function"?C(I):d.createElement(nd,{rotate:I.isActive?r==="rtl"?-90:90:void 0,"aria-label":I.isActive?"expanded":"collapsed"});return Zo(M,()=>{var T;return{className:xe((T=M==null?void 0:M.props)===null||T===void 0?void 0:T.className,`${v}-arrow`)}})},[C,v]),_=xe(`${v}-icon-position-${E}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},o==null?void 0:o.className,a,s,S,w),P=Object.assign(Object.assign({},Ug(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),O=d.useMemo(()=>p?ai(p).map((I,M)=>{var T,D;const A=I.props;if(A!=null&&A.disabled){const j=(T=I.key)!==null&&T!==void 0?T:String(M),k=Object.assign(Object.assign({},Yn(I.props,["disabled"])),{key:j,collapsible:(D=A.collapsible)!==null&&D!==void 0?D:"disabled"});return Zo(I,k)}return I}):null,[p]);return y(d.createElement(PA,Object.assign({ref:t,openMotion:P},Yn(e,["rootClassName"]),{expandIcon:x,prefixCls:v,className:_,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),O))}),qRe=Object.assign(KRe,{Panel:dRe}),oa=e=>e instanceof Ss?e:new Ss(e),nx=e=>Math.round(Number(e||0)),TA=e=>nx(e.toHsb().a*100),rx=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,oa(r)}return n.a=1,oa(n)},Jne=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Ze(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(oa),t)),Zne=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new oc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},yz=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},GRe=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=zi("ColorPicker"),[,a]=Ho(),[s]=xn(jT(n),{value:jT(n),postState:jT}),l=`${t}-presets`,c=d.useMemo(()=>s.reduce((h,p,m)=>{const{defaultOpen:g=!0}=p;return g&&h.push(yz(p,m)),h},[]),[s]),u=h=>{o==null||o(h)},f=s.map((h,p)=>{var m;return{key:yz(h,p),label:de.createElement("div",{className:`${l}-label`},h==null?void 0:h.label),children:de.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((g,v)=>de.createElement($A,{key:`preset-${v}-${g.toHexString()}`,color:oa(g).toRgbString(),prefixCls:t,className:xe(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Zne(g,a.colorBgElevated)}),onClick:()=>u(g)})):de.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return de.createElement("div",{className:l},de.createElement(qRe,{defaultActiveKey:c,ghost:!0,items:f}))},ere=e=>{const{paddingInline:t,onlyIconSize:n}=e;return kn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},tre=e=>{var t,n,r,o,i,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=(o=e.contentLineHeight)!==null&&o!==void 0?o:ex(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ex(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ex(c),p=Zne(new Ss(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:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},YRe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,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:`${_e(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`]:Fp(),"> a":{color:"currentColor"},"&:not(:disabled)":Ka(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:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${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()}}}}}},nre=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),XRe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),QRe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),JRe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),RA=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},nre(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),ZRe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},JRe(e))}),eIe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),M$=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?eIe:ZRe;return Object.assign(Object.assign({},i(e)),nre(e.componentCls,t,n))},T$=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},M$(e,r,o))}),R$=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},M$(e,r,o))}),I$=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),k$=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},M$(e,n,r))}),Ef=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},M$(e,r,o,n))}),tIe=e=>{const{componentCls:t}=e;return pp.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${_e(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:o,boxShadow:u},T$(e,e.colorTextLightSolid,o,{background:a},{background:c})),R$(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),I$(e)),k$(e,i,{background:s},{background:l})),Ef(e,o,"link",{color:a},{color:c})),Ef(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},nIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},T$(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),I$(e)),k$(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Ef(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),RA(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),rIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},R$(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),I$(e)),k$(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ef(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),RA(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),oIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},T$(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),R$(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),I$(e)),k$(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ef(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ef(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),RA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),iIe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:nIe(e),[`${t}-color-primary`]:rIe(e),[`${t}-color-dangerous`]:oIe(e)},tIe(e))},aIe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},R$(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ef(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),T$(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ef(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),IA=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${_e(l)} ${_e(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:XRe(e)},{[`${n}${n}-round${t}`]:QRe(e)}]},sIe=e=>{const t=kn(e,{fontSize:e.contentFontSize});return IA(t,e.componentCls)},lIe=e=>{const t=kn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return IA(t,`${e.componentCls}-sm`)},cIe=e=>{const t=kn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return IA(t,`${e.componentCls}-lg`)},uIe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},dIe=Kn("Button",e=>{const t=ere(e);return[YRe(t),sIe(t),lIe(t),cIe(t),uIe(t),iIe(t),aIe(t),zTe(t)]},tre,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function fIe(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"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 hIe(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Bp(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({},fIe(e,r,t)),hIe(n,r,t))}}function pIe(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 mIe(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 gIe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},pIe(e,t)),mIe(e.componentCls,t))}}const vIe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(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?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},yIe=$v(["Button","compact"],e=>{const t=ere(e);return[Bp(t),gIe(t),vIe(t)]},tre);var bIe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i;const{loading:a=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:h="default",size:p,styles:m,disabled:g,className:v,rootClassName:b,children:y,icon:S,iconPosition:w="start",ghost:E=!1,block:C=!1,htmlType:x="button",classNames:_,style:P={},autoInsertSpace:O,autoFocus:I}=e,M=bIe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),T=u||"default",[D,A]=d.useMemo(()=>{if(l&&c)return[l,c];const He=CIe[T]||[];return f?["danger",He[1]]:He},[u,l,c,f]),k=D==="danger"?"dangerous":D,{getPrefixCls:F,direction:V,button:W}=d.useContext(Yt),K=(n=O??(W==null?void 0:W.autoInsertSpace))!==null&&n!==void 0?n:!0,L=F("btn",s),[Q,ee,re]=dIe(L),ie=d.useContext(zo),G=g??ie,X=d.useContext(Une),ne=d.useMemo(()=>SIe(a),[a]),[le,ce]=d.useState(ne.loading),[oe,se]=d.useState(!1),fe=d.useRef(null),te=mc(t,fe),he=d.Children.count(y)===1&&!S&&!kT(A),pe=d.useRef(!0);de.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),d.useEffect(()=>{let He=null;ne.delay>0?He=setTimeout(()=>{He=null,ce(!0)},ne.delay):ce(ne.loading);function ge(){He&&(clearTimeout(He),He=null)}return ge},[ne]),d.useEffect(()=>{if(!fe.current||!K)return;const He=fe.current.textContent||"";he&&F3(He)?oe||se(!0):oe&&se(!1)}),d.useEffect(()=>{I&&fe.current&&fe.current.focus()},[]);const Oe=de.useCallback(He=>{var ge;if(le||G){He.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,He)},[e.onClick,le,G]),{compactSize:Me,compactItemClassnames:Se}=gc(L,V),ye={large:"lg",small:"sm",middle:void 0},ve=Eo(He=>{var ge,De;return(De=(ge=p??Me)!==null&&ge!==void 0?ge:X)!==null&&De!==void 0?De:He}),be=ve&&(r=ye[ve])!==null&&r!==void 0?r:"",Pe=le?"loading":S,Ne=Yn(M,["navigate"]),U=xe(L,ee,re,{[`${L}-${h}`]:h!=="default"&&h,[`${L}-${T}`]:T,[`${L}-dangerous`]:f,[`${L}-color-${k}`]:k,[`${L}-variant-${A}`]:A,[`${L}-${be}`]:be,[`${L}-icon-only`]:!y&&y!==0&&!!Pe,[`${L}-background-ghost`]:E&&!kT(A),[`${L}-loading`]:le,[`${L}-two-chinese-chars`]:oe&&K&&!le,[`${L}-block`]:C,[`${L}-rtl`]:V==="rtl",[`${L}-icon-end`]:w==="end"},Se,v,b,W==null?void 0:W.className),H=Object.assign(Object.assign({},W==null?void 0:W.style),P),q=xe(_==null?void 0:_.icon,(o=W==null?void 0:W.classNames)===null||o===void 0?void 0:o.icon),me=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((i=W==null?void 0:W.styles)===null||i===void 0?void 0:i.icon)||{}),Ce=S&&!le?de.createElement(L3,{prefixCls:L,className:q,style:me},S):typeof a=="object"&&a.icon?de.createElement(L3,{prefixCls:L,className:q,style:me},a.icon):de.createElement(BTe,{existIcon:!!S,prefixCls:L,loading:le,mount:pe.current}),ue=y||y===0?LTe(y,he&&K):null;if(Ne.href!==void 0)return Q(de.createElement("a",Object.assign({},Ne,{className:xe(U,{[`${L}-disabled`]:G}),href:G?void 0:Ne.href,style:H,onClick:Oe,ref:te,tabIndex:G?-1:0}),Ce,ue));let Le=de.createElement("button",Object.assign({},M,{type:x,className:U,style:H,onClick:Oe,disabled:G,ref:te}),Ce,ue,Se&&de.createElement(yIe,{prefixCls:L}));return kT(A)||(Le=de.createElement(H1,{component:"Button",disabled:le},Le)),Q(Le)}),Hn=wIe;Hn.Group=jTe;Hn.__ANT_BUTTON=!0;function FT(e){return!!(e!=null&&e.then)}const kA=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),h=d.useRef(null),[p,m]=hp(!1),g=function(){i==null||i.apply(void 0,arguments)};d.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var S;(S=h.current)===null||S===void 0||S.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const v=y=>{FT(y)&&(m(!0),y.then(function(){m(!1,!0),g.apply(void 0,arguments),f.current=!1},S=>{if(m(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(S)}))},b=y=>{if(f.current)return;if(f.current=!0,!u){g();return}let S;if(s){if(S=u(y),c&&!FT(S)){f.current=!1,g(y);return}}else if(u.length)S=u(i),f.current=!1;else if(S=u(),!FT(S)){g();return}v(S)};return d.createElement(Hn,Object.assign({},_A(t),{onClick:b,loading:p,prefixCls:r},o,{ref:h}),n)},W1=de.createContext({}),{Provider:rre}=W1,bz=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=d.useContext(W1);return o?de.createElement(kA,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Sz=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=d.useContext(W1);return de.createElement(kA,{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:`${o}-btn`},i)};var ore=d.createContext(null),Cz=[];function xIe(e,t){var n=d.useState(function(){if(!Ca())return null;var m=document.createElement("div");return m}),r=$e(n,1),o=r[0],i=d.useRef(!1),a=d.useContext(ore),s=d.useState(Cz),l=$e(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(m){u(function(g){var v=[m].concat(Ze(g));return v})});function h(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var m;(m=o.parentElement)===null||m===void 0||m.removeChild(o),i.current=!1}return Zn(function(){return e?a?a(h):h():p(),p},[e]),Zn(function(){c.length&&(c.forEach(function(m){return m()}),u(Cz))},[c]),[o,f]}var LT;function ire(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 o,i;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,";"):"",f=c?"height: ".concat(s.height,";"):"";v$(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` -}`),t)}catch(m){console.error(m),o=l,i=c}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,p=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),P3(t),{width:h,height:p}}function Ez(e){return typeof document>"u"?0:(LT===void 0&&(LT=are()),LT.width)}function z3(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:are(e)}function _Ie(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var $Ie="rc-util-locker-".concat(Date.now()),_z=0;function PIe(e){var t=!!e,n=d.useState(function(){return _z+=1,"".concat($Ie,"_").concat(_z)}),r=$e(n,1),o=r[0];Zn(function(){if(t){var i=z3(document.body).width,a=_Ie();v$(` +}`),t)}catch(m){console.error(m),o=l,i=c}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,p=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),$3(t),{width:h,height:p}}function wz(e){return typeof document>"u"?0:(LT===void 0&&(LT=ire()),LT.width)}function B3(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:ire(e)}function EIe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _Ie="rc-util-locker-".concat(Date.now()),xz=0;function $Ie(e){var t=!!e,n=d.useState(function(){return xz+=1,"".concat(_Ie,"_").concat(xz)}),r=$e(n,1),o=r[0];Zn(function(){if(t){var i=B3(document.body).width,a=EIe();v$(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` -}`),o)}else P3(o);return function(){P3(o)}},[t,o])}var OIe=!1;function MIe(e){return OIe}var $z=function(t){return t===!1?!1:!Ca()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},W1=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=d.useState(n),c=$e(l,2),u=c[0],f=c[1],h=u||n;d.useEffect(function(){(a||n)&&f(n)},[n,a]);var p=d.useState(function(){return $z(o)}),m=$e(p,2),g=m[0],v=m[1];d.useEffect(function(){var I=$z(o);v(I??null)});var b=EIe(h&&!g),y=$e(b,2),S=y[0],w=y[1],E=g??S;PIe(r&&n&&Ca()&&(E===S||E===document.body));var C=null;if(s&&tc(s)&&t){var x=s;C=x.ref}var _=mc(C,t);if(!h||!Ca()||g===void 0)return null;var P=E===!1||MIe(),O=s;return t&&(O=d.cloneElement(s,{ref:_})),d.createElement(ire.Provider,{value:w},P?O:hi.createPortal(O,E))}),sre=d.createContext({});function TIe(){var e=z({},b1);return e.useId}var Pz=0,Oz=TIe();const N$=Oz?function(t){var n=Oz();return t||n}:function(t){var n=d.useState("ssr-id"),r=$e(n,2),o=r[0],i=r[1];return d.useEffect(function(){var a=Pz;Pz+=1,i("rc_unique_".concat(a))},[]),t||o};function Mz(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Tz(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function RIe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Tz(o),n.top+=Tz(o,!0),n}const IIe=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var kIe={width:0,height:0,overflow:"hidden",outline:"none"},NIe={outline:"none"},lre=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,h=e.bodyStyle,p=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,b=e.holderRef,y=e.visible,S=e.forceRender,w=e.width,E=e.height,C=e.classNames,x=e.styles,_=de.useContext(sre),P=_.panel,O=mc(b,P),I=d.useRef(),M=d.useRef();de.useImperativeHandle(t,function(){return{focus:function(){var L;(L=I.current)===null||L===void 0||L.focus({preventScroll:!0})},changeActive:function(L){var Q=document,ee=Q.activeElement;L&&ee===M.current?I.current.focus({preventScroll:!0}):!L&&ee===I.current&&M.current.focus({preventScroll:!0})}}});var T={};w!==void 0&&(T.width=w),E!==void 0&&(T.height=E);var D=s?de.createElement("div",{className:xe("".concat(n,"-footer"),C==null?void 0:C.footer),style:z({},x==null?void 0:x.footer)},s):null,A=i?de.createElement("div",{className:xe("".concat(n,"-header"),C==null?void 0:C.header),style:z({},x==null?void 0:x.header)},de.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,j=d.useMemo(function(){return Ht(l)==="object"&&l!==null?l:l?{closeIcon:c??de.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),k=Jr(j,!0),F=Ht(l)==="object"&&l.disabled,V=l?de.createElement("button",Ge({type:"button",onClick:u,"aria-label":"Close"},k,{className:"".concat(n,"-close"),disabled:F}),j.closeIcon):null,W=de.createElement("div",{className:xe("".concat(n,"-content"),C==null?void 0:C.content),style:x==null?void 0:x.content},V,A,de.createElement("div",Ge({className:xe("".concat(n,"-body"),C==null?void 0:C.body),style:z(z({},h),x==null?void 0:x.body)},p),f),D);return de.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:z(z({},o),T),className:xe(n,r),onMouseDown:g,onMouseUp:v},de.createElement("div",{ref:I,tabIndex:0,style:NIe},de.createElement(IIe,{shouldUpdate:y||S},m?m(W):W)),de.createElement("div",{tabIndex:0,ref:M,style:kIe}))}),cre=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,h=e.mousePosition,p=d.useRef(),m=d.useState(),g=$e(m,2),v=g[0],b=g[1],y={};v&&(y.transformOrigin=v);function S(){var w=RIe(p.current);b(h&&(h.x||h.y)?"".concat(h.x-w.left,"px ").concat(h.y-w.top,"px"):"")}return d.createElement(Jo,{visible:a,onVisibleChanged:f,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(w,E){var C=w.className,x=w.style;return d.createElement(lre,Ge({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:E,style:z(z(z({},x),o),y),className:xe(i,C)}))})});cre.displayName="Content";var AIe=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return d.createElement(Jo,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",Ge({ref:c,style:z(z({},f),r),className:xe("".concat(n,"-mask"),u,s)},i))})},DIe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,h=t.wrapClassName,p=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,b=t.transitionName,y=t.animation,S=t.closable,w=S===void 0?!0:S,E=t.mask,C=E===void 0?!0:E,x=t.maskTransitionName,_=t.maskAnimation,P=t.maskClosable,O=P===void 0?!0:P,I=t.maskStyle,M=t.maskProps,T=t.rootClassName,D=t.classNames,A=t.styles,j=d.useRef(),k=d.useRef(),F=d.useRef(),V=d.useState(a),W=$e(V,2),K=W[0],L=W[1],Q=N$();function ee(){_3(k.current,document.activeElement)||(j.current=document.activeElement)}function re(){if(!_3(k.current,document.activeElement)){var te;(te=F.current)===null||te===void 0||te.focus()}}function ie(te){if(te)re();else{if(L(!1),C&&j.current&&u){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}K&&(v==null||v())}g==null||g(te)}function G(te){m==null||m(te)}var X=d.useRef(!1),ne=d.useRef(),le=function(){clearTimeout(ne.current),X.current=!0},ce=function(){ne.current=setTimeout(function(){X.current=!1})},oe=null;O&&(oe=function(he){X.current?X.current=!1:k.current===he.target&&G(he)});function se(te){if(l&&te.keyCode===ut.ESC){te.stopPropagation(),G(te);return}a&&te.keyCode===ut.TAB&&F.current.changeActive(!te.shiftKey)}d.useEffect(function(){a&&(L(!0),ee())},[a]),d.useEffect(function(){return function(){clearTimeout(ne.current)}},[]);var fe=z(z(z({zIndex:o},f),A==null?void 0:A.wrapper),{},{display:K?null:"none"});return d.createElement("div",Ge({className:xe("".concat(r,"-root"),T)},Jr(t,{data:!0})),d.createElement(AIe,{prefixCls:r,visible:C&&a,motionName:Mz(r,x,_),style:z(z({zIndex:o},I),A==null?void 0:A.mask),maskProps:M,className:D==null?void 0:D.mask}),d.createElement("div",Ge({tabIndex:-1,onKeyDown:se,className:xe("".concat(r,"-wrap"),h,D==null?void 0:D.wrapper),ref:k,onClick:oe,style:fe},p),d.createElement(cre,Ge({},t,{onMouseDown:le,onMouseUp:ce,ref:F,closable:w,ariaId:Q,prefixCls:r,visible:a&&K,onClose:G,onVisibleChanged:ie,motionName:Mz(r,b,y)}))))},DA=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=d.useState(n),u=$e(c,2),f=u[0],h=u[1],p=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){n&&h(!0)},[n]),!o&&a&&!f?null:d.createElement(sre.Provider,{value:p},d.createElement(W1,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},d.createElement(DIe,Ge({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),h(!1)}}))))};DA.displayName="Dialog";var Oh="RC_FORM_INTERNAL_HOOKS",Ur=function(){yr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_f=d.createContext({getFieldValue:Ur,getFieldsValue:Ur,getFieldError:Ur,getFieldWarning:Ur,getFieldsError:Ur,isFieldsTouched:Ur,isFieldTouched:Ur,isFieldValidating:Ur,isFieldsValidating:Ur,resetFields:Ur,setFields:Ur,setFieldValue:Ur,setFieldsValue:Ur,validateFields:Ur,submit:Ur,getInternalHooks:function(){return Ur(),{dispatch:Ur,initEntityValue:Ur,registerField:Ur,useSubscribe:Ur,setInitialValues:Ur,destroyForm:Ur,setCallbacks:Ur,registerWatch:Ur,getFields:Ur,setValidateMessages:Ur,setPreserve:Ur,getInitialValue:Ur}}}),Vb=d.createContext(null);function H3(e){return e==null?[]:Array.isArray(e)?e:[e]}function jIe(e){return e&&!!e._init}function U3(){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 W3=U3();function FIe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function LIe(e,t,n){if(c$())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ab(o,n.prototype),o}function V3(e){var t=typeof Map=="function"?new Map:void 0;return V3=function(r){if(r===null||!FIe(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,o)}function o(){return LIe(r,arguments,cp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ab(o,r)},V3(e)}var BIe=/%[sdj%]/g,zIe=function(){};function K3(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 Cs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function HIe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function bi(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||HIe(t)&&typeof e=="string"&&!e)}function UIe(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,Ze(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function Rz(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?o.push(Cs(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(Cs(i.messages[f].range,t.fullField,t.min,t.max))},ure=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||bi(n,a||t.type))&&o.push(Cs(i.messages.required,t.fullField))},LC;const QIe=function(){if(LC)return LC;var e="[a-fA-F\\d:]",t=function(C){return C&&C.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}",o=["(?:".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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(a).concat(t(C),")"),"g")};u.v4=function(E){return E&&E.exact?l:new RegExp("".concat(t(E)).concat(n).concat(t(E)),"g")},u.v6=function(E){return E&&E.exact?c:new RegExp("".concat(t(E)).concat(a).concat(t(E)),"g")};var f="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,m=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(h,"(?:localhost|").concat(p,"|").concat(m,"|").concat(g).concat(v).concat(b,")").concat(y).concat(S);return LC=new RegExp("(?:^".concat(w,"$)"),"i"),LC};var Az={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},dy={integer:function(t){return dy.number(t)&&parseInt(t,10)===t},float:function(t){return dy.number(t)&&!dy.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 Ht(t)==="object"&&!dy.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Az.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(QIe())},hex:function(t){return typeof t=="string"&&!!t.match(Az.hex)}},JIe=function(t,n,r,o,i){if(t.required&&n===void 0){ure(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?dy[s](n)||o.push(Cs(i.messages.types[s],t.fullField,t.type)):s&&Ht(n)!==t.type&&o.push(Cs(i.messages.types[s],t.fullField,t.type))},ZIe=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Cs(i.messages.whitespace,t.fullField))};const vr={required:ure,whitespace:ZIe,type:JIe,range:XIe,enum:GIe,pattern:YIe};var eke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n)&&!t.required)return r();vr.required(t,n,o,a,i)}r(a)},tke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();vr.required(t,n,o,a,i,"array"),n!=null&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},nke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},rke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n,"date")&&!t.required)return r();if(vr.required(t,n,o,a,i),!bi(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),vr.type(t,l,o,a,i),l&&vr.range(t,l.getTime(),o,a,i)}}r(a)},oke="enum",ike=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr[oke](t,n,o,a,i)}r(a)},ake=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},ske=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},lke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},cke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),bi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},uke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},dke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n,"string")&&!t.required)return r();vr.required(t,n,o,a,i),bi(n,"string")||vr.pattern(t,n,o,a,i)}r(a)},fke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n)&&!t.required)return r();vr.required(t,n,o,a,i),bi(n)||vr.type(t,n,o,a,i)}r(a)},hke=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":Ht(n);vr.required(t,n,o,a,i,s),r(a)},pke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bi(n,"string")&&!t.required)return r();vr.required(t,n,o,a,i,"string"),bi(n,"string")||(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i),vr.pattern(t,n,o,a,i),t.whitespace===!0&&vr.whitespace(t,n,o,a,i))}r(a)},BT=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(bi(n,a)&&!t.required)return r();vr.required(t,n,o,s,i,a),bi(n,a)||vr.type(t,n,o,s,i)}r(s)};const zy={string:pke,method:lke,number:cke,boolean:nke,regexp:fke,integer:ske,float:ake,array:tke,object:uke,enum:ike,pattern:dke,date:rke,url:BT,hex:BT,email:BT,required:hke,any:eke};var V1=function(){function e(t){br(this,e),Z(this,"rules",null),Z(this,"_messages",W3),this.define(t)}return Sr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Nz(U3(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=o,l=i;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 g=[],v={};function b(S){if(Array.isArray(S)){var w;g=(w=g).concat.apply(w,Ze(S))}else g.push(S)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(x)?x:[x];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&v.message!==void 0&&(_=[].concat(v.message));var P=_.map(kz(v,a));if(s.first&&P.length)return p[v.field]=1,g(P);if(!b)g(P);else{if(v.required&&!m.value)return v.message!==void 0?P=[].concat(v.message).map(kz(v,a)):s.error&&(P=[s.error(v,Cs(s.messages.required,v.field))]),g(P);var O={};v.defaultField&&Object.keys(m.value).map(function(T){O[T]=v.defaultField}),O=z(z({},O),m.rule.fields);var I={};Object.keys(O).forEach(function(T){var D=O[T],A=Array.isArray(D)?D:[D];I[T]=A.map(y.bind(null,T))});var M=new e(I);M.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),M.validate(m.value,m.rule.options||s,function(T){var D=[];P&&P.length&&D.push.apply(D,Ze(P)),T&&T.length&&D.push.apply(D,Ze(T)),g(D.length?D:null)})}}var w;if(v.asyncValidator)w=v.asyncValidator(v,m.value,S,m.source,s);else if(v.validator){try{w=v.validator(v,m.value,S,m.source,s)}catch(x){var E,C;(E=(C=console).error)===null||E===void 0||E.call(C,x),s.suppressValidatorError||setTimeout(function(){throw x},0),S(x.message)}w===!0?S():w===!1?S(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):w instanceof Array?S(w):w instanceof Error&&S(w.message)}w&&w.then&&w.then(function(){return S()},function(x){return S(x)})},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&&!zy.hasOwnProperty(n.type))throw new Error(Cs("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),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?zy.required:zy[this.getType(n)]||void 0}}]),e}();Z(V1,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");zy[t]=n});Z(V1,"warning",zIe);Z(V1,"messages",W3);Z(V1,"validators",zy);var os="'${name}' is not a valid ${type}",dre={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:os,method:os,array:os,object:os,number:os,date:os,boolean:os,integer:os,float:os,regexp:os,email:os,url:os,hex:os},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}"}},Dz=V1;function mke(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 jz="CODE_LOGIC_ERROR";function q3(e,t,n,r,o){return G3.apply(this,arguments)}function G3(){return G3=Bo(nr().mark(function e(t,n,r,o,i){var a,s,l,c,u,f,h,p,m;return nr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=z({},r),delete a.ruleIndex,Dz.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(jz)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Dz(Z({},t,[a])),u=Um(dre,o.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(Z({},t,n),z({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(b,y){var S=b.message,w=S===jz?u.default:S;return d.isValidElement(w)?d.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(b,y){return q3("".concat(t,".").concat(y),b,l,o,i)}));case 21:return h=v.sent,v.abrupt("return",h.reduce(function(b,y){return[].concat(Ze(b),Ze(y))},[]));case 23:return p=z(z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=f.map(function(b){return typeof b=="string"?mke(b,p):b}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),G3.apply(this,arguments)}function gke(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,f){var h=u.validator,p=z(z({},u),{},{ruleIndex:f});return h&&(p.validator=function(m,g,v){var b=!1,y=function(){for(var E=arguments.length,C=new Array(E),x=0;x2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return fre(t,r,n)})}function fre(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,o){return e[o]===r})}function bke(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ht(e)!=="object"||Ht(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ze(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function Ske(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ht(t.target)==="object"&&e in t.target?t.target[e]:t}function Lz(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ze(e.slice(0,n)),[o],Ze(e.slice(n,t)),Ze(e.slice(t+1,r))):i<0?[].concat(Ze(e.slice(0,t)),Ze(e.slice(t+1,n+1)),[o],Ze(e.slice(n+1,r))):e}var Cke=["name"],js=[];function zT(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var jA=function(e){la(n,e);var t=Pa(n);function n(r){var o;if(br(this,n),o=t.call(this,r),Z(tn(o),"state",{resetCount:0}),Z(tn(o),"cancelRegisterFunc",null),Z(tn(o),"mounted",!1),Z(tn(o),"touched",!1),Z(tn(o),"dirty",!1),Z(tn(o),"validatePromise",void 0),Z(tn(o),"prevValidating",void 0),Z(tn(o),"errors",js),Z(tn(o),"warnings",js),Z(tn(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Ko(f)),o.cancelRegisterFunc=null}),Z(tn(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,h=f===void 0?[]:f;return c!==void 0?[].concat(Ze(h),Ze(c)):[]}),Z(tn(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(f):h})}),Z(tn(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),Z(tn(o),"metaCache",null),Z(tn(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=z(z({},o.getMeta()),{},{destroy:l});dl(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),Z(tn(o),"onStoreChange",function(l,c,u){var f=o.props,h=f.shouldUpdate,p=f.dependencies,m=p===void 0?[]:p,g=f.onReset,v=u.store,b=o.getNamePath(),y=o.getValue(l),S=o.getValue(v),w=c&&ig(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!dl(y,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=js,o.warnings=js,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=js,o.warnings=js,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(h&&zT(h,l,v,y,S,u)){o.reRender();return}break}case"setField":{var E=u.data;if(w){"touched"in E&&(o.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(o.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(o.errors=E.errors||js),"warnings"in E&&(o.warnings=E.warnings||js),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in E&&ig(c,b,!0)){o.reRender();return}if(h&&!b.length&&zT(h,l,v,y,S,u)){o.reRender();return}break}case"dependenciesUpdate":{var C=m.map(Ko);if(C.some(function(x){return ig(u.relatedFields,x)})){o.reRender();return}break}default:if(w||(!m.length||b.length||h)&&zT(h,l,v,y,S,u)){o.reRender();return}break}h===!0&&o.reRender()}),Z(tn(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},h=f.triggerName,p=f.validateOnly,m=p===void 0?!1:p,g=Promise.resolve().then(Bo(nr().mark(function v(){var b,y,S,w,E,C,x;return nr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,w=b.messageVariables,E=b.validateDebounce,C=o.getRules(),h&&(C=C.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var M=H3(I);return M.includes(h)})),!(E&&h)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,E)});case 8:if(o.validatePromise===g){P.next=10;break}return P.abrupt("return",[]);case 10:return x=gke(c,u,C,l,S,w),x.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:js;if(o.validatePromise===g){var I;o.validatePromise=null;var M=[],T=[];(I=O.forEach)===null||I===void 0||I.call(O,function(D){var A=D.rule.warningOnly,j=D.errors,k=j===void 0?js:j;A?T.push.apply(T,Ze(k)):M.push.apply(M,Ze(k))}),o.errors=M,o.warnings=T,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",x);case 13:case"end":return P.stop()}},v)})));return m||(o.validatePromise=g,o.dirty=!0,o.errors=js,o.warnings=js,o.triggerMetaEvent(),o.reRender()),g}),Z(tn(o),"isFieldValidating",function(){return!!o.validatePromise}),Z(tn(o),"isFieldTouched",function(){return o.touched}),Z(tn(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Oh),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),Z(tn(o),"getErrors",function(){return o.errors}),Z(tn(o),"getWarnings",function(){return o.warnings}),Z(tn(o),"isListField",function(){return o.props.isListField}),Z(tn(o),"isList",function(){return o.props.isList}),Z(tn(o),"isPreserve",function(){return o.props.preserve}),Z(tn(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),Z(tn(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return z(z({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=ai(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),Z(tn(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Mo(l||c(!0),u)}),Z(tn(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,h=c.validateTrigger,p=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,b=c.fieldContext,y=h!==void 0?h:b.validateTrigger,S=o.getNamePath(),w=b.getInternalHooks,E=b.getFieldsValue,C=w(Oh),x=C.dispatch,_=o.getValue(),P=v||function(D){return Z({},g,D)},O=l[f],I=u!==void 0?P(_):{},M=z(z({},l),I);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,A=arguments.length,j=new Array(A),k=0;k=0&&O<=I.length?(u.keys=[].concat(Ze(u.keys.slice(0,O)),[u.id],Ze(u.keys.slice(O))),S([].concat(Ze(I.slice(0,O)),[P],Ze(I.slice(O))))):(u.keys=[].concat(Ze(u.keys),[u.id]),S([].concat(Ze(I),[P]))),u.id+=1},remove:function(P){var O=E(),I=new Set(Array.isArray(P)?P:[P]);I.size<=0||(u.keys=u.keys.filter(function(M,T){return!I.has(T)}),S(O.filter(function(M,T){return!I.has(T)})))},move:function(P,O){if(P!==O){var I=E();P<0||P>=I.length||O<0||O>=I.length||(u.keys=Lz(u.keys,P,O),S(Lz(I,P,O)))}}},x=y||[];return Array.isArray(x)||(x=[]),r(x.map(function(_,P){var O=u.keys[P];return O===void 0&&(u.keys[P]=u.id,O=u.keys[P],u.id+=1),{name:P,key:O,isListField:!0}}),C,v)})))}function wke(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var pre="__@field_split__";function HT(e){return e.map(function(t){return"".concat(Ht(t),":").concat(t)}).join(pre)}var cm=function(){function e(){br(this,e),Z(this,"kvs",new Map)}return Sr(e,[{key:"set",value:function(n,r){this.kvs.set(HT(n),r)}},{key:"get",value:function(n){return this.kvs.get(HT(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(HT(n))}},{key:"map",value:function(n){return Ze(this.kvs.entries()).map(function(r){var o=$e(r,2),i=o[0],a=o[1],s=i.split(pre);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=$e(c,3),f=u[1],h=u[2];return f==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),xke=["name"],Eke=Sr(function e(t){var n=this;br(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(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}}),Z(this,"getInternalHooks",function(r){return r===Oh?(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}):(yr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Z(this,"useSubscribe",function(r){n.subscribable=r}),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Um(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Yo(a,l,Mo(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),Z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new cm;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),Z(this,"getInitialValue",function(r){var o=Mo(n.initialValues,r);return r.length?Um(o):o}),Z(this,"setCallbacks",function(r){n.callbacks=r}),Z(this,"setValidateMessages",function(r){n.validateMessages=r}),Z(this,"setPreserve",function(r){n.preserve=r}),Z(this,"watchList",[]),Z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),Z(this,"timeoutId",null),Z(this,"warningUnhooked",function(){}),Z(this,"updateStore",function(r){n.store=r}),Z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),Z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new cm;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),Z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Ko(i);return o.get(a)||{INVALIDATE_NAME_PATH:Ko(i)}})}),Z(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Ht(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,h,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,g;if((m=(g=u).isList)!==null&&m!==void 0&&m.call(g))return}else if(!i&&(f=(h=u).isListField)!==null&&f!==void 0&&f.call(h))return;if(!a)c.push(p);else{var v="getMeta"in u?u.getMeta():null;a(v)&&c.push(p)}}),Fz(n.store,c.map(Ko))}),Z(this,"getFieldValue",function(r){n.warningUnhooked();var o=Ko(r);return Mo(n.store,o)}),Z(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Ko(r[a]),errors:[],warnings:[]}})}),Z(this,"getFieldError",function(r){n.warningUnhooked();var o=Ko(r),i=n.getFieldsError([o])[0];return i.errors}),Z(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Ko(r),i=n.getFieldsError([o])[0];return i.warnings}),Z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new cm,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var h=u.getNamePath(),p=n.getInitialValue(h);if(p!==void 0)yr(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var m=o.get(h);if(m&&m.size>1)yr(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(h),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(Yo(n.store,h,Ze(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Ze(Ze(c).map(function(f){return f.entity})))}})):s=i,a(s)}),Z(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Um(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Ko);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Yo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),Z(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=At(a,xke),c=Ko(s);i.push(c),"value"in l&&n.updateStore(Yo(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),Z(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=z(z({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),Z(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Mo(n.store,i);a===void 0&&n.updateStore(Yo(n.store,i,o))}}),Z(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Z(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[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(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!fre(f.getNamePath(),o)})){var u=n.store;n.updateStore(Yo(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),Z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),Z(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=z(z({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),Z(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Ze(i))}),i}),Z(this,"updateValue",function(r,o){var i=Ko(r),a=n.store;n.updateStore(Yo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=Fz(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ze(s)))}),Z(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Um(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Z(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),Z(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new cm;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=Ko(u);a.update(f,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(f){if(!o.has(f)){o.add(f);var h=f.getNamePath();f.isFieldDirty()&&h.length&&(i.push(h),l(h))}})};return s(r),i}),Z(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new cm;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return ig(r,u)});l.length&&i(l,a)}}),Z(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(Ko):[],c=[],u=String(Date.now()),f=new Set,h=a||{},p=h.recursive,m=h.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(m&&!y.isFieldDirty())){var S=y.getNamePath();if(f.add(S.join(u)),!s||ig(l,S,p)){var w=y.validateRules(z({validateMessages:z(z({},dre),n.validateMessages)},a));c.push(w.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(E){var C,x=[],_=[];return(C=E.forEach)===null||C===void 0||C.call(E,function(P){var O=P.rule.warningOnly,I=P.errors;O?_.push.apply(_,Ze(I)):x.push.apply(x,Ze(I))}),x.length?Promise.reject({name:S,errors:x,warnings:_}):{name:S,errors:x,warnings:_}}))}}});var g=wke(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var S=y.map(function(w){var E=w.name;return E});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,y)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:S,outOfDate:n.lastValidatePromise!==g})});v.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),v}),Z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function LA(e){var t=d.useRef(),n=d.useState({}),r=$e(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new Eke(i);t.current=a.getForm()}return[t.current]}var Q3=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mre=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=d.useContext(Q3),s=d.useRef({});return d.createElement(Q3.Provider,{value:z(z({},a),{},{validateMessages:z(z({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=z(z({},s.current),{},Z({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=z({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},_ke=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],$ke=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,h=t.validateTrigger,p=h===void 0?"onChange":h,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,S=At(t,_ke),w=d.useRef(null),E=d.useContext(Q3),C=LA(a),x=$e(C,1),_=x[0],P=_.getInternalHooks(Oh),O=P.useSubscribe,I=P.setInitialValues,M=P.setCallbacks,T=P.setValidateMessages,D=P.setPreserve,A=P.destroyForm;d.useImperativeHandle(n,function(){return z(z({},_),{},{nativeElement:w.current})}),d.useEffect(function(){return E.registerForm(r,_),function(){E.unregisterForm(r)}},[E,_,r]),T(z(z({},E.validateMessages),f)),M({onValuesChange:m,onFieldsChange:function(ee){if(E.triggerFormChange(r,ee),g){for(var re=arguments.length,ie=new Array(re>1?re-1:0),G=1;G{}}),vre=d.createContext(null),yre=e=>{const t=Yn(e,["prefixCls"]);return d.createElement(mre,Object.assign({},t))},BA=d.createContext({prefixCls:""}),Io=d.createContext({}),Oke=e=>{let{children:t,status:n,override:r}=e;const o=d.useContext(Io),i=d.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return d.createElement(Io.Provider,{value:i},t)},bre=d.createContext(void 0),ic=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=de.createElement(Oke,{override:!0,status:!0},o)),t&&(o=de.createElement(NTe,null,o)),o};function Vg(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function zz(e){const{closable:t,closeIcon:n}=e||{};return de.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 Hz(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const Mke={};function zA(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mke;const r=zz(e),o=zz(t),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=de.useMemo(()=>Object.assign({closeIcon:de.createElement(iu,null)},n),[n]),s=de.useMemo(()=>r===!1?!1:r?Hz(a,o,r):o===!1?!1:o?Hz(a,o):a.closable?a:!1,[r,o,a]);return de.useMemo(()=>{if(s===!1)return[!1,null,i];const{closeIconRender:l}=a,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=Jr(s,!0);Object.keys(f).length&&(u=de.isValidElement(u)?de.cloneElement(u,f):de.createElement("span",Object.assign({},f),u))}return[!0,u,i]},[s,a])}var Sre=function(t){if(Ca()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},Tke=function(t,n){if(!Sre(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function Rke(e,t){return!Array.isArray(e)&&t!==void 0?Tke(e,t):Sre(e)}const Ike=()=>Ca()&&window.document.documentElement,A$=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=xe({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=xe({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=d.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return d.createElement("span",{className:xe(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},kke=new Gn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),D$=e=>({height:e,lineHeight:_e(e)}),ag=e=>Object.assign({width:e},D$(e)),Nke=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:kke,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),UT=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},D$(e)),Ake=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ag(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ag(o)),[`${t}${t}-sm`]:Object.assign({},ag(i))}},Dke=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},UT(t,s)),[`${r}-lg`]:Object.assign({},UT(o,s)),[`${r}-sm`]:Object.assign({},UT(i,s))}},Uz=e=>Object.assign({width:e},D$(e)),jke=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Uz(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Uz(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},WT=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},VT=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},D$(e)),Fke=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,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()},VT(r,s))},WT(e,r,n)),{[`${n}-lg`]:Object.assign({},VT(o,s))}),WT(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},VT(i,s))}),WT(e,i,`${n}-sm`))},Lke=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:S}=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:f},ag(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ag(c)),[`${n}-sm`]:Object.assign({},ag(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Fke(e)),Ake(e)),Dke(e)),jke(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),o)}else $3(o);return function(){$3(o)}},[t,o])}var PIe=!1;function OIe(e){return PIe}var Ez=function(t){return t===!1?!1:!Ca()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},V1=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=d.useState(n),c=$e(l,2),u=c[0],f=c[1],h=u||n;d.useEffect(function(){(a||n)&&f(n)},[n,a]);var p=d.useState(function(){return Ez(o)}),m=$e(p,2),g=m[0],v=m[1];d.useEffect(function(){var I=Ez(o);v(I??null)});var b=xIe(h&&!g),y=$e(b,2),S=y[0],w=y[1],E=g??S;$Ie(r&&n&&Ca()&&(E===S||E===document.body));var C=null;if(s&&tc(s)&&t){var x=s;C=x.ref}var _=mc(C,t);if(!h||!Ca()||g===void 0)return null;var P=E===!1||OIe(),O=s;return t&&(O=d.cloneElement(s,{ref:_})),d.createElement(ore.Provider,{value:w},P?O:_i.createPortal(O,E))}),are=d.createContext({});function MIe(){var e=z({},S1);return e.useId}var _z=0,$z=MIe();const N$=$z?function(t){var n=$z();return t||n}:function(t){var n=d.useState("ssr-id"),r=$e(n,2),o=r[0],i=r[1];return d.useEffect(function(){var a=_z;_z+=1,i("rc_unique_".concat(a))},[]),t||o};function Pz(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Oz(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function TIe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Oz(o),n.top+=Oz(o,!0),n}const RIe=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var IIe={width:0,height:0,overflow:"hidden",outline:"none"},kIe={outline:"none"},sre=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,h=e.bodyStyle,p=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,b=e.holderRef,y=e.visible,S=e.forceRender,w=e.width,E=e.height,C=e.classNames,x=e.styles,_=de.useContext(are),P=_.panel,O=mc(b,P),I=d.useRef(),M=d.useRef();de.useImperativeHandle(t,function(){return{focus:function(){var L;(L=I.current)===null||L===void 0||L.focus({preventScroll:!0})},changeActive:function(L){var Q=document,ee=Q.activeElement;L&&ee===M.current?I.current.focus({preventScroll:!0}):!L&&ee===I.current&&M.current.focus({preventScroll:!0})}}});var T={};w!==void 0&&(T.width=w),E!==void 0&&(T.height=E);var D=s?de.createElement("div",{className:xe("".concat(n,"-footer"),C==null?void 0:C.footer),style:z({},x==null?void 0:x.footer)},s):null,A=i?de.createElement("div",{className:xe("".concat(n,"-header"),C==null?void 0:C.header),style:z({},x==null?void 0:x.header)},de.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,j=d.useMemo(function(){return Ht(l)==="object"&&l!==null?l:l?{closeIcon:c??de.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),k=Jr(j,!0),F=Ht(l)==="object"&&l.disabled,V=l?de.createElement("button",Ge({type:"button",onClick:u,"aria-label":"Close"},k,{className:"".concat(n,"-close"),disabled:F}),j.closeIcon):null,W=de.createElement("div",{className:xe("".concat(n,"-content"),C==null?void 0:C.content),style:x==null?void 0:x.content},V,A,de.createElement("div",Ge({className:xe("".concat(n,"-body"),C==null?void 0:C.body),style:z(z({},h),x==null?void 0:x.body)},p),f),D);return de.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:z(z({},o),T),className:xe(n,r),onMouseDown:g,onMouseUp:v},de.createElement("div",{ref:I,tabIndex:0,style:kIe},de.createElement(RIe,{shouldUpdate:y||S},m?m(W):W)),de.createElement("div",{tabIndex:0,ref:M,style:IIe}))}),lre=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,h=e.mousePosition,p=d.useRef(),m=d.useState(),g=$e(m,2),v=g[0],b=g[1],y={};v&&(y.transformOrigin=v);function S(){var w=TIe(p.current);b(h&&(h.x||h.y)?"".concat(h.x-w.left,"px ").concat(h.y-w.top,"px"):"")}return d.createElement(Jo,{visible:a,onVisibleChanged:f,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(w,E){var C=w.className,x=w.style;return d.createElement(sre,Ge({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:E,style:z(z(z({},x),o),y),className:xe(i,C)}))})});lre.displayName="Content";var NIe=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return d.createElement(Jo,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",Ge({ref:c,style:z(z({},f),r),className:xe("".concat(n,"-mask"),u,s)},i))})},AIe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,h=t.wrapClassName,p=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,b=t.transitionName,y=t.animation,S=t.closable,w=S===void 0?!0:S,E=t.mask,C=E===void 0?!0:E,x=t.maskTransitionName,_=t.maskAnimation,P=t.maskClosable,O=P===void 0?!0:P,I=t.maskStyle,M=t.maskProps,T=t.rootClassName,D=t.classNames,A=t.styles,j=d.useRef(),k=d.useRef(),F=d.useRef(),V=d.useState(a),W=$e(V,2),K=W[0],L=W[1],Q=N$();function ee(){E3(k.current,document.activeElement)||(j.current=document.activeElement)}function re(){if(!E3(k.current,document.activeElement)){var te;(te=F.current)===null||te===void 0||te.focus()}}function ie(te){if(te)re();else{if(L(!1),C&&j.current&&u){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}K&&(v==null||v())}g==null||g(te)}function G(te){m==null||m(te)}var X=d.useRef(!1),ne=d.useRef(),le=function(){clearTimeout(ne.current),X.current=!0},ce=function(){ne.current=setTimeout(function(){X.current=!1})},oe=null;O&&(oe=function(he){X.current?X.current=!1:k.current===he.target&&G(he)});function se(te){if(l&&te.keyCode===ut.ESC){te.stopPropagation(),G(te);return}a&&te.keyCode===ut.TAB&&F.current.changeActive(!te.shiftKey)}d.useEffect(function(){a&&(L(!0),ee())},[a]),d.useEffect(function(){return function(){clearTimeout(ne.current)}},[]);var fe=z(z(z({zIndex:o},f),A==null?void 0:A.wrapper),{},{display:K?null:"none"});return d.createElement("div",Ge({className:xe("".concat(r,"-root"),T)},Jr(t,{data:!0})),d.createElement(NIe,{prefixCls:r,visible:C&&a,motionName:Pz(r,x,_),style:z(z({zIndex:o},I),A==null?void 0:A.mask),maskProps:M,className:D==null?void 0:D.mask}),d.createElement("div",Ge({tabIndex:-1,onKeyDown:se,className:xe("".concat(r,"-wrap"),h,D==null?void 0:D.wrapper),ref:k,onClick:oe,style:fe},p),d.createElement(lre,Ge({},t,{onMouseDown:le,onMouseUp:ce,ref:F,closable:w,ariaId:Q,prefixCls:r,visible:a&&K,onClose:G,onVisibleChanged:ie,motionName:Pz(r,b,y)}))))},NA=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=d.useState(n),u=$e(c,2),f=u[0],h=u[1],p=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){n&&h(!0)},[n]),!o&&a&&!f?null:d.createElement(are.Provider,{value:p},d.createElement(V1,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},d.createElement(AIe,Ge({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),h(!1)}}))))};NA.displayName="Dialog";var Oh="RC_FORM_INTERNAL_HOOKS",Ur=function(){yr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_f=d.createContext({getFieldValue:Ur,getFieldsValue:Ur,getFieldError:Ur,getFieldWarning:Ur,getFieldsError:Ur,isFieldsTouched:Ur,isFieldTouched:Ur,isFieldValidating:Ur,isFieldsValidating:Ur,resetFields:Ur,setFields:Ur,setFieldValue:Ur,setFieldsValue:Ur,validateFields:Ur,submit:Ur,getInternalHooks:function(){return Ur(),{dispatch:Ur,initEntityValue:Ur,registerField:Ur,useSubscribe:Ur,setInitialValues:Ur,destroyForm:Ur,setCallbacks:Ur,registerWatch:Ur,getFields:Ur,setValidateMessages:Ur,setPreserve:Ur,getInitialValue:Ur}}}),Vb=d.createContext(null);function z3(e){return e==null?[]:Array.isArray(e)?e:[e]}function DIe(e){return e&&!!e._init}function H3(){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 U3=H3();function jIe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function FIe(e,t,n){if(c$())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ab(o,n.prototype),o}function W3(e){var t=typeof Map=="function"?new Map:void 0;return W3=function(r){if(r===null||!jIe(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,o)}function o(){return FIe(r,arguments,cp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ab(o,r)},W3(e)}var LIe=/%[sdj%]/g,BIe=function(){};function V3(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 Cs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function zIe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function yi(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||zIe(t)&&typeof e=="string"&&!e)}function HIe(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,Ze(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function Mz(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?o.push(Cs(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(Cs(i.messages[f].range,t.fullField,t.min,t.max))},cre=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||yi(n,a||t.type))&&o.push(Cs(i.messages.required,t.fullField))},BC;const XIe=function(){if(BC)return BC;var e="[a-fA-F\\d:]",t=function(C){return C&&C.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}",o=["(?:".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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(a).concat(t(C),")"),"g")};u.v4=function(E){return E&&E.exact?l:new RegExp("".concat(t(E)).concat(n).concat(t(E)),"g")},u.v6=function(E){return E&&E.exact?c:new RegExp("".concat(t(E)).concat(a).concat(t(E)),"g")};var f="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,m=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(h,"(?:localhost|").concat(p,"|").concat(m,"|").concat(g).concat(v).concat(b,")").concat(y).concat(S);return BC=new RegExp("(?:^".concat(w,"$)"),"i"),BC};var kz={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},dy={integer:function(t){return dy.number(t)&&parseInt(t,10)===t},float:function(t){return dy.number(t)&&!dy.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 Ht(t)==="object"&&!dy.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(kz.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(XIe())},hex:function(t){return typeof t=="string"&&!!t.match(kz.hex)}},QIe=function(t,n,r,o,i){if(t.required&&n===void 0){cre(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?dy[s](n)||o.push(Cs(i.messages.types[s],t.fullField,t.type)):s&&Ht(n)!==t.type&&o.push(Cs(i.messages.types[s],t.fullField,t.type))},JIe=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Cs(i.messages.whitespace,t.fullField))};const vr={required:cre,whitespace:JIe,type:QIe,range:YIe,enum:qIe,pattern:GIe};var ZIe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i)}r(a)},eke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();vr.required(t,n,o,a,i,"array"),n!=null&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},tke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},nke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n,"date")&&!t.required)return r();if(vr.required(t,n,o,a,i),!yi(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),vr.type(t,l,o,a,i),l&&vr.range(t,l.getTime(),o,a,i)}}r(a)},rke="enum",oke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr[rke](t,n,o,a,i)}r(a)},ike=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},ake=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},ske=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},lke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},cke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},uke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n,"string")&&!t.required)return r();vr.required(t,n,o,a,i),yi(n,"string")||vr.pattern(t,n,o,a,i)}r(a)},dke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),yi(n)||vr.type(t,n,o,a,i)}r(a)},fke=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":Ht(n);vr.required(t,n,o,a,i,s),r(a)},hke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n,"string")&&!t.required)return r();vr.required(t,n,o,a,i,"string"),yi(n,"string")||(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i),vr.pattern(t,n,o,a,i),t.whitespace===!0&&vr.whitespace(t,n,o,a,i))}r(a)},BT=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yi(n,a)&&!t.required)return r();vr.required(t,n,o,s,i,a),yi(n,a)||vr.type(t,n,o,s,i)}r(s)};const zy={string:hke,method:ske,number:lke,boolean:tke,regexp:dke,integer:ake,float:ike,array:eke,object:cke,enum:oke,pattern:uke,date:nke,url:BT,hex:BT,email:BT,required:fke,any:ZIe};var K1=function(){function e(t){br(this,e),Z(this,"rules",null),Z(this,"_messages",U3),this.define(t)}return Sr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Iz(H3(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=o,l=i;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 g=[],v={};function b(S){if(Array.isArray(S)){var w;g=(w=g).concat.apply(w,Ze(S))}else g.push(S)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(x)?x:[x];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&v.message!==void 0&&(_=[].concat(v.message));var P=_.map(Rz(v,a));if(s.first&&P.length)return p[v.field]=1,g(P);if(!b)g(P);else{if(v.required&&!m.value)return v.message!==void 0?P=[].concat(v.message).map(Rz(v,a)):s.error&&(P=[s.error(v,Cs(s.messages.required,v.field))]),g(P);var O={};v.defaultField&&Object.keys(m.value).map(function(T){O[T]=v.defaultField}),O=z(z({},O),m.rule.fields);var I={};Object.keys(O).forEach(function(T){var D=O[T],A=Array.isArray(D)?D:[D];I[T]=A.map(y.bind(null,T))});var M=new e(I);M.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),M.validate(m.value,m.rule.options||s,function(T){var D=[];P&&P.length&&D.push.apply(D,Ze(P)),T&&T.length&&D.push.apply(D,Ze(T)),g(D.length?D:null)})}}var w;if(v.asyncValidator)w=v.asyncValidator(v,m.value,S,m.source,s);else if(v.validator){try{w=v.validator(v,m.value,S,m.source,s)}catch(x){var E,C;(E=(C=console).error)===null||E===void 0||E.call(C,x),s.suppressValidatorError||setTimeout(function(){throw x},0),S(x.message)}w===!0?S():w===!1?S(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):w instanceof Array?S(w):w instanceof Error&&S(w.message)}w&&w.then&&w.then(function(){return S()},function(x){return S(x)})},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&&!zy.hasOwnProperty(n.type))throw new Error(Cs("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),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?zy.required:zy[this.getType(n)]||void 0}}]),e}();Z(K1,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");zy[t]=n});Z(K1,"warning",BIe);Z(K1,"messages",U3);Z(K1,"validators",zy);var os="'${name}' is not a valid ${type}",ure={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:os,method:os,array:os,object:os,number:os,date:os,boolean:os,integer:os,float:os,regexp:os,email:os,url:os,hex:os},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}"}},Nz=K1;function pke(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 Az="CODE_LOGIC_ERROR";function K3(e,t,n,r,o){return q3.apply(this,arguments)}function q3(){return q3=Bo(nr().mark(function e(t,n,r,o,i){var a,s,l,c,u,f,h,p,m;return nr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=z({},r),delete a.ruleIndex,Nz.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Az)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Nz(Z({},t,[a])),u=Um(ure,o.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(Z({},t,n),z({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(b,y){var S=b.message,w=S===Az?u.default:S;return d.isValidElement(w)?d.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(b,y){return K3("".concat(t,".").concat(y),b,l,o,i)}));case 21:return h=v.sent,v.abrupt("return",h.reduce(function(b,y){return[].concat(Ze(b),Ze(y))},[]));case 23:return p=z(z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=f.map(function(b){return typeof b=="string"?pke(b,p):b}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),q3.apply(this,arguments)}function mke(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,f){var h=u.validator,p=z(z({},u),{},{ruleIndex:f});return h&&(p.validator=function(m,g,v){var b=!1,y=function(){for(var E=arguments.length,C=new Array(E),x=0;x2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return dre(t,r,n)})}function dre(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,o){return e[o]===r})}function yke(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ht(e)!=="object"||Ht(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ze(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function bke(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ht(t.target)==="object"&&e in t.target?t.target[e]:t}function jz(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ze(e.slice(0,n)),[o],Ze(e.slice(n,t)),Ze(e.slice(t+1,r))):i<0?[].concat(Ze(e.slice(0,t)),Ze(e.slice(t+1,n+1)),[o],Ze(e.slice(n+1,r))):e}var Ske=["name"],js=[];function zT(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var AA=function(e){la(n,e);var t=Pa(n);function n(r){var o;if(br(this,n),o=t.call(this,r),Z(tn(o),"state",{resetCount:0}),Z(tn(o),"cancelRegisterFunc",null),Z(tn(o),"mounted",!1),Z(tn(o),"touched",!1),Z(tn(o),"dirty",!1),Z(tn(o),"validatePromise",void 0),Z(tn(o),"prevValidating",void 0),Z(tn(o),"errors",js),Z(tn(o),"warnings",js),Z(tn(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Ko(f)),o.cancelRegisterFunc=null}),Z(tn(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,h=f===void 0?[]:f;return c!==void 0?[].concat(Ze(h),Ze(c)):[]}),Z(tn(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(f):h})}),Z(tn(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),Z(tn(o),"metaCache",null),Z(tn(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=z(z({},o.getMeta()),{},{destroy:l});dl(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),Z(tn(o),"onStoreChange",function(l,c,u){var f=o.props,h=f.shouldUpdate,p=f.dependencies,m=p===void 0?[]:p,g=f.onReset,v=u.store,b=o.getNamePath(),y=o.getValue(l),S=o.getValue(v),w=c&&ig(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!dl(y,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=js,o.warnings=js,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=js,o.warnings=js,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(h&&zT(h,l,v,y,S,u)){o.reRender();return}break}case"setField":{var E=u.data;if(w){"touched"in E&&(o.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(o.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(o.errors=E.errors||js),"warnings"in E&&(o.warnings=E.warnings||js),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in E&&ig(c,b,!0)){o.reRender();return}if(h&&!b.length&&zT(h,l,v,y,S,u)){o.reRender();return}break}case"dependenciesUpdate":{var C=m.map(Ko);if(C.some(function(x){return ig(u.relatedFields,x)})){o.reRender();return}break}default:if(w||(!m.length||b.length||h)&&zT(h,l,v,y,S,u)){o.reRender();return}break}h===!0&&o.reRender()}),Z(tn(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},h=f.triggerName,p=f.validateOnly,m=p===void 0?!1:p,g=Promise.resolve().then(Bo(nr().mark(function v(){var b,y,S,w,E,C,x;return nr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,w=b.messageVariables,E=b.validateDebounce,C=o.getRules(),h&&(C=C.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var M=z3(I);return M.includes(h)})),!(E&&h)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,E)});case 8:if(o.validatePromise===g){P.next=10;break}return P.abrupt("return",[]);case 10:return x=mke(c,u,C,l,S,w),x.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:js;if(o.validatePromise===g){var I;o.validatePromise=null;var M=[],T=[];(I=O.forEach)===null||I===void 0||I.call(O,function(D){var A=D.rule.warningOnly,j=D.errors,k=j===void 0?js:j;A?T.push.apply(T,Ze(k)):M.push.apply(M,Ze(k))}),o.errors=M,o.warnings=T,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",x);case 13:case"end":return P.stop()}},v)})));return m||(o.validatePromise=g,o.dirty=!0,o.errors=js,o.warnings=js,o.triggerMetaEvent(),o.reRender()),g}),Z(tn(o),"isFieldValidating",function(){return!!o.validatePromise}),Z(tn(o),"isFieldTouched",function(){return o.touched}),Z(tn(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Oh),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),Z(tn(o),"getErrors",function(){return o.errors}),Z(tn(o),"getWarnings",function(){return o.warnings}),Z(tn(o),"isListField",function(){return o.props.isListField}),Z(tn(o),"isList",function(){return o.props.isList}),Z(tn(o),"isPreserve",function(){return o.props.preserve}),Z(tn(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),Z(tn(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return z(z({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=ai(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),Z(tn(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Mo(l||c(!0),u)}),Z(tn(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,h=c.validateTrigger,p=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,b=c.fieldContext,y=h!==void 0?h:b.validateTrigger,S=o.getNamePath(),w=b.getInternalHooks,E=b.getFieldsValue,C=w(Oh),x=C.dispatch,_=o.getValue(),P=v||function(D){return Z({},g,D)},O=l[f],I=u!==void 0?P(_):{},M=z(z({},l),I);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,A=arguments.length,j=new Array(A),k=0;k=0&&O<=I.length?(u.keys=[].concat(Ze(u.keys.slice(0,O)),[u.id],Ze(u.keys.slice(O))),S([].concat(Ze(I.slice(0,O)),[P],Ze(I.slice(O))))):(u.keys=[].concat(Ze(u.keys),[u.id]),S([].concat(Ze(I),[P]))),u.id+=1},remove:function(P){var O=E(),I=new Set(Array.isArray(P)?P:[P]);I.size<=0||(u.keys=u.keys.filter(function(M,T){return!I.has(T)}),S(O.filter(function(M,T){return!I.has(T)})))},move:function(P,O){if(P!==O){var I=E();P<0||P>=I.length||O<0||O>=I.length||(u.keys=jz(u.keys,P,O),S(jz(I,P,O)))}}},x=y||[];return Array.isArray(x)||(x=[]),r(x.map(function(_,P){var O=u.keys[P];return O===void 0&&(u.keys[P]=u.id,O=u.keys[P],u.id+=1),{name:P,key:O,isListField:!0}}),C,v)})))}function Cke(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var hre="__@field_split__";function HT(e){return e.map(function(t){return"".concat(Ht(t),":").concat(t)}).join(hre)}var cm=function(){function e(){br(this,e),Z(this,"kvs",new Map)}return Sr(e,[{key:"set",value:function(n,r){this.kvs.set(HT(n),r)}},{key:"get",value:function(n){return this.kvs.get(HT(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(HT(n))}},{key:"map",value:function(n){return Ze(this.kvs.entries()).map(function(r){var o=$e(r,2),i=o[0],a=o[1],s=i.split(hre);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=$e(c,3),f=u[1],h=u[2];return f==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),wke=["name"],xke=Sr(function e(t){var n=this;br(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(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}}),Z(this,"getInternalHooks",function(r){return r===Oh?(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}):(yr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Z(this,"useSubscribe",function(r){n.subscribable=r}),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Um(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Yo(a,l,Mo(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),Z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new cm;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),Z(this,"getInitialValue",function(r){var o=Mo(n.initialValues,r);return r.length?Um(o):o}),Z(this,"setCallbacks",function(r){n.callbacks=r}),Z(this,"setValidateMessages",function(r){n.validateMessages=r}),Z(this,"setPreserve",function(r){n.preserve=r}),Z(this,"watchList",[]),Z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),Z(this,"timeoutId",null),Z(this,"warningUnhooked",function(){}),Z(this,"updateStore",function(r){n.store=r}),Z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),Z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new cm;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),Z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Ko(i);return o.get(a)||{INVALIDATE_NAME_PATH:Ko(i)}})}),Z(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Ht(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,h,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,g;if((m=(g=u).isList)!==null&&m!==void 0&&m.call(g))return}else if(!i&&(f=(h=u).isListField)!==null&&f!==void 0&&f.call(h))return;if(!a)c.push(p);else{var v="getMeta"in u?u.getMeta():null;a(v)&&c.push(p)}}),Dz(n.store,c.map(Ko))}),Z(this,"getFieldValue",function(r){n.warningUnhooked();var o=Ko(r);return Mo(n.store,o)}),Z(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Ko(r[a]),errors:[],warnings:[]}})}),Z(this,"getFieldError",function(r){n.warningUnhooked();var o=Ko(r),i=n.getFieldsError([o])[0];return i.errors}),Z(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Ko(r),i=n.getFieldsError([o])[0];return i.warnings}),Z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new cm,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var h=u.getNamePath(),p=n.getInitialValue(h);if(p!==void 0)yr(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var m=o.get(h);if(m&&m.size>1)yr(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(h),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(Yo(n.store,h,Ze(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Ze(Ze(c).map(function(f){return f.entity})))}})):s=i,a(s)}),Z(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Um(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Ko);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Yo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),Z(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=At(a,wke),c=Ko(s);i.push(c),"value"in l&&n.updateStore(Yo(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),Z(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=z(z({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),Z(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Mo(n.store,i);a===void 0&&n.updateStore(Yo(n.store,i,o))}}),Z(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Z(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[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(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!dre(f.getNamePath(),o)})){var u=n.store;n.updateStore(Yo(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),Z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),Z(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=z(z({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),Z(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Ze(i))}),i}),Z(this,"updateValue",function(r,o){var i=Ko(r),a=n.store;n.updateStore(Yo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=Dz(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ze(s)))}),Z(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Um(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Z(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),Z(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new cm;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=Ko(u);a.update(f,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(f){if(!o.has(f)){o.add(f);var h=f.getNamePath();f.isFieldDirty()&&h.length&&(i.push(h),l(h))}})};return s(r),i}),Z(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new cm;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return ig(r,u)});l.length&&i(l,a)}}),Z(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(Ko):[],c=[],u=String(Date.now()),f=new Set,h=a||{},p=h.recursive,m=h.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(m&&!y.isFieldDirty())){var S=y.getNamePath();if(f.add(S.join(u)),!s||ig(l,S,p)){var w=y.validateRules(z({validateMessages:z(z({},ure),n.validateMessages)},a));c.push(w.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(E){var C,x=[],_=[];return(C=E.forEach)===null||C===void 0||C.call(E,function(P){var O=P.rule.warningOnly,I=P.errors;O?_.push.apply(_,Ze(I)):x.push.apply(x,Ze(I))}),x.length?Promise.reject({name:S,errors:x,warnings:_}):{name:S,errors:x,warnings:_}}))}}});var g=Cke(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var S=y.map(function(w){var E=w.name;return E});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,y)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:S,outOfDate:n.lastValidatePromise!==g})});v.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),v}),Z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function jA(e){var t=d.useRef(),n=d.useState({}),r=$e(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new xke(i);t.current=a.getForm()}return[t.current]}var X3=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),pre=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=d.useContext(X3),s=d.useRef({});return d.createElement(X3.Provider,{value:z(z({},a),{},{validateMessages:z(z({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=z(z({},s.current),{},Z({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=z({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},Eke=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],_ke=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,h=t.validateTrigger,p=h===void 0?"onChange":h,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,S=At(t,Eke),w=d.useRef(null),E=d.useContext(X3),C=jA(a),x=$e(C,1),_=x[0],P=_.getInternalHooks(Oh),O=P.useSubscribe,I=P.setInitialValues,M=P.setCallbacks,T=P.setValidateMessages,D=P.setPreserve,A=P.destroyForm;d.useImperativeHandle(n,function(){return z(z({},_),{},{nativeElement:w.current})}),d.useEffect(function(){return E.registerForm(r,_),function(){E.unregisterForm(r)}},[E,_,r]),T(z(z({},E.validateMessages),f)),M({onValuesChange:m,onFieldsChange:function(ee){if(E.triggerFormChange(r,ee),g){for(var re=arguments.length,ie=new Array(re>1?re-1:0),G=1;G{}}),gre=d.createContext(null),vre=e=>{const t=Yn(e,["prefixCls"]);return d.createElement(pre,Object.assign({},t))},FA=d.createContext({prefixCls:""}),Io=d.createContext({}),Pke=e=>{let{children:t,status:n,override:r}=e;const o=d.useContext(Io),i=d.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return d.createElement(Io.Provider,{value:i},t)},yre=d.createContext(void 0),ic=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=de.createElement(Pke,{override:!0,status:!0},o)),t&&(o=de.createElement(kTe,null,o)),o};function Vg(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Lz(e){const{closable:t,closeIcon:n}=e||{};return de.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 Bz(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const Oke={};function LA(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oke;const r=Lz(e),o=Lz(t),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=de.useMemo(()=>Object.assign({closeIcon:de.createElement(ou,null)},n),[n]),s=de.useMemo(()=>r===!1?!1:r?Bz(a,o,r):o===!1?!1:o?Bz(a,o):a.closable?a:!1,[r,o,a]);return de.useMemo(()=>{if(s===!1)return[!1,null,i];const{closeIconRender:l}=a,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=Jr(s,!0);Object.keys(f).length&&(u=de.isValidElement(u)?de.cloneElement(u,f):de.createElement("span",Object.assign({},f),u))}return[!0,u,i]},[s,a])}var bre=function(t){if(Ca()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},Mke=function(t,n){if(!bre(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function Tke(e,t){return!Array.isArray(e)&&t!==void 0?Mke(e,t):bre(e)}const Rke=()=>Ca()&&window.document.documentElement,A$=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=xe({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=xe({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=d.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return d.createElement("span",{className:xe(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},Ike=new Gn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),D$=e=>({height:e,lineHeight:_e(e)}),ag=e=>Object.assign({width:e},D$(e)),kke=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ike,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),UT=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},D$(e)),Nke=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ag(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ag(o)),[`${t}${t}-sm`]:Object.assign({},ag(i))}},Ake=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},UT(t,s)),[`${r}-lg`]:Object.assign({},UT(o,s)),[`${r}-sm`]:Object.assign({},UT(i,s))}},zz=e=>Object.assign({width:e},D$(e)),Dke=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},zz(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},zz(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},WT=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},VT=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},D$(e)),jke=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,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()},VT(r,s))},WT(e,r,n)),{[`${n}-lg`]:Object.assign({},VT(o,s))}),WT(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},VT(i,s))}),WT(e,i,`${n}-sm`))},Fke=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:S}=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:f},ag(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ag(c)),[`${n}-sm`]:Object.assign({},ag(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},jke(e)),Nke(e)),Ake(e)),Dke(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${o} > li, ${n}, ${i}, ${a}, ${s} - `]:Object.assign({},Nke(e))}}},Bke=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Rv=Kn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=kn(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[Lke(r)]},Bke,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),zke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls","className"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},h))))},Hke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-button`,size:a},h))))},Uke="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",Wke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=d.useContext(Yt),s=a("skeleton",t),[l,c,u]=Rv(s),f=xe(s,`${s}-element`,{[`${s}-active`]:i},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:xe(`${s}-image`,n),style:o},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:Uke,className:`${s}-image-path`})))))},Vke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-input`,size:a},h))))},Kke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=xe(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,f);return c(d.createElement("div",{className:h},d.createElement("div",{className:xe(`${l}-image`,n),style:o},a)))},qke=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Gke=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Ze(new Array(o)).map((a,s)=>d.createElement("li",{key:s,style:{width:qke(s,e)}}));return d.createElement("ul",{className:xe(t,n),style:r},i)},Yke=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return d.createElement("h3",{className:xe(t,n),style:Object.assign({width:r},o)})};function KT(e){return e&&typeof e=="object"?e:{}}function Xke(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Qke(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Jke(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const pd=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:h,direction:p,skeleton:m}=d.useContext(Yt),g=h("skeleton",t),[v,b,y]=Rv(g);if(n||!("loading"in e)){const S=!!s,w=!!l,E=!!c;let C;if(S){const P=Object.assign(Object.assign({prefixCls:`${g}-avatar`},Xke(w,E)),KT(s));C=d.createElement("div",{className:`${g}-header`},d.createElement(A$,Object.assign({},P)))}let x;if(w||E){let P;if(w){const I=Object.assign(Object.assign({prefixCls:`${g}-title`},Qke(S,E)),KT(l));P=d.createElement(Yke,Object.assign({},I))}let O;if(E){const I=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},Jke(S,w)),KT(c));O=d.createElement(Gke,Object.assign({},I))}x=d.createElement("div",{className:`${g}-content`},P,O)}const _=xe(g,{[`${g}-with-avatar`]:S,[`${g}-active`]:u,[`${g}-rtl`]:p==="rtl",[`${g}-round`]:f},m==null?void 0:m.className,r,o,b,y);return v(d.createElement("div",{className:_,style:Object.assign(Object.assign({},m==null?void 0:m.style),i)},C,x))}return a??null};pd.Button=Hke;pd.Avatar=zke;pd.Input=Vke;pd.Image=Wke;pd.Node=Kke;function Wz(){}const Zke=d.createContext({add:Wz,remove:Wz});function Cre(e){const t=d.useContext(Zke),n=d.useRef(null);return An(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const Vz=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(U1);return de.createElement(Hn,Object.assign({onClick:n},e),t)},Kz=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=d.useContext(U1);return de.createElement(Hn,Object.assign({},PA(n),{loading:e,onClick:o},t),r)};function wre(e,t){return de.createElement("span",{className:`${e}-close-x`},t||de.createElement(iu,{className:`${e}-close-icon`}))}const xre=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=zi("Modal",Wte()),f=t||(u==null?void 0:u.okText),h=r||(u==null?void 0:u.cancelText),p={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:h,okType:n,onOk:i,onCancel:a},m=de.useMemo(()=>p,Ze(Object.values(p)));let g;return typeof c=="function"||typeof c>"u"?(g=de.createElement(de.Fragment,null,de.createElement(Vz,null),de.createElement(Kz,null)),typeof c=="function"&&(g=c(g,{OkBtn:Kz,CancelBtn:Vz})),g=de.createElement(ore,{value:m},g)):g=c,de.createElement(SA,{disabled:!1},g)},e4e=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"}}}},t4e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},n4e=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},J3=(e,t)=>n4e(e,t),r4e=(e,t,n)=>({[`@media (min-width: ${_e(t)})`]:Object.assign({},J3(e,n))}),o4e=()=>({}),i4e=()=>({}),a4e=Kn("Grid",e4e,o4e),Ere=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),s4e=Kn("Grid",e=>{const t=kn(e,{gridColumns:24}),n=Ere(t);return delete n.xs,[t4e(t),J3(t,""),J3(t,"-xs"),Object.keys(n).map(r=>r4e(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},i4e);function qz(e){return{position:e,inset:0}}const _re=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({},qz("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},qz("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:TA(e)}]},l4e=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:`${_e(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Qn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${_e(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:_e(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ka(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${_e(e.borderRadiusLG)} ${_e(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:`${_e(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, + `]:Object.assign({},kke(e))}}},Lke=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Rv=Kn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=kn(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[Fke(r)]},Lke,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Bke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls","className"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},h))))},zke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-button`,size:a},h))))},Hke="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",Uke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=d.useContext(Yt),s=a("skeleton",t),[l,c,u]=Rv(s),f=xe(s,`${s}-element`,{[`${s}-active`]:i},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:xe(`${s}-image`,n),style:o},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:Hke,className:`${s}-image-path`})))))},Wke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-input`,size:a},h))))},Vke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=xe(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,f);return c(d.createElement("div",{className:h},d.createElement("div",{className:xe(`${l}-image`,n),style:o},a)))},Kke=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},qke=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Ze(new Array(o)).map((a,s)=>d.createElement("li",{key:s,style:{width:Kke(s,e)}}));return d.createElement("ul",{className:xe(t,n),style:r},i)},Gke=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return d.createElement("h3",{className:xe(t,n),style:Object.assign({width:r},o)})};function KT(e){return e&&typeof e=="object"?e:{}}function Yke(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Xke(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Qke(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const pd=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:h,direction:p,skeleton:m}=d.useContext(Yt),g=h("skeleton",t),[v,b,y]=Rv(g);if(n||!("loading"in e)){const S=!!s,w=!!l,E=!!c;let C;if(S){const P=Object.assign(Object.assign({prefixCls:`${g}-avatar`},Yke(w,E)),KT(s));C=d.createElement("div",{className:`${g}-header`},d.createElement(A$,Object.assign({},P)))}let x;if(w||E){let P;if(w){const I=Object.assign(Object.assign({prefixCls:`${g}-title`},Xke(S,E)),KT(l));P=d.createElement(Gke,Object.assign({},I))}let O;if(E){const I=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},Qke(S,w)),KT(c));O=d.createElement(qke,Object.assign({},I))}x=d.createElement("div",{className:`${g}-content`},P,O)}const _=xe(g,{[`${g}-with-avatar`]:S,[`${g}-active`]:u,[`${g}-rtl`]:p==="rtl",[`${g}-round`]:f},m==null?void 0:m.className,r,o,b,y);return v(d.createElement("div",{className:_,style:Object.assign(Object.assign({},m==null?void 0:m.style),i)},C,x))}return a??null};pd.Button=zke;pd.Avatar=Bke;pd.Input=Wke;pd.Image=Uke;pd.Node=Vke;function Hz(){}const Jke=d.createContext({add:Hz,remove:Hz});function Sre(e){const t=d.useContext(Jke),n=d.useRef(null);return An(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const Uz=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(W1);return de.createElement(Hn,Object.assign({onClick:n},e),t)},Wz=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=d.useContext(W1);return de.createElement(Hn,Object.assign({},_A(n),{loading:e,onClick:o},t),r)};function Cre(e,t){return de.createElement("span",{className:`${e}-close-x`},t||de.createElement(ou,{className:`${e}-close-icon`}))}const wre=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=zi("Modal",Ute()),f=t||(u==null?void 0:u.okText),h=r||(u==null?void 0:u.cancelText),p={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:h,okType:n,onOk:i,onCancel:a},m=de.useMemo(()=>p,Ze(Object.values(p)));let g;return typeof c=="function"||typeof c>"u"?(g=de.createElement(de.Fragment,null,de.createElement(Uz,null),de.createElement(Wz,null)),typeof c=="function"&&(g=c(g,{OkBtn:Wz,CancelBtn:Uz})),g=de.createElement(rre,{value:m},g)):g=c,de.createElement(yA,{disabled:!1},g)},Zke=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"}}}},e4e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},t4e=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Q3=(e,t)=>t4e(e,t),n4e=(e,t,n)=>({[`@media (min-width: ${_e(t)})`]:Object.assign({},Q3(e,n))}),r4e=()=>({}),o4e=()=>({}),i4e=Kn("Grid",Zke,r4e),xre=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),a4e=Kn("Grid",e=>{const t=kn(e,{gridColumns:24}),n=xre(t);return delete n.xs,[e4e(t),Q3(t,""),Q3(t,"-xs"),Object.keys(n).map(r=>n4e(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},o4e);function Vz(e){return{position:e,inset:0}}const Ere=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({},Vz("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Vz("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:OA(e)}]},s4e=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:`${_e(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Qn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${_e(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:_e(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ka(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${_e(e.borderRadiusLG)} ${_e(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:`${_e(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"}}}]},c4e=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},u4e=e=>{const{componentCls:t}=e,n=Ere(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${_e(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Ze(r))}}},$re=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return kn(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()})},Pre=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${_e(e.padding)} ${_e(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${_e(e.paddingXS)} ${_e(e.padding)}`:0,footerBorderTop:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${_e(e.padding*2)} ${_e(e.padding*2)} ${_e(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Ore=Kn("Modal",e=>{const t=$re(e);return[l4e(t),c4e(t),_re(t),Mv(t,"zoom"),u4e(t)]},Pre,{unitless:{titleLineHeight:!0}});var d4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{Z3={x:e.pageX,y:e.pageY},setTimeout(()=>{Z3=null},100)};Ike()&&document.documentElement.addEventListener("click",f4e,!0);const Mre=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=d.useContext(Yt),a=ie=>{const{onCancel:G}=e;G==null||G(ie)},s=ie=>{const{onOk:G}=e;G==null||G(ie)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:h,centered:p,getContainer:m,focusTriggerAfterClose:g=!0,style:v,visible:b,width:y=520,footer:S,classNames:w,styles:E,children:C,loading:x}=e,_=d4e(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),P=r("modal",l),O=r(),I=Mr(P),[M,T,D]=Ore(P,I),A=xe(h,{[`${P}-centered`]:!!p,[`${P}-wrap-rtl`]:o==="rtl"}),j=S!==null&&!x?d.createElement(xre,Object.assign({},e,{onOk:s,onCancel:a})):null,[k,F,V]=zA(Vg(e),Vg(i),{closable:!0,closeIcon:d.createElement(iu,{className:`${P}-close-icon`}),closeIconRender:ie=>wre(P,ie)}),W=Cre(`.${P}-content`),[K,L]=vl("Modal",_.zIndex),[Q,ee]=d.useMemo(()=>y&&typeof y=="object"?[void 0,y]:[y,void 0],[y]),re=d.useMemo(()=>{const ie={};return ee&&Object.keys(ee).forEach(G=>{const X=ee[G];X!==void 0&&(ie[`--${P}-${G}-width`]=typeof X=="number"?`${X}px`:X)}),ie},[ee]);return M(d.createElement(ic,{form:!0,space:!0},d.createElement(L1.Provider,{value:L},d.createElement(DA,Object.assign({width:Q},_,{zIndex:K,getContainer:m===void 0?n:m,prefixCls:P,rootClassName:xe(T,u,D,I),footer:j,visible:f??b,mousePosition:(t=_.mousePosition)!==null&&t!==void 0?t:Z3,onClose:a,closable:k&&{disabled:V,closeIcon:F},closeIcon:F,focusTriggerAfterClose:g,transitionName:Mi(O,"zoom",e.transitionName),maskTransitionName:Mi(O,"fade",e.maskTransitionName),className:xe(T,c,i==null?void 0:i.className),style:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.style),v),re),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),w),{wrapper:xe(A,w==null?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),E),panelRef:W}),x?d.createElement(pd,{active:!0,title:!1,paragraph:{rows:4},className:`${P}-body-skeleton`}):C))))},h4e=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,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({},nc()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${_e(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${_e(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:i,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}}},p4e=$v(["Modal","confirm"],e=>{const t=$re(e);return[h4e(t)]},Pre,{order:-1e3});var m4e=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 o=0,r=Object.getOwnPropertySymbols(e);oy,Ze(Object.values(y))),w=d.createElement(d.Fragment,null,d.createElement(Cz,null),d.createElement(wz,null)),E=e.title!==void 0&&e.title!==null,C=`${i}-body`;return d.createElement("div",{className:`${i}-body-wrapper`},d.createElement("div",{className:xe(C,{[`${C}-has-title`]:E})},f,d.createElement("div",{className:`${i}-paragraph`},E&&d.createElement("span",{className:`${i}-title`},e.title),d.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(ore,{value:S},d.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(w,{OkBtn:wz,CancelBtn:Cz}):w)):l,d.createElement(p4e,{prefixCls:t}))}const g4e=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,h=`${i}-confirm`,p=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,b=xe(h,`${h}-${e.type}`,{[`${h}-rtl`]:o==="rtl"},e.className),[,y]=Ho(),S=d.useMemo(()=>n!==void 0?n:y.zIndexPopupBase+EA,[n,y]);return d.createElement(Mre,Object.assign({},e,{className:b,wrapClassName:xe({[`${h}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:Mi(s||"","zoom",e.transitionName),maskTransitionName:Mi(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:m,styles:Object.assign({body:l,mask:r},f),width:p,zIndex:S,closable:c}),d.createElement(Tre,Object.assign({},e,{confirmPrefixCls:h})))},Rre=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return d.createElement(Mn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},d.createElement(g4e,Object.assign({},e)))},Mh=[];let Ire="";function kre(){return Ire}const v4e=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Wte(),s=d.useContext(Yt),l=kre()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0),de.createElement(Rre,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function K1(e){const t=Ene(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o,i;function a(){for(var u,f=arguments.length,h=new Array(f),p=0;pv==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(Ze(h.slice(1))))}for(let v=0;v{const f=t.getPrefixCls(void 0,kre()),h=t.getIconPrefixCls(),p=t.getTheme(),m=de.createElement(v4e,Object.assign({},u));i=$A()(de.createElement(Mn,{prefixCls:f,iconPrefixCls:h,theme:p},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,f=new Array(u),h=0;h{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,f)}}),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),Mh.push(l),{destroy:l,update:c}}function Nre(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Are(e){return Object.assign(Object.assign({},e),{type:"info"})}function Dre(e){return Object.assign(Object.assign({},e),{type:"success"})}function jre(e){return Object.assign(Object.assign({},e),{type:"error"})}function Fre(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function y4e(e){let{rootPrefixCls:t}=e;Ire=t}var b4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,i=b4e(e,["afterClose","config"]);const[a,s]=d.useState(!0),[l,c]=d.useState(o),{direction:u,getPrefixCls:f}=d.useContext(Yt),h=f("modal"),p=f(),m=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},g=function(){var y;s(!1);for(var S=arguments.length,w=new Array(S),E=0;E_==null?void 0:_.triggerCancel)){var x;(y=l.onCancel)===null||y===void 0||(x=y).call.apply(x,[l,()=>{}].concat(Ze(w.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:g,update:y=>{c(S=>Object.assign(Object.assign({},S),y))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[b]=zi("Modal",Os.Modal);return d.createElement(Rre,Object.assign({prefixCls:h,rootPrefixCls:p},l,{close:g,open:a,afterClose:m,okText:l.okText||(v?b==null?void 0:b.okText:b==null?void 0:b.justOkText),direction:l.direction||u,cancelText:l.cancelText||(b==null?void 0:b.cancelText)},i))},C4e=d.forwardRef(S4e);let Gz=0;const w4e=d.memo(d.forwardRef((e,t)=>{const[n,r]=fTe();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function Lre(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(Ze(t).forEach(a=>{a()}),n([]))},[t]);const r=d.useCallback(i=>function(s){var l;Gz+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let h=!1,p;const m=d.createElement(C4e,{key:`modal-${Gz}`,config:i(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>h,onConfirm:v=>{u(v)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),p&&Mh.push(p),{destroy:()=>{function v(){var b;(b=c.current)===null||b===void 0||b.destroy()}c.current?v():n(b=>[].concat(Ze(b),[v]))},update:v=>{function b(){var y;(y=c.current)===null||y===void 0||y.update(v)}c.current?b():n(y=>[].concat(Ze(y),[b]))},then:v=>(h=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:r(Are),success:r(Dre),error:r(jre),warning:r(Nre),confirm:r(Fre)}),[]),d.createElement(w4e,{key:"modal-holder",ref:e})]}const x4e=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Gn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Gn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Gn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Gn("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,[o]:{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:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},E4e=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],_4e={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},$4e=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[_4e[t]]:{value:0,_skip_check_:!0}}}}},P4e=e=>{const t={};for(let n=1;n ${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)},O4e=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},P4e(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},O4e(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"}}}},E4e.map(n=>$4e(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},T4e=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:h,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:b,lineHeight:y,width:S,notificationIconSize:w,colorText:E}=e,C=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:h,borderRadius:a,boxShadow:r,[C]:{padding:p,width:S,maxWidth:`calc(100vw - ${_e(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:b,color:E},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:b},[`${C}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-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}},Ka(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${_e(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},R4e=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new Gn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Qn(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:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,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({},T4e(e))}}]},I4e=e=>({zIndexPopup:e.zIndexPopupBase+EA+50,width:384}),k4e=e=>{const t=e.paddingMD,n=e.paddingLG;return kn(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:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},N4e=Kn("Notification",e=>{const t=k4e(e);return[R4e(t),x4e(t),M4e(t)]},I4e);function Bre(e,t){return t===null||t===!1?null:t||d.createElement(iu,{className:`${e}-close-icon`})}const A4e={success:Lp,info:S$,error:ou,warning:Df},D4e=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=d.createElement("span",{className:`${t}-icon`},n):r&&(l=d.createElement(A4e[r]||null,{className:xe(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:xe({[`${t}-with-icon`]:l}),role:s},l,d.createElement("div",{className:`${t}-message`},o),d.createElement("div",{className:`${t}-description`},i),a&&d.createElement("div",{className:`${t}-btn`},a))};function j4e(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 F4e(e){return{motionName:`${e}-fade`}}var L4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Mr(n),[o,i,a]=N4e(n,r);return o(de.createElement(Ane,{classNames:{list:xe(i,a,r)}},t))},U4e=(e,t)=>{let{prefixCls:n,key:r}=t;return de.createElement(H4e,{prefixCls:n,key:r},e)},W4e=de.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:h}=e,{getPrefixCls:p,getPopupContainer:m,notification:g,direction:v}=d.useContext(Yt),[,b]=Ho(),y=o||p("notification"),S=_=>j4e(_,n??Yz,r??Yz),w=()=>xe({[`${y}-rtl`]:s??v==="rtl"}),E=()=>F4e(y),[C,x]=Dne({prefixCls:y,style:S,className:w,motion:E,closable:!0,closeIcon:Bre(y),duration:u??B4e,getContainer:()=>(i==null?void 0:i())||(m==null?void 0:m())||document.body,maxCount:a,pauseOnHover:f,showProgress:h,onAllRemoved:l,renderNotifications:U4e,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:b.margin}});return de.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:y,notification:g})),x});function V4e(e){const t=de.useRef(null);return ru(),[de.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,h=`${u}-notice`,{message:p,description:m,icon:g,type:v,btn:b,className:y,style:S,role:w="alert",closeIcon:E,closable:C}=s,x=L4e(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),_=Bre(h,typeof E<"u"?E:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:z4e},x),{content:de.createElement(D4e,{prefixCls:h,icon:g,type:v,message:p,description:m,btn:b,role:w}),className:xe(v&&`${h}-${v}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),S),closeIcon:_,closable:C??!!_}))},i={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=>{i[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),i},[]),de.createElement(W4e,Object.assign({key:"notification-holder"},e,{ref:t}))]}function K4e(e){return V4e(e)}const e6=de.createContext({}),zre=de.createContext({message:{},notification:{},modal:{}}),q4e=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},G4e=()=>({}),Y4e=Kn("App",q4e,G4e),X4e=()=>de.useContext(zre),j$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=d.useContext(Yt),f=u("app",t),[h,p,m]=Y4e(f),g=xe(p,f,r,o,m,{[`${f}-rtl`]:c==="rtl"}),v=d.useContext(e6),b=de.useMemo(()=>({message:Object.assign(Object.assign({},v.message),i),notification:Object.assign(Object.assign({},v.notification),a)}),[i,a,v.message,v.notification]),[y,S]=zne(b.message),[w,E]=K4e(b.notification),[C,x]=Lre(),_=de.useMemo(()=>({message:y,notification:w,modal:C}),[y,w,C]);ru()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const P=l===!1?de.Fragment:l,O={className:g,style:s};return h(de.createElement(zre.Provider,{value:_},de.createElement(e6.Provider,{value:b},de.createElement(P,Object.assign({},l===!1?void 0:O),x,S,E,n))))};j$.useApp=X4e;function Hre(e){return t=>d.createElement(Mn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const jf=(e,t,n,r,o)=>Hre(a=>{const{prefixCls:s,style:l}=a,c=d.useRef(null),[u,f]=d.useState(0),[h,p]=d.useState(0),[m,g]=xn(!1,{value:a.open}),{getPrefixCls:v}=d.useContext(Yt),b=v(r||"select",s);d.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(C=>{const x=C[0].target;f(x.offsetHeight+8),p(x.offsetWidth)}),E=setInterval(()=>{var C;const x=o?`.${o(b)}`:`.${b}-dropdown`,_=(C=c.current)===null||C===void 0?void 0:C.querySelector(x);_&&(clearInterval(E),w.observe(_))},10);return()=>{clearInterval(E),w.disconnect()}}},[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const S={paddingBottom:u,position:"relative",minWidth:h};return d.createElement("div",{ref:c,style:S},d.createElement(e,Object.assign({},y)))}),F$=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 L$=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(o):r;return d.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:d.createElement("span",{className:xe(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Q4e=function(t,n,r,o,i){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=de.useMemo(function(){if(Ht(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=de.useMemo(function(){return!!(!a&&o&&(r.length||s)&&!(l==="combobox"&&s===""))},[o,a,r.length,s,l]);return{allowClear:u,clearIcon:de.createElement(L$,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},Ure=d.createContext(null);function HA(){return d.useContext(Ure)}function J4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=$e(t,2),r=n[0],o=n[1],i=d.useRef(null),a=function(){window.clearTimeout(i.current)};d.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[r,s,a]}function Wre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Z4e(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function e3e(e){return e&&![ut.ESC,ut.SHIFT,ut.BACKSPACE,ut.TAB,ut.WIN_KEY,ut.ALT,ut.META,ut.WIN_KEY_RIGHT,ut.CTRL,ut.SEMICOLON,ut.EQUALS,ut.CAPS_LOCK,ut.CONTEXT_MENU,ut.F1,ut.F2,ut.F3,ut.F4,ut.F5,ut.F6,ut.F7,ut.F8,ut.F9,ut.F10,ut.F11,ut.F12].includes(e)}var t3e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],um=void 0;function n3e(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,h=e.children,p=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,b=At(e,t3e),y=a&&!p;function S(_){l(c,_)}d.useEffect(function(){return function(){S(null)}},[]);var w=i&&o!==um?i(o):h,E;r||(E={opacity:y?0:1,height:y?0:um,overflowY:y?"hidden":um,order:a?m:um,pointerEvents:y?"none":um,position:y?"absolute":um});var C={};y&&(C["aria-hidden"]=!0);var x=d.createElement(v,Ge({className:xe(!r&&n,u),style:z(z({},E),f)},C,b,{ref:t}),w);return a&&(x=d.createElement(Oi,{onResize:function(P){var O=P.offsetWidth;S(O)},disabled:s},x)),x}var Hy=d.forwardRef(n3e);Hy.displayName="Item";function r3e(e){if(typeof MessageChannel>"u")zn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function o3e(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],r3e(function(){hi.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function A0(e,t){var n=d.useState(t),r=$e(n,2),o=r[0],i=r[1],a=An(function(s){e(function(){i(s)})});return[o,a]}var G2=de.createContext(null),i3e=["component"],a3e=["className"],s3e=["className"],l3e=function(t,n){var r=d.useContext(G2);if(!r){var o=t.component,i=o===void 0?"div":o,a=At(t,i3e);return d.createElement(i,Ge({},a,{ref:n}))}var s=r.className,l=At(r,a3e),c=t.className,u=At(t,s3e);return d.createElement(G2.Provider,{value:null},d.createElement(Hy,Ge({ref:n,className:xe(s,c)},l,u)))},Vre=d.forwardRef(l3e);Vre.displayName="RawItem";var c3e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Kre="responsive",qre="invalidate";function u3e(e){return"+ ".concat(e.length," ...")}function d3e(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,h=e.style,p=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,w=e.itemComponent,E=e.onVisibleChange,C=At(e,c3e),x=f==="full",_=o3e(),P=A0(_,null),O=$e(P,2),I=O[0],M=O[1],T=I||0,D=A0(_,new Map),A=$e(D,2),j=A[0],k=A[1],F=A0(_,0),V=$e(F,2),W=V[0],K=V[1],L=A0(_,0),Q=$e(L,2),ee=Q[0],re=Q[1],ie=A0(_,0),G=$e(ie,2),X=G[0],ne=G[1],le=d.useState(null),ce=$e(le,2),oe=ce[0],se=ce[1],fe=d.useState(null),te=$e(fe,2),he=te[0],pe=te[1],Oe=d.useMemo(function(){return he===null&&x?Number.MAX_SAFE_INTEGER:he||0},[he,I]),Me=d.useState(!1),Se=$e(Me,2),ye=Se[0],ve=Se[1],be="".concat(r,"-item"),Pe=Math.max(W,ee),Ne=m===Kre,U=i.length&&Ne,H=m===qre,q=U||typeof m=="number"&&i.length>m,me=d.useMemo(function(){var wt=i;return U?I===null&&x?wt=i:wt=i.slice(0,Math.min(i.length,T/u)):typeof m=="number"&&(wt=i.slice(0,m)),wt},[i,u,I,m,U]),Ce=d.useMemo(function(){return U?i.slice(Oe+1):i.slice(me.length)},[i,me,U,Oe]),ue=d.useCallback(function(wt,Et){var Tt;return typeof l=="function"?l(wt):(Tt=l&&(wt==null?void 0:wt[l]))!==null&&Tt!==void 0?Tt:Et},[l]),Le=d.useCallback(a||function(wt){return wt},[a]);function He(wt,Et,Tt){he===wt&&(Et===void 0||Et===oe)||(pe(wt),Tt||(ve(wtT){He(Be-1,wt-We-X+ee);break}}b&&Ke(0)+X>T&&se(null)}},[T,j,ee,X,ue,me]);var Ue=ye&&!!Ce.length,Ve={};oe!==null&&U&&(Ve={position:"absolute",left:oe,top:0});var St={prefixCls:be,responsive:U,component:w,invalidate:H},et=s?function(wt,Et){var Tt=ue(wt,Et);return d.createElement(G2.Provider,{key:Tt,value:z(z({},St),{},{order:Et,item:wt,itemKey:Tt,registerSize:De,display:Et<=Oe})},s(wt,Et))}:function(wt,Et){var Tt=ue(wt,Et);return d.createElement(Hy,Ge({},St,{order:Et,key:Tt,item:wt,renderItem:Le,itemKey:Tt,registerSize:De,display:Et<=Oe}))},st,Ct={order:Ue?Oe:Number.MAX_SAFE_INTEGER,className:"".concat(be,"-rest"),registerSize:qe,display:Ue};if(v)v&&(st=d.createElement(G2.Provider,{value:z(z({},St),Ct)},v(Ce)));else{var dt=g||u3e;st=d.createElement(Hy,Ge({},St,Ct),typeof dt=="function"?dt(Ce):dt)}var Lt=d.createElement(S,Ge({className:xe(!H&&r,p),style:h,ref:t},C),me.map(et),q?st:null,b&&d.createElement(Hy,Ge({},St,{responsive:Ne,responsiveDisabled:!U,order:Oe,className:"".concat(be,"-suffix"),registerSize:je,display:!0,style:Ve}),b));return Ne&&(Lt=d.createElement(Oi,{onResize:ge,disabled:!U},Lt)),Lt}var ql=d.forwardRef(d3e);ql.displayName="Overflow";ql.Item=Vre;ql.RESPONSIVE=Kre;ql.INVALIDATE=qre;var f3e=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,h=t.activeDescendantId,p=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,b=t.onChange,y=t.onPaste,S=t.onCompositionStart,w=t.onCompositionEnd,E=t.onBlur,C=t.open,x=t.attrs,_=a||d.createElement("input",null),P=_,O=P.ref,I=P.props,M=I.onKeyDown,T=I.onChange,D=I.onMouseDown,A=I.onCompositionStart,j=I.onCompositionEnd,k=I.onBlur,F=I.style;return"maxLength"in _.props,_=d.cloneElement(_,z(z(z({type:"search"},I),{},{id:i,ref:Si(n,O),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:xe("".concat(o,"-selection-search-input"),(r=_)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":C?h:void 0},x),{},{value:f?p:"",maxLength:m,readOnly:!f,unselectable:f?null:"on",style:z(z({},F),{},{opacity:f?null:0}),onKeyDown:function(W){g(W),M&&M(W)},onMouseDown:function(W){v(W),D&&D(W)},onChange:function(W){b(W),T&&T(W)},onCompositionStart:function(W){S(W),A&&A(W)},onCompositionEnd:function(W){w(W),j&&j(W)},onPaste:y,onBlur:function(W){E(W),k&&k(W)}})),_},Gre=d.forwardRef(f3e);function Yre(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var h3e=typeof window<"u"&&window.document&&window.document.documentElement,p3e=h3e;function m3e(e){return e!=null}function g3e(e){return!e&&e!==0}function Xz(e){return["string","number"].includes(Ht(e))}function Xre(e){var t=void 0;return e&&(Xz(e.title)?t=e.title.toString():Xz(e.label)&&(t=e.label.toString())),t}function v3e(e,t){p3e?d.useLayoutEffect(e,t):d.useEffect(e,t)}function y3e(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Qz=function(t){t.preventDefault(),t.stopPropagation()},b3e=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,h=t.showSearch,p=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,w=t.maxTagPlaceholder,E=w===void 0?function(fe){return"+ ".concat(fe.length," ...")}:w,C=t.tagRender,x=t.onToggleOpen,_=t.onRemove,P=t.onInputChange,O=t.onInputPaste,I=t.onInputKeyDown,M=t.onInputMouseDown,T=t.onInputCompositionStart,D=t.onInputCompositionEnd,A=t.onInputBlur,j=d.useRef(null),k=d.useState(0),F=$e(k,2),V=F[0],W=F[1],K=d.useState(!1),L=$e(K,2),Q=L[0],ee=L[1],re="".concat(r,"-selection"),ie=i||f==="multiple"&&s===!1||f==="tags"?a:"",G=f==="tags"||f==="multiple"&&s===!1||h&&(i||Q);v3e(function(){W(j.current.scrollWidth)},[ie]);var X=function(te,he,pe,Oe,Me){return d.createElement("span",{title:Xre(te),className:xe("".concat(re,"-item"),Z({},"".concat(re,"-item-disabled"),pe))},d.createElement("span",{className:"".concat(re,"-item-content")},he),Oe&&d.createElement(L$,{className:"".concat(re,"-item-remove"),onMouseDown:Qz,onClick:Me,customizeIcon:b},"×"))},ne=function(te,he,pe,Oe,Me,Se){var ye=function(be){Qz(be),x(!i)};return d.createElement("span",{onMouseDown:ye},C({label:he,value:te,disabled:pe,closable:Oe,onClose:Me,isMaxTag:!!Se}))},le=function(te){var he=te.disabled,pe=te.label,Oe=te.value,Me=!u&&!he,Se=pe;if(typeof S=="number"&&(typeof pe=="string"||typeof pe=="number")){var ye=String(Se);ye.length>S&&(Se="".concat(ye.slice(0,S),"..."))}var ve=function(Pe){Pe&&Pe.stopPropagation(),_(te)};return typeof C=="function"?ne(Oe,Se,he,Me,ve):X(te,Se,he,Me,ve)},ce=function(te){if(!o.length)return null;var he=typeof E=="function"?E(te):E;return typeof C=="function"?ne(void 0,he,!1,!1,void 0,!0):X({title:he},he,!1)},oe=d.createElement("div",{className:"".concat(re,"-search"),style:{width:V},onFocus:function(){ee(!0)},onBlur:function(){ee(!1)}},d.createElement(Gre,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:m,editable:G,activeDescendantId:g,value:ie,onKeyDown:I,onMouseDown:M,onChange:P,onPaste:O,onCompositionStart:T,onCompositionEnd:D,onBlur:A,tabIndex:v,attrs:Jr(t,!0)}),d.createElement("span",{ref:j,className:"".concat(re,"-search-mirror"),"aria-hidden":!0},ie," ")),se=d.createElement(ql,{prefixCls:"".concat(re,"-overflow"),data:o,renderItem:le,renderRest:ce,suffix:oe,itemKey:y3e,maxCount:y});return d.createElement("span",{className:"".concat(re,"-wrap")},se,!o.length&&!ie&&d.createElement("span",{className:"".concat(re,"-placeholder")},c))},S3e=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,h=t.values,p=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,w=t.onInputMouseDown,E=t.onInputChange,C=t.onInputPaste,x=t.onInputCompositionStart,_=t.onInputCompositionEnd,P=t.onInputBlur,O=t.title,I=d.useState(!1),M=$e(I,2),T=M[0],D=M[1],A=u==="combobox",j=A||g,k=h[0],F=v||"";A&&b&&!T&&(F=b),d.useEffect(function(){A&&D(!1)},[A,b]);var V=u!=="combobox"&&!f&&!g?!1:!!F,W=O===void 0?Xre(k):O,K=d.useMemo(function(){return k?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:V?{visibility:"hidden"}:void 0},p)},[k,V,p,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(Gre,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:j,activeDescendantId:c,value:F,onKeyDown:S,onMouseDown:w,onChange:function(Q){D(!0),E(Q)},onPaste:C,onCompositionStart:x,onCompositionEnd:_,onBlur:P,tabIndex:m,attrs:Jr(t,!0),maxLength:A?y:void 0})),!A&&k?d.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:V?{visibility:"hidden"}:void 0},k.label):null,K)},C3e=function(t,n){var r=d.useRef(null),o=d.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,h=t.autoClearSearchValue,p=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,b=t.onInputBlur,y=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var S=Wre(0),w=$e(S,2),E=w[0],C=w[1],x=function(W){var K=W.which,L=r.current instanceof HTMLTextAreaElement;!L&&a&&(K===ut.UP||K===ut.DOWN)&&W.preventDefault(),v&&v(W),K===ut.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(W.target.value)),!(L&&!a&&~[ut.UP,ut.DOWN,ut.LEFT,ut.RIGHT].indexOf(K))&&e3e(K)&&g(!0)},_=function(){C(!0)},P=d.useRef(null),O=function(W){p(W,!0,o.current)!==!1&&g(!0)},I=function(){o.current=!0},M=function(W){o.current=!1,s!=="combobox"&&O(W.target.value)},T=function(W){var K=W.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var L=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(L,P.current)}P.current=null,O(K)},D=function(W){var K=W.clipboardData,L=K==null?void 0:K.getData("text");P.current=L||""},A=function(W){var K=W.target;if(K!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus()}):r.current.focus()}},j=function(W){var K=E();W.target!==r.current&&!K&&!(s==="combobox"&&u)&&W.preventDefault(),(s!=="combobox"&&(!l||!K)||!a)&&(a&&h!==!1&&p("",!0,!1),g())},k={inputRef:r,onInputKeyDown:x,onInputMouseDown:_,onInputChange:T,onInputPaste:D,onInputCompositionStart:I,onInputCompositionEnd:M,onInputBlur:b},F=s==="multiple"||s==="tags"?d.createElement(b3e,Ge({},t,k)):d.createElement(S3e,Ge({},t,k));return d.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:A,onMouseDown:j},f&&d.createElement("div",{className:"".concat(i,"-prefix")},f),F)},w3e=d.forwardRef(C3e);function x3e(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,h=d.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],y=g[0],S=g[1];v===y||!["t","b"].includes(v)?p.top=f:v==="t"?p.top=0:p.bottom=0,b===S||!["l","r"].includes(b)?p.left=c:b==="l"?p.left=0:p.right=0}return d.createElement("div",{ref:h,className:xe("".concat(t,"-arrow"),a),style:p},s)}function E3e(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?d.createElement(Jo,Ge({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return d.createElement("div",{style:{zIndex:r},className:xe("".concat(t,"-mask"),s)})}):null}var _3e=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),$3e=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,h=e.mask,p=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,w=e.autoDestroy,E=e.portal,C=e.zIndex,x=e.onMouseEnter,_=e.onMouseLeave,P=e.onPointerEnter,O=e.onPointerDownCapture,I=e.ready,M=e.offsetX,T=e.offsetY,D=e.offsetR,A=e.offsetB,j=e.onAlign,k=e.onPrepare,F=e.stretch,V=e.targetWidth,W=e.targetHeight,K=typeof n=="function"?n():n,L=l||c,Q=(S==null?void 0:S.length)>0,ee=d.useState(!S||!Q),re=$e(ee,2),ie=re[0],G=re[1];if(Zn(function(){!ie&&Q&&a&&G(!0)},[ie,Q,a]),!ie)return null;var X="auto",ne={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(I||!l){var le,ce=g.points,oe=g.dynamicInset||((le=g._experimental)===null||le===void 0?void 0:le.dynamicInset),se=oe&&ce[0][1]==="r",fe=oe&&ce[0][0]==="b";se?(ne.right=D,ne.left=X):(ne.left=M,ne.right=X),fe?(ne.bottom=A,ne.top=X):(ne.top=T,ne.bottom=X)}var te={};return F&&(F.includes("height")&&W?te.height=W:F.includes("minHeight")&&W&&(te.minHeight=W),F.includes("width")&&V?te.width=V:F.includes("minWidth")&&V&&(te.minWidth=V)),l||(te.pointerEvents="none"),d.createElement(E,{open:y||L,getContainer:S&&function(){return S(a)},autoDestroy:w},d.createElement(E3e,{prefixCls:o,open:l,zIndex:C,mask:h,motion:b}),d.createElement(Oi,{onResize:j,disabled:!l},function(he){return d.createElement(Jo,Ge({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:k,onEnterPrepare:k,visible:l,onVisibleChanged:function(Oe){var Me;v==null||(Me=v.onVisibleChanged)===null||Me===void 0||Me.call(v,Oe),s(Oe)}}),function(pe,Oe){var Me=pe.className,Se=pe.style,ye=xe(o,Me,r);return d.createElement("div",{ref:Si(he,t,Oe),className:ye,style:z(z(z(z({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ne),te),Se),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:x,onMouseLeave:_,onPointerEnter:P,onClick:f,onPointerDownCapture:O},p&&d.createElement(x3e,{prefixCls:o,arrow:p,arrowPos:m,align:g}),d.createElement(_3e,{cache:!l&&!u},K))})}))}),P3e=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=tc(n),i=d.useCallback(function(s){Nb(t,r?r(s):s)},[r]),a=mc(i,Af(n));return o?d.cloneElement(n,{ref:a}):n}),Jz=d.createContext(null);function Zz(e){return e?Array.isArray(e)?e:[e]:[]}function O3e(e,t,n,r){return d.useMemo(function(){var o=Zz(n??t),i=Zz(r??t),a=new Set(o),s=new Set(i);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 M3e(){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 T3e(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function D0(e){return Kb(parseFloat(e),0)}function tH(e,t){var n=z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=q1(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),h=r.offsetHeight,p=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=D0(s),b=D0(l),y=D0(c),S=D0(u),w=Kb(Math.round(f.width/m*1e3)/1e3),E=Kb(Math.round(f.height/h*1e3)/1e3),C=(m-g-y-S)*w,x=(h-p-v-b)*E,_=v*E,P=b*E,O=y*w,I=S*w,M=0,T=0;if(i==="clip"){var D=D0(a);M=D*w,T=D*E}var A=f.x+O-M,j=f.y+_-T,k=A+f.width+2*M-O-I-C,F=j+f.height+2*T-_-P-x;n.left=Math.max(n.left,A),n.top=Math.max(n.top,j),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,F)}}),n}function nH(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 rH(e,t){var n=t||[],r=$e(n,2),o=r[0],i=r[1];return[nH(e.width,o),nH(e.height,i)]}function oH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function dm(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function _d(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function R3e(e,t,n,r,o,i,a){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=$e(s,2),c=l[0],u=l[1],f=d.useRef(0),h=d.useMemo(function(){return t?t6(t):[]},[t]),p=d.useRef({}),m=function(){p.current={}};e||m();var g=An(function(){if(t&&n&&e){let Sn=function(cr,Uo){var si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe,Ar=ee.x+cr,li=ee.y+Uo,du=Ar+se,fu=li+oe,Wf=Math.max(Ar,si.left),Cn=Math.max(li,si.top),Xn=Math.min(du,si.right),wr=Math.min(fu,si.bottom);return Math.max(0,(Xn-Wf)*(wr-Cn))},Dn=function(){Wt=ee.y+Tt,at=Wt+oe,Pt=ee.x+Et,Bt=Pt+se};var y,S,w,E,C=t,x=C.ownerDocument,_=q1(C),P=_.getComputedStyle(C),O=P.width,I=P.height,M=P.position,T=C.style.left,D=C.style.top,A=C.style.right,j=C.style.bottom,k=C.style.overflow,F=z(z({},o[r]),i),V=x.createElement("div");(y=C.parentElement)===null||y===void 0||y.appendChild(V),V.style.left="".concat(C.offsetLeft,"px"),V.style.top="".concat(C.offsetTop,"px"),V.style.position=M,V.style.height="".concat(C.offsetHeight,"px"),V.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var W;if(Array.isArray(n))W={x:n[0],y:n[1],width:0,height:0};else{var K,L,Q=n.getBoundingClientRect();Q.x=(K=Q.x)!==null&&K!==void 0?K:Q.left,Q.y=(L=Q.y)!==null&&L!==void 0?L:Q.top,W={x:Q.x,y:Q.y,width:Q.width,height:Q.height}}var ee=C.getBoundingClientRect();ee.x=(S=ee.x)!==null&&S!==void 0?S:ee.left,ee.y=(w=ee.y)!==null&&w!==void 0?w:ee.top;var re=x.documentElement,ie=re.clientWidth,G=re.clientHeight,X=re.scrollWidth,ne=re.scrollHeight,le=re.scrollTop,ce=re.scrollLeft,oe=ee.height,se=ee.width,fe=W.height,te=W.width,he={left:0,top:0,right:ie,bottom:G},pe={left:-ce,top:-le,right:X-ce,bottom:ne-le},Oe=F.htmlRegion,Me="visible",Se="visibleFirst";Oe!=="scroll"&&Oe!==Se&&(Oe=Me);var ye=Oe===Se,ve=tH(pe,h),be=tH(he,h),Pe=Oe===Me?be:ve,Ne=ye?be:Pe;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var U=C.getBoundingClientRect();C.style.left=T,C.style.top=D,C.style.right=A,C.style.bottom=j,C.style.overflow=k,(E=C.parentElement)===null||E===void 0||E.removeChild(V);var H=Kb(Math.round(se/parseFloat(O)*1e3)/1e3),q=Kb(Math.round(oe/parseFloat(I)*1e3)/1e3);if(H===0||q===0||kb(n)&&!Ov(n))return;var me=F.offset,Ce=F.targetOffset,ue=rH(ee,me),Le=$e(ue,2),He=Le[0],ge=Le[1],De=rH(W,Ce),qe=$e(De,2),je=qe[0],Ke=qe[1];W.x-=je,W.y-=Ke;var Ue=F.points||[],Ve=$e(Ue,2),St=Ve[0],et=Ve[1],st=oH(et),Ct=oH(St),dt=dm(W,st),Lt=dm(ee,Ct),wt=z({},F),Et=dt.x-Lt.x+He,Tt=dt.y-Lt.y+ge,Be=Sn(Et,Tt),We=Sn(Et,Tt,be),Fe=dm(W,["t","l"]),Xe=dm(ee,["t","l"]),gt=dm(W,["b","r"]),pt=dm(ee,["b","r"]),Rt=F.overflow||{},_t=Rt.adjustX,vt=Rt.adjustY,ft=Rt.shiftX,It=Rt.shiftY,bt=function(Uo){return typeof Uo=="boolean"?Uo:Uo>=0},Wt,at,Pt,Bt;Dn();var xt=bt(vt),yt=Ct[0]===st[0];if(xt&&Ct[0]==="t"&&(at>Ne.bottom||p.current.bt)){var Ft=Tt;yt?Ft-=oe-fe:Ft=Fe.y-pt.y-ge;var Re=Sn(Et,Ft),kt=Sn(Et,Ft,be);Re>Be||Re===Be&&(!ye||kt>=We)?(p.current.bt=!0,Tt=Ft,ge=-ge,wt.points=[_d(Ct,0),_d(st,0)]):p.current.bt=!1}if(xt&&Ct[0]==="b"&&(WtBe||Mt===Be&&(!ye||Ot>=We)?(p.current.tb=!0,Tt=tt,ge=-ge,wt.points=[_d(Ct,0),_d(st,0)]):p.current.tb=!1}var pn=bt(_t),Pn=Ct[1]===st[1];if(pn&&Ct[1]==="l"&&(Bt>Ne.right||p.current.rl)){var $=Et;Pn?$-=se-te:$=Fe.x-pt.x-He;var R=Sn($,Tt),J=Sn($,Tt,be);R>Be||R===Be&&(!ye||J>=We)?(p.current.rl=!0,Et=$,He=-He,wt.points=[_d(Ct,1),_d(st,1)]):p.current.rl=!1}if(pn&&Ct[1]==="r"&&(PtBe||ke===Be&&(!ye||Je>=We)?(p.current.lr=!0,Et=Ee,He=-He,wt.points=[_d(Ct,1),_d(st,1)]):p.current.lr=!1}Dn();var Dt=ft===!0?0:ft;typeof Dt=="number"&&(Ptbe.right&&(Et-=Bt-be.right-He,W.x>be.right-Dt&&(Et+=W.x-be.right+Dt)));var an=It===!0?0:It;typeof an=="number"&&(Wtbe.bottom&&(Tt-=at-be.bottom-ge,W.y>be.bottom-an&&(Tt+=W.y-be.bottom+an)));var En=ee.x+Et,Cr=En+se,ur=ee.y+Tt,Nr=ur+oe,tr=W.x,en=tr+te,un=W.y,rr=un+fe,Qt=Math.max(En,tr),Jt=Math.min(Cr,en),Rn=(Qt+Jt)/2,er=Rn-En,$r=Math.max(ur,un),ao=Math.min(Nr,rr),Bn=($r+ao)/2,Yr=Bn-ur;a==null||a(t,wt);var Fn=U.right-ee.x-(Et+ee.width),rn=U.bottom-ee.y-(Tt+ee.height);H===1&&(Et=Math.round(Et),Fn=Math.round(Fn)),q===1&&(Tt=Math.round(Tt),rn=Math.round(rn));var fn={ready:!0,offsetX:Et/H,offsetY:Tt/q,offsetR:Fn/H,offsetB:rn/q,arrowX:er/H,arrowY:Yr/q,scaleX:H,scaleY:q,align:wt};u(fn)}}),v=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&g()})},b=function(){u(function(S){return z(z({},S),{},{ready:!1})})};return Zn(b,[r]),Zn(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function I3e(e,t,n,r,o){Zn(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,s=t6(i),l=t6(a),c=q1(a),u=new Set([c].concat(Ze(s),Ze(l)));return u.forEach(function(h){h.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function k3e(e,t,n,r,o,i,a,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){c.current=!1},h=function(v){var b;l.current&&!a(((b=v.composedPath)===null||b===void 0||(b=b.call(v))===null||b===void 0?void 0:b[0])||v.target)&&!c.current&&s(!1)},p=q1(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",h,!0),p.addEventListener("contextmenu",h,!0);var m=K2(n);return m&&(m.addEventListener("mousedown",h,!0),m.addEventListener("contextmenu",h,!0)),function(){p.removeEventListener("pointerdown",f,!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,o,i]);function u(){c.current=!0}return u}var N3e=["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 A3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W1,t=d.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,h=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,b=v===void 0?.1:v,y=n.focusDelay,S=n.blurDelay,w=n.mask,E=n.maskClosable,C=E===void 0?!0:E,x=n.getPopupContainer,_=n.forceRender,P=n.autoDestroy,O=n.destroyPopupOnHide,I=n.popup,M=n.popupClassName,T=n.popupStyle,D=n.popupPlacement,A=n.builtinPlacements,j=A===void 0?{}:A,k=n.popupAlign,F=n.zIndex,V=n.stretch,W=n.getPopupClassNameFromAlign,K=n.fresh,L=n.alignPoint,Q=n.onPopupClick,ee=n.onPopupAlign,re=n.arrow,ie=n.popupMotion,G=n.maskMotion,X=n.popupTransitionName,ne=n.popupAnimation,le=n.maskTransitionName,ce=n.maskAnimation,oe=n.className,se=n.getTriggerDOMNode,fe=At(n,N3e),te=P||O||!1,he=d.useState(!1),pe=$e(he,2),Oe=pe[0],Me=pe[1];Zn(function(){Me(F$())},[]);var Se=d.useRef({}),ye=d.useContext(Jz),ve=d.useMemo(function(){return{registerSubPopup:function(Xn,wr){Se.current[Xn]=wr,ye==null||ye.registerSubPopup(Xn,wr)}}},[ye]),be=N$(),Pe=d.useState(null),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=d.useRef(null),me=An(function(Cn){q.current=Cn,kb(Cn)&&U!==Cn&&H(Cn),ye==null||ye.registerSubPopup(be,Cn)}),Ce=d.useState(null),ue=$e(Ce,2),Le=ue[0],He=ue[1],ge=d.useRef(null),De=An(function(Cn){kb(Cn)&&Le!==Cn&&(He(Cn),ge.current=Cn)}),qe=d.Children.only(a),je=(qe==null?void 0:qe.props)||{},Ke={},Ue=An(function(Cn){var Xn,wr,_o=Le;return(_o==null?void 0:_o.contains(Cn))||((Xn=K2(_o))===null||Xn===void 0?void 0:Xn.host)===Cn||Cn===_o||(U==null?void 0:U.contains(Cn))||((wr=K2(U))===null||wr===void 0?void 0:wr.host)===Cn||Cn===U||Object.values(Se.current).some(function(so){return(so==null?void 0:so.contains(Cn))||Cn===so})}),Ve=eH(i,ie,ne,X),St=eH(i,G,ce,le),et=d.useState(h||!1),st=$e(et,2),Ct=st[0],dt=st[1],Lt=f??Ct,wt=An(function(Cn){f===void 0&&dt(Cn)});Zn(function(){dt(f||!1)},[f]);var Et=d.useRef(Lt);Et.current=Lt;var Tt=d.useRef([]);Tt.current=[];var Be=An(function(Cn){var Xn;wt(Cn),((Xn=Tt.current[Tt.current.length-1])!==null&&Xn!==void 0?Xn:Lt)!==Cn&&(Tt.current.push(Cn),p==null||p(Cn))}),We=d.useRef(),Fe=function(){clearTimeout(We.current)},Xe=function(Xn){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fe(),wr===0?Be(Xn):We.current=setTimeout(function(){Be(Xn)},wr*1e3)};d.useEffect(function(){return Fe},[]);var gt=d.useState(!1),pt=$e(gt,2),Rt=pt[0],_t=pt[1];Zn(function(Cn){(!Cn||Lt)&&_t(!0)},[Lt]);var vt=d.useState(null),ft=$e(vt,2),It=ft[0],bt=ft[1],Wt=d.useState(null),at=$e(Wt,2),Pt=at[0],Bt=at[1],xt=function(Xn){Bt([Xn.clientX,Xn.clientY])},yt=R3e(Lt,U,L&&Pt!==null?Pt:Le,D,j,k,ee),Ft=$e(yt,11),Re=Ft[0],kt=Ft[1],tt=Ft[2],Mt=Ft[3],Ot=Ft[4],pn=Ft[5],Pn=Ft[6],$=Ft[7],R=Ft[8],J=Ft[9],Ee=Ft[10],ke=O3e(Oe,l,c,u),Je=$e(ke,2),Dt=Je[0],an=Je[1],En=Dt.has("click"),Cr=an.has("click")||an.has("contextMenu"),ur=An(function(){Rt||Ee()}),Nr=function(){Et.current&&L&&Cr&&Xe(!1)};I3e(Lt,Le,U,ur,Nr),Zn(function(){ur()},[Pt,D]),Zn(function(){Lt&&!(j!=null&&j[D])&&ur()},[JSON.stringify(k)]);var tr=d.useMemo(function(){var Cn=T3e(j,i,J,L);return xe(Cn,W==null?void 0:W(J))},[J,W,j,i,L]);d.useImperativeHandle(r,function(){return{nativeElement:ge.current,popupElement:q.current,forceAlign:ur}});var en=d.useState(0),un=$e(en,2),rr=un[0],Qt=un[1],Jt=d.useState(0),Rn=$e(Jt,2),er=Rn[0],$r=Rn[1],ao=function(){if(V&&Le){var Xn=Le.getBoundingClientRect();Qt(Xn.width),$r(Xn.height)}},Bn=function(){ao(),ur()},Yr=function(Xn){_t(!1),Ee(),m==null||m(Xn)},Fn=function(){return new Promise(function(Xn){ao(),bt(function(){return Xn})})};Zn(function(){It&&(Ee(),It(),bt(null))},[It]);function rn(Cn,Xn,wr,_o){Ke[Cn]=function(so){var wd;_o==null||_o(so),Xe(Xn,wr);for(var hu=arguments.length,tm=new Array(hu>1?hu-1:0),Vf=1;Vf1?wr-1:0),so=1;so1?wr-1:0),so=1;so1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Qre(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,h){Array.isArray(f)&&f.forEach(function(p){if(h||!(l in p)){var m=p[s];o.push({key:iH(p,o.length),groupOption:h,data:p,label:p[a],value:m})}else{var g=p[c];g===void 0&&r&&(g=p.label),o.push({key:iH(p,o.length),group:!0,data:p,label:g}),u(p[l],!0)}})}return u(e,!1),o}function r6(e){var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return yr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var z3e=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function s(l,c){var u=Fte(c),f=u[0],h=u.slice(1);if(!f)return[l];var p=l.split(f);return o=o||p.length>1,p.reduce(function(m,g){return[].concat(Ze(m),Ze(s(g,h)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},UA=d.createContext(null);function H3e(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(Ht(i))?i:a}).join(", ")),n.length>r?", ...":null)}var U3e=["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"],W3e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],o6=function(t){return t==="tags"||t==="multiple"},WA=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,h=e.emptyOptions,p=e.notFoundContent,m=p===void 0?"Not Found":p,g=e.onClear,v=e.mode,b=e.disabled,y=e.loading,S=e.getInputElement,w=e.getRawInputElement,E=e.open,C=e.defaultOpen,x=e.onDropdownVisibleChange,_=e.activeValue,P=e.onActiveValueChange,O=e.activeDescendantId,I=e.searchValue,M=e.autoClearSearchValue,T=e.onSearch,D=e.onSearchSplit,A=e.tokenSeparators,j=e.allowClear,k=e.prefix,F=e.suffixIcon,V=e.clearIcon,W=e.OptionList,K=e.animation,L=e.transitionName,Q=e.dropdownStyle,ee=e.dropdownClassName,re=e.dropdownMatchSelectWidth,ie=e.dropdownRender,G=e.dropdownAlign,X=e.placement,ne=e.builtinPlacements,le=e.getPopupContainer,ce=e.showAction,oe=ce===void 0?[]:ce,se=e.onFocus,fe=e.onBlur,te=e.onKeyUp,he=e.onKeyDown,pe=e.onMouseDown,Oe=At(e,U3e),Me=o6(v),Se=(a!==void 0?a:Me)||v==="combobox",ye=z({},Oe);W3e.forEach(function(en){delete ye[en]}),c==null||c.forEach(function(en){delete ye[en]});var ve=d.useState(!1),be=$e(ve,2),Pe=be[0],Ne=be[1];d.useEffect(function(){Ne(F$())},[]);var U=d.useRef(null),H=d.useRef(null),q=d.useRef(null),me=d.useRef(null),Ce=d.useRef(null),ue=d.useRef(!1),Le=J4e(),He=$e(Le,3),ge=He[0],De=He[1],qe=He[2];d.useImperativeHandle(t,function(){var en,un;return{focus:(en=me.current)===null||en===void 0?void 0:en.focus,blur:(un=me.current)===null||un===void 0?void 0:un.blur,scrollTo:function(Qt){var Jt;return(Jt=Ce.current)===null||Jt===void 0?void 0:Jt.scrollTo(Qt)},nativeElement:U.current||H.current}});var je=d.useMemo(function(){var en;if(v!=="combobox")return I;var un=(en=u[0])===null||en===void 0?void 0:en.value;return typeof un=="string"||typeof un=="number"?String(un):""},[I,v,u]),Ke=v==="combobox"&&typeof S=="function"&&S()||null,Ue=typeof w=="function"&&w(),Ve=mc(H,Ue==null||(n=Ue.props)===null||n===void 0?void 0:n.ref),St=d.useState(!1),et=$e(St,2),st=et[0],Ct=et[1];Zn(function(){Ct(!0)},[]);var dt=xn(!1,{defaultValue:C,value:E}),Lt=$e(dt,2),wt=Lt[0],Et=Lt[1],Tt=st?wt:!1,Be=!m&&h;(b||Be&&Tt&&v==="combobox")&&(Tt=!1);var We=Be?!1:Tt,Fe=d.useCallback(function(en){var un=en!==void 0?en:!Tt;b||(Et(un),Tt!==un&&(x==null||x(un)))},[b,Tt,Et,x]),Xe=d.useMemo(function(){return(A||[]).some(function(en){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},l4e=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},c4e=e=>{const{componentCls:t}=e,n=xre(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${_e(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Ze(r))}}},_re=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return kn(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()})},$re=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${_e(e.padding)} ${_e(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${_e(e.paddingXS)} ${_e(e.padding)}`:0,footerBorderTop:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${_e(e.padding*2)} ${_e(e.padding*2)} ${_e(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Pre=Kn("Modal",e=>{const t=_re(e);return[s4e(t),l4e(t),Ere(t),Mv(t,"zoom"),c4e(t)]},$re,{unitless:{titleLineHeight:!0}});var u4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{J3={x:e.pageX,y:e.pageY},setTimeout(()=>{J3=null},100)};Rke()&&document.documentElement.addEventListener("click",d4e,!0);const Ore=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=d.useContext(Yt),a=ie=>{const{onCancel:G}=e;G==null||G(ie)},s=ie=>{const{onOk:G}=e;G==null||G(ie)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:h,centered:p,getContainer:m,focusTriggerAfterClose:g=!0,style:v,visible:b,width:y=520,footer:S,classNames:w,styles:E,children:C,loading:x}=e,_=u4e(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),P=r("modal",l),O=r(),I=Mr(P),[M,T,D]=Pre(P,I),A=xe(h,{[`${P}-centered`]:!!p,[`${P}-wrap-rtl`]:o==="rtl"}),j=S!==null&&!x?d.createElement(wre,Object.assign({},e,{onOk:s,onCancel:a})):null,[k,F,V]=LA(Vg(e),Vg(i),{closable:!0,closeIcon:d.createElement(ou,{className:`${P}-close-icon`}),closeIconRender:ie=>Cre(P,ie)}),W=Sre(`.${P}-content`),[K,L]=vl("Modal",_.zIndex),[Q,ee]=d.useMemo(()=>y&&typeof y=="object"?[void 0,y]:[y,void 0],[y]),re=d.useMemo(()=>{const ie={};return ee&&Object.keys(ee).forEach(G=>{const X=ee[G];X!==void 0&&(ie[`--${P}-${G}-width`]=typeof X=="number"?`${X}px`:X)}),ie},[ee]);return M(d.createElement(ic,{form:!0,space:!0},d.createElement(B1.Provider,{value:L},d.createElement(NA,Object.assign({width:Q},_,{zIndex:K,getContainer:m===void 0?n:m,prefixCls:P,rootClassName:xe(T,u,D,I),footer:j,visible:f??b,mousePosition:(t=_.mousePosition)!==null&&t!==void 0?t:J3,onClose:a,closable:k&&{disabled:V,closeIcon:F},closeIcon:F,focusTriggerAfterClose:g,transitionName:Mi(O,"zoom",e.transitionName),maskTransitionName:Mi(O,"fade",e.maskTransitionName),className:xe(T,c,i==null?void 0:i.className),style:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.style),v),re),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),w),{wrapper:xe(A,w==null?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),E),panelRef:W}),x?d.createElement(pd,{active:!0,title:!1,paragraph:{rows:4},className:`${P}-body-skeleton`}):C))))},f4e=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,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({},nc()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${_e(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${_e(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:i,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}}},h4e=$v(["Modal","confirm"],e=>{const t=_re(e);return[f4e(t)]},$re,{order:-1e3});var p4e=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 o=0,r=Object.getOwnPropertySymbols(e);oy,Ze(Object.values(y))),w=d.createElement(d.Fragment,null,d.createElement(bz,null),d.createElement(Sz,null)),E=e.title!==void 0&&e.title!==null,C=`${i}-body`;return d.createElement("div",{className:`${i}-body-wrapper`},d.createElement("div",{className:xe(C,{[`${C}-has-title`]:E})},f,d.createElement("div",{className:`${i}-paragraph`},E&&d.createElement("span",{className:`${i}-title`},e.title),d.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(rre,{value:S},d.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(w,{OkBtn:Sz,CancelBtn:bz}):w)):l,d.createElement(h4e,{prefixCls:t}))}const m4e=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,h=`${i}-confirm`,p=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,b=xe(h,`${h}-${e.type}`,{[`${h}-rtl`]:o==="rtl"},e.className),[,y]=Ho(),S=d.useMemo(()=>n!==void 0?n:y.zIndexPopupBase+wA,[n,y]);return d.createElement(Ore,Object.assign({},e,{className:b,wrapClassName:xe({[`${h}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:Mi(s||"","zoom",e.transitionName),maskTransitionName:Mi(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:m,styles:Object.assign({body:l,mask:r},f),width:p,zIndex:S,closable:c}),d.createElement(Mre,Object.assign({},e,{confirmPrefixCls:h})))},Tre=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return d.createElement(Mn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},d.createElement(m4e,Object.assign({},e)))},Mh=[];let Rre="";function Ire(){return Rre}const g4e=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Ute(),s=d.useContext(Yt),l=Ire()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0),de.createElement(Tre,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function q1(e){const t=xne(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o,i;function a(){for(var u,f=arguments.length,h=new Array(f),p=0;pv==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(Ze(h.slice(1))))}for(let v=0;v{const f=t.getPrefixCls(void 0,Ire()),h=t.getIconPrefixCls(),p=t.getTheme(),m=de.createElement(g4e,Object.assign({},u));i=EA()(de.createElement(Mn,{prefixCls:f,iconPrefixCls:h,theme:p},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,f=new Array(u),h=0;h{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,f)}}),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),Mh.push(l),{destroy:l,update:c}}function kre(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Nre(e){return Object.assign(Object.assign({},e),{type:"info"})}function Are(e){return Object.assign(Object.assign({},e),{type:"success"})}function Dre(e){return Object.assign(Object.assign({},e),{type:"error"})}function jre(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function v4e(e){let{rootPrefixCls:t}=e;Rre=t}var y4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,i=y4e(e,["afterClose","config"]);const[a,s]=d.useState(!0),[l,c]=d.useState(o),{direction:u,getPrefixCls:f}=d.useContext(Yt),h=f("modal"),p=f(),m=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},g=function(){var y;s(!1);for(var S=arguments.length,w=new Array(S),E=0;E_==null?void 0:_.triggerCancel)){var x;(y=l.onCancel)===null||y===void 0||(x=y).call.apply(x,[l,()=>{}].concat(Ze(w.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:g,update:y=>{c(S=>Object.assign(Object.assign({},S),y))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[b]=zi("Modal",Os.Modal);return d.createElement(Tre,Object.assign({prefixCls:h,rootPrefixCls:p},l,{close:g,open:a,afterClose:m,okText:l.okText||(v?b==null?void 0:b.okText:b==null?void 0:b.justOkText),direction:l.direction||u,cancelText:l.cancelText||(b==null?void 0:b.cancelText)},i))},S4e=d.forwardRef(b4e);let Kz=0;const C4e=d.memo(d.forwardRef((e,t)=>{const[n,r]=dTe();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function Fre(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(Ze(t).forEach(a=>{a()}),n([]))},[t]);const r=d.useCallback(i=>function(s){var l;Kz+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let h=!1,p;const m=d.createElement(S4e,{key:`modal-${Kz}`,config:i(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>h,onConfirm:v=>{u(v)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),p&&Mh.push(p),{destroy:()=>{function v(){var b;(b=c.current)===null||b===void 0||b.destroy()}c.current?v():n(b=>[].concat(Ze(b),[v]))},update:v=>{function b(){var y;(y=c.current)===null||y===void 0||y.update(v)}c.current?b():n(y=>[].concat(Ze(y),[b]))},then:v=>(h=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:r(Nre),success:r(Are),error:r(Dre),warning:r(kre),confirm:r(jre)}),[]),d.createElement(C4e,{key:"modal-holder",ref:e})]}const w4e=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Gn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Gn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Gn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Gn("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,[o]:{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:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},x4e=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],E4e={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},_4e=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[E4e[t]]:{value:0,_skip_check_:!0}}}}},$4e=e=>{const t={};for(let n=1;n ${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)},P4e=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},$4e(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},P4e(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"}}}},x4e.map(n=>_4e(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},M4e=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:h,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:b,lineHeight:y,width:S,notificationIconSize:w,colorText:E}=e,C=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:h,borderRadius:a,boxShadow:r,[C]:{padding:p,width:S,maxWidth:`calc(100vw - ${_e(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:b,color:E},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:b},[`${C}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-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}},Ka(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${_e(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},T4e=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new Gn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Qn(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:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,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({},M4e(e))}}]},R4e=e=>({zIndexPopup:e.zIndexPopupBase+wA+50,width:384}),I4e=e=>{const t=e.paddingMD,n=e.paddingLG;return kn(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:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},k4e=Kn("Notification",e=>{const t=I4e(e);return[T4e(t),w4e(t),O4e(t)]},R4e);function Lre(e,t){return t===null||t===!1?null:t||d.createElement(ou,{className:`${e}-close-icon`})}const N4e={success:Lp,info:S$,error:ru,warning:Df},A4e=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=d.createElement("span",{className:`${t}-icon`},n):r&&(l=d.createElement(N4e[r]||null,{className:xe(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:xe({[`${t}-with-icon`]:l}),role:s},l,d.createElement("div",{className:`${t}-message`},o),d.createElement("div",{className:`${t}-description`},i),a&&d.createElement("div",{className:`${t}-btn`},a))};function D4e(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 j4e(e){return{motionName:`${e}-fade`}}var F4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Mr(n),[o,i,a]=k4e(n,r);return o(de.createElement(Nne,{classNames:{list:xe(i,a,r)}},t))},H4e=(e,t)=>{let{prefixCls:n,key:r}=t;return de.createElement(z4e,{prefixCls:n,key:r},e)},U4e=de.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:h}=e,{getPrefixCls:p,getPopupContainer:m,notification:g,direction:v}=d.useContext(Yt),[,b]=Ho(),y=o||p("notification"),S=_=>D4e(_,n??qz,r??qz),w=()=>xe({[`${y}-rtl`]:s??v==="rtl"}),E=()=>j4e(y),[C,x]=Ane({prefixCls:y,style:S,className:w,motion:E,closable:!0,closeIcon:Lre(y),duration:u??L4e,getContainer:()=>(i==null?void 0:i())||(m==null?void 0:m())||document.body,maxCount:a,pauseOnHover:f,showProgress:h,onAllRemoved:l,renderNotifications:H4e,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:b.margin}});return de.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:y,notification:g})),x});function W4e(e){const t=de.useRef(null);return nu(),[de.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,h=`${u}-notice`,{message:p,description:m,icon:g,type:v,btn:b,className:y,style:S,role:w="alert",closeIcon:E,closable:C}=s,x=F4e(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),_=Lre(h,typeof E<"u"?E:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:B4e},x),{content:de.createElement(A4e,{prefixCls:h,icon:g,type:v,message:p,description:m,btn:b,role:w}),className:xe(v&&`${h}-${v}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),S),closeIcon:_,closable:C??!!_}))},i={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=>{i[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),i},[]),de.createElement(U4e,Object.assign({key:"notification-holder"},e,{ref:t}))]}function V4e(e){return W4e(e)}const Z3=de.createContext({}),Bre=de.createContext({message:{},notification:{},modal:{}}),K4e=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},q4e=()=>({}),G4e=Kn("App",K4e,q4e),Y4e=()=>de.useContext(Bre),j$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=d.useContext(Yt),f=u("app",t),[h,p,m]=G4e(f),g=xe(p,f,r,o,m,{[`${f}-rtl`]:c==="rtl"}),v=d.useContext(Z3),b=de.useMemo(()=>({message:Object.assign(Object.assign({},v.message),i),notification:Object.assign(Object.assign({},v.notification),a)}),[i,a,v.message,v.notification]),[y,S]=Bne(b.message),[w,E]=V4e(b.notification),[C,x]=Fre(),_=de.useMemo(()=>({message:y,notification:w,modal:C}),[y,w,C]);nu()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const P=l===!1?de.Fragment:l,O={className:g,style:s};return h(de.createElement(Bre.Provider,{value:_},de.createElement(Z3.Provider,{value:b},de.createElement(P,Object.assign({},l===!1?void 0:O),x,S,E,n))))};j$.useApp=Y4e;function zre(e){return t=>d.createElement(Mn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const jf=(e,t,n,r,o)=>zre(a=>{const{prefixCls:s,style:l}=a,c=d.useRef(null),[u,f]=d.useState(0),[h,p]=d.useState(0),[m,g]=xn(!1,{value:a.open}),{getPrefixCls:v}=d.useContext(Yt),b=v(r||"select",s);d.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(C=>{const x=C[0].target;f(x.offsetHeight+8),p(x.offsetWidth)}),E=setInterval(()=>{var C;const x=o?`.${o(b)}`:`.${b}-dropdown`,_=(C=c.current)===null||C===void 0?void 0:C.querySelector(x);_&&(clearInterval(E),w.observe(_))},10);return()=>{clearInterval(E),w.disconnect()}}},[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const S={paddingBottom:u,position:"relative",minWidth:h};return d.createElement("div",{ref:c,style:S},d.createElement(e,Object.assign({},y)))}),F$=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 L$=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(o):r;return d.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:d.createElement("span",{className:xe(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},X4e=function(t,n,r,o,i){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=de.useMemo(function(){if(Ht(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=de.useMemo(function(){return!!(!a&&o&&(r.length||s)&&!(l==="combobox"&&s===""))},[o,a,r.length,s,l]);return{allowClear:u,clearIcon:de.createElement(L$,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},Hre=d.createContext(null);function BA(){return d.useContext(Hre)}function Q4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=$e(t,2),r=n[0],o=n[1],i=d.useRef(null),a=function(){window.clearTimeout(i.current)};d.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[r,s,a]}function Ure(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function J4e(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function Z4e(e){return e&&![ut.ESC,ut.SHIFT,ut.BACKSPACE,ut.TAB,ut.WIN_KEY,ut.ALT,ut.META,ut.WIN_KEY_RIGHT,ut.CTRL,ut.SEMICOLON,ut.EQUALS,ut.CAPS_LOCK,ut.CONTEXT_MENU,ut.F1,ut.F2,ut.F3,ut.F4,ut.F5,ut.F6,ut.F7,ut.F8,ut.F9,ut.F10,ut.F11,ut.F12].includes(e)}var e3e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],um=void 0;function t3e(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,h=e.children,p=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,b=At(e,e3e),y=a&&!p;function S(_){l(c,_)}d.useEffect(function(){return function(){S(null)}},[]);var w=i&&o!==um?i(o):h,E;r||(E={opacity:y?0:1,height:y?0:um,overflowY:y?"hidden":um,order:a?m:um,pointerEvents:y?"none":um,position:y?"absolute":um});var C={};y&&(C["aria-hidden"]=!0);var x=d.createElement(v,Ge({className:xe(!r&&n,u),style:z(z({},E),f)},C,b,{ref:t}),w);return a&&(x=d.createElement(Oi,{onResize:function(P){var O=P.offsetWidth;S(O)},disabled:s},x)),x}var Hy=d.forwardRef(t3e);Hy.displayName="Item";function n3e(e){if(typeof MessageChannel>"u")zn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function r3e(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],n3e(function(){_i.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function A0(e,t){var n=d.useState(t),r=$e(n,2),o=r[0],i=r[1],a=An(function(s){e(function(){i(s)})});return[o,a]}var Y2=de.createContext(null),o3e=["component"],i3e=["className"],a3e=["className"],s3e=function(t,n){var r=d.useContext(Y2);if(!r){var o=t.component,i=o===void 0?"div":o,a=At(t,o3e);return d.createElement(i,Ge({},a,{ref:n}))}var s=r.className,l=At(r,i3e),c=t.className,u=At(t,a3e);return d.createElement(Y2.Provider,{value:null},d.createElement(Hy,Ge({ref:n,className:xe(s,c)},l,u)))},Wre=d.forwardRef(s3e);Wre.displayName="RawItem";var l3e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Vre="responsive",Kre="invalidate";function c3e(e){return"+ ".concat(e.length," ...")}function u3e(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,h=e.style,p=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,w=e.itemComponent,E=e.onVisibleChange,C=At(e,l3e),x=f==="full",_=r3e(),P=A0(_,null),O=$e(P,2),I=O[0],M=O[1],T=I||0,D=A0(_,new Map),A=$e(D,2),j=A[0],k=A[1],F=A0(_,0),V=$e(F,2),W=V[0],K=V[1],L=A0(_,0),Q=$e(L,2),ee=Q[0],re=Q[1],ie=A0(_,0),G=$e(ie,2),X=G[0],ne=G[1],le=d.useState(null),ce=$e(le,2),oe=ce[0],se=ce[1],fe=d.useState(null),te=$e(fe,2),he=te[0],pe=te[1],Oe=d.useMemo(function(){return he===null&&x?Number.MAX_SAFE_INTEGER:he||0},[he,I]),Me=d.useState(!1),Se=$e(Me,2),ye=Se[0],ve=Se[1],be="".concat(r,"-item"),Pe=Math.max(W,ee),Ne=m===Vre,U=i.length&&Ne,H=m===Kre,q=U||typeof m=="number"&&i.length>m,me=d.useMemo(function(){var St=i;return U?I===null&&x?St=i:St=i.slice(0,Math.min(i.length,T/u)):typeof m=="number"&&(St=i.slice(0,m)),St},[i,u,I,m,U]),Ce=d.useMemo(function(){return U?i.slice(Oe+1):i.slice(me.length)},[i,me,U,Oe]),ue=d.useCallback(function(St,wt){var Nt;return typeof l=="function"?l(St):(Nt=l&&(St==null?void 0:St[l]))!==null&&Nt!==void 0?Nt:wt},[l]),Le=d.useCallback(a||function(St){return St},[a]);function He(St,wt,Nt){he===St&&(wt===void 0||wt===oe)||(pe(St),Nt||(ve(StT){He(Be-1,St-We-X+ee);break}}b&&Ke(0)+X>T&&se(null)}},[T,j,ee,X,ue,me]);var Ue=ye&&!!Ce.length,Ve={};oe!==null&&U&&(Ve={position:"absolute",left:oe,top:0});var Tt={prefixCls:be,responsive:U,component:w,invalidate:H},et=s?function(St,wt){var Nt=ue(St,wt);return d.createElement(Y2.Provider,{key:Nt,value:z(z({},Tt),{},{order:wt,item:St,itemKey:Nt,registerSize:De,display:wt<=Oe})},s(St,wt))}:function(St,wt){var Nt=ue(St,wt);return d.createElement(Hy,Ge({},Tt,{order:wt,key:Nt,item:St,renderItem:Le,itemKey:Nt,registerSize:De,display:wt<=Oe}))},st,yt={order:Ue?Oe:Number.MAX_SAFE_INTEGER,className:"".concat(be,"-rest"),registerSize:qe,display:Ue};if(v)v&&(st=d.createElement(Y2.Provider,{value:z(z({},Tt),yt)},v(Ce)));else{var gt=g||c3e;st=d.createElement(Hy,Ge({},Tt,yt),typeof gt=="function"?gt(Ce):gt)}var Lt=d.createElement(S,Ge({className:xe(!H&&r,p),style:h,ref:t},C),me.map(et),q?st:null,b&&d.createElement(Hy,Ge({},Tt,{responsive:Ne,responsiveDisabled:!U,order:Oe,className:"".concat(be,"-suffix"),registerSize:Fe,display:!0,style:Ve}),b));return Ne&&(Lt=d.createElement(Oi,{onResize:ge,disabled:!U},Lt)),Lt}var ql=d.forwardRef(u3e);ql.displayName="Overflow";ql.Item=Wre;ql.RESPONSIVE=Vre;ql.INVALIDATE=Kre;var d3e=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,h=t.activeDescendantId,p=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,b=t.onChange,y=t.onPaste,S=t.onCompositionStart,w=t.onCompositionEnd,E=t.onBlur,C=t.open,x=t.attrs,_=a||d.createElement("input",null),P=_,O=P.ref,I=P.props,M=I.onKeyDown,T=I.onChange,D=I.onMouseDown,A=I.onCompositionStart,j=I.onCompositionEnd,k=I.onBlur,F=I.style;return"maxLength"in _.props,_=d.cloneElement(_,z(z(z({type:"search"},I),{},{id:i,ref:bi(n,O),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:xe("".concat(o,"-selection-search-input"),(r=_)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":C?h:void 0},x),{},{value:f?p:"",maxLength:m,readOnly:!f,unselectable:f?null:"on",style:z(z({},F),{},{opacity:f?null:0}),onKeyDown:function(W){g(W),M&&M(W)},onMouseDown:function(W){v(W),D&&D(W)},onChange:function(W){b(W),T&&T(W)},onCompositionStart:function(W){S(W),A&&A(W)},onCompositionEnd:function(W){w(W),j&&j(W)},onPaste:y,onBlur:function(W){E(W),k&&k(W)}})),_},qre=d.forwardRef(d3e);function Gre(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var f3e=typeof window<"u"&&window.document&&window.document.documentElement,h3e=f3e;function p3e(e){return e!=null}function m3e(e){return!e&&e!==0}function Gz(e){return["string","number"].includes(Ht(e))}function Yre(e){var t=void 0;return e&&(Gz(e.title)?t=e.title.toString():Gz(e.label)&&(t=e.label.toString())),t}function g3e(e,t){h3e?d.useLayoutEffect(e,t):d.useEffect(e,t)}function v3e(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Yz=function(t){t.preventDefault(),t.stopPropagation()},y3e=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,h=t.showSearch,p=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,w=t.maxTagPlaceholder,E=w===void 0?function(fe){return"+ ".concat(fe.length," ...")}:w,C=t.tagRender,x=t.onToggleOpen,_=t.onRemove,P=t.onInputChange,O=t.onInputPaste,I=t.onInputKeyDown,M=t.onInputMouseDown,T=t.onInputCompositionStart,D=t.onInputCompositionEnd,A=t.onInputBlur,j=d.useRef(null),k=d.useState(0),F=$e(k,2),V=F[0],W=F[1],K=d.useState(!1),L=$e(K,2),Q=L[0],ee=L[1],re="".concat(r,"-selection"),ie=i||f==="multiple"&&s===!1||f==="tags"?a:"",G=f==="tags"||f==="multiple"&&s===!1||h&&(i||Q);g3e(function(){W(j.current.scrollWidth)},[ie]);var X=function(te,he,pe,Oe,Me){return d.createElement("span",{title:Yre(te),className:xe("".concat(re,"-item"),Z({},"".concat(re,"-item-disabled"),pe))},d.createElement("span",{className:"".concat(re,"-item-content")},he),Oe&&d.createElement(L$,{className:"".concat(re,"-item-remove"),onMouseDown:Yz,onClick:Me,customizeIcon:b},"×"))},ne=function(te,he,pe,Oe,Me,Se){var ye=function(be){Yz(be),x(!i)};return d.createElement("span",{onMouseDown:ye},C({label:he,value:te,disabled:pe,closable:Oe,onClose:Me,isMaxTag:!!Se}))},le=function(te){var he=te.disabled,pe=te.label,Oe=te.value,Me=!u&&!he,Se=pe;if(typeof S=="number"&&(typeof pe=="string"||typeof pe=="number")){var ye=String(Se);ye.length>S&&(Se="".concat(ye.slice(0,S),"..."))}var ve=function(Pe){Pe&&Pe.stopPropagation(),_(te)};return typeof C=="function"?ne(Oe,Se,he,Me,ve):X(te,Se,he,Me,ve)},ce=function(te){if(!o.length)return null;var he=typeof E=="function"?E(te):E;return typeof C=="function"?ne(void 0,he,!1,!1,void 0,!0):X({title:he},he,!1)},oe=d.createElement("div",{className:"".concat(re,"-search"),style:{width:V},onFocus:function(){ee(!0)},onBlur:function(){ee(!1)}},d.createElement(qre,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:m,editable:G,activeDescendantId:g,value:ie,onKeyDown:I,onMouseDown:M,onChange:P,onPaste:O,onCompositionStart:T,onCompositionEnd:D,onBlur:A,tabIndex:v,attrs:Jr(t,!0)}),d.createElement("span",{ref:j,className:"".concat(re,"-search-mirror"),"aria-hidden":!0},ie," ")),se=d.createElement(ql,{prefixCls:"".concat(re,"-overflow"),data:o,renderItem:le,renderRest:ce,suffix:oe,itemKey:v3e,maxCount:y});return d.createElement("span",{className:"".concat(re,"-wrap")},se,!o.length&&!ie&&d.createElement("span",{className:"".concat(re,"-placeholder")},c))},b3e=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,h=t.values,p=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,w=t.onInputMouseDown,E=t.onInputChange,C=t.onInputPaste,x=t.onInputCompositionStart,_=t.onInputCompositionEnd,P=t.onInputBlur,O=t.title,I=d.useState(!1),M=$e(I,2),T=M[0],D=M[1],A=u==="combobox",j=A||g,k=h[0],F=v||"";A&&b&&!T&&(F=b),d.useEffect(function(){A&&D(!1)},[A,b]);var V=u!=="combobox"&&!f&&!g?!1:!!F,W=O===void 0?Yre(k):O,K=d.useMemo(function(){return k?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:V?{visibility:"hidden"}:void 0},p)},[k,V,p,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(qre,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:j,activeDescendantId:c,value:F,onKeyDown:S,onMouseDown:w,onChange:function(Q){D(!0),E(Q)},onPaste:C,onCompositionStart:x,onCompositionEnd:_,onBlur:P,tabIndex:m,attrs:Jr(t,!0),maxLength:A?y:void 0})),!A&&k?d.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:V?{visibility:"hidden"}:void 0},k.label):null,K)},S3e=function(t,n){var r=d.useRef(null),o=d.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,h=t.autoClearSearchValue,p=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,b=t.onInputBlur,y=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var S=Ure(0),w=$e(S,2),E=w[0],C=w[1],x=function(W){var K=W.which,L=r.current instanceof HTMLTextAreaElement;!L&&a&&(K===ut.UP||K===ut.DOWN)&&W.preventDefault(),v&&v(W),K===ut.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(W.target.value)),!(L&&!a&&~[ut.UP,ut.DOWN,ut.LEFT,ut.RIGHT].indexOf(K))&&Z4e(K)&&g(!0)},_=function(){C(!0)},P=d.useRef(null),O=function(W){p(W,!0,o.current)!==!1&&g(!0)},I=function(){o.current=!0},M=function(W){o.current=!1,s!=="combobox"&&O(W.target.value)},T=function(W){var K=W.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var L=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(L,P.current)}P.current=null,O(K)},D=function(W){var K=W.clipboardData,L=K==null?void 0:K.getData("text");P.current=L||""},A=function(W){var K=W.target;if(K!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus()}):r.current.focus()}},j=function(W){var K=E();W.target!==r.current&&!K&&!(s==="combobox"&&u)&&W.preventDefault(),(s!=="combobox"&&(!l||!K)||!a)&&(a&&h!==!1&&p("",!0,!1),g())},k={inputRef:r,onInputKeyDown:x,onInputMouseDown:_,onInputChange:T,onInputPaste:D,onInputCompositionStart:I,onInputCompositionEnd:M,onInputBlur:b},F=s==="multiple"||s==="tags"?d.createElement(y3e,Ge({},t,k)):d.createElement(b3e,Ge({},t,k));return d.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:A,onMouseDown:j},f&&d.createElement("div",{className:"".concat(i,"-prefix")},f),F)},C3e=d.forwardRef(S3e);function w3e(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,h=d.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],y=g[0],S=g[1];v===y||!["t","b"].includes(v)?p.top=f:v==="t"?p.top=0:p.bottom=0,b===S||!["l","r"].includes(b)?p.left=c:b==="l"?p.left=0:p.right=0}return d.createElement("div",{ref:h,className:xe("".concat(t,"-arrow"),a),style:p},s)}function x3e(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?d.createElement(Jo,Ge({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return d.createElement("div",{style:{zIndex:r},className:xe("".concat(t,"-mask"),s)})}):null}var E3e=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),_3e=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,h=e.mask,p=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,w=e.autoDestroy,E=e.portal,C=e.zIndex,x=e.onMouseEnter,_=e.onMouseLeave,P=e.onPointerEnter,O=e.onPointerDownCapture,I=e.ready,M=e.offsetX,T=e.offsetY,D=e.offsetR,A=e.offsetB,j=e.onAlign,k=e.onPrepare,F=e.stretch,V=e.targetWidth,W=e.targetHeight,K=typeof n=="function"?n():n,L=l||c,Q=(S==null?void 0:S.length)>0,ee=d.useState(!S||!Q),re=$e(ee,2),ie=re[0],G=re[1];if(Zn(function(){!ie&&Q&&a&&G(!0)},[ie,Q,a]),!ie)return null;var X="auto",ne={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(I||!l){var le,ce=g.points,oe=g.dynamicInset||((le=g._experimental)===null||le===void 0?void 0:le.dynamicInset),se=oe&&ce[0][1]==="r",fe=oe&&ce[0][0]==="b";se?(ne.right=D,ne.left=X):(ne.left=M,ne.right=X),fe?(ne.bottom=A,ne.top=X):(ne.top=T,ne.bottom=X)}var te={};return F&&(F.includes("height")&&W?te.height=W:F.includes("minHeight")&&W&&(te.minHeight=W),F.includes("width")&&V?te.width=V:F.includes("minWidth")&&V&&(te.minWidth=V)),l||(te.pointerEvents="none"),d.createElement(E,{open:y||L,getContainer:S&&function(){return S(a)},autoDestroy:w},d.createElement(x3e,{prefixCls:o,open:l,zIndex:C,mask:h,motion:b}),d.createElement(Oi,{onResize:j,disabled:!l},function(he){return d.createElement(Jo,Ge({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:k,onEnterPrepare:k,visible:l,onVisibleChanged:function(Oe){var Me;v==null||(Me=v.onVisibleChanged)===null||Me===void 0||Me.call(v,Oe),s(Oe)}}),function(pe,Oe){var Me=pe.className,Se=pe.style,ye=xe(o,Me,r);return d.createElement("div",{ref:bi(he,t,Oe),className:ye,style:z(z(z(z({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ne),te),Se),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:x,onMouseLeave:_,onPointerEnter:P,onClick:f,onPointerDownCapture:O},p&&d.createElement(w3e,{prefixCls:o,arrow:p,arrowPos:m,align:g}),d.createElement(E3e,{cache:!l&&!u},K))})}))}),$3e=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=tc(n),i=d.useCallback(function(s){Nb(t,r?r(s):s)},[r]),a=mc(i,Af(n));return o?d.cloneElement(n,{ref:a}):n}),Xz=d.createContext(null);function Qz(e){return e?Array.isArray(e)?e:[e]:[]}function P3e(e,t,n,r){return d.useMemo(function(){var o=Qz(n??t),i=Qz(r??t),a=new Set(o),s=new Set(i);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 O3e(){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 M3e(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function D0(e){return Kb(parseFloat(e),0)}function Zz(e,t){var n=z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=G1(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),h=r.offsetHeight,p=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=D0(s),b=D0(l),y=D0(c),S=D0(u),w=Kb(Math.round(f.width/m*1e3)/1e3),E=Kb(Math.round(f.height/h*1e3)/1e3),C=(m-g-y-S)*w,x=(h-p-v-b)*E,_=v*E,P=b*E,O=y*w,I=S*w,M=0,T=0;if(i==="clip"){var D=D0(a);M=D*w,T=D*E}var A=f.x+O-M,j=f.y+_-T,k=A+f.width+2*M-O-I-C,F=j+f.height+2*T-_-P-x;n.left=Math.max(n.left,A),n.top=Math.max(n.top,j),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,F)}}),n}function eH(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 tH(e,t){var n=t||[],r=$e(n,2),o=r[0],i=r[1];return[eH(e.width,o),eH(e.height,i)]}function nH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function dm(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function _d(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function T3e(e,t,n,r,o,i,a){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=$e(s,2),c=l[0],u=l[1],f=d.useRef(0),h=d.useMemo(function(){return t?e6(t):[]},[t]),p=d.useRef({}),m=function(){p.current={}};e||m();var g=An(function(){if(t&&n&&e){let Sn=function(cr,Uo){var si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe,Ar=ee.x+cr,li=ee.y+Uo,uu=Ar+se,du=li+oe,Wf=Math.max(Ar,si.left),Cn=Math.max(li,si.top),Xn=Math.min(uu,si.right),wr=Math.min(du,si.bottom);return Math.max(0,(Xn-Wf)*(wr-Cn))},Dn=function(){Wt=ee.y+Nt,at=Wt+oe,$t=ee.x+wt,Bt=$t+se};var y,S,w,E,C=t,x=C.ownerDocument,_=G1(C),P=_.getComputedStyle(C),O=P.width,I=P.height,M=P.position,T=C.style.left,D=C.style.top,A=C.style.right,j=C.style.bottom,k=C.style.overflow,F=z(z({},o[r]),i),V=x.createElement("div");(y=C.parentElement)===null||y===void 0||y.appendChild(V),V.style.left="".concat(C.offsetLeft,"px"),V.style.top="".concat(C.offsetTop,"px"),V.style.position=M,V.style.height="".concat(C.offsetHeight,"px"),V.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var W;if(Array.isArray(n))W={x:n[0],y:n[1],width:0,height:0};else{var K,L,Q=n.getBoundingClientRect();Q.x=(K=Q.x)!==null&&K!==void 0?K:Q.left,Q.y=(L=Q.y)!==null&&L!==void 0?L:Q.top,W={x:Q.x,y:Q.y,width:Q.width,height:Q.height}}var ee=C.getBoundingClientRect();ee.x=(S=ee.x)!==null&&S!==void 0?S:ee.left,ee.y=(w=ee.y)!==null&&w!==void 0?w:ee.top;var re=x.documentElement,ie=re.clientWidth,G=re.clientHeight,X=re.scrollWidth,ne=re.scrollHeight,le=re.scrollTop,ce=re.scrollLeft,oe=ee.height,se=ee.width,fe=W.height,te=W.width,he={left:0,top:0,right:ie,bottom:G},pe={left:-ce,top:-le,right:X-ce,bottom:ne-le},Oe=F.htmlRegion,Me="visible",Se="visibleFirst";Oe!=="scroll"&&Oe!==Se&&(Oe=Me);var ye=Oe===Se,ve=Zz(pe,h),be=Zz(he,h),Pe=Oe===Me?be:ve,Ne=ye?be:Pe;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var U=C.getBoundingClientRect();C.style.left=T,C.style.top=D,C.style.right=A,C.style.bottom=j,C.style.overflow=k,(E=C.parentElement)===null||E===void 0||E.removeChild(V);var H=Kb(Math.round(se/parseFloat(O)*1e3)/1e3),q=Kb(Math.round(oe/parseFloat(I)*1e3)/1e3);if(H===0||q===0||kb(n)&&!Ov(n))return;var me=F.offset,Ce=F.targetOffset,ue=tH(ee,me),Le=$e(ue,2),He=Le[0],ge=Le[1],De=tH(W,Ce),qe=$e(De,2),Fe=qe[0],Ke=qe[1];W.x-=Fe,W.y-=Ke;var Ue=F.points||[],Ve=$e(Ue,2),Tt=Ve[0],et=Ve[1],st=nH(et),yt=nH(Tt),gt=dm(W,st),Lt=dm(ee,yt),St=z({},F),wt=gt.x-Lt.x+He,Nt=gt.y-Lt.y+ge,Be=Sn(wt,Nt),We=Sn(wt,Nt,be),je=dm(W,["t","l"]),Xe=dm(ee,["t","l"]),pt=dm(W,["b","r"]),vt=dm(ee,["b","r"]),Mt=F.overflow||{},Et=Mt.adjustX,ft=Mt.adjustY,dt=Mt.shiftX,Rt=Mt.shiftY,Ct=function(Uo){return typeof Uo=="boolean"?Uo:Uo>=0},Wt,at,$t,Bt;Dn();var xt=Ct(ft),bt=yt[0]===st[0];if(xt&&yt[0]==="t"&&(at>Ne.bottom||p.current.bt)){var Ft=Nt;bt?Ft-=oe-fe:Ft=je.y-vt.y-ge;var Re=Sn(wt,Ft),It=Sn(wt,Ft,be);Re>Be||Re===Be&&(!ye||It>=We)?(p.current.bt=!0,Nt=Ft,ge=-ge,St.points=[_d(yt,0),_d(st,0)]):p.current.bt=!1}if(xt&&yt[0]==="b"&&(WtBe||Ot===Be&&(!ye||Pt>=We)?(p.current.tb=!0,Nt=tt,ge=-ge,St.points=[_d(yt,0),_d(st,0)]):p.current.tb=!1}var pn=Ct(Et),Pn=yt[1]===st[1];if(pn&&yt[1]==="l"&&(Bt>Ne.right||p.current.rl)){var $=wt;Pn?$-=se-te:$=je.x-vt.x-He;var R=Sn($,Nt),J=Sn($,Nt,be);R>Be||R===Be&&(!ye||J>=We)?(p.current.rl=!0,wt=$,He=-He,St.points=[_d(yt,1),_d(st,1)]):p.current.rl=!1}if(pn&&yt[1]==="r"&&($tBe||ke===Be&&(!ye||Je>=We)?(p.current.lr=!0,wt=Ee,He=-He,St.points=[_d(yt,1),_d(st,1)]):p.current.lr=!1}Dn();var Dt=dt===!0?0:dt;typeof Dt=="number"&&($tbe.right&&(wt-=Bt-be.right-He,W.x>be.right-Dt&&(wt+=W.x-be.right+Dt)));var an=Rt===!0?0:Rt;typeof an=="number"&&(Wtbe.bottom&&(Nt-=at-be.bottom-ge,W.y>be.bottom-an&&(Nt+=W.y-be.bottom+an)));var En=ee.x+wt,Cr=En+se,ur=ee.y+Nt,Nr=ur+oe,tr=W.x,en=tr+te,un=W.y,rr=un+fe,Qt=Math.max(En,tr),Jt=Math.min(Cr,en),Rn=(Qt+Jt)/2,er=Rn-En,$r=Math.max(ur,un),ao=Math.min(Nr,rr),Bn=($r+ao)/2,Yr=Bn-ur;a==null||a(t,St);var Fn=U.right-ee.x-(wt+ee.width),rn=U.bottom-ee.y-(Nt+ee.height);H===1&&(wt=Math.round(wt),Fn=Math.round(Fn)),q===1&&(Nt=Math.round(Nt),rn=Math.round(rn));var fn={ready:!0,offsetX:wt/H,offsetY:Nt/q,offsetR:Fn/H,offsetB:rn/q,arrowX:er/H,arrowY:Yr/q,scaleX:H,scaleY:q,align:St};u(fn)}}),v=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&g()})},b=function(){u(function(S){return z(z({},S),{},{ready:!1})})};return Zn(b,[r]),Zn(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function R3e(e,t,n,r,o){Zn(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,s=e6(i),l=e6(a),c=G1(a),u=new Set([c].concat(Ze(s),Ze(l)));return u.forEach(function(h){h.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function I3e(e,t,n,r,o,i,a,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){c.current=!1},h=function(v){var b;l.current&&!a(((b=v.composedPath)===null||b===void 0||(b=b.call(v))===null||b===void 0?void 0:b[0])||v.target)&&!c.current&&s(!1)},p=G1(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",h,!0),p.addEventListener("contextmenu",h,!0);var m=q2(n);return m&&(m.addEventListener("mousedown",h,!0),m.addEventListener("contextmenu",h,!0)),function(){p.removeEventListener("pointerdown",f,!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,o,i]);function u(){c.current=!0}return u}var k3e=["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 N3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V1,t=d.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,h=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,b=v===void 0?.1:v,y=n.focusDelay,S=n.blurDelay,w=n.mask,E=n.maskClosable,C=E===void 0?!0:E,x=n.getPopupContainer,_=n.forceRender,P=n.autoDestroy,O=n.destroyPopupOnHide,I=n.popup,M=n.popupClassName,T=n.popupStyle,D=n.popupPlacement,A=n.builtinPlacements,j=A===void 0?{}:A,k=n.popupAlign,F=n.zIndex,V=n.stretch,W=n.getPopupClassNameFromAlign,K=n.fresh,L=n.alignPoint,Q=n.onPopupClick,ee=n.onPopupAlign,re=n.arrow,ie=n.popupMotion,G=n.maskMotion,X=n.popupTransitionName,ne=n.popupAnimation,le=n.maskTransitionName,ce=n.maskAnimation,oe=n.className,se=n.getTriggerDOMNode,fe=At(n,k3e),te=P||O||!1,he=d.useState(!1),pe=$e(he,2),Oe=pe[0],Me=pe[1];Zn(function(){Me(F$())},[]);var Se=d.useRef({}),ye=d.useContext(Xz),ve=d.useMemo(function(){return{registerSubPopup:function(Xn,wr){Se.current[Xn]=wr,ye==null||ye.registerSubPopup(Xn,wr)}}},[ye]),be=N$(),Pe=d.useState(null),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=d.useRef(null),me=An(function(Cn){q.current=Cn,kb(Cn)&&U!==Cn&&H(Cn),ye==null||ye.registerSubPopup(be,Cn)}),Ce=d.useState(null),ue=$e(Ce,2),Le=ue[0],He=ue[1],ge=d.useRef(null),De=An(function(Cn){kb(Cn)&&Le!==Cn&&(He(Cn),ge.current=Cn)}),qe=d.Children.only(a),Fe=(qe==null?void 0:qe.props)||{},Ke={},Ue=An(function(Cn){var Xn,wr,_o=Le;return(_o==null?void 0:_o.contains(Cn))||((Xn=q2(_o))===null||Xn===void 0?void 0:Xn.host)===Cn||Cn===_o||(U==null?void 0:U.contains(Cn))||((wr=q2(U))===null||wr===void 0?void 0:wr.host)===Cn||Cn===U||Object.values(Se.current).some(function(so){return(so==null?void 0:so.contains(Cn))||Cn===so})}),Ve=Jz(i,ie,ne,X),Tt=Jz(i,G,ce,le),et=d.useState(h||!1),st=$e(et,2),yt=st[0],gt=st[1],Lt=f??yt,St=An(function(Cn){f===void 0&>(Cn)});Zn(function(){gt(f||!1)},[f]);var wt=d.useRef(Lt);wt.current=Lt;var Nt=d.useRef([]);Nt.current=[];var Be=An(function(Cn){var Xn;St(Cn),((Xn=Nt.current[Nt.current.length-1])!==null&&Xn!==void 0?Xn:Lt)!==Cn&&(Nt.current.push(Cn),p==null||p(Cn))}),We=d.useRef(),je=function(){clearTimeout(We.current)},Xe=function(Xn){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;je(),wr===0?Be(Xn):We.current=setTimeout(function(){Be(Xn)},wr*1e3)};d.useEffect(function(){return je},[]);var pt=d.useState(!1),vt=$e(pt,2),Mt=vt[0],Et=vt[1];Zn(function(Cn){(!Cn||Lt)&&Et(!0)},[Lt]);var ft=d.useState(null),dt=$e(ft,2),Rt=dt[0],Ct=dt[1],Wt=d.useState(null),at=$e(Wt,2),$t=at[0],Bt=at[1],xt=function(Xn){Bt([Xn.clientX,Xn.clientY])},bt=T3e(Lt,U,L&&$t!==null?$t:Le,D,j,k,ee),Ft=$e(bt,11),Re=Ft[0],It=Ft[1],tt=Ft[2],Ot=Ft[3],Pt=Ft[4],pn=Ft[5],Pn=Ft[6],$=Ft[7],R=Ft[8],J=Ft[9],Ee=Ft[10],ke=P3e(Oe,l,c,u),Je=$e(ke,2),Dt=Je[0],an=Je[1],En=Dt.has("click"),Cr=an.has("click")||an.has("contextMenu"),ur=An(function(){Mt||Ee()}),Nr=function(){wt.current&&L&&Cr&&Xe(!1)};R3e(Lt,Le,U,ur,Nr),Zn(function(){ur()},[$t,D]),Zn(function(){Lt&&!(j!=null&&j[D])&&ur()},[JSON.stringify(k)]);var tr=d.useMemo(function(){var Cn=M3e(j,i,J,L);return xe(Cn,W==null?void 0:W(J))},[J,W,j,i,L]);d.useImperativeHandle(r,function(){return{nativeElement:ge.current,popupElement:q.current,forceAlign:ur}});var en=d.useState(0),un=$e(en,2),rr=un[0],Qt=un[1],Jt=d.useState(0),Rn=$e(Jt,2),er=Rn[0],$r=Rn[1],ao=function(){if(V&&Le){var Xn=Le.getBoundingClientRect();Qt(Xn.width),$r(Xn.height)}},Bn=function(){ao(),ur()},Yr=function(Xn){Et(!1),Ee(),m==null||m(Xn)},Fn=function(){return new Promise(function(Xn){ao(),Ct(function(){return Xn})})};Zn(function(){Rt&&(Ee(),Rt(),Ct(null))},[Rt]);function rn(Cn,Xn,wr,_o){Ke[Cn]=function(so){var wd;_o==null||_o(so),Xe(Xn,wr);for(var fu=arguments.length,tm=new Array(fu>1?fu-1:0),Vf=1;Vf1?wr-1:0),so=1;so1?wr-1:0),so=1;so1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Xre(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,h){Array.isArray(f)&&f.forEach(function(p){if(h||!(l in p)){var m=p[s];o.push({key:rH(p,o.length),groupOption:h,data:p,label:p[a],value:m})}else{var g=p[c];g===void 0&&r&&(g=p.label),o.push({key:rH(p,o.length),group:!0,data:p,label:g}),u(p[l],!0)}})}return u(e,!1),o}function n6(e){var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return yr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var B3e=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function s(l,c){var u=jte(c),f=u[0],h=u.slice(1);if(!f)return[l];var p=l.split(f);return o=o||p.length>1,p.reduce(function(m,g){return[].concat(Ze(m),Ze(s(g,h)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},zA=d.createContext(null);function z3e(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(Ht(i))?i:a}).join(", ")),n.length>r?", ...":null)}var H3e=["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"],U3e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],r6=function(t){return t==="tags"||t==="multiple"},HA=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,h=e.emptyOptions,p=e.notFoundContent,m=p===void 0?"Not Found":p,g=e.onClear,v=e.mode,b=e.disabled,y=e.loading,S=e.getInputElement,w=e.getRawInputElement,E=e.open,C=e.defaultOpen,x=e.onDropdownVisibleChange,_=e.activeValue,P=e.onActiveValueChange,O=e.activeDescendantId,I=e.searchValue,M=e.autoClearSearchValue,T=e.onSearch,D=e.onSearchSplit,A=e.tokenSeparators,j=e.allowClear,k=e.prefix,F=e.suffixIcon,V=e.clearIcon,W=e.OptionList,K=e.animation,L=e.transitionName,Q=e.dropdownStyle,ee=e.dropdownClassName,re=e.dropdownMatchSelectWidth,ie=e.dropdownRender,G=e.dropdownAlign,X=e.placement,ne=e.builtinPlacements,le=e.getPopupContainer,ce=e.showAction,oe=ce===void 0?[]:ce,se=e.onFocus,fe=e.onBlur,te=e.onKeyUp,he=e.onKeyDown,pe=e.onMouseDown,Oe=At(e,H3e),Me=r6(v),Se=(a!==void 0?a:Me)||v==="combobox",ye=z({},Oe);U3e.forEach(function(en){delete ye[en]}),c==null||c.forEach(function(en){delete ye[en]});var ve=d.useState(!1),be=$e(ve,2),Pe=be[0],Ne=be[1];d.useEffect(function(){Ne(F$())},[]);var U=d.useRef(null),H=d.useRef(null),q=d.useRef(null),me=d.useRef(null),Ce=d.useRef(null),ue=d.useRef(!1),Le=Q4e(),He=$e(Le,3),ge=He[0],De=He[1],qe=He[2];d.useImperativeHandle(t,function(){var en,un;return{focus:(en=me.current)===null||en===void 0?void 0:en.focus,blur:(un=me.current)===null||un===void 0?void 0:un.blur,scrollTo:function(Qt){var Jt;return(Jt=Ce.current)===null||Jt===void 0?void 0:Jt.scrollTo(Qt)},nativeElement:U.current||H.current}});var Fe=d.useMemo(function(){var en;if(v!=="combobox")return I;var un=(en=u[0])===null||en===void 0?void 0:en.value;return typeof un=="string"||typeof un=="number"?String(un):""},[I,v,u]),Ke=v==="combobox"&&typeof S=="function"&&S()||null,Ue=typeof w=="function"&&w(),Ve=mc(H,Ue==null||(n=Ue.props)===null||n===void 0?void 0:n.ref),Tt=d.useState(!1),et=$e(Tt,2),st=et[0],yt=et[1];Zn(function(){yt(!0)},[]);var gt=xn(!1,{defaultValue:C,value:E}),Lt=$e(gt,2),St=Lt[0],wt=Lt[1],Nt=st?St:!1,Be=!m&&h;(b||Be&&Nt&&v==="combobox")&&(Nt=!1);var We=Be?!1:Nt,je=d.useCallback(function(en){var un=en!==void 0?en:!Nt;b||(wt(un),Nt!==un&&(x==null||x(un)))},[b,Nt,wt,x]),Xe=d.useMemo(function(){return(A||[]).some(function(en){return[` `,`\r -`].includes(en)})},[A]),gt=d.useContext(UA)||{},pt=gt.maxCount,Rt=gt.rawValues,_t=function(un,rr,Qt){if(!(Me&&n6(pt)&&(Rt==null?void 0:Rt.size)>=pt)){var Jt=!0,Rn=un;P==null||P(null);var er=z3e(un,A,n6(pt)?pt-Rt.size:void 0),$r=Qt?null:er;return v!=="combobox"&&$r&&(Rn="",D==null||D($r),Fe(!1),Jt=!1),T&&je!==Rn&&T(Rn,{source:rr?"typing":"effect"}),Jt}},vt=function(un){!un||!un.trim()||T(un,{source:"submit"})};d.useEffect(function(){!Tt&&!Me&&v!=="combobox"&&_t("",!1,!1)},[Tt]),d.useEffect(function(){wt&&b&&Et(!1),b&&!ue.current&&De(!1)},[b]);var ft=Wre(),It=$e(ft,2),bt=It[0],Wt=It[1],at=d.useRef(!1),Pt=function(un){var rr=bt(),Qt=un.key,Jt=Qt==="Enter";if(Jt&&(v!=="combobox"&&un.preventDefault(),Tt||Fe(!0)),Wt(!!je),Qt==="Backspace"&&!rr&&Me&&!je&&u.length){for(var Rn=Ze(u),er=null,$r=Rn.length-1;$r>=0;$r-=1){var ao=Rn[$r];if(!ao.disabled){Rn.splice($r,1),er=ao;break}}er&&f(Rn,{type:"remove",values:[er]})}for(var Bn=arguments.length,Yr=new Array(Bn>1?Bn-1:0),Fn=1;Fn1?rr-1:0),Jt=1;Jt1?er-1:0),ao=1;ao"u"?"undefined":Ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Zre=function(e,t,n,r){var o=d.useRef(!1),i=d.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=d.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,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function Y3e(e,t,n,r,o,i,a){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=Zre(t,n,r,o);function h(y,S){if(zn.cancel(l.current),!f(!1,S)){var w=y;if(!w._virtualHandled)w._virtualHandled=!0;else return;s.current+=S,c.current=S,aH||w.preventDefault(),l.current=zn(function(){var E=u.current?10:1;a(s.current*E,!1),s.current=0})}}function p(y,S){a(S,!0),aH||y.preventDefault()}var m=d.useRef(null),g=d.useRef(null);function v(y){if(e){zn.cancel(g.current),g.current=zn(function(){m.current=null},2);var S=y.deltaX,w=y.deltaY,E=y.shiftKey,C=S,x=w;(m.current==="sx"||!m.current&&E&&w&&!S)&&(C=w,x=0,m.current="sx");var _=Math.abs(C),P=Math.abs(x);m.current===null&&(m.current=i&&_>P?"x":"y"),m.current==="y"?h(y,x):p(y,C)}}function b(y){e&&(u.current=y.detail===c.current)}return[v,b]}function X3e(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=$e(o,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,h=a.get(u),p=a.get(f);if(h===void 0||p===void 0)for(var m=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(v,b){if(v&&v.offsetParent){var y=Dy(v),S=y.offsetHeight,w=getComputedStyle(y),E=w.marginTop,C=w.marginBottom,x=sH(E),_=sH(C),P=S+x+_;l.current.get(b)!==P&&l.current.set(b,P)}}),a(function(v){return v+1})};p?m():c.current=zn(m)}function h(p,m){var g=e(p);s.current.get(g),m?(s.current.set(g,m),f()):s.current.delete(g)}return d.useEffect(function(){return u},[]),[h,f,l.current,i]}var lH=14/15;function Z3e(e,t,n){var r=d.useRef(!1),o=d.useRef(0),i=d.useRef(0),a=d.useRef(null),s=d.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageX),g=Math.ceil(p.touches[0].pageY),v=o.current-m,b=i.current-g,y=Math.abs(v)>Math.abs(b);y?o.current=m:i.current=g;var S=n(y,y?v:b,!1,p);S&&p.preventDefault(),clearInterval(s.current),S&&(s.current=setInterval(function(){y?v*=lH:b*=lH;var w=Math.floor(y?v:b);(!n(y,w,!0)||Math.abs(w)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),i.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))},Zn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var e6e=10;function t6e(e,t,n,r,o,i,a,s){var l=d.useRef(),c=d.useState(null),u=$e(c,2),f=u[0],h=u[1];return Zn(function(){if(f&&f.times=0;D-=1){var A=o(t[D]),j=n.get(A);if(j===void 0){y=!0;break}if(T-=j,T<=0)break}switch(E){case"top":w=x-v;break;case"bottom":w=_-b+v;break;default:{var k=e.current.scrollTop,F=k+b;xF&&(S="bottom")}}w!==null&&a(w),w!==f.lastTop&&(y=!0)}y&&h(z(z({},f),{},{times:f.times+1,targetAlign:S,lastTop:w}))}},[f,e.current]),function(p){if(p==null){s();return}if(zn.cancel(l.current),typeof p=="number")a(p);else if(p&&Ht(p)==="object"){var m,g=p.align;"index"in p?m=p.index:m=t.findIndex(function(y){return o(y)===p.key});var v=p.offset,b=v===void 0?0:v;h({times:0,index:m,offset:b,originAlign:g})}}}function cH(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var uH=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,h=e.style,p=e.thumbStyle,m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=d.useState(null),S=$e(y,2),w=S[0],E=S[1],C=d.useState(null),x=$e(C,2),_=x[0],P=x[1],O=!r,I=d.useRef(),M=d.useRef(),T=d.useState(!1),D=$e(T,2),A=D[0],j=D[1],k=d.useRef(),F=function(){clearTimeout(k.current),j(!0),k.current=setTimeout(function(){j(!1)},3e3)},V=i-f||0,W=f-u||0,K=d.useMemo(function(){if(o===0||V===0)return 0;var le=o/V;return le*W},[o,V,W]),L=function(ce){ce.stopPropagation(),ce.preventDefault()},Q=d.useRef({top:K,dragging:v,pageY:w,startTop:_});Q.current={top:K,dragging:v,pageY:w,startTop:_};var ee=function(ce){b(!0),E(cH(ce,c)),P(Q.current.top),a(),ce.stopPropagation(),ce.preventDefault()};d.useEffect(function(){var le=function(fe){fe.preventDefault()},ce=I.current,oe=M.current;return ce.addEventListener("touchstart",le,{passive:!1}),oe.addEventListener("touchstart",ee,{passive:!1}),function(){ce.removeEventListener("touchstart",le),oe.removeEventListener("touchstart",ee)}},[]);var re=d.useRef();re.current=V;var ie=d.useRef();ie.current=W,d.useEffect(function(){if(v){var le,ce=function(fe){var te=Q.current,he=te.dragging,pe=te.pageY,Oe=te.startTop;zn.cancel(le);var Me=I.current.getBoundingClientRect(),Se=f/(c?Me.width:Me.height);if(he){var ye=(cH(fe,c)-pe)*Se,ve=Oe;!O&&c?ve-=ye:ve+=ye;var be=re.current,Pe=ie.current,Ne=Pe?ve/Pe:0,U=Math.ceil(Ne*be);U=Math.max(U,0),U=Math.min(U,be),le=zn(function(){l(U,c)})}},oe=function(){b(!1),s()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),zn.cancel(le)}}},[v]),d.useEffect(function(){return F(),function(){clearTimeout(k.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:F}});var G="".concat(n,"-scrollbar"),X={position:"absolute",visibility:A?null:"hidden"},ne={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ne.height="100%",ne.width=u,O?ne.left=K:ne.right=K):(X.width=8,X.top=0,X.bottom=0,O?X.right=0:X.left=0,ne.width="100%",ne.height=u,ne.top=K),d.createElement("div",{ref:I,className:xe(G,Z(Z(Z({},"".concat(G,"-horizontal"),c),"".concat(G,"-vertical"),!c),"".concat(G,"-visible"),A)),style:z(z({},X),h),onMouseDown:L,onMouseMove:F},d.createElement("div",{ref:M,className:xe("".concat(G,"-thumb"),Z({},"".concat(G,"-thumb-moving"),v)),style:z(z({},ne),p),onMouseDown:ee}))}),n6e=20;function dH(){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,n6e),Math.floor(n)}var r6e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],o6e=[],i6e={overflowY:"auto",overflowAnchor:"none"};function a6e(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,h=e.itemKey,p=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,b=v===void 0?"div":v,y=e.onScroll,S=e.onVirtualScroll,w=e.onVisibleChange,E=e.innerProps,C=e.extraRender,x=e.styles,_=At(e,r6e),P=d.useCallback(function(xt){return typeof h=="function"?h(xt):xt==null?void 0:xt[h]},[h]),O=J3e(P),I=$e(O,4),M=I[0],T=I[1],D=I[2],A=I[3],j=!!(p!==!1&&i&&a),k=d.useMemo(function(){return Object.values(D.maps).reduce(function(xt,yt){return xt+yt},0)},[D.id,D.maps]),F=j&&u&&(Math.max(a*u.length,k)>i||!!g),V=m==="rtl",W=xe(r,Z({},"".concat(r,"-rtl"),V),o),K=u||o6e,L=d.useRef(),Q=d.useRef(),ee=d.useRef(),re=d.useState(0),ie=$e(re,2),G=ie[0],X=ie[1],ne=d.useState(0),le=$e(ne,2),ce=le[0],oe=le[1],se=d.useState(!1),fe=$e(se,2),te=fe[0],he=fe[1],pe=function(){he(!0)},Oe=function(){he(!1)},Me={getKey:P};function Se(xt){X(function(yt){var Ft;typeof xt=="function"?Ft=xt(yt):Ft=xt;var Re=et(Ft);return L.current.scrollTop=Re,Re})}var ye=d.useRef({start:0,end:K.length}),ve=d.useRef(),be=G3e(K,P),Pe=$e(be,1),Ne=Pe[0];ve.current=Ne;var U=d.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!F){var xt;return{scrollHeight:((xt=Q.current)===null||xt===void 0?void 0:xt.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var yt=0,Ft,Re,kt,tt=K.length,Mt=0;Mt=G&&Ft===void 0&&(Ft=Mt,Re=yt),$>G+i&&kt===void 0&&(kt=Mt),yt=$}return Ft===void 0&&(Ft=0,Re=0,kt=Math.ceil(i/a)),kt===void 0&&(kt=K.length-1),kt=Math.min(kt+1,K.length-1),{scrollHeight:yt,start:Ft,end:kt,offset:Re}},[F,j,G,K,A,i]),H=U.scrollHeight,q=U.start,me=U.end,Ce=U.offset;ye.current.start=q,ye.current.end=me;var ue=d.useState({width:0,height:i}),Le=$e(ue,2),He=Le[0],ge=Le[1],De=function(yt){ge({width:yt.offsetWidth,height:yt.offsetHeight})},qe=d.useRef(),je=d.useRef(),Ke=d.useMemo(function(){return dH(He.width,g)},[He.width,g]),Ue=d.useMemo(function(){return dH(He.height,H)},[He.height,H]),Ve=H-i,St=d.useRef(Ve);St.current=Ve;function et(xt){var yt=xt;return Number.isNaN(St.current)||(yt=Math.min(yt,St.current)),yt=Math.max(yt,0),yt}var st=G<=0,Ct=G>=Ve,dt=ce<=0,Lt=ce>=g,wt=Zre(st,Ct,dt,Lt),Et=function(){return{x:V?-ce:ce,y:G}},Tt=d.useRef(Et()),Be=An(function(xt){if(S){var yt=z(z({},Et()),xt);(Tt.current.x!==yt.x||Tt.current.y!==yt.y)&&(S(yt),Tt.current=yt)}});function We(xt,yt){var Ft=xt;yt?(hi.flushSync(function(){oe(Ft)}),Be()):Se(Ft)}function Fe(xt){var yt=xt.currentTarget.scrollTop;yt!==G&&Se(yt),y==null||y(xt),Be()}var Xe=function(yt){var Ft=yt,Re=g?g-He.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,Re),Ft},gt=An(function(xt,yt){yt?(hi.flushSync(function(){oe(function(Ft){var Re=Ft+(V?-xt:xt);return Xe(Re)})}),Be()):Se(function(Ft){var Re=Ft+xt;return Re})}),pt=Y3e(j,st,Ct,dt,Lt,!!g,gt),Rt=$e(pt,2),_t=Rt[0],vt=Rt[1];Z3e(j,L,function(xt,yt,Ft,Re){var kt=Re;return wt(xt,yt,Ft)?!1:!kt||!kt._virtualHandled?(kt&&(kt._virtualHandled=!0),_t({preventDefault:function(){},deltaX:xt?yt:0,deltaY:xt?0:yt}),!0):!1}),Zn(function(){function xt(Ft){var Re=st&&Ft.detail<0,kt=Ct&&Ft.detail>0;j&&!Re&&!kt&&Ft.preventDefault()}var yt=L.current;return yt.addEventListener("wheel",_t,{passive:!1}),yt.addEventListener("DOMMouseScroll",vt,{passive:!0}),yt.addEventListener("MozMousePixelScroll",xt,{passive:!1}),function(){yt.removeEventListener("wheel",_t),yt.removeEventListener("DOMMouseScroll",vt),yt.removeEventListener("MozMousePixelScroll",xt)}},[j,st,Ct]),Zn(function(){if(g){var xt=Xe(ce);oe(xt),Be({x:xt})}},[He.width,g]);var ft=function(){var yt,Ft;(yt=qe.current)===null||yt===void 0||yt.delayHidden(),(Ft=je.current)===null||Ft===void 0||Ft.delayHidden()},It=t6e(L,K,D,a,P,function(){return T(!0)},Se,ft);d.useImperativeHandle(t,function(){return{nativeElement:ee.current,getScrollInfo:Et,scrollTo:function(yt){function Ft(Re){return Re&&Ht(Re)==="object"&&("left"in Re||"top"in Re)}Ft(yt)?(yt.left!==void 0&&oe(Xe(yt.left)),It(yt.top)):It(yt)}}}),Zn(function(){if(w){var xt=K.slice(q,me+1);w(xt,K)}},[q,me,K]);var bt=X3e(K,P,D,a),Wt=C==null?void 0:C({start:q,end:me,virtual:F,offsetX:ce,offsetY:Ce,rtl:V,getSize:bt}),at=K3e(K,q,me,g,ce,M,f,Me),Pt=null;i&&(Pt=z(Z({},l?"height":"maxHeight",i),i6e),j&&(Pt.overflowY="hidden",g&&(Pt.overflowX="hidden"),te&&(Pt.pointerEvents="none")));var Bt={};return V&&(Bt.dir="rtl"),d.createElement("div",Ge({ref:ee,style:z(z({},c),{},{position:"relative"}),className:W},Bt,_),d.createElement(Oi,{onResize:De},d.createElement(b,{className:"".concat(r,"-holder"),style:Pt,ref:L,onScroll:Fe,onMouseEnter:ft},d.createElement(Jre,{prefixCls:r,height:H,offsetX:ce,offsetY:Ce,scrollWidth:g,onInnerResize:T,ref:Q,innerProps:E,rtl:V,extra:Wt},at))),F&&H>i&&d.createElement(uH,{ref:qe,prefixCls:r,scrollOffset:G,scrollRange:H,rtl:V,onScroll:We,onStartMove:pe,onStopMove:Oe,spinSize:Ue,containerSize:He.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),F&&g>He.width&&d.createElement(uH,{ref:je,prefixCls:r,scrollOffset:ce,scrollRange:g,rtl:V,onScroll:We,onStartMove:pe,onStopMove:Oe,spinSize:Ke,containerSize:He.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var B$=d.forwardRef(a6e);B$.displayName="List";function s6e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var l6e=["disabled","title","children","style","className"];function fH(e){return typeof e=="string"||typeof e=="number"}var c6e=function(t,n){var r=HA(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,h=r.onPopupScroll,p=d.useContext(UA),m=p.maxCount,g=p.flattenOptions,v=p.onActiveValue,b=p.defaultActiveFirstOption,y=p.onSelect,S=p.menuItemSelectedIcon,w=p.rawValues,E=p.fieldNames,C=p.virtual,x=p.direction,_=p.listHeight,P=p.listItemHeight,O=p.optionRender,I="".concat(o,"-item"),M=td(function(){return g},[a,g],function(ce,oe){return oe[0]&&ce[1]!==oe[1]}),T=d.useRef(null),D=d.useMemo(function(){return s&&n6(m)&&(w==null?void 0:w.size)>=m},[s,m,w==null?void 0:w.size]),A=function(oe){oe.preventDefault()},j=function(oe){var se;(se=T.current)===null||se===void 0||se.scrollTo(typeof oe=="number"?{index:oe}:oe)},k=d.useCallback(function(ce){return l==="combobox"?!1:w.has(ce)},[l,Ze(w).toString(),w.size]),F=function(oe){for(var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,fe=M.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;L(oe);var fe={source:se?"keyboard":"mouse"},te=M[oe];if(!te){v(null,-1,fe);return}v(te.value,oe,fe)};d.useEffect(function(){Q(b!==!1?F(0):-1)},[M.length,c]);var ee=d.useCallback(function(ce){return l==="combobox"?String(ce).toLowerCase()===c.toLowerCase():w.has(ce)},[l,c,Ze(w).toString(),w.size]);d.useEffect(function(){var ce=setTimeout(function(){if(!s&&a&&w.size===1){var se=Array.from(w)[0],fe=M.findIndex(function(te){var he=te.data;return he.value===se});fe!==-1&&(Q(fe),j(fe))}});if(a){var oe;(oe=T.current)===null||oe===void 0||oe.scrollTo(void 0)}return function(){return clearTimeout(ce)}},[a,c]);var re=function(oe){oe!==void 0&&y(oe,{selected:!w.has(oe)}),s||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(oe){var se=oe.which,fe=oe.ctrlKey;switch(se){case ut.N:case ut.P:case ut.UP:case ut.DOWN:{var te=0;if(se===ut.UP?te=-1:se===ut.DOWN?te=1:s6e()&&fe&&(se===ut.N?te=1:se===ut.P&&(te=-1)),te!==0){var he=F(K+te,te);j(he),Q(he,!0)}break}case ut.TAB:case ut.ENTER:{var pe,Oe=M[K];Oe&&!(Oe!=null&&(pe=Oe.data)!==null&&pe!==void 0&&pe.disabled)&&!D?re(Oe.value):re(void 0),a&&oe.preventDefault();break}case ut.ESC:u(!1),a&&oe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(oe){j(oe)}}}),M.length===0)return d.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:A},f);var ie=Object.keys(E).map(function(ce){return E[ce]}),G=function(oe){return oe.label};function X(ce,oe){var se=ce.group;return{role:se?"presentation":"option",id:"".concat(i,"_list_").concat(oe)}}var ne=function(oe){var se=M[oe];if(!se)return null;var fe=se.data||{},te=fe.value,he=se.group,pe=Jr(fe,!0),Oe=G(se);return se?d.createElement("div",Ge({"aria-label":typeof Oe=="string"&&!he?Oe:null},pe,{key:oe},X(se,oe),{"aria-selected":ee(te)}),te):null},le={role:"listbox",id:"".concat(i,"_list")};return d.createElement(d.Fragment,null,C&&d.createElement("div",Ge({},le,{style:{height:0,width:0,overflow:"hidden"}}),ne(K-1),ne(K),ne(K+1)),d.createElement(B$,{itemKey:"key",ref:T,data:M,height:_,itemHeight:P,fullHeight:!1,onMouseDown:A,onScroll:h,virtual:C,direction:x,innerProps:C?null:le},function(ce,oe){var se=ce.group,fe=ce.groupOption,te=ce.data,he=ce.label,pe=ce.value,Oe=te.key;if(se){var Me,Se=(Me=te.title)!==null&&Me!==void 0?Me:fH(he)?he.toString():void 0;return d.createElement("div",{className:xe(I,"".concat(I,"-group"),te.className),title:Se},he!==void 0?he:Oe)}var ye=te.disabled,ve=te.title;te.children;var be=te.style,Pe=te.className,Ne=At(te,l6e),U=Yn(Ne,ie),H=k(pe),q=ye||!H&&D,me="".concat(I,"-option"),Ce=xe(I,me,Pe,Z(Z(Z(Z({},"".concat(me,"-grouped"),fe),"".concat(me,"-active"),K===oe&&!q),"".concat(me,"-disabled"),q),"".concat(me,"-selected"),H)),ue=G(ce),Le=!S||typeof S=="function"||H,He=typeof ue=="number"?ue:ue||pe,ge=fH(He)?He.toString():void 0;return ve!==void 0&&(ge=ve),d.createElement("div",Ge({},Jr(U),C?{}:X(ce,oe),{"aria-selected":ee(pe),className:Ce,title:ge,onMouseMove:function(){K===oe||q||Q(oe)},onClick:function(){q||re(pe)},style:be}),d.createElement("div",{className:"".concat(me,"-content")},typeof O=="function"?O(ce,{index:oe}):He),d.isValidElement(S)||H,Le&&d.createElement(L$,{className:"".concat(I,"-option-state"),customizeIcon:S,customizeIconProps:{value:pe,disabled:q,isSelected:H}},H?"✓":null))}))},u6e=d.forwardRef(c6e);const d6e=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var h;return z(z({},f),{},{label:(h=a.get(f.value))===null||h===void 0?void 0:h.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=d.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function qT(e,t){return Yre(e).join("").toUpperCase().includes(t)}const f6e=function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(p,m){return o?qT(m[o],u):m[i]?qT(m[a!=="children"?a:"label"],u):qT(m[s],u)},h=c?function(p){return r6(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var m=f(n,h(p));if(m)l.push(p);else{var g=p[i].filter(function(v){return f(n,h(v))});g.length&&l.push(z(z({},p),{},Z({},i,g)))}return}f(n,h(p))&&l.push(p)}),l},[e,r,o,n,t])};var hH=0,h6e=Ca();function p6e(){var e;return h6e?(e=hH,hH+=1):e="TEST_OR_SSR",e}function qA(e){var t=d.useState(),n=$e(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(p6e()))},[]),e||r}var m6e=["children","value"],g6e=["children"];function v6e(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=At(r,m6e);return z({key:n,value:i!==void 0?i:n,children:o},a)}function eoe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ai(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=At(s,g6e);return t||!i?v6e(n):z(z({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:eoe(l)})}).filter(function(n){return n})}var y6e=function(t,n,r,o,i){return d.useMemo(function(){var a=t,s=!t;s&&(a=eoe(n));var l=new Map,c=new Map,u=function(p,m,g){g&&typeof g=="string"&&p.set(m[g],m)},f=function h(p){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?Fe(pt.options):pt.options}):pt})},He=d.useMemo(function(){return y?Le(ue):ue},[ue,y,le]),ge=d.useMemo(function(){return B3e(He,{fieldNames:G,childrenAsData:re})},[He,G,re]),De=function(Xe){var gt=he(Xe);if(Se(gt),W&&(gt.length!==Pe.length||gt.some(function(_t,vt){var ft;return((ft=Pe[vt])===null||ft===void 0?void 0:ft.value)!==(_t==null?void 0:_t.value)}))){var pt=V?gt:gt.map(function(_t){return _t.value}),Rt=gt.map(function(_t){return r6(Ne(_t.value))});W(ee?pt:pt[0],ee?Rt:Rt[0])}},qe=d.useState(null),je=$e(qe,2),Ke=je[0],Ue=je[1],Ve=d.useState(0),St=$e(Ve,2),et=St[0],st=St[1],Ct=_!==void 0?_:r!=="combobox",dt=d.useCallback(function(Fe,Xe){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pt=gt.source,Rt=pt===void 0?"keyboard":pt;st(Xe),a&&r==="combobox"&&Fe!==null&&Rt==="keyboard"&&Ue(String(Fe))},[a,r]),Lt=function(Xe,gt,pt){var Rt=function(){var xt,yt=Ne(Xe);return[V?{label:yt==null?void 0:yt[G.label],value:Xe,key:(xt=yt==null?void 0:yt.key)!==null&&xt!==void 0?xt:Xe}:Xe,r6(yt)]};if(gt&&p){var _t=Rt(),vt=$e(_t,2),ft=vt[0],It=vt[1];p(ft,It)}else if(!gt&&m&&pt!=="clear"){var bt=Rt(),Wt=$e(bt,2),at=Wt[0],Pt=Wt[1];m(at,Pt)}},wt=pH(function(Fe,Xe){var gt,pt=ee?Xe.selected:!0;pt?gt=ee?[].concat(Ze(Pe),[Fe]):[Fe]:gt=Pe.filter(function(Rt){return Rt.value!==Fe}),De(gt),Lt(Fe,pt),r==="combobox"?Ue(""):(!o6||h)&&(ce(""),Ue(""))}),Et=function(Xe,gt){De(Xe);var pt=gt.type,Rt=gt.values;(pt==="remove"||pt==="clear")&&Rt.forEach(function(_t){Lt(_t.value,!1,pt)})},Tt=function(Xe,gt){if(ce(Xe),Ue(null),gt.source==="submit"){var pt=(Xe||"").trim();if(pt){var Rt=Array.from(new Set([].concat(Ze(H),[pt])));De(Rt),Lt(pt,!0),ce("")}return}gt.source!=="blur"&&(r==="combobox"&&De(Xe),u==null||u(Xe))},Be=function(Xe){var gt=Xe;r!=="tags"&&(gt=Xe.map(function(Rt){var _t=fe.get(Rt);return _t==null?void 0:_t.value}).filter(function(Rt){return Rt!==void 0}));var pt=Array.from(new Set([].concat(Ze(H),Ze(gt))));De(pt),pt.forEach(function(Rt){Lt(Rt,!0)})},We=d.useMemo(function(){var Fe=O!==!1&&v!==!1;return z(z({},oe),{},{flattenOptions:ge,onActiveValue:dt,defaultActiveFirstOption:Ct,onSelect:wt,menuItemSelectedIcon:P,rawValues:H,fieldNames:G,virtual:Fe,direction:I,listHeight:T,listItemHeight:A,childrenAsData:re,maxCount:K,optionRender:C})},[K,oe,ge,dt,Ct,wt,P,H,G,O,v,I,T,A,re,C]);return d.createElement(UA.Provider,{value:We},d.createElement(WA,Ge({},L,{id:Q,prefixCls:i,ref:t,omitDomProps:S6e,mode:r,displayValues:U,onDisplayValuesChange:Et,direction:I,searchValue:le,onSearch:Tt,autoClearSearchValue:h,onSearchSplit:Be,dropdownMatchSelectWidth:v,OptionList:u6e,emptyOptions:!ge.length,activeValue:Ke,activeDescendantId:"".concat(Q,"_list_").concat(et)})))}),GA=w6e;GA.Option=KA;GA.OptGroup=VA;function ac(e,t,n){return xe({[`${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 md=(e,t)=>t||e,x6e=()=>{const[,e]=Ho(),[t]=zi("Empty"),r=new Un(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.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"}),d.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)"}),d.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"}),d.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"})),d.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"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},E6e=()=>{const[,e]=Ho(),[t]=zi("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new Un(n).onBackground(i).toHexString(),shadowColor:new Un(r).onBackground(i).toHexString(),contentColor:new Un(o).onBackground(i).toHexString()}),[n,r,o,i]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:a},d.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"}),d.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}))))},_6e=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},$6e=Kn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=kn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[_6e(o)]});var P6e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l;const{className:c,rootClassName:u,prefixCls:f,image:h=toe,description:p,children:m,imageStyle:g,style:v,classNames:b,styles:y}=e,S=P6e(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:w,direction:E,empty:C}=d.useContext(Yt),x=w("empty",f),[_,P,O]=$6e(x),[I]=zi("Empty"),M=typeof p<"u"?p:I==null?void 0:I.description,T=typeof M=="string"?M:"empty";let D=null;return typeof h=="string"?D=d.createElement("img",{alt:T,src:h}):D=h,_(d.createElement("div",Object.assign({className:xe(P,O,x,C==null?void 0:C.className,{[`${x}-normal`]:h===noe,[`${x}-rtl`]:E==="rtl"},c,u,(t=C==null?void 0:C.classNames)===null||t===void 0?void 0:t.root,b==null?void 0:b.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=C==null?void 0:C.styles)===null||n===void 0?void 0:n.root),C==null?void 0:C.style),y==null?void 0:y.root),v)},S),d.createElement("div",{className:xe(`${x}-image`,(r=C==null?void 0:C.classNames)===null||r===void 0?void 0:r.image,b==null?void 0:b.image),style:Object.assign(Object.assign(Object.assign({},g),(o=C==null?void 0:C.styles)===null||o===void 0?void 0:o.image),y==null?void 0:y.image)},D),M&&d.createElement("div",{className:xe(`${x}-description`,(i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.description,b==null?void 0:b.description),style:Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.description),y==null?void 0:y.description)},M),m&&d.createElement("div",{className:xe(`${x}-footer`,(s=C==null?void 0:C.classNames)===null||s===void 0?void 0:s.footer,b==null?void 0:b.footer),style:Object.assign(Object.assign({},(l=C==null?void 0:C.styles)===null||l===void 0?void 0:l.footer),y==null?void 0:y.footer)},m)))};Nc.PRESENTED_IMAGE_DEFAULT=toe;Nc.PRESENTED_IMAGE_SIMPLE=noe;const Y1=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(Yt),r=n("empty");switch(t){case"Table":case"List":return de.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return de.createElement(Nc,null)}},gd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=d.useContext(Yt),s=d.useContext(bre),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=XPe.includes(c);return[c,u]},O6e=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 YA(e,t){return e||O6e(t)}const mH=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},M6e=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${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({},Qn(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,[` +`].includes(en)})},[A]),pt=d.useContext(zA)||{},vt=pt.maxCount,Mt=pt.rawValues,Et=function(un,rr,Qt){if(!(Me&&t6(vt)&&(Mt==null?void 0:Mt.size)>=vt)){var Jt=!0,Rn=un;P==null||P(null);var er=B3e(un,A,t6(vt)?vt-Mt.size:void 0),$r=Qt?null:er;return v!=="combobox"&&$r&&(Rn="",D==null||D($r),je(!1),Jt=!1),T&&Fe!==Rn&&T(Rn,{source:rr?"typing":"effect"}),Jt}},ft=function(un){!un||!un.trim()||T(un,{source:"submit"})};d.useEffect(function(){!Nt&&!Me&&v!=="combobox"&&Et("",!1,!1)},[Nt]),d.useEffect(function(){St&&b&&wt(!1),b&&!ue.current&&De(!1)},[b]);var dt=Ure(),Rt=$e(dt,2),Ct=Rt[0],Wt=Rt[1],at=d.useRef(!1),$t=function(un){var rr=Ct(),Qt=un.key,Jt=Qt==="Enter";if(Jt&&(v!=="combobox"&&un.preventDefault(),Nt||je(!0)),Wt(!!Fe),Qt==="Backspace"&&!rr&&Me&&!Fe&&u.length){for(var Rn=Ze(u),er=null,$r=Rn.length-1;$r>=0;$r-=1){var ao=Rn[$r];if(!ao.disabled){Rn.splice($r,1),er=ao;break}}er&&f(Rn,{type:"remove",values:[er]})}for(var Bn=arguments.length,Yr=new Array(Bn>1?Bn-1:0),Fn=1;Fn1?rr-1:0),Jt=1;Jt1?er-1:0),ao=1;ao"u"?"undefined":Ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Jre=function(e,t,n,r){var o=d.useRef(!1),i=d.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=d.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,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function G3e(e,t,n,r,o,i,a){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=Jre(t,n,r,o);function h(y,S){if(zn.cancel(l.current),!f(!1,S)){var w=y;if(!w._virtualHandled)w._virtualHandled=!0;else return;s.current+=S,c.current=S,oH||w.preventDefault(),l.current=zn(function(){var E=u.current?10:1;a(s.current*E,!1),s.current=0})}}function p(y,S){a(S,!0),oH||y.preventDefault()}var m=d.useRef(null),g=d.useRef(null);function v(y){if(e){zn.cancel(g.current),g.current=zn(function(){m.current=null},2);var S=y.deltaX,w=y.deltaY,E=y.shiftKey,C=S,x=w;(m.current==="sx"||!m.current&&E&&w&&!S)&&(C=w,x=0,m.current="sx");var _=Math.abs(C),P=Math.abs(x);m.current===null&&(m.current=i&&_>P?"x":"y"),m.current==="y"?h(y,x):p(y,C)}}function b(y){e&&(u.current=y.detail===c.current)}return[v,b]}function Y3e(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=$e(o,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,h=a.get(u),p=a.get(f);if(h===void 0||p===void 0)for(var m=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(v,b){if(v&&v.offsetParent){var y=Dy(v),S=y.offsetHeight,w=getComputedStyle(y),E=w.marginTop,C=w.marginBottom,x=iH(E),_=iH(C),P=S+x+_;l.current.get(b)!==P&&l.current.set(b,P)}}),a(function(v){return v+1})};p?m():c.current=zn(m)}function h(p,m){var g=e(p);s.current.get(g),m?(s.current.set(g,m),f()):s.current.delete(g)}return d.useEffect(function(){return u},[]),[h,f,l.current,i]}var aH=14/15;function J3e(e,t,n){var r=d.useRef(!1),o=d.useRef(0),i=d.useRef(0),a=d.useRef(null),s=d.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageX),g=Math.ceil(p.touches[0].pageY),v=o.current-m,b=i.current-g,y=Math.abs(v)>Math.abs(b);y?o.current=m:i.current=g;var S=n(y,y?v:b,!1,p);S&&p.preventDefault(),clearInterval(s.current),S&&(s.current=setInterval(function(){y?v*=aH:b*=aH;var w=Math.floor(y?v:b);(!n(y,w,!0)||Math.abs(w)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),i.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))},Zn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var Z3e=10;function e6e(e,t,n,r,o,i,a,s){var l=d.useRef(),c=d.useState(null),u=$e(c,2),f=u[0],h=u[1];return Zn(function(){if(f&&f.times=0;D-=1){var A=o(t[D]),j=n.get(A);if(j===void 0){y=!0;break}if(T-=j,T<=0)break}switch(E){case"top":w=x-v;break;case"bottom":w=_-b+v;break;default:{var k=e.current.scrollTop,F=k+b;xF&&(S="bottom")}}w!==null&&a(w),w!==f.lastTop&&(y=!0)}y&&h(z(z({},f),{},{times:f.times+1,targetAlign:S,lastTop:w}))}},[f,e.current]),function(p){if(p==null){s();return}if(zn.cancel(l.current),typeof p=="number")a(p);else if(p&&Ht(p)==="object"){var m,g=p.align;"index"in p?m=p.index:m=t.findIndex(function(y){return o(y)===p.key});var v=p.offset,b=v===void 0?0:v;h({times:0,index:m,offset:b,originAlign:g})}}}function sH(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var lH=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,h=e.style,p=e.thumbStyle,m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=d.useState(null),S=$e(y,2),w=S[0],E=S[1],C=d.useState(null),x=$e(C,2),_=x[0],P=x[1],O=!r,I=d.useRef(),M=d.useRef(),T=d.useState(!1),D=$e(T,2),A=D[0],j=D[1],k=d.useRef(),F=function(){clearTimeout(k.current),j(!0),k.current=setTimeout(function(){j(!1)},3e3)},V=i-f||0,W=f-u||0,K=d.useMemo(function(){if(o===0||V===0)return 0;var le=o/V;return le*W},[o,V,W]),L=function(ce){ce.stopPropagation(),ce.preventDefault()},Q=d.useRef({top:K,dragging:v,pageY:w,startTop:_});Q.current={top:K,dragging:v,pageY:w,startTop:_};var ee=function(ce){b(!0),E(sH(ce,c)),P(Q.current.top),a(),ce.stopPropagation(),ce.preventDefault()};d.useEffect(function(){var le=function(fe){fe.preventDefault()},ce=I.current,oe=M.current;return ce.addEventListener("touchstart",le,{passive:!1}),oe.addEventListener("touchstart",ee,{passive:!1}),function(){ce.removeEventListener("touchstart",le),oe.removeEventListener("touchstart",ee)}},[]);var re=d.useRef();re.current=V;var ie=d.useRef();ie.current=W,d.useEffect(function(){if(v){var le,ce=function(fe){var te=Q.current,he=te.dragging,pe=te.pageY,Oe=te.startTop;zn.cancel(le);var Me=I.current.getBoundingClientRect(),Se=f/(c?Me.width:Me.height);if(he){var ye=(sH(fe,c)-pe)*Se,ve=Oe;!O&&c?ve-=ye:ve+=ye;var be=re.current,Pe=ie.current,Ne=Pe?ve/Pe:0,U=Math.ceil(Ne*be);U=Math.max(U,0),U=Math.min(U,be),le=zn(function(){l(U,c)})}},oe=function(){b(!1),s()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),zn.cancel(le)}}},[v]),d.useEffect(function(){return F(),function(){clearTimeout(k.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:F}});var G="".concat(n,"-scrollbar"),X={position:"absolute",visibility:A?null:"hidden"},ne={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ne.height="100%",ne.width=u,O?ne.left=K:ne.right=K):(X.width=8,X.top=0,X.bottom=0,O?X.right=0:X.left=0,ne.width="100%",ne.height=u,ne.top=K),d.createElement("div",{ref:I,className:xe(G,Z(Z(Z({},"".concat(G,"-horizontal"),c),"".concat(G,"-vertical"),!c),"".concat(G,"-visible"),A)),style:z(z({},X),h),onMouseDown:L,onMouseMove:F},d.createElement("div",{ref:M,className:xe("".concat(G,"-thumb"),Z({},"".concat(G,"-thumb-moving"),v)),style:z(z({},ne),p),onMouseDown:ee}))}),t6e=20;function cH(){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,t6e),Math.floor(n)}var n6e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],r6e=[],o6e={overflowY:"auto",overflowAnchor:"none"};function i6e(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,h=e.itemKey,p=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,b=v===void 0?"div":v,y=e.onScroll,S=e.onVirtualScroll,w=e.onVisibleChange,E=e.innerProps,C=e.extraRender,x=e.styles,_=At(e,n6e),P=d.useCallback(function(xt){return typeof h=="function"?h(xt):xt==null?void 0:xt[h]},[h]),O=Q3e(P),I=$e(O,4),M=I[0],T=I[1],D=I[2],A=I[3],j=!!(p!==!1&&i&&a),k=d.useMemo(function(){return Object.values(D.maps).reduce(function(xt,bt){return xt+bt},0)},[D.id,D.maps]),F=j&&u&&(Math.max(a*u.length,k)>i||!!g),V=m==="rtl",W=xe(r,Z({},"".concat(r,"-rtl"),V),o),K=u||r6e,L=d.useRef(),Q=d.useRef(),ee=d.useRef(),re=d.useState(0),ie=$e(re,2),G=ie[0],X=ie[1],ne=d.useState(0),le=$e(ne,2),ce=le[0],oe=le[1],se=d.useState(!1),fe=$e(se,2),te=fe[0],he=fe[1],pe=function(){he(!0)},Oe=function(){he(!1)},Me={getKey:P};function Se(xt){X(function(bt){var Ft;typeof xt=="function"?Ft=xt(bt):Ft=xt;var Re=et(Ft);return L.current.scrollTop=Re,Re})}var ye=d.useRef({start:0,end:K.length}),ve=d.useRef(),be=q3e(K,P),Pe=$e(be,1),Ne=Pe[0];ve.current=Ne;var U=d.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!F){var xt;return{scrollHeight:((xt=Q.current)===null||xt===void 0?void 0:xt.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var bt=0,Ft,Re,It,tt=K.length,Ot=0;Ot=G&&Ft===void 0&&(Ft=Ot,Re=bt),$>G+i&&It===void 0&&(It=Ot),bt=$}return Ft===void 0&&(Ft=0,Re=0,It=Math.ceil(i/a)),It===void 0&&(It=K.length-1),It=Math.min(It+1,K.length-1),{scrollHeight:bt,start:Ft,end:It,offset:Re}},[F,j,G,K,A,i]),H=U.scrollHeight,q=U.start,me=U.end,Ce=U.offset;ye.current.start=q,ye.current.end=me;var ue=d.useState({width:0,height:i}),Le=$e(ue,2),He=Le[0],ge=Le[1],De=function(bt){ge({width:bt.offsetWidth,height:bt.offsetHeight})},qe=d.useRef(),Fe=d.useRef(),Ke=d.useMemo(function(){return cH(He.width,g)},[He.width,g]),Ue=d.useMemo(function(){return cH(He.height,H)},[He.height,H]),Ve=H-i,Tt=d.useRef(Ve);Tt.current=Ve;function et(xt){var bt=xt;return Number.isNaN(Tt.current)||(bt=Math.min(bt,Tt.current)),bt=Math.max(bt,0),bt}var st=G<=0,yt=G>=Ve,gt=ce<=0,Lt=ce>=g,St=Jre(st,yt,gt,Lt),wt=function(){return{x:V?-ce:ce,y:G}},Nt=d.useRef(wt()),Be=An(function(xt){if(S){var bt=z(z({},wt()),xt);(Nt.current.x!==bt.x||Nt.current.y!==bt.y)&&(S(bt),Nt.current=bt)}});function We(xt,bt){var Ft=xt;bt?(_i.flushSync(function(){oe(Ft)}),Be()):Se(Ft)}function je(xt){var bt=xt.currentTarget.scrollTop;bt!==G&&Se(bt),y==null||y(xt),Be()}var Xe=function(bt){var Ft=bt,Re=g?g-He.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,Re),Ft},pt=An(function(xt,bt){bt?(_i.flushSync(function(){oe(function(Ft){var Re=Ft+(V?-xt:xt);return Xe(Re)})}),Be()):Se(function(Ft){var Re=Ft+xt;return Re})}),vt=G3e(j,st,yt,gt,Lt,!!g,pt),Mt=$e(vt,2),Et=Mt[0],ft=Mt[1];J3e(j,L,function(xt,bt,Ft,Re){var It=Re;return St(xt,bt,Ft)?!1:!It||!It._virtualHandled?(It&&(It._virtualHandled=!0),Et({preventDefault:function(){},deltaX:xt?bt:0,deltaY:xt?0:bt}),!0):!1}),Zn(function(){function xt(Ft){var Re=st&&Ft.detail<0,It=yt&&Ft.detail>0;j&&!Re&&!It&&Ft.preventDefault()}var bt=L.current;return bt.addEventListener("wheel",Et,{passive:!1}),bt.addEventListener("DOMMouseScroll",ft,{passive:!0}),bt.addEventListener("MozMousePixelScroll",xt,{passive:!1}),function(){bt.removeEventListener("wheel",Et),bt.removeEventListener("DOMMouseScroll",ft),bt.removeEventListener("MozMousePixelScroll",xt)}},[j,st,yt]),Zn(function(){if(g){var xt=Xe(ce);oe(xt),Be({x:xt})}},[He.width,g]);var dt=function(){var bt,Ft;(bt=qe.current)===null||bt===void 0||bt.delayHidden(),(Ft=Fe.current)===null||Ft===void 0||Ft.delayHidden()},Rt=e6e(L,K,D,a,P,function(){return T(!0)},Se,dt);d.useImperativeHandle(t,function(){return{nativeElement:ee.current,getScrollInfo:wt,scrollTo:function(bt){function Ft(Re){return Re&&Ht(Re)==="object"&&("left"in Re||"top"in Re)}Ft(bt)?(bt.left!==void 0&&oe(Xe(bt.left)),Rt(bt.top)):Rt(bt)}}}),Zn(function(){if(w){var xt=K.slice(q,me+1);w(xt,K)}},[q,me,K]);var Ct=Y3e(K,P,D,a),Wt=C==null?void 0:C({start:q,end:me,virtual:F,offsetX:ce,offsetY:Ce,rtl:V,getSize:Ct}),at=V3e(K,q,me,g,ce,M,f,Me),$t=null;i&&($t=z(Z({},l?"height":"maxHeight",i),o6e),j&&($t.overflowY="hidden",g&&($t.overflowX="hidden"),te&&($t.pointerEvents="none")));var Bt={};return V&&(Bt.dir="rtl"),d.createElement("div",Ge({ref:ee,style:z(z({},c),{},{position:"relative"}),className:W},Bt,_),d.createElement(Oi,{onResize:De},d.createElement(b,{className:"".concat(r,"-holder"),style:$t,ref:L,onScroll:je,onMouseEnter:dt},d.createElement(Qre,{prefixCls:r,height:H,offsetX:ce,offsetY:Ce,scrollWidth:g,onInnerResize:T,ref:Q,innerProps:E,rtl:V,extra:Wt},at))),F&&H>i&&d.createElement(lH,{ref:qe,prefixCls:r,scrollOffset:G,scrollRange:H,rtl:V,onScroll:We,onStartMove:pe,onStopMove:Oe,spinSize:Ue,containerSize:He.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),F&&g>He.width&&d.createElement(lH,{ref:Fe,prefixCls:r,scrollOffset:ce,scrollRange:g,rtl:V,onScroll:We,onStartMove:pe,onStopMove:Oe,spinSize:Ke,containerSize:He.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var B$=d.forwardRef(i6e);B$.displayName="List";function a6e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var s6e=["disabled","title","children","style","className"];function uH(e){return typeof e=="string"||typeof e=="number"}var l6e=function(t,n){var r=BA(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,h=r.onPopupScroll,p=d.useContext(zA),m=p.maxCount,g=p.flattenOptions,v=p.onActiveValue,b=p.defaultActiveFirstOption,y=p.onSelect,S=p.menuItemSelectedIcon,w=p.rawValues,E=p.fieldNames,C=p.virtual,x=p.direction,_=p.listHeight,P=p.listItemHeight,O=p.optionRender,I="".concat(o,"-item"),M=ed(function(){return g},[a,g],function(ce,oe){return oe[0]&&ce[1]!==oe[1]}),T=d.useRef(null),D=d.useMemo(function(){return s&&t6(m)&&(w==null?void 0:w.size)>=m},[s,m,w==null?void 0:w.size]),A=function(oe){oe.preventDefault()},j=function(oe){var se;(se=T.current)===null||se===void 0||se.scrollTo(typeof oe=="number"?{index:oe}:oe)},k=d.useCallback(function(ce){return l==="combobox"?!1:w.has(ce)},[l,Ze(w).toString(),w.size]),F=function(oe){for(var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,fe=M.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;L(oe);var fe={source:se?"keyboard":"mouse"},te=M[oe];if(!te){v(null,-1,fe);return}v(te.value,oe,fe)};d.useEffect(function(){Q(b!==!1?F(0):-1)},[M.length,c]);var ee=d.useCallback(function(ce){return l==="combobox"?String(ce).toLowerCase()===c.toLowerCase():w.has(ce)},[l,c,Ze(w).toString(),w.size]);d.useEffect(function(){var ce=setTimeout(function(){if(!s&&a&&w.size===1){var se=Array.from(w)[0],fe=M.findIndex(function(te){var he=te.data;return he.value===se});fe!==-1&&(Q(fe),j(fe))}});if(a){var oe;(oe=T.current)===null||oe===void 0||oe.scrollTo(void 0)}return function(){return clearTimeout(ce)}},[a,c]);var re=function(oe){oe!==void 0&&y(oe,{selected:!w.has(oe)}),s||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(oe){var se=oe.which,fe=oe.ctrlKey;switch(se){case ut.N:case ut.P:case ut.UP:case ut.DOWN:{var te=0;if(se===ut.UP?te=-1:se===ut.DOWN?te=1:a6e()&&fe&&(se===ut.N?te=1:se===ut.P&&(te=-1)),te!==0){var he=F(K+te,te);j(he),Q(he,!0)}break}case ut.TAB:case ut.ENTER:{var pe,Oe=M[K];Oe&&!(Oe!=null&&(pe=Oe.data)!==null&&pe!==void 0&&pe.disabled)&&!D?re(Oe.value):re(void 0),a&&oe.preventDefault();break}case ut.ESC:u(!1),a&&oe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(oe){j(oe)}}}),M.length===0)return d.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:A},f);var ie=Object.keys(E).map(function(ce){return E[ce]}),G=function(oe){return oe.label};function X(ce,oe){var se=ce.group;return{role:se?"presentation":"option",id:"".concat(i,"_list_").concat(oe)}}var ne=function(oe){var se=M[oe];if(!se)return null;var fe=se.data||{},te=fe.value,he=se.group,pe=Jr(fe,!0),Oe=G(se);return se?d.createElement("div",Ge({"aria-label":typeof Oe=="string"&&!he?Oe:null},pe,{key:oe},X(se,oe),{"aria-selected":ee(te)}),te):null},le={role:"listbox",id:"".concat(i,"_list")};return d.createElement(d.Fragment,null,C&&d.createElement("div",Ge({},le,{style:{height:0,width:0,overflow:"hidden"}}),ne(K-1),ne(K),ne(K+1)),d.createElement(B$,{itemKey:"key",ref:T,data:M,height:_,itemHeight:P,fullHeight:!1,onMouseDown:A,onScroll:h,virtual:C,direction:x,innerProps:C?null:le},function(ce,oe){var se=ce.group,fe=ce.groupOption,te=ce.data,he=ce.label,pe=ce.value,Oe=te.key;if(se){var Me,Se=(Me=te.title)!==null&&Me!==void 0?Me:uH(he)?he.toString():void 0;return d.createElement("div",{className:xe(I,"".concat(I,"-group"),te.className),title:Se},he!==void 0?he:Oe)}var ye=te.disabled,ve=te.title;te.children;var be=te.style,Pe=te.className,Ne=At(te,s6e),U=Yn(Ne,ie),H=k(pe),q=ye||!H&&D,me="".concat(I,"-option"),Ce=xe(I,me,Pe,Z(Z(Z(Z({},"".concat(me,"-grouped"),fe),"".concat(me,"-active"),K===oe&&!q),"".concat(me,"-disabled"),q),"".concat(me,"-selected"),H)),ue=G(ce),Le=!S||typeof S=="function"||H,He=typeof ue=="number"?ue:ue||pe,ge=uH(He)?He.toString():void 0;return ve!==void 0&&(ge=ve),d.createElement("div",Ge({},Jr(U),C?{}:X(ce,oe),{"aria-selected":ee(pe),className:Ce,title:ge,onMouseMove:function(){K===oe||q||Q(oe)},onClick:function(){q||re(pe)},style:be}),d.createElement("div",{className:"".concat(me,"-content")},typeof O=="function"?O(ce,{index:oe}):He),d.isValidElement(S)||H,Le&&d.createElement(L$,{className:"".concat(I,"-option-state"),customizeIcon:S,customizeIconProps:{value:pe,disabled:q,isSelected:H}},H?"✓":null))}))},c6e=d.forwardRef(l6e);const u6e=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var h;return z(z({},f),{},{label:(h=a.get(f.value))===null||h===void 0?void 0:h.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=d.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function qT(e,t){return Gre(e).join("").toUpperCase().includes(t)}const d6e=function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(p,m){return o?qT(m[o],u):m[i]?qT(m[a!=="children"?a:"label"],u):qT(m[s],u)},h=c?function(p){return n6(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var m=f(n,h(p));if(m)l.push(p);else{var g=p[i].filter(function(v){return f(n,h(v))});g.length&&l.push(z(z({},p),{},Z({},i,g)))}return}f(n,h(p))&&l.push(p)}),l},[e,r,o,n,t])};var dH=0,f6e=Ca();function h6e(){var e;return f6e?(e=dH,dH+=1):e="TEST_OR_SSR",e}function VA(e){var t=d.useState(),n=$e(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(h6e()))},[]),e||r}var p6e=["children","value"],m6e=["children"];function g6e(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=At(r,p6e);return z({key:n,value:i!==void 0?i:n,children:o},a)}function Zre(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ai(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=At(s,m6e);return t||!i?g6e(n):z(z({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:Zre(l)})}).filter(function(n){return n})}var v6e=function(t,n,r,o,i){return d.useMemo(function(){var a=t,s=!t;s&&(a=Zre(n));var l=new Map,c=new Map,u=function(p,m,g){g&&typeof g=="string"&&p.set(m[g],m)},f=function h(p){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?je(vt.options):vt.options}):vt})},He=d.useMemo(function(){return y?Le(ue):ue},[ue,y,le]),ge=d.useMemo(function(){return L3e(He,{fieldNames:G,childrenAsData:re})},[He,G,re]),De=function(Xe){var pt=he(Xe);if(Se(pt),W&&(pt.length!==Pe.length||pt.some(function(Et,ft){var dt;return((dt=Pe[ft])===null||dt===void 0?void 0:dt.value)!==(Et==null?void 0:Et.value)}))){var vt=V?pt:pt.map(function(Et){return Et.value}),Mt=pt.map(function(Et){return n6(Ne(Et.value))});W(ee?vt:vt[0],ee?Mt:Mt[0])}},qe=d.useState(null),Fe=$e(qe,2),Ke=Fe[0],Ue=Fe[1],Ve=d.useState(0),Tt=$e(Ve,2),et=Tt[0],st=Tt[1],yt=_!==void 0?_:r!=="combobox",gt=d.useCallback(function(je,Xe){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vt=pt.source,Mt=vt===void 0?"keyboard":vt;st(Xe),a&&r==="combobox"&&je!==null&&Mt==="keyboard"&&Ue(String(je))},[a,r]),Lt=function(Xe,pt,vt){var Mt=function(){var xt,bt=Ne(Xe);return[V?{label:bt==null?void 0:bt[G.label],value:Xe,key:(xt=bt==null?void 0:bt.key)!==null&&xt!==void 0?xt:Xe}:Xe,n6(bt)]};if(pt&&p){var Et=Mt(),ft=$e(Et,2),dt=ft[0],Rt=ft[1];p(dt,Rt)}else if(!pt&&m&&vt!=="clear"){var Ct=Mt(),Wt=$e(Ct,2),at=Wt[0],$t=Wt[1];m(at,$t)}},St=fH(function(je,Xe){var pt,vt=ee?Xe.selected:!0;vt?pt=ee?[].concat(Ze(Pe),[je]):[je]:pt=Pe.filter(function(Mt){return Mt.value!==je}),De(pt),Lt(je,vt),r==="combobox"?Ue(""):(!r6||h)&&(ce(""),Ue(""))}),wt=function(Xe,pt){De(Xe);var vt=pt.type,Mt=pt.values;(vt==="remove"||vt==="clear")&&Mt.forEach(function(Et){Lt(Et.value,!1,vt)})},Nt=function(Xe,pt){if(ce(Xe),Ue(null),pt.source==="submit"){var vt=(Xe||"").trim();if(vt){var Mt=Array.from(new Set([].concat(Ze(H),[vt])));De(Mt),Lt(vt,!0),ce("")}return}pt.source!=="blur"&&(r==="combobox"&&De(Xe),u==null||u(Xe))},Be=function(Xe){var pt=Xe;r!=="tags"&&(pt=Xe.map(function(Mt){var Et=fe.get(Mt);return Et==null?void 0:Et.value}).filter(function(Mt){return Mt!==void 0}));var vt=Array.from(new Set([].concat(Ze(H),Ze(pt))));De(vt),vt.forEach(function(Mt){Lt(Mt,!0)})},We=d.useMemo(function(){var je=O!==!1&&v!==!1;return z(z({},oe),{},{flattenOptions:ge,onActiveValue:gt,defaultActiveFirstOption:yt,onSelect:St,menuItemSelectedIcon:P,rawValues:H,fieldNames:G,virtual:je,direction:I,listHeight:T,listItemHeight:A,childrenAsData:re,maxCount:K,optionRender:C})},[K,oe,ge,gt,yt,St,P,H,G,O,v,I,T,A,re,C]);return d.createElement(zA.Provider,{value:We},d.createElement(HA,Ge({},L,{id:Q,prefixCls:i,ref:t,omitDomProps:b6e,mode:r,displayValues:U,onDisplayValuesChange:wt,direction:I,searchValue:le,onSearch:Nt,autoClearSearchValue:h,onSearchSplit:Be,dropdownMatchSelectWidth:v,OptionList:c6e,emptyOptions:!ge.length,activeValue:Ke,activeDescendantId:"".concat(Q,"_list_").concat(et)})))}),KA=C6e;KA.Option=WA;KA.OptGroup=UA;function ac(e,t,n){return xe({[`${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 md=(e,t)=>t||e,w6e=()=>{const[,e]=Ho(),[t]=zi("Empty"),r=new Un(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.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"}),d.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)"}),d.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"}),d.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"})),d.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"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},x6e=()=>{const[,e]=Ho(),[t]=zi("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new Un(n).onBackground(i).toHexString(),shadowColor:new Un(r).onBackground(i).toHexString(),contentColor:new Un(o).onBackground(i).toHexString()}),[n,r,o,i]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:a},d.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"}),d.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}))))},E6e=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},_6e=Kn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=kn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[E6e(o)]});var $6e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l;const{className:c,rootClassName:u,prefixCls:f,image:h=eoe,description:p,children:m,imageStyle:g,style:v,classNames:b,styles:y}=e,S=$6e(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:w,direction:E,empty:C}=d.useContext(Yt),x=w("empty",f),[_,P,O]=_6e(x),[I]=zi("Empty"),M=typeof p<"u"?p:I==null?void 0:I.description,T=typeof M=="string"?M:"empty";let D=null;return typeof h=="string"?D=d.createElement("img",{alt:T,src:h}):D=h,_(d.createElement("div",Object.assign({className:xe(P,O,x,C==null?void 0:C.className,{[`${x}-normal`]:h===toe,[`${x}-rtl`]:E==="rtl"},c,u,(t=C==null?void 0:C.classNames)===null||t===void 0?void 0:t.root,b==null?void 0:b.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=C==null?void 0:C.styles)===null||n===void 0?void 0:n.root),C==null?void 0:C.style),y==null?void 0:y.root),v)},S),d.createElement("div",{className:xe(`${x}-image`,(r=C==null?void 0:C.classNames)===null||r===void 0?void 0:r.image,b==null?void 0:b.image),style:Object.assign(Object.assign(Object.assign({},g),(o=C==null?void 0:C.styles)===null||o===void 0?void 0:o.image),y==null?void 0:y.image)},D),M&&d.createElement("div",{className:xe(`${x}-description`,(i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.description,b==null?void 0:b.description),style:Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.description),y==null?void 0:y.description)},M),m&&d.createElement("div",{className:xe(`${x}-footer`,(s=C==null?void 0:C.classNames)===null||s===void 0?void 0:s.footer,b==null?void 0:b.footer),style:Object.assign(Object.assign({},(l=C==null?void 0:C.styles)===null||l===void 0?void 0:l.footer),y==null?void 0:y.footer)},m)))};Nc.PRESENTED_IMAGE_DEFAULT=eoe;Nc.PRESENTED_IMAGE_SIMPLE=toe;const X1=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(Yt),r=n("empty");switch(t){case"Table":case"List":return de.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return de.createElement(Nc,null)}},gd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=d.useContext(Yt),s=d.useContext(yre),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=YPe.includes(c);return[c,u]},P6e=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 qA(e,t){return e||P6e(t)}const hH=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},O6e=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${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({},Qn(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,[` ${o}${s}bottomLeft, ${i}${s}bottomLeft `]:{animationName:_$},[` @@ -275,34 +275,34 @@ html body { `]:{animationName:P$},[`${a}${s}bottomLeft`]:{animationName:$$},[` ${a}${s}topLeft, ${a}${s}topRight - `]:{animationName:O$},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},mH(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"},wa),"&-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({},mH(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down")]},roe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:_e(t),itemLineHeight:_e(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},T6e=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},ooe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,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 ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Fp()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},R6e=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=T6e(e),s=t?`${n}-${t}`:"",l=roe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},ooe(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:`${_e(r)} 0`,lineHeight:_e(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:_e(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:_e(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item, + `]:{animationName:O$},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},hH(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"},wa),"&-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({},hH(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down")]},noe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:_e(t),itemLineHeight:_e(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},M6e=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},roe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,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 ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Fp()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},T6e=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=M6e(e),s=t?`${n}-${t}`:"",l=noe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},roe(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:`${_e(r)} 0`,lineHeight:_e(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:_e(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:_e(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item, ${n}-prefix + ${n}-selection-wrap `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-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:i,fontFamily:e.fontFamily,lineHeight:_e(i),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 GT(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${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[R6e(e,t),o]}const I6e=e=>{const{componentCls:t}=e,n=kn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=kn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[GT(e),GT(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},GT(r,"lg")]};function YT(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=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({},Qn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[T6e(e,t),o]}const R6e=e=>{const{componentCls:t}=e,n=kn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=kn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[GT(e),GT(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},GT(r,"lg")]};function YT(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=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({},Qn(e,!0)),{display:"flex",borderRadius:o,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:_e(i),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 ${_e(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:_e(i)}}},[`&${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 ${_e(r)}`,"&:after":{display:"none"}}}}}}}function k6e(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[YT(e),YT(kn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${_e(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{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 ${_e(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:_e(i)}}},[`&${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 ${_e(r)}`,"&:after":{display:"none"}}}}}}}function I6e(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[YT(e),YT(kn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${_e(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()}}}},YT(kn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const N6e=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:S,controlOutline:w}=e,E=s*2,C=r*2,x=Math.min(o-E,o-C),_=Math.min(i-E,i-C),P=Math.min(a-E,a-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:_,multipleItemHeightLG:P,multipleSelectorBgDisabled:v,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:S,activeOutlineColor:w,selectAffixPadding:s}},ioe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${_e(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 ${_e(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},gH=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ioe(e,t))}),A6e=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ioe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),gH(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),gH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),aoe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${_e(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}}}},vH=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},aoe(e,t))}),D6e=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},aoe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),vH(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),vH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),j6e=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${_e(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:`${_e(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}}}}),F6e=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},A6e(e)),D6e(e)),j6e(e))}),L6e=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"}}}},B6e=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"}}}},z6e=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},L6e(e)),B6e(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},wa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},wa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Fp()),{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`,[o]:{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()}}}}}},H6e=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},z6e(e),k6e(e),I6e(e),M6e(e),{[`${t}-rtl`]:{direction:"rtl"}},Bp(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},XA=Kn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=kn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[H6e(r),F6e(r)]},N6e,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var U6e={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"},W6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:U6e}))},gf=d.forwardRef(W6e),V6e={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"},K6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:V6e}))},z$=d.forwardRef(K6e),q6e={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"},G6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:q6e}))},H$=d.forwardRef(G6e);function U$(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:h}=e;const p=n??d.createElement(ou,null),m=y=>t===null&&!s&&!f?null:d.createElement(d.Fragment,null,c!==!1&&y,s&&u);let g=null;if(t!==void 0)g=m(t);else if(i)g=m(d.createElement(Gc,{spin:!0}));else{const y=`${l}-suffix`;g=S=>{let{open:w,showSearch:E}=S;return m(w&&E?d.createElement(H$,{className:y}):d.createElement(z$,{className:y}))}}let v=null;r!==void 0?v=r:a?v=d.createElement(gf,null):v=null;let b=null;return o!==void 0?b=o:b=d.createElement(iu,null),{clearIcon:p,suffixIcon:g,itemIcon:v,removeIcon:b}}function QA(e,t){return t!==void 0?t:e!==null}var Y6e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:h,size:p,disabled:m,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:w,style:E,allowClear:C,variant:x,dropdownStyle:_,transitionName:P,tagRender:O,maxCount:I,prefix:M}=e,T=Y6e(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:D,getPrefixCls:A,renderEmpty:j,direction:k,virtual:F,popupMatchSelectWidth:V,popupOverflow:W,select:K}=d.useContext(Yt),[,L]=Ho(),Q=h??(L==null?void 0:L.controlHeight),ee=A("select",r),re=A(),ie=w??k,{compactSize:G,compactItemClassnames:X}=gc(ee,ie),[ne,le]=gd("select",x,o),ce=Mr(ee),[oe,se,fe]=XA(ee,ce),te=d.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===soe?"combobox":Ke},[e.mode]),he=te==="multiple"||te==="tags",pe=QA(e.suffixIcon,e.showArrow),Oe=(n=S??y)!==null&&n!==void 0?n:V,{status:Me,hasFeedback:Se,isFormItemInput:ye,feedbackIcon:ve}=d.useContext(Io),be=md(Me,v);let Pe;g!==void 0?Pe=g:te==="combobox"?Pe=null:Pe=(j==null?void 0:j("Select"))||d.createElement(Y1,{componentName:"Select"});const{suffixIcon:Ne,itemIcon:U,removeIcon:H,clearIcon:q}=U$(Object.assign(Object.assign({},T),{multiple:he,hasFeedback:Se,feedbackIcon:ve,showSuffixIcon:pe,prefixCls:ee,componentName:"Select"})),me=C===!0?{clearIcon:q}:C,Ce=Yn(T,["suffixIcon","itemIcon"]),ue=xe(l||c,{[`${ee}-dropdown-${ie}`]:ie==="rtl"},a,fe,ce,se),Le=Eo(Ke=>{var Ue;return(Ue=p??G)!==null&&Ue!==void 0?Ue:Ke}),He=d.useContext(zo),ge=m??He,De=xe({[`${ee}-lg`]:Le==="large",[`${ee}-sm`]:Le==="small",[`${ee}-rtl`]:ie==="rtl",[`${ee}-${ne}`]:le,[`${ee}-in-form-item`]:ye},ac(ee,be,Se),X,K==null?void 0:K.className,i,a,fe,ce,se),qe=d.useMemo(()=>f!==void 0?f:ie==="rtl"?"bottomRight":"bottomLeft",[f,ie]),[je]=vl("SelectLike",_==null?void 0:_.zIndex);return oe(d.createElement(GA,Object.assign({ref:t,virtual:F,showSearch:K==null?void 0:K.showSearch},Ce,{style:Object.assign(Object.assign({},K==null?void 0:K.style),E),dropdownMatchSelectWidth:Oe,transitionName:Mi(re,"slide-up",P),builtinPlacements:YA(b,W),listHeight:u,listItemHeight:Q,mode:te,prefixCls:ee,placement:qe,direction:ie,prefix:M,suffixIcon:Ne,menuItemSelectedIcon:U,removeIcon:H,allowClear:me,notFoundContent:Pe,className:De,getPopupContainer:s||D,dropdownClassName:ue,disabled:ge,dropdownStyle:Object.assign(Object.assign({},_),{zIndex:je}),maxCount:he?I:void 0,tagRender:he?O:void 0})))},Va=d.forwardRef(X6e),Q6e=jf(Va,"dropdownAlign");Va.SECRET_COMBOBOX_MODE_DO_NOT_USE=soe;Va.Option=KA;Va.OptGroup=VA;Va._InternalPanelDoNotUseOrYouWillBeFired=Q6e;const $f=["xxl","xl","lg","md","sm","xs"],J6e=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)`}),Z6e=e=>{const t=e,n=[].concat($f).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const coe=(e,t)=>{if(t&&typeof t=="object")for(let n=0;n<$f.length;n++){const r=$f[n];if(e[r]&&t[r]!==void 0)return t[r]}};function JA(){const[,e]=d.useReducer(t=>t+1,0);return e}function W$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=JA(),r=loe();return Zn(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const i6=d.createContext({}),e8e=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:h,borderRadiusLG:p,borderRadiusSM:m,lineWidth:g,lineType:v}=e,b=(y,S,w)=>({width:y,height:y,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`&${n}-icon`]:{fontSize:S,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${_e(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,h)),{"&-lg":Object.assign({},b(s,u,p)),"&-sm":Object.assign({},b(l,f,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},t8e=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},n8e=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},uoe=Kn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=kn(e,{avatarBg:n,avatarColor:t});return[e8e(r),t8e(r)]},n8e);var r8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const[n,r]=d.useState(1),[o,i]=d.useState(!1),[a,s]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=Si(t,l),{getPrefixCls:f,avatar:h}=d.useContext(Yt),p=d.useContext(i6),m=()=>{if(!c.current||!l.current)return;const X=c.current.offsetWidth,ne=l.current.offsetWidth;if(X!==0&&ne!==0){const{gap:le=4}=e;le*2{i(!0)},[]),d.useEffect(()=>{s(!0),r(1)},[e.src]),d.useEffect(m,[e.gap]);const g=()=>{const{onError:X}=e;(X==null?void 0:X())!==!1&&s(!1)},{prefixCls:v,shape:b,size:y,src:S,srcSet:w,icon:E,className:C,rootClassName:x,alt:_,draggable:P,children:O,crossOrigin:I}=e,M=r8e(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),T=Eo(X=>{var ne,le;return(le=(ne=y??(p==null?void 0:p.size))!==null&&ne!==void 0?ne:X)!==null&&le!==void 0?le:"default"}),D=Object.keys(typeof T=="object"?T||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),A=W$(D),j=d.useMemo(()=>{if(typeof T!="object")return{};const X=$f.find(le=>A[le]),ne=T[X];return ne?{width:ne,height:ne,fontSize:ne&&(E||O)?ne/2:18}:{}},[A,T]),k=f("avatar",v),F=Mr(k),[V,W,K]=uoe(k,F),L=xe({[`${k}-lg`]:T==="large",[`${k}-sm`]:T==="small"}),Q=d.isValidElement(S),ee=b||(p==null?void 0:p.shape)||"circle",re=xe(k,L,h==null?void 0:h.className,`${k}-${ee}`,{[`${k}-image`]:Q||S&&a,[`${k}-icon`]:!!E},K,F,C,x,W),ie=typeof T=="number"?{width:T,height:T,fontSize:E?T/2:18}:{};let G;if(typeof S=="string"&&a)G=d.createElement("img",{src:S,draggable:P,srcSet:w,onError:g,alt:_,crossOrigin:I});else if(Q)G=S;else if(E)G=E;else if(o||n!==1){const X=`scale(${n})`,ne={msTransform:X,WebkitTransform:X,transform:X};G=d.createElement(Oi,{onResize:m},d.createElement("span",{className:`${k}-string`,ref:c,style:Object.assign({},ne)},O))}else G=d.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:c},O);return delete M.onError,delete M.gap,V(d.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),j),h==null?void 0:h.style),M.style),className:re,ref:u}),G))},doe=d.forwardRef(o8e),Kg=e=>e?typeof e=="function"?e():e:null;function ZA(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return d.createElement("div",{className:xe("".concat(n,"-content"),a),style:s},d.createElement("div",{className:xe("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var fm={shiftX:64,adjustY:1},hm={adjustX:1,shiftY:!0},Fs=[0,0],i8e={left:{points:["cr","cl"],overflow:hm,offset:[-4,0],targetOffset:Fs},right:{points:["cl","cr"],overflow:hm,offset:[4,0],targetOffset:Fs},top:{points:["bc","tc"],overflow:fm,offset:[0,-4],targetOffset:Fs},bottom:{points:["tc","bc"],overflow:fm,offset:[0,4],targetOffset:Fs},topLeft:{points:["bl","tl"],overflow:fm,offset:[0,-4],targetOffset:Fs},leftTop:{points:["tr","tl"],overflow:hm,offset:[-4,0],targetOffset:Fs},topRight:{points:["br","tr"],overflow:fm,offset:[0,-4],targetOffset:Fs},rightTop:{points:["tl","tr"],overflow:hm,offset:[4,0],targetOffset:Fs},bottomRight:{points:["tr","br"],overflow:fm,offset:[0,4],targetOffset:Fs},rightBottom:{points:["bl","br"],overflow:hm,offset:[4,0],targetOffset:Fs},bottomLeft:{points:["tl","bl"],overflow:fm,offset:[0,4],targetOffset:Fs},leftBottom:{points:["br","bl"],overflow:hm,offset:[-4,0],targetOffset:Fs}},a8e=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],s8e=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,p=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,b=t.animation,y=t.motion,S=t.placement,w=S===void 0?"right":S,E=t.align,C=E===void 0?{}:E,x=t.destroyTooltipOnHide,_=x===void 0?!1:x,P=t.defaultVisible,O=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,T=t.id,D=t.showArrow,A=D===void 0?!0:D,j=t.classNames,k=t.styles,F=At(t,a8e),V=d.useRef(null);d.useImperativeHandle(n,function(){return V.current});var W=z({},F);"visible"in t&&(W.popupVisible=t.visible);var K=function(){return d.createElement(ZA,{key:"content",prefixCls:h,id:T,bodyClassName:j==null?void 0:j.body,overlayInnerStyle:z(z({},I),k==null?void 0:k.body)},M)};return d.createElement(G1,Ge({popupClassName:xe(r,j==null?void 0:j.root),prefixCls:h,popup:K,action:i,builtinPlacements:i8e,popupPlacement:w,ref:V,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:b,popupMotion:y,defaultPopupVisible:P,autoDestroy:_,mouseLeaveDelay:c,popupStyle:z(z({},u),k==null?void 0:k.root),mouseEnterDelay:s,arrow:A},W),p)};const l8e=d.forwardRef(s8e);function V$(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,h=u,p=2*o-s,m=l,g=2*o-i,v=a,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,w=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${p} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:b,arrowPath:w,arrowPolygon:S}}const foe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,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:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${_e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},hoe=8;function K$(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?hoe:r}}function BC(e,t){return e?t:{}}function eD(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,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"},foe(e,t,o)),{"&:before":{background:t}})]},BC(!!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% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),BC(!!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% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),BC(!!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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),BC(!!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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function c8e(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const yH={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"]}},u8e={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"]}},d8e=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function poe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(yH).forEach(c=>{const u=r&&u8e[c]||yH[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,d8e.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const h=K$({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-s;break}f.overflow=c8e(c,h,t,n),a&&(f.htmlRegion="visibleFirst")}),l}const f8e=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:h,sizePopupArrow:p}=e,m=t(a).add(p).add(h).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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":i,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${_e(e.calc(u).div(2).equal())} ${_e(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,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,hoe)}},[`${n}-content`]:{position:"relative"}}),y$(e,(v,b)=>{let{darkColor:y}=b;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},eD(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},h8e=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},K$({contentRadius:e.borderRadius,limitVerticalRadius:!0})),V$(kn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),moe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Kn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=kn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[f8e(s),Mv(r,"zoom-big-fast")]},h8e,{resetStyle:!1,injectStyle:t})(e)},p8e=pp.map(e=>`${e}-inverse`),m8e=["success","processing","error","default","warning"];function q$(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ze(p8e),Ze(pp)).includes(e):pp.includes(e)}function g8e(e){return m8e.includes(e)}function goe(e,t){const n=q$(t),r=xe({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const v8e=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("tooltip",t),[c,u,f]=moe(l),h=goe(l,i),p=h.arrowStyle,m=Object.assign(Object.assign({},a),h.overlayStyle),g=xe(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(d.createElement("div",{className:g,style:p},d.createElement("div",{className:`${l}-arrow`}),d.createElement(ZA,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),o)))};var y8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:h,children:p,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:b=!0,title:y,overlay:S,builtinPlacements:w,arrowPointAtCenter:E=!1,autoAdjustOverflow:C=!0}=e,x=!!b,[,_]=Ho(),{getPopupContainer:P,getPrefixCls:O,direction:I,tooltip:M}=d.useContext(Yt),T=ru(),D=d.useRef(null),A=()=>{var Ce;(Ce=D.current)===null||Ce===void 0||Ce.forceAlign()};d.useImperativeHandle(t,()=>{var Ce;return{forceAlign:A,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:(Ce=D.current)===null||Ce===void 0?void 0:Ce.nativeElement}});const[j,k]=xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!y&&!S&&y!==0,V=Ce=>{var ue,Le;k(F?!1:Ce),F||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,Ce),(Le=e.onVisibleChange)===null||Le===void 0||Le.call(e,Ce))},W=d.useMemo(()=>{var Ce,ue;let Le=E;return typeof b=="object"&&(Le=(ue=(Ce=b.pointAtCenter)!==null&&Ce!==void 0?Ce:b.arrowPointAtCenter)!==null&&ue!==void 0?ue:E),w||poe({arrowPointAtCenter:Le,autoAdjustOverflow:C,arrowWidth:x?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})},[E,b,w,_]),K=d.useMemo(()=>y===0?y:S||y||"",[S,y]),L=d.createElement(ic,{space:!0},typeof K=="function"?K():K),{getPopupContainer:Q,placement:ee="top",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:G,rootClassName:X,overlayClassName:ne,styles:le,classNames:ce}=e,oe=y8e(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),se=O("tooltip",l),fe=O(),te=e["data-popover-inject"];let he=j;!("open"in e)&&!("visible"in e)&&F&&(he=!1);const pe=d.isValidElement(p)&&!Tne(p)?p:d.createElement("span",null,p),Oe=pe.props,Me=!Oe.className||typeof Oe.className=="string"?xe(Oe.className,c||`${se}-open`):Oe.className,[Se,ye,ve]=moe(se,!te),be=goe(se,f),Pe=be.arrowStyle,Ne=xe(ne,{[`${se}-rtl`]:I==="rtl"},be.className,X,ye,ve,M==null?void 0:M.className,(o=M==null?void 0:M.classNames)===null||o===void 0?void 0:o.root,ce==null?void 0:ce.root),U=xe((i=M==null?void 0:M.classNames)===null||i===void 0?void 0:i.body,ce==null?void 0:ce.body),[H,q]=vl("Tooltip",oe.zIndex),me=d.createElement(l8e,Object.assign({},oe,{zIndex:H,showArrow:x,placement:ee,mouseEnterDelay:re,mouseLeaveDelay:ie,prefixCls:se,classNames:{root:Ne,body:U},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pe),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),M==null?void 0:M.style),G),le==null?void 0:le.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=M==null?void 0:M.styles)===null||s===void 0?void 0:s.body),h),le==null?void 0:le.body),be.overlayStyle)},getTooltipContainer:Q||u||P,ref:D,builtinPlacements:W,overlay:L,visible:he,onVisibleChange:V,afterVisibleChange:m??g,arrowContent:d.createElement("span",{className:`${se}-arrow-content`}),motion:{motionName:Mi(fe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),he?Zo(pe,{className:Me}):pe);return Se(d.createElement(L1.Provider,{value:q},me))}),xa=b8e;xa._InternalPanelDoNotUseOrYouWillBeFired=v8e;const S8e=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:h,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Qn(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":f,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:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},eD(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},C8e=e=>{const{componentCls:t}=e;return{[t]:pp.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},w8e=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,h=n-r,p=h/2,m=h/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},V$(e)),K$({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${g}px`:0})},voe=Kn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=kn(e,{popoverBg:t,popoverColor:n});return[S8e(r),C8e(r),Mv(r,"zoom-big")]},w8e,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var x8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},E8e=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=Kg(a),u=Kg(s),f=xe(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return d.createElement("div",{className:f,style:o},d.createElement("div",{className:`${n}-arrow`}),d.createElement(ZA,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(yoe,{prefixCls:n,title:c,content:u})))},boe=e=>{const{prefixCls:t,className:n}=e,r=x8e(e,["prefixCls","className"]),{getPrefixCls:o}=d.useContext(Yt),i=o("popover",t),[a,s,l]=voe(i);return a(d.createElement(E8e,Object.assign({},r,{prefixCls:i,hashId:s,className:xe(n,l)})))};var _8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:h="top",trigger:p="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:b,overlayStyle:y={},styles:S,classNames:w}=e,E=_8e(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:C,getPrefixCls:x}=d.useContext(Yt),_=x("popover",l),[P,O,I]=voe(_),M=x(),T=xe(f,O,I,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.root,w==null?void 0:w.root),D=xe((r=C==null?void 0:C.classNames)===null||r===void 0?void 0:r.body,w==null?void 0:w.body),[A,j]=xn(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),k=(L,Q)=>{j(L,!0),b==null||b(L,Q)},F=L=>{L.keyCode===ut.ESC&&k(!1,L)},V=L=>{k(L)},W=Kg(c),K=Kg(u);return P(d.createElement(xa,Object.assign({placement:h,trigger:p,mouseEnterDelay:g,mouseLeaveDelay:v},E,{prefixCls:_,classNames:{root:T,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.root),C==null?void 0:C.style),y),S==null?void 0:S.root),body:Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.body),S==null?void 0:S.body)},ref:t,open:A,onOpenChange:V,overlay:W||K?d.createElement(yoe,{prefixCls:_,title:W,content:K}):null,transitionName:Mi(M,"zoom-big",E.transitionName),"data-popover-inject":!0}),Zo(m,{onKeyDown:L=>{var Q,ee;d.isValidElement(m)&&((ee=m==null?void 0:(Q=m.props).onKeyDown)===null||ee===void 0||ee.call(Q,L)),F(L)}})))}),fl=$8e;fl._InternalPanelDoNotUseOrYouWillBeFired=boe;const bH=e=>{const{size:t,shape:n}=d.useContext(i6),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(i6.Provider,{value:r},e.children)},P8e=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=d.useContext(Yt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:h,size:p,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:b,max:y}=e,S=i("avatar",s),w=`${S}-group`,E=Mr(S),[C,x,_]=uoe(S,E),P=xe(w,{[`${w}-rtl`]:a==="rtl"},_,E,l,c,x),O=ai(b).map((T,D)=>Zo(T,{key:`avatar-key-${D}`})),I=(y==null?void 0:y.count)||f,M=O.length;if(I&&I{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:h,calc:p}=e,m=`${r}-scroll-number`,g=y$(e,(v,b)=>{let{darkColor:y}=b;return{[`&${t} ${t}-color-${v}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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:i,lineHeight:_e(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:_e(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${_e(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 ${_e(o)} ${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:k8e,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:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:O8e,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}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:M8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:T8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:R8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:I8e,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%)"}}})}},Soe=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return kn(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Coe=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},A8e=Kn("Badge",e=>{const t=Soe(e);return N8e(t)},Coe),D8e=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=y$(e,(c,u)=>{let{darkColor:f}=u;return{[`&${a}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"absolute",top:r,padding:`0 ${_e(e.paddingXS)}`,color:e.colorPrimary,lineHeight:_e(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${_e(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},j8e=Kn(["Badge","Ribbon"],e=>{const t=Soe(e);return D8e(t)},Coe),F8e=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Yt),f=c("ribbon",n),h=`${f}-wrapper`,[p,m,g]=j8e(f,h),v=q$(o,!1),b=xe(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:v},t),y={},S={};return o&&!v&&(y.background=o,S.color=o),p(d.createElement("div",{className:xe(h,l,m,g)},i,d.createElement("div",{className:xe(b,m),style:Object.assign(Object.assign({},y),r)},d.createElement("span",{className:`${f}-text`},a),d.createElement("div",{className:`${f}-corner`,style:S}))))},SH=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),d.createElement("span",{style:i,className:xe(`${t}-only-unit`,{current:r})},n)};function L8e(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const B8e=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=d.useState(o),[l,c]=d.useState(i),u=()=>{s(o),c(i)};d.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[o]);let f,h;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[d.createElement(SH,Object.assign({},e,{key:o,current:!0}))],h={transition:"none"};else{f=[];const p=o+10,m=[];for(let y=o;y<=p;y+=1)m.push(y);const g=ly%10===a);f=(g<0?m.slice(0,v+1):m.slice(v)).map((y,S)=>{const w=y%10;return d.createElement(SH,Object.assign({},e,{key:y,value:w,offset:g<0?S-v:S,current:S===v}))}),h={transform:`translateY(${-L8e(a,o,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:u},f)};var z8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,f=z8e(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=d.useContext(Yt),p=h("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":l,style:a,className:xe(p,o,i),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=d.createElement("bdi",null,v.map((b,y)=>d.createElement(B8e,{prefixCls:p,count:Number(r),value:b,key:v.length-y})))}return a!=null&&a.borderColor&&(m.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Zo(u,v=>({className:xe(`${p}-custom-component`,v==null?void 0:v.className,i)})):d.createElement(c,Object.assign({},m,{ref:t}),g)});var U8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:h,count:p=null,overflowCount:m=99,dot:g=!1,size:v="default",title:b,offset:y,style:S,className:w,rootClassName:E,classNames:C,styles:x,showZero:_=!1}=e,P=U8e(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:I,badge:M}=d.useContext(Yt),T=O("badge",s),[D,A,j]=A8e(T),k=p>m?`${m}+`:p,F=k==="0"||k===0,V=p===null||F&&!_,W=(u!=null||h!=null)&&V,K=g&&!F,L=K?"":k,Q=d.useMemo(()=>(L==null||L===""||F&&!_)&&!K,[L,F,_,K]),ee=d.useRef(p);Q||(ee.current=p);const re=ee.current,ie=d.useRef(L);Q||(ie.current=L);const G=ie.current,X=d.useRef(K);Q||(X.current=K);const ne=d.useMemo(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),S);const pe={marginTop:y[1]};return I==="rtl"?pe.left=parseInt(y[0],10):pe.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},pe),M==null?void 0:M.style),S)},[I,y,S,M==null?void 0:M.style]),le=b??(typeof re=="string"||typeof re=="number"?re:void 0),ce=Q||!f?null:d.createElement("span",{className:`${T}-status-text`},f),oe=!re||typeof re!="object"?void 0:Zo(re,pe=>({style:Object.assign(Object.assign({},ne),pe.style)})),se=q$(h,!1),fe=xe(C==null?void 0:C.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${T}-status-dot`]:W,[`${T}-status-${u}`]:!!u,[`${T}-color-${h}`]:se}),te={};h&&!se&&(te.color=h,te.background=h);const he=xe(T,{[`${T}-status`]:W,[`${T}-not-a-wrapper`]:!c,[`${T}-rtl`]:I==="rtl"},w,E,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,C==null?void 0:C.root,A,j);if(!c&&W){const pe=ne.color;return D(d.createElement("span",Object.assign({},P,{className:he,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),ne)}),d.createElement("span",{className:fe,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.indicator),te)}),f&&d.createElement("span",{style:{color:pe},className:`${T}-status-text`},f)))}return D(d.createElement("span",Object.assign({ref:t},P,{className:he,style:Object.assign(Object.assign({},(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.root)}),c,d.createElement(Jo,{visible:!Q,motionName:`${T}-zoom`,motionAppear:!1,motionDeadline:1e3},pe=>{let{className:Oe}=pe;var Me,Se;const ye=O("scroll-number",l),ve=X.current,be=xe(C==null?void 0:C.indicator,(Me=M==null?void 0:M.classNames)===null||Me===void 0?void 0:Me.indicator,{[`${T}-dot`]:ve,[`${T}-count`]:!ve,[`${T}-count-sm`]:v==="small",[`${T}-multiple-words`]:!ve&&G&&G.toString().length>1,[`${T}-status-${u}`]:!!u,[`${T}-color-${h}`]:se});let Pe=Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(Se=M==null?void 0:M.styles)===null||Se===void 0?void 0:Se.indicator),ne);return h&&!se&&(Pe=Pe||{},Pe.background=h),d.createElement(H8e,{prefixCls:ye,show:!Q,motionClassName:Oe,className:be,count:G,title:le,style:Pe,key:"scrollNumber"},oe)}),ce))}),Xi=W8e;Xi.Ribbon=F8e;var V8e=ut.ESC,K8e=ut.TAB;function q8e(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),s=function(){if(t){var f,h;(f=n.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r==null||r(!1)}},l=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case V8e:s();break;case K8e:{var h=!1;a.current||(h=l()),h?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&zn(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var G8e=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Si(t,Af(i));return de.createElement(de.Fragment,null,r&&de.createElement("div",{className:"".concat(o,"-arrow")}),de.cloneElement(i,{ref:tc(i)?a:void 0}))}),pm={adjustX:1,adjustY:1},mm=[0,0],Y8e={topLeft:{points:["bl","tl"],overflow:pm,offset:[0,-4],targetOffset:mm},top:{points:["bc","tc"],overflow:pm,offset:[0,-4],targetOffset:mm},topRight:{points:["br","tr"],overflow:pm,offset:[0,-4],targetOffset:mm},bottomLeft:{points:["tl","bl"],overflow:pm,offset:[0,4],targetOffset:mm},bottom:{points:["tc","bc"],overflow:pm,offset:[0,4],targetOffset:mm},bottomRight:{points:["tr","br"],overflow:pm,offset:[0,4],targetOffset:mm}},X8e=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Q8e(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,h=e.placements,p=h===void 0?Y8e:h,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,w=e.trigger,E=w===void 0?["hover"]:w,C=e.autoFocus,x=e.overlay,_=e.children,P=e.onVisibleChange,O=At(e,X8e),I=de.useState(),M=$e(I,2),T=M[0],D=M[1],A="visible"in e?S:T,j=de.useRef(null),k=de.useRef(null),F=de.useRef(null);de.useImperativeHandle(t,function(){return j.current});var V=function(X){D(X),P==null||P(X)};q8e({visible:A,triggerRef:F,onVisibleChange:V,autoFocus:C,overlayRef:k});var W=function(X){var ne=e.onOverlayClick;D(!1),ne&&ne(X)},K=function(){return de.createElement(G8e,{ref:k,overlay:x,prefixCls:a,arrow:o})},L=function(){return typeof x=="function"?K:K()},Q=function(){var X=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ne},ee=function(){var X=e.openClassName;return X!==void 0?X:"".concat(a,"-open")},re=de.cloneElement(_,{className:xe((n=_.props)===null||n===void 0?void 0:n.className,A&&ee()),ref:tc(_)?Si(F,Af(_)):void 0}),ie=v;return!ie&&E.indexOf("contextMenu")!==-1&&(ie=["click"]),de.createElement(G1,Ge({builtinPlacements:p},O,{prefixCls:a,ref:j,popupClassName:xe(b,Z({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:E,showAction:g,hideAction:ie,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:A,stretch:Q()?"minWidth":"",popup:L(),onPopupVisibleChange:V,onPopupClick:W,getPopupContainer:m}),re)}const woe=de.forwardRef(Q8e),J8e=e=>typeof e!="object"&&typeof e!="function"||e===null;var xoe=d.createContext(null);function Eoe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function _oe(e){var t=d.useContext(xoe);return Eoe(t,e)}var Z8e=["children","locked"],sc=d.createContext(null);function eNe(e,t){var n=z({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function qb(e){var t=e.children,n=e.locked,r=At(e,Z8e),o=d.useContext(sc),i=td(function(){return eNe(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!dl(a[1],s[1],!0))});return d.createElement(sc.Provider,{value:i},t)}var tNe=[],$oe=d.createContext(null);function G$(){return d.useContext($oe)}var Poe=d.createContext(tNe);function Iv(e){var t=d.useContext(Poe);return d.useMemo(function(){return e!==void 0?[].concat(Ze(t),[e]):t},[t,e])}var Ooe=d.createContext(null),tD=d.createContext({});function CH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ov(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function nNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ze(e.querySelectorAll("*")).filter(function(r){return CH(r,t)});return CH(e,t)&&n.unshift(e),n}var a6=ut.LEFT,s6=ut.RIGHT,l6=ut.UP,rx=ut.DOWN,ox=ut.ENTER,Moe=ut.ESC,j0=ut.HOME,F0=ut.END,wH=[l6,rx,a6,s6];function rNe(e,t,n,r){var o,i="prev",a="next",s="children",l="parent";if(e==="inline"&&r===ox)return{inlineTrigger:!0};var c=Z(Z({},l6,i),rx,a),u=Z(Z(Z(Z({},a6,n?a:i),s6,n?i:a),rx,s),ox,s),f=Z(Z(Z(Z(Z(Z({},l6,i),rx,a),ox,s),Moe,l),a6,n?s:l),s6,n?l:s),h={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},p=(o=h["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(p){case i: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 oNe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function iNe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function nD(e,t){var n=nNe(e,!0);return n.filter(function(r){return t.has(r)})}function xH(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=nD(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var c6=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(Eoe(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function aNe(e,t,n,r,o,i,a,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var h=function(){zn.cancel(u.current)};return d.useEffect(function(){return function(){h()}},[]),function(p){var m=p.which;if([].concat(wH,[ox,Moe,j0,F0]).includes(m)){var g=i(),v=c6(g,r),b=v,y=b.elements,S=b.key2element,w=b.element2key,E=S.get(t),C=iNe(E,y),x=w.get(C),_=rNe(e,a(x,!0).length===1,n,m);if(!_&&m!==j0&&m!==F0)return;(wH.includes(m)||[j0,F0].includes(m))&&p.preventDefault();var P=function(k){if(k){var F=k,V=k.querySelector("a");V!=null&&V.getAttribute("href")&&(F=V);var W=w.get(k);s(W),h(),u.current=zn(function(){f.current===W&&F.focus()})}};if([j0,F0].includes(m)||_.sibling||!C){var O;!C||e==="inline"?O=o.current:O=oNe(C);var I,M=nD(O,y);m===j0?I=M[0]:m===F0?I=M[M.length-1]:I=xH(O,y,C,_.offset),P(I)}else if(_.inlineTrigger)l(x);else if(_.offset>0)l(x,!0),h(),u.current=zn(function(){v=c6(g,r);var j=C.getAttribute("aria-controls"),k=document.getElementById(j),F=xH(k,v.elements);P(F)},5);else if(_.offset<0){var T=a(x,!0),D=T[T.length-2],A=S.get(D);l(D,!1),P(A)}}c==null||c(p)}}function sNe(e){Promise.resolve().then(e)}var rD="__RC_UTIL_PATH_SPLIT__",EH=function(t){return t.join(rD)},lNe=function(t){return t.split(rD)},u6="rc-menu-more";function cNe(){var e=d.useState({}),t=$e(e,2),n=t[1],r=d.useRef(new Map),o=d.useRef(new Map),i=d.useState([]),a=$e(i,2),s=a[0],l=a[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},h=d.useCallback(function(S,w){var E=EH(w);o.current.set(E,S),r.current.set(S,E),c.current+=1;var C=c.current;sNe(function(){C===c.current&&f()})},[]),p=d.useCallback(function(S,w){var E=EH(w);o.current.delete(E),r.current.delete(S)},[]),m=d.useCallback(function(S){l(S)},[]),g=d.useCallback(function(S,w){var E=r.current.get(S)||"",C=lNe(E);return w&&s.includes(C[0])&&C.unshift(u6),C},[s]),v=d.useCallback(function(S,w){return S.filter(function(E){return E!==void 0}).some(function(E){var C=g(E,!0);return C.includes(w)})},[g]),b=function(){var w=Ze(r.current.keys());return s.length&&w.push(u6),w},y=d.useCallback(function(S){var w="".concat(r.current.get(S)).concat(rD),E=new Set;return Ze(o.current.keys()).forEach(function(C){C.startsWith(w)&&E.add(o.current.get(C))}),E},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:b,getSubPathKeys:y}}function fy(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(w){return!h.current&&!w&&v(!0),S==null?void 0:S(w)},g?null:d.createElement(qb,{mode:i,locked:!h.current},d.createElement(Jo,Ge({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var E=w.className,C=w.style;return d.createElement(oD,{id:t,className:E,style:C},o)}))}var $Ne=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],PNe=["active"],ONe=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,h=e.popupOffset,p=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,S=e.onTitleMouseLeave,w=At(e,$Ne),E=_oe(i),C=d.useContext(sc),x=C.prefixCls,_=C.mode,P=C.openKeys,O=C.disabled,I=C.overflowDisabled,M=C.activeKey,T=C.selectedKeys,D=C.itemIcon,A=C.expandIcon,j=C.onItemClick,k=C.onOpenChange,F=C.onActive,V=d.useContext(tD),W=V._internalRenderSubMenuItem,K=d.useContext(Ooe),L=K.isSubPathKey,Q=Iv(),ee="".concat(x,"-submenu"),re=O||a,ie=d.useRef(),G=d.useRef(),X=c??D,ne=u??A,le=P.includes(i),ce=!I&&le,oe=L(T,i),se=Toe(i,re,y,S),fe=se.active,te=At(se,PNe),he=d.useState(!1),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=function(De){re||Me(De)},ye=function(De){Se(!0),g==null||g({key:i,domEvent:De})},ve=function(De){Se(!1),v==null||v({key:i,domEvent:De})},be=d.useMemo(function(){return fe||(_!=="inline"?Oe||L([M],i):!1)},[_,fe,M,Oe,i,L]),Pe=Roe(Q.length),Ne=function(De){re||(b==null||b({key:i,domEvent:De}),_==="inline"&&k(i,!le))},U=fy(function(ge){m==null||m(Y2(ge)),j(ge)}),H=function(De){_!=="inline"&&k(i,De)},q=function(){F(i)},me=E&&"".concat(E,"-popup"),Ce=d.createElement("div",Ge({role:"menuitem",style:Pe,className:"".concat(ee,"-title"),tabIndex:re?null:-1,ref:ie,title:typeof o=="string"?o:null,"data-menu-id":I&&E?null:E,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":me,"aria-disabled":re,onClick:Ne,onFocus:q},te),o,d.createElement(Ioe,{icon:_!=="horizontal"?ne:void 0,props:z(z({},e),{},{isOpen:ce,isSubMenu:!0})},d.createElement("i",{className:"".concat(ee,"-arrow")}))),ue=d.useRef(_);if(_!=="inline"&&Q.length>1?ue.current="vertical":ue.current=_,!I){var Le=ue.current;Ce=d.createElement(ENe,{mode:Le,prefixCls:ee,visible:!s&&ce&&_!=="inline",popupClassName:f,popupOffset:h,popupStyle:p,popup:d.createElement(qb,{mode:Le==="horizontal"?"vertical":Le},d.createElement(oD,{id:me,ref:G},l)),disabled:re,onVisibleChange:H},Ce)}var He=d.createElement(ql.Item,Ge({ref:t,role:"none"},w,{component:"li",style:n,className:xe(ee,"".concat(ee,"-").concat(_),r,Z(Z(Z(Z({},"".concat(ee,"-open"),ce),"".concat(ee,"-active"),be),"".concat(ee,"-selected"),oe),"".concat(ee,"-disabled"),re)),onMouseEnter:ye,onMouseLeave:ve}),Ce,!I&&d.createElement(_Ne,{id:me,open:ce,keyPath:Q},l));return W&&(He=W(He,e,{selected:oe,active:be,open:ce,disabled:re})),d.createElement(qb,{onItemClick:U,mode:_==="horizontal"?"vertical":_,itemIcon:X,expandIcon:ne},He)}),Y$=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Iv(n),i=iD(r,o),a=G$();d.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=d.createElement(ONe,Ge({ref:t},e),i),d.createElement(Poe.Provider,{value:o},s)});function aD(e){var t=e.className,n=e.style,r=d.useContext(sc),o=r.prefixCls,i=G$();return i?null:d.createElement("li",{role:"separator",className:xe("".concat(o,"-item-divider"),t),style:n})}var MNe=["className","title","eventKey","children"],TNe=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=At(e,MNe),a=d.useContext(sc),s=a.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Ge({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:xe(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),sD=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Iv(n),i=iD(r,o),a=G$();return a?i:d.createElement(TNe,Ge({ref:t},Yn(e,["warnKey"])),i)}),RNe=["label","children","key","type","extra"];function d6(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&Ht(s)==="object"){var c=s,u=c.label,f=c.children,h=c.key,p=c.type,m=c.extra,g=At(c,RNe),v=h??"tmp-".concat(l);return f||p==="group"?p==="group"?d.createElement(o,Ge({key:v},g,{title:u}),d6(f,t,n)):d.createElement(i,Ge({key:v},g,{title:u}),d6(f,t,n)):p==="divider"?d.createElement(a,Ge({key:v},g)):d.createElement(r,Ge({key:v},g,{extra:m}),u,(!!m||m===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function $H(e,t,n,r,o){var i=e,a=z({divider:aD,item:X1,group:sD,submenu:Y$},r);return t&&(i=d6(t,a,o)),iD(i,n)}var INe=["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"],rh=[],kNe=d.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,h=r.children,p=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,b=r.inlineCollapsed,y=r.disabled,S=r.disabledOverflow,w=r.subMenuOpenDelay,E=w===void 0?.1:w,C=r.subMenuCloseDelay,x=C===void 0?.1:C,_=r.forceSubMenuRender,P=r.defaultOpenKeys,O=r.openKeys,I=r.activeKey,M=r.defaultActiveFirst,T=r.selectable,D=T===void 0?!0:T,A=r.multiple,j=A===void 0?!1:A,k=r.defaultSelectedKeys,F=r.selectedKeys,V=r.onSelect,W=r.onDeselect,K=r.inlineIndent,L=K===void 0?24:K,Q=r.motion,ee=r.defaultMotions,re=r.triggerSubMenuAction,ie=re===void 0?"hover":re,G=r.builtinPlacements,X=r.itemIcon,ne=r.expandIcon,le=r.overflowedIndicator,ce=le===void 0?"...":le,oe=r.overflowedIndicatorPopupClassName,se=r.getPopupContainer,fe=r.onClick,te=r.onOpenChange,he=r.onKeyDown;r.openAnimation,r.openTransitionName;var pe=r._internalRenderMenuItem,Oe=r._internalRenderSubMenuItem,Me=r._internalComponents,Se=At(r,INe),ye=d.useMemo(function(){return[$H(h,f,rh,Me,i),$H(h,f,rh,{},i)]},[h,f,Me]),ve=$e(ye,2),be=ve[0],Pe=ve[1],Ne=d.useState(!1),U=$e(Ne,2),H=U[0],q=U[1],me=d.useRef(),Ce=dNe(m),ue=p==="rtl",Le=xn(P,{value:O,postState:function(en){return en||rh}}),He=$e(Le,2),ge=He[0],De=He[1],qe=function(en){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function rr(){De(en),te==null||te(en)}un?hi.flushSync(rr):rr()},je=d.useState(ge),Ke=$e(je,2),Ue=Ke[0],Ve=Ke[1],St=d.useRef(!1),et=d.useMemo(function(){return(v==="inline"||v==="vertical")&&b?["vertical",b]:[v,!1]},[v,b]),st=$e(et,2),Ct=st[0],dt=st[1],Lt=Ct==="inline",wt=d.useState(Ct),Et=$e(wt,2),Tt=Et[0],Be=Et[1],We=d.useState(dt),Fe=$e(We,2),Xe=Fe[0],gt=Fe[1];d.useEffect(function(){Be(Ct),gt(dt),St.current&&(Lt?De(Ue):qe(rh))},[Ct,dt]);var pt=d.useState(0),Rt=$e(pt,2),_t=Rt[0],vt=Rt[1],ft=_t>=be.length-1||Tt!=="horizontal"||S;d.useEffect(function(){Lt&&Ve(ge)},[ge]),d.useEffect(function(){return St.current=!0,function(){St.current=!1}},[]);var It=cNe(),bt=It.registerPath,Wt=It.unregisterPath,at=It.refreshOverflowKeys,Pt=It.isSubPathKey,Bt=It.getKeyPath,xt=It.getKeys,yt=It.getSubPathKeys,Ft=d.useMemo(function(){return{registerPath:bt,unregisterPath:Wt}},[bt,Wt]),Re=d.useMemo(function(){return{isSubPathKey:Pt}},[Pt]);d.useEffect(function(){at(ft?rh:be.slice(_t+1).map(function(tr){return tr.key}))},[_t,ft]);var kt=xn(I||M&&((n=be[0])===null||n===void 0?void 0:n.key),{value:I}),tt=$e(kt,2),Mt=tt[0],Ot=tt[1],pn=fy(function(tr){Ot(tr)}),Pn=fy(function(){Ot(void 0)});d.useImperativeHandle(t,function(){return{list:me.current,focus:function(en){var un,rr=xt(),Qt=c6(rr,Ce),Jt=Qt.elements,Rn=Qt.key2element,er=Qt.element2key,$r=nD(me.current,Jt),ao=Mt??($r[0]?er.get($r[0]):(un=be.find(function(Fn){return!Fn.props.disabled}))===null||un===void 0?void 0:un.key),Bn=Rn.get(ao);if(ao&&Bn){var Yr;Bn==null||(Yr=Bn.focus)===null||Yr===void 0||Yr.call(Bn,en)}}}});var $=xn(k||[],{value:F,postState:function(en){return Array.isArray(en)?en:en==null?rh:[en]}}),R=$e($,2),J=R[0],Ee=R[1],ke=function(en){if(D){var un=en.key,rr=J.includes(un),Qt;j?rr?Qt=J.filter(function(Rn){return Rn!==un}):Qt=[].concat(Ze(J),[un]):Qt=[un],Ee(Qt);var Jt=z(z({},en),{},{selectedKeys:Qt});rr?W==null||W(Jt):V==null||V(Jt)}!j&&ge.length&&Tt!=="inline"&&qe(rh)},Je=fy(function(tr){fe==null||fe(Y2(tr)),ke(tr)}),Dt=fy(function(tr,en){var un=ge.filter(function(Qt){return Qt!==tr});if(en)un.push(tr);else if(Tt!=="inline"){var rr=yt(tr);un=un.filter(function(Qt){return!rr.has(Qt)})}dl(ge,un,!0)||qe(un,!0)}),an=function(en,un){var rr=un??!ge.includes(en);Dt(en,rr)},En=aNe(Tt,Mt,ue,Ce,me,xt,Bt,Ot,an,he);d.useEffect(function(){q(!0)},[]);var Cr=d.useMemo(function(){return{_internalRenderMenuItem:pe,_internalRenderSubMenuItem:Oe}},[pe,Oe]),ur=Tt!=="horizontal"||S?be:be.map(function(tr,en){return d.createElement(qb,{key:tr.key,overflowDisabled:en>_t},tr)}),Nr=d.createElement(ql,Ge({id:m,ref:me,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:X1,className:xe(i,"".concat(i,"-root"),"".concat(i,"-").concat(Tt),l,Z(Z({},"".concat(i,"-inline-collapsed"),Xe),"".concat(i,"-rtl"),ue),a),dir:p,style:s,role:"menu",tabIndex:u,data:ur,renderRawItem:function(en){return en},renderRawRest:function(en){var un=en.length,rr=un?be.slice(-un):null;return d.createElement(Y$,{eventKey:u6,title:ce,disabled:ft,internalPopupClose:un===0,popupClassName:oe},rr)},maxCount:Tt!=="horizontal"||S?ql.INVALIDATE:ql.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(en){vt(en)},onKeyDown:En},Se));return d.createElement(tD.Provider,{value:Cr},d.createElement(xoe.Provider,{value:Ce},d.createElement(qb,{prefixCls:i,rootClassName:a,mode:Tt,openKeys:ge,rtl:ue,disabled:y,motion:H?Q:null,defaultMotions:H?ee:null,activeKey:Mt,onActive:pn,onInactive:Pn,selectedKeys:J,inlineIndent:L,subMenuOpenDelay:E,subMenuCloseDelay:x,forceSubMenuRender:_,builtinPlacements:G,triggerSubMenuAction:ie,getPopupContainer:se,itemIcon:X,expandIcon:ne,onItemClick:Je,onOpenChange:Dt},d.createElement(Ooe.Provider,{value:Re},Nr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement($oe.Provider,{value:Ft},Pe)))))}),kv=kNe;kv.Item=X1;kv.SubMenu=Y$;kv.ItemGroup=sD;kv.Divider=aD;var NNe={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"},ANe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:NNe}))},DNe=d.forwardRef(ANe),jNe={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"},FNe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:jNe}))},qg=d.forwardRef(FNe);const Noe=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),LNe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=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:i,padding:a,color:s,lineHeight:_e(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Aoe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,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:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}},Doe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],joe=Kn("Layout",e=>[LNe(e)],Aoe,{deprecatedTokens:Doe}),BNe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=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,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:_e(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:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${_e(h)} ${_e(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${_e(h)} 0 0 ${_e(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},zNe=Kn(["Layout","Sider"],e=>[BNe(e)],Aoe,{deprecatedTokens:Doe});var HNe=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 o=0,r=Object.getOwnPropertySymbols(e);o!Number.isNaN(Number.parseFloat(e))&&isFinite(e),X$=d.createContext({}),WNe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Foe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,b=HNe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=d.useContext(Noe),[S,w]=d.useState("collapsed"in e?e.collapsed:a),[E,C]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const x=(X,ne)=>{"collapsed"in e||w(X),g==null||g(X,ne)},{getPrefixCls:_,direction:P}=d.useContext(Yt),O=_("layout-sider",n),[I,M,T]=zNe(O),D=d.useRef(null);D.current=X=>{C(X.matches),v==null||v(X.matches),S!==X.matches&&x(X.matches,"responsive")},d.useEffect(()=>{function X(le){return D.current(le)}let ne;if(typeof window<"u"){const{matchMedia:le}=window;if(le&&m&&m in PH){ne=le(`screen and (max-width: ${PH[m]})`);try{ne.addEventListener("change",X)}catch{ne.addListener(X)}X(ne)}}return()=>{try{ne==null||ne.removeEventListener("change",X)}catch{ne==null||ne.removeListener(X)}}},[m]),d.useEffect(()=>{const X=WNe("ant-sider-");return y.addSider(X),()=>y.removeSider(X)},[]);const A=()=>{x(!S,"clickTrigger")},j=Yn(b,["collapsed"]),k=S?h:f,F=UNe(k)?`${k}px`:String(k),V=parseFloat(String(h||0))===0?d.createElement("span",{onClick:A,className:xe(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:p},o||d.createElement(DNe,null)):null,W=P==="rtl"==!u,Q={expanded:W?d.createElement(rd,null):d.createElement(qg,null),collapsed:W?d.createElement(qg,null):d.createElement(rd,null)}[S?"collapsed":"expanded"],ee=o!==null?V||d.createElement("div",{className:`${O}-trigger`,onClick:A,style:{width:F}},o||Q):null,re=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=xe(O,`${O}-${s}`,{[`${O}-collapsed`]:!!S,[`${O}-has-trigger`]:c&&o!==null&&!V,[`${O}-below`]:!!E,[`${O}-zero-width`]:parseFloat(F)===0},r,M,T),G=d.useMemo(()=>({siderCollapsed:S}),[S]);return I(d.createElement(X$.Provider,{value:G},d.createElement("aside",Object.assign({className:ie},j,{style:re,ref:t}),d.createElement("div",{className:`${O}-children`},i),c||E&&V?ee:null)))});var VNe={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"},KNe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:VNe}))},lD=d.forwardRef(KNe);const X2=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var qNe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=qNe(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=d.useContext(Yt),a=i("menu",t),s=xe({[`${a}-item-divider-dashed`]:!!r},n);return d.createElement(aD,Object.assign({className:s},o))},Boe=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:h}=d.useContext(X2),p=S=>{const w=r==null?void 0:r[0],E=d.createElement("span",{className:xe(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!o||d.isValidElement(r)&&r.type==="span")&&r&&S&&c&&typeof w=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},w.charAt(0)):E},{siderCollapsed:m}=d.useContext(X$);let g=i;typeof i>"u"?g=c?r:"":i===!1&&(g="");const v={title:g};!m&&!h&&(v.title=null,v.open=!1);const b=ai(r).length;let y=d.createElement(X1,Object.assign({},Yn(e,["title","icon","danger"]),{className:xe({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?b+1:b)===1},n),title:typeof i=="string"?i:void 0}),Zo(o,{className:xe(d.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(h));return f||(y=d.createElement(xa,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var GNe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=GNe(e,["children"]),o=d.useContext(Q2),i=d.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=w_e(n),s=mc(t,a?Af(n):null);return d.createElement(Q2.Provider,{value:i},d.createElement(ic,{space:!0},a?d.cloneElement(n,{ref:s}):n))}),YNe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${_e(i)} ${a} ${o}`,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, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},YT(kn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const k6e=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:S,controlOutline:w}=e,E=s*2,C=r*2,x=Math.min(o-E,o-C),_=Math.min(i-E,i-C),P=Math.min(a-E,a-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:_,multipleItemHeightLG:P,multipleSelectorBgDisabled:v,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:S,activeOutlineColor:w,selectAffixPadding:s}},ooe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${_e(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 ${_e(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},pH=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ooe(e,t))}),N6e=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ooe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),pH(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),pH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ioe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${_e(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}}}},mH=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ioe(e,t))}),A6e=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ioe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),mH(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),mH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),D6e=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${_e(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:`${_e(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}}}}),j6e=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},N6e(e)),A6e(e)),D6e(e))}),F6e=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"}}}},L6e=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"}}}},B6e=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},F6e(e)),L6e(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},wa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},wa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Fp()),{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`,[o]:{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()}}}}}},z6e=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},B6e(e),I6e(e),R6e(e),O6e(e),{[`${t}-rtl`]:{direction:"rtl"}},Bp(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},GA=Kn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=kn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[z6e(r),j6e(r)]},k6e,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var H6e={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"},U6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:H6e}))},gf=d.forwardRef(U6e),W6e={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"},V6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:W6e}))},z$=d.forwardRef(V6e),K6e={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"},q6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:K6e}))},H$=d.forwardRef(q6e);function U$(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:h}=e;const p=n??d.createElement(ru,null),m=y=>t===null&&!s&&!f?null:d.createElement(d.Fragment,null,c!==!1&&y,s&&u);let g=null;if(t!==void 0)g=m(t);else if(i)g=m(d.createElement(Gc,{spin:!0}));else{const y=`${l}-suffix`;g=S=>{let{open:w,showSearch:E}=S;return m(w&&E?d.createElement(H$,{className:y}):d.createElement(z$,{className:y}))}}let v=null;r!==void 0?v=r:a?v=d.createElement(gf,null):v=null;let b=null;return o!==void 0?b=o:b=d.createElement(ou,null),{clearIcon:p,suffixIcon:g,itemIcon:v,removeIcon:b}}function YA(e,t){return t!==void 0?t:e!==null}var G6e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:h,size:p,disabled:m,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:w,style:E,allowClear:C,variant:x,dropdownStyle:_,transitionName:P,tagRender:O,maxCount:I,prefix:M}=e,T=G6e(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:D,getPrefixCls:A,renderEmpty:j,direction:k,virtual:F,popupMatchSelectWidth:V,popupOverflow:W,select:K}=d.useContext(Yt),[,L]=Ho(),Q=h??(L==null?void 0:L.controlHeight),ee=A("select",r),re=A(),ie=w??k,{compactSize:G,compactItemClassnames:X}=gc(ee,ie),[ne,le]=gd("select",x,o),ce=Mr(ee),[oe,se,fe]=GA(ee,ce),te=d.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===aoe?"combobox":Ke},[e.mode]),he=te==="multiple"||te==="tags",pe=YA(e.suffixIcon,e.showArrow),Oe=(n=S??y)!==null&&n!==void 0?n:V,{status:Me,hasFeedback:Se,isFormItemInput:ye,feedbackIcon:ve}=d.useContext(Io),be=md(Me,v);let Pe;g!==void 0?Pe=g:te==="combobox"?Pe=null:Pe=(j==null?void 0:j("Select"))||d.createElement(X1,{componentName:"Select"});const{suffixIcon:Ne,itemIcon:U,removeIcon:H,clearIcon:q}=U$(Object.assign(Object.assign({},T),{multiple:he,hasFeedback:Se,feedbackIcon:ve,showSuffixIcon:pe,prefixCls:ee,componentName:"Select"})),me=C===!0?{clearIcon:q}:C,Ce=Yn(T,["suffixIcon","itemIcon"]),ue=xe(l||c,{[`${ee}-dropdown-${ie}`]:ie==="rtl"},a,fe,ce,se),Le=Eo(Ke=>{var Ue;return(Ue=p??G)!==null&&Ue!==void 0?Ue:Ke}),He=d.useContext(zo),ge=m??He,De=xe({[`${ee}-lg`]:Le==="large",[`${ee}-sm`]:Le==="small",[`${ee}-rtl`]:ie==="rtl",[`${ee}-${ne}`]:le,[`${ee}-in-form-item`]:ye},ac(ee,be,Se),X,K==null?void 0:K.className,i,a,fe,ce,se),qe=d.useMemo(()=>f!==void 0?f:ie==="rtl"?"bottomRight":"bottomLeft",[f,ie]),[Fe]=vl("SelectLike",_==null?void 0:_.zIndex);return oe(d.createElement(KA,Object.assign({ref:t,virtual:F,showSearch:K==null?void 0:K.showSearch},Ce,{style:Object.assign(Object.assign({},K==null?void 0:K.style),E),dropdownMatchSelectWidth:Oe,transitionName:Mi(re,"slide-up",P),builtinPlacements:qA(b,W),listHeight:u,listItemHeight:Q,mode:te,prefixCls:ee,placement:qe,direction:ie,prefix:M,suffixIcon:Ne,menuItemSelectedIcon:U,removeIcon:H,allowClear:me,notFoundContent:Pe,className:De,getPopupContainer:s||D,dropdownClassName:ue,disabled:ge,dropdownStyle:Object.assign(Object.assign({},_),{zIndex:Fe}),maxCount:he?I:void 0,tagRender:he?O:void 0})))},Va=d.forwardRef(Y6e),X6e=jf(Va,"dropdownAlign");Va.SECRET_COMBOBOX_MODE_DO_NOT_USE=aoe;Va.Option=WA;Va.OptGroup=UA;Va._InternalPanelDoNotUseOrYouWillBeFired=X6e;const $f=["xxl","xl","lg","md","sm","xs"],Q6e=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)`}),J6e=e=>{const t=e,n=[].concat($f).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const loe=(e,t)=>{if(t&&typeof t=="object")for(let n=0;n<$f.length;n++){const r=$f[n];if(e[r]&&t[r]!==void 0)return t[r]}};function XA(){const[,e]=d.useReducer(t=>t+1,0);return e}function W$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=XA(),r=soe();return Zn(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const o6=d.createContext({}),Z6e=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:h,borderRadiusLG:p,borderRadiusSM:m,lineWidth:g,lineType:v}=e,b=(y,S,w)=>({width:y,height:y,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`&${n}-icon`]:{fontSize:S,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${_e(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,h)),{"&-lg":Object.assign({},b(s,u,p)),"&-sm":Object.assign({},b(l,f,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},e8e=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},t8e=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},coe=Kn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=kn(e,{avatarBg:n,avatarColor:t});return[Z6e(r),e8e(r)]},t8e);var n8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const[n,r]=d.useState(1),[o,i]=d.useState(!1),[a,s]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=bi(t,l),{getPrefixCls:f,avatar:h}=d.useContext(Yt),p=d.useContext(o6),m=()=>{if(!c.current||!l.current)return;const X=c.current.offsetWidth,ne=l.current.offsetWidth;if(X!==0&&ne!==0){const{gap:le=4}=e;le*2{i(!0)},[]),d.useEffect(()=>{s(!0),r(1)},[e.src]),d.useEffect(m,[e.gap]);const g=()=>{const{onError:X}=e;(X==null?void 0:X())!==!1&&s(!1)},{prefixCls:v,shape:b,size:y,src:S,srcSet:w,icon:E,className:C,rootClassName:x,alt:_,draggable:P,children:O,crossOrigin:I}=e,M=n8e(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),T=Eo(X=>{var ne,le;return(le=(ne=y??(p==null?void 0:p.size))!==null&&ne!==void 0?ne:X)!==null&&le!==void 0?le:"default"}),D=Object.keys(typeof T=="object"?T||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),A=W$(D),j=d.useMemo(()=>{if(typeof T!="object")return{};const X=$f.find(le=>A[le]),ne=T[X];return ne?{width:ne,height:ne,fontSize:ne&&(E||O)?ne/2:18}:{}},[A,T]),k=f("avatar",v),F=Mr(k),[V,W,K]=coe(k,F),L=xe({[`${k}-lg`]:T==="large",[`${k}-sm`]:T==="small"}),Q=d.isValidElement(S),ee=b||(p==null?void 0:p.shape)||"circle",re=xe(k,L,h==null?void 0:h.className,`${k}-${ee}`,{[`${k}-image`]:Q||S&&a,[`${k}-icon`]:!!E},K,F,C,x,W),ie=typeof T=="number"?{width:T,height:T,fontSize:E?T/2:18}:{};let G;if(typeof S=="string"&&a)G=d.createElement("img",{src:S,draggable:P,srcSet:w,onError:g,alt:_,crossOrigin:I});else if(Q)G=S;else if(E)G=E;else if(o||n!==1){const X=`scale(${n})`,ne={msTransform:X,WebkitTransform:X,transform:X};G=d.createElement(Oi,{onResize:m},d.createElement("span",{className:`${k}-string`,ref:c,style:Object.assign({},ne)},O))}else G=d.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:c},O);return delete M.onError,delete M.gap,V(d.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),j),h==null?void 0:h.style),M.style),className:re,ref:u}),G))},uoe=d.forwardRef(r8e),Kg=e=>e?typeof e=="function"?e():e:null;function QA(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return d.createElement("div",{className:xe("".concat(n,"-content"),a),style:s},d.createElement("div",{className:xe("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var fm={shiftX:64,adjustY:1},hm={adjustX:1,shiftY:!0},Fs=[0,0],o8e={left:{points:["cr","cl"],overflow:hm,offset:[-4,0],targetOffset:Fs},right:{points:["cl","cr"],overflow:hm,offset:[4,0],targetOffset:Fs},top:{points:["bc","tc"],overflow:fm,offset:[0,-4],targetOffset:Fs},bottom:{points:["tc","bc"],overflow:fm,offset:[0,4],targetOffset:Fs},topLeft:{points:["bl","tl"],overflow:fm,offset:[0,-4],targetOffset:Fs},leftTop:{points:["tr","tl"],overflow:hm,offset:[-4,0],targetOffset:Fs},topRight:{points:["br","tr"],overflow:fm,offset:[0,-4],targetOffset:Fs},rightTop:{points:["tl","tr"],overflow:hm,offset:[4,0],targetOffset:Fs},bottomRight:{points:["tr","br"],overflow:fm,offset:[0,4],targetOffset:Fs},rightBottom:{points:["bl","br"],overflow:hm,offset:[4,0],targetOffset:Fs},bottomLeft:{points:["tl","bl"],overflow:fm,offset:[0,4],targetOffset:Fs},leftBottom:{points:["br","bl"],overflow:hm,offset:[-4,0],targetOffset:Fs}},i8e=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],a8e=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,p=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,b=t.animation,y=t.motion,S=t.placement,w=S===void 0?"right":S,E=t.align,C=E===void 0?{}:E,x=t.destroyTooltipOnHide,_=x===void 0?!1:x,P=t.defaultVisible,O=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,T=t.id,D=t.showArrow,A=D===void 0?!0:D,j=t.classNames,k=t.styles,F=At(t,i8e),V=d.useRef(null);d.useImperativeHandle(n,function(){return V.current});var W=z({},F);"visible"in t&&(W.popupVisible=t.visible);var K=function(){return d.createElement(QA,{key:"content",prefixCls:h,id:T,bodyClassName:j==null?void 0:j.body,overlayInnerStyle:z(z({},I),k==null?void 0:k.body)},M)};return d.createElement(Y1,Ge({popupClassName:xe(r,j==null?void 0:j.root),prefixCls:h,popup:K,action:i,builtinPlacements:o8e,popupPlacement:w,ref:V,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:b,popupMotion:y,defaultPopupVisible:P,autoDestroy:_,mouseLeaveDelay:c,popupStyle:z(z({},u),k==null?void 0:k.root),mouseEnterDelay:s,arrow:A},W),p)};const s8e=d.forwardRef(a8e);function V$(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,h=u,p=2*o-s,m=l,g=2*o-i,v=a,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,w=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${p} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:b,arrowPath:w,arrowPolygon:S}}const doe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,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:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${_e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},foe=8;function K$(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?foe:r}}function zC(e,t){return e?t:{}}function JA(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,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"},doe(e,t,o)),{"&:before":{background:t}})]},zC(!!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% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),zC(!!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% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),zC(!!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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),zC(!!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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function l8e(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const gH={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"]}},c8e={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"]}},u8e=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function hoe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(gH).forEach(c=>{const u=r&&c8e[c]||gH[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,u8e.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const h=K$({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-s;break}f.overflow=l8e(c,h,t,n),a&&(f.htmlRegion="visibleFirst")}),l}const d8e=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:h,sizePopupArrow:p}=e,m=t(a).add(p).add(h).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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":i,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${_e(e.calc(u).div(2).equal())} ${_e(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,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,foe)}},[`${n}-content`]:{position:"relative"}}),y$(e,(v,b)=>{let{darkColor:y}=b;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},JA(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},f8e=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},K$({contentRadius:e.borderRadius,limitVerticalRadius:!0})),V$(kn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),poe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Kn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=kn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[d8e(s),Mv(r,"zoom-big-fast")]},f8e,{resetStyle:!1,injectStyle:t})(e)},h8e=pp.map(e=>`${e}-inverse`),p8e=["success","processing","error","default","warning"];function q$(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ze(h8e),Ze(pp)).includes(e):pp.includes(e)}function m8e(e){return p8e.includes(e)}function moe(e,t){const n=q$(t),r=xe({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const g8e=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("tooltip",t),[c,u,f]=poe(l),h=moe(l,i),p=h.arrowStyle,m=Object.assign(Object.assign({},a),h.overlayStyle),g=xe(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(d.createElement("div",{className:g,style:p},d.createElement("div",{className:`${l}-arrow`}),d.createElement(QA,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),o)))};var v8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:h,children:p,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:b=!0,title:y,overlay:S,builtinPlacements:w,arrowPointAtCenter:E=!1,autoAdjustOverflow:C=!0}=e,x=!!b,[,_]=Ho(),{getPopupContainer:P,getPrefixCls:O,direction:I,tooltip:M}=d.useContext(Yt),T=nu(),D=d.useRef(null),A=()=>{var Ce;(Ce=D.current)===null||Ce===void 0||Ce.forceAlign()};d.useImperativeHandle(t,()=>{var Ce;return{forceAlign:A,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:(Ce=D.current)===null||Ce===void 0?void 0:Ce.nativeElement}});const[j,k]=xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!y&&!S&&y!==0,V=Ce=>{var ue,Le;k(F?!1:Ce),F||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,Ce),(Le=e.onVisibleChange)===null||Le===void 0||Le.call(e,Ce))},W=d.useMemo(()=>{var Ce,ue;let Le=E;return typeof b=="object"&&(Le=(ue=(Ce=b.pointAtCenter)!==null&&Ce!==void 0?Ce:b.arrowPointAtCenter)!==null&&ue!==void 0?ue:E),w||hoe({arrowPointAtCenter:Le,autoAdjustOverflow:C,arrowWidth:x?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})},[E,b,w,_]),K=d.useMemo(()=>y===0?y:S||y||"",[S,y]),L=d.createElement(ic,{space:!0},typeof K=="function"?K():K),{getPopupContainer:Q,placement:ee="top",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:G,rootClassName:X,overlayClassName:ne,styles:le,classNames:ce}=e,oe=v8e(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),se=O("tooltip",l),fe=O(),te=e["data-popover-inject"];let he=j;!("open"in e)&&!("visible"in e)&&F&&(he=!1);const pe=d.isValidElement(p)&&!Mne(p)?p:d.createElement("span",null,p),Oe=pe.props,Me=!Oe.className||typeof Oe.className=="string"?xe(Oe.className,c||`${se}-open`):Oe.className,[Se,ye,ve]=poe(se,!te),be=moe(se,f),Pe=be.arrowStyle,Ne=xe(ne,{[`${se}-rtl`]:I==="rtl"},be.className,X,ye,ve,M==null?void 0:M.className,(o=M==null?void 0:M.classNames)===null||o===void 0?void 0:o.root,ce==null?void 0:ce.root),U=xe((i=M==null?void 0:M.classNames)===null||i===void 0?void 0:i.body,ce==null?void 0:ce.body),[H,q]=vl("Tooltip",oe.zIndex),me=d.createElement(s8e,Object.assign({},oe,{zIndex:H,showArrow:x,placement:ee,mouseEnterDelay:re,mouseLeaveDelay:ie,prefixCls:se,classNames:{root:Ne,body:U},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pe),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),M==null?void 0:M.style),G),le==null?void 0:le.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=M==null?void 0:M.styles)===null||s===void 0?void 0:s.body),h),le==null?void 0:le.body),be.overlayStyle)},getTooltipContainer:Q||u||P,ref:D,builtinPlacements:W,overlay:L,visible:he,onVisibleChange:V,afterVisibleChange:m??g,arrowContent:d.createElement("span",{className:`${se}-arrow-content`}),motion:{motionName:Mi(fe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),he?Zo(pe,{className:Me}):pe);return Se(d.createElement(B1.Provider,{value:q},me))}),xa=y8e;xa._InternalPanelDoNotUseOrYouWillBeFired=g8e;const b8e=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:h,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Qn(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":f,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:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},JA(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},S8e=e=>{const{componentCls:t}=e;return{[t]:pp.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},C8e=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,h=n-r,p=h/2,m=h/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},V$(e)),K$({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${g}px`:0})},goe=Kn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=kn(e,{popoverBg:t,popoverColor:n});return[b8e(r),S8e(r),Mv(r,"zoom-big")]},C8e,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var w8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},x8e=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=Kg(a),u=Kg(s),f=xe(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return d.createElement("div",{className:f,style:o},d.createElement("div",{className:`${n}-arrow`}),d.createElement(QA,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(voe,{prefixCls:n,title:c,content:u})))},yoe=e=>{const{prefixCls:t,className:n}=e,r=w8e(e,["prefixCls","className"]),{getPrefixCls:o}=d.useContext(Yt),i=o("popover",t),[a,s,l]=goe(i);return a(d.createElement(x8e,Object.assign({},r,{prefixCls:i,hashId:s,className:xe(n,l)})))};var E8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:h="top",trigger:p="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:b,overlayStyle:y={},styles:S,classNames:w}=e,E=E8e(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:C,getPrefixCls:x}=d.useContext(Yt),_=x("popover",l),[P,O,I]=goe(_),M=x(),T=xe(f,O,I,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.root,w==null?void 0:w.root),D=xe((r=C==null?void 0:C.classNames)===null||r===void 0?void 0:r.body,w==null?void 0:w.body),[A,j]=xn(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),k=(L,Q)=>{j(L,!0),b==null||b(L,Q)},F=L=>{L.keyCode===ut.ESC&&k(!1,L)},V=L=>{k(L)},W=Kg(c),K=Kg(u);return P(d.createElement(xa,Object.assign({placement:h,trigger:p,mouseEnterDelay:g,mouseLeaveDelay:v},E,{prefixCls:_,classNames:{root:T,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.root),C==null?void 0:C.style),y),S==null?void 0:S.root),body:Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.body),S==null?void 0:S.body)},ref:t,open:A,onOpenChange:V,overlay:W||K?d.createElement(voe,{prefixCls:_,title:W,content:K}):null,transitionName:Mi(M,"zoom-big",E.transitionName),"data-popover-inject":!0}),Zo(m,{onKeyDown:L=>{var Q,ee;d.isValidElement(m)&&((ee=m==null?void 0:(Q=m.props).onKeyDown)===null||ee===void 0||ee.call(Q,L)),F(L)}})))}),fl=_8e;fl._InternalPanelDoNotUseOrYouWillBeFired=yoe;const vH=e=>{const{size:t,shape:n}=d.useContext(o6),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(o6.Provider,{value:r},e.children)},$8e=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=d.useContext(Yt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:h,size:p,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:b,max:y}=e,S=i("avatar",s),w=`${S}-group`,E=Mr(S),[C,x,_]=coe(S,E),P=xe(w,{[`${w}-rtl`]:a==="rtl"},_,E,l,c,x),O=ai(b).map((T,D)=>Zo(T,{key:`avatar-key-${D}`})),I=(y==null?void 0:y.count)||f,M=O.length;if(I&&I{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:h,calc:p}=e,m=`${r}-scroll-number`,g=y$(e,(v,b)=>{let{darkColor:y}=b;return{[`&${t} ${t}-color-${v}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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:i,lineHeight:_e(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:_e(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${_e(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 ${_e(o)} ${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:I8e,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:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:P8e,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}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:O8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:M8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:T8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:R8e,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%)"}}})}},boe=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return kn(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Soe=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},N8e=Kn("Badge",e=>{const t=boe(e);return k8e(t)},Soe),A8e=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=y$(e,(c,u)=>{let{darkColor:f}=u;return{[`&${a}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"absolute",top:r,padding:`0 ${_e(e.paddingXS)}`,color:e.colorPrimary,lineHeight:_e(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${_e(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},D8e=Kn(["Badge","Ribbon"],e=>{const t=boe(e);return A8e(t)},Soe),j8e=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Yt),f=c("ribbon",n),h=`${f}-wrapper`,[p,m,g]=D8e(f,h),v=q$(o,!1),b=xe(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:v},t),y={},S={};return o&&!v&&(y.background=o,S.color=o),p(d.createElement("div",{className:xe(h,l,m,g)},i,d.createElement("div",{className:xe(b,m),style:Object.assign(Object.assign({},y),r)},d.createElement("span",{className:`${f}-text`},a),d.createElement("div",{className:`${f}-corner`,style:S}))))},yH=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),d.createElement("span",{style:i,className:xe(`${t}-only-unit`,{current:r})},n)};function F8e(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const L8e=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=d.useState(o),[l,c]=d.useState(i),u=()=>{s(o),c(i)};d.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[o]);let f,h;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[d.createElement(yH,Object.assign({},e,{key:o,current:!0}))],h={transition:"none"};else{f=[];const p=o+10,m=[];for(let y=o;y<=p;y+=1)m.push(y);const g=ly%10===a);f=(g<0?m.slice(0,v+1):m.slice(v)).map((y,S)=>{const w=y%10;return d.createElement(yH,Object.assign({},e,{key:y,value:w,offset:g<0?S-v:S,current:S===v}))}),h={transform:`translateY(${-F8e(a,o,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:u},f)};var B8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,f=B8e(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=d.useContext(Yt),p=h("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":l,style:a,className:xe(p,o,i),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=d.createElement("bdi",null,v.map((b,y)=>d.createElement(L8e,{prefixCls:p,count:Number(r),value:b,key:v.length-y})))}return a!=null&&a.borderColor&&(m.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Zo(u,v=>({className:xe(`${p}-custom-component`,v==null?void 0:v.className,i)})):d.createElement(c,Object.assign({},m,{ref:t}),g)});var H8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:h,count:p=null,overflowCount:m=99,dot:g=!1,size:v="default",title:b,offset:y,style:S,className:w,rootClassName:E,classNames:C,styles:x,showZero:_=!1}=e,P=H8e(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:I,badge:M}=d.useContext(Yt),T=O("badge",s),[D,A,j]=N8e(T),k=p>m?`${m}+`:p,F=k==="0"||k===0,V=p===null||F&&!_,W=(u!=null||h!=null)&&V,K=g&&!F,L=K?"":k,Q=d.useMemo(()=>(L==null||L===""||F&&!_)&&!K,[L,F,_,K]),ee=d.useRef(p);Q||(ee.current=p);const re=ee.current,ie=d.useRef(L);Q||(ie.current=L);const G=ie.current,X=d.useRef(K);Q||(X.current=K);const ne=d.useMemo(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),S);const pe={marginTop:y[1]};return I==="rtl"?pe.left=parseInt(y[0],10):pe.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},pe),M==null?void 0:M.style),S)},[I,y,S,M==null?void 0:M.style]),le=b??(typeof re=="string"||typeof re=="number"?re:void 0),ce=Q||!f?null:d.createElement("span",{className:`${T}-status-text`},f),oe=!re||typeof re!="object"?void 0:Zo(re,pe=>({style:Object.assign(Object.assign({},ne),pe.style)})),se=q$(h,!1),fe=xe(C==null?void 0:C.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${T}-status-dot`]:W,[`${T}-status-${u}`]:!!u,[`${T}-color-${h}`]:se}),te={};h&&!se&&(te.color=h,te.background=h);const he=xe(T,{[`${T}-status`]:W,[`${T}-not-a-wrapper`]:!c,[`${T}-rtl`]:I==="rtl"},w,E,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,C==null?void 0:C.root,A,j);if(!c&&W){const pe=ne.color;return D(d.createElement("span",Object.assign({},P,{className:he,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),ne)}),d.createElement("span",{className:fe,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.indicator),te)}),f&&d.createElement("span",{style:{color:pe},className:`${T}-status-text`},f)))}return D(d.createElement("span",Object.assign({ref:t},P,{className:he,style:Object.assign(Object.assign({},(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.root)}),c,d.createElement(Jo,{visible:!Q,motionName:`${T}-zoom`,motionAppear:!1,motionDeadline:1e3},pe=>{let{className:Oe}=pe;var Me,Se;const ye=O("scroll-number",l),ve=X.current,be=xe(C==null?void 0:C.indicator,(Me=M==null?void 0:M.classNames)===null||Me===void 0?void 0:Me.indicator,{[`${T}-dot`]:ve,[`${T}-count`]:!ve,[`${T}-count-sm`]:v==="small",[`${T}-multiple-words`]:!ve&&G&&G.toString().length>1,[`${T}-status-${u}`]:!!u,[`${T}-color-${h}`]:se});let Pe=Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(Se=M==null?void 0:M.styles)===null||Se===void 0?void 0:Se.indicator),ne);return h&&!se&&(Pe=Pe||{},Pe.background=h),d.createElement(z8e,{prefixCls:ye,show:!Q,motionClassName:Oe,className:be,count:G,title:le,style:Pe,key:"scrollNumber"},oe)}),ce))}),Xi=U8e;Xi.Ribbon=j8e;var W8e=ut.ESC,V8e=ut.TAB;function K8e(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),s=function(){if(t){var f,h;(f=n.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r==null||r(!1)}},l=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case W8e:s();break;case V8e:{var h=!1;a.current||(h=l()),h?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&zn(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var q8e=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=bi(t,Af(i));return de.createElement(de.Fragment,null,r&&de.createElement("div",{className:"".concat(o,"-arrow")}),de.cloneElement(i,{ref:tc(i)?a:void 0}))}),pm={adjustX:1,adjustY:1},mm=[0,0],G8e={topLeft:{points:["bl","tl"],overflow:pm,offset:[0,-4],targetOffset:mm},top:{points:["bc","tc"],overflow:pm,offset:[0,-4],targetOffset:mm},topRight:{points:["br","tr"],overflow:pm,offset:[0,-4],targetOffset:mm},bottomLeft:{points:["tl","bl"],overflow:pm,offset:[0,4],targetOffset:mm},bottom:{points:["tc","bc"],overflow:pm,offset:[0,4],targetOffset:mm},bottomRight:{points:["tr","br"],overflow:pm,offset:[0,4],targetOffset:mm}},Y8e=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function X8e(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,h=e.placements,p=h===void 0?G8e:h,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,w=e.trigger,E=w===void 0?["hover"]:w,C=e.autoFocus,x=e.overlay,_=e.children,P=e.onVisibleChange,O=At(e,Y8e),I=de.useState(),M=$e(I,2),T=M[0],D=M[1],A="visible"in e?S:T,j=de.useRef(null),k=de.useRef(null),F=de.useRef(null);de.useImperativeHandle(t,function(){return j.current});var V=function(X){D(X),P==null||P(X)};K8e({visible:A,triggerRef:F,onVisibleChange:V,autoFocus:C,overlayRef:k});var W=function(X){var ne=e.onOverlayClick;D(!1),ne&&ne(X)},K=function(){return de.createElement(q8e,{ref:k,overlay:x,prefixCls:a,arrow:o})},L=function(){return typeof x=="function"?K:K()},Q=function(){var X=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ne},ee=function(){var X=e.openClassName;return X!==void 0?X:"".concat(a,"-open")},re=de.cloneElement(_,{className:xe((n=_.props)===null||n===void 0?void 0:n.className,A&&ee()),ref:tc(_)?bi(F,Af(_)):void 0}),ie=v;return!ie&&E.indexOf("contextMenu")!==-1&&(ie=["click"]),de.createElement(Y1,Ge({builtinPlacements:p},O,{prefixCls:a,ref:j,popupClassName:xe(b,Z({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:E,showAction:g,hideAction:ie,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:A,stretch:Q()?"minWidth":"",popup:L(),onPopupVisibleChange:V,onPopupClick:W,getPopupContainer:m}),re)}const Coe=de.forwardRef(X8e),Q8e=e=>typeof e!="object"&&typeof e!="function"||e===null;var woe=d.createContext(null);function xoe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Eoe(e){var t=d.useContext(woe);return xoe(t,e)}var J8e=["children","locked"],sc=d.createContext(null);function Z8e(e,t){var n=z({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function qb(e){var t=e.children,n=e.locked,r=At(e,J8e),o=d.useContext(sc),i=ed(function(){return Z8e(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!dl(a[1],s[1],!0))});return d.createElement(sc.Provider,{value:i},t)}var eNe=[],_oe=d.createContext(null);function G$(){return d.useContext(_oe)}var $oe=d.createContext(eNe);function Iv(e){var t=d.useContext($oe);return d.useMemo(function(){return e!==void 0?[].concat(Ze(t),[e]):t},[t,e])}var Poe=d.createContext(null),ZA=d.createContext({});function bH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ov(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function tNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ze(e.querySelectorAll("*")).filter(function(r){return bH(r,t)});return bH(e,t)&&n.unshift(e),n}var i6=ut.LEFT,a6=ut.RIGHT,s6=ut.UP,ox=ut.DOWN,ix=ut.ENTER,Ooe=ut.ESC,j0=ut.HOME,F0=ut.END,SH=[s6,ox,i6,a6];function nNe(e,t,n,r){var o,i="prev",a="next",s="children",l="parent";if(e==="inline"&&r===ix)return{inlineTrigger:!0};var c=Z(Z({},s6,i),ox,a),u=Z(Z(Z(Z({},i6,n?a:i),a6,n?i:a),ox,s),ix,s),f=Z(Z(Z(Z(Z(Z({},s6,i),ox,a),ix,s),Ooe,l),i6,n?s:l),a6,n?l:s),h={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},p=(o=h["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(p){case i: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 rNe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function oNe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function eD(e,t){var n=tNe(e,!0);return n.filter(function(r){return t.has(r)})}function CH(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=eD(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var l6=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(xoe(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function iNe(e,t,n,r,o,i,a,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var h=function(){zn.cancel(u.current)};return d.useEffect(function(){return function(){h()}},[]),function(p){var m=p.which;if([].concat(SH,[ix,Ooe,j0,F0]).includes(m)){var g=i(),v=l6(g,r),b=v,y=b.elements,S=b.key2element,w=b.element2key,E=S.get(t),C=oNe(E,y),x=w.get(C),_=nNe(e,a(x,!0).length===1,n,m);if(!_&&m!==j0&&m!==F0)return;(SH.includes(m)||[j0,F0].includes(m))&&p.preventDefault();var P=function(k){if(k){var F=k,V=k.querySelector("a");V!=null&&V.getAttribute("href")&&(F=V);var W=w.get(k);s(W),h(),u.current=zn(function(){f.current===W&&F.focus()})}};if([j0,F0].includes(m)||_.sibling||!C){var O;!C||e==="inline"?O=o.current:O=rNe(C);var I,M=eD(O,y);m===j0?I=M[0]:m===F0?I=M[M.length-1]:I=CH(O,y,C,_.offset),P(I)}else if(_.inlineTrigger)l(x);else if(_.offset>0)l(x,!0),h(),u.current=zn(function(){v=l6(g,r);var j=C.getAttribute("aria-controls"),k=document.getElementById(j),F=CH(k,v.elements);P(F)},5);else if(_.offset<0){var T=a(x,!0),D=T[T.length-2],A=S.get(D);l(D,!1),P(A)}}c==null||c(p)}}function aNe(e){Promise.resolve().then(e)}var tD="__RC_UTIL_PATH_SPLIT__",wH=function(t){return t.join(tD)},sNe=function(t){return t.split(tD)},c6="rc-menu-more";function lNe(){var e=d.useState({}),t=$e(e,2),n=t[1],r=d.useRef(new Map),o=d.useRef(new Map),i=d.useState([]),a=$e(i,2),s=a[0],l=a[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},h=d.useCallback(function(S,w){var E=wH(w);o.current.set(E,S),r.current.set(S,E),c.current+=1;var C=c.current;aNe(function(){C===c.current&&f()})},[]),p=d.useCallback(function(S,w){var E=wH(w);o.current.delete(E),r.current.delete(S)},[]),m=d.useCallback(function(S){l(S)},[]),g=d.useCallback(function(S,w){var E=r.current.get(S)||"",C=sNe(E);return w&&s.includes(C[0])&&C.unshift(c6),C},[s]),v=d.useCallback(function(S,w){return S.filter(function(E){return E!==void 0}).some(function(E){var C=g(E,!0);return C.includes(w)})},[g]),b=function(){var w=Ze(r.current.keys());return s.length&&w.push(c6),w},y=d.useCallback(function(S){var w="".concat(r.current.get(S)).concat(tD),E=new Set;return Ze(o.current.keys()).forEach(function(C){C.startsWith(w)&&E.add(o.current.get(C))}),E},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:b,getSubPathKeys:y}}function fy(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(w){return!h.current&&!w&&v(!0),S==null?void 0:S(w)},g?null:d.createElement(qb,{mode:i,locked:!h.current},d.createElement(Jo,Ge({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var E=w.className,C=w.style;return d.createElement(nD,{id:t,className:E,style:C},o)}))}var _Ne=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$Ne=["active"],PNe=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,h=e.popupOffset,p=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,S=e.onTitleMouseLeave,w=At(e,_Ne),E=Eoe(i),C=d.useContext(sc),x=C.prefixCls,_=C.mode,P=C.openKeys,O=C.disabled,I=C.overflowDisabled,M=C.activeKey,T=C.selectedKeys,D=C.itemIcon,A=C.expandIcon,j=C.onItemClick,k=C.onOpenChange,F=C.onActive,V=d.useContext(ZA),W=V._internalRenderSubMenuItem,K=d.useContext(Poe),L=K.isSubPathKey,Q=Iv(),ee="".concat(x,"-submenu"),re=O||a,ie=d.useRef(),G=d.useRef(),X=c??D,ne=u??A,le=P.includes(i),ce=!I&&le,oe=L(T,i),se=Moe(i,re,y,S),fe=se.active,te=At(se,$Ne),he=d.useState(!1),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=function(De){re||Me(De)},ye=function(De){Se(!0),g==null||g({key:i,domEvent:De})},ve=function(De){Se(!1),v==null||v({key:i,domEvent:De})},be=d.useMemo(function(){return fe||(_!=="inline"?Oe||L([M],i):!1)},[_,fe,M,Oe,i,L]),Pe=Toe(Q.length),Ne=function(De){re||(b==null||b({key:i,domEvent:De}),_==="inline"&&k(i,!le))},U=fy(function(ge){m==null||m(X2(ge)),j(ge)}),H=function(De){_!=="inline"&&k(i,De)},q=function(){F(i)},me=E&&"".concat(E,"-popup"),Ce=d.createElement("div",Ge({role:"menuitem",style:Pe,className:"".concat(ee,"-title"),tabIndex:re?null:-1,ref:ie,title:typeof o=="string"?o:null,"data-menu-id":I&&E?null:E,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":me,"aria-disabled":re,onClick:Ne,onFocus:q},te),o,d.createElement(Roe,{icon:_!=="horizontal"?ne:void 0,props:z(z({},e),{},{isOpen:ce,isSubMenu:!0})},d.createElement("i",{className:"".concat(ee,"-arrow")}))),ue=d.useRef(_);if(_!=="inline"&&Q.length>1?ue.current="vertical":ue.current=_,!I){var Le=ue.current;Ce=d.createElement(xNe,{mode:Le,prefixCls:ee,visible:!s&&ce&&_!=="inline",popupClassName:f,popupOffset:h,popupStyle:p,popup:d.createElement(qb,{mode:Le==="horizontal"?"vertical":Le},d.createElement(nD,{id:me,ref:G},l)),disabled:re,onVisibleChange:H},Ce)}var He=d.createElement(ql.Item,Ge({ref:t,role:"none"},w,{component:"li",style:n,className:xe(ee,"".concat(ee,"-").concat(_),r,Z(Z(Z(Z({},"".concat(ee,"-open"),ce),"".concat(ee,"-active"),be),"".concat(ee,"-selected"),oe),"".concat(ee,"-disabled"),re)),onMouseEnter:ye,onMouseLeave:ve}),Ce,!I&&d.createElement(ENe,{id:me,open:ce,keyPath:Q},l));return W&&(He=W(He,e,{selected:oe,active:be,open:ce,disabled:re})),d.createElement(qb,{onItemClick:U,mode:_==="horizontal"?"vertical":_,itemIcon:X,expandIcon:ne},He)}),Y$=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Iv(n),i=rD(r,o),a=G$();d.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=d.createElement(PNe,Ge({ref:t},e),i),d.createElement($oe.Provider,{value:o},s)});function oD(e){var t=e.className,n=e.style,r=d.useContext(sc),o=r.prefixCls,i=G$();return i?null:d.createElement("li",{role:"separator",className:xe("".concat(o,"-item-divider"),t),style:n})}var ONe=["className","title","eventKey","children"],MNe=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=At(e,ONe),a=d.useContext(sc),s=a.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Ge({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:xe(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),iD=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Iv(n),i=rD(r,o),a=G$();return a?i:d.createElement(MNe,Ge({ref:t},Yn(e,["warnKey"])),i)}),TNe=["label","children","key","type","extra"];function u6(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&Ht(s)==="object"){var c=s,u=c.label,f=c.children,h=c.key,p=c.type,m=c.extra,g=At(c,TNe),v=h??"tmp-".concat(l);return f||p==="group"?p==="group"?d.createElement(o,Ge({key:v},g,{title:u}),u6(f,t,n)):d.createElement(i,Ge({key:v},g,{title:u}),u6(f,t,n)):p==="divider"?d.createElement(a,Ge({key:v},g)):d.createElement(r,Ge({key:v},g,{extra:m}),u,(!!m||m===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function EH(e,t,n,r,o){var i=e,a=z({divider:oD,item:Q1,group:iD,submenu:Y$},r);return t&&(i=u6(t,a,o)),rD(i,n)}var RNe=["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"],rh=[],INe=d.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,h=r.children,p=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,b=r.inlineCollapsed,y=r.disabled,S=r.disabledOverflow,w=r.subMenuOpenDelay,E=w===void 0?.1:w,C=r.subMenuCloseDelay,x=C===void 0?.1:C,_=r.forceSubMenuRender,P=r.defaultOpenKeys,O=r.openKeys,I=r.activeKey,M=r.defaultActiveFirst,T=r.selectable,D=T===void 0?!0:T,A=r.multiple,j=A===void 0?!1:A,k=r.defaultSelectedKeys,F=r.selectedKeys,V=r.onSelect,W=r.onDeselect,K=r.inlineIndent,L=K===void 0?24:K,Q=r.motion,ee=r.defaultMotions,re=r.triggerSubMenuAction,ie=re===void 0?"hover":re,G=r.builtinPlacements,X=r.itemIcon,ne=r.expandIcon,le=r.overflowedIndicator,ce=le===void 0?"...":le,oe=r.overflowedIndicatorPopupClassName,se=r.getPopupContainer,fe=r.onClick,te=r.onOpenChange,he=r.onKeyDown;r.openAnimation,r.openTransitionName;var pe=r._internalRenderMenuItem,Oe=r._internalRenderSubMenuItem,Me=r._internalComponents,Se=At(r,RNe),ye=d.useMemo(function(){return[EH(h,f,rh,Me,i),EH(h,f,rh,{},i)]},[h,f,Me]),ve=$e(ye,2),be=ve[0],Pe=ve[1],Ne=d.useState(!1),U=$e(Ne,2),H=U[0],q=U[1],me=d.useRef(),Ce=uNe(m),ue=p==="rtl",Le=xn(P,{value:O,postState:function(en){return en||rh}}),He=$e(Le,2),ge=He[0],De=He[1],qe=function(en){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function rr(){De(en),te==null||te(en)}un?_i.flushSync(rr):rr()},Fe=d.useState(ge),Ke=$e(Fe,2),Ue=Ke[0],Ve=Ke[1],Tt=d.useRef(!1),et=d.useMemo(function(){return(v==="inline"||v==="vertical")&&b?["vertical",b]:[v,!1]},[v,b]),st=$e(et,2),yt=st[0],gt=st[1],Lt=yt==="inline",St=d.useState(yt),wt=$e(St,2),Nt=wt[0],Be=wt[1],We=d.useState(gt),je=$e(We,2),Xe=je[0],pt=je[1];d.useEffect(function(){Be(yt),pt(gt),Tt.current&&(Lt?De(Ue):qe(rh))},[yt,gt]);var vt=d.useState(0),Mt=$e(vt,2),Et=Mt[0],ft=Mt[1],dt=Et>=be.length-1||Nt!=="horizontal"||S;d.useEffect(function(){Lt&&Ve(ge)},[ge]),d.useEffect(function(){return Tt.current=!0,function(){Tt.current=!1}},[]);var Rt=lNe(),Ct=Rt.registerPath,Wt=Rt.unregisterPath,at=Rt.refreshOverflowKeys,$t=Rt.isSubPathKey,Bt=Rt.getKeyPath,xt=Rt.getKeys,bt=Rt.getSubPathKeys,Ft=d.useMemo(function(){return{registerPath:Ct,unregisterPath:Wt}},[Ct,Wt]),Re=d.useMemo(function(){return{isSubPathKey:$t}},[$t]);d.useEffect(function(){at(dt?rh:be.slice(Et+1).map(function(tr){return tr.key}))},[Et,dt]);var It=xn(I||M&&((n=be[0])===null||n===void 0?void 0:n.key),{value:I}),tt=$e(It,2),Ot=tt[0],Pt=tt[1],pn=fy(function(tr){Pt(tr)}),Pn=fy(function(){Pt(void 0)});d.useImperativeHandle(t,function(){return{list:me.current,focus:function(en){var un,rr=xt(),Qt=l6(rr,Ce),Jt=Qt.elements,Rn=Qt.key2element,er=Qt.element2key,$r=eD(me.current,Jt),ao=Ot??($r[0]?er.get($r[0]):(un=be.find(function(Fn){return!Fn.props.disabled}))===null||un===void 0?void 0:un.key),Bn=Rn.get(ao);if(ao&&Bn){var Yr;Bn==null||(Yr=Bn.focus)===null||Yr===void 0||Yr.call(Bn,en)}}}});var $=xn(k||[],{value:F,postState:function(en){return Array.isArray(en)?en:en==null?rh:[en]}}),R=$e($,2),J=R[0],Ee=R[1],ke=function(en){if(D){var un=en.key,rr=J.includes(un),Qt;j?rr?Qt=J.filter(function(Rn){return Rn!==un}):Qt=[].concat(Ze(J),[un]):Qt=[un],Ee(Qt);var Jt=z(z({},en),{},{selectedKeys:Qt});rr?W==null||W(Jt):V==null||V(Jt)}!j&&ge.length&&Nt!=="inline"&&qe(rh)},Je=fy(function(tr){fe==null||fe(X2(tr)),ke(tr)}),Dt=fy(function(tr,en){var un=ge.filter(function(Qt){return Qt!==tr});if(en)un.push(tr);else if(Nt!=="inline"){var rr=bt(tr);un=un.filter(function(Qt){return!rr.has(Qt)})}dl(ge,un,!0)||qe(un,!0)}),an=function(en,un){var rr=un??!ge.includes(en);Dt(en,rr)},En=iNe(Nt,Ot,ue,Ce,me,xt,Bt,Pt,an,he);d.useEffect(function(){q(!0)},[]);var Cr=d.useMemo(function(){return{_internalRenderMenuItem:pe,_internalRenderSubMenuItem:Oe}},[pe,Oe]),ur=Nt!=="horizontal"||S?be:be.map(function(tr,en){return d.createElement(qb,{key:tr.key,overflowDisabled:en>Et},tr)}),Nr=d.createElement(ql,Ge({id:m,ref:me,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Q1,className:xe(i,"".concat(i,"-root"),"".concat(i,"-").concat(Nt),l,Z(Z({},"".concat(i,"-inline-collapsed"),Xe),"".concat(i,"-rtl"),ue),a),dir:p,style:s,role:"menu",tabIndex:u,data:ur,renderRawItem:function(en){return en},renderRawRest:function(en){var un=en.length,rr=un?be.slice(-un):null;return d.createElement(Y$,{eventKey:c6,title:ce,disabled:dt,internalPopupClose:un===0,popupClassName:oe},rr)},maxCount:Nt!=="horizontal"||S?ql.INVALIDATE:ql.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(en){ft(en)},onKeyDown:En},Se));return d.createElement(ZA.Provider,{value:Cr},d.createElement(woe.Provider,{value:Ce},d.createElement(qb,{prefixCls:i,rootClassName:a,mode:Nt,openKeys:ge,rtl:ue,disabled:y,motion:H?Q:null,defaultMotions:H?ee:null,activeKey:Ot,onActive:pn,onInactive:Pn,selectedKeys:J,inlineIndent:L,subMenuOpenDelay:E,subMenuCloseDelay:x,forceSubMenuRender:_,builtinPlacements:G,triggerSubMenuAction:ie,getPopupContainer:se,itemIcon:X,expandIcon:ne,onItemClick:Je,onOpenChange:Dt},d.createElement(Poe.Provider,{value:Re},Nr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(_oe.Provider,{value:Ft},Pe)))))}),kv=INe;kv.Item=Q1;kv.SubMenu=Y$;kv.ItemGroup=iD;kv.Divider=oD;var kNe={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"},NNe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:kNe}))},ANe=d.forwardRef(NNe),DNe={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"},jNe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:DNe}))},qg=d.forwardRef(jNe);const koe=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),FNe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=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:i,padding:a,color:s,lineHeight:_e(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Noe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,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:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}},Aoe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Doe=Kn("Layout",e=>[FNe(e)],Noe,{deprecatedTokens:Aoe}),LNe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=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,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:_e(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:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${_e(h)} ${_e(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${_e(h)} 0 0 ${_e(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},BNe=Kn(["Layout","Sider"],e=>[LNe(e)],Noe,{deprecatedTokens:Aoe});var zNe=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 o=0,r=Object.getOwnPropertySymbols(e);o!Number.isNaN(Number.parseFloat(e))&&isFinite(e),X$=d.createContext({}),UNe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),joe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,b=zNe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=d.useContext(koe),[S,w]=d.useState("collapsed"in e?e.collapsed:a),[E,C]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const x=(X,ne)=>{"collapsed"in e||w(X),g==null||g(X,ne)},{getPrefixCls:_,direction:P}=d.useContext(Yt),O=_("layout-sider",n),[I,M,T]=BNe(O),D=d.useRef(null);D.current=X=>{C(X.matches),v==null||v(X.matches),S!==X.matches&&x(X.matches,"responsive")},d.useEffect(()=>{function X(le){return D.current(le)}let ne;if(typeof window<"u"){const{matchMedia:le}=window;if(le&&m&&m in _H){ne=le(`screen and (max-width: ${_H[m]})`);try{ne.addEventListener("change",X)}catch{ne.addListener(X)}X(ne)}}return()=>{try{ne==null||ne.removeEventListener("change",X)}catch{ne==null||ne.removeListener(X)}}},[m]),d.useEffect(()=>{const X=UNe("ant-sider-");return y.addSider(X),()=>y.removeSider(X)},[]);const A=()=>{x(!S,"clickTrigger")},j=Yn(b,["collapsed"]),k=S?h:f,F=HNe(k)?`${k}px`:String(k),V=parseFloat(String(h||0))===0?d.createElement("span",{onClick:A,className:xe(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:p},o||d.createElement(ANe,null)):null,W=P==="rtl"==!u,Q={expanded:W?d.createElement(nd,null):d.createElement(qg,null),collapsed:W?d.createElement(qg,null):d.createElement(nd,null)}[S?"collapsed":"expanded"],ee=o!==null?V||d.createElement("div",{className:`${O}-trigger`,onClick:A,style:{width:F}},o||Q):null,re=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=xe(O,`${O}-${s}`,{[`${O}-collapsed`]:!!S,[`${O}-has-trigger`]:c&&o!==null&&!V,[`${O}-below`]:!!E,[`${O}-zero-width`]:parseFloat(F)===0},r,M,T),G=d.useMemo(()=>({siderCollapsed:S}),[S]);return I(d.createElement(X$.Provider,{value:G},d.createElement("aside",Object.assign({className:ie},j,{style:re,ref:t}),d.createElement("div",{className:`${O}-children`},i),c||E&&V?ee:null)))});var WNe={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"},VNe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:WNe}))},aD=d.forwardRef(VNe);const Q2=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var KNe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=KNe(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=d.useContext(Yt),a=i("menu",t),s=xe({[`${a}-item-divider-dashed`]:!!r},n);return d.createElement(oD,Object.assign({className:s},o))},Loe=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:h}=d.useContext(Q2),p=S=>{const w=r==null?void 0:r[0],E=d.createElement("span",{className:xe(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!o||d.isValidElement(r)&&r.type==="span")&&r&&S&&c&&typeof w=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},w.charAt(0)):E},{siderCollapsed:m}=d.useContext(X$);let g=i;typeof i>"u"?g=c?r:"":i===!1&&(g="");const v={title:g};!m&&!h&&(v.title=null,v.open=!1);const b=ai(r).length;let y=d.createElement(Q1,Object.assign({},Yn(e,["title","icon","danger"]),{className:xe({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?b+1:b)===1},n),title:typeof i=="string"?i:void 0}),Zo(o,{className:xe(d.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(h));return f||(y=d.createElement(xa,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var qNe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=qNe(e,["children"]),o=d.useContext(J2),i=d.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=C_e(n),s=mc(t,a?Af(n):null);return d.createElement(J2.Provider,{value:i},d.createElement(ic,{space:!0},a?d.cloneElement(n,{ref:s}):n))}),GNe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${_e(i)} ${a} ${o}`,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"}}}},XNe=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(${_e(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${_e(n)})`}}}}},OH=e=>Object.assign({},rc(e)),MH=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:b,itemHoverColor:y,lineType:S,colorSplit:w,itemDisabledColor:E,dangerItemColor:C,dangerItemHoverColor:x,dangerItemSelectedColor:_,dangerItemActiveBg:P,dangerItemSelectedBg:O,popupBg:I,itemHoverBg:M,itemActiveBg:T,menuSubMenuBg:D,horizontalItemSelectedColor:A,horizontalItemSelectedBg:j,horizontalItemBorderRadius:k,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},OH(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},OH(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:T}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:T}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${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:k,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${_e(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${_e(h)} ${S} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${_e(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${m}`,`opacity ${b} ${m}`].join(",")}}}}}},TH=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:_e(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, + > ${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"}}}},YNe=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(${_e(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${_e(n)})`}}}}},$H=e=>Object.assign({},rc(e)),PH=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:b,itemHoverColor:y,lineType:S,colorSplit:w,itemDisabledColor:E,dangerItemColor:C,dangerItemHoverColor:x,dangerItemSelectedColor:_,dangerItemActiveBg:P,dangerItemSelectedBg:O,popupBg:I,itemHoverBg:M,itemActiveBg:T,menuSubMenuBg:D,horizontalItemSelectedColor:A,horizontalItemSelectedBg:j,horizontalItemBorderRadius:k,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},$H(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},$H(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:T}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:T}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${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:k,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${_e(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${_e(h)} ${S} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${_e(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${m}`,`opacity ${b} ${m}`].join(",")}}}}}},OH=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:_e(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:_e(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},QNe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,b={height:r,lineHeight:_e(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},TH(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},TH(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${_e(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 ${f} ${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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},XNe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,b={height:r,lineHeight:_e(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},OH(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},OH(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${_e(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 ${f} ${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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${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% - ${_e(e.calc(v).div(2).equal())} - ${_e(c)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:_e(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:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},wa),{paddingInline:p})}}]},RH=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,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) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Fp()),[`&${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"}}}},IH=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${_e(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${_e(a)})`}}}}},JNe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},nc()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),nc()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${_e(s)} ${_e(l)}`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-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:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),RH(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${_e(e.calc(r).mul(2).equal())} ${_e(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,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},RH(e)),IH(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${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}}}),IH(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_e(g)})`},"&::after":{transform:`rotate(45deg) translateX(${_e(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${_e(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${_e(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${_e(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},ZNe=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:h,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:w,padding:E,fontSize:C,controlHeightSM:x,fontSizeLG:_,colorTextLightSolid:P,colorErrorHover:O}=e,I=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,T=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new Un(P).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:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:h,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:S,itemMarginBlock:w,itemPaddingInline:E,horizontalLineHeight:`${b*1.15}px`,iconSize:C,iconMarginInlineEnd:x-C,collapsedIconSize:_,groupTitleFontSize:C,darkItemDisabledColor:new Un(P).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:P,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:i,itemWidth:I?`calc(100% + ${M}px)`:`calc(100% - ${T*2}px)`}},e5e=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 Kn("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:p,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:b,darkItemDisabledColor:y,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:E,popupBg:C,darkPopupBg:x}=o,_=o.calc(s).div(7).mul(5).equal(),P=kn(o,{menuArrowSize:_,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(_).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:C}),O=kn(P,{itemColor:l,itemHoverColor:b,groupTitleColor:v,itemSelectedColor:h,itemBg:u,popupBg:x,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:S,dangerItemSelectedColor:w,dangerItemActiveBg:E,dangerItemSelectedBg:m,menuSubMenuBg:f,horizontalItemSelectedColor:h,horizontalItemSelectedBg:p});return[JNe(P),YNe(P),QNe(P),MH(P,"light"),MH(O,"dark"),XNe(P),H1(P),Yc(P,"slide-up"),Yc(P,"slide-down"),Mv(P,"zoom-big")]},ZNe,{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)},Hoe=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=d.useContext(X2),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Iv();let f;if(!r)f=l&&!u.length&&o&&typeof o=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):d.createElement("span",{className:`${s}-title-content`},o);else{const m=d.isValidElement(o)&&o.type==="span";f=d.createElement(d.Fragment,null,Zo(r,{className:xe(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?o:d.createElement("span",{className:`${s}-title-content`},o))}const h=d.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=vl("Menu");return d.createElement(X2.Provider,{value:h},d.createElement(Y$,Object.assign({},Yn(e,["icon"]),{title:f,popupClassName:xe(s,n,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var t5e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=d.useContext(Q2),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:s,menu:l}=d.useContext(Yt),c=i(),{prefixCls:u,className:f,style:h,theme:p="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:S,selectable:w,onClick:E,overflowedIndicatorPopupClassName:C}=e,x=t5e(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_=Yn(x,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:S});const P=An(function(){var L;E==null||E.apply(void 0,arguments),(L=o.onClick)===null||L===void 0||L.call(o)}),O=o.mode||S,I=w??o.selectable,M=v??b,T={horizontal:{motionName:`${c}-slide-up`},inline:Ug(c),other:{motionName:`${c}-zoom-big`}},D=i("menu",u||o.prefixCls),A=Mr(D),[j,k,F]=e5e(D,A,!r),V=xe(`${D}-${p}`,l==null?void 0:l.className,f),W=d.useMemo(()=>{var L,Q;if(typeof m=="function"||XT(m))return m||null;if(typeof o.expandIcon=="function"||XT(o.expandIcon))return o.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||XT(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const ee=(L=m??(o==null?void 0:o.expandIcon))!==null&&L!==void 0?L:l==null?void 0:l.expandIcon;return Zo(ee,{className:xe(`${D}-submenu-expand-icon`,d.isValidElement(ee)?(Q=ee.props)===null||Q===void 0?void 0:Q.className:void 0)})},[m,o==null?void 0:o.expandIcon,l==null?void 0:l.expandIcon,D]),K=d.useMemo(()=>({prefixCls:D,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:p,mode:O,disableMenuItemTitleTooltip:g}),[D,M,s,g,p]);return j(d.createElement(Q2.Provider,{value:null},d.createElement(X2.Provider,{value:K},d.createElement(kv,Object.assign({getPopupContainer:a,overflowedIndicator:d.createElement(lD,null),overflowedIndicatorPopupClassName:xe(D,`${D}-${p}`,C),mode:O,selectable:I,onClick:P},_,{inlineCollapsed:M,style:Object.assign(Object.assign({},l==null?void 0:l.style),h),className:V,prefixCls:D,direction:s,defaultMotions:T,expandIcon:W,ref:t,rootClassName:xe(y,k,o.rootClassName,F,A),_internalComponents:n5e})))))}),vc=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(X$);return d.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),d.createElement(r5e,Object.assign({ref:n},e,r))});vc.Item=Boe;vc.SubMenu=Hoe;vc.Divider=Loe;vc.ItemGroup=sD;const o5e=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},i5e=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:h,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).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, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:_e(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:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},wa),{paddingInline:p})}}]},MH=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,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) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Fp()),[`&${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"}}}},TH=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${_e(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${_e(a)})`}}}}},QNe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},nc()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),nc()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${_e(s)} ${_e(l)}`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-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:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),MH(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${_e(e.calc(r).mul(2).equal())} ${_e(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,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},MH(e)),TH(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${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}}}),TH(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_e(g)})`},"&::after":{transform:`rotate(45deg) translateX(${_e(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${_e(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${_e(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${_e(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},JNe=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:h,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:w,padding:E,fontSize:C,controlHeightSM:x,fontSizeLG:_,colorTextLightSolid:P,colorErrorHover:O}=e,I=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,T=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new Un(P).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:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:h,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:S,itemMarginBlock:w,itemPaddingInline:E,horizontalLineHeight:`${b*1.15}px`,iconSize:C,iconMarginInlineEnd:x-C,collapsedIconSize:_,groupTitleFontSize:C,darkItemDisabledColor:new Un(P).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:P,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:i,itemWidth:I?`calc(100% + ${M}px)`:`calc(100% - ${T*2}px)`}},ZNe=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 Kn("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:p,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:b,darkItemDisabledColor:y,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:E,popupBg:C,darkPopupBg:x}=o,_=o.calc(s).div(7).mul(5).equal(),P=kn(o,{menuArrowSize:_,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(_).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:C}),O=kn(P,{itemColor:l,itemHoverColor:b,groupTitleColor:v,itemSelectedColor:h,itemBg:u,popupBg:x,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:S,dangerItemSelectedColor:w,dangerItemActiveBg:E,dangerItemSelectedBg:m,menuSubMenuBg:f,horizontalItemSelectedColor:h,horizontalItemSelectedBg:p});return[QNe(P),GNe(P),XNe(P),PH(P,"light"),PH(O,"dark"),YNe(P),U1(P),Yc(P,"slide-up"),Yc(P,"slide-down"),Mv(P,"zoom-big")]},JNe,{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)},zoe=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=d.useContext(Q2),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Iv();let f;if(!r)f=l&&!u.length&&o&&typeof o=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):d.createElement("span",{className:`${s}-title-content`},o);else{const m=d.isValidElement(o)&&o.type==="span";f=d.createElement(d.Fragment,null,Zo(r,{className:xe(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?o:d.createElement("span",{className:`${s}-title-content`},o))}const h=d.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=vl("Menu");return d.createElement(Q2.Provider,{value:h},d.createElement(Y$,Object.assign({},Yn(e,["icon"]),{title:f,popupClassName:xe(s,n,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var e5e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=d.useContext(J2),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:s,menu:l}=d.useContext(Yt),c=i(),{prefixCls:u,className:f,style:h,theme:p="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:S,selectable:w,onClick:E,overflowedIndicatorPopupClassName:C}=e,x=e5e(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_=Yn(x,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:S});const P=An(function(){var L;E==null||E.apply(void 0,arguments),(L=o.onClick)===null||L===void 0||L.call(o)}),O=o.mode||S,I=w??o.selectable,M=v??b,T={horizontal:{motionName:`${c}-slide-up`},inline:Ug(c),other:{motionName:`${c}-zoom-big`}},D=i("menu",u||o.prefixCls),A=Mr(D),[j,k,F]=ZNe(D,A,!r),V=xe(`${D}-${p}`,l==null?void 0:l.className,f),W=d.useMemo(()=>{var L,Q;if(typeof m=="function"||XT(m))return m||null;if(typeof o.expandIcon=="function"||XT(o.expandIcon))return o.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||XT(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const ee=(L=m??(o==null?void 0:o.expandIcon))!==null&&L!==void 0?L:l==null?void 0:l.expandIcon;return Zo(ee,{className:xe(`${D}-submenu-expand-icon`,d.isValidElement(ee)?(Q=ee.props)===null||Q===void 0?void 0:Q.className:void 0)})},[m,o==null?void 0:o.expandIcon,l==null?void 0:l.expandIcon,D]),K=d.useMemo(()=>({prefixCls:D,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:p,mode:O,disableMenuItemTitleTooltip:g}),[D,M,s,g,p]);return j(d.createElement(J2.Provider,{value:null},d.createElement(Q2.Provider,{value:K},d.createElement(kv,Object.assign({getPopupContainer:a,overflowedIndicator:d.createElement(aD,null),overflowedIndicatorPopupClassName:xe(D,`${D}-${p}`,C),mode:O,selectable:I,onClick:P},_,{inlineCollapsed:M,style:Object.assign(Object.assign({},l==null?void 0:l.style),h),className:V,prefixCls:D,direction:s,defaultMotions:T,expandIcon:W,ref:t,rootClassName:xe(y,k,o.rootClassName,F,A),_internalComponents:t5e})))))}),vc=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(X$);return d.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),d.createElement(n5e,Object.assign({ref:n},e,r))});vc.Item=Loe;vc.SubMenu=zoe;vc.Divider=Foe;vc.ItemGroup=iD;const r5e=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},o5e=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:h,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).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, @@ -316,8 +316,8 @@ html body { &${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:$$},[`&${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:O$}}},eD(e,g,{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({},Qn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ka(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${_e(c)} ${_e(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:`${_e(c)} ${_e(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ka(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_e(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 ${_e(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:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down"),Mv(e,"zoom-big")]]},a5e=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},K$({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),V$(e)),s5e=Kn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=kn(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[i5e(i),o5e(i)]},a5e,{resetStyle:!1}),Q$=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:h,open:p,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:S=!0,placement:w="",overlay:E,transitionName:C}=e,{getPopupContainer:x,getPrefixCls:_,direction:P,dropdown:O}=d.useContext(Yt);ru();const I=d.useMemo(()=>{const se=_();return C!==void 0?C:w.includes("top")?`${se}-slide-down`:`${se}-slide-up`},[_,w,C]),M=d.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:P==="rtl"?"bottomRight":"bottomLeft",[w,P]),T=_("dropdown",o),D=Mr(T),[A,j,k]=s5e(T,D),[,F]=Ho(),V=d.Children.only(J8e(i)?d.createElement("span",null,i):i),W=Zo(V,{className:xe(`${T}-trigger`,{[`${T}-rtl`]:P==="rtl"},V.props.className),disabled:(t=V.props.disabled)!==null&&t!==void 0?t:s}),K=s?[]:a,L=!!(K!=null&&K.includes("contextMenu")),[Q,ee]=xn(!1,{value:p??g}),re=An(se=>{m==null||m(se,{source:"trigger"}),v==null||v(se),ee(se)}),ie=xe(u,f,j,k,D,O==null?void 0:O.className,{[`${T}-rtl`]:P==="rtl"}),G=poe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),X=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),ee(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ne=()=>{let se;return n!=null&&n.items?se=d.createElement(vc,Object.assign({},n)):typeof E=="function"?se=E():se=E,l&&(se=l(se)),se=d.Children.only(typeof se=="string"?d.createElement("span",null,se):se),d.createElement(zoe,{prefixCls:`${T}-menu`,rootClassName:xe(k,D),expandIcon:d.createElement("span",{className:`${T}-menu-submenu-arrow`},d.createElement(rd,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:fe=>{}},se)},[le,ce]=vl("Dropdown",h==null?void 0:h.zIndex);let oe=d.createElement(woe,Object.assign({alignPoint:L},Yn(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:Q,builtinPlacements:G,arrow:!!r,overlayClassName:ie,prefixCls:T,getPopupContainer:c||x,transitionName:I,trigger:K,overlay:ne,placement:M,onVisibleChange:re,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),h),{zIndex:le})}),W);return le&&(oe=d.createElement(L1.Provider,{value:ce},oe)),A(oe)},l5e=jf(Q$,"align",void 0,"dropdown",e=>e),c5e=e=>d.createElement(l5e,Object.assign({},e),d.createElement("span",null));Q$._InternalPanelDoNotUseOrYouWillBeFired=c5e;var Uoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,y={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(D){var A=["th","st","nd","rd"],j=D%100;return"["+D+(A[(j-20)%10]||A[j]||A[0])+"]"}},S=function(D,A,j){var k=String(D);return!k||k.length>=A?D:""+Array(A+1-k.length).join(j)+D},w={s:S,z:function(D){var A=-D.utcOffset(),j=Math.abs(A),k=Math.floor(j/60),F=j%60;return(A<=0?"+":"-")+S(k,2,"0")+":"+S(F,2,"0")},m:function D(A,j){if(A.date()1)return D(W[0])}else{var K=A.name;C[K]=A,F=K}return!k&&F&&(E=F),F||!k&&E},O=function(D,A){if(_(D))return D.clone();var j=typeof A=="object"?A:{};return j.date=D,j.args=arguments,new M(j)},I=w;I.l=P,I.i=_,I.w=function(D,A){return O(D,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var M=function(){function D(j){this.$L=P(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[x]=!0}var A=D.prototype;return A.parse=function(j){this.$d=function(k){var F=k.date,V=k.utc;if(F===null)return new Date(NaN);if(I.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var W=F.match(v);if(W){var K=W[2]-1||0,L=(W[7]||"0").substring(0,3);return V?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,L)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,L)}}return new Date(F)}(j),this.init()},A.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},A.$utils=function(){return I},A.isValid=function(){return this.$d.toString()!==g},A.isSame=function(j,k){var F=O(j);return this.startOf(k)<=F&&F<=this.endOf(k)},A.isAfter=function(j,k){return O(j)25){var u=a(this).startOf(r).add(1,r).date(c),f=a(this).endOf(n);if(u.isBefore(f))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)}}})})(Yoe);var f5e=Yoe.exports;const cD=Fr(f5e);var Xoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(Xoe);var h5e=Xoe.exports;const p5e=Fr(h5e);var Qoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.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(f){switch(f){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(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="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 f}});return i.bind(this)(u)}}})})(Qoe);var m5e=Qoe.exports;const Joe=Fr(m5e);var Zoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,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,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),S=60*y[1]+(+y[2]||0);return S===0?0:y[0]==="+"?-S:S}(v)}],h=function(v){var b=l[v];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(v,b){var y,S=l.meridiem;if(S){for(var w=1;w<=24;w+=1)if(v.indexOf(S(w,0,b))>-1){y=w>12;break}}else y=v===(b?"pm":"PM");return y},m={A:[s,function(v){this.afternoon=p(v,!1)}],a:[s,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],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:[i,u("day")],Do:[s,function(v){var b=l.ordinal,y=v.match(/\d+/);if(this.day=y[0],b)for(var S=1;S<=31;S+=1)b(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(v){var b=h("months"),y=(h("monthsShort")||b.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(v){var b=h("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var b,y;b=v,y=l&&l.formats;for(var S=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,I,M){var T=M&&M.toUpperCase();return I||y[M]||n[M]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,A,j){return A||j.slice(1)})})).match(r),w=S.length,E=0;E-1)return new Date((F==="X"?1e3:1)*k);var K=g(F)(k),L=K.year,Q=K.month,ee=K.day,re=K.hours,ie=K.minutes,G=K.seconds,X=K.milliseconds,ne=K.zone,le=K.week,ce=new Date,oe=ee||(L||Q?1:ce.getDate()),se=L||ce.getFullYear(),fe=0;L&&!Q||(fe=Q>0?Q-1:ce.getMonth());var te,he=re||0,pe=ie||0,Oe=G||0,Me=X||0;return ne?new Date(Date.UTC(se,fe,oe,he,pe,Oe,Me+60*ne.offset*1e3)):V?new Date(Date.UTC(se,fe,oe,he,pe,Oe,Me)):(te=new Date(se,fe,oe,he,pe,Oe,Me),le&&(te=W(te).week(le).toDate()),te)}catch{return new Date("")}}(C,P,x,y),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),M&&C!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var D=P.length,A=1;A<=D;A+=1){_[1]=P[A-1];var j=y.apply(this,_);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}A===D&&(this.$d=new Date(""))}else w.call(this,E)}}})})(Zoe);var g5e=Zoe.exports;const eie=Fr(g5e);qn.extend(eie);qn.extend(Joe);qn.extend(Koe);qn.extend(Goe);qn.extend(cD);qn.extend(p5e);qn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var a=(i||"").replace("Wo","wo");return r.bind(this)(a)}});var v5e={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"},oh=function(t){var n=v5e[t];return n||t.split("_")[0]},tie={getNow:function(){var t=qn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return qn(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 qn().locale(oh(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(oh(t)).weekday(0)},getWeek:function(t,n){return n.locale(oh(t)).week()},getShortWeekDays:function(t){return qn().locale(oh(t)).localeData().weekdaysMin()},getShortMonths:function(t){return qn().locale(oh(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(oh(t)).format(r)},parse:function(t,n,r){for(var o=oh(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),o=$e(r,2),i=o[0],a=o[1],s=function(u,f){a(function(h){return Uy(h,f,u)})},l=d.useMemo(function(){return i.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,i,t,n]);return[l,s]}function lie(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function b5e(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,h=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,b=e.cellDateFormat,y=lie(t,n,r,o,i);return z(z({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:b||v||"D"})}function cie(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,i=t.showMillisecond,a=t.use12Hours;return de.useMemo(function(){return b5e(e,n,r,o,i,a)},[e,n,r,o,i,a])}function L0(e,t,n){return n??t.some(function(r){return e.includes(r)})}var S5e=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function C5e(e){var t=Z$(e,S5e),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=Ht(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function w5e(e){return e&&typeof e=="string"}function uie(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function die(e,t,n,r,o){var i=t,a=n,s=r;if(!e&&!i&&!a&&!s&&!o)i=!0,a=!0,s=!0;else if(e){var l,c,u,f=[i,a,s].some(function(m){return m===!1}),h=[i,a,s].some(function(m){return m===!0}),p=f?!0:!h;i=(l=i)!==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[i,a,s,o]}function fie(e){var t=e.showTime,n=C5e(e),r=$e(n,2),o=r[0],i=r[1],a=t&&Ht(t)==="object"?t:{},s=z(z({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,h=uie(c,u,f,l),p=die(h,c,u,f,l),m=$e(p,3);return c=m[0],u=m[1],f=m[2],[s,z(z({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,i]}function hie(e,t,n,r,o){var i=e==="time";if(e==="datetime"||i){for(var a=r,s=oie(e,o,null),l=s,c=[t,n],u=0;u1&&(a=t.addDate(a,-7)),a}function gi(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function J2(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(a,s){n?r=e[a](r,e[o[s]](n)):r=e[a](r,0)}),r}function $5e(e,t,n,r,o){var i=An(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!ta(e,t,r,a,s.type)||o&&e.isAfter(a,o)&&!ta(e,t,o,a,s.type))});return i}function P5e(e,t,n){return d.useMemo(function(){var r=oie(e,t,n),o=zp(r),i=o[0],a=Ht(i)==="object"&&i.type==="mask"?i.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,n])}function O5e(e,t,n){return typeof e[0]=="function"||n?!0:t}function M5e(e,t,n,r){var o=An(function(i,a){var s=z({type:t},a);if(delete s.activeIndex,!e.isValidate(i)||n&&n(i,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,i,c,{from:s.from}))||{},f=u.disabledHours,h=u.disabledMinutes,p=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,b=r.disabledSeconds,y=f||g,S=h||v,w=p||b,E=e.getHour(i),C=e.getMinute(i),x=e.getSecond(i),_=e.getMillisecond(i);if(y&&y().includes(E)||S&&S(E).includes(C)||w&&w(E,C).includes(x)||m&&m(E,C,x).includes(_))return!0}return!1});return o}function HC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&zp(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function gie(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,i=o===void 0?"date":o,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,h=e.order,p=h===void 0?!0:h,m=e.components,g=m===void 0?{}:m,v=e.inputRender,b=e.allowClear,y=e.clearIcon,S=e.needConfirm,w=e.multiple,E=e.format,C=e.inputReadOnly,x=e.disabledDate,_=e.minDate,P=e.maxDate,O=e.showTime,I=e.value,M=e.defaultValue,T=e.pickerValue,D=e.defaultPickerValue,A=HC(I),j=HC(M),k=HC(T),F=HC(D),V=i==="date"&&O?"datetime":i,W=V==="time"||V==="datetime",K=W||w,L=S??W,Q=fie(e),ee=$e(Q,4),re=ee[0],ie=ee[1],G=ee[2],X=ee[3],ne=cie(r,ie),le=d.useMemo(function(){return hie(V,G,X,re,ne)},[V,G,X,re,ne]),ce=d.useMemo(function(){return z(z({},e),{},{prefixCls:s,locale:ne,picker:i,styles:c,classNames:f,order:p,components:z({input:v},g),clearIcon:x5e(s,b,y),showTime:le,value:A,defaultValue:j,pickerValue:k,defaultPickerValue:F},t==null?void 0:t())},[e]),oe=P5e(V,ne,E),se=$e(oe,2),fe=se[0],te=se[1],he=O5e(fe,C,w),pe=$5e(n,r,x,_,P),Oe=M5e(n,i,pe,le),Me=d.useMemo(function(){return z(z({},ce),{},{needConfirm:L,inputReadOnly:he,disabledDate:pe})},[ce,L,he,pe]);return[Me,V,K,fe,te,Oe]}function T5e(e,t,n){var r=xn(t,{value:e}),o=$e(r,2),i=o[0],a=o[1],s=de.useRef(e),l=de.useRef(),c=function(){zn.cancel(l.current)},u=An(function(){a(s.current),n&&i!==s.current&&n(s.current)}),f=An(function(h,p){c(),s.current=h,h||p?u():l.current=zn(u)});return de.useEffect(function(){return c},[]),[i,f]}function vie(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(u){return u})?!1:e,i=T5e(o,t||!1,r),a=$e(i,2),s=a[0],l=a[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function yie(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var i;(i=t.current)===null||i===void 0||i.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function bie(e,t){return d.useMemo(function(){return e||(t?(yr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=$e(n,2),o=r[0],i=r[1];return{label:o,value:i}})):[])},[e,t])}function pD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Gh(function(){if(e)r.current(e);else{var o=zn(function(){r.current(e)},n);return function(){zn.cancel(o)}}},[e])}function Sie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),o=$e(r,2),i=o[0],a=o[1],s=d.useState(!1),l=$e(s,2),c=l[0],u=l[1],f=d.useRef([]),h=d.useRef(null),p=d.useRef(null),m=function(w){h.current=w},g=function(w){return h.current===w},v=function(w){u(w)},b=function(w){return w&&(p.current=w),p.current},y=function(w){var E=f.current,C=new Set(E.filter(function(_){return w[_]||t[_]})),x=E[E.length-1]===0?1:0;return C.size>=2||e[x]?null:x};return pD(c||n,function(){c||(f.current=[],m(null))}),d.useEffect(function(){c&&f.current.push(i)},[c,i]),[c,v,b,i,a,y,f.current,m,g]}function R5e(e,t,n,r,o,i){var a=n[n.length-1],s=function(c,u){var f=$e(e,2),h=f[0],p=f[1],m=z(z({},u),{},{from:iie(e,n)});return a===1&&t[0]&&h&&!ta(r,o,h,c,m.type)&&r.isAfter(h,c)||a===0&&t[1]&&p&&!ta(r,o,p,c,m.type)&&r.isAfter(c,p)?!0:i==null?void 0:i(c,m)};return s}function py(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 JT=[];function Cie(e,t,n,r,o,i,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:JT,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:JT,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:JT,f=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",g=i||0,v=function(k){var F=e.getNow();return m&&(F=J2(e,F)),l[k]||n[k]||F},b=$e(c,2),y=b[0],S=b[1],w=xn(function(){return v(0)},{value:y}),E=$e(w,2),C=E[0],x=E[1],_=xn(function(){return v(1)},{value:S}),P=$e(_,2),O=P[0],I=P[1],M=d.useMemo(function(){var j=[C,O][g];return m?j:J2(e,j,u[g])},[m,C,O,g,e,u]),T=function(k){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",V=[x,I][g];V(k);var W=[C,O];W[g]=k,f&&(!ta(e,t,C,W[0],a)||!ta(e,t,O,W[1],a))&&f(W,{source:F,range:g===1?"end":"start",mode:r})},D=function(k,F){if(s){var V={date:"month",week:"month",month:"year",quarter:"year"},W=V[a];if(W&&!ta(e,t,k,F,W))return py(e,a,F,-1);if(a==="year"&&k){var K=Math.floor(e.getYear(k)/10),L=Math.floor(e.getYear(F)/10);if(K!==L)return py(e,a,F,-1)}}return F},A=d.useRef(null);return Zn(function(){if(o&&!l[g]){var j=m?null:e.getNow();if(A.current!==null&&A.current!==g?j=[C,O][g^1]:n[g]?j=g===0?n[0]:D(n[0],n[1]):n[g^1]&&(j=n[g^1]),j){h&&e.isAfter(h,j)&&(j=h);var k=s?py(e,a,j,1):j;p&&e.isAfter(k,p)&&(j=s?py(e,a,p,-1):p),T(j,"reset")}}},[o,g,n[g]]),d.useEffect(function(){o?A.current=g:A.current=null},[o,g]),Zn(function(){o&&l&&l[g]&&T(l[g],"reset")},[o,g]),[M,T]}function wie(e,t){var n=d.useRef(e),r=d.useState({}),o=$e(r,2),i=o[1],a=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,i({})};return[a,s,a(!0)]}var I5e=[];function xie(e,t,n){var r=function(a){return a.map(function(s){return gi(s,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,s){for(var l=Math.max(a.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=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=o.includes(l);(!c||!r)&&a.push({label:uD(l,i),value:l,disabled:c})}return a}function mD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,i=r.hourStep,a=i===void 0?1:i,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,h=f===void 0?100:f,p=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,b=r.disabledSeconds,y=d.useMemo(function(){return n||e.getNow()},[n,e]),S=d.useCallback(function(F){var V=(m==null?void 0:m(F))||{};return[V.disabledHours||g||UC,V.disabledMinutes||v||UC,V.disabledSeconds||b||UC,V.disabledMilliseconds||UC]},[m,g,v,b]),w=d.useMemo(function(){return S(y)},[y,S]),E=$e(w,4),C=E[0],x=E[1],_=E[2],P=E[3],O=d.useCallback(function(F,V,W,K){var L=WC(0,23,a,p,F()),Q=o?L.map(function(G){return z(z({},G),{},{label:uD(G.value%12||12,2)})}):L,ee=function(X){return WC(0,59,l,p,V(X))},re=function(X,ne){return WC(0,59,u,p,W(X,ne))},ie=function(X,ne,le){return WC(0,999,h,p,K(X,ne,le),3)};return[Q,ee,re,ie]},[p,a,o,h,l,u]),I=d.useMemo(function(){return O(C,x,_,P)},[O,C,x,_,P]),M=$e(I,4),T=M[0],D=M[1],A=M[2],j=M[3],k=function(V,W){var K=function(){return T},L=D,Q=A,ee=j;if(W){var re=S(W),ie=$e(re,4),G=ie[0],X=ie[1],ne=ie[2],le=ie[3],ce=O(G,X,ne,le),oe=$e(ce,4),se=oe[0],fe=oe[1],te=oe[2],he=oe[3];K=function(){return se},L=fe,Q=te,ee=he}var pe=N5e(V,K,L,Q,ee,e);return pe};return[k,T,D,A,j]}function A5e(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,i=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,h=d.useContext(yc),p=h.prefixCls,m=h.locale,g=h.button,v=g===void 0?"button":g,b=u.getNow(),y=mD(u,i,b),S=$e(y,1),w=S[0],E=r==null?void 0:r(t),C=f(b,{type:t}),x=function(){if(!C){var D=w(b);s(D)}},_="".concat(p,"-now"),P="".concat(_,"-btn"),O=o&&d.createElement("li",{className:_},d.createElement("a",{className:xe(P,C&&"".concat(P,"-disabled")),"aria-disabled":C,onClick:x},n==="date"?m.today:m.now)),I=c&&d.createElement("li",{className:"".concat(p,"-ok")},d.createElement(v,{disabled:l,onClick:a},m.ok)),M=(O||I)&&d.createElement("ul",{className:"".concat(p,"-ranges")},O,I);return!E&&!M?null:d.createElement("div",{className:"".concat(p,"-footer")},E&&d.createElement("div",{className:"".concat(p,"-footer-extra")},E),M)}function Oie(e,t,n){function r(o,i){var a=o.findIndex(function(l){return ta(e,t,l,i,n)});if(a===-1)return[].concat(Ze(o),[i]);var s=Ze(o);return s.splice(a,1),s}return r}var Hp=d.createContext(null);function tP(){return d.useContext(Hp)}function Nv(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,h=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,S=r.getNow(),w={now:S,values:h,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:b,superNextIcon:y};return[w,S]}var vf=d.createContext({});function Q1(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,i=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,h=f===void 0?!0:f,p=e.disabledDate,m=tP(),g=m.prefixCls,v=m.panelType,b=m.now,y=m.disabledDate,S=m.cellRender,w=m.onHover,E=m.hoverValue,C=m.hoverRangeValue,x=m.generateConfig,_=m.values,P=m.locale,O=m.onSelect,I=p||y,M="".concat(g,"-cell"),T=d.useContext(vf),D=T.onCellDblClick,A=function(Q){return _.some(function(ee){return ee&&ta(x,P,Q,ee,v)})},j=[],k=0;k1&&arguments[1]!==void 0?arguments[1]:!1;ve(De),v==null||v(De),qe&&be(De)},Ne=function(De,qe){ne(De),qe&&Pe(qe),be(qe,De)},U=function(De){if(Oe(De),Pe(De),X!==w){var qe=["decade","year"],je=[].concat(qe,["month"]),Ke={quarter:[].concat(qe,["quarter"]),week:[].concat(Ze(je),["week"]),date:[].concat(Ze(je),["date"])},Ue=Ke[w]||je,Ve=Ue.indexOf(X),St=Ue[Ve+1];St&&Ne(St,De)}},H=d.useMemo(function(){var ge,De;if(Array.isArray(x)){var qe=$e(x,2);ge=qe[0],De=qe[1]}else ge=x;return!ge&&!De?null:(ge=ge||De,De=De||ge,o.isAfter(ge,De)?[De,ge]:[ge,De])},[x,o]),q=dD(_,P,O),me=M[le]||q5e[le]||nP,Ce=d.useContext(vf),ue=d.useMemo(function(){return z(z({},Ce),{},{hideHeader:T})},[Ce,T]),Le="".concat(D,"-panel"),He=Z$(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(vf.Provider,{value:ue},d.createElement("div",{ref:A,tabIndex:l,className:xe(Le,Z({},"".concat(Le,"-rtl"),i==="rtl"))},d.createElement(me,Ge({},He,{showTime:ee,prefixCls:D,locale:L,generateConfig:o,onModeChange:Ne,pickerValue:ye,onPickerValueChange:function(De){Pe(De,!0)},value:he[0],onSelect:U,values:he,cellRender:q,hoverRangeValue:H,hoverValue:C}))))}var ix=d.memo(d.forwardRef(G5e));function Y5e(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(yc),u=c.prefixCls,f=c.generateConfig,h=d.useCallback(function(y,S){return py(f,t,y,S)},[f,t]),p=d.useMemo(function(){return h(r,1)},[r,h]),m=function(S){o(h(S,-1))},g={onCellDblClick:function(){i&&a()}},v=t==="time",b=z(z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?b.hoverRangeValue=l:b.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(vf.Provider,{value:z(z({},g),{},{hideNext:!0})},d.createElement(ix,b)),d.createElement(vf.Provider,{value:z(z({},g),{},{hidePrev:!0})},d.createElement(ix,Ge({},b,{pickerValue:p,onPickerValueChange:m})))):d.createElement(vf.Provider,{value:z({},g)},d.createElement(ix,b))}function NH(e){return typeof e=="function"?e():e}function X5e(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(i,a){var s=i.label,l=i.value;return d.createElement("li",{key:a,onClick:function(){r(NH(l))},onMouseEnter:function(){o(NH(l))},onMouseLeave:function(){o(null)}},s)}))):null}function Tie(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,i=e.range,a=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,h=e.onPresetSubmit,p=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,v=e.direction,b=e.value,y=e.onSelect,S=e.isInvalid,w=e.defaultOpenValue,E=e.onOk,C=e.onSubmit,x=d.useContext(yc),_=x.prefixCls,P="".concat(_,"-panel"),O=v==="rtl",I=d.useRef(null),M=d.useRef(null),T=d.useState(0),D=$e(T,2),A=D[0],j=D[1],k=d.useState(0),F=$e(k,2),V=F[0],W=F[1],K=function(pe){pe.offsetWidth&&j(pe.offsetWidth)};d.useEffect(function(){if(i){var he,pe=((he=I.current)===null||he===void 0?void 0:he.offsetWidth)||0,Oe=A-pe;l<=Oe?W(0):W(l+pe-A)}},[A,l,i]);function L(he){return he.filter(function(pe){return pe})}var Q=d.useMemo(function(){return L(zp(b))},[b]),ee=r==="time"&&!Q.length,re=d.useMemo(function(){return ee?L([w]):Q},[ee,Q,w]),ie=ee?w:Q,G=d.useMemo(function(){return re.length?re.some(function(he){return S(he)}):!0},[re,S]),X=function(){ee&&y(w),E(),C()},ne=d.createElement("div",{className:"".concat(_,"-panel-layout")},d.createElement(X5e,{prefixCls:_,presets:u,onClick:h,onHover:f}),d.createElement("div",null,d.createElement(Y5e,Ge({},e,{value:ie})),d.createElement(A5e,Ge({},e,{showNow:a?!1:o,invalid:G,onSubmit:X}))));t&&(ne=t(ne));var le="".concat(P,"-container"),ce="marginLeft",oe="marginRight",se=d.createElement("div",{onMouseDown:g,tabIndex:-1,className:xe(le,"".concat(_,"-").concat(n,"-panel-container")),style:Z(Z({},O?oe:ce,V),O?ce:oe,"auto"),onFocus:p,onBlur:m},ne);if(i){var fe=J$(c,O),te=nie(fe,O);se=d.createElement("div",{onMouseDown:g,ref:M,className:xe("".concat(_,"-range-wrapper"),"".concat(_,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:I,className:"".concat(_,"-range-arrow"),style:Z({},te,l)}),d.createElement(Oi,{onResize:K},se))}return se}function Rie(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,i=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,h=e.onBlur,p=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,b=e.onKeyDown,y=e.onChange,S=e.activeHelp,w=e.name,E=e.autoComplete,C=e.id,x=e.value,_=e.invalid,P=e.placeholder,O=e.disabled,I=e.activeIndex,M=e.allHelp,T=e.picker,D=function(L,Q){var ee=o.locale.parse(i.locale,L,[Q]);return ee&&o.isValidate(ee)?ee:null},A=n[0],j=d.useCallback(function(K){return gi(K,{locale:i,format:A,generateConfig:o})},[i,o,A]),k=d.useMemo(function(){return x.map(j)},[x,j]),F=d.useMemo(function(){var K=T==="time"?8:10,L=typeof A=="function"?A(o.getNow()).length:A.length;return Math.max(K,L)+2},[A,T,o]),V=function(L){for(var Q=0;Q=s&&n<=l)return i;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?wt:Et));var Fe=We+Ct,Xe=Et-wt+1;return String(wt+(Xe+Fe-wt)%Xe)};switch(De){case"Backspace":case"Delete":qe="",je=Ue;break;case"ArrowLeft":qe="",Ve(-1);break;case"ArrowRight":qe="",Ve(1);break;case"ArrowUp":qe="",je=St(1);break;case"ArrowDown":qe="",je=St(-1);break;default:isNaN(Number(De))||(qe=K+De,je=qe);break}if(qe!==null&&(L(qe),qe.length>=Ke&&(Ve(1),L(""))),je!==null){var et=ce.slice(0,pe)+uD(je,Ke)+ce.slice(Oe);Se(et.slice(0,a.length))}le({})},ue=d.useRef();Zn(function(){if(!(!T||!a||be.current)){if(!fe.match(ce)){Se(a);return}return se.current.setSelectionRange(pe,Oe),ue.current=zn(function(){se.current.setSelectionRange(pe,Oe)}),function(){zn.cancel(ue.current)}}},[fe,a,T,ce,re,pe,Oe,ne,Se]);var Le=a?{onFocus:U,onBlur:q,onKeyDown:Ce,onMouseDown:Pe,onMouseUp:Ne,onPaste:ve}:{};return d.createElement("div",{ref:oe,className:xe(O,Z(Z({},"".concat(O,"-active"),n&&o),"".concat(O,"-placeholder"),c))},d.createElement(P,Ge({ref:se,"aria-invalid":g,autoComplete:"off"},b,{onKeyDown:me,onBlur:H},Le,{value:ce,onChange:ye})),d.createElement(rP,{type:"suffix",icon:i}),v)}),rAe=["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"],oAe=["index"],iAe=["insetInlineStart","insetInlineEnd"];function aAe(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,i=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,f=e.className,h=e.style,p=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,b=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var S=e.onActiveOffset,w=e.placement,E=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,x=e.tabIndex,_=At(e,rAe),P=y==="rtl",O=d.useContext(yc),I=O.prefixCls,M=d.useMemo(function(){if(typeof n=="string")return[n];var se=n||{};return[se.start,se.end]},[n]),T=d.useRef(),D=d.useRef(),A=d.useRef(),j=function(fe){var te;return(te=[D,A][fe])===null||te===void 0?void 0:te.current};d.useImperativeHandle(t,function(){return{nativeElement:T.current,focus:function(fe){if(Ht(fe)==="object"){var te,he=fe||{},pe=he.index,Oe=pe===void 0?0:pe,Me=At(he,oAe);(te=j(Oe))===null||te===void 0||te.focus(Me)}else{var Se;(Se=j(fe??0))===null||Se===void 0||Se.focus()}},blur:function(){var fe,te;(fe=j(0))===null||fe===void 0||fe.blur(),(te=j(1))===null||te===void 0||te.blur()}}});var k=Iie(_),F=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),V=Rie(z(z({},e),{},{id:M,placeholder:F})),W=$e(V,1),K=W[0],L=J$(w,P),Q=nie(L,P),ee=L==null?void 0:L.toLowerCase().endsWith("right"),re=d.useState({position:"absolute",width:0}),ie=$e(re,2),G=ie[0],X=ie[1],ne=An(function(){var se=j(l);if(se){var fe=se.nativeElement,te=fe.offsetWidth,he=fe.offsetLeft,pe=fe.offsetParent,Oe=(pe==null?void 0:pe.offsetWidth)||0,Me=ee?Oe-te-he:he;X(function(Se){Se.insetInlineStart,Se.insetInlineEnd;var ye=At(Se,iAe);return z(z({},ye),{},Z({width:te},Q,Me))}),S(Me)}});d.useEffect(function(){ne()},[l]);var le=o&&(g[0]&&!v[0]||g[1]&&!v[1]),ce=C&&!v[0],oe=C&&!ce&&!v[1];return d.createElement(Oi,{onResize:ne},d.createElement("div",Ge({},k,{className:xe(I,"".concat(I,"-range"),Z(Z(Z(Z({},"".concat(I,"-focused"),c),"".concat(I,"-disabled"),v.every(function(se){return se})),"".concat(I,"-invalid"),b.some(function(se){return se})),"".concat(I,"-rtl"),P),f),style:h,ref:T,onClick:p,onMouseDown:function(fe){var te=fe.target;te!==D.current.inputElement&&te!==A.current.inputElement&&fe.preventDefault(),E==null||E(fe)}}),r&&d.createElement("div",{className:"".concat(I,"-prefix")},r),d.createElement(p6,Ge({ref:D},K(0),{autoFocus:ce,tabIndex:x,"date-range":"start"})),d.createElement("div",{className:"".concat(I,"-range-separator")},s),d.createElement(p6,Ge({ref:A},K(1),{autoFocus:oe,tabIndex:x,"date-range":"end"})),d.createElement("div",{className:"".concat(I,"-active-bar"),style:G}),d.createElement(rP,{type:"suffix",icon:i}),le&&d.createElement(h6,{icon:o,onClear:m})))}var sAe=d.forwardRef(aAe);function DH(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function KC(e){return e===1?"end":"start"}function lAe(e,t){var n=gie(e,function(){var rn=e.disabled,fn=e.allowEmpty,Sn=DH(rn,!1),Dn=DH(fn,!1);return{disabled:Sn,allowEmpty:Dn}}),r=$e(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=o.prefixCls,f=o.styles,h=o.classNames,p=o.placement,m=o.defaultValue,g=o.value,v=o.needConfirm,b=o.onKeyDown,y=o.disabled,S=o.allowEmpty,w=o.disabledDate,E=o.minDate,C=o.maxDate,x=o.defaultOpen,_=o.open,P=o.onOpenChange,O=o.locale,I=o.generateConfig,M=o.picker,T=o.showNow,D=o.showToday,A=o.showTime,j=o.mode,k=o.onPanelChange,F=o.onCalendarChange,V=o.onOk,W=o.defaultPickerValue,K=o.pickerValue,L=o.onPickerValueChange,Q=o.inputReadOnly,ee=o.suffixIcon,re=o.onFocus,ie=o.onBlur,G=o.presets,X=o.ranges,ne=o.components,le=o.cellRender,ce=o.dateRender,oe=o.monthCellRender,se=o.onClick,fe=yie(t),te=vie(_,x,y,P),he=$e(te,2),pe=he[0],Oe=he[1],Me=function(fn,Sn){(y.some(function(Dn){return!Dn})||!fn)&&Oe(fn,Sn)},Se=_ie(I,O,s,!0,!1,m,g,F,V),ye=$e(Se,5),ve=ye[0],be=ye[1],Pe=ye[2],Ne=ye[3],U=ye[4],H=Pe(),q=Sie(y,S,pe),me=$e(q,9),Ce=me[0],ue=me[1],Le=me[2],He=me[3],ge=me[4],De=me[5],qe=me[6],je=me[7],Ke=me[8],Ue=function(fn,Sn){ue(!0),re==null||re(fn,{range:KC(Sn??He)})},Ve=function(fn,Sn){ue(!1),ie==null||ie(fn,{range:KC(Sn??He)})},St=d.useMemo(function(){if(!A)return null;var rn=A.disabledTime,fn=rn?function(Sn){var Dn=KC(He),cr=iie(H,qe,He);return rn(Sn,Dn,{from:cr})}:void 0;return z(z({},A),{},{disabledTime:fn})},[A,He,H,qe]),et=xn([M,M],{value:j}),st=$e(et,2),Ct=st[0],dt=st[1],Lt=Ct[He]||M,wt=Lt==="date"&&St?"datetime":Lt,Et=wt===M&&wt!=="time",Tt=Pie(M,Lt,T,D,!0),Be=$ie(o,ve,be,Pe,Ne,y,s,Ce,pe,c),We=$e(Be,2),Fe=We[0],Xe=We[1],gt=R5e(H,y,qe,I,O,w),pt=sie(H,c,S),Rt=$e(pt,2),_t=Rt[0],vt=Rt[1],ft=Cie(I,O,H,Ct,pe,He,i,Et,W,K,St==null?void 0:St.defaultOpenValue,L,E,C),It=$e(ft,2),bt=It[0],Wt=It[1],at=An(function(rn,fn,Sn){var Dn=Uy(Ct,He,fn);if((Dn[0]!==Ct[0]||Dn[1]!==Ct[1])&&dt(Dn),k&&Sn!==!1){var cr=Ze(H);rn&&(cr[He]=rn),k(cr,Dn)}}),Pt=function(fn,Sn){return Uy(H,Sn,fn)},Bt=function(fn,Sn){var Dn=H;fn&&(Dn=Pt(fn,He)),je(He);var cr=De(Dn);Ne(Dn),Fe(He,cr===null),cr===null?Me(!1,{force:!0}):Sn||fe.current.focus({index:cr})},xt=function(fn){var Sn,Dn=fn.target.getRootNode();if(!fe.current.nativeElement.contains((Sn=Dn.activeElement)!==null&&Sn!==void 0?Sn:document.activeElement)){var cr=y.findIndex(function(Uo){return!Uo});cr>=0&&fe.current.focus({index:cr})}Me(!0),se==null||se(fn)},yt=function(){Xe(null),Me(!1,{force:!0})},Ft=d.useState(null),Re=$e(Ft,2),kt=Re[0],tt=Re[1],Mt=d.useState(null),Ot=$e(Mt,2),pn=Ot[0],Pn=Ot[1],$=d.useMemo(function(){return pn||H},[H,pn]);d.useEffect(function(){pe||Pn(null)},[pe]);var R=d.useState(0),J=$e(R,2),Ee=J[0],ke=J[1],Je=bie(G,X),Dt=function(fn){Pn(fn),tt("preset")},an=function(fn){var Sn=Xe(fn);Sn&&Me(!1,{force:!0})},En=function(fn){Bt(fn)},Cr=function(fn){Pn(fn?Pt(fn,He):null),tt("cell")},ur=function(fn){Me(!0),Ue(fn)},Nr=function(){Le("panel")},tr=function(fn){var Sn=Uy(H,He,fn);Ne(Sn),!v&&!a&&i===wt&&Bt(fn)},en=function(){Me(!1)},un=dD(le,ce,oe,KC(He)),rr=H[He]||null,Qt=An(function(rn){return c(rn,{activeIndex:He})}),Jt=d.useMemo(function(){var rn=Jr(o,!1),fn=Yn(o,[].concat(Ze(Object.keys(rn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return fn},[o]),Rn=d.createElement(Tie,Ge({},Jt,{showNow:Tt,showTime:St,range:!0,multiplePanel:Et,activeOffset:Ee,placement:p,disabledDate:gt,onFocus:ur,onBlur:Ve,onPanelMouseDown:Nr,picker:M,mode:Lt,internalMode:wt,onPanelChange:at,format:l,value:rr,isInvalid:Qt,onChange:null,onSelect:tr,pickerValue:bt,defaultOpenValue:zp(A==null?void 0:A.defaultOpenValue)[He],onPickerValueChange:Wt,hoverValue:$,onHover:Cr,needConfirm:v,onSubmit:Bt,onOk:U,presets:Je,onPresetHover:Dt,onPresetSubmit:an,onNow:En,cellRender:un})),er=function(fn,Sn){var Dn=Pt(fn,Sn);Ne(Dn)},$r=function(){Le("input")},ao=function(fn,Sn){var Dn=qe.length,cr=qe[Dn-1];if(Dn&&cr!==Sn&&v&&!S[cr]&&!Ke(cr)&&H[cr]){fe.current.focus({index:cr});return}Le("input"),Me(!0,{inherit:!0}),He!==Sn&&pe&&!v&&a&&Bt(null,!0),ge(Sn),Ue(fn,Sn)},Bn=function(fn,Sn){if(Me(!1),!v&&Le()==="input"){var Dn=De(H);Fe(He,Dn===null)}Ve(fn,Sn)},Yr=function(fn,Sn){fn.key==="Tab"&&Bt(null,!0),b==null||b(fn,Sn)},Fn=d.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:I,button:ne.button,input:ne.input}},[u,O,I,ne.button,ne.input]);return Zn(function(){pe&&He!==void 0&&at(null,M,!1)},[pe,He,M]),Zn(function(){var rn=Le();!pe&&rn==="input"&&(Me(!1),Bt(null,!0)),!pe&&a&&!v&&rn==="panel"&&(Me(!0),Bt())},[pe]),d.createElement(yc.Provider,{value:Fn},d.createElement(rie,Ge({},aie(o),{popupElement:Rn,popupStyle:f.popup,popupClassName:h.popup,visible:pe,onClose:en,range:!0}),d.createElement(sAe,Ge({},o,{ref:fe,suffixIcon:ee,activeIndex:Ce||pe?He:null,activeHelp:!!pn,allHelp:!!pn&&kt==="preset",focused:Ce,onFocus:ao,onBlur:Bn,onKeyDown:Yr,onSubmit:Bt,value:$,maskFormat:l,onChange:er,onInputChange:$r,format:s,inputReadOnly:Q,disabled:y,open:pe,onOpenChange:Me,onClick:xt,onClear:yt,invalid:_t,onInvalid:vt,onActiveOffset:ke}))))}var cAe=d.forwardRef(lAe);function uAe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,i=o===void 0?"×":o,a=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),h="".concat(f,"-overflow");function p(v,b){return d.createElement("span",{className:xe("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&b&&d.createElement("span",{onMouseDown:function(S){S.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},i))}function m(v){var b=a(v),y=function(w){w&&w.stopPropagation(),r(v)};return p(b,y)}function g(v){var b="+ ".concat(v.length," ...");return p(b)}return d.createElement("div",{className:u},d.createElement(ql,{prefixCls:h,data:n,renderItem:m,renderRest:g,itemKey:function(b){return a(b)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var dAe=["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 fAe(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,i=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,f=e.style,h=e.onClick,p=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,b=e.onSubmit;e.onInputChange;var y=e.multiple,S=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,E=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var x=e.onMouseDown;e.required,e["aria-required"];var _=e.autoFocus,P=e.tabIndex,O=e.removeIcon,I=At(e,dAe),M=C==="rtl",T=d.useContext(yc),D=T.prefixCls,A=d.useRef(),j=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(G){var X;(X=j.current)===null||X===void 0||X.focus(G)},blur:function(){var G;(G=j.current)===null||G===void 0||G.blur()}}});var k=Iie(I),F=function(G){v([G])},V=function(G){var X=g.filter(function(ne){return ne&&!ta(l,s,ne,G,m)});v(X),n||b()},W=Rie(z(z({},e),{},{onChange:F}),function(ie){var G=ie.valueTexts;return{value:G[0]||"",active:a}}),K=$e(W,2),L=K[0],Q=K[1],ee=!!(o&&g.length&&!w),re=y?d.createElement(d.Fragment,null,d.createElement(uAe,{prefixCls:D,value:g,onRemove:V,formatDate:Q,maxTagCount:S,disabled:w,removeIcon:O,placeholder:c}),d.createElement("input",{className:"".concat(D,"-multiple-input"),value:g.map(Q).join(","),ref:j,readOnly:!0,autoFocus:_,tabIndex:P}),d.createElement(rP,{type:"suffix",icon:i}),ee&&d.createElement(h6,{icon:o,onClear:p})):d.createElement(p6,Ge({ref:j},L(),{autoFocus:_,tabIndex:P,suffixIcon:i,clearIcon:ee&&d.createElement(h6,{icon:o,onClear:p}),showActiveCls:!1}));return d.createElement("div",Ge({},k,{className:xe(D,Z(Z(Z(Z(Z({},"".concat(D,"-multiple"),y),"".concat(D,"-focused"),a),"".concat(D,"-disabled"),w),"".concat(D,"-invalid"),E),"".concat(D,"-rtl"),M),u),style:f,ref:A,onClick:h,onMouseDown:function(G){var X,ne=G.target;ne!==((X=j.current)===null||X===void 0?void 0:X.inputElement)&&G.preventDefault(),x==null||x(G)}}),r&&d.createElement("div",{className:"".concat(D,"-prefix")},r),re)}var hAe=d.forwardRef(fAe);function pAe(e,t){var n=gie(e),r=$e(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=o,f=u.prefixCls,h=u.styles,p=u.classNames,m=u.order,g=u.defaultValue,v=u.value,b=u.needConfirm,y=u.onChange,S=u.onKeyDown,w=u.disabled,E=u.disabledDate,C=u.minDate,x=u.maxDate,_=u.defaultOpen,P=u.open,O=u.onOpenChange,I=u.locale,M=u.generateConfig,T=u.picker,D=u.showNow,A=u.showToday,j=u.showTime,k=u.mode,F=u.onPanelChange,V=u.onCalendarChange,W=u.onOk,K=u.multiple,L=u.defaultPickerValue,Q=u.pickerValue,ee=u.onPickerValueChange,re=u.inputReadOnly,ie=u.suffixIcon,G=u.removeIcon,X=u.onFocus,ne=u.onBlur,le=u.presets,ce=u.components,oe=u.cellRender,se=u.dateRender,fe=u.monthCellRender,te=u.onClick,he=yie(t);function pe(Qt){return Qt===null?null:K?Qt:Qt[0]}var Oe=Oie(M,I,i),Me=vie(P,_,[w],O),Se=$e(Me,2),ye=Se[0],ve=Se[1],be=function(Jt,Rn,er){if(V){var $r=z({},er);delete $r.range,V(pe(Jt),pe(Rn),$r)}},Pe=function(Jt){W==null||W(pe(Jt))},Ne=_ie(M,I,s,!1,m,g,v,be,Pe),U=$e(Ne,5),H=U[0],q=U[1],me=U[2],Ce=U[3],ue=U[4],Le=me(),He=Sie([w]),ge=$e(He,4),De=ge[0],qe=ge[1],je=ge[2],Ke=ge[3],Ue=function(Jt){qe(!0),X==null||X(Jt,{})},Ve=function(Jt){qe(!1),ne==null||ne(Jt,{})},St=xn(T,{value:k}),et=$e(St,2),st=et[0],Ct=et[1],dt=st==="date"&&j?"datetime":st,Lt=Pie(T,st,D,A),wt=y&&function(Qt,Jt){y(pe(Qt),pe(Jt))},Et=$ie(z(z({},o),{},{onChange:wt}),H,q,me,Ce,[],s,De,ye,c),Tt=$e(Et,2),Be=Tt[1],We=sie(Le,c),Fe=$e(We,2),Xe=Fe[0],gt=Fe[1],pt=d.useMemo(function(){return Xe.some(function(Qt){return Qt})},[Xe]),Rt=function(Jt,Rn){if(ee){var er=z(z({},Rn),{},{mode:Rn.mode[0]});delete er.range,ee(Jt[0],er)}},_t=Cie(M,I,Le,[st],ye,Ke,i,!1,L,Q,zp(j==null?void 0:j.defaultOpenValue),Rt,C,x),vt=$e(_t,2),ft=vt[0],It=vt[1],bt=An(function(Qt,Jt,Rn){if(Ct(Jt),F&&Rn!==!1){var er=Qt||Le[Le.length-1];F(er,Jt)}}),Wt=function(){Be(me()),ve(!1,{force:!0})},at=function(Jt){!w&&!he.current.nativeElement.contains(document.activeElement)&&he.current.focus(),ve(!0),te==null||te(Jt)},Pt=function(){Be(null),ve(!1,{force:!0})},Bt=d.useState(null),xt=$e(Bt,2),yt=xt[0],Ft=xt[1],Re=d.useState(null),kt=$e(Re,2),tt=kt[0],Mt=kt[1],Ot=d.useMemo(function(){var Qt=[tt].concat(Ze(Le)).filter(function(Jt){return Jt});return K?Qt:Qt.slice(0,1)},[Le,tt,K]),pn=d.useMemo(function(){return!K&&tt?[tt]:Le.filter(function(Qt){return Qt})},[Le,tt,K]);d.useEffect(function(){ye||Mt(null)},[ye]);var Pn=bie(le),$=function(Jt){Mt(Jt),Ft("preset")},R=function(Jt){var Rn=K?Oe(me(),Jt):[Jt],er=Be(Rn);er&&!K&&ve(!1,{force:!0})},J=function(Jt){R(Jt)},Ee=function(Jt){Mt(Jt),Ft("cell")},ke=function(Jt){ve(!0),Ue(Jt)},Je=function(Jt){if(je("panel"),!(K&&dt!==T)){var Rn=K?Oe(me(),Jt):[Jt];Ce(Rn),!b&&!a&&i===dt&&Wt()}},Dt=function(){ve(!1)},an=dD(oe,se,fe),En=d.useMemo(function(){var Qt=Jr(o,!1),Jt=Yn(o,[].concat(Ze(Object.keys(Qt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return z(z({},Jt),{},{multiple:o.multiple})},[o]),Cr=d.createElement(Tie,Ge({},En,{showNow:Lt,showTime:j,disabledDate:E,onFocus:ke,onBlur:Ve,picker:T,mode:st,internalMode:dt,onPanelChange:bt,format:l,value:Le,isInvalid:c,onChange:null,onSelect:Je,pickerValue:ft,defaultOpenValue:j==null?void 0:j.defaultOpenValue,onPickerValueChange:It,hoverValue:Ot,onHover:Ee,needConfirm:b,onSubmit:Wt,onOk:ue,presets:Pn,onPresetHover:$,onPresetSubmit:R,onNow:J,cellRender:an})),ur=function(Jt){Ce(Jt)},Nr=function(){je("input")},tr=function(Jt){je("input"),ve(!0,{inherit:!0}),Ue(Jt)},en=function(Jt){ve(!1),Ve(Jt)},un=function(Jt,Rn){Jt.key==="Tab"&&Wt(),S==null||S(Jt,Rn)},rr=d.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:M,button:ce.button,input:ce.input}},[f,I,M,ce.button,ce.input]);return Zn(function(){ye&&Ke!==void 0&&bt(null,T,!1)},[ye,Ke,T]),Zn(function(){var Qt=je();!ye&&Qt==="input"&&(ve(!1),Wt()),!ye&&a&&!b&&Qt==="panel"&&(ve(!0),Wt())},[ye]),d.createElement(yc.Provider,{value:rr},d.createElement(rie,Ge({},aie(o),{popupElement:Cr,popupStyle:h.popup,popupClassName:p.popup,visible:ye,onClose:Dt}),d.createElement(hAe,Ge({},o,{ref:he,suffixIcon:ie,removeIcon:G,activeHelp:!!tt,allHelp:!!tt&&yt==="preset",focused:De,onFocus:tr,onBlur:en,onKeyDown:un,onSubmit:Wt,value:pn,maskFormat:l,onChange:ur,onInputChange:Nr,internalPicker:i,format:s,inputReadOnly:re,disabled:w,open:ye,onOpenChange:ve,onClick:at,onClear:Pt,invalid:pt,onInvalid:function(Jt){gt(Jt,0)}}))))}var mAe=d.forwardRef(pAe);const kie=d.createContext(null),gAe=kie.Provider,Nie=d.createContext(null),vAe=Nie.Provider;var yAe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Aie=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,h=e.title,p=e.onChange,m=At(e,yAe),g=d.useRef(null),v=d.useRef(null),b=xn(c,{value:a}),y=$e(b,2),S=y[0],w=y[1];d.useImperativeHandle(t,function(){return{focus:function(_){var P;(P=g.current)===null||P===void 0||P.focus(_)},blur:function(){var _;(_=g.current)===null||_===void 0||_.blur()},input:g.current,nativeElement:v.current}});var E=xe(r,o,Z(Z({},"".concat(r,"-checked"),S),"".concat(r,"-disabled"),s)),C=function(_){s||("checked"in e||w(_.target.checked),p==null||p({target:z(z({},e),{},{type:f,checked:_.target.checked}),stopPropagation:function(){_.stopPropagation()},preventDefault:function(){_.preventDefault()},nativeEvent:_.nativeEvent}))};return d.createElement("span",{className:E,title:h,style:i,ref:v},d.createElement("input",Ge({},m,{className:"".concat(r,"-input"),ref:g,onChange:C,disabled:s,checked:!!S,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function Die(e){const t=de.useRef(null),n=()=>{zn.cancel(t.current),t.current=null};return[()=>{n(),t.current=zn(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const bAe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Qn(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"}})}},SAe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:h,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:b,calc:y}=e,S=`${t}-inner`,E=y(o).sub(y(4).mul(2)),C=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qn(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:`${_e(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:Object.assign({},rc(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:C,height:C,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,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`]:{[S]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${y(E).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},CAe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:h,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:w,colorTextDisabled:E,colorBgContainerDisabled:C,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:_,colorPrimary:P,colorPrimaryHover:O,colorPrimaryActive:I,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:D,calc:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:_e(A(n).sub(A(o).mul(2)).equal()),background:f,border:`${_e(o)} ${i} ${a}`,borderBlockStartWidth:A(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,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:A(o).mul(-1).equal(),insetInlineStart:A(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${_e(o)} ${i} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:h,lineHeight:_e(A(p).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:m,paddingInline:A(g).sub(o).equal(),paddingBlock:0,lineHeight:_e(A(m).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Object.assign({},rc(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:P,background:S,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:M,borderColor:M,"&:hover":{color:w,background:T,borderColor:T},"&:active":{color:w,background:D,borderColor:D}},"&-disabled":{color:E,backgroundColor:C,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:C,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:_,backgroundColor:x,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},wAe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:h,colorPrimaryActive:p,colorWhite:m}=e,g=4,v=i,b=t?v-g*2:v-(g+o)*2;return{radioSize:v,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:m,radioBgColor:t?s:f}},jie=Kn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${_e(n)} ${t}`,i=kn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[bAe(i),SAe(i),CAe(i)]},wAe,{unitless:{radioSize:!0,dotSize:!0}});var xAe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=d.useContext(kie),i=d.useContext(Nie),{getPrefixCls:a,direction:s,radio:l}=d.useContext(Yt),c=d.useRef(null),u=Si(t,c),{isFormItemInput:f}=d.useContext(Io),h=j=>{var k,F;(k=e.onChange)===null||k===void 0||k.call(e,j),(F=o==null?void 0:o.onChange)===null||F===void 0||F.call(o,j)},{prefixCls:p,className:m,rootClassName:g,children:v,style:b,title:y}=e,S=xAe(e,["prefixCls","className","rootClassName","children","style","title"]),w=a("radio",p),E=((o==null?void 0:o.optionType)||i)==="button",C=E?`${w}-button`:w,x=Mr(w),[_,P,O]=jie(w,x),I=Object.assign({},S),M=d.useContext(zo);o&&(I.name=o.name,I.onChange=h,I.checked=e.value===o.value,I.disabled=(n=I.disabled)!==null&&n!==void 0?n:o.disabled),I.disabled=(r=I.disabled)!==null&&r!==void 0?r:M;const T=xe(`${C}-wrapper`,{[`${C}-wrapper-checked`]:I.checked,[`${C}-wrapper-disabled`]:I.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:f,[`${C}-wrapper-block`]:!!(o!=null&&o.block)},l==null?void 0:l.className,m,g,P,O,x),[D,A]=Die(I.onClick);return _(d.createElement(z1,{component:"Radio",disabled:I.disabled},d.createElement("label",{className:T,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:D},d.createElement(Aie,Object.assign({},I,{className:xe(I.className,{[w$]:!E}),type:"radio",prefixCls:C,ref:u,onClick:A})),v!==void 0?d.createElement("span",null,v):null)))},Z2=d.forwardRef(EAe),_Ae=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Yt),o=N$(),{prefixCls:i,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:f,size:h,style:p,id:m,optionType:g,name:v=o,defaultValue:b,value:y,block:S=!1,onChange:w,onMouseEnter:E,onMouseLeave:C,onFocus:x,onBlur:_}=e,[P,O]=xn(b,{value:y}),I=d.useCallback(L=>{const Q=P,ee=L.target.value;"value"in e||O(ee),ee!==Q&&(w==null||w(L))},[P,O,w]),M=n("radio",i),T=`${M}-group`,D=Mr(M),[A,j,k]=jie(M,D);let F=f;l&&l.length>0&&(F=l.map(L=>typeof L=="string"||typeof L=="number"?d.createElement(Z2,{key:L.toString(),prefixCls:M,disabled:u,value:L,checked:P===L},L):d.createElement(Z2,{key:`radio-group-value-options-${L.value}`,prefixCls:M,disabled:L.disabled||u,value:L.value,checked:P===L.value,title:L.title,style:L.style,id:L.id,required:L.required},L.label)));const V=Eo(h),W=xe(T,`${T}-${c}`,{[`${T}-${V}`]:V,[`${T}-rtl`]:r==="rtl",[`${T}-block`]:S},a,s,j,k,D),K=d.useMemo(()=>({onChange:I,value:P,disabled:u,name:v,optionType:g,block:S}),[I,P,u,v,g,S]);return A(d.createElement("div",Object.assign({},Jr(e,{aria:!0,data:!0}),{className:W,style:p,onMouseEnter:E,onMouseLeave:C,onFocus:x,onBlur:_,id:m,ref:t}),d.createElement(gAe,{value:K},F)))}),Fie=d.memo(_Ae);var $Ae=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=d.useContext(Yt),{prefixCls:r}=e,o=$Ae(e,["prefixCls"]),i=n("radio",r);return d.createElement(vAe,{value:"button"},d.createElement(Z2,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},m6=d.forwardRef(PAe),qo=Z2;qo.Button=m6;qo.Group=Fie;qo.__ANT_RADIO=!0;const OAe=10,MAe=20;function TAe(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:o,prefixCls:i,value:a,onChange:s,divRef:l}=e,c=r.getYear(a||r.getNow());let u=c-OAe,f=u+MAe;n&&(u=r.getYear(n[0]),f=r.getYear(n[1])+1);const h=o&&o.year==="年"?"年":"",p=[];for(let m=u;m{let g=r.setYear(a,m);if(n){const[v,b]=n,y=r.getYear(g),S=r.getMonth(g);y===r.getYear(b)&&S>r.getMonth(b)&&(g=r.setMonth(g,r.getMonth(b))),y===r.getYear(v)&&Sl.current})}function RAe(e){const{prefixCls:t,fullscreen:n,validRange:r,value:o,generateConfig:i,locale:a,onChange:s,divRef:l}=e,c=i.getMonth(o||i.getNow());let u=0,f=11;if(r){const[m,g]=r,v=i.getYear(o);i.getYear(g)===v&&(f=i.getMonth(g)),i.getYear(m)===v&&(u=i.getMonth(m))}const h=a.shortMonths||i.locale.getShortMonths(a.locale),p=[];for(let m=u;m<=f;m+=1)p.push({label:h[m],value:m});return d.createElement(Va,{size:n?void 0:"small",className:`${t}-month-select`,value:c,options:p,onChange:m=>{s(i.setMonth(o,m))},getPopupContainer:()=>l.current})}function IAe(e){const{prefixCls:t,locale:n,mode:r,fullscreen:o,onModeChange:i}=e;return d.createElement(Fie,{onChange:a=>{let{target:{value:s}}=a;i(s)},value:r,size:o?void 0:"small",className:`${t}-mode-switch`},d.createElement(m6,{value:"month"},n.month),d.createElement(m6,{value:"year"},n.year))}function kAe(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:o,onModeChange:i}=e,a=d.useRef(null),s=d.useContext(Io),l=d.useMemo(()=>Object.assign(Object.assign({},s),{isFormItemInput:!1}),[s]),c=Object.assign(Object.assign({},e),{fullscreen:n,divRef:a});return d.createElement("div",{className:`${t}-header`,ref:a},d.createElement(Io.Provider,{value:l},d.createElement(TAe,Object.assign({},c,{onChange:u=>{o(u,"year")}})),r==="month"&&d.createElement(RAe,Object.assign({},c,{onChange:u=>{o(u,"month")}}))),d.createElement(IAe,Object.assign({},c,{onModeChange:i})))}function J1(e){return kn(e,{inputAffixPadding:e.paddingXXS})}const Z1=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:S}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:h,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},NAe=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({},NAe(kn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gD=(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}}),jH=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gD(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),vD=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gD(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),jH(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),jH(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),FH=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Lie=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},FH(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),FH(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},oP(e))}})}),yD=(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)}},Bie=(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}}),LH=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Bie(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),bD=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bie(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),LH(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),LH(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),BH=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),zie=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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},BH(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),BH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),SD=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Hie=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${_e(t)} ${_e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},CD=e=>({padding:`${_e(e.paddingBlockSM)} ${_e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),eS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${_e(e.paddingBlock)} ${_e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},SD(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({},Hie(e)),"&-sm":Object.assign({},CD(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Uie=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({},Hie(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},CD(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 ${_e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${_e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${_e(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:`${_e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${_e(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"},nc()),{[`${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},[` + &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:O$}}},JA(e,g,{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({},Qn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ka(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${_e(c)} ${_e(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:`${_e(c)} ${_e(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ka(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_e(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 ${_e(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:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down"),Mv(e,"zoom-big")]]},i5e=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},K$({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),V$(e)),a5e=Kn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=kn(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[o5e(i),r5e(i)]},i5e,{resetStyle:!1}),Q$=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:h,open:p,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:S=!0,placement:w="",overlay:E,transitionName:C}=e,{getPopupContainer:x,getPrefixCls:_,direction:P,dropdown:O}=d.useContext(Yt);nu();const I=d.useMemo(()=>{const se=_();return C!==void 0?C:w.includes("top")?`${se}-slide-down`:`${se}-slide-up`},[_,w,C]),M=d.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:P==="rtl"?"bottomRight":"bottomLeft",[w,P]),T=_("dropdown",o),D=Mr(T),[A,j,k]=a5e(T,D),[,F]=Ho(),V=d.Children.only(Q8e(i)?d.createElement("span",null,i):i),W=Zo(V,{className:xe(`${T}-trigger`,{[`${T}-rtl`]:P==="rtl"},V.props.className),disabled:(t=V.props.disabled)!==null&&t!==void 0?t:s}),K=s?[]:a,L=!!(K!=null&&K.includes("contextMenu")),[Q,ee]=xn(!1,{value:p??g}),re=An(se=>{m==null||m(se,{source:"trigger"}),v==null||v(se),ee(se)}),ie=xe(u,f,j,k,D,O==null?void 0:O.className,{[`${T}-rtl`]:P==="rtl"}),G=hoe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),X=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),ee(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ne=()=>{let se;return n!=null&&n.items?se=d.createElement(vc,Object.assign({},n)):typeof E=="function"?se=E():se=E,l&&(se=l(se)),se=d.Children.only(typeof se=="string"?d.createElement("span",null,se):se),d.createElement(Boe,{prefixCls:`${T}-menu`,rootClassName:xe(k,D),expandIcon:d.createElement("span",{className:`${T}-menu-submenu-arrow`},d.createElement(nd,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:fe=>{}},se)},[le,ce]=vl("Dropdown",h==null?void 0:h.zIndex);let oe=d.createElement(Coe,Object.assign({alignPoint:L},Yn(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:Q,builtinPlacements:G,arrow:!!r,overlayClassName:ie,prefixCls:T,getPopupContainer:c||x,transitionName:I,trigger:K,overlay:ne,placement:M,onVisibleChange:re,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),h),{zIndex:le})}),W);return le&&(oe=d.createElement(B1.Provider,{value:ce},oe)),A(oe)},s5e=jf(Q$,"align",void 0,"dropdown",e=>e),l5e=e=>d.createElement(s5e,Object.assign({},e),d.createElement("span",null));Q$._InternalPanelDoNotUseOrYouWillBeFired=l5e;var Hoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,y={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(D){var A=["th","st","nd","rd"],j=D%100;return"["+D+(A[(j-20)%10]||A[j]||A[0])+"]"}},S=function(D,A,j){var k=String(D);return!k||k.length>=A?D:""+Array(A+1-k.length).join(j)+D},w={s:S,z:function(D){var A=-D.utcOffset(),j=Math.abs(A),k=Math.floor(j/60),F=j%60;return(A<=0?"+":"-")+S(k,2,"0")+":"+S(F,2,"0")},m:function D(A,j){if(A.date()1)return D(W[0])}else{var K=A.name;C[K]=A,F=K}return!k&&F&&(E=F),F||!k&&E},O=function(D,A){if(_(D))return D.clone();var j=typeof A=="object"?A:{};return j.date=D,j.args=arguments,new M(j)},I=w;I.l=P,I.i=_,I.w=function(D,A){return O(D,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var M=function(){function D(j){this.$L=P(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[x]=!0}var A=D.prototype;return A.parse=function(j){this.$d=function(k){var F=k.date,V=k.utc;if(F===null)return new Date(NaN);if(I.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var W=F.match(v);if(W){var K=W[2]-1||0,L=(W[7]||"0").substring(0,3);return V?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,L)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,L)}}return new Date(F)}(j),this.init()},A.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},A.$utils=function(){return I},A.isValid=function(){return this.$d.toString()!==g},A.isSame=function(j,k){var F=O(j);return this.startOf(k)<=F&&F<=this.endOf(k)},A.isAfter=function(j,k){return O(j)25){var u=a(this).startOf(r).add(1,r).date(c),f=a(this).endOf(n);if(u.isBefore(f))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)}}})})(Goe);var d5e=Goe.exports;const sD=Fr(d5e);var Yoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(Yoe);var f5e=Yoe.exports;const h5e=Fr(f5e);var Xoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.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(f){switch(f){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(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="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 f}});return i.bind(this)(u)}}})})(Xoe);var p5e=Xoe.exports;const Qoe=Fr(p5e);var Joe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,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,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),S=60*y[1]+(+y[2]||0);return S===0?0:y[0]==="+"?-S:S}(v)}],h=function(v){var b=l[v];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(v,b){var y,S=l.meridiem;if(S){for(var w=1;w<=24;w+=1)if(v.indexOf(S(w,0,b))>-1){y=w>12;break}}else y=v===(b?"pm":"PM");return y},m={A:[s,function(v){this.afternoon=p(v,!1)}],a:[s,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],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:[i,u("day")],Do:[s,function(v){var b=l.ordinal,y=v.match(/\d+/);if(this.day=y[0],b)for(var S=1;S<=31;S+=1)b(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(v){var b=h("months"),y=(h("monthsShort")||b.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(v){var b=h("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var b,y;b=v,y=l&&l.formats;for(var S=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,I,M){var T=M&&M.toUpperCase();return I||y[M]||n[M]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,A,j){return A||j.slice(1)})})).match(r),w=S.length,E=0;E-1)return new Date((F==="X"?1e3:1)*k);var K=g(F)(k),L=K.year,Q=K.month,ee=K.day,re=K.hours,ie=K.minutes,G=K.seconds,X=K.milliseconds,ne=K.zone,le=K.week,ce=new Date,oe=ee||(L||Q?1:ce.getDate()),se=L||ce.getFullYear(),fe=0;L&&!Q||(fe=Q>0?Q-1:ce.getMonth());var te,he=re||0,pe=ie||0,Oe=G||0,Me=X||0;return ne?new Date(Date.UTC(se,fe,oe,he,pe,Oe,Me+60*ne.offset*1e3)):V?new Date(Date.UTC(se,fe,oe,he,pe,Oe,Me)):(te=new Date(se,fe,oe,he,pe,Oe,Me),le&&(te=W(te).week(le).toDate()),te)}catch{return new Date("")}}(C,P,x,y),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),M&&C!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var D=P.length,A=1;A<=D;A+=1){_[1]=P[A-1];var j=y.apply(this,_);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}A===D&&(this.$d=new Date(""))}else w.call(this,E)}}})})(Joe);var m5e=Joe.exports;const Zoe=Fr(m5e);qn.extend(Zoe);qn.extend(Qoe);qn.extend(Voe);qn.extend(qoe);qn.extend(sD);qn.extend(h5e);qn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var a=(i||"").replace("Wo","wo");return r.bind(this)(a)}});var g5e={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"},oh=function(t){var n=g5e[t];return n||t.split("_")[0]},eie={getNow:function(){var t=qn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return qn(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 qn().locale(oh(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(oh(t)).weekday(0)},getWeek:function(t,n){return n.locale(oh(t)).week()},getShortWeekDays:function(t){return qn().locale(oh(t)).localeData().weekdaysMin()},getShortMonths:function(t){return qn().locale(oh(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(oh(t)).format(r)},parse:function(t,n,r){for(var o=oh(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),o=$e(r,2),i=o[0],a=o[1],s=function(u,f){a(function(h){return Uy(h,f,u)})},l=d.useMemo(function(){return i.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,i,t,n]);return[l,s]}function sie(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function y5e(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,h=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,b=e.cellDateFormat,y=sie(t,n,r,o,i);return z(z({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:b||v||"D"})}function lie(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,i=t.showMillisecond,a=t.use12Hours;return de.useMemo(function(){return y5e(e,n,r,o,i,a)},[e,n,r,o,i,a])}function L0(e,t,n){return n??t.some(function(r){return e.includes(r)})}var b5e=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function S5e(e){var t=Z$(e,b5e),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=Ht(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function C5e(e){return e&&typeof e=="string"}function cie(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function uie(e,t,n,r,o){var i=t,a=n,s=r;if(!e&&!i&&!a&&!s&&!o)i=!0,a=!0,s=!0;else if(e){var l,c,u,f=[i,a,s].some(function(m){return m===!1}),h=[i,a,s].some(function(m){return m===!0}),p=f?!0:!h;i=(l=i)!==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[i,a,s,o]}function die(e){var t=e.showTime,n=S5e(e),r=$e(n,2),o=r[0],i=r[1],a=t&&Ht(t)==="object"?t:{},s=z(z({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,h=cie(c,u,f,l),p=uie(h,c,u,f,l),m=$e(p,3);return c=m[0],u=m[1],f=m[2],[s,z(z({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,i]}function fie(e,t,n,r,o){var i=e==="time";if(e==="datetime"||i){for(var a=r,s=rie(e,o,null),l=s,c=[t,n],u=0;u1&&(a=t.addDate(a,-7)),a}function mi(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function Z2(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(a,s){n?r=e[a](r,e[o[s]](n)):r=e[a](r,0)}),r}function _5e(e,t,n,r,o){var i=An(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!ta(e,t,r,a,s.type)||o&&e.isAfter(a,o)&&!ta(e,t,o,a,s.type))});return i}function $5e(e,t,n){return d.useMemo(function(){var r=rie(e,t,n),o=zp(r),i=o[0],a=Ht(i)==="object"&&i.type==="mask"?i.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,n])}function P5e(e,t,n){return typeof e[0]=="function"||n?!0:t}function O5e(e,t,n,r){var o=An(function(i,a){var s=z({type:t},a);if(delete s.activeIndex,!e.isValidate(i)||n&&n(i,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,i,c,{from:s.from}))||{},f=u.disabledHours,h=u.disabledMinutes,p=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,b=r.disabledSeconds,y=f||g,S=h||v,w=p||b,E=e.getHour(i),C=e.getMinute(i),x=e.getSecond(i),_=e.getMillisecond(i);if(y&&y().includes(E)||S&&S(E).includes(C)||w&&w(E,C).includes(x)||m&&m(E,C,x).includes(_))return!0}return!1});return o}function UC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&zp(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function mie(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,i=o===void 0?"date":o,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,h=e.order,p=h===void 0?!0:h,m=e.components,g=m===void 0?{}:m,v=e.inputRender,b=e.allowClear,y=e.clearIcon,S=e.needConfirm,w=e.multiple,E=e.format,C=e.inputReadOnly,x=e.disabledDate,_=e.minDate,P=e.maxDate,O=e.showTime,I=e.value,M=e.defaultValue,T=e.pickerValue,D=e.defaultPickerValue,A=UC(I),j=UC(M),k=UC(T),F=UC(D),V=i==="date"&&O?"datetime":i,W=V==="time"||V==="datetime",K=W||w,L=S??W,Q=die(e),ee=$e(Q,4),re=ee[0],ie=ee[1],G=ee[2],X=ee[3],ne=lie(r,ie),le=d.useMemo(function(){return fie(V,G,X,re,ne)},[V,G,X,re,ne]),ce=d.useMemo(function(){return z(z({},e),{},{prefixCls:s,locale:ne,picker:i,styles:c,classNames:f,order:p,components:z({input:v},g),clearIcon:w5e(s,b,y),showTime:le,value:A,defaultValue:j,pickerValue:k,defaultPickerValue:F},t==null?void 0:t())},[e]),oe=$5e(V,ne,E),se=$e(oe,2),fe=se[0],te=se[1],he=P5e(fe,C,w),pe=_5e(n,r,x,_,P),Oe=O5e(n,i,pe,le),Me=d.useMemo(function(){return z(z({},ce),{},{needConfirm:L,inputReadOnly:he,disabledDate:pe})},[ce,L,he,pe]);return[Me,V,K,fe,te,Oe]}function M5e(e,t,n){var r=xn(t,{value:e}),o=$e(r,2),i=o[0],a=o[1],s=de.useRef(e),l=de.useRef(),c=function(){zn.cancel(l.current)},u=An(function(){a(s.current),n&&i!==s.current&&n(s.current)}),f=An(function(h,p){c(),s.current=h,h||p?u():l.current=zn(u)});return de.useEffect(function(){return c},[]),[i,f]}function gie(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(u){return u})?!1:e,i=M5e(o,t||!1,r),a=$e(i,2),s=a[0],l=a[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function vie(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var i;(i=t.current)===null||i===void 0||i.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function yie(e,t){return d.useMemo(function(){return e||(t?(yr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=$e(n,2),o=r[0],i=r[1];return{label:o,value:i}})):[])},[e,t])}function fD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Gh(function(){if(e)r.current(e);else{var o=zn(function(){r.current(e)},n);return function(){zn.cancel(o)}}},[e])}function bie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),o=$e(r,2),i=o[0],a=o[1],s=d.useState(!1),l=$e(s,2),c=l[0],u=l[1],f=d.useRef([]),h=d.useRef(null),p=d.useRef(null),m=function(w){h.current=w},g=function(w){return h.current===w},v=function(w){u(w)},b=function(w){return w&&(p.current=w),p.current},y=function(w){var E=f.current,C=new Set(E.filter(function(_){return w[_]||t[_]})),x=E[E.length-1]===0?1:0;return C.size>=2||e[x]?null:x};return fD(c||n,function(){c||(f.current=[],m(null))}),d.useEffect(function(){c&&f.current.push(i)},[c,i]),[c,v,b,i,a,y,f.current,m,g]}function T5e(e,t,n,r,o,i){var a=n[n.length-1],s=function(c,u){var f=$e(e,2),h=f[0],p=f[1],m=z(z({},u),{},{from:oie(e,n)});return a===1&&t[0]&&h&&!ta(r,o,h,c,m.type)&&r.isAfter(h,c)||a===0&&t[1]&&p&&!ta(r,o,p,c,m.type)&&r.isAfter(c,p)?!0:i==null?void 0:i(c,m)};return s}function py(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 JT=[];function Sie(e,t,n,r,o,i,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:JT,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:JT,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:JT,f=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",g=i||0,v=function(k){var F=e.getNow();return m&&(F=Z2(e,F)),l[k]||n[k]||F},b=$e(c,2),y=b[0],S=b[1],w=xn(function(){return v(0)},{value:y}),E=$e(w,2),C=E[0],x=E[1],_=xn(function(){return v(1)},{value:S}),P=$e(_,2),O=P[0],I=P[1],M=d.useMemo(function(){var j=[C,O][g];return m?j:Z2(e,j,u[g])},[m,C,O,g,e,u]),T=function(k){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",V=[x,I][g];V(k);var W=[C,O];W[g]=k,f&&(!ta(e,t,C,W[0],a)||!ta(e,t,O,W[1],a))&&f(W,{source:F,range:g===1?"end":"start",mode:r})},D=function(k,F){if(s){var V={date:"month",week:"month",month:"year",quarter:"year"},W=V[a];if(W&&!ta(e,t,k,F,W))return py(e,a,F,-1);if(a==="year"&&k){var K=Math.floor(e.getYear(k)/10),L=Math.floor(e.getYear(F)/10);if(K!==L)return py(e,a,F,-1)}}return F},A=d.useRef(null);return Zn(function(){if(o&&!l[g]){var j=m?null:e.getNow();if(A.current!==null&&A.current!==g?j=[C,O][g^1]:n[g]?j=g===0?n[0]:D(n[0],n[1]):n[g^1]&&(j=n[g^1]),j){h&&e.isAfter(h,j)&&(j=h);var k=s?py(e,a,j,1):j;p&&e.isAfter(k,p)&&(j=s?py(e,a,p,-1):p),T(j,"reset")}}},[o,g,n[g]]),d.useEffect(function(){o?A.current=g:A.current=null},[o,g]),Zn(function(){o&&l&&l[g]&&T(l[g],"reset")},[o,g]),[M,T]}function Cie(e,t){var n=d.useRef(e),r=d.useState({}),o=$e(r,2),i=o[1],a=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,i({})};return[a,s,a(!0)]}var R5e=[];function wie(e,t,n){var r=function(a){return a.map(function(s){return mi(s,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,s){for(var l=Math.max(a.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=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=o.includes(l);(!c||!r)&&a.push({label:lD(l,i),value:l,disabled:c})}return a}function hD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,i=r.hourStep,a=i===void 0?1:i,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,h=f===void 0?100:f,p=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,b=r.disabledSeconds,y=d.useMemo(function(){return n||e.getNow()},[n,e]),S=d.useCallback(function(F){var V=(m==null?void 0:m(F))||{};return[V.disabledHours||g||WC,V.disabledMinutes||v||WC,V.disabledSeconds||b||WC,V.disabledMilliseconds||WC]},[m,g,v,b]),w=d.useMemo(function(){return S(y)},[y,S]),E=$e(w,4),C=E[0],x=E[1],_=E[2],P=E[3],O=d.useCallback(function(F,V,W,K){var L=VC(0,23,a,p,F()),Q=o?L.map(function(G){return z(z({},G),{},{label:lD(G.value%12||12,2)})}):L,ee=function(X){return VC(0,59,l,p,V(X))},re=function(X,ne){return VC(0,59,u,p,W(X,ne))},ie=function(X,ne,le){return VC(0,999,h,p,K(X,ne,le),3)};return[Q,ee,re,ie]},[p,a,o,h,l,u]),I=d.useMemo(function(){return O(C,x,_,P)},[O,C,x,_,P]),M=$e(I,4),T=M[0],D=M[1],A=M[2],j=M[3],k=function(V,W){var K=function(){return T},L=D,Q=A,ee=j;if(W){var re=S(W),ie=$e(re,4),G=ie[0],X=ie[1],ne=ie[2],le=ie[3],ce=O(G,X,ne,le),oe=$e(ce,4),se=oe[0],fe=oe[1],te=oe[2],he=oe[3];K=function(){return se},L=fe,Q=te,ee=he}var pe=k5e(V,K,L,Q,ee,e);return pe};return[k,T,D,A,j]}function N5e(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,i=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,h=d.useContext(yc),p=h.prefixCls,m=h.locale,g=h.button,v=g===void 0?"button":g,b=u.getNow(),y=hD(u,i,b),S=$e(y,1),w=S[0],E=r==null?void 0:r(t),C=f(b,{type:t}),x=function(){if(!C){var D=w(b);s(D)}},_="".concat(p,"-now"),P="".concat(_,"-btn"),O=o&&d.createElement("li",{className:_},d.createElement("a",{className:xe(P,C&&"".concat(P,"-disabled")),"aria-disabled":C,onClick:x},n==="date"?m.today:m.now)),I=c&&d.createElement("li",{className:"".concat(p,"-ok")},d.createElement(v,{disabled:l,onClick:a},m.ok)),M=(O||I)&&d.createElement("ul",{className:"".concat(p,"-ranges")},O,I);return!E&&!M?null:d.createElement("div",{className:"".concat(p,"-footer")},E&&d.createElement("div",{className:"".concat(p,"-footer-extra")},E),M)}function Pie(e,t,n){function r(o,i){var a=o.findIndex(function(l){return ta(e,t,l,i,n)});if(a===-1)return[].concat(Ze(o),[i]);var s=Ze(o);return s.splice(a,1),s}return r}var Hp=d.createContext(null);function tP(){return d.useContext(Hp)}function Nv(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,h=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,S=r.getNow(),w={now:S,values:h,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:b,superNextIcon:y};return[w,S]}var vf=d.createContext({});function J1(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,i=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,h=f===void 0?!0:f,p=e.disabledDate,m=tP(),g=m.prefixCls,v=m.panelType,b=m.now,y=m.disabledDate,S=m.cellRender,w=m.onHover,E=m.hoverValue,C=m.hoverRangeValue,x=m.generateConfig,_=m.values,P=m.locale,O=m.onSelect,I=p||y,M="".concat(g,"-cell"),T=d.useContext(vf),D=T.onCellDblClick,A=function(Q){return _.some(function(ee){return ee&&ta(x,P,Q,ee,v)})},j=[],k=0;k1&&arguments[1]!==void 0?arguments[1]:!1;ve(De),v==null||v(De),qe&&be(De)},Ne=function(De,qe){ne(De),qe&&Pe(qe),be(qe,De)},U=function(De){if(Oe(De),Pe(De),X!==w){var qe=["decade","year"],Fe=[].concat(qe,["month"]),Ke={quarter:[].concat(qe,["quarter"]),week:[].concat(Ze(Fe),["week"]),date:[].concat(Ze(Fe),["date"])},Ue=Ke[w]||Fe,Ve=Ue.indexOf(X),Tt=Ue[Ve+1];Tt&&Ne(Tt,De)}},H=d.useMemo(function(){var ge,De;if(Array.isArray(x)){var qe=$e(x,2);ge=qe[0],De=qe[1]}else ge=x;return!ge&&!De?null:(ge=ge||De,De=De||ge,o.isAfter(ge,De)?[De,ge]:[ge,De])},[x,o]),q=cD(_,P,O),me=M[le]||K5e[le]||nP,Ce=d.useContext(vf),ue=d.useMemo(function(){return z(z({},Ce),{},{hideHeader:T})},[Ce,T]),Le="".concat(D,"-panel"),He=Z$(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(vf.Provider,{value:ue},d.createElement("div",{ref:A,tabIndex:l,className:xe(Le,Z({},"".concat(Le,"-rtl"),i==="rtl"))},d.createElement(me,Ge({},He,{showTime:ee,prefixCls:D,locale:L,generateConfig:o,onModeChange:Ne,pickerValue:ye,onPickerValueChange:function(De){Pe(De,!0)},value:he[0],onSelect:U,values:he,cellRender:q,hoverRangeValue:H,hoverValue:C}))))}var ax=d.memo(d.forwardRef(q5e));function G5e(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(yc),u=c.prefixCls,f=c.generateConfig,h=d.useCallback(function(y,S){return py(f,t,y,S)},[f,t]),p=d.useMemo(function(){return h(r,1)},[r,h]),m=function(S){o(h(S,-1))},g={onCellDblClick:function(){i&&a()}},v=t==="time",b=z(z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?b.hoverRangeValue=l:b.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(vf.Provider,{value:z(z({},g),{},{hideNext:!0})},d.createElement(ax,b)),d.createElement(vf.Provider,{value:z(z({},g),{},{hidePrev:!0})},d.createElement(ax,Ge({},b,{pickerValue:p,onPickerValueChange:m})))):d.createElement(vf.Provider,{value:z({},g)},d.createElement(ax,b))}function IH(e){return typeof e=="function"?e():e}function Y5e(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(i,a){var s=i.label,l=i.value;return d.createElement("li",{key:a,onClick:function(){r(IH(l))},onMouseEnter:function(){o(IH(l))},onMouseLeave:function(){o(null)}},s)}))):null}function Mie(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,i=e.range,a=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,h=e.onPresetSubmit,p=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,v=e.direction,b=e.value,y=e.onSelect,S=e.isInvalid,w=e.defaultOpenValue,E=e.onOk,C=e.onSubmit,x=d.useContext(yc),_=x.prefixCls,P="".concat(_,"-panel"),O=v==="rtl",I=d.useRef(null),M=d.useRef(null),T=d.useState(0),D=$e(T,2),A=D[0],j=D[1],k=d.useState(0),F=$e(k,2),V=F[0],W=F[1],K=function(pe){pe.offsetWidth&&j(pe.offsetWidth)};d.useEffect(function(){if(i){var he,pe=((he=I.current)===null||he===void 0?void 0:he.offsetWidth)||0,Oe=A-pe;l<=Oe?W(0):W(l+pe-A)}},[A,l,i]);function L(he){return he.filter(function(pe){return pe})}var Q=d.useMemo(function(){return L(zp(b))},[b]),ee=r==="time"&&!Q.length,re=d.useMemo(function(){return ee?L([w]):Q},[ee,Q,w]),ie=ee?w:Q,G=d.useMemo(function(){return re.length?re.some(function(he){return S(he)}):!0},[re,S]),X=function(){ee&&y(w),E(),C()},ne=d.createElement("div",{className:"".concat(_,"-panel-layout")},d.createElement(Y5e,{prefixCls:_,presets:u,onClick:h,onHover:f}),d.createElement("div",null,d.createElement(G5e,Ge({},e,{value:ie})),d.createElement(N5e,Ge({},e,{showNow:a?!1:o,invalid:G,onSubmit:X}))));t&&(ne=t(ne));var le="".concat(P,"-container"),ce="marginLeft",oe="marginRight",se=d.createElement("div",{onMouseDown:g,tabIndex:-1,className:xe(le,"".concat(_,"-").concat(n,"-panel-container")),style:Z(Z({},O?oe:ce,V),O?ce:oe,"auto"),onFocus:p,onBlur:m},ne);if(i){var fe=J$(c,O),te=tie(fe,O);se=d.createElement("div",{onMouseDown:g,ref:M,className:xe("".concat(_,"-range-wrapper"),"".concat(_,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:I,className:"".concat(_,"-range-arrow"),style:Z({},te,l)}),d.createElement(Oi,{onResize:K},se))}return se}function Tie(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,i=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,h=e.onBlur,p=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,b=e.onKeyDown,y=e.onChange,S=e.activeHelp,w=e.name,E=e.autoComplete,C=e.id,x=e.value,_=e.invalid,P=e.placeholder,O=e.disabled,I=e.activeIndex,M=e.allHelp,T=e.picker,D=function(L,Q){var ee=o.locale.parse(i.locale,L,[Q]);return ee&&o.isValidate(ee)?ee:null},A=n[0],j=d.useCallback(function(K){return mi(K,{locale:i,format:A,generateConfig:o})},[i,o,A]),k=d.useMemo(function(){return x.map(j)},[x,j]),F=d.useMemo(function(){var K=T==="time"?8:10,L=typeof A=="function"?A(o.getNow()).length:A.length;return Math.max(K,L)+2},[A,T,o]),V=function(L){for(var Q=0;Q=s&&n<=l)return i;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?St:wt));var je=We+yt,Xe=wt-St+1;return String(St+(Xe+je-St)%Xe)};switch(De){case"Backspace":case"Delete":qe="",Fe=Ue;break;case"ArrowLeft":qe="",Ve(-1);break;case"ArrowRight":qe="",Ve(1);break;case"ArrowUp":qe="",Fe=Tt(1);break;case"ArrowDown":qe="",Fe=Tt(-1);break;default:isNaN(Number(De))||(qe=K+De,Fe=qe);break}if(qe!==null&&(L(qe),qe.length>=Ke&&(Ve(1),L(""))),Fe!==null){var et=ce.slice(0,pe)+lD(Fe,Ke)+ce.slice(Oe);Se(et.slice(0,a.length))}le({})},ue=d.useRef();Zn(function(){if(!(!T||!a||be.current)){if(!fe.match(ce)){Se(a);return}return se.current.setSelectionRange(pe,Oe),ue.current=zn(function(){se.current.setSelectionRange(pe,Oe)}),function(){zn.cancel(ue.current)}}},[fe,a,T,ce,re,pe,Oe,ne,Se]);var Le=a?{onFocus:U,onBlur:q,onKeyDown:Ce,onMouseDown:Pe,onMouseUp:Ne,onPaste:ve}:{};return d.createElement("div",{ref:oe,className:xe(O,Z(Z({},"".concat(O,"-active"),n&&o),"".concat(O,"-placeholder"),c))},d.createElement(P,Ge({ref:se,"aria-invalid":g,autoComplete:"off"},b,{onKeyDown:me,onBlur:H},Le,{value:ce,onChange:ye})),d.createElement(rP,{type:"suffix",icon:i}),v)}),nAe=["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"],rAe=["index"],oAe=["insetInlineStart","insetInlineEnd"];function iAe(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,i=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,f=e.className,h=e.style,p=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,b=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var S=e.onActiveOffset,w=e.placement,E=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,x=e.tabIndex,_=At(e,nAe),P=y==="rtl",O=d.useContext(yc),I=O.prefixCls,M=d.useMemo(function(){if(typeof n=="string")return[n];var se=n||{};return[se.start,se.end]},[n]),T=d.useRef(),D=d.useRef(),A=d.useRef(),j=function(fe){var te;return(te=[D,A][fe])===null||te===void 0?void 0:te.current};d.useImperativeHandle(t,function(){return{nativeElement:T.current,focus:function(fe){if(Ht(fe)==="object"){var te,he=fe||{},pe=he.index,Oe=pe===void 0?0:pe,Me=At(he,rAe);(te=j(Oe))===null||te===void 0||te.focus(Me)}else{var Se;(Se=j(fe??0))===null||Se===void 0||Se.focus()}},blur:function(){var fe,te;(fe=j(0))===null||fe===void 0||fe.blur(),(te=j(1))===null||te===void 0||te.blur()}}});var k=Rie(_),F=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),V=Tie(z(z({},e),{},{id:M,placeholder:F})),W=$e(V,1),K=W[0],L=J$(w,P),Q=tie(L,P),ee=L==null?void 0:L.toLowerCase().endsWith("right"),re=d.useState({position:"absolute",width:0}),ie=$e(re,2),G=ie[0],X=ie[1],ne=An(function(){var se=j(l);if(se){var fe=se.nativeElement,te=fe.offsetWidth,he=fe.offsetLeft,pe=fe.offsetParent,Oe=(pe==null?void 0:pe.offsetWidth)||0,Me=ee?Oe-te-he:he;X(function(Se){Se.insetInlineStart,Se.insetInlineEnd;var ye=At(Se,oAe);return z(z({},ye),{},Z({width:te},Q,Me))}),S(Me)}});d.useEffect(function(){ne()},[l]);var le=o&&(g[0]&&!v[0]||g[1]&&!v[1]),ce=C&&!v[0],oe=C&&!ce&&!v[1];return d.createElement(Oi,{onResize:ne},d.createElement("div",Ge({},k,{className:xe(I,"".concat(I,"-range"),Z(Z(Z(Z({},"".concat(I,"-focused"),c),"".concat(I,"-disabled"),v.every(function(se){return se})),"".concat(I,"-invalid"),b.some(function(se){return se})),"".concat(I,"-rtl"),P),f),style:h,ref:T,onClick:p,onMouseDown:function(fe){var te=fe.target;te!==D.current.inputElement&&te!==A.current.inputElement&&fe.preventDefault(),E==null||E(fe)}}),r&&d.createElement("div",{className:"".concat(I,"-prefix")},r),d.createElement(h6,Ge({ref:D},K(0),{autoFocus:ce,tabIndex:x,"date-range":"start"})),d.createElement("div",{className:"".concat(I,"-range-separator")},s),d.createElement(h6,Ge({ref:A},K(1),{autoFocus:oe,tabIndex:x,"date-range":"end"})),d.createElement("div",{className:"".concat(I,"-active-bar"),style:G}),d.createElement(rP,{type:"suffix",icon:i}),le&&d.createElement(f6,{icon:o,onClear:m})))}var aAe=d.forwardRef(iAe);function NH(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function qC(e){return e===1?"end":"start"}function sAe(e,t){var n=mie(e,function(){var rn=e.disabled,fn=e.allowEmpty,Sn=NH(rn,!1),Dn=NH(fn,!1);return{disabled:Sn,allowEmpty:Dn}}),r=$e(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=o.prefixCls,f=o.styles,h=o.classNames,p=o.placement,m=o.defaultValue,g=o.value,v=o.needConfirm,b=o.onKeyDown,y=o.disabled,S=o.allowEmpty,w=o.disabledDate,E=o.minDate,C=o.maxDate,x=o.defaultOpen,_=o.open,P=o.onOpenChange,O=o.locale,I=o.generateConfig,M=o.picker,T=o.showNow,D=o.showToday,A=o.showTime,j=o.mode,k=o.onPanelChange,F=o.onCalendarChange,V=o.onOk,W=o.defaultPickerValue,K=o.pickerValue,L=o.onPickerValueChange,Q=o.inputReadOnly,ee=o.suffixIcon,re=o.onFocus,ie=o.onBlur,G=o.presets,X=o.ranges,ne=o.components,le=o.cellRender,ce=o.dateRender,oe=o.monthCellRender,se=o.onClick,fe=vie(t),te=gie(_,x,y,P),he=$e(te,2),pe=he[0],Oe=he[1],Me=function(fn,Sn){(y.some(function(Dn){return!Dn})||!fn)&&Oe(fn,Sn)},Se=Eie(I,O,s,!0,!1,m,g,F,V),ye=$e(Se,5),ve=ye[0],be=ye[1],Pe=ye[2],Ne=ye[3],U=ye[4],H=Pe(),q=bie(y,S,pe),me=$e(q,9),Ce=me[0],ue=me[1],Le=me[2],He=me[3],ge=me[4],De=me[5],qe=me[6],Fe=me[7],Ke=me[8],Ue=function(fn,Sn){ue(!0),re==null||re(fn,{range:qC(Sn??He)})},Ve=function(fn,Sn){ue(!1),ie==null||ie(fn,{range:qC(Sn??He)})},Tt=d.useMemo(function(){if(!A)return null;var rn=A.disabledTime,fn=rn?function(Sn){var Dn=qC(He),cr=oie(H,qe,He);return rn(Sn,Dn,{from:cr})}:void 0;return z(z({},A),{},{disabledTime:fn})},[A,He,H,qe]),et=xn([M,M],{value:j}),st=$e(et,2),yt=st[0],gt=st[1],Lt=yt[He]||M,St=Lt==="date"&&Tt?"datetime":Lt,wt=St===M&&St!=="time",Nt=$ie(M,Lt,T,D,!0),Be=_ie(o,ve,be,Pe,Ne,y,s,Ce,pe,c),We=$e(Be,2),je=We[0],Xe=We[1],pt=T5e(H,y,qe,I,O,w),vt=aie(H,c,S),Mt=$e(vt,2),Et=Mt[0],ft=Mt[1],dt=Sie(I,O,H,yt,pe,He,i,wt,W,K,Tt==null?void 0:Tt.defaultOpenValue,L,E,C),Rt=$e(dt,2),Ct=Rt[0],Wt=Rt[1],at=An(function(rn,fn,Sn){var Dn=Uy(yt,He,fn);if((Dn[0]!==yt[0]||Dn[1]!==yt[1])&>(Dn),k&&Sn!==!1){var cr=Ze(H);rn&&(cr[He]=rn),k(cr,Dn)}}),$t=function(fn,Sn){return Uy(H,Sn,fn)},Bt=function(fn,Sn){var Dn=H;fn&&(Dn=$t(fn,He)),Fe(He);var cr=De(Dn);Ne(Dn),je(He,cr===null),cr===null?Me(!1,{force:!0}):Sn||fe.current.focus({index:cr})},xt=function(fn){var Sn,Dn=fn.target.getRootNode();if(!fe.current.nativeElement.contains((Sn=Dn.activeElement)!==null&&Sn!==void 0?Sn:document.activeElement)){var cr=y.findIndex(function(Uo){return!Uo});cr>=0&&fe.current.focus({index:cr})}Me(!0),se==null||se(fn)},bt=function(){Xe(null),Me(!1,{force:!0})},Ft=d.useState(null),Re=$e(Ft,2),It=Re[0],tt=Re[1],Ot=d.useState(null),Pt=$e(Ot,2),pn=Pt[0],Pn=Pt[1],$=d.useMemo(function(){return pn||H},[H,pn]);d.useEffect(function(){pe||Pn(null)},[pe]);var R=d.useState(0),J=$e(R,2),Ee=J[0],ke=J[1],Je=yie(G,X),Dt=function(fn){Pn(fn),tt("preset")},an=function(fn){var Sn=Xe(fn);Sn&&Me(!1,{force:!0})},En=function(fn){Bt(fn)},Cr=function(fn){Pn(fn?$t(fn,He):null),tt("cell")},ur=function(fn){Me(!0),Ue(fn)},Nr=function(){Le("panel")},tr=function(fn){var Sn=Uy(H,He,fn);Ne(Sn),!v&&!a&&i===St&&Bt(fn)},en=function(){Me(!1)},un=cD(le,ce,oe,qC(He)),rr=H[He]||null,Qt=An(function(rn){return c(rn,{activeIndex:He})}),Jt=d.useMemo(function(){var rn=Jr(o,!1),fn=Yn(o,[].concat(Ze(Object.keys(rn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return fn},[o]),Rn=d.createElement(Mie,Ge({},Jt,{showNow:Nt,showTime:Tt,range:!0,multiplePanel:wt,activeOffset:Ee,placement:p,disabledDate:pt,onFocus:ur,onBlur:Ve,onPanelMouseDown:Nr,picker:M,mode:Lt,internalMode:St,onPanelChange:at,format:l,value:rr,isInvalid:Qt,onChange:null,onSelect:tr,pickerValue:Ct,defaultOpenValue:zp(A==null?void 0:A.defaultOpenValue)[He],onPickerValueChange:Wt,hoverValue:$,onHover:Cr,needConfirm:v,onSubmit:Bt,onOk:U,presets:Je,onPresetHover:Dt,onPresetSubmit:an,onNow:En,cellRender:un})),er=function(fn,Sn){var Dn=$t(fn,Sn);Ne(Dn)},$r=function(){Le("input")},ao=function(fn,Sn){var Dn=qe.length,cr=qe[Dn-1];if(Dn&&cr!==Sn&&v&&!S[cr]&&!Ke(cr)&&H[cr]){fe.current.focus({index:cr});return}Le("input"),Me(!0,{inherit:!0}),He!==Sn&&pe&&!v&&a&&Bt(null,!0),ge(Sn),Ue(fn,Sn)},Bn=function(fn,Sn){if(Me(!1),!v&&Le()==="input"){var Dn=De(H);je(He,Dn===null)}Ve(fn,Sn)},Yr=function(fn,Sn){fn.key==="Tab"&&Bt(null,!0),b==null||b(fn,Sn)},Fn=d.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:I,button:ne.button,input:ne.input}},[u,O,I,ne.button,ne.input]);return Zn(function(){pe&&He!==void 0&&at(null,M,!1)},[pe,He,M]),Zn(function(){var rn=Le();!pe&&rn==="input"&&(Me(!1),Bt(null,!0)),!pe&&a&&!v&&rn==="panel"&&(Me(!0),Bt())},[pe]),d.createElement(yc.Provider,{value:Fn},d.createElement(nie,Ge({},iie(o),{popupElement:Rn,popupStyle:f.popup,popupClassName:h.popup,visible:pe,onClose:en,range:!0}),d.createElement(aAe,Ge({},o,{ref:fe,suffixIcon:ee,activeIndex:Ce||pe?He:null,activeHelp:!!pn,allHelp:!!pn&&It==="preset",focused:Ce,onFocus:ao,onBlur:Bn,onKeyDown:Yr,onSubmit:Bt,value:$,maskFormat:l,onChange:er,onInputChange:$r,format:s,inputReadOnly:Q,disabled:y,open:pe,onOpenChange:Me,onClick:xt,onClear:bt,invalid:Et,onInvalid:ft,onActiveOffset:ke}))))}var lAe=d.forwardRef(sAe);function cAe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,i=o===void 0?"×":o,a=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),h="".concat(f,"-overflow");function p(v,b){return d.createElement("span",{className:xe("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&b&&d.createElement("span",{onMouseDown:function(S){S.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},i))}function m(v){var b=a(v),y=function(w){w&&w.stopPropagation(),r(v)};return p(b,y)}function g(v){var b="+ ".concat(v.length," ...");return p(b)}return d.createElement("div",{className:u},d.createElement(ql,{prefixCls:h,data:n,renderItem:m,renderRest:g,itemKey:function(b){return a(b)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var uAe=["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 dAe(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,i=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,f=e.style,h=e.onClick,p=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,b=e.onSubmit;e.onInputChange;var y=e.multiple,S=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,E=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var x=e.onMouseDown;e.required,e["aria-required"];var _=e.autoFocus,P=e.tabIndex,O=e.removeIcon,I=At(e,uAe),M=C==="rtl",T=d.useContext(yc),D=T.prefixCls,A=d.useRef(),j=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(G){var X;(X=j.current)===null||X===void 0||X.focus(G)},blur:function(){var G;(G=j.current)===null||G===void 0||G.blur()}}});var k=Rie(I),F=function(G){v([G])},V=function(G){var X=g.filter(function(ne){return ne&&!ta(l,s,ne,G,m)});v(X),n||b()},W=Tie(z(z({},e),{},{onChange:F}),function(ie){var G=ie.valueTexts;return{value:G[0]||"",active:a}}),K=$e(W,2),L=K[0],Q=K[1],ee=!!(o&&g.length&&!w),re=y?d.createElement(d.Fragment,null,d.createElement(cAe,{prefixCls:D,value:g,onRemove:V,formatDate:Q,maxTagCount:S,disabled:w,removeIcon:O,placeholder:c}),d.createElement("input",{className:"".concat(D,"-multiple-input"),value:g.map(Q).join(","),ref:j,readOnly:!0,autoFocus:_,tabIndex:P}),d.createElement(rP,{type:"suffix",icon:i}),ee&&d.createElement(f6,{icon:o,onClear:p})):d.createElement(h6,Ge({ref:j},L(),{autoFocus:_,tabIndex:P,suffixIcon:i,clearIcon:ee&&d.createElement(f6,{icon:o,onClear:p}),showActiveCls:!1}));return d.createElement("div",Ge({},k,{className:xe(D,Z(Z(Z(Z(Z({},"".concat(D,"-multiple"),y),"".concat(D,"-focused"),a),"".concat(D,"-disabled"),w),"".concat(D,"-invalid"),E),"".concat(D,"-rtl"),M),u),style:f,ref:A,onClick:h,onMouseDown:function(G){var X,ne=G.target;ne!==((X=j.current)===null||X===void 0?void 0:X.inputElement)&&G.preventDefault(),x==null||x(G)}}),r&&d.createElement("div",{className:"".concat(D,"-prefix")},r),re)}var fAe=d.forwardRef(dAe);function hAe(e,t){var n=mie(e),r=$e(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=o,f=u.prefixCls,h=u.styles,p=u.classNames,m=u.order,g=u.defaultValue,v=u.value,b=u.needConfirm,y=u.onChange,S=u.onKeyDown,w=u.disabled,E=u.disabledDate,C=u.minDate,x=u.maxDate,_=u.defaultOpen,P=u.open,O=u.onOpenChange,I=u.locale,M=u.generateConfig,T=u.picker,D=u.showNow,A=u.showToday,j=u.showTime,k=u.mode,F=u.onPanelChange,V=u.onCalendarChange,W=u.onOk,K=u.multiple,L=u.defaultPickerValue,Q=u.pickerValue,ee=u.onPickerValueChange,re=u.inputReadOnly,ie=u.suffixIcon,G=u.removeIcon,X=u.onFocus,ne=u.onBlur,le=u.presets,ce=u.components,oe=u.cellRender,se=u.dateRender,fe=u.monthCellRender,te=u.onClick,he=vie(t);function pe(Qt){return Qt===null?null:K?Qt:Qt[0]}var Oe=Pie(M,I,i),Me=gie(P,_,[w],O),Se=$e(Me,2),ye=Se[0],ve=Se[1],be=function(Jt,Rn,er){if(V){var $r=z({},er);delete $r.range,V(pe(Jt),pe(Rn),$r)}},Pe=function(Jt){W==null||W(pe(Jt))},Ne=Eie(M,I,s,!1,m,g,v,be,Pe),U=$e(Ne,5),H=U[0],q=U[1],me=U[2],Ce=U[3],ue=U[4],Le=me(),He=bie([w]),ge=$e(He,4),De=ge[0],qe=ge[1],Fe=ge[2],Ke=ge[3],Ue=function(Jt){qe(!0),X==null||X(Jt,{})},Ve=function(Jt){qe(!1),ne==null||ne(Jt,{})},Tt=xn(T,{value:k}),et=$e(Tt,2),st=et[0],yt=et[1],gt=st==="date"&&j?"datetime":st,Lt=$ie(T,st,D,A),St=y&&function(Qt,Jt){y(pe(Qt),pe(Jt))},wt=_ie(z(z({},o),{},{onChange:St}),H,q,me,Ce,[],s,De,ye,c),Nt=$e(wt,2),Be=Nt[1],We=aie(Le,c),je=$e(We,2),Xe=je[0],pt=je[1],vt=d.useMemo(function(){return Xe.some(function(Qt){return Qt})},[Xe]),Mt=function(Jt,Rn){if(ee){var er=z(z({},Rn),{},{mode:Rn.mode[0]});delete er.range,ee(Jt[0],er)}},Et=Sie(M,I,Le,[st],ye,Ke,i,!1,L,Q,zp(j==null?void 0:j.defaultOpenValue),Mt,C,x),ft=$e(Et,2),dt=ft[0],Rt=ft[1],Ct=An(function(Qt,Jt,Rn){if(yt(Jt),F&&Rn!==!1){var er=Qt||Le[Le.length-1];F(er,Jt)}}),Wt=function(){Be(me()),ve(!1,{force:!0})},at=function(Jt){!w&&!he.current.nativeElement.contains(document.activeElement)&&he.current.focus(),ve(!0),te==null||te(Jt)},$t=function(){Be(null),ve(!1,{force:!0})},Bt=d.useState(null),xt=$e(Bt,2),bt=xt[0],Ft=xt[1],Re=d.useState(null),It=$e(Re,2),tt=It[0],Ot=It[1],Pt=d.useMemo(function(){var Qt=[tt].concat(Ze(Le)).filter(function(Jt){return Jt});return K?Qt:Qt.slice(0,1)},[Le,tt,K]),pn=d.useMemo(function(){return!K&&tt?[tt]:Le.filter(function(Qt){return Qt})},[Le,tt,K]);d.useEffect(function(){ye||Ot(null)},[ye]);var Pn=yie(le),$=function(Jt){Ot(Jt),Ft("preset")},R=function(Jt){var Rn=K?Oe(me(),Jt):[Jt],er=Be(Rn);er&&!K&&ve(!1,{force:!0})},J=function(Jt){R(Jt)},Ee=function(Jt){Ot(Jt),Ft("cell")},ke=function(Jt){ve(!0),Ue(Jt)},Je=function(Jt){if(Fe("panel"),!(K&>!==T)){var Rn=K?Oe(me(),Jt):[Jt];Ce(Rn),!b&&!a&&i===gt&&Wt()}},Dt=function(){ve(!1)},an=cD(oe,se,fe),En=d.useMemo(function(){var Qt=Jr(o,!1),Jt=Yn(o,[].concat(Ze(Object.keys(Qt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return z(z({},Jt),{},{multiple:o.multiple})},[o]),Cr=d.createElement(Mie,Ge({},En,{showNow:Lt,showTime:j,disabledDate:E,onFocus:ke,onBlur:Ve,picker:T,mode:st,internalMode:gt,onPanelChange:Ct,format:l,value:Le,isInvalid:c,onChange:null,onSelect:Je,pickerValue:dt,defaultOpenValue:j==null?void 0:j.defaultOpenValue,onPickerValueChange:Rt,hoverValue:Pt,onHover:Ee,needConfirm:b,onSubmit:Wt,onOk:ue,presets:Pn,onPresetHover:$,onPresetSubmit:R,onNow:J,cellRender:an})),ur=function(Jt){Ce(Jt)},Nr=function(){Fe("input")},tr=function(Jt){Fe("input"),ve(!0,{inherit:!0}),Ue(Jt)},en=function(Jt){ve(!1),Ve(Jt)},un=function(Jt,Rn){Jt.key==="Tab"&&Wt(),S==null||S(Jt,Rn)},rr=d.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:M,button:ce.button,input:ce.input}},[f,I,M,ce.button,ce.input]);return Zn(function(){ye&&Ke!==void 0&&Ct(null,T,!1)},[ye,Ke,T]),Zn(function(){var Qt=Fe();!ye&&Qt==="input"&&(ve(!1),Wt()),!ye&&a&&!b&&Qt==="panel"&&(ve(!0),Wt())},[ye]),d.createElement(yc.Provider,{value:rr},d.createElement(nie,Ge({},iie(o),{popupElement:Cr,popupStyle:h.popup,popupClassName:p.popup,visible:ye,onClose:Dt}),d.createElement(fAe,Ge({},o,{ref:he,suffixIcon:ie,removeIcon:G,activeHelp:!!tt,allHelp:!!tt&&bt==="preset",focused:De,onFocus:tr,onBlur:en,onKeyDown:un,onSubmit:Wt,value:pn,maskFormat:l,onChange:ur,onInputChange:Nr,internalPicker:i,format:s,inputReadOnly:re,disabled:w,open:ye,onOpenChange:ve,onClick:at,onClear:$t,invalid:vt,onInvalid:function(Jt){pt(Jt,0)}}))))}var pAe=d.forwardRef(hAe);const Iie=d.createContext(null),mAe=Iie.Provider,kie=d.createContext(null),gAe=kie.Provider;var vAe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Nie=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,h=e.title,p=e.onChange,m=At(e,vAe),g=d.useRef(null),v=d.useRef(null),b=xn(c,{value:a}),y=$e(b,2),S=y[0],w=y[1];d.useImperativeHandle(t,function(){return{focus:function(_){var P;(P=g.current)===null||P===void 0||P.focus(_)},blur:function(){var _;(_=g.current)===null||_===void 0||_.blur()},input:g.current,nativeElement:v.current}});var E=xe(r,o,Z(Z({},"".concat(r,"-checked"),S),"".concat(r,"-disabled"),s)),C=function(_){s||("checked"in e||w(_.target.checked),p==null||p({target:z(z({},e),{},{type:f,checked:_.target.checked}),stopPropagation:function(){_.stopPropagation()},preventDefault:function(){_.preventDefault()},nativeEvent:_.nativeEvent}))};return d.createElement("span",{className:E,title:h,style:i,ref:v},d.createElement("input",Ge({},m,{className:"".concat(r,"-input"),ref:g,onChange:C,disabled:s,checked:!!S,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function Aie(e){const t=de.useRef(null),n=()=>{zn.cancel(t.current),t.current=null};return[()=>{n(),t.current=zn(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const yAe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Qn(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"}})}},bAe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:h,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:b,calc:y}=e,S=`${t}-inner`,E=y(o).sub(y(4).mul(2)),C=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qn(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:`${_e(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:Object.assign({},rc(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:C,height:C,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,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`]:{[S]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${y(E).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},SAe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:h,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:w,colorTextDisabled:E,colorBgContainerDisabled:C,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:_,colorPrimary:P,colorPrimaryHover:O,colorPrimaryActive:I,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:D,calc:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:_e(A(n).sub(A(o).mul(2)).equal()),background:f,border:`${_e(o)} ${i} ${a}`,borderBlockStartWidth:A(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,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:A(o).mul(-1).equal(),insetInlineStart:A(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${_e(o)} ${i} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:h,lineHeight:_e(A(p).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:m,paddingInline:A(g).sub(o).equal(),paddingBlock:0,lineHeight:_e(A(m).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Object.assign({},rc(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:P,background:S,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:M,borderColor:M,"&:hover":{color:w,background:T,borderColor:T},"&:active":{color:w,background:D,borderColor:D}},"&-disabled":{color:E,backgroundColor:C,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:C,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:_,backgroundColor:x,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},CAe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:h,colorPrimaryActive:p,colorWhite:m}=e,g=4,v=i,b=t?v-g*2:v-(g+o)*2;return{radioSize:v,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:m,radioBgColor:t?s:f}},Die=Kn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${_e(n)} ${t}`,i=kn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[yAe(i),bAe(i),SAe(i)]},CAe,{unitless:{radioSize:!0,dotSize:!0}});var wAe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=d.useContext(Iie),i=d.useContext(kie),{getPrefixCls:a,direction:s,radio:l}=d.useContext(Yt),c=d.useRef(null),u=bi(t,c),{isFormItemInput:f}=d.useContext(Io),h=j=>{var k,F;(k=e.onChange)===null||k===void 0||k.call(e,j),(F=o==null?void 0:o.onChange)===null||F===void 0||F.call(o,j)},{prefixCls:p,className:m,rootClassName:g,children:v,style:b,title:y}=e,S=wAe(e,["prefixCls","className","rootClassName","children","style","title"]),w=a("radio",p),E=((o==null?void 0:o.optionType)||i)==="button",C=E?`${w}-button`:w,x=Mr(w),[_,P,O]=Die(w,x),I=Object.assign({},S),M=d.useContext(zo);o&&(I.name=o.name,I.onChange=h,I.checked=e.value===o.value,I.disabled=(n=I.disabled)!==null&&n!==void 0?n:o.disabled),I.disabled=(r=I.disabled)!==null&&r!==void 0?r:M;const T=xe(`${C}-wrapper`,{[`${C}-wrapper-checked`]:I.checked,[`${C}-wrapper-disabled`]:I.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:f,[`${C}-wrapper-block`]:!!(o!=null&&o.block)},l==null?void 0:l.className,m,g,P,O,x),[D,A]=Aie(I.onClick);return _(d.createElement(H1,{component:"Radio",disabled:I.disabled},d.createElement("label",{className:T,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:D},d.createElement(Nie,Object.assign({},I,{className:xe(I.className,{[w$]:!E}),type:"radio",prefixCls:C,ref:u,onClick:A})),v!==void 0?d.createElement("span",null,v):null)))},eE=d.forwardRef(xAe),EAe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Yt),o=N$(),{prefixCls:i,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:f,size:h,style:p,id:m,optionType:g,name:v=o,defaultValue:b,value:y,block:S=!1,onChange:w,onMouseEnter:E,onMouseLeave:C,onFocus:x,onBlur:_}=e,[P,O]=xn(b,{value:y}),I=d.useCallback(L=>{const Q=P,ee=L.target.value;"value"in e||O(ee),ee!==Q&&(w==null||w(L))},[P,O,w]),M=n("radio",i),T=`${M}-group`,D=Mr(M),[A,j,k]=Die(M,D);let F=f;l&&l.length>0&&(F=l.map(L=>typeof L=="string"||typeof L=="number"?d.createElement(eE,{key:L.toString(),prefixCls:M,disabled:u,value:L,checked:P===L},L):d.createElement(eE,{key:`radio-group-value-options-${L.value}`,prefixCls:M,disabled:L.disabled||u,value:L.value,checked:P===L.value,title:L.title,style:L.style,id:L.id,required:L.required},L.label)));const V=Eo(h),W=xe(T,`${T}-${c}`,{[`${T}-${V}`]:V,[`${T}-rtl`]:r==="rtl",[`${T}-block`]:S},a,s,j,k,D),K=d.useMemo(()=>({onChange:I,value:P,disabled:u,name:v,optionType:g,block:S}),[I,P,u,v,g,S]);return A(d.createElement("div",Object.assign({},Jr(e,{aria:!0,data:!0}),{className:W,style:p,onMouseEnter:E,onMouseLeave:C,onFocus:x,onBlur:_,id:m,ref:t}),d.createElement(mAe,{value:K},F)))}),jie=d.memo(EAe);var _Ae=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=d.useContext(Yt),{prefixCls:r}=e,o=_Ae(e,["prefixCls"]),i=n("radio",r);return d.createElement(gAe,{value:"button"},d.createElement(eE,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},p6=d.forwardRef($Ae),qo=eE;qo.Button=p6;qo.Group=jie;qo.__ANT_RADIO=!0;const PAe=10,OAe=20;function MAe(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:o,prefixCls:i,value:a,onChange:s,divRef:l}=e,c=r.getYear(a||r.getNow());let u=c-PAe,f=u+OAe;n&&(u=r.getYear(n[0]),f=r.getYear(n[1])+1);const h=o&&o.year==="年"?"年":"",p=[];for(let m=u;m{let g=r.setYear(a,m);if(n){const[v,b]=n,y=r.getYear(g),S=r.getMonth(g);y===r.getYear(b)&&S>r.getMonth(b)&&(g=r.setMonth(g,r.getMonth(b))),y===r.getYear(v)&&Sl.current})}function TAe(e){const{prefixCls:t,fullscreen:n,validRange:r,value:o,generateConfig:i,locale:a,onChange:s,divRef:l}=e,c=i.getMonth(o||i.getNow());let u=0,f=11;if(r){const[m,g]=r,v=i.getYear(o);i.getYear(g)===v&&(f=i.getMonth(g)),i.getYear(m)===v&&(u=i.getMonth(m))}const h=a.shortMonths||i.locale.getShortMonths(a.locale),p=[];for(let m=u;m<=f;m+=1)p.push({label:h[m],value:m});return d.createElement(Va,{size:n?void 0:"small",className:`${t}-month-select`,value:c,options:p,onChange:m=>{s(i.setMonth(o,m))},getPopupContainer:()=>l.current})}function RAe(e){const{prefixCls:t,locale:n,mode:r,fullscreen:o,onModeChange:i}=e;return d.createElement(jie,{onChange:a=>{let{target:{value:s}}=a;i(s)},value:r,size:o?void 0:"small",className:`${t}-mode-switch`},d.createElement(p6,{value:"month"},n.month),d.createElement(p6,{value:"year"},n.year))}function IAe(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:o,onModeChange:i}=e,a=d.useRef(null),s=d.useContext(Io),l=d.useMemo(()=>Object.assign(Object.assign({},s),{isFormItemInput:!1}),[s]),c=Object.assign(Object.assign({},e),{fullscreen:n,divRef:a});return d.createElement("div",{className:`${t}-header`,ref:a},d.createElement(Io.Provider,{value:l},d.createElement(MAe,Object.assign({},c,{onChange:u=>{o(u,"year")}})),r==="month"&&d.createElement(TAe,Object.assign({},c,{onChange:u=>{o(u,"month")}}))),d.createElement(RAe,Object.assign({},c,{onModeChange:i})))}function Z1(e){return kn(e,{inputAffixPadding:e.paddingXXS})}const eS=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:S}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:h,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},kAe=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({},kAe(kn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),pD=(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}}),AH=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},pD(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),mD=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pD(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),AH(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),AH(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),DH=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Fie=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},DH(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),DH(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},oP(e))}})}),gD=(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)}},Lie=(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}}),jH=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Lie(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vD=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lie(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),jH(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),jH(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),FH=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Bie=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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},FH(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),FH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),yD=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),zie=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${_e(t)} ${_e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},bD=e=>({padding:`${_e(e.paddingBlockSM)} ${_e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),tS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${_e(e.paddingBlock)} ${_e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},yD(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({},zie(e)),"&-sm":Object.assign({},bD(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Hie=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({},zie(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},bD(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 ${_e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${_e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${_e(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:`${_e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${_e(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"},nc()),{[`${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 @@ -330,23 +330,23 @@ html body { & > ${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}}}})}},AAe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),eS(e)),vD(e)),bD(e)),yD(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"}})}},DAe=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 ${_e(e.inputAffixPadding)}`}}}},jAe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},eS(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}}}),DAe(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},FAe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Qn(e)),Uie(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}}},Lie(e)),zie(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}}})})}},LAe=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, + & > ${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}}}})}},NAe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),tS(e)),mD(e)),vD(e)),gD(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"}})}},AAe=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 ${_e(e.inputAffixPadding)}`}}}},DAe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},tS(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}}}),AAe(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},jAe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Qn(e)),Hie(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}}},Fie(e)),Bie(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}}})})}},FAe=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}}}}},BAe=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"}},[` + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},LAe=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}}}}}},zAe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},wD=Kn("Input",e=>{const t=kn(e,J1(e));return[AAe(t),BAe(t),jAe(t),FAe(t),LAe(t),zAe(t),Bp(t)]},Z1,{resetFont:!1}),eR=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=roe(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:_e(i.itemLineHeight)}}}]},HAe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=kn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=kn(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[eR(o,"small"),eR(e),eR(i,"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"}}},ooe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},UAe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,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:_e(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + `]:{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}}}}}},BAe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},SD=Kn("Input",e=>{const t=kn(e,Z1(e));return[NAe(t),LAe(t),DAe(t),jAe(t),FAe(t),BAe(t),Bp(t)]},eS,{resetFont:!1}),eR=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=noe(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:_e(i.itemLineHeight)}}}]},zAe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=kn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=kn(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[eR(o,"small"),eR(e),eR(i,"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"}}},roe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},HAe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,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:_e(r),borderRadius:o,transition:`background ${i}`},[`&: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:`${_e(s)} ${l} ${c}`,borderRadius:o,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:f,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:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},Wie=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:h,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:S,motionDurationMid:w,colorIconHover:E,fontWeightStrong:C,cellHeight:x,pickerCellPaddingVertical:_,colorTextDisabled:P,colorText:O,fontSize:I,motionDurationSlow:M,withoutTimeCellHeight:T,pickerQuarterPanelContentHeight:D,borderRadiusSM:A,colorTextLightSolid:j,cellHoverBg:k,timeColumnHeight:F,timeColumnWidth:V,timeCellHeight:W,controlItemBgActive:K,marginXXS:L,pickerDatePanelPaddingHorizontal:Q,pickerControlIconMargin:ee}=e,re=e.calc(a).mul(7).add(e.calc(Q).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, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,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:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},Uie=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:h,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:S,motionDurationMid:w,colorIconHover:E,fontWeightStrong:C,cellHeight:x,pickerCellPaddingVertical:_,colorTextDisabled:P,colorText:O,fontSize:I,motionDurationSlow:M,withoutTimeCellHeight:T,pickerQuarterPanelContentHeight:D,borderRadiusSM:A,colorTextLightSolid:j,cellHoverBg:k,timeColumnHeight:F,timeColumnWidth:V,timeCellHeight:W,controlItemBgActive:K,marginXXS:L,pickerDatePanelPaddingHorizontal:Q,pickerControlIconMargin:ee}=e,re=e.calc(a).mul(7).add(e.calc(Q).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:re},"&-header":{display:"flex",padding:`0 ${_e(l)}`,color:g,borderBottom:`${_e(f)} ${h} ${v}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:_e(S),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:E},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:_e(S),"> 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:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${_e(b)} 0`,borderInlineWidth:`${_e(b)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:ee,insetInlineStart:ee,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${_e(b)} 0`,borderInlineWidth:`${_e(b)} 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:x,fontWeight:"normal"},th:{height:e.calc(x).add(e.calc(_).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${_e(_)} 0`,color:P,cursor:"pointer","&-in-view":{color:O}},UAe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(T).mul(4).equal()},[r]:{padding:`0 ${_e(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${_e(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${_e(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${_e(l)} ${_e(Q)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + ${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:re},"&-header":{display:"flex",padding:`0 ${_e(l)}`,color:g,borderBottom:`${_e(f)} ${h} ${v}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:_e(S),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:E},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:_e(S),"> 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:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${_e(b)} 0`,borderInlineWidth:`${_e(b)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:ee,insetInlineStart:ee,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${_e(b)} 0`,borderInlineWidth:`${_e(b)} 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:x,fontWeight:"normal"},th:{height:e.calc(x).add(e.calc(_).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${_e(_)} 0`,color:P,cursor:"pointer","&-in-view":{color:O}},HAe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(T).mul(4).equal()},[r]:{padding:`0 ${_e(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${_e(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${_e(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${_e(l)} ${_e(Q)}`},[`${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 ${w}`},"&:first-child:before":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child:before":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover td:before":{background:k},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Un(j).setA(.5).toHexString()},[r]:{color:j}}},"&-range-hover td:before":{background:K}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${_e(l)} ${_e(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${_e(f)} ${h} ${v}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${M}`},"&-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:F},"&-column":{flex:"1 0 auto",width:V,margin:`${_e(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,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% - ${_e(W)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${_e(f)} ${h} ${v}`},"&-active":{background:new Un(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(V).sub(e.calc(L).mul(2)).equal(),height:W,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(V).sub(W).div(2).equal(),color:O,lineHeight:_e(W),borderRadius:A,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}}}}},WAe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${_e(r)} ${c} ${u}`,"&-extra":{padding:`0 ${_e(o)}`,lineHeight:_e(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${_e(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:_e(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:_e(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Vie=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=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(o).add(e.calc(r).div(2)).equal()}},Kie=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,s=i*2,l=a*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Un(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Un(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},VAe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Z1(e)),Kie(e)),V$(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),KAe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},vD(e)),bD(e)),yD(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},tR=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${_e(i)} ${_e(r)} ${_e(a)}`}},qAe=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}}}}},GAe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:h,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:b,colorTextDescription:y,lineWidthBold:S,colorPrimary:w,motionDurationSlow:E,zIndexPopup:C,paddingXXS:x,sizePopupArrow:_,colorBgElevated:P,borderRadiusLG:O,boxShadowSecondary:I,borderRadiusSM:M,colorSplit:T,cellHoverBg:D,presetsWidth:A,presetsMaxWidth:j,boxShadowPopoverArrow:k,fontHeight:F,fontHeightLG:V,lineHeightLG:W}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Qn(e)),tR(e,r,F,o)),{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}`},SD(f)),{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:f}}},"&-large":Object.assign(Object.assign({},tR(e,h,V,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:W}}),"&-small":Object.assign({},tR(e,m,F,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${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:y}},"&: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:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:S,background:w,opacity:0,transition:`all ${E} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${_e(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Qn(e)),Wie(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:V,margin:`${_e(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,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% - ${_e(W)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${_e(f)} ${h} ${v}`},"&-active":{background:new Un(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(V).sub(e.calc(L).mul(2)).equal(),height:W,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(V).sub(W).div(2).equal(),color:O,lineHeight:_e(W),borderRadius:A,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}}}}},UAe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${_e(r)} ${c} ${u}`,"&-extra":{padding:`0 ${_e(o)}`,lineHeight:_e(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${_e(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:_e(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:_e(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Wie=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=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(o).add(e.calc(r).div(2)).equal()}},Vie=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,s=i*2,l=a*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Un(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Un(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},WAe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},eS(e)),Vie(e)),V$(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),VAe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},mD(e)),vD(e)),gD(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},tR=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${_e(i)} ${_e(r)} ${_e(a)}`}},KAe=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}}}}},qAe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:h,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:b,colorTextDescription:y,lineWidthBold:S,colorPrimary:w,motionDurationSlow:E,zIndexPopup:C,paddingXXS:x,sizePopupArrow:_,colorBgElevated:P,borderRadiusLG:O,boxShadowSecondary:I,borderRadiusSM:M,colorSplit:T,cellHoverBg:D,presetsWidth:A,presetsMaxWidth:j,boxShadowPopoverArrow:k,fontHeight:F,fontHeightLG:V,lineHeightLG:W}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Qn(e)),tR(e,r,F,o)),{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}`},yD(f)),{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:f}}},"&-large":Object.assign(Object.assign({},tR(e,h,V,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:W}}),"&-small":Object.assign({},tR(e,m,F,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${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:y}},"&: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:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:S,background:w,opacity:0,transition:`all ${E} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${_e(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Qn(e)),Uie(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${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, @@ -356,39 +356,39 @@ html body { &${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:_$},[`&${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:O$},[`&${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:$$},[`${t}-panel > ${t}-time-panel`]:{paddingTop:x},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${E} ease-out`},foe(e,P,k)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:P,borderRadius:O,boxShadow:I,transition:`margin ${E}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:A,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${_e(i)} ${a} ${T}`,li:Object.assign(Object.assign({},wa),{borderRadius:M,paddingInline:v,paddingBlock:e.calc(m).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${E}`,"+ li":{marginTop:b},"&:hover":{background:D}})}},[`${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:`${_e(e.calc(_).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down")]},qie=Kn("DatePicker",e=>{const t=kn(J1(e),Vie(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[WAe(t),GAe(t),KAe(t),qAe(t),HAe(t),Bp(e,{focusElCls:`${e.componentCls}-focused`})]},VAe),YAe=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:o,itemActiveBg:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Wie(e)),Qn(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${_e(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${_e(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:_e(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:_e(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${_e(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,width:"100%",height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e.lineWidthBold).equal()},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${_e(e.calc(e.marginXS).div(2).equal())}`,padding:`${_e(e.calc(e.paddingXS).div(2).equal())} ${_e(e.paddingXS)} 0`,border:0,borderTop:`${_e(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:_e(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${_e(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${_e(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},XAe=e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},Kie(e)),QAe=Kn("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=kn(e,Vie(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[YAe(n)]},XAe),Gie=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},g6=(e,t,n)=>{const{getMonth:r}=n;return Gie(e,t,n)&&r(e)===r(t)},zH=(e,t,n)=>{const{getDate:r}=n;return g6(e,t,n)&&r(e)===r(t)},Yie=e=>n=>{const{prefixCls:r,className:o,rootClassName:i,style:a,dateFullCellRender:s,dateCellRender:l,monthFullCellRender:c,monthCellRender:u,cellRender:f,fullCellRender:h,headerRender:p,value:m,defaultValue:g,disabledDate:v,mode:b,validRange:y,fullscreen:S=!0,showWeek:w,onChange:E,onPanelChange:C,onSelect:x}=n,{getPrefixCls:_,direction:P,calendar:O}=d.useContext(Yt),I=_("picker",r),M=`${I}-calendar`,[T,D,A]=QAe(I,M),j=e.getNow(),[k,F]=xn(()=>m||e.getNow(),{defaultValue:g,value:m}),[V,W]=xn("month",{value:b}),K=d.useMemo(()=>V==="year"?"month":"date",[V]),L=d.useCallback(oe=>(y?e.isAfter(y[0],oe)||e.isAfter(oe,y[1]):!1)||!!(v!=null&&v(oe)),[v,y]),Q=(oe,se)=>{C==null||C(oe,se)},ee=oe=>{F(oe),zH(oe,k,e)||((K==="date"&&!g6(oe,k,e)||K==="month"&&!Gie(oe,k,e))&&Q(oe,V),E==null||E(oe))},re=oe=>{W(oe),Q(k,oe)},ie=(oe,se)=>{ee(oe),x==null||x(oe,{source:se})},G=d.useCallback((oe,se)=>h?h(oe,se):s?s(oe):d.createElement("div",{className:xe(`${I}-cell-inner`,`${M}-date`,{[`${M}-date-today`]:zH(j,oe,e)})},d.createElement("div",{className:`${M}-date-value`},String(e.getDate(oe)).padStart(2,"0")),d.createElement("div",{className:`${M}-date-content`},f?f(oe,se):l==null?void 0:l(oe))),[s,l,f,h]),X=d.useCallback((oe,se)=>{if(h)return h(oe,se);if(c)return c(oe);const fe=se.locale.shortMonths||e.locale.getShortMonths(se.locale.locale);return d.createElement("div",{className:xe(`${I}-cell-inner`,`${M}-date`,{[`${M}-date-today`]:g6(j,oe,e)})},d.createElement("div",{className:`${M}-date-value`},fe[e.getMonth(oe)]),d.createElement("div",{className:`${M}-date-content`},f?f(oe,se):u==null?void 0:u(oe)))},[c,u,f,h]),[ne]=zi("Calendar",zb),le=Object.assign(Object.assign({},ne),n.locale),ce=(oe,se)=>{if(se.type==="date")return G(oe,se);if(se.type==="month")return X(oe,Object.assign(Object.assign({},se),{locale:le==null?void 0:le.lang}))};return T(d.createElement("div",{className:xe(M,{[`${M}-full`]:S,[`${M}-mini`]:!S,[`${M}-rtl`]:P==="rtl"},O==null?void 0:O.className,o,i,D,A),style:Object.assign(Object.assign({},O==null?void 0:O.style),a)},p?p({value:k,type:V,onChange:oe=>{ie(oe,"customize")},onTypeChange:re}):d.createElement(kAe,{prefixCls:M,value:k,generateConfig:e,mode:V,fullscreen:S,locale:le==null?void 0:le.lang,validRange:y,onChange:ie,onModeChange:re}),d.createElement(ix,{value:k,prefixCls:I,locale:le==null?void 0:le.lang,generateConfig:e,cellRender:ce,onSelect:oe=>{ie(oe,K)},mode:K,picker:K,disabledDate:L,hideHeader:!0,showWeek:w})))},Xie=Yie(tie);Xie.generateCalendar=Yie;var JAe={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"},ZAe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:JAe}))},Uu=d.forwardRef(ZAe);const iP=d.createContext(null);var eDe=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,c=l===void 0?"center":l,u=d.useState(),f=$e(u,2),h=f[0],p=f[1],m=d.useRef(),g=de.useCallback(function(b){return typeof s=="function"?s(b):typeof s=="number"?s:b},[s]);function v(){zn.cancel(m.current)}return d.useEffect(function(){var b={};if(n)if(r){b.width=g(n.width);var y=o?"right":"left";c==="start"&&(b[y]=n[y]),c==="center"&&(b[y]=n[y]+n.width/2,b.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(b[y]=n[y]+n.width,b.transform="translateX(-100%)")}else b.height=g(n.height),c==="start"&&(b.top=n.top),c==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),c==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return v(),m.current=zn(function(){p(b)}),v},[n,r,o,c,g]),{style:h}},HH={width:0,height:0,left:0,top:0};function tDe(e,t,n){return d.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||HH,a=i.left+i.width,s=0;sD?(M=O,C.current="x"):(M=I,C.current="y"),t(-M,-M)&&P.preventDefault()}var _=d.useRef(null);_.current={onTouchStart:S,onTouchMove:w,onTouchEnd:E,onWheel:x},d.useEffect(function(){function P(T){_.current.onTouchStart(T)}function O(T){_.current.onTouchMove(T)}function I(T){_.current.onTouchEnd(T)}function M(T){_.current.onWheel(T)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",P,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",I)}},[])}function Qie(e){var t=d.useState(0),n=$e(t,2),r=n[0],o=n[1],i=d.useRef(0),a=d.useRef();return a.current=e,Gh(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function oDe(e){var t=d.useRef([]),n=d.useState({}),r=$e(n,2),o=r[1],i=d.useRef(typeof e=="function"?e():e),a=Qie(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var KH={width:0,height:0,left:0,top:0,right:0};function iDe(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,f,h;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",h=Math.abs(n)):(u="height",f="top",h=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,m=p,g=0;gMath.floor(h+t)){m=g-1;break}}for(var b=0,y=p-1;y>=0;y-=1){var S=e.get(s[y].key)||KH;if(S[f]=m?[0,0]:[b,m]},[e,t,r,o,i,h,l,s.map(function(p){return p.key}).join("_"),c])}function qH(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var aDe="TABS_DQ";function Jie(e){return String(e).replace(/"/g,aDe)}function xD(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Zie=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),GH=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Ht(o)==="object"&&!d.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),sDe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,h=e.tabBarGutter,p=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,b=e.popupClassName,y=d.useState(!1),S=$e(y,2),w=S[0],E=S[1],C=d.useState(null),x=$e(C,2),_=x[0],P=x[1],O=l.icon,I=O===void 0?"More":O,M="".concat(r,"-more-popup"),T="".concat(n,"-dropdown"),D=_!==null?"".concat(M,"-").concat(_):null,A=i==null?void 0:i.dropdownAriaLabel;function j(Q,ee){Q.preventDefault(),Q.stopPropagation(),f.onEdit("remove",{key:ee,event:Q})}var k=d.createElement(kv,{onClick:function(ee){var re=ee.key,ie=ee.domEvent;g(re,ie),E(!1)},prefixCls:"".concat(T,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[_],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(Q){var ee=Q.closable,re=Q.disabled,ie=Q.closeIcon,G=Q.key,X=Q.label,ne=xD(ee,ie,f,re);return d.createElement(X1,{key:G,id:"".concat(M,"-").concat(G),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(G),disabled:re},d.createElement("span",null,X),ne&&d.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(ce){ce.stopPropagation(),j(ce,G)}},ie||f.removeIcon||"×"))}));function F(Q){for(var ee=o.filter(function(ne){return!ne.disabled}),re=ee.findIndex(function(ne){return ne.key===_})||0,ie=ee.length,G=0;Gtt?"left":"right"})}),T=$e(M,2),D=T[0],A=T[1],j=UH(0,function(kt,tt){!I&&g&&g({direction:kt>tt?"top":"bottom"})}),k=$e(j,2),F=k[0],V=k[1],W=d.useState([0,0]),K=$e(W,2),L=K[0],Q=K[1],ee=d.useState([0,0]),re=$e(ee,2),ie=re[0],G=re[1],X=d.useState([0,0]),ne=$e(X,2),le=ne[0],ce=ne[1],oe=d.useState([0,0]),se=$e(oe,2),fe=se[0],te=se[1],he=oDe(new Map),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=tDe(S,Oe,ie[0]),ye=qC(L,I),ve=qC(ie,I),be=qC(le,I),Pe=qC(fe,I),Ne=Math.floor(ye)me?me:kt}var ue=d.useRef(null),Le=d.useState(),He=$e(Le,2),ge=He[0],De=He[1];function qe(){De(Date.now())}function je(){ue.current&&clearTimeout(ue.current)}rDe(x,function(kt,tt){function Mt(Ot,pn){Ot(function(Pn){var $=Ce(Pn+pn);return $})}return Ne?(I?Mt(A,kt):Mt(V,tt),je(),qe(),!0):!1}),d.useEffect(function(){return je(),ge&&(ue.current=setTimeout(function(){De(0)},100)),je},[ge]);var Ke=iDe(Se,U,I?D:F,ve,be,Pe,z(z({},e),{},{tabs:S})),Ue=$e(Ke,2),Ve=Ue[0],St=Ue[1],et=An(function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,tt=Se.get(kt)||{width:0,height:0,left:0,right:0,top:0};if(I){var Mt=D;s?tt.rightD+U&&(Mt=tt.right+tt.width-U):tt.left<-D?Mt=-tt.left:tt.left+tt.width>-D+U&&(Mt=-(tt.left+tt.width-U)),V(0),A(Ce(Mt))}else{var Ot=F;tt.top<-F?Ot=-tt.top:tt.top+tt.height>-F+U&&(Ot=-(tt.top+tt.height-U)),A(0),V(Ce(Ot))}}),st=d.useState(),Ct=$e(st,2),dt=Ct[0],Lt=Ct[1],wt=d.useState(!1),Et=$e(wt,2),Tt=Et[0],Be=Et[1],We=S.filter(function(kt){return!kt.disabled}).map(function(kt){return kt.key}),Fe=function(tt){var Mt=We.indexOf(dt||a),Ot=We.length,pn=(Mt+tt+Ot)%Ot,Pn=We[pn];Lt(Pn)},Xe=function(tt){var Mt=tt.code,Ot=s&&I,pn=We[0],Pn=We[We.length-1];switch(Mt){case"ArrowLeft":{I&&Fe(Ot?1:-1);break}case"ArrowRight":{I&&Fe(Ot?-1:1);break}case"ArrowUp":{tt.preventDefault(),I||Fe(-1);break}case"ArrowDown":{tt.preventDefault(),I||Fe(1);break}case"Home":{tt.preventDefault(),Lt(pn);break}case"End":{tt.preventDefault(),Lt(Pn);break}case"Enter":case"Space":{tt.preventDefault(),m(dt,tt);break}case"Backspace":case"Delete":{var $=We.indexOf(dt),R=S.find(function(Ee){return Ee.key===dt}),J=xD(R==null?void 0:R.closable,R==null?void 0:R.closeIcon,c,R==null?void 0:R.disabled);J&&(tt.preventDefault(),tt.stopPropagation(),c.onEdit("remove",{key:dt,event:tt}),$===We.length-1?Fe(-1):Fe(1));break}}},gt={};I?gt[s?"marginRight":"marginLeft"]=h:gt.marginTop=h;var pt=S.map(function(kt,tt){var Mt=kt.key;return d.createElement(cDe,{id:o,prefixCls:y,key:Mt,tab:kt,style:tt===0?void 0:gt,closable:kt.closable,editable:c,active:Mt===a,focus:Mt===dt,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:We.length,currentPosition:tt+1,onClick:function(pn){m(Mt,pn)},onKeyDown:Xe,onFocus:function(){Tt||Lt(Mt),et(Mt),qe(),x.current&&(s||(x.current.scrollLeft=0),x.current.scrollTop=0)},onBlur:function(){Lt(void 0)},onMouseDown:function(){Be(!0)},onMouseUp:function(){Be(!1)}})}),Rt=function(){return Me(function(){var tt,Mt=new Map,Ot=(tt=_.current)===null||tt===void 0?void 0:tt.getBoundingClientRect();return S.forEach(function(pn){var Pn,$=pn.key,R=(Pn=_.current)===null||Pn===void 0?void 0:Pn.querySelector('[data-node-key="'.concat(Jie($),'"]'));if(R){var J=uDe(R,Ot),Ee=$e(J,4),ke=Ee[0],Je=Ee[1],Dt=Ee[2],an=Ee[3];Mt.set($,{width:ke,height:Je,left:Dt,top:an})}}),Mt})};d.useEffect(function(){Rt()},[S.map(function(kt){return kt.key}).join("_")]);var _t=Qie(function(){var kt=gm(w),tt=gm(E),Mt=gm(C);Q([kt[0]-tt[0]-Mt[0],kt[1]-tt[1]-Mt[1]]);var Ot=gm(O);ce(Ot);var pn=gm(P);te(pn);var Pn=gm(_);G([Pn[0]-Ot[0],Pn[1]-Ot[1]]),Rt()}),vt=S.slice(0,Ve),ft=S.slice(St+1),It=[].concat(Ze(vt),Ze(ft)),bt=Se.get(a),Wt=eDe({activeTabOffset:bt,horizontal:I,indicator:v,rtl:s}),at=Wt.style;d.useEffect(function(){et()},[a,q,me,qH(bt),qH(Se),I]),d.useEffect(function(){_t()},[s]);var Pt=!!It.length,Bt="".concat(y,"-nav-wrap"),xt,yt,Ft,Re;return I?s?(yt=D>0,xt=D!==me):(xt=D<0,yt=D!==q):(Ft=F<0,Re=F!==q),d.createElement(Oi,{onResize:_t},d.createElement("div",{ref:mc(t,w),role:"tablist","aria-orientation":I?"horizontal":"vertical",className:xe("".concat(y,"-nav"),n),style:r,onKeyDown:function(){qe()}},d.createElement(GH,{ref:E,position:"left",extra:l,prefixCls:y}),d.createElement(Oi,{onResize:_t},d.createElement("div",{className:xe(Bt,Z(Z(Z(Z({},"".concat(Bt,"-ping-left"),xt),"".concat(Bt,"-ping-right"),yt),"".concat(Bt,"-ping-top"),Ft),"".concat(Bt,"-ping-bottom"),Re)),ref:x},d.createElement(Oi,{onResize:_t},d.createElement("div",{ref:_,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(F,"px)"),transition:ge?"none":void 0}},pt,d.createElement(Zie,{ref:O,prefixCls:y,locale:u,editable:c,style:z(z({},pt.length===0?void 0:gt),{},{visibility:Pt?"hidden":null})}),d.createElement("div",{className:xe("".concat(y,"-ink-bar"),Z({},"".concat(y,"-ink-bar-animated"),i.inkBar)),style:at}))))),d.createElement(lDe,Ge({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:P,prefixCls:y,tabs:It,className:!Pt&&H,tabMoving:!!ge})),d.createElement(GH,{ref:C,position:"right",extra:l,prefixCls:y})))}),eae=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:xe(n,a&&"".concat(n,"-active"),r),ref:t},l)}),dDe=["renderTabBar"],fDe=["label","key"],hDe=function(t){var n=t.renderTabBar,r=At(t,dDe),o=d.useContext(iP),i=o.tabs;if(n){var a=z(z({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=At(s,fDe);return d.createElement(eae,Ge({tab:l,key:c,tabKey:c},u))})});return n(a,YH)}return d.createElement(YH,r)},pDe=["key","forceRender","style","className","destroyInactiveTabPane"],mDe=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=d.useContext(iP),l=s.prefixCls,c=s.tabs,u=o.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:xe("".concat(l,"-content-holder"))},d.createElement("div",{className:xe("".concat(l,"-content"),"".concat(l,"-content-").concat(i),Z({},"".concat(l,"-content-animated"),u))},c.map(function(h){var p=h.key,m=h.forceRender,g=h.style,v=h.className,b=h.destroyInactiveTabPane,y=At(h,pDe),S=p===r;return d.createElement(Jo,Ge({key:p,visible:S,forceRender:m,removeOnLeave:!!(a||b),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(w,E){var C=w.style,x=w.className;return d.createElement(eae,Ge({},y,{prefixCls:f,id:n,tabKey:p,animated:u,active:S,style:z(z({},g),C),className:xe(v,x),ref:E}))})})))};function gDe(){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=z({inkBar:!0},Ht(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var vDe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],XH=0,yDe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,h=e.tabPosition,p=h===void 0?"top":h,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,b=e.locale,y=e.more,S=e.destroyInactiveTabPane,w=e.renderTabBar,E=e.onChange,C=e.onTabClick,x=e.onTabScroll,_=e.getPopupContainer,P=e.popupClassName,O=e.indicator,I=At(e,vDe),M=d.useMemo(function(){return(a||[]).filter(function(fe){return fe&&Ht(fe)==="object"&&"key"in fe})},[a]),T=s==="rtl",D=gDe(f),A=d.useState(!1),j=$e(A,2),k=j[0],F=j[1];d.useEffect(function(){F(F$())},[]);var V=xn(function(){var fe;return(fe=M[0])===null||fe===void 0?void 0:fe.key},{value:l,defaultValue:c}),W=$e(V,2),K=W[0],L=W[1],Q=d.useState(function(){return M.findIndex(function(fe){return fe.key===K})}),ee=$e(Q,2),re=ee[0],ie=ee[1];d.useEffect(function(){var fe=M.findIndex(function(he){return he.key===K});if(fe===-1){var te;fe=Math.max(0,Math.min(re,M.length-1)),L((te=M[fe])===null||te===void 0?void 0:te.key)}ie(fe)},[M.map(function(fe){return fe.key}).join("_"),K,re]);var G=xn(null,{value:n}),X=$e(G,2),ne=X[0],le=X[1];d.useEffect(function(){n||(le("rc-tabs-".concat(XH)),XH+=1)},[]);function ce(fe,te){C==null||C(fe,te);var he=fe!==K;L(fe),he&&(E==null||E(fe))}var oe={id:ne,activeKey:K,animated:D,tabPosition:p,rtl:T,mobile:k},se=z(z({},oe),{},{editable:u,locale:b,more:y,tabBarGutter:m,onTabClick:ce,onTabScroll:x,extra:v,style:g,panes:null,getPopupContainer:_,popupClassName:P,indicator:O});return d.createElement(iP.Provider,{value:{tabs:M,prefixCls:o}},d.createElement("div",Ge({ref:t,id:n,className:xe(o,"".concat(o,"-").concat(p),Z(Z(Z({},"".concat(o,"-mobile"),k),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),T),i)},I),d.createElement(hDe,Ge({},se,{renderTabBar:w})),d.createElement(mDe,Ge({destroyInactiveTabPane:S},oe,{animated:D}))))});const bDe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function SDe(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({},bDe),{motionName:Mi(e,"switch")})),n}var CDe=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 o=0,r=Object.getOwnPropertySymbols(e);ot)}function xDe(e,t){if(e)return e;const n=ai(t).map(r=>{if(d.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=CDe(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return wDe(n)}const EDe=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}`}}}}},[Yc(e,"slide-up"),Yc(e,"slide-down")]]},_De=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${_e(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},rc(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:_e(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:_e(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadiusLG)} 0 0 ${_e(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 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},$De=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Qn(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:`${_e(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({},wa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${_e(e.paddingXXS)} ${_e(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"}}})}})}},PDe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:$$},[`${t}-panel > ${t}-time-panel`]:{paddingTop:x},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${E} ease-out`},doe(e,P,k)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:P,borderRadius:O,boxShadow:I,transition:`margin ${E}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:A,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${_e(i)} ${a} ${T}`,li:Object.assign(Object.assign({},wa),{borderRadius:M,paddingInline:v,paddingBlock:e.calc(m).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${E}`,"+ li":{marginTop:b},"&:hover":{background:D}})}},[`${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:`${_e(e.calc(_).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down")]},Kie=Kn("DatePicker",e=>{const t=kn(Z1(e),Wie(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[UAe(t),qAe(t),VAe(t),KAe(t),zAe(t),Bp(e,{focusElCls:`${e.componentCls}-focused`})]},WAe),GAe=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:o,itemActiveBg:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Uie(e)),Qn(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${_e(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${_e(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:_e(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:_e(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${_e(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,width:"100%",height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e.lineWidthBold).equal()},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${_e(e.calc(e.marginXS).div(2).equal())}`,padding:`${_e(e.calc(e.paddingXS).div(2).equal())} ${_e(e.paddingXS)} 0`,border:0,borderTop:`${_e(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:_e(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${_e(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${_e(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},YAe=e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},Vie(e)),XAe=Kn("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=kn(e,Wie(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[GAe(n)]},YAe),qie=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},m6=(e,t,n)=>{const{getMonth:r}=n;return qie(e,t,n)&&r(e)===r(t)},LH=(e,t,n)=>{const{getDate:r}=n;return m6(e,t,n)&&r(e)===r(t)},Gie=e=>n=>{const{prefixCls:r,className:o,rootClassName:i,style:a,dateFullCellRender:s,dateCellRender:l,monthFullCellRender:c,monthCellRender:u,cellRender:f,fullCellRender:h,headerRender:p,value:m,defaultValue:g,disabledDate:v,mode:b,validRange:y,fullscreen:S=!0,showWeek:w,onChange:E,onPanelChange:C,onSelect:x}=n,{getPrefixCls:_,direction:P,calendar:O}=d.useContext(Yt),I=_("picker",r),M=`${I}-calendar`,[T,D,A]=XAe(I,M),j=e.getNow(),[k,F]=xn(()=>m||e.getNow(),{defaultValue:g,value:m}),[V,W]=xn("month",{value:b}),K=d.useMemo(()=>V==="year"?"month":"date",[V]),L=d.useCallback(oe=>(y?e.isAfter(y[0],oe)||e.isAfter(oe,y[1]):!1)||!!(v!=null&&v(oe)),[v,y]),Q=(oe,se)=>{C==null||C(oe,se)},ee=oe=>{F(oe),LH(oe,k,e)||((K==="date"&&!m6(oe,k,e)||K==="month"&&!qie(oe,k,e))&&Q(oe,V),E==null||E(oe))},re=oe=>{W(oe),Q(k,oe)},ie=(oe,se)=>{ee(oe),x==null||x(oe,{source:se})},G=d.useCallback((oe,se)=>h?h(oe,se):s?s(oe):d.createElement("div",{className:xe(`${I}-cell-inner`,`${M}-date`,{[`${M}-date-today`]:LH(j,oe,e)})},d.createElement("div",{className:`${M}-date-value`},String(e.getDate(oe)).padStart(2,"0")),d.createElement("div",{className:`${M}-date-content`},f?f(oe,se):l==null?void 0:l(oe))),[s,l,f,h]),X=d.useCallback((oe,se)=>{if(h)return h(oe,se);if(c)return c(oe);const fe=se.locale.shortMonths||e.locale.getShortMonths(se.locale.locale);return d.createElement("div",{className:xe(`${I}-cell-inner`,`${M}-date`,{[`${M}-date-today`]:m6(j,oe,e)})},d.createElement("div",{className:`${M}-date-value`},fe[e.getMonth(oe)]),d.createElement("div",{className:`${M}-date-content`},f?f(oe,se):u==null?void 0:u(oe)))},[c,u,f,h]),[ne]=zi("Calendar",zb),le=Object.assign(Object.assign({},ne),n.locale),ce=(oe,se)=>{if(se.type==="date")return G(oe,se);if(se.type==="month")return X(oe,Object.assign(Object.assign({},se),{locale:le==null?void 0:le.lang}))};return T(d.createElement("div",{className:xe(M,{[`${M}-full`]:S,[`${M}-mini`]:!S,[`${M}-rtl`]:P==="rtl"},O==null?void 0:O.className,o,i,D,A),style:Object.assign(Object.assign({},O==null?void 0:O.style),a)},p?p({value:k,type:V,onChange:oe=>{ie(oe,"customize")},onTypeChange:re}):d.createElement(IAe,{prefixCls:M,value:k,generateConfig:e,mode:V,fullscreen:S,locale:le==null?void 0:le.lang,validRange:y,onChange:ie,onModeChange:re}),d.createElement(ax,{value:k,prefixCls:I,locale:le==null?void 0:le.lang,generateConfig:e,cellRender:ce,onSelect:oe=>{ie(oe,K)},mode:K,picker:K,disabledDate:L,hideHeader:!0,showWeek:w})))},Yie=Gie(eie);Yie.generateCalendar=Gie;var QAe={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"},JAe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:QAe}))},Hu=d.forwardRef(JAe);const iP=d.createContext(null);var ZAe=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,c=l===void 0?"center":l,u=d.useState(),f=$e(u,2),h=f[0],p=f[1],m=d.useRef(),g=de.useCallback(function(b){return typeof s=="function"?s(b):typeof s=="number"?s:b},[s]);function v(){zn.cancel(m.current)}return d.useEffect(function(){var b={};if(n)if(r){b.width=g(n.width);var y=o?"right":"left";c==="start"&&(b[y]=n[y]),c==="center"&&(b[y]=n[y]+n.width/2,b.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(b[y]=n[y]+n.width,b.transform="translateX(-100%)")}else b.height=g(n.height),c==="start"&&(b.top=n.top),c==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),c==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return v(),m.current=zn(function(){p(b)}),v},[n,r,o,c,g]),{style:h}},BH={width:0,height:0,left:0,top:0};function eDe(e,t,n){return d.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||BH,a=i.left+i.width,s=0;sD?(M=O,C.current="x"):(M=I,C.current="y"),t(-M,-M)&&P.preventDefault()}var _=d.useRef(null);_.current={onTouchStart:S,onTouchMove:w,onTouchEnd:E,onWheel:x},d.useEffect(function(){function P(T){_.current.onTouchStart(T)}function O(T){_.current.onTouchMove(T)}function I(T){_.current.onTouchEnd(T)}function M(T){_.current.onWheel(T)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",P,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",I)}},[])}function Xie(e){var t=d.useState(0),n=$e(t,2),r=n[0],o=n[1],i=d.useRef(0),a=d.useRef();return a.current=e,Gh(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function rDe(e){var t=d.useRef([]),n=d.useState({}),r=$e(n,2),o=r[1],i=d.useRef(typeof e=="function"?e():e),a=Xie(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var WH={width:0,height:0,left:0,top:0,right:0};function oDe(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,f,h;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",h=Math.abs(n)):(u="height",f="top",h=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,m=p,g=0;gMath.floor(h+t)){m=g-1;break}}for(var b=0,y=p-1;y>=0;y-=1){var S=e.get(s[y].key)||WH;if(S[f]=m?[0,0]:[b,m]},[e,t,r,o,i,h,l,s.map(function(p){return p.key}).join("_"),c])}function VH(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var iDe="TABS_DQ";function Qie(e){return String(e).replace(/"/g,iDe)}function CD(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Jie=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),KH=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Ht(o)==="object"&&!d.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),aDe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,h=e.tabBarGutter,p=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,b=e.popupClassName,y=d.useState(!1),S=$e(y,2),w=S[0],E=S[1],C=d.useState(null),x=$e(C,2),_=x[0],P=x[1],O=l.icon,I=O===void 0?"More":O,M="".concat(r,"-more-popup"),T="".concat(n,"-dropdown"),D=_!==null?"".concat(M,"-").concat(_):null,A=i==null?void 0:i.dropdownAriaLabel;function j(Q,ee){Q.preventDefault(),Q.stopPropagation(),f.onEdit("remove",{key:ee,event:Q})}var k=d.createElement(kv,{onClick:function(ee){var re=ee.key,ie=ee.domEvent;g(re,ie),E(!1)},prefixCls:"".concat(T,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[_],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(Q){var ee=Q.closable,re=Q.disabled,ie=Q.closeIcon,G=Q.key,X=Q.label,ne=CD(ee,ie,f,re);return d.createElement(Q1,{key:G,id:"".concat(M,"-").concat(G),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(G),disabled:re},d.createElement("span",null,X),ne&&d.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(ce){ce.stopPropagation(),j(ce,G)}},ie||f.removeIcon||"×"))}));function F(Q){for(var ee=o.filter(function(ne){return!ne.disabled}),re=ee.findIndex(function(ne){return ne.key===_})||0,ie=ee.length,G=0;Gtt?"left":"right"})}),T=$e(M,2),D=T[0],A=T[1],j=zH(0,function(It,tt){!I&&g&&g({direction:It>tt?"top":"bottom"})}),k=$e(j,2),F=k[0],V=k[1],W=d.useState([0,0]),K=$e(W,2),L=K[0],Q=K[1],ee=d.useState([0,0]),re=$e(ee,2),ie=re[0],G=re[1],X=d.useState([0,0]),ne=$e(X,2),le=ne[0],ce=ne[1],oe=d.useState([0,0]),se=$e(oe,2),fe=se[0],te=se[1],he=rDe(new Map),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=eDe(S,Oe,ie[0]),ye=GC(L,I),ve=GC(ie,I),be=GC(le,I),Pe=GC(fe,I),Ne=Math.floor(ye)me?me:It}var ue=d.useRef(null),Le=d.useState(),He=$e(Le,2),ge=He[0],De=He[1];function qe(){De(Date.now())}function Fe(){ue.current&&clearTimeout(ue.current)}nDe(x,function(It,tt){function Ot(Pt,pn){Pt(function(Pn){var $=Ce(Pn+pn);return $})}return Ne?(I?Ot(A,It):Ot(V,tt),Fe(),qe(),!0):!1}),d.useEffect(function(){return Fe(),ge&&(ue.current=setTimeout(function(){De(0)},100)),Fe},[ge]);var Ke=oDe(Se,U,I?D:F,ve,be,Pe,z(z({},e),{},{tabs:S})),Ue=$e(Ke,2),Ve=Ue[0],Tt=Ue[1],et=An(function(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,tt=Se.get(It)||{width:0,height:0,left:0,right:0,top:0};if(I){var Ot=D;s?tt.rightD+U&&(Ot=tt.right+tt.width-U):tt.left<-D?Ot=-tt.left:tt.left+tt.width>-D+U&&(Ot=-(tt.left+tt.width-U)),V(0),A(Ce(Ot))}else{var Pt=F;tt.top<-F?Pt=-tt.top:tt.top+tt.height>-F+U&&(Pt=-(tt.top+tt.height-U)),A(0),V(Ce(Pt))}}),st=d.useState(),yt=$e(st,2),gt=yt[0],Lt=yt[1],St=d.useState(!1),wt=$e(St,2),Nt=wt[0],Be=wt[1],We=S.filter(function(It){return!It.disabled}).map(function(It){return It.key}),je=function(tt){var Ot=We.indexOf(gt||a),Pt=We.length,pn=(Ot+tt+Pt)%Pt,Pn=We[pn];Lt(Pn)},Xe=function(tt){var Ot=tt.code,Pt=s&&I,pn=We[0],Pn=We[We.length-1];switch(Ot){case"ArrowLeft":{I&&je(Pt?1:-1);break}case"ArrowRight":{I&&je(Pt?-1:1);break}case"ArrowUp":{tt.preventDefault(),I||je(-1);break}case"ArrowDown":{tt.preventDefault(),I||je(1);break}case"Home":{tt.preventDefault(),Lt(pn);break}case"End":{tt.preventDefault(),Lt(Pn);break}case"Enter":case"Space":{tt.preventDefault(),m(gt,tt);break}case"Backspace":case"Delete":{var $=We.indexOf(gt),R=S.find(function(Ee){return Ee.key===gt}),J=CD(R==null?void 0:R.closable,R==null?void 0:R.closeIcon,c,R==null?void 0:R.disabled);J&&(tt.preventDefault(),tt.stopPropagation(),c.onEdit("remove",{key:gt,event:tt}),$===We.length-1?je(-1):je(1));break}}},pt={};I?pt[s?"marginRight":"marginLeft"]=h:pt.marginTop=h;var vt=S.map(function(It,tt){var Ot=It.key;return d.createElement(lDe,{id:o,prefixCls:y,key:Ot,tab:It,style:tt===0?void 0:pt,closable:It.closable,editable:c,active:Ot===a,focus:Ot===gt,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:We.length,currentPosition:tt+1,onClick:function(pn){m(Ot,pn)},onKeyDown:Xe,onFocus:function(){Nt||Lt(Ot),et(Ot),qe(),x.current&&(s||(x.current.scrollLeft=0),x.current.scrollTop=0)},onBlur:function(){Lt(void 0)},onMouseDown:function(){Be(!0)},onMouseUp:function(){Be(!1)}})}),Mt=function(){return Me(function(){var tt,Ot=new Map,Pt=(tt=_.current)===null||tt===void 0?void 0:tt.getBoundingClientRect();return S.forEach(function(pn){var Pn,$=pn.key,R=(Pn=_.current)===null||Pn===void 0?void 0:Pn.querySelector('[data-node-key="'.concat(Qie($),'"]'));if(R){var J=cDe(R,Pt),Ee=$e(J,4),ke=Ee[0],Je=Ee[1],Dt=Ee[2],an=Ee[3];Ot.set($,{width:ke,height:Je,left:Dt,top:an})}}),Ot})};d.useEffect(function(){Mt()},[S.map(function(It){return It.key}).join("_")]);var Et=Xie(function(){var It=gm(w),tt=gm(E),Ot=gm(C);Q([It[0]-tt[0]-Ot[0],It[1]-tt[1]-Ot[1]]);var Pt=gm(O);ce(Pt);var pn=gm(P);te(pn);var Pn=gm(_);G([Pn[0]-Pt[0],Pn[1]-Pt[1]]),Mt()}),ft=S.slice(0,Ve),dt=S.slice(Tt+1),Rt=[].concat(Ze(ft),Ze(dt)),Ct=Se.get(a),Wt=ZAe({activeTabOffset:Ct,horizontal:I,indicator:v,rtl:s}),at=Wt.style;d.useEffect(function(){et()},[a,q,me,VH(Ct),VH(Se),I]),d.useEffect(function(){Et()},[s]);var $t=!!Rt.length,Bt="".concat(y,"-nav-wrap"),xt,bt,Ft,Re;return I?s?(bt=D>0,xt=D!==me):(xt=D<0,bt=D!==q):(Ft=F<0,Re=F!==q),d.createElement(Oi,{onResize:Et},d.createElement("div",{ref:mc(t,w),role:"tablist","aria-orientation":I?"horizontal":"vertical",className:xe("".concat(y,"-nav"),n),style:r,onKeyDown:function(){qe()}},d.createElement(KH,{ref:E,position:"left",extra:l,prefixCls:y}),d.createElement(Oi,{onResize:Et},d.createElement("div",{className:xe(Bt,Z(Z(Z(Z({},"".concat(Bt,"-ping-left"),xt),"".concat(Bt,"-ping-right"),bt),"".concat(Bt,"-ping-top"),Ft),"".concat(Bt,"-ping-bottom"),Re)),ref:x},d.createElement(Oi,{onResize:Et},d.createElement("div",{ref:_,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(F,"px)"),transition:ge?"none":void 0}},vt,d.createElement(Jie,{ref:O,prefixCls:y,locale:u,editable:c,style:z(z({},vt.length===0?void 0:pt),{},{visibility:$t?"hidden":null})}),d.createElement("div",{className:xe("".concat(y,"-ink-bar"),Z({},"".concat(y,"-ink-bar-animated"),i.inkBar)),style:at}))))),d.createElement(sDe,Ge({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:P,prefixCls:y,tabs:Rt,className:!$t&&H,tabMoving:!!ge})),d.createElement(KH,{ref:C,position:"right",extra:l,prefixCls:y})))}),Zie=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:xe(n,a&&"".concat(n,"-active"),r),ref:t},l)}),uDe=["renderTabBar"],dDe=["label","key"],fDe=function(t){var n=t.renderTabBar,r=At(t,uDe),o=d.useContext(iP),i=o.tabs;if(n){var a=z(z({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=At(s,dDe);return d.createElement(Zie,Ge({tab:l,key:c,tabKey:c},u))})});return n(a,qH)}return d.createElement(qH,r)},hDe=["key","forceRender","style","className","destroyInactiveTabPane"],pDe=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=d.useContext(iP),l=s.prefixCls,c=s.tabs,u=o.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:xe("".concat(l,"-content-holder"))},d.createElement("div",{className:xe("".concat(l,"-content"),"".concat(l,"-content-").concat(i),Z({},"".concat(l,"-content-animated"),u))},c.map(function(h){var p=h.key,m=h.forceRender,g=h.style,v=h.className,b=h.destroyInactiveTabPane,y=At(h,hDe),S=p===r;return d.createElement(Jo,Ge({key:p,visible:S,forceRender:m,removeOnLeave:!!(a||b),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(w,E){var C=w.style,x=w.className;return d.createElement(Zie,Ge({},y,{prefixCls:f,id:n,tabKey:p,animated:u,active:S,style:z(z({},g),C),className:xe(v,x),ref:E}))})})))};function mDe(){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=z({inkBar:!0},Ht(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var gDe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],GH=0,vDe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,h=e.tabPosition,p=h===void 0?"top":h,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,b=e.locale,y=e.more,S=e.destroyInactiveTabPane,w=e.renderTabBar,E=e.onChange,C=e.onTabClick,x=e.onTabScroll,_=e.getPopupContainer,P=e.popupClassName,O=e.indicator,I=At(e,gDe),M=d.useMemo(function(){return(a||[]).filter(function(fe){return fe&&Ht(fe)==="object"&&"key"in fe})},[a]),T=s==="rtl",D=mDe(f),A=d.useState(!1),j=$e(A,2),k=j[0],F=j[1];d.useEffect(function(){F(F$())},[]);var V=xn(function(){var fe;return(fe=M[0])===null||fe===void 0?void 0:fe.key},{value:l,defaultValue:c}),W=$e(V,2),K=W[0],L=W[1],Q=d.useState(function(){return M.findIndex(function(fe){return fe.key===K})}),ee=$e(Q,2),re=ee[0],ie=ee[1];d.useEffect(function(){var fe=M.findIndex(function(he){return he.key===K});if(fe===-1){var te;fe=Math.max(0,Math.min(re,M.length-1)),L((te=M[fe])===null||te===void 0?void 0:te.key)}ie(fe)},[M.map(function(fe){return fe.key}).join("_"),K,re]);var G=xn(null,{value:n}),X=$e(G,2),ne=X[0],le=X[1];d.useEffect(function(){n||(le("rc-tabs-".concat(GH)),GH+=1)},[]);function ce(fe,te){C==null||C(fe,te);var he=fe!==K;L(fe),he&&(E==null||E(fe))}var oe={id:ne,activeKey:K,animated:D,tabPosition:p,rtl:T,mobile:k},se=z(z({},oe),{},{editable:u,locale:b,more:y,tabBarGutter:m,onTabClick:ce,onTabScroll:x,extra:v,style:g,panes:null,getPopupContainer:_,popupClassName:P,indicator:O});return d.createElement(iP.Provider,{value:{tabs:M,prefixCls:o}},d.createElement("div",Ge({ref:t,id:n,className:xe(o,"".concat(o,"-").concat(p),Z(Z(Z({},"".concat(o,"-mobile"),k),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),T),i)},I),d.createElement(fDe,Ge({},se,{renderTabBar:w})),d.createElement(pDe,Ge({destroyInactiveTabPane:S},oe,{animated:D}))))});const yDe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function bDe(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({},yDe),{motionName:Mi(e,"switch")})),n}var SDe=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 o=0,r=Object.getOwnPropertySymbols(e);ot)}function wDe(e,t){if(e)return e;const n=ai(t).map(r=>{if(d.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=SDe(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return CDe(n)}const xDe=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}`}}}}},[Yc(e,"slide-up"),Yc(e,"slide-down")]]},EDe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${_e(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},rc(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:_e(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:_e(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadiusLG)} 0 0 ${_e(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 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},_De=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Qn(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:`${_e(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({},wa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${_e(e.paddingXXS)} ${_e(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"}}})}})}},$De=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e(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:i,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:_e(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${_e(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ODe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadius)} ${_e(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${_e(e.borderRadius)} ${_e(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadius)} ${_e(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadius)} 0 0 ${_e(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},MDe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,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}},Ka(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},rc(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},TDe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=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:_e(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:_e(e.marginXS)},marginLeft:{_skip_check_:!0,value:_e(i(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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},RDe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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:o},padding:_e(e.paddingXS),background:"transparent",border:`${_e(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ka(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),MDe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ka(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"}}}}}},IDe=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}},kDe=Kn("Tabs",e=>{const t=kn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e(e.horizontalItemGutter)}`});return[ODe(t),TDe(t),PDe(t),$De(t),_De(t),RDe(t),EDe(t)]},IDe),NDe=()=>null;var ADe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l,c,u,f;const{type:h,className:p,rootClassName:m,size:g,onEdit:v,hideAdd:b,centered:y,addIcon:S,removeIcon:w,moreIcon:E,more:C,popupClassName:x,children:_,items:P,animated:O,style:I,indicatorSize:M,indicator:T}=e,D=ADe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=D,{direction:j,tabs:k,getPrefixCls:F,getPopupContainer:V}=d.useContext(Yt),W=F("tabs",A),K=Mr(W),[L,Q,ee]=kDe(W,K);let re;h==="editable-card"&&(re={onEdit:(oe,se)=>{let{key:fe,event:te}=se;v==null||v(oe==="add"?te:fe,oe)},removeIcon:(t=w??(k==null?void 0:k.removeIcon))!==null&&t!==void 0?t:d.createElement(iu,null),addIcon:(S??(k==null?void 0:k.addIcon))||d.createElement(Uu,null),showAdd:b!==!0});const ie=F(),G=Eo(g),X=xDe(P,_),ne=SDe(W,O),le=Object.assign(Object.assign({},k==null?void 0:k.style),I),ce={align:(n=T==null?void 0:T.align)!==null&&n!==void 0?n:(r=k==null?void 0:k.indicator)===null||r===void 0?void 0:r.align,size:(s=(i=(o=T==null?void 0:T.size)!==null&&o!==void 0?o:M)!==null&&i!==void 0?i:(a=k==null?void 0:k.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:k==null?void 0:k.indicatorSize};return L(d.createElement(yDe,Object.assign({direction:j,getPopupContainer:V},D,{items:X,className:xe({[`${W}-${G}`]:G,[`${W}-card`]:["card","editable-card"].includes(h),[`${W}-editable-card`]:h==="editable-card",[`${W}-centered`]:y},k==null?void 0:k.className,p,m,Q,ee,K),popupClassName:xe(x,Q,ee,K),style:le,editable:re,more:Object.assign({icon:(f=(u=(c=(l=k==null?void 0:k.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:k==null?void 0:k.moreIcon)!==null&&u!==void 0?u:E)!==null&&f!==void 0?f:d.createElement(lD,null),transitionName:`${ie}-slide-up`},C),prefixCls:W,animated:ne,indicator:ce})))};tS.TabPane=NDe;var DDe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=DDe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=d.useContext(Yt),a=i("card",t),s=xe(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},o,{className:s}))},jDe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${_e(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},nc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},wa),{[` + > 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:i,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:_e(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${_e(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},PDe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadius)} ${_e(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${_e(e.borderRadius)} ${_e(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadius)} ${_e(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadius)} 0 0 ${_e(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},ODe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,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}},Ka(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},rc(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},MDe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=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:_e(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:_e(e.marginXS)},marginLeft:{_skip_check_:!0,value:_e(i(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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},TDe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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:o},padding:_e(e.paddingXS),background:"transparent",border:`${_e(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ka(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ODe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ka(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"}}}}}},RDe=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}},IDe=Kn("Tabs",e=>{const t=kn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e(e.horizontalItemGutter)}`});return[PDe(t),MDe(t),$De(t),_De(t),EDe(t),TDe(t),xDe(t)]},RDe),kDe=()=>null;var NDe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l,c,u,f;const{type:h,className:p,rootClassName:m,size:g,onEdit:v,hideAdd:b,centered:y,addIcon:S,removeIcon:w,moreIcon:E,more:C,popupClassName:x,children:_,items:P,animated:O,style:I,indicatorSize:M,indicator:T}=e,D=NDe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=D,{direction:j,tabs:k,getPrefixCls:F,getPopupContainer:V}=d.useContext(Yt),W=F("tabs",A),K=Mr(W),[L,Q,ee]=IDe(W,K);let re;h==="editable-card"&&(re={onEdit:(oe,se)=>{let{key:fe,event:te}=se;v==null||v(oe==="add"?te:fe,oe)},removeIcon:(t=w??(k==null?void 0:k.removeIcon))!==null&&t!==void 0?t:d.createElement(ou,null),addIcon:(S??(k==null?void 0:k.addIcon))||d.createElement(Hu,null),showAdd:b!==!0});const ie=F(),G=Eo(g),X=wDe(P,_),ne=bDe(W,O),le=Object.assign(Object.assign({},k==null?void 0:k.style),I),ce={align:(n=T==null?void 0:T.align)!==null&&n!==void 0?n:(r=k==null?void 0:k.indicator)===null||r===void 0?void 0:r.align,size:(s=(i=(o=T==null?void 0:T.size)!==null&&o!==void 0?o:M)!==null&&i!==void 0?i:(a=k==null?void 0:k.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:k==null?void 0:k.indicatorSize};return L(d.createElement(vDe,Object.assign({direction:j,getPopupContainer:V},D,{items:X,className:xe({[`${W}-${G}`]:G,[`${W}-card`]:["card","editable-card"].includes(h),[`${W}-editable-card`]:h==="editable-card",[`${W}-centered`]:y},k==null?void 0:k.className,p,m,Q,ee,K),popupClassName:xe(x,Q,ee,K),style:le,editable:re,more:Object.assign({icon:(f=(u=(c=(l=k==null?void 0:k.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:k==null?void 0:k.moreIcon)!==null&&u!==void 0?u:E)!==null&&f!==void 0?f:d.createElement(aD,null),transitionName:`${ie}-slide-up`},C),prefixCls:W,animated:ne,indicator:ce})))};nS.TabPane=kDe;var ADe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=ADe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=d.useContext(Yt),a=i("card",t),s=xe(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},o,{className:s}))},DDe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${_e(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},nc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},wa),{[` > ${n}-typography, > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},FDe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},jDe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${_e(o)} 0 0 0 ${n}, 0 ${_e(o)} 0 0 ${n}, ${_e(o)} ${_e(o)} 0 0 ${n}, ${_e(o)} 0 0 0 ${n} inset, 0 ${_e(o)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},LDe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},nc()),{"& > 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:_e(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:_e(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${i}`}}})},BDe=e=>Object.assign(Object.assign({margin:`${_e(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},nc()),{"&-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},wa),"&-description":{color:e.colorTextDescription}}),zDe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${_e(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${_e(e.padding)} ${_e(o)}`}}},HDe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},UDe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:jDe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},nc()),[`${t}-grid`]:FDe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:LDe(e),[`${t}-meta`]:BDe(e)}),[`${t}-bordered`]:{border:`${_e(e.lineWidth)} ${e.lineType} ${o}`,[`${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:`${_e(e.borderRadiusLG)} ${_e(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`]:zDe(e),[`${t}-loading`]:HDe(e),[`${t}-rtl`]:{direction:"rtl"}}},WDe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${_e(r)}`,fontSize:i,[`> ${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"}}}}},VDe=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}},KDe=Kn("Card",e=>{const t=kn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[UDe(t),WDe(t)]},VDe);var QH=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:a},d.createElement("span",null,o))}))},GDe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:h,type:p,cover:m,actions:g,tabList:v,children:b,activeTabKey:y,defaultActiveTabKey:S,tabBarExtraContent:w,hoverable:E,tabProps:C={},classNames:x,styles:_}=e,P=QH(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:O,direction:I,card:M}=d.useContext(Yt),T=Oe=>{var Me;(Me=e.onTabChange)===null||Me===void 0||Me.call(e,Oe)},D=Oe=>{var Me;return xe((Me=M==null?void 0:M.classNames)===null||Me===void 0?void 0:Me[Oe],x==null?void 0:x[Oe])},A=Oe=>{var Me;return Object.assign(Object.assign({},(Me=M==null?void 0:M.styles)===null||Me===void 0?void 0:Me[Oe]),_==null?void 0:_[Oe])},j=d.useMemo(()=>{let Oe=!1;return d.Children.forEach(b,Me=>{(Me==null?void 0:Me.type)===tae&&(Oe=!0)}),Oe},[b]),k=O("card",n),[F,V,W]=KDe(k),K=d.createElement(pd,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),L=y!==void 0,Q=Object.assign(Object.assign({},C),{[L?"activeKey":"defaultActiveKey"]:L?y:S,tabBarExtraContent:w});let ee;const re=Eo(h),ie=!re||re==="default"?"large":re,G=v?d.createElement(tS,Object.assign({size:ie},Q,{className:`${k}-head-tabs`,onChange:T,items:v.map(Oe=>{var{tab:Me}=Oe,Se=QH(Oe,["tab"]);return Object.assign({label:Me},Se)})})):null;if(c||a||G){const Oe=xe(`${k}-head`,D("header")),Me=xe(`${k}-head-title`,D("title")),Se=xe(`${k}-extra`,D("extra")),ye=Object.assign(Object.assign({},s),A("header"));ee=d.createElement("div",{className:Oe,style:ye},d.createElement("div",{className:`${k}-head-wrapper`},c&&d.createElement("div",{className:Me,style:A("title")},c),a&&d.createElement("div",{className:Se,style:A("extra")},a)),G)}const X=xe(`${k}-cover`,D("cover")),ne=m?d.createElement("div",{className:X,style:A("cover")},m):null,le=xe(`${k}-body`,D("body")),ce=Object.assign(Object.assign({},l),A("body")),oe=d.createElement("div",{className:le,style:ce},u?K:b),se=xe(`${k}-actions`,D("actions")),fe=g!=null&&g.length?d.createElement(qDe,{actionClasses:se,actionStyle:A("actions"),actions:g}):null,te=Yn(P,["onTabChange"]),he=xe(k,M==null?void 0:M.className,{[`${k}-loading`]:u,[`${k}-bordered`]:f,[`${k}-hoverable`]:E,[`${k}-contain-grid`]:j,[`${k}-contain-tabs`]:v==null?void 0:v.length,[`${k}-${re}`]:re,[`${k}-type-${p}`]:!!p,[`${k}-rtl`]:I==="rtl"},r,o,V,W),pe=Object.assign(Object.assign({},M==null?void 0:M.style),i);return F(d.createElement("div",Object.assign({ref:t},te,{className:he,style:pe}),ee,ne,oe,fe))});var YDe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=YDe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Yt),l=s("card",t),c=xe(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=o?d.createElement("div",{className:`${l}-meta-title`},o):null,h=i?d.createElement("div",{className:`${l}-meta-description`},i):null,p=f||h?d.createElement("div",{className:`${l}-meta-detail`},f,h):null;return d.createElement("div",Object.assign({},a,{className:c}),u,p)},ol=GDe;ol.Grid=tae;ol.Meta=XDe;function QDe(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,h=0;function p(){u&&clearTimeout(u)}function m(v){var b=v||{},y=b.upcomingOnly,S=y===void 0?!1:y;p(),f=!S}function g(){for(var v=arguments.length,b=new Array(v),y=0;ye?s?(h=Date.now(),i||(u=setTimeout(c?C:E,e))):E():i!==!0&&(u=setTimeout(c?C:E,c===void 0?e-w:e))}return g.cancel=m,g}function JDe(e,t,n){var r={},o=r.atBegin,i=o===void 0?!1:o;return QDe(e,t,{debounceMode:i!==!1})}var Dv=d.createContext({}),sg="__rc_cascader_search_mark__",ZDe=function(t,n,r){var o=r.label,i=o===void 0?"":o;return n.some(function(a){return String(a[i]).toLowerCase().includes(t.toLowerCase())})},eje=function(t,n,r,o){return n.map(function(i){return i[o.label]}).join(" / ")},tje=function(t,n,r,o,i,a){var s=i.filter,l=s===void 0?ZDe:s,c=i.render,u=c===void 0?eje:c,f=i.limit,h=f===void 0?50:f,p=i.sort;return d.useMemo(function(){var m=[];if(!t)return[];function g(v,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(S){if(!(!p&&h!==!1&&h>0&&m.length>=h)){var w=[].concat(Ze(b),[S]),E=S[r.children],C=y||S.disabled;if((!E||E.length===0||a)&&l(t,w,{label:r.label})){var x;m.push(z(z({},S),{},(x={disabled:C},Z(x,r.label,u(t,w,o,r)),Z(x,sg,w),Z(x,r.children,void 0),x)))}E&&g(S[r.children],w,C)}})}return g(n,[]),p&&m.sort(function(v,b){return p(v[sg],b[sg],t,r)}),h!==!1&&h>0?m.slice(0,h):m},[t,n,r,o,u,a,l,p,h])},ED="__RC_CASCADER_SPLIT__",nae="SHOW_PARENT",rae="SHOW_CHILD";function Gl(e){return e.join(ED)}function Gg(e){return e.map(Gl)}function nje(e){return e.split(ED)}function oae(e){var t=e||{},n=t.label,r=t.value,o=t.children,i=r||"value";return{label:n||"label",value:i,key:i,children:o||"children"}}function my(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 rje(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 iae(e,t){return e.map(function(n){var r;return(r=n[sg])===null||r===void 0?void 0:r.map(function(o){return o[t.value]})})}function oje(e){return Array.isArray(e)&&Array.isArray(e[0])}function eE(e){return e?oje(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function aae(e,t,n){var r=new Set(e),o=t();return e.filter(function(i){var a=o[i],s=a?a.parent:null,l=a?a.children:null;return a&&a.node.disabled?!0:n===rae?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function Yg(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=t,i=[],a=function(){var c,u,f,h=e[s],p=(c=o)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(h):v===h}),m=p!==-1?(u=o)===null||u===void 0?void 0:u[p]:null;i.push({value:(f=m==null?void 0:m[n.value])!==null&&f!==void 0?f:h,index:p,option:m}),o=m==null?void 0:m[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(h,p){for(var m=lae(f?f.pos:"0",p),g=nS(h[i],m),v,b=0;b1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,u={},f={},h={posEntities:u,keyEntities:f};return n&&(h=n(h)||h),lje(e,function(p){var m=p.node,g=p.index,v=p.pos,b=p.key,y=p.parentPos,S=p.level,w=p.nodes,E={node:m,nodes:w,index:g,key:b,pos:v,level:S},C=nS(b,v);u[v]=E,f[C]=E,E.parent=u[y],E.parent&&(E.parent.children=E.parent.children||[],E.parent.children.push(E)),r&&r(E,h)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),o&&o(h),h}function Wy(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=La(u,e),h={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return h}function ri(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,h=e.active,p=e.eventKey,m=z(z({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:h,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return yr(!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 cje=function(e,t){var n=d.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=rS(e,{fieldNames:t,initWrapper:function(i){return z(z({},i),{},{pathKeyEntities:{}})},processEntity:function(i,a){var s=i.nodes.map(function(l){return l[t.value]}).join(ED);a.pathKeyEntities[s]=i,i.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function uae(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=cje(n,e),o=d.useCallback(function(i){var a=r();return i.map(function(s){var l=a[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,o]}function uje(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Ht(e)==="object"&&(t=z(z({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function dae(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function dje(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function fje(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(f){var h=f.key,p=f.node,m=f.children,g=m===void 0?[]:m;o.has(h)&&!r(p)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){o.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var h=f.parent,p=f.node;if(!(r(p)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(h.key);return}var m=!0,g=!1;(h.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var b=v.key,y=o.has(b);m&&!y&&(m=!1),!g&&(y||i.has(b))&&(g=!0)}),m&&o.add(h.key),g&&i.add(h.key),l.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(dae(i,o))}}function hje(e,t,n,r,o){for(var i=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,g=h.children,v=g===void 0?[]:g;!i.has(p)&&!a.has(p)&&!o(m)&&v.filter(function(b){return!o(b.node)}).forEach(function(b){i.delete(b.key)})})}a=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(h){var p=h.parent,m=h.node;if(!(o(m)||!h.parent||c.has(h.parent.key))){if(o(h.parent.node)){c.add(p.key);return}var g=!0,v=!1;(p.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var y=b.key,S=i.has(y);g&&!S&&(g=!1),!v&&(S||a.has(y))&&(v=!0)}),g||i.delete(p.key),v&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(dae(a,i))}}function il(e,t,n,r){var o=[],i;r?i=r:i=dje;var a=new Set(e.filter(function(u){var f=!!La(n,u);return f||o.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],h=f.level,p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(f),l=Math.max(l,h)}),yr(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=fje(a,s,l,i):c=hje(a,t.halfCheckedKeys,s,l,i),c}function fae(e,t,n,r,o,i,a,s){return function(l){if(!e)t(l);else{var c=Gl(l),u=Gg(n),f=Gg(r),h=u.includes(c),p=o.some(function(C){return Gl(C)===c}),m=n,g=o;if(p&&!h)g=o.filter(function(C){return Gl(C)!==c});else{var v=h?u.filter(function(C){return C!==c}):[].concat(Ze(u),[c]),b=i(),y;if(h){var S=il(v,{checked:!1,halfCheckedKeys:f},b);y=S.checkedKeys}else{var w=il(v,!0,b);y=w.checkedKeys}var E=aae(y,i,s);m=a(E)}t([].concat(Ze(g),Ze(m)))}}}function hae(e,t,n,r,o){return d.useMemo(function(){var i=o(t),a=$e(i,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var c=Gg(s),u=n(),f=il(c,!0,u),h=f.checkedKeys,p=f.halfCheckedKeys;return[r(h),r(p),l]},[e,t,n,r,o])}var pje=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function mje(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,i=e.disabled,a=e.onClick,s=e.disableCheckbox,l=d.useContext(Dv),c=l.checkable,u=typeof c!="boolean"?c:null;return d.createElement("span",{className:xe("".concat(n),(t={},Z(t,"".concat(n,"-checked"),r),Z(t,"".concat(n,"-indeterminate"),!r&&o),Z(t,"".concat(n,"-disabled"),i||s),t)),onClick:a},u)}var pae="__cascader_fix_label__";function gje(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,i=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,f=e.loadingKeys,h=e.isSelectable,p=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=d.useContext(Dv),b=v.fieldNames,y=v.changeOnSelect,S=v.expandTrigger,w=v.expandIcon,E=v.loadingIcon,C=v.dropdownMenuColumnStyle,x=v.optionRender,_=S==="hover",P=function(M){return p||M},O=d.useMemo(function(){return r.map(function(I){var M,T=I.disabled,D=I.disableCheckbox,A=I[sg],j=(M=I[pae])!==null&&M!==void 0?M:I[b.label],k=I[b.value],F=my(I,b),V=A?A.map(function(ee){return ee[b.value]}):[].concat(Ze(i),[k]),W=Gl(V),K=f.includes(W),L=c.has(W),Q=u.has(W);return{disabled:T,label:j,value:k,isLeaf:F,isLoading:K,checked:L,halfChecked:Q,option:I,disableCheckbox:D,fullPath:V,fullPathKey:W}})},[r,c,b,u,f,i]);return d.createElement("ul",{className:m,role:"menu"},O.map(function(I){var M,T=I.disabled,D=I.label,A=I.value,j=I.isLeaf,k=I.isLoading,F=I.checked,V=I.halfChecked,W=I.option,K=I.fullPath,L=I.fullPathKey,Q=I.disableCheckbox,ee=function(){if(!P(T)){var X=Ze(K);_&&j&&X.pop(),l(X)}},re=function(){h(W)&&!P(T)&&s(K,j)},ie;return typeof W.title=="string"?ie=W.title:typeof D=="string"&&(ie=D),d.createElement("li",{key:L,className:xe(g,(M={},Z(M,"".concat(g,"-expand"),!j),Z(M,"".concat(g,"-active"),o===A||o===L),Z(M,"".concat(g,"-disabled"),P(T)),Z(M,"".concat(g,"-loading"),k),M)),style:C,role:"menuitemcheckbox",title:ie,"aria-checked":F,"data-path-key":L,onClick:function(){ee(),!Q&&(!n||j)&&re()},onDoubleClick:function(){y&&a(!1)},onMouseEnter:function(){_&&ee()},onMouseDown:function(X){X.preventDefault()}},n&&d.createElement(mje,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:V,disabled:P(T)||Q,disableCheckbox:Q,onClick:function(X){Q||(X.stopPropagation(),re())}}),d.createElement("div",{className:"".concat(g,"-content")},x?x(W):D),!k&&w&&!j&&d.createElement("div",{className:"".concat(g,"-expand-icon")},w),k&&E&&d.createElement("div",{className:"".concat(g,"-loading-icon")},E))}))}var vje=function(t,n){var r=d.useContext(Dv),o=r.values,i=o[0],a=d.useState([]),s=$e(a,2),l=s[0],c=s[1];return d.useEffect(function(){t||c(i||[])},[n,i]),[l,c]};const yje=function(e,t,n,r,o,i,a){var s=a.direction,l=a.searchValue,c=a.toggleOpen,u=a.open,f=s==="rtl",h=d.useMemo(function(){for(var C=-1,x=t,_=[],P=[],O=r.length,I=iae(t,n),M=function(k){var F=x.findIndex(function(V,W){return(I[W]?Gl(I[W]):V[n.value])===r[k]});if(F===-1)return 1;C=F,_.push(C),P.push(r[k]),x=x[C][n.children]},T=0;T1){var x=m.slice(0,-1);y(x)}else c(!1)},E=function(){var x,_=((x=v[g])===null||x===void 0?void 0:x[n.children])||[],P=_.find(function(I){return!I.disabled});if(P){var O=[].concat(Ze(m),[P[n.value]]);y(O)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(x){var _=x.which;switch(_){case ut.UP:case ut.DOWN:{var P=0;_===ut.UP?P=-1:_===ut.DOWN&&(P=1),P!==0&&S(P);break}case ut.LEFT:{if(l)break;f?E():w();break}case ut.RIGHT:{if(l)break;f?w():E();break}case ut.BACKSPACE:{l||w();break}case ut.ENTER:{if(m.length){var O=v[g],I=(O==null?void 0:O[sg])||[];I.length?i(I.map(function(M){return M[n.value]}),I[I.length-1]):i(m,v[g])}break}case ut.ESC:c(!1),u&&x.stopPropagation()}},onKeyUp:function(){}}})};var mae=d.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,a=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,f=e.open,h=e.disabled,p=d.useRef(null),m=u==="rtl",g=d.useContext(Dv),v=g.options,b=g.values,y=g.halfValues,S=g.fieldNames,w=g.changeOnSelect,E=g.onSelect,C=g.searchOptions,x=g.dropdownPrefixCls,_=g.loadData,P=g.expandTrigger,O=x||i,I=d.useState([]),M=$e(I,2),T=M[0],D=M[1],A=function(fe){if(!(!_||s)){var te=Yg(fe,v,S),he=te.map(function(Me){var Se=Me.option;return Se}),pe=he[he.length-1];if(pe&&!my(pe,S)){var Oe=Gl(fe);D(function(Me){return[].concat(Ze(Me),[Oe])}),_(he)}}};d.useEffect(function(){T.length&&T.forEach(function(se){var fe=nje(se),te=Yg(fe,v,S,!0).map(function(pe){var Oe=pe.option;return Oe}),he=te[te.length-1];(!he||he[S.children]||my(he,S))&&D(function(pe){return pe.filter(function(Oe){return Oe!==se})})})},[v,T,S]);var j=d.useMemo(function(){return new Set(Gg(b))},[b]),k=d.useMemo(function(){return new Set(Gg(y))},[y]),F=vje(a,f),V=$e(F,2),W=V[0],K=V[1],L=function(fe){K(fe),A(fe)},Q=function(fe){if(h)return!1;var te=fe.disabled,he=my(fe,S);return!te&&(he||w||a)},ee=function(fe,te){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;E(fe),!a&&(te||w&&(P==="hover"||he))&&l(!1)},re=d.useMemo(function(){return s?C:v},[s,C,v]),ie=d.useMemo(function(){for(var se=[{options:re}],fe=re,te=iae(fe,S),he=function(){var Me=W[pe],Se=fe.find(function(ve,be){return(te[be]?Gl(te[be]):ve[S.value])===Me}),ye=Se==null?void 0:Se[S.children];if(!(ye!=null&&ye.length))return 1;fe=ye,se.push({options:ye})},pe=0;pe":b,S=n.loadingIcon,w=n.direction,E=n.notFoundContent,C=E===void 0?"Not Found":E,x=n.disabled,_=!!l,P=xn(c,{value:u,postState:eE}),O=$e(P,2),I=O[0],M=O[1],T=d.useMemo(function(){return oae(f)},[JSON.stringify(f)]),D=uae(T,s),A=$e(D,3),j=A[0],k=A[1],F=A[2],V=sae(j,T),W=hae(_,I,k,F,V),K=$e(W,3),L=K[0],Q=K[1],ee=K[2],re=An(function(ce){if(M(ce),p){var oe=eE(ce),se=oe.map(function(he){return Yg(he,j,T).map(function(pe){return pe.option})}),fe=_?oe:oe[0],te=_?se:se[0];p(fe,te)}}),ie=fae(_,re,L,Q,ee,k,F,m),G=An(function(ce){ie(ce)}),X=d.useMemo(function(){return{options:j,fieldNames:T,values:L,halfValues:Q,changeOnSelect:h,onSelect:G,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:y,loadingIcon:S,dropdownMenuColumnStyle:void 0}},[j,T,L,Q,h,G,l,g,v,y,S]),ne="".concat(o,"-panel"),le=!j.length;return d.createElement(Dv.Provider,{value:X},d.createElement("div",{className:xe(ne,(t={},Z(t,"".concat(ne,"-rtl"),w==="rtl"),Z(t,"".concat(ne,"-empty"),le),t),a),style:i},le?C:d.createElement(mae,{prefixCls:o,searchValue:"",multiple:_,toggleOpen:Sje,open:!0,direction:w,disabled:x})))}var Cje=["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"],oS=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-cascader":r,i=e.fieldNames,a=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,f=e.checkable,h=e.autoClearSearchValue,p=h===void 0?!0:h,m=e.searchValue,g=e.onSearch,v=e.showSearch,b=e.expandTrigger,y=e.options,S=e.dropdownPrefixCls,w=e.loadData,E=e.popupVisible,C=e.open,x=e.popupClassName,_=e.dropdownClassName,P=e.dropdownMenuColumnStyle,O=e.dropdownStyle,I=e.popupPlacement,M=e.placement,T=e.onDropdownVisibleChange,D=e.onPopupVisibleChange,A=e.expandIcon,j=A===void 0?">":A,k=e.loadingIcon,F=e.children,V=e.dropdownMatchSelectWidth,W=V===void 0?!1:V,K=e.showCheckedStrategy,L=K===void 0?nae:K,Q=e.optionRender,ee=At(e,Cje),re=qA(n),ie=!!f,G=xn(a,{value:s,postState:eE}),X=$e(G,2),ne=X[0],le=X[1],ce=d.useMemo(function(){return oae(i)},[JSON.stringify(i)]),oe=uae(ce,y),se=$e(oe,3),fe=se[0],te=se[1],he=se[2],pe=xn("",{value:m,postState:function(wt){return wt||""}}),Oe=$e(pe,2),Me=Oe[0],Se=Oe[1],ye=function(wt,Et){Se(wt),Et.source!=="blur"&&g&&g(wt)},ve=uje(v),be=$e(ve,2),Pe=be[0],Ne=be[1],U=tje(Me,fe,ce,S||o,Ne,l||ie),H=sae(fe,ce),q=hae(ie,ne,te,he,H),me=$e(q,3),Ce=me[0],ue=me[1],Le=me[2],He=d.useMemo(function(){var Lt=Gg(Ce),wt=aae(Lt,te,L);return[].concat(Ze(Le),Ze(he(wt)))},[Ce,te,he,Le,L]),ge=ije(He,fe,ce,ie,u),De=An(function(Lt){if(le(Lt),c){var wt=eE(Lt),Et=wt.map(function(We){return Yg(We,fe,ce).map(function(Fe){return Fe.option})}),Tt=ie?wt:wt[0],Be=ie?Et:Et[0];c(Tt,Be)}}),qe=fae(ie,De,Ce,ue,Le,te,he,L),je=An(function(Lt){(!ie||p)&&Se(""),qe(Lt)}),Ke=function(wt,Et){if(Et.type==="clear"){De([]);return}var Tt=Et.values[0],Be=Tt.valueCells;je(Be)},Ue=C!==void 0?C:E,Ve=_||x,St=M||I,et=function(wt){T==null||T(wt),D==null||D(wt)},st=d.useMemo(function(){return{options:fe,fieldNames:ce,values:Ce,halfValues:ue,changeOnSelect:l,onSelect:je,checkable:f,searchOptions:U,dropdownPrefixCls:S,loadData:w,expandTrigger:b,expandIcon:j,loadingIcon:k,dropdownMenuColumnStyle:P,optionRender:Q}},[fe,ce,Ce,ue,l,je,f,U,S,w,b,j,k,P,Q]),Ct=!(Me?U:fe).length,dt=Me&&Ne.matchInputWidth||Ct?{}:{minWidth:"auto"};return d.createElement(Dv.Provider,{value:st},d.createElement(WA,Ge({},ee,{ref:t,id:re,prefixCls:o,autoClearSearchValue:p,dropdownMatchSelectWidth:W,dropdownStyle:z(z({},dt),O),displayValues:ge,onDisplayValuesChange:Ke,mode:ie?"multiple":void 0,searchValue:Me,onSearch:ye,showSearch:Pe,OptionList:bje,emptyOptions:Ct,open:Ue,dropdownClassName:Ve,placement:St,onDropdownVisibleChange:et,getRawInputElement:function(){return F}})))});oS.SHOW_PARENT=nae;oS.SHOW_CHILD=rae;oS.Panel=gae;function vae(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=d.useContext(Yt),i=t||r,a=n("select",e),s=n("cascader",e);return[a,s,i,o]}function yae(e,t){return d.useMemo(()=>t?d.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const bae=(e,t,n)=>{let r=n;n||(r=t?d.createElement(qg,null):d.createElement(rd,null));const o=d.createElement("span",{className:`${e}-menu-item-loading-icon`},d.createElement(Gc,{spin:!0}));return d.useMemo(()=>[r,o],[r])},wje=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Qn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Qn(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({},Qn(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({},rc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${_e(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:`${_e(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}})},{[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},FDe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},nc()),{"& > 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:_e(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:_e(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${i}`}}})},LDe=e=>Object.assign(Object.assign({margin:`${_e(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},nc()),{"&-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},wa),"&-description":{color:e.colorTextDescription}}),BDe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${_e(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${_e(e.padding)} ${_e(o)}`}}},zDe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},HDe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:DDe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},nc()),[`${t}-grid`]:jDe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:FDe(e),[`${t}-meta`]:LDe(e)}),[`${t}-bordered`]:{border:`${_e(e.lineWidth)} ${e.lineType} ${o}`,[`${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:`${_e(e.borderRadiusLG)} ${_e(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`]:BDe(e),[`${t}-loading`]:zDe(e),[`${t}-rtl`]:{direction:"rtl"}}},UDe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${_e(r)}`,fontSize:i,[`> ${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"}}}}},WDe=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}},VDe=Kn("Card",e=>{const t=kn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[HDe(t),UDe(t)]},WDe);var YH=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:a},d.createElement("span",null,o))}))},qDe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:h,type:p,cover:m,actions:g,tabList:v,children:b,activeTabKey:y,defaultActiveTabKey:S,tabBarExtraContent:w,hoverable:E,tabProps:C={},classNames:x,styles:_}=e,P=YH(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:O,direction:I,card:M}=d.useContext(Yt),T=Oe=>{var Me;(Me=e.onTabChange)===null||Me===void 0||Me.call(e,Oe)},D=Oe=>{var Me;return xe((Me=M==null?void 0:M.classNames)===null||Me===void 0?void 0:Me[Oe],x==null?void 0:x[Oe])},A=Oe=>{var Me;return Object.assign(Object.assign({},(Me=M==null?void 0:M.styles)===null||Me===void 0?void 0:Me[Oe]),_==null?void 0:_[Oe])},j=d.useMemo(()=>{let Oe=!1;return d.Children.forEach(b,Me=>{(Me==null?void 0:Me.type)===eae&&(Oe=!0)}),Oe},[b]),k=O("card",n),[F,V,W]=VDe(k),K=d.createElement(pd,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),L=y!==void 0,Q=Object.assign(Object.assign({},C),{[L?"activeKey":"defaultActiveKey"]:L?y:S,tabBarExtraContent:w});let ee;const re=Eo(h),ie=!re||re==="default"?"large":re,G=v?d.createElement(nS,Object.assign({size:ie},Q,{className:`${k}-head-tabs`,onChange:T,items:v.map(Oe=>{var{tab:Me}=Oe,Se=YH(Oe,["tab"]);return Object.assign({label:Me},Se)})})):null;if(c||a||G){const Oe=xe(`${k}-head`,D("header")),Me=xe(`${k}-head-title`,D("title")),Se=xe(`${k}-extra`,D("extra")),ye=Object.assign(Object.assign({},s),A("header"));ee=d.createElement("div",{className:Oe,style:ye},d.createElement("div",{className:`${k}-head-wrapper`},c&&d.createElement("div",{className:Me,style:A("title")},c),a&&d.createElement("div",{className:Se,style:A("extra")},a)),G)}const X=xe(`${k}-cover`,D("cover")),ne=m?d.createElement("div",{className:X,style:A("cover")},m):null,le=xe(`${k}-body`,D("body")),ce=Object.assign(Object.assign({},l),A("body")),oe=d.createElement("div",{className:le,style:ce},u?K:b),se=xe(`${k}-actions`,D("actions")),fe=g!=null&&g.length?d.createElement(KDe,{actionClasses:se,actionStyle:A("actions"),actions:g}):null,te=Yn(P,["onTabChange"]),he=xe(k,M==null?void 0:M.className,{[`${k}-loading`]:u,[`${k}-bordered`]:f,[`${k}-hoverable`]:E,[`${k}-contain-grid`]:j,[`${k}-contain-tabs`]:v==null?void 0:v.length,[`${k}-${re}`]:re,[`${k}-type-${p}`]:!!p,[`${k}-rtl`]:I==="rtl"},r,o,V,W),pe=Object.assign(Object.assign({},M==null?void 0:M.style),i);return F(d.createElement("div",Object.assign({ref:t},te,{className:he,style:pe}),ee,ne,oe,fe))});var GDe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=GDe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Yt),l=s("card",t),c=xe(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=o?d.createElement("div",{className:`${l}-meta-title`},o):null,h=i?d.createElement("div",{className:`${l}-meta-description`},i):null,p=f||h?d.createElement("div",{className:`${l}-meta-detail`},f,h):null;return d.createElement("div",Object.assign({},a,{className:c}),u,p)},ol=qDe;ol.Grid=eae;ol.Meta=YDe;function XDe(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,h=0;function p(){u&&clearTimeout(u)}function m(v){var b=v||{},y=b.upcomingOnly,S=y===void 0?!1:y;p(),f=!S}function g(){for(var v=arguments.length,b=new Array(v),y=0;ye?s?(h=Date.now(),i||(u=setTimeout(c?C:E,e))):E():i!==!0&&(u=setTimeout(c?C:E,c===void 0?e-w:e))}return g.cancel=m,g}function QDe(e,t,n){var r={},o=r.atBegin,i=o===void 0?!1:o;return XDe(e,t,{debounceMode:i!==!1})}var Dv=d.createContext({}),sg="__rc_cascader_search_mark__",JDe=function(t,n,r){var o=r.label,i=o===void 0?"":o;return n.some(function(a){return String(a[i]).toLowerCase().includes(t.toLowerCase())})},ZDe=function(t,n,r,o){return n.map(function(i){return i[o.label]}).join(" / ")},eje=function(t,n,r,o,i,a){var s=i.filter,l=s===void 0?JDe:s,c=i.render,u=c===void 0?ZDe:c,f=i.limit,h=f===void 0?50:f,p=i.sort;return d.useMemo(function(){var m=[];if(!t)return[];function g(v,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(S){if(!(!p&&h!==!1&&h>0&&m.length>=h)){var w=[].concat(Ze(b),[S]),E=S[r.children],C=y||S.disabled;if((!E||E.length===0||a)&&l(t,w,{label:r.label})){var x;m.push(z(z({},S),{},(x={disabled:C},Z(x,r.label,u(t,w,o,r)),Z(x,sg,w),Z(x,r.children,void 0),x)))}E&&g(S[r.children],w,C)}})}return g(n,[]),p&&m.sort(function(v,b){return p(v[sg],b[sg],t,r)}),h!==!1&&h>0?m.slice(0,h):m},[t,n,r,o,u,a,l,p,h])},wD="__RC_CASCADER_SPLIT__",tae="SHOW_PARENT",nae="SHOW_CHILD";function Gl(e){return e.join(wD)}function Gg(e){return e.map(Gl)}function tje(e){return e.split(wD)}function rae(e){var t=e||{},n=t.label,r=t.value,o=t.children,i=r||"value";return{label:n||"label",value:i,key:i,children:o||"children"}}function my(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 nje(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 oae(e,t){return e.map(function(n){var r;return(r=n[sg])===null||r===void 0?void 0:r.map(function(o){return o[t.value]})})}function rje(e){return Array.isArray(e)&&Array.isArray(e[0])}function tE(e){return e?rje(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function iae(e,t,n){var r=new Set(e),o=t();return e.filter(function(i){var a=o[i],s=a?a.parent:null,l=a?a.children:null;return a&&a.node.disabled?!0:n===nae?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function Yg(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=t,i=[],a=function(){var c,u,f,h=e[s],p=(c=o)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(h):v===h}),m=p!==-1?(u=o)===null||u===void 0?void 0:u[p]:null;i.push({value:(f=m==null?void 0:m[n.value])!==null&&f!==void 0?f:h,index:p,option:m}),o=m==null?void 0:m[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(h,p){for(var m=sae(f?f.pos:"0",p),g=rS(h[i],m),v,b=0;b1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,u={},f={},h={posEntities:u,keyEntities:f};return n&&(h=n(h)||h),sje(e,function(p){var m=p.node,g=p.index,v=p.pos,b=p.key,y=p.parentPos,S=p.level,w=p.nodes,E={node:m,nodes:w,index:g,key:b,pos:v,level:S},C=rS(b,v);u[v]=E,f[C]=E,E.parent=u[y],E.parent&&(E.parent.children=E.parent.children||[],E.parent.children.push(E)),r&&r(E,h)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),o&&o(h),h}function Wy(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=La(u,e),h={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return h}function ri(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,h=e.active,p=e.eventKey,m=z(z({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:h,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return yr(!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 lje=function(e,t){var n=d.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=oS(e,{fieldNames:t,initWrapper:function(i){return z(z({},i),{},{pathKeyEntities:{}})},processEntity:function(i,a){var s=i.nodes.map(function(l){return l[t.value]}).join(wD);a.pathKeyEntities[s]=i,i.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function cae(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=lje(n,e),o=d.useCallback(function(i){var a=r();return i.map(function(s){var l=a[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,o]}function cje(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Ht(e)==="object"&&(t=z(z({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function uae(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function uje(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function dje(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(f){var h=f.key,p=f.node,m=f.children,g=m===void 0?[]:m;o.has(h)&&!r(p)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){o.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var h=f.parent,p=f.node;if(!(r(p)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(h.key);return}var m=!0,g=!1;(h.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var b=v.key,y=o.has(b);m&&!y&&(m=!1),!g&&(y||i.has(b))&&(g=!0)}),m&&o.add(h.key),g&&i.add(h.key),l.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(uae(i,o))}}function fje(e,t,n,r,o){for(var i=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,g=h.children,v=g===void 0?[]:g;!i.has(p)&&!a.has(p)&&!o(m)&&v.filter(function(b){return!o(b.node)}).forEach(function(b){i.delete(b.key)})})}a=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(h){var p=h.parent,m=h.node;if(!(o(m)||!h.parent||c.has(h.parent.key))){if(o(h.parent.node)){c.add(p.key);return}var g=!0,v=!1;(p.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var y=b.key,S=i.has(y);g&&!S&&(g=!1),!v&&(S||a.has(y))&&(v=!0)}),g||i.delete(p.key),v&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(uae(a,i))}}function il(e,t,n,r){var o=[],i;r?i=r:i=uje;var a=new Set(e.filter(function(u){var f=!!La(n,u);return f||o.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],h=f.level,p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(f),l=Math.max(l,h)}),yr(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=dje(a,s,l,i):c=fje(a,t.halfCheckedKeys,s,l,i),c}function dae(e,t,n,r,o,i,a,s){return function(l){if(!e)t(l);else{var c=Gl(l),u=Gg(n),f=Gg(r),h=u.includes(c),p=o.some(function(C){return Gl(C)===c}),m=n,g=o;if(p&&!h)g=o.filter(function(C){return Gl(C)!==c});else{var v=h?u.filter(function(C){return C!==c}):[].concat(Ze(u),[c]),b=i(),y;if(h){var S=il(v,{checked:!1,halfCheckedKeys:f},b);y=S.checkedKeys}else{var w=il(v,!0,b);y=w.checkedKeys}var E=iae(y,i,s);m=a(E)}t([].concat(Ze(g),Ze(m)))}}}function fae(e,t,n,r,o){return d.useMemo(function(){var i=o(t),a=$e(i,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var c=Gg(s),u=n(),f=il(c,!0,u),h=f.checkedKeys,p=f.halfCheckedKeys;return[r(h),r(p),l]},[e,t,n,r,o])}var hje=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function pje(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,i=e.disabled,a=e.onClick,s=e.disableCheckbox,l=d.useContext(Dv),c=l.checkable,u=typeof c!="boolean"?c:null;return d.createElement("span",{className:xe("".concat(n),(t={},Z(t,"".concat(n,"-checked"),r),Z(t,"".concat(n,"-indeterminate"),!r&&o),Z(t,"".concat(n,"-disabled"),i||s),t)),onClick:a},u)}var hae="__cascader_fix_label__";function mje(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,i=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,f=e.loadingKeys,h=e.isSelectable,p=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=d.useContext(Dv),b=v.fieldNames,y=v.changeOnSelect,S=v.expandTrigger,w=v.expandIcon,E=v.loadingIcon,C=v.dropdownMenuColumnStyle,x=v.optionRender,_=S==="hover",P=function(M){return p||M},O=d.useMemo(function(){return r.map(function(I){var M,T=I.disabled,D=I.disableCheckbox,A=I[sg],j=(M=I[hae])!==null&&M!==void 0?M:I[b.label],k=I[b.value],F=my(I,b),V=A?A.map(function(ee){return ee[b.value]}):[].concat(Ze(i),[k]),W=Gl(V),K=f.includes(W),L=c.has(W),Q=u.has(W);return{disabled:T,label:j,value:k,isLeaf:F,isLoading:K,checked:L,halfChecked:Q,option:I,disableCheckbox:D,fullPath:V,fullPathKey:W}})},[r,c,b,u,f,i]);return d.createElement("ul",{className:m,role:"menu"},O.map(function(I){var M,T=I.disabled,D=I.label,A=I.value,j=I.isLeaf,k=I.isLoading,F=I.checked,V=I.halfChecked,W=I.option,K=I.fullPath,L=I.fullPathKey,Q=I.disableCheckbox,ee=function(){if(!P(T)){var X=Ze(K);_&&j&&X.pop(),l(X)}},re=function(){h(W)&&!P(T)&&s(K,j)},ie;return typeof W.title=="string"?ie=W.title:typeof D=="string"&&(ie=D),d.createElement("li",{key:L,className:xe(g,(M={},Z(M,"".concat(g,"-expand"),!j),Z(M,"".concat(g,"-active"),o===A||o===L),Z(M,"".concat(g,"-disabled"),P(T)),Z(M,"".concat(g,"-loading"),k),M)),style:C,role:"menuitemcheckbox",title:ie,"aria-checked":F,"data-path-key":L,onClick:function(){ee(),!Q&&(!n||j)&&re()},onDoubleClick:function(){y&&a(!1)},onMouseEnter:function(){_&&ee()},onMouseDown:function(X){X.preventDefault()}},n&&d.createElement(pje,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:V,disabled:P(T)||Q,disableCheckbox:Q,onClick:function(X){Q||(X.stopPropagation(),re())}}),d.createElement("div",{className:"".concat(g,"-content")},x?x(W):D),!k&&w&&!j&&d.createElement("div",{className:"".concat(g,"-expand-icon")},w),k&&E&&d.createElement("div",{className:"".concat(g,"-loading-icon")},E))}))}var gje=function(t,n){var r=d.useContext(Dv),o=r.values,i=o[0],a=d.useState([]),s=$e(a,2),l=s[0],c=s[1];return d.useEffect(function(){t||c(i||[])},[n,i]),[l,c]};const vje=function(e,t,n,r,o,i,a){var s=a.direction,l=a.searchValue,c=a.toggleOpen,u=a.open,f=s==="rtl",h=d.useMemo(function(){for(var C=-1,x=t,_=[],P=[],O=r.length,I=oae(t,n),M=function(k){var F=x.findIndex(function(V,W){return(I[W]?Gl(I[W]):V[n.value])===r[k]});if(F===-1)return 1;C=F,_.push(C),P.push(r[k]),x=x[C][n.children]},T=0;T1){var x=m.slice(0,-1);y(x)}else c(!1)},E=function(){var x,_=((x=v[g])===null||x===void 0?void 0:x[n.children])||[],P=_.find(function(I){return!I.disabled});if(P){var O=[].concat(Ze(m),[P[n.value]]);y(O)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(x){var _=x.which;switch(_){case ut.UP:case ut.DOWN:{var P=0;_===ut.UP?P=-1:_===ut.DOWN&&(P=1),P!==0&&S(P);break}case ut.LEFT:{if(l)break;f?E():w();break}case ut.RIGHT:{if(l)break;f?w():E();break}case ut.BACKSPACE:{l||w();break}case ut.ENTER:{if(m.length){var O=v[g],I=(O==null?void 0:O[sg])||[];I.length?i(I.map(function(M){return M[n.value]}),I[I.length-1]):i(m,v[g])}break}case ut.ESC:c(!1),u&&x.stopPropagation()}},onKeyUp:function(){}}})};var pae=d.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,a=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,f=e.open,h=e.disabled,p=d.useRef(null),m=u==="rtl",g=d.useContext(Dv),v=g.options,b=g.values,y=g.halfValues,S=g.fieldNames,w=g.changeOnSelect,E=g.onSelect,C=g.searchOptions,x=g.dropdownPrefixCls,_=g.loadData,P=g.expandTrigger,O=x||i,I=d.useState([]),M=$e(I,2),T=M[0],D=M[1],A=function(fe){if(!(!_||s)){var te=Yg(fe,v,S),he=te.map(function(Me){var Se=Me.option;return Se}),pe=he[he.length-1];if(pe&&!my(pe,S)){var Oe=Gl(fe);D(function(Me){return[].concat(Ze(Me),[Oe])}),_(he)}}};d.useEffect(function(){T.length&&T.forEach(function(se){var fe=tje(se),te=Yg(fe,v,S,!0).map(function(pe){var Oe=pe.option;return Oe}),he=te[te.length-1];(!he||he[S.children]||my(he,S))&&D(function(pe){return pe.filter(function(Oe){return Oe!==se})})})},[v,T,S]);var j=d.useMemo(function(){return new Set(Gg(b))},[b]),k=d.useMemo(function(){return new Set(Gg(y))},[y]),F=gje(a,f),V=$e(F,2),W=V[0],K=V[1],L=function(fe){K(fe),A(fe)},Q=function(fe){if(h)return!1;var te=fe.disabled,he=my(fe,S);return!te&&(he||w||a)},ee=function(fe,te){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;E(fe),!a&&(te||w&&(P==="hover"||he))&&l(!1)},re=d.useMemo(function(){return s?C:v},[s,C,v]),ie=d.useMemo(function(){for(var se=[{options:re}],fe=re,te=oae(fe,S),he=function(){var Me=W[pe],Se=fe.find(function(ve,be){return(te[be]?Gl(te[be]):ve[S.value])===Me}),ye=Se==null?void 0:Se[S.children];if(!(ye!=null&&ye.length))return 1;fe=ye,se.push({options:ye})},pe=0;pe":b,S=n.loadingIcon,w=n.direction,E=n.notFoundContent,C=E===void 0?"Not Found":E,x=n.disabled,_=!!l,P=xn(c,{value:u,postState:tE}),O=$e(P,2),I=O[0],M=O[1],T=d.useMemo(function(){return rae(f)},[JSON.stringify(f)]),D=cae(T,s),A=$e(D,3),j=A[0],k=A[1],F=A[2],V=aae(j,T),W=fae(_,I,k,F,V),K=$e(W,3),L=K[0],Q=K[1],ee=K[2],re=An(function(ce){if(M(ce),p){var oe=tE(ce),se=oe.map(function(he){return Yg(he,j,T).map(function(pe){return pe.option})}),fe=_?oe:oe[0],te=_?se:se[0];p(fe,te)}}),ie=dae(_,re,L,Q,ee,k,F,m),G=An(function(ce){ie(ce)}),X=d.useMemo(function(){return{options:j,fieldNames:T,values:L,halfValues:Q,changeOnSelect:h,onSelect:G,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:y,loadingIcon:S,dropdownMenuColumnStyle:void 0}},[j,T,L,Q,h,G,l,g,v,y,S]),ne="".concat(o,"-panel"),le=!j.length;return d.createElement(Dv.Provider,{value:X},d.createElement("div",{className:xe(ne,(t={},Z(t,"".concat(ne,"-rtl"),w==="rtl"),Z(t,"".concat(ne,"-empty"),le),t),a),style:i},le?C:d.createElement(pae,{prefixCls:o,searchValue:"",multiple:_,toggleOpen:bje,open:!0,direction:w,disabled:x})))}var Sje=["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"],iS=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-cascader":r,i=e.fieldNames,a=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,f=e.checkable,h=e.autoClearSearchValue,p=h===void 0?!0:h,m=e.searchValue,g=e.onSearch,v=e.showSearch,b=e.expandTrigger,y=e.options,S=e.dropdownPrefixCls,w=e.loadData,E=e.popupVisible,C=e.open,x=e.popupClassName,_=e.dropdownClassName,P=e.dropdownMenuColumnStyle,O=e.dropdownStyle,I=e.popupPlacement,M=e.placement,T=e.onDropdownVisibleChange,D=e.onPopupVisibleChange,A=e.expandIcon,j=A===void 0?">":A,k=e.loadingIcon,F=e.children,V=e.dropdownMatchSelectWidth,W=V===void 0?!1:V,K=e.showCheckedStrategy,L=K===void 0?tae:K,Q=e.optionRender,ee=At(e,Sje),re=VA(n),ie=!!f,G=xn(a,{value:s,postState:tE}),X=$e(G,2),ne=X[0],le=X[1],ce=d.useMemo(function(){return rae(i)},[JSON.stringify(i)]),oe=cae(ce,y),se=$e(oe,3),fe=se[0],te=se[1],he=se[2],pe=xn("",{value:m,postState:function(St){return St||""}}),Oe=$e(pe,2),Me=Oe[0],Se=Oe[1],ye=function(St,wt){Se(St),wt.source!=="blur"&&g&&g(St)},ve=cje(v),be=$e(ve,2),Pe=be[0],Ne=be[1],U=eje(Me,fe,ce,S||o,Ne,l||ie),H=aae(fe,ce),q=fae(ie,ne,te,he,H),me=$e(q,3),Ce=me[0],ue=me[1],Le=me[2],He=d.useMemo(function(){var Lt=Gg(Ce),St=iae(Lt,te,L);return[].concat(Ze(Le),Ze(he(St)))},[Ce,te,he,Le,L]),ge=oje(He,fe,ce,ie,u),De=An(function(Lt){if(le(Lt),c){var St=tE(Lt),wt=St.map(function(We){return Yg(We,fe,ce).map(function(je){return je.option})}),Nt=ie?St:St[0],Be=ie?wt:wt[0];c(Nt,Be)}}),qe=dae(ie,De,Ce,ue,Le,te,he,L),Fe=An(function(Lt){(!ie||p)&&Se(""),qe(Lt)}),Ke=function(St,wt){if(wt.type==="clear"){De([]);return}var Nt=wt.values[0],Be=Nt.valueCells;Fe(Be)},Ue=C!==void 0?C:E,Ve=_||x,Tt=M||I,et=function(St){T==null||T(St),D==null||D(St)},st=d.useMemo(function(){return{options:fe,fieldNames:ce,values:Ce,halfValues:ue,changeOnSelect:l,onSelect:Fe,checkable:f,searchOptions:U,dropdownPrefixCls:S,loadData:w,expandTrigger:b,expandIcon:j,loadingIcon:k,dropdownMenuColumnStyle:P,optionRender:Q}},[fe,ce,Ce,ue,l,Fe,f,U,S,w,b,j,k,P,Q]),yt=!(Me?U:fe).length,gt=Me&&Ne.matchInputWidth||yt?{}:{minWidth:"auto"};return d.createElement(Dv.Provider,{value:st},d.createElement(HA,Ge({},ee,{ref:t,id:re,prefixCls:o,autoClearSearchValue:p,dropdownMatchSelectWidth:W,dropdownStyle:z(z({},gt),O),displayValues:ge,onDisplayValuesChange:Ke,mode:ie?"multiple":void 0,searchValue:Me,onSearch:ye,showSearch:Pe,OptionList:yje,emptyOptions:yt,open:Ue,dropdownClassName:Ve,placement:Tt,onDropdownVisibleChange:et,getRawInputElement:function(){return F}})))});iS.SHOW_PARENT=tae;iS.SHOW_CHILD=nae;iS.Panel=mae;function gae(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=d.useContext(Yt),i=t||r,a=n("select",e),s=n("cascader",e);return[a,s,i,o]}function vae(e,t){return d.useMemo(()=>t?d.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const yae=(e,t,n)=>{let r=n;n||(r=t?d.createElement(qg,null):d.createElement(nd,null));const o=d.createElement("span",{className:`${e}-menu-item-loading-icon`},d.createElement(Gc,{spin:!0}));return d.useMemo(()=>[r,o],[r])},Cje=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Qn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Qn(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({},Qn(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({},rc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${_e(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:`${_e(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 aP(e,t){const n=kn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[wje(n)]}const Sae=Kn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[aP(n,e)]}),Cae=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=` + `]:{[`&: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 aP(e,t){const n=kn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Cje(n)]}const bae=Kn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[aP(n,e)]}),Sae=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=` &${r}-expand ${r}-expand-icon, ${r}-loading-icon -`;return[aP(`${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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},wa),{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"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},xje=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Cae(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Bp(e)]},wae=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}},xae=Kn("Cascader",e=>[xje(e)],wae),Eje=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Cae(e),{display:"inline-flex",border:`${_e(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}}]}},_je=cne(["Cascader","Panel"],e=>Eje(e),wae);function $je(e){const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:i,direction:a,expandIcon:s,disabled:l}=e,c=d.useContext(zo),u=l??c,[f,h,p,m]=vae(t,a),g=Mr(h),[v,b,y]=xae(h,g);_je(h);const S=p==="rtl",[w,E]=bae(f,S,s),C=i||(m==null?void 0:m("Cascader"))||d.createElement(Y1,{componentName:"Cascader"}),x=yae(h,r);return v(d.createElement(gae,Object.assign({},e,{checkable:x,prefixCls:h,className:xe(n,b,o,y,g),notFoundContent:C,direction:p,expandIcon:w,loadingIcon:E,disabled:u})))}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 o=0,r=Object.getOwnPropertySymbols(e);ol===0?[s]:[].concat(Ze(a),[t,s]),[]),o=[];let i=0;return r.forEach((a,s)=>{const l=i+a.length;let c=e.slice(i,l);i=l,s%2===1&&(c=d.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),o.push(c)}),o}const Rje=(e,t,n,r)=>{const o=[],i=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&o.push(" / ");let l=a[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=Tje(String(l),i,n)),o.push(l)}),o},jv=d.forwardRef((e,t)=>{var n;const{prefixCls:r,size:o,disabled:i,className:a,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:f="",popupClassName:h,dropdownClassName:p,expandIcon:m,placement:g,showSearch:v,allowClear:b=!0,notFoundContent:y,direction:S,getPopupContainer:w,status:E,showArrow:C,builtinPlacements:x,style:_,variant:P}=e,O=Pje(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),I=Yn(O,["suffixIcon"]),{getPopupContainer:M,getPrefixCls:T,popupOverflow:D,cascader:A}=d.useContext(Yt),{status:j,hasFeedback:k,isFormItemInput:F,feedbackIcon:V}=d.useContext(Io),W=md(j,E),[K,L,Q,ee]=vae(r,S),re=Q==="rtl",ie=T(),G=Mr(K),[X,ne,le]=XA(K,G),ce=Mr(L),[oe]=xae(L,ce),{compactSize:se,compactItemClassnames:fe}=gc(K,S),[te,he]=gd("cascader",P,c),pe=y||(ee==null?void 0:ee("Cascader"))||d.createElement(Y1,{componentName:"Cascader"}),Oe=xe(h||p,`${L}-dropdown`,{[`${L}-dropdown-rtl`]:Q==="rtl"},s,G,ce,ne,le),Me=d.useMemo(()=>{if(!v)return v;let ge={render:Rje};return typeof v=="object"&&(ge=Object.assign(Object.assign({},ge),v)),ge},[v]),Se=Eo(ge=>{var De;return(De=o??se)!==null&&De!==void 0?De:ge}),ye=d.useContext(zo),ve=i??ye,[be,Pe]=bae(K,re,m),Ne=yae(L,l),U=QA(e.suffixIcon,C),{suffixIcon:H,removeIcon:q,clearIcon:me}=U$(Object.assign(Object.assign({},e),{hasFeedback:k,feedbackIcon:V,showSuffixIcon:U,multiple:l,prefixCls:K,componentName:"Cascader"})),Ce=d.useMemo(()=>g!==void 0?g:re?"bottomRight":"bottomLeft",[g,re]),ue=b===!0?{clearIcon:me}:b,[Le]=vl("SelectLike",(n=I.dropdownStyle)===null||n===void 0?void 0:n.zIndex),He=d.createElement(oS,Object.assign({prefixCls:K,className:xe(!r&&L,{[`${K}-lg`]:Se==="large",[`${K}-sm`]:Se==="small",[`${K}-rtl`]:re,[`${K}-${te}`]:he,[`${K}-in-form-item`]:F},ac(K,W,k),fe,A==null?void 0:A.className,a,s,G,ce,ne,le),disabled:ve,style:Object.assign(Object.assign({},A==null?void 0:A.style),_)},I,{builtinPlacements:YA(x,D),direction:Q,placement:Ce,notFoundContent:pe,allowClear:ue,showSearch:Me,expandIcon:be,suffixIcon:H,removeIcon:q,loadingIcon:Pe,checkable:Ne,dropdownClassName:Oe,dropdownPrefixCls:r||L,dropdownStyle:Object.assign(Object.assign({},I.dropdownStyle),{zIndex:Le}),choiceTransitionName:Mi(ie,"",f),transitionName:Mi(ie,"slide-up",u),getPopupContainer:w||M,ref:t}));return oe(X(He))}),Ije=jf(jv,"dropdownAlign",e=>Yn(e,["visible"]));jv.SHOW_PARENT=Mje;jv.SHOW_CHILD=Oje;jv.Panel=$je;jv._InternalPanelDoNotUseOrYouWillBeFired=Ije;const Eae=de.createContext(null);var kje=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:h}=e,p=kje(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=d.useContext(Yt),b=d.useContext(Eae),{isFormItemInput:y}=d.useContext(Io),S=d.useContext(zo),w=(n=(b==null?void 0:b.disabled)||h)!==null&&n!==void 0?n:S,E=d.useRef(p.value),C=d.useRef(null),x=Si(t,C);d.useEffect(()=>{b==null||b.registerValue(p.value)},[]),d.useEffect(()=>{if(!f)return p.value!==E.current&&(b==null||b.cancelValue(E.current),b==null||b.registerValue(p.value),E.current=p.value),()=>b==null?void 0:b.cancelValue(p.value)},[p.value]),d.useEffect(()=>{var F;!((F=C.current)===null||F===void 0)&&F.input&&(C.current.input.indeterminate=s)},[s]);const _=m("checkbox",r),P=Mr(_),[O,I,M]=Sae(_,P),T=Object.assign({},p);b&&!f&&(T.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),b.toggleOption&&b.toggleOption({label:a,value:p.value})},T.name=b.name,T.checked=b.value.includes(p.value));const D=xe(`${_}-wrapper`,{[`${_}-rtl`]:g==="rtl",[`${_}-wrapper-checked`]:T.checked,[`${_}-wrapper-disabled`]:w,[`${_}-wrapper-in-form-item`]:y},v==null?void 0:v.className,o,i,M,P,I),A=xe({[`${_}-indeterminate`]:s},w$,I),[j,k]=Die(T.onClick);return O(d.createElement(z1,{component:"Checkbox",disabled:w},d.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:j},d.createElement(Aie,Object.assign({},T,{onClick:k,prefixCls:_,className:A,disabled:w,ref:x})),a!==void 0&&d.createElement("span",null,a))))},_ae=d.forwardRef(Nje);var Aje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=Aje(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:h}=d.useContext(Yt),[p,m]=d.useState(u.value||n||[]),[g,v]=d.useState([]);d.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const b=d.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),y=A=>{v(j=>j.filter(k=>k!==A))},S=A=>{v(j=>[].concat(Ze(j),[A]))},w=A=>{const j=p.indexOf(A.value),k=Ze(p);j===-1?k.push(A.value):k.splice(j,1),"value"in u||m(k),c==null||c(k.filter(F=>g.includes(F)).sort((F,V)=>{const W=b.findIndex(L=>L.value===F),K=b.findIndex(L=>L.value===V);return W-K}))},E=f("checkbox",i),C=`${E}-group`,x=Mr(E),[_,P,O]=Sae(E,x),I=Yn(u,["value","disabled"]),M=o.length?b.map(A=>d.createElement(_ae,{prefixCls:E,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:p.includes(A.value),onChange:A.onChange,className:`${C}-item`,style:A.style,title:A.title,id:A.id,required:A.required},A.label)):r,T={toggleOption:w,value:p,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y},D=xe(C,{[`${C}-rtl`]:h==="rtl"},a,s,O,x,P);return _(d.createElement("div",Object.assign({className:D,style:l},I,{ref:t}),d.createElement(Eae.Provider,{value:T},M)))}),id=_ae;id.Group=Dje;id.__ANT_CHECKBOX=!0;const $ae=d.createContext({});var jje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=d.useContext(Yt),{gutter:o,wrap:i}=d.useContext($ae),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:h,children:p,flex:m,style:g}=e,v=jje(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,S,w]=s4e(b),E={};let C={};Fje.forEach(P=>{let O={};const I=e[P];typeof I=="number"?O.span=I:typeof I=="object"&&(O=I||{}),delete v[P],C=Object.assign(Object.assign({},C),{[`${b}-${P}-${O.span}`]:O.span!==void 0,[`${b}-${P}-order-${O.order}`]:O.order||O.order===0,[`${b}-${P}-offset-${O.offset}`]:O.offset||O.offset===0,[`${b}-${P}-push-${O.push}`]:O.push||O.push===0,[`${b}-${P}-pull-${O.pull}`]:O.pull||O.pull===0,[`${b}-rtl`]:r==="rtl"}),O.flex&&(C[`${b}-${P}-flex`]=!0,E[`--${b}-${P}-flex`]=JH(O.flex))});const x=xe(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${f}`]:f},h,C,S,w),_={};if(o&&o[0]>0){const P=o[0]/2;_.paddingLeft=P,_.paddingRight=P}return m&&(_.flex=JH(m),i===!1&&!_.minWidth&&(_.minWidth=0)),y(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},_),g),E),className:x,ref:t}),p))});var Lje=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 o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<$f.length;i++){const a=$f[i];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const sP=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=Lje(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=d.useContext(Yt),[p,m]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=ZH(o,g),y=ZH(r,g),S=d.useRef(l),w=loe();d.useEffect(()=>{const k=w.subscribe(F=>{v(F);const V=S.current||0;(!Array.isArray(V)&&typeof V=="object"||Array.isArray(V)&&(typeof V[0]=="object"||typeof V[1]=="object"))&&m(F)});return()=>w.unsubscribe(k)},[]);const E=()=>{const k=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((V,W)=>{if(typeof V=="object")for(let K=0;K<$f.length;K++){const L=$f[K];if(p[L]&&V[L]!==void 0){k[W]=V[L];break}}else k[W]=V}),k},C=f("row",n),[x,_,P]=a4e(C),O=E(),I=xe(C,{[`${C}-no-wrap`]:c===!1,[`${C}-${y}`]:y,[`${C}-${b}`]:b,[`${C}-rtl`]:h==="rtl"},i,_,P),M={},T=O[0]!=null&&O[0]>0?O[0]/-2:void 0;T&&(M.marginLeft=T,M.marginRight=T);const[D,A]=O;M.rowGap=A;const j=d.useMemo(()=>({gutter:[D,A],wrap:c}),[D,A,c]);return x(d.createElement($ae.Provider,{value:j},d.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},M),a),ref:t}),s)))}),Bje=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{borderBlockStart:`${_e(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${_e(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${_e(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${_e(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:`${_e(o)} 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:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${_e(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${_e(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,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}}})}},zje=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Hje=Kn("Divider",e=>{const t=kn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Bje(t)]},zje,{unitless:{orientationMargin:!0}});var Uje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=d.useContext(Yt),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:h="solid",plain:p,style:m}=e,g=Uje(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",o),[b,y,S]=Hje(v),w=!!u,E=a==="left"&&s!=null,C=a==="right"&&s!=null,x=xe(v,r==null?void 0:r.className,y,S,`${v}-${i}`,{[`${v}-with-text`]:w,[`${v}-with-text-${a}`]:w,[`${v}-dashed`]:!!f,[`${v}-${h}`]:h!=="solid",[`${v}-plain`]:!!p,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:E,[`${v}-no-default-orientation-margin-right`]:C},l,c),_=d.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),P=Object.assign(Object.assign({},E&&{marginLeft:_}),C&&{marginRight:_});return b(d.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},g,{role:"separator"}),u&&i!=="vertical"&&d.createElement("span",{className:`${v}-inner-text`,style:P},u)))};var eU=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}},xc=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Vje(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,f=d.useRef(null),h=d.useState(r),p=$e(h,2),m=p[0],g=p[1],v=function(A){var j,k=o(A),F=(j=n.current)===null||j===void 0?void 0:j.querySelectorAll(".".concat(t,"-item"))[k];return(F==null?void 0:F.offsetParent)&&F},b=d.useState(null),y=$e(b,2),S=y[0],w=y[1],E=d.useState(null),C=$e(E,2),x=C[0],_=C[1];Zn(function(){if(m!==r){var D=v(m),A=v(r),j=eU(D,u),k=eU(A,u);g(r),w(j),_(k),D&&A?a():s()}},[r]);var P=d.useMemo(function(){if(u){var D;return xc((D=S==null?void 0:S.top)!==null&&D!==void 0?D:0)}return xc(l==="rtl"?-(S==null?void 0:S.right):S==null?void 0:S.left)},[u,l,S]),O=d.useMemo(function(){if(u){var D;return xc((D=x==null?void 0:x.top)!==null&&D!==void 0?D:0)}return xc(l==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[u,l,x]),I=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)"}},M=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)"}},T=function(){w(null),_(null),s()};return!S||!x?null:d.createElement(Jo,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:I,onAppearActive:M,onVisibleChanged:T},function(D,A){var j=D.className,k=D.style,F=z(z({},k),{},{"--thumb-start-left":P,"--thumb-start-width":xc(S==null?void 0:S.width),"--thumb-active-left":O,"--thumb-active-width":xc(x==null?void 0:x.width),"--thumb-start-top":P,"--thumb-start-height":xc(S==null?void 0:S.height),"--thumb-active-top":O,"--thumb-active-height":xc(x==null?void 0:x.height)}),V={ref:Si(f,A),style:F,className:xe("".concat(t,"-thumb"),j)};return d.createElement("div",V)})}var Kje=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function qje(e){if(typeof e.title<"u")return e.title;if(Ht(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Gje(e){return e.map(function(t){if(Ht(t)==="object"&&t!==null){var n=qje(t);return z(z({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Yje=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,i=t.checked,a=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,f=t.onFocus,h=t.onBlur,p=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(y){o||u(y,l)};return d.createElement("label",{className:xe(r,Z({},"".concat(n,"-item-disabled"),o)),onMouseDown:g},d.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:i,onChange:v,onFocus:f,onBlur:h,onKeyDown:p,onKeyUp:m}),d.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":i},a))},Xje=d.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=o===void 0?"rc-segmented":o,a=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,f=e.defaultValue,h=e.value,p=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,b=e.motionName,y=b===void 0?"thumb-motion":b,S=At(e,Kje),w=d.useRef(null),E=d.useMemo(function(){return Si(w,t)},[w,t]),C=d.useMemo(function(){return Gje(c)},[c]),x=xn((n=C[0])===null||n===void 0?void 0:n.value,{value:h,defaultValue:f}),_=$e(x,2),P=_[0],O=_[1],I=d.useState(!1),M=$e(I,2),T=M[0],D=M[1],A=function(oe,se){O(se),m==null||m(se)},j=Yn(S,["children"]),k=d.useState(!1),F=$e(k,2),V=F[0],W=F[1],K=d.useState(!1),L=$e(K,2),Q=L[0],ee=L[1],re=function(){ee(!0)},ie=function(){ee(!1)},G=function(){W(!1)},X=function(oe){oe.key==="Tab"&&W(!0)},ne=function(oe){var se=C.findIndex(function(pe){return pe.value===P}),fe=C.length,te=(se+oe+fe)%fe,he=C[te];he&&(O(he.value),m==null||m(he.value))},le=function(oe){switch(oe.key){case"ArrowLeft":case"ArrowUp":ne(-1);break;case"ArrowRight":case"ArrowDown":ne(1);break}};return d.createElement("div",Ge({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},j,{className:xe(i,(r={},Z(r,"".concat(i,"-rtl"),a==="rtl"),Z(r,"".concat(i,"-disabled"),u),Z(r,"".concat(i,"-vertical"),s),r),v),ref:E}),d.createElement("div",{className:"".concat(i,"-group")},d.createElement(Vje,{vertical:s,prefixCls:i,value:P,containerRef:w,motionName:"".concat(i,"-").concat(y),direction:a,getValueIndex:function(oe){return C.findIndex(function(se){return se.value===oe})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),C.map(function(ce){var oe;return d.createElement(Yje,Ge({},ce,{name:p,key:ce.value,prefixCls:i,className:xe(ce.className,"".concat(i,"-item"),(oe={},Z(oe,"".concat(i,"-item-selected"),ce.value===P&&!T),Z(oe,"".concat(i,"-item-focused"),Q&&V&&ce.value===P),oe)),checked:ce.value===P,onChange:A,onFocus:re,onBlur:ie,onKeyDown:le,onKeyUp:X,onMouseDown:G,disabled:!!u||!!ce.disabled}))})))}),Qje=Xje;function tU(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function nU(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Jje=Object.assign({overflow:"hidden"},wa),Zje=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(),o=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({},Qn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Ka(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 ${_e(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({},nU(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},rc(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:_e(n),padding:`0 ${_e(e.segmentedPaddingHorizontal)}`},Jje),"&-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({},nU(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${_e(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:_e(r),padding:`0 ${_e(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:_e(o),padding:`0 ${_e(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),tU(`&-disabled ${t}-item`,e)),tU(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},eFe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}},tFe=Kn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=kn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Zje(r)]},eFe);var rU=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=N$(),{prefixCls:r,className:o,rootClassName:i,block:a,options:s=[],size:l="middle",style:c,vertical:u,name:f=n}=e,h=rU(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:p,direction:m,segmented:g}=d.useContext(Yt),v=p("segmented",r),[b,y,S]=tFe(v),w=Eo(l),E=d.useMemo(()=>s.map(_=>{if(nFe(_)){const{icon:P,label:O}=_,I=rU(_,["icon","label"]);return Object.assign(Object.assign({},I),{label:d.createElement(d.Fragment,null,d.createElement("span",{className:`${v}-item-icon`},P),O&&d.createElement("span",null,O))})}return _}),[s,v]),C=xe(o,i,g==null?void 0:g.className,{[`${v}-block`]:a,[`${v}-sm`]:w==="small",[`${v}-lg`]:w==="large",[`${v}-vertical`]:u},y,S),x=Object.assign(Object.assign({},g==null?void 0:g.style),c);return b(d.createElement(Qje,Object.assign({},h,{name:f,className:C,style:x,options:E,ref:t,prefixCls:v,direction:m,vertical:u})))}),Pae=rFe,Oae=de.createContext({}),Mae=de.createContext({}),Tae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=()=>{if(r&&n&&!n.cleared){const i=n.toHsb();i.a=0;const a=oa(i);a.cleared=!0,r(a)}};return de.createElement("div",{className:`${t}-clear`,onClick:o})};var yf;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(yf||(yf={}));var oFe={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"},iFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:oFe}))},aFe=d.forwardRef(iFe);function v6(){return typeof BigInt=="function"}function Rae(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Yh(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",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function _D(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Th(e){var t=String(e);if(_D(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(".")&&$D(t)?t.length-t.indexOf(".")-1:0}function lP(e){var t=String(e);if(_D(e)){if(e>Number.MAX_SAFE_INTEGER)return String(v6()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Yh("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),lFe=function(){function e(t){if(br(this,e),Z(this,"origin",""),Z(this,"number",void 0),Z(this,"empty",void 0),Rae(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Sr(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 o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":lP(this.number):this.origin}}]),e}();function Pl(e){return v6()?new sFe(e):new lFe(e)}function sx(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Yh(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Pl(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return sx(f.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 cFe(e){return!!(e.addonBefore||e.addonAfter)}function uFe(e){return!!(e.prefix||e.suffix||e.allowClear)}function oU(e,t,n){var r=t.cloneNode(!0),o=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)},o}function tE(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=oU(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=oU(t,e,r),n(o);return}n(o)}}function PD(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var OD=de.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,h=e.className,p=e.style,m=e.disabled,g=e.readOnly,v=e.focused,b=e.triggerFocus,y=e.allowClear,S=e.value,w=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,_=e.dataAttrs,P=e.styles,O=e.components,I=e.onClear,M=a??i,T=(O==null?void 0:O.affixWrapper)||"span",D=(O==null?void 0:O.groupWrapper)||"span",A=(O==null?void 0:O.wrapper)||"span",j=(O==null?void 0:O.groupAddon)||"span",k=d.useRef(null),F=function(te){var he;(he=k.current)!==null&&he!==void 0&&he.contains(te.target)&&(b==null||b())},V=uFe(e),W=d.cloneElement(M,{value:S,className:xe((n=M.props)===null||n===void 0?void 0:n.className,!V&&(x==null?void 0:x.variant))||null}),K=d.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:K.current||k.current}}),V){var L=null;if(y){var Q=!m&&!g&&S,ee="".concat(s,"-clear-icon"),re=Ht(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";L=de.createElement("button",{type:"button",onClick:function(te){w==null||w(te),I==null||I()},onMouseDown:function(te){return te.preventDefault()},className:xe(ee,Z(Z({},"".concat(ee,"-hidden"),!Q),"".concat(ee,"-has-suffix"),!!c))},re)}var ie="".concat(s,"-affix-wrapper"),G=xe(ie,Z(Z(Z(Z(Z({},"".concat(s,"-disabled"),m),"".concat(ie,"-disabled"),m),"".concat(ie,"-focused"),v),"".concat(ie,"-readonly"),g),"".concat(ie,"-input-with-clear-btn"),c&&y&&S),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),X=(c||y)&&de.createElement("span",{className:xe("".concat(s,"-suffix"),x==null?void 0:x.suffix),style:P==null?void 0:P.suffix},L,c);W=de.createElement(T,Ge({className:G,style:P==null?void 0:P.affixWrapper,onClick:F},_==null?void 0:_.affixWrapper,{ref:k}),l&&de.createElement("span",{className:xe("".concat(s,"-prefix"),x==null?void 0:x.prefix),style:P==null?void 0:P.prefix},l),W,X)}if(cFe(e)){var ne="".concat(s,"-group"),le="".concat(ne,"-addon"),ce="".concat(ne,"-wrapper"),oe=xe("".concat(s,"-wrapper"),ne,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),se=xe(ce,Z({},"".concat(ce,"-disabled"),m),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);W=de.createElement(D,{className:se,ref:K},de.createElement(A,{className:oe},u&&de.createElement(j,{className:le},u),W,f&&de.createElement(j,{className:le},f)))}return de.cloneElement(W,{className:xe((r=W.props)===null||r===void 0?void 0:r.className,h)||null,style:z(z({},(o=W.props)===null||o===void 0?void 0:o.style),p),hidden:E})}),dFe=["show"];function Iae(e,t){return d.useMemo(function(){var n={};t&&(n.show=Ht(t)==="object"&&t.formatter?t.formatter:!!t),n=z(z({},n),e);var r=n,o=r.show,i=At(r,dFe);return z(z({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var fFe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hFe=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,h=e.htmlSize,p=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,b=e.count,y=e.type,S=y===void 0?"text":y,w=e.classes,E=e.classNames,C=e.styles,x=e.onCompositionStart,_=e.onCompositionEnd,P=At(e,fFe),O=d.useState(!1),I=$e(O,2),M=I[0],T=I[1],D=d.useRef(!1),A=d.useRef(!1),j=d.useRef(null),k=d.useRef(null),F=function(Pe){j.current&&PD(j.current,Pe)},V=xn(e.defaultValue,{value:e.value}),W=$e(V,2),K=W[0],L=W[1],Q=K==null?"":String(K),ee=d.useState(null),re=$e(ee,2),ie=re[0],G=re[1],X=Iae(b,v),ne=X.max||m,le=X.strategy(Q),ce=!!ne&&le>ne;d.useImperativeHandle(t,function(){var be;return{focus:F,blur:function(){var Ne;(Ne=j.current)===null||Ne===void 0||Ne.blur()},setSelectionRange:function(Ne,U,H){var q;(q=j.current)===null||q===void 0||q.setSelectionRange(Ne,U,H)},select:function(){var Ne;(Ne=j.current)===null||Ne===void 0||Ne.select()},input:j.current,nativeElement:((be=k.current)===null||be===void 0?void 0:be.nativeElement)||j.current}}),d.useEffect(function(){A.current&&(A.current=!1),T(function(be){return be&&f?!1:be})},[f]);var oe=function(Pe,Ne,U){var H=Ne;if(!D.current&&X.exceedFormatter&&X.max&&X.strategy(Ne)>X.max){if(H=X.exceedFormatter(Ne,{max:X.max}),Ne!==H){var q,me;G([((q=j.current)===null||q===void 0?void 0:q.selectionStart)||0,((me=j.current)===null||me===void 0?void 0:me.selectionEnd)||0])}}else if(U.source==="compositionEnd")return;L(H),j.current&&tE(j.current,Pe,r,H)};d.useEffect(function(){if(ie){var be;(be=j.current)===null||be===void 0||be.setSelectionRange.apply(be,Ze(ie))}},[ie]);var se=function(Pe){oe(Pe,Pe.target.value,{source:"change"})},fe=function(Pe){D.current=!1,oe(Pe,Pe.currentTarget.value,{source:"compositionEnd"}),_==null||_(Pe)},te=function(Pe){a&&Pe.key==="Enter"&&!A.current&&(A.current=!0,a(Pe)),s==null||s(Pe)},he=function(Pe){Pe.key==="Enter"&&(A.current=!1),l==null||l(Pe)},pe=function(Pe){T(!0),o==null||o(Pe)},Oe=function(Pe){A.current&&(A.current=!1),T(!1),i==null||i(Pe)},Me=function(Pe){L(""),F(),j.current&&tE(j.current,Pe,r)},Se=ce&&"".concat(u,"-out-of-range"),ye=function(){var Pe=Yn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return de.createElement("input",Ge({autoComplete:n},Pe,{onChange:se,onFocus:pe,onBlur:Oe,onKeyDown:te,onKeyUp:he,className:xe(u,Z({},"".concat(u,"-disabled"),f),E==null?void 0:E.input),style:C==null?void 0:C.input,ref:j,size:h,type:S,onCompositionStart:function(U){D.current=!0,x==null||x(U)},onCompositionEnd:fe}))},ve=function(){var Pe=Number(ne)>0;if(g||X.show){var Ne=X.showFormatter?X.showFormatter({value:Q,count:le,maxLength:ne}):"".concat(le).concat(Pe?" / ".concat(ne):"");return de.createElement(de.Fragment,null,X.show&&de.createElement("span",{className:xe("".concat(u,"-show-count-suffix"),Z({},"".concat(u,"-show-count-has-suffix"),!!g),E==null?void 0:E.count),style:z({},C==null?void 0:C.count)},Ne),g)}return null};return de.createElement(OD,Ge({},P,{prefixCls:u,className:xe(p,Se),handleReset:Me,value:Q,focused:M,triggerFocus:F,suffix:ve(),disabled:f,classes:w,classNames:E,styles:C}),ye())});function pFe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var i=r[o];return typeof i=="function"?i.bind(r):i}}):e}function mFe(e,t){var n=d.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else{var f=s[c-1],h=i.indexOf(f,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(p){yr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,o]}var gFe=function(){var t=d.useState(!1),n=$e(t,2),r=n[0],o=n[1];return Zn(function(){o(F$())},[]),r},vFe=200,yFe=600;function bFe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(S,w){S.preventDefault(),u(),c.current(w);function E(){c.current(w),s.current=setTimeout(E,vFe)}s.current=setTimeout(E,yFe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(y){return zn.cancel(y)})}},[]);var h=gFe();if(h)return null;var p="".concat(t,"-handler"),m=xe(p,"".concat(p,"-up"),Z({},"".concat(p,"-up-disabled"),o)),g=xe(p,"".concat(p,"-down"),Z({},"".concat(p,"-down-disabled"),i)),v=function(){return l.current.push(zn(u))},b={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(p,"-wrap")},d.createElement("span",Ge({},b,{onMouseDown:function(S){f(S,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Ge({},b,{onMouseDown:function(S){f(S,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function iU(e){var t=typeof e=="number"?lP(e):Yh(e).fullStr,n=t.includes(".");return n?Yh(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const SFe=function(){var e=d.useRef(0),t=function(){zn.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=zn(function(){n()})}};var CFe=["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"],wFe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],aU=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},sU=function(t){var n=Pl(t);return n.isInvalidate()?null:n},xFe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,h=e.readOnly,p=e.upHandler,m=e.downHandler,g=e.keyboard,v=e.changeOnWheel,b=v===void 0?!1:v,y=e.controls,S=y===void 0?!0:y;e.classNames;var w=e.stringMode,E=e.parser,C=e.formatter,x=e.precision,_=e.decimalSeparator,P=e.onChange,O=e.onInput,I=e.onPressEnter,M=e.onStep,T=e.changeOnBlur,D=T===void 0?!0:T,A=e.domRef,j=At(e,CFe),k="".concat(n,"-input"),F=d.useRef(null),V=d.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=d.useRef(!1),ee=d.useRef(!1),re=d.useRef(!1),ie=d.useState(function(){return Pl(u??c)}),G=$e(ie,2),X=G[0],ne=G[1];function le(et){u===void 0&&ne(et)}var ce=d.useCallback(function(et,st){if(!st)return x>=0?x:Math.max(Th(et),Th(l))},[x,l]),oe=d.useCallback(function(et){var st=String(et);if(E)return E(st);var Ct=st;return _&&(Ct=Ct.replace(_,".")),Ct.replace(/[^\w.-]+/g,"")},[E,_]),se=d.useRef(""),fe=d.useCallback(function(et,st){if(C)return C(et,{userTyping:st,input:String(se.current)});var Ct=typeof et=="number"?lP(et):et;if(!st){var dt=ce(Ct,st);if($D(Ct)&&(_||dt>=0)){var Lt=_||".";Ct=sx(Ct,Lt,dt)}}return Ct},[C,ce,_]),te=d.useState(function(){var et=c??u;return X.isInvalidate()&&["string","number"].includes(Ht(et))?Number.isNaN(et)?"":et:fe(X.toString(),!1)}),he=$e(te,2),pe=he[0],Oe=he[1];se.current=pe;function Me(et,st){Oe(fe(et.isInvalidate()?et.toString(!1):et.toString(!st),st))}var Se=d.useMemo(function(){return sU(a)},[a,x]),ye=d.useMemo(function(){return sU(i)},[i,x]),ve=d.useMemo(function(){return!Se||!X||X.isInvalidate()?!1:Se.lessEquals(X)},[Se,X]),be=d.useMemo(function(){return!ye||!X||X.isInvalidate()?!1:X.lessEquals(ye)},[ye,X]),Pe=mFe(F.current,K),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=function(st){return Se&&!st.lessEquals(Se)?Se:ye&&!ye.lessEquals(st)?ye:null},me=function(st){return!q(st)},Ce=function(st,Ct){var dt=st,Lt=me(dt)||dt.isEmpty();if(!dt.isEmpty()&&!Ct&&(dt=q(dt)||dt,Lt=!0),!h&&!f&&Lt){var wt=dt.toString(),Et=ce(wt,Ct);return Et>=0&&(dt=Pl(sx(wt,".",Et)),me(dt)||(dt=Pl(sx(wt,".",Et,!0)))),dt.equals(X)||(le(dt),P==null||P(dt.isEmpty()?null:aU(w,dt)),u===void 0&&Me(dt,Ct)),dt}return X},ue=SFe(),Le=function et(st){if(U(),se.current=st,Oe(st),!ee.current){var Ct=oe(st),dt=Pl(Ct);dt.isNaN()||Ce(dt,!0)}O==null||O(st),ue(function(){var Lt=st;E||(Lt=st.replace(/。/g,".")),Lt!==st&&et(Lt)})},He=function(){ee.current=!0},ge=function(){ee.current=!1,Le(F.current.value)},De=function(st){Le(st.target.value)},qe=function(st){var Ct;if(!(st&&ve||!st&&be)){Q.current=!1;var dt=Pl(re.current?iU(l):l);st||(dt=dt.negate());var Lt=(X||Pl(0)).add(dt.toString()),wt=Ce(Lt,!1);M==null||M(aU(w,wt),{offset:re.current?iU(l):l,type:st?"up":"down"}),(Ct=F.current)===null||Ct===void 0||Ct.focus()}},je=function(st){var Ct=Pl(oe(pe)),dt;Ct.isNaN()?dt=Ce(X,st):dt=Ce(Ct,st),u!==void 0?Me(X,!1):dt.isNaN()||Me(dt,!1)},Ke=function(){Q.current=!0},Ue=function(st){var Ct=st.key,dt=st.shiftKey;Q.current=!0,re.current=dt,Ct==="Enter"&&(ee.current||(Q.current=!1),je(!1),I==null||I(st)),g!==!1&&!ee.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ct)&&(qe(Ct==="Up"||Ct==="ArrowUp"),st.preventDefault())},Ve=function(){Q.current=!1,re.current=!1};d.useEffect(function(){if(b&&K){var et=function(dt){qe(dt.deltaY<0),dt.preventDefault()},st=F.current;if(st)return st.addEventListener("wheel",et,{passive:!1}),function(){return st.removeEventListener("wheel",et)}}});var St=function(){D&&je(!1),L(!1),Q.current=!1};return Gh(function(){X.isInvalidate()||Me(X,!1)},[x,C]),Gh(function(){var et=Pl(u);ne(et);var st=Pl(oe(pe));(!et.equals(st)||!Q.current||C)&&Me(et,Q.current)},[u]),Gh(function(){C&&H()},[pe]),d.createElement("div",{ref:A,className:xe(n,r,Z(Z(Z(Z(Z({},"".concat(n,"-focused"),K),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!me(X))),style:o,onFocus:function(){L(!0)},onBlur:St,onKeyDown:Ue,onKeyUp:Ve,onCompositionStart:He,onCompositionEnd:ge,onBeforeInput:Ke},S&&d.createElement(bFe,{prefixCls:n,upNode:p,downNode:m,upDisabled:ve,downDisabled:be,onStep:qe}),d.createElement("div",{className:"".concat(k,"-wrap")},d.createElement("input",Ge({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},j,{ref:Si(F,t),className:k,value:pe,onChange:De,disabled:f,readOnly:h}))))}),EFe=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.classNames,p=At(e,wFe),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),b=function(S){v.current&&PD(v.current,S)};return d.useImperativeHandle(t,function(){return pFe(v.current,{focus:b,nativeElement:m.current.nativeElement||g.current})}),d.createElement(OD,{className:f,triggerFocus:b,prefixCls:i,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},d.createElement(xFe,Ge({prefixCls:i,disabled:n,ref:v,domRef:g,className:h==null?void 0:h.input},p)))});const _Fe=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({},Z1(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Un(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},lU=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},$Fe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:h,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:b,paddingInline:y,paddingBlock:S,handleBg:w,handleActiveBg:E,colorTextDisabled:C,borderRadiusSM:x,borderRadiusLG:_,controlWidth:P,handleBorderColor:O,filledHandleBg:I,lineHeightLG:M,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),eS(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),vD(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${_e(n)} ${r} ${O}`}}})),bD(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${_e(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),yD(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:_,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${_e(h)} ${_e(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:x,[`input${t}-input`]:{height:T(l).sub(T(n).mul(2)).equal(),padding:`${_e(f)} ${_e(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Qn(e)),Uie(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:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},Lie(e)),zie(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({},Qn(e)),{width:"100%",padding:`${_e(S)} ${_e(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),SD(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:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` +`;return[aP(`${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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},wa),{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"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},wje=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Sae(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Bp(e)]},Cae=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}},wae=Kn("Cascader",e=>[wje(e)],Cae),xje=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Sae(e),{display:"inline-flex",border:`${_e(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}}]}},Eje=lne(["Cascader","Panel"],e=>xje(e),Cae);function _je(e){const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:i,direction:a,expandIcon:s,disabled:l}=e,c=d.useContext(zo),u=l??c,[f,h,p,m]=gae(t,a),g=Mr(h),[v,b,y]=wae(h,g);Eje(h);const S=p==="rtl",[w,E]=yae(f,S,s),C=i||(m==null?void 0:m("Cascader"))||d.createElement(X1,{componentName:"Cascader"}),x=vae(h,r);return v(d.createElement(mae,Object.assign({},e,{checkable:x,prefixCls:h,className:xe(n,b,o,y,g),notFoundContent:C,direction:p,expandIcon:w,loadingIcon:E,disabled:u})))}var $je=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 o=0,r=Object.getOwnPropertySymbols(e);ol===0?[s]:[].concat(Ze(a),[t,s]),[]),o=[];let i=0;return r.forEach((a,s)=>{const l=i+a.length;let c=e.slice(i,l);i=l,s%2===1&&(c=d.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),o.push(c)}),o}const Tje=(e,t,n,r)=>{const o=[],i=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&o.push(" / ");let l=a[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=Mje(String(l),i,n)),o.push(l)}),o},jv=d.forwardRef((e,t)=>{var n;const{prefixCls:r,size:o,disabled:i,className:a,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:f="",popupClassName:h,dropdownClassName:p,expandIcon:m,placement:g,showSearch:v,allowClear:b=!0,notFoundContent:y,direction:S,getPopupContainer:w,status:E,showArrow:C,builtinPlacements:x,style:_,variant:P}=e,O=$je(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),I=Yn(O,["suffixIcon"]),{getPopupContainer:M,getPrefixCls:T,popupOverflow:D,cascader:A}=d.useContext(Yt),{status:j,hasFeedback:k,isFormItemInput:F,feedbackIcon:V}=d.useContext(Io),W=md(j,E),[K,L,Q,ee]=gae(r,S),re=Q==="rtl",ie=T(),G=Mr(K),[X,ne,le]=GA(K,G),ce=Mr(L),[oe]=wae(L,ce),{compactSize:se,compactItemClassnames:fe}=gc(K,S),[te,he]=gd("cascader",P,c),pe=y||(ee==null?void 0:ee("Cascader"))||d.createElement(X1,{componentName:"Cascader"}),Oe=xe(h||p,`${L}-dropdown`,{[`${L}-dropdown-rtl`]:Q==="rtl"},s,G,ce,ne,le),Me=d.useMemo(()=>{if(!v)return v;let ge={render:Tje};return typeof v=="object"&&(ge=Object.assign(Object.assign({},ge),v)),ge},[v]),Se=Eo(ge=>{var De;return(De=o??se)!==null&&De!==void 0?De:ge}),ye=d.useContext(zo),ve=i??ye,[be,Pe]=yae(K,re,m),Ne=vae(L,l),U=YA(e.suffixIcon,C),{suffixIcon:H,removeIcon:q,clearIcon:me}=U$(Object.assign(Object.assign({},e),{hasFeedback:k,feedbackIcon:V,showSuffixIcon:U,multiple:l,prefixCls:K,componentName:"Cascader"})),Ce=d.useMemo(()=>g!==void 0?g:re?"bottomRight":"bottomLeft",[g,re]),ue=b===!0?{clearIcon:me}:b,[Le]=vl("SelectLike",(n=I.dropdownStyle)===null||n===void 0?void 0:n.zIndex),He=d.createElement(iS,Object.assign({prefixCls:K,className:xe(!r&&L,{[`${K}-lg`]:Se==="large",[`${K}-sm`]:Se==="small",[`${K}-rtl`]:re,[`${K}-${te}`]:he,[`${K}-in-form-item`]:F},ac(K,W,k),fe,A==null?void 0:A.className,a,s,G,ce,ne,le),disabled:ve,style:Object.assign(Object.assign({},A==null?void 0:A.style),_)},I,{builtinPlacements:qA(x,D),direction:Q,placement:Ce,notFoundContent:pe,allowClear:ue,showSearch:Me,expandIcon:be,suffixIcon:H,removeIcon:q,loadingIcon:Pe,checkable:Ne,dropdownClassName:Oe,dropdownPrefixCls:r||L,dropdownStyle:Object.assign(Object.assign({},I.dropdownStyle),{zIndex:Le}),choiceTransitionName:Mi(ie,"",f),transitionName:Mi(ie,"slide-up",u),getPopupContainer:w||M,ref:t}));return oe(X(He))}),Rje=jf(jv,"dropdownAlign",e=>Yn(e,["visible"]));jv.SHOW_PARENT=Oje;jv.SHOW_CHILD=Pje;jv.Panel=_je;jv._InternalPanelDoNotUseOrYouWillBeFired=Rje;const xae=de.createContext(null);var Ije=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:h}=e,p=Ije(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=d.useContext(Yt),b=d.useContext(xae),{isFormItemInput:y}=d.useContext(Io),S=d.useContext(zo),w=(n=(b==null?void 0:b.disabled)||h)!==null&&n!==void 0?n:S,E=d.useRef(p.value),C=d.useRef(null),x=bi(t,C);d.useEffect(()=>{b==null||b.registerValue(p.value)},[]),d.useEffect(()=>{if(!f)return p.value!==E.current&&(b==null||b.cancelValue(E.current),b==null||b.registerValue(p.value),E.current=p.value),()=>b==null?void 0:b.cancelValue(p.value)},[p.value]),d.useEffect(()=>{var F;!((F=C.current)===null||F===void 0)&&F.input&&(C.current.input.indeterminate=s)},[s]);const _=m("checkbox",r),P=Mr(_),[O,I,M]=bae(_,P),T=Object.assign({},p);b&&!f&&(T.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),b.toggleOption&&b.toggleOption({label:a,value:p.value})},T.name=b.name,T.checked=b.value.includes(p.value));const D=xe(`${_}-wrapper`,{[`${_}-rtl`]:g==="rtl",[`${_}-wrapper-checked`]:T.checked,[`${_}-wrapper-disabled`]:w,[`${_}-wrapper-in-form-item`]:y},v==null?void 0:v.className,o,i,M,P,I),A=xe({[`${_}-indeterminate`]:s},w$,I),[j,k]=Aie(T.onClick);return O(d.createElement(H1,{component:"Checkbox",disabled:w},d.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:j},d.createElement(Nie,Object.assign({},T,{onClick:k,prefixCls:_,className:A,disabled:w,ref:x})),a!==void 0&&d.createElement("span",null,a))))},Eae=d.forwardRef(kje);var Nje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=Nje(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:h}=d.useContext(Yt),[p,m]=d.useState(u.value||n||[]),[g,v]=d.useState([]);d.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const b=d.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),y=A=>{v(j=>j.filter(k=>k!==A))},S=A=>{v(j=>[].concat(Ze(j),[A]))},w=A=>{const j=p.indexOf(A.value),k=Ze(p);j===-1?k.push(A.value):k.splice(j,1),"value"in u||m(k),c==null||c(k.filter(F=>g.includes(F)).sort((F,V)=>{const W=b.findIndex(L=>L.value===F),K=b.findIndex(L=>L.value===V);return W-K}))},E=f("checkbox",i),C=`${E}-group`,x=Mr(E),[_,P,O]=bae(E,x),I=Yn(u,["value","disabled"]),M=o.length?b.map(A=>d.createElement(Eae,{prefixCls:E,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:p.includes(A.value),onChange:A.onChange,className:`${C}-item`,style:A.style,title:A.title,id:A.id,required:A.required},A.label)):r,T={toggleOption:w,value:p,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y},D=xe(C,{[`${C}-rtl`]:h==="rtl"},a,s,O,x,P);return _(d.createElement("div",Object.assign({className:D,style:l},I,{ref:t}),d.createElement(xae.Provider,{value:T},M)))}),od=Eae;od.Group=Aje;od.__ANT_CHECKBOX=!0;const _ae=d.createContext({});var Dje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=d.useContext(Yt),{gutter:o,wrap:i}=d.useContext(_ae),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:h,children:p,flex:m,style:g}=e,v=Dje(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,S,w]=a4e(b),E={};let C={};jje.forEach(P=>{let O={};const I=e[P];typeof I=="number"?O.span=I:typeof I=="object"&&(O=I||{}),delete v[P],C=Object.assign(Object.assign({},C),{[`${b}-${P}-${O.span}`]:O.span!==void 0,[`${b}-${P}-order-${O.order}`]:O.order||O.order===0,[`${b}-${P}-offset-${O.offset}`]:O.offset||O.offset===0,[`${b}-${P}-push-${O.push}`]:O.push||O.push===0,[`${b}-${P}-pull-${O.pull}`]:O.pull||O.pull===0,[`${b}-rtl`]:r==="rtl"}),O.flex&&(C[`${b}-${P}-flex`]=!0,E[`--${b}-${P}-flex`]=XH(O.flex))});const x=xe(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${f}`]:f},h,C,S,w),_={};if(o&&o[0]>0){const P=o[0]/2;_.paddingLeft=P,_.paddingRight=P}return m&&(_.flex=XH(m),i===!1&&!_.minWidth&&(_.minWidth=0)),y(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},_),g),E),className:x,ref:t}),p))});var Fje=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 o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<$f.length;i++){const a=$f[i];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const sP=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=Fje(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=d.useContext(Yt),[p,m]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=QH(o,g),y=QH(r,g),S=d.useRef(l),w=soe();d.useEffect(()=>{const k=w.subscribe(F=>{v(F);const V=S.current||0;(!Array.isArray(V)&&typeof V=="object"||Array.isArray(V)&&(typeof V[0]=="object"||typeof V[1]=="object"))&&m(F)});return()=>w.unsubscribe(k)},[]);const E=()=>{const k=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((V,W)=>{if(typeof V=="object")for(let K=0;K<$f.length;K++){const L=$f[K];if(p[L]&&V[L]!==void 0){k[W]=V[L];break}}else k[W]=V}),k},C=f("row",n),[x,_,P]=i4e(C),O=E(),I=xe(C,{[`${C}-no-wrap`]:c===!1,[`${C}-${y}`]:y,[`${C}-${b}`]:b,[`${C}-rtl`]:h==="rtl"},i,_,P),M={},T=O[0]!=null&&O[0]>0?O[0]/-2:void 0;T&&(M.marginLeft=T,M.marginRight=T);const[D,A]=O;M.rowGap=A;const j=d.useMemo(()=>({gutter:[D,A],wrap:c}),[D,A,c]);return x(d.createElement(_ae.Provider,{value:j},d.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},M),a),ref:t}),s)))}),Lje=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{borderBlockStart:`${_e(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${_e(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${_e(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${_e(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:`${_e(o)} 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:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${_e(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${_e(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,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}}})}},Bje=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),zje=Kn("Divider",e=>{const t=kn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Lje(t)]},Bje,{unitless:{orientationMargin:!0}});var Hje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=d.useContext(Yt),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:h="solid",plain:p,style:m}=e,g=Hje(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",o),[b,y,S]=zje(v),w=!!u,E=a==="left"&&s!=null,C=a==="right"&&s!=null,x=xe(v,r==null?void 0:r.className,y,S,`${v}-${i}`,{[`${v}-with-text`]:w,[`${v}-with-text-${a}`]:w,[`${v}-dashed`]:!!f,[`${v}-${h}`]:h!=="solid",[`${v}-plain`]:!!p,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:E,[`${v}-no-default-orientation-margin-right`]:C},l,c),_=d.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),P=Object.assign(Object.assign({},E&&{marginLeft:_}),C&&{marginRight:_});return b(d.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},g,{role:"separator"}),u&&i!=="vertical"&&d.createElement("span",{className:`${v}-inner-text`,style:P},u)))};var JH=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}},xc=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Wje(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,f=d.useRef(null),h=d.useState(r),p=$e(h,2),m=p[0],g=p[1],v=function(A){var j,k=o(A),F=(j=n.current)===null||j===void 0?void 0:j.querySelectorAll(".".concat(t,"-item"))[k];return(F==null?void 0:F.offsetParent)&&F},b=d.useState(null),y=$e(b,2),S=y[0],w=y[1],E=d.useState(null),C=$e(E,2),x=C[0],_=C[1];Zn(function(){if(m!==r){var D=v(m),A=v(r),j=JH(D,u),k=JH(A,u);g(r),w(j),_(k),D&&A?a():s()}},[r]);var P=d.useMemo(function(){if(u){var D;return xc((D=S==null?void 0:S.top)!==null&&D!==void 0?D:0)}return xc(l==="rtl"?-(S==null?void 0:S.right):S==null?void 0:S.left)},[u,l,S]),O=d.useMemo(function(){if(u){var D;return xc((D=x==null?void 0:x.top)!==null&&D!==void 0?D:0)}return xc(l==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[u,l,x]),I=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)"}},M=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)"}},T=function(){w(null),_(null),s()};return!S||!x?null:d.createElement(Jo,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:I,onAppearActive:M,onVisibleChanged:T},function(D,A){var j=D.className,k=D.style,F=z(z({},k),{},{"--thumb-start-left":P,"--thumb-start-width":xc(S==null?void 0:S.width),"--thumb-active-left":O,"--thumb-active-width":xc(x==null?void 0:x.width),"--thumb-start-top":P,"--thumb-start-height":xc(S==null?void 0:S.height),"--thumb-active-top":O,"--thumb-active-height":xc(x==null?void 0:x.height)}),V={ref:bi(f,A),style:F,className:xe("".concat(t,"-thumb"),j)};return d.createElement("div",V)})}var Vje=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Kje(e){if(typeof e.title<"u")return e.title;if(Ht(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function qje(e){return e.map(function(t){if(Ht(t)==="object"&&t!==null){var n=Kje(t);return z(z({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Gje=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,i=t.checked,a=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,f=t.onFocus,h=t.onBlur,p=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(y){o||u(y,l)};return d.createElement("label",{className:xe(r,Z({},"".concat(n,"-item-disabled"),o)),onMouseDown:g},d.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:i,onChange:v,onFocus:f,onBlur:h,onKeyDown:p,onKeyUp:m}),d.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":i},a))},Yje=d.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=o===void 0?"rc-segmented":o,a=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,f=e.defaultValue,h=e.value,p=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,b=e.motionName,y=b===void 0?"thumb-motion":b,S=At(e,Vje),w=d.useRef(null),E=d.useMemo(function(){return bi(w,t)},[w,t]),C=d.useMemo(function(){return qje(c)},[c]),x=xn((n=C[0])===null||n===void 0?void 0:n.value,{value:h,defaultValue:f}),_=$e(x,2),P=_[0],O=_[1],I=d.useState(!1),M=$e(I,2),T=M[0],D=M[1],A=function(oe,se){O(se),m==null||m(se)},j=Yn(S,["children"]),k=d.useState(!1),F=$e(k,2),V=F[0],W=F[1],K=d.useState(!1),L=$e(K,2),Q=L[0],ee=L[1],re=function(){ee(!0)},ie=function(){ee(!1)},G=function(){W(!1)},X=function(oe){oe.key==="Tab"&&W(!0)},ne=function(oe){var se=C.findIndex(function(pe){return pe.value===P}),fe=C.length,te=(se+oe+fe)%fe,he=C[te];he&&(O(he.value),m==null||m(he.value))},le=function(oe){switch(oe.key){case"ArrowLeft":case"ArrowUp":ne(-1);break;case"ArrowRight":case"ArrowDown":ne(1);break}};return d.createElement("div",Ge({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},j,{className:xe(i,(r={},Z(r,"".concat(i,"-rtl"),a==="rtl"),Z(r,"".concat(i,"-disabled"),u),Z(r,"".concat(i,"-vertical"),s),r),v),ref:E}),d.createElement("div",{className:"".concat(i,"-group")},d.createElement(Wje,{vertical:s,prefixCls:i,value:P,containerRef:w,motionName:"".concat(i,"-").concat(y),direction:a,getValueIndex:function(oe){return C.findIndex(function(se){return se.value===oe})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),C.map(function(ce){var oe;return d.createElement(Gje,Ge({},ce,{name:p,key:ce.value,prefixCls:i,className:xe(ce.className,"".concat(i,"-item"),(oe={},Z(oe,"".concat(i,"-item-selected"),ce.value===P&&!T),Z(oe,"".concat(i,"-item-focused"),Q&&V&&ce.value===P),oe)),checked:ce.value===P,onChange:A,onFocus:re,onBlur:ie,onKeyDown:le,onKeyUp:X,onMouseDown:G,disabled:!!u||!!ce.disabled}))})))}),Xje=Yje;function ZH(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function eU(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Qje=Object.assign({overflow:"hidden"},wa),Jje=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(),o=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({},Qn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Ka(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 ${_e(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({},eU(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},rc(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:_e(n),padding:`0 ${_e(e.segmentedPaddingHorizontal)}`},Qje),"&-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({},eU(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${_e(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:_e(r),padding:`0 ${_e(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:_e(o),padding:`0 ${_e(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),ZH(`&-disabled ${t}-item`,e)),ZH(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Zje=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}},eFe=Kn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=kn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Jje(r)]},Zje);var tU=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=N$(),{prefixCls:r,className:o,rootClassName:i,block:a,options:s=[],size:l="middle",style:c,vertical:u,name:f=n}=e,h=tU(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:p,direction:m,segmented:g}=d.useContext(Yt),v=p("segmented",r),[b,y,S]=eFe(v),w=Eo(l),E=d.useMemo(()=>s.map(_=>{if(tFe(_)){const{icon:P,label:O}=_,I=tU(_,["icon","label"]);return Object.assign(Object.assign({},I),{label:d.createElement(d.Fragment,null,d.createElement("span",{className:`${v}-item-icon`},P),O&&d.createElement("span",null,O))})}return _}),[s,v]),C=xe(o,i,g==null?void 0:g.className,{[`${v}-block`]:a,[`${v}-sm`]:w==="small",[`${v}-lg`]:w==="large",[`${v}-vertical`]:u},y,S),x=Object.assign(Object.assign({},g==null?void 0:g.style),c);return b(d.createElement(Xje,Object.assign({},h,{name:f,className:C,style:x,options:E,ref:t,prefixCls:v,direction:m,vertical:u})))}),$ae=nFe,Pae=de.createContext({}),Oae=de.createContext({}),Mae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=()=>{if(r&&n&&!n.cleared){const i=n.toHsb();i.a=0;const a=oa(i);a.cleared=!0,r(a)}};return de.createElement("div",{className:`${t}-clear`,onClick:o})};var yf;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(yf||(yf={}));var rFe={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"},oFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:rFe}))},iFe=d.forwardRef(oFe);function g6(){return typeof BigInt=="function"}function Tae(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Yh(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",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function xD(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Th(e){var t=String(e);if(xD(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(".")&&ED(t)?t.length-t.indexOf(".")-1:0}function lP(e){var t=String(e);if(xD(e)){if(e>Number.MAX_SAFE_INTEGER)return String(g6()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Yh("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),sFe=function(){function e(t){if(br(this,e),Z(this,"origin",""),Z(this,"number",void 0),Z(this,"empty",void 0),Tae(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Sr(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 o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":lP(this.number):this.origin}}]),e}();function Pl(e){return g6()?new aFe(e):new sFe(e)}function lx(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Yh(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Pl(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return lx(f.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 lFe(e){return!!(e.addonBefore||e.addonAfter)}function cFe(e){return!!(e.prefix||e.suffix||e.allowClear)}function nU(e,t,n){var r=t.cloneNode(!0),o=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)},o}function nE(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=nU(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=nU(t,e,r),n(o);return}n(o)}}function _D(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var $D=de.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,h=e.className,p=e.style,m=e.disabled,g=e.readOnly,v=e.focused,b=e.triggerFocus,y=e.allowClear,S=e.value,w=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,_=e.dataAttrs,P=e.styles,O=e.components,I=e.onClear,M=a??i,T=(O==null?void 0:O.affixWrapper)||"span",D=(O==null?void 0:O.groupWrapper)||"span",A=(O==null?void 0:O.wrapper)||"span",j=(O==null?void 0:O.groupAddon)||"span",k=d.useRef(null),F=function(te){var he;(he=k.current)!==null&&he!==void 0&&he.contains(te.target)&&(b==null||b())},V=cFe(e),W=d.cloneElement(M,{value:S,className:xe((n=M.props)===null||n===void 0?void 0:n.className,!V&&(x==null?void 0:x.variant))||null}),K=d.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:K.current||k.current}}),V){var L=null;if(y){var Q=!m&&!g&&S,ee="".concat(s,"-clear-icon"),re=Ht(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";L=de.createElement("button",{type:"button",onClick:function(te){w==null||w(te),I==null||I()},onMouseDown:function(te){return te.preventDefault()},className:xe(ee,Z(Z({},"".concat(ee,"-hidden"),!Q),"".concat(ee,"-has-suffix"),!!c))},re)}var ie="".concat(s,"-affix-wrapper"),G=xe(ie,Z(Z(Z(Z(Z({},"".concat(s,"-disabled"),m),"".concat(ie,"-disabled"),m),"".concat(ie,"-focused"),v),"".concat(ie,"-readonly"),g),"".concat(ie,"-input-with-clear-btn"),c&&y&&S),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),X=(c||y)&&de.createElement("span",{className:xe("".concat(s,"-suffix"),x==null?void 0:x.suffix),style:P==null?void 0:P.suffix},L,c);W=de.createElement(T,Ge({className:G,style:P==null?void 0:P.affixWrapper,onClick:F},_==null?void 0:_.affixWrapper,{ref:k}),l&&de.createElement("span",{className:xe("".concat(s,"-prefix"),x==null?void 0:x.prefix),style:P==null?void 0:P.prefix},l),W,X)}if(lFe(e)){var ne="".concat(s,"-group"),le="".concat(ne,"-addon"),ce="".concat(ne,"-wrapper"),oe=xe("".concat(s,"-wrapper"),ne,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),se=xe(ce,Z({},"".concat(ce,"-disabled"),m),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);W=de.createElement(D,{className:se,ref:K},de.createElement(A,{className:oe},u&&de.createElement(j,{className:le},u),W,f&&de.createElement(j,{className:le},f)))}return de.cloneElement(W,{className:xe((r=W.props)===null||r===void 0?void 0:r.className,h)||null,style:z(z({},(o=W.props)===null||o===void 0?void 0:o.style),p),hidden:E})}),uFe=["show"];function Rae(e,t){return d.useMemo(function(){var n={};t&&(n.show=Ht(t)==="object"&&t.formatter?t.formatter:!!t),n=z(z({},n),e);var r=n,o=r.show,i=At(r,uFe);return z(z({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var dFe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],fFe=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,h=e.htmlSize,p=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,b=e.count,y=e.type,S=y===void 0?"text":y,w=e.classes,E=e.classNames,C=e.styles,x=e.onCompositionStart,_=e.onCompositionEnd,P=At(e,dFe),O=d.useState(!1),I=$e(O,2),M=I[0],T=I[1],D=d.useRef(!1),A=d.useRef(!1),j=d.useRef(null),k=d.useRef(null),F=function(Pe){j.current&&_D(j.current,Pe)},V=xn(e.defaultValue,{value:e.value}),W=$e(V,2),K=W[0],L=W[1],Q=K==null?"":String(K),ee=d.useState(null),re=$e(ee,2),ie=re[0],G=re[1],X=Rae(b,v),ne=X.max||m,le=X.strategy(Q),ce=!!ne&&le>ne;d.useImperativeHandle(t,function(){var be;return{focus:F,blur:function(){var Ne;(Ne=j.current)===null||Ne===void 0||Ne.blur()},setSelectionRange:function(Ne,U,H){var q;(q=j.current)===null||q===void 0||q.setSelectionRange(Ne,U,H)},select:function(){var Ne;(Ne=j.current)===null||Ne===void 0||Ne.select()},input:j.current,nativeElement:((be=k.current)===null||be===void 0?void 0:be.nativeElement)||j.current}}),d.useEffect(function(){A.current&&(A.current=!1),T(function(be){return be&&f?!1:be})},[f]);var oe=function(Pe,Ne,U){var H=Ne;if(!D.current&&X.exceedFormatter&&X.max&&X.strategy(Ne)>X.max){if(H=X.exceedFormatter(Ne,{max:X.max}),Ne!==H){var q,me;G([((q=j.current)===null||q===void 0?void 0:q.selectionStart)||0,((me=j.current)===null||me===void 0?void 0:me.selectionEnd)||0])}}else if(U.source==="compositionEnd")return;L(H),j.current&&nE(j.current,Pe,r,H)};d.useEffect(function(){if(ie){var be;(be=j.current)===null||be===void 0||be.setSelectionRange.apply(be,Ze(ie))}},[ie]);var se=function(Pe){oe(Pe,Pe.target.value,{source:"change"})},fe=function(Pe){D.current=!1,oe(Pe,Pe.currentTarget.value,{source:"compositionEnd"}),_==null||_(Pe)},te=function(Pe){a&&Pe.key==="Enter"&&!A.current&&(A.current=!0,a(Pe)),s==null||s(Pe)},he=function(Pe){Pe.key==="Enter"&&(A.current=!1),l==null||l(Pe)},pe=function(Pe){T(!0),o==null||o(Pe)},Oe=function(Pe){A.current&&(A.current=!1),T(!1),i==null||i(Pe)},Me=function(Pe){L(""),F(),j.current&&nE(j.current,Pe,r)},Se=ce&&"".concat(u,"-out-of-range"),ye=function(){var Pe=Yn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return de.createElement("input",Ge({autoComplete:n},Pe,{onChange:se,onFocus:pe,onBlur:Oe,onKeyDown:te,onKeyUp:he,className:xe(u,Z({},"".concat(u,"-disabled"),f),E==null?void 0:E.input),style:C==null?void 0:C.input,ref:j,size:h,type:S,onCompositionStart:function(U){D.current=!0,x==null||x(U)},onCompositionEnd:fe}))},ve=function(){var Pe=Number(ne)>0;if(g||X.show){var Ne=X.showFormatter?X.showFormatter({value:Q,count:le,maxLength:ne}):"".concat(le).concat(Pe?" / ".concat(ne):"");return de.createElement(de.Fragment,null,X.show&&de.createElement("span",{className:xe("".concat(u,"-show-count-suffix"),Z({},"".concat(u,"-show-count-has-suffix"),!!g),E==null?void 0:E.count),style:z({},C==null?void 0:C.count)},Ne),g)}return null};return de.createElement($D,Ge({},P,{prefixCls:u,className:xe(p,Se),handleReset:Me,value:Q,focused:M,triggerFocus:F,suffix:ve(),disabled:f,classes:w,classNames:E,styles:C}),ye())});function hFe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var i=r[o];return typeof i=="function"?i.bind(r):i}}):e}function pFe(e,t){var n=d.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else{var f=s[c-1],h=i.indexOf(f,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(p){yr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,o]}var mFe=function(){var t=d.useState(!1),n=$e(t,2),r=n[0],o=n[1];return Zn(function(){o(F$())},[]),r},gFe=200,vFe=600;function yFe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(S,w){S.preventDefault(),u(),c.current(w);function E(){c.current(w),s.current=setTimeout(E,gFe)}s.current=setTimeout(E,vFe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(y){return zn.cancel(y)})}},[]);var h=mFe();if(h)return null;var p="".concat(t,"-handler"),m=xe(p,"".concat(p,"-up"),Z({},"".concat(p,"-up-disabled"),o)),g=xe(p,"".concat(p,"-down"),Z({},"".concat(p,"-down-disabled"),i)),v=function(){return l.current.push(zn(u))},b={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(p,"-wrap")},d.createElement("span",Ge({},b,{onMouseDown:function(S){f(S,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Ge({},b,{onMouseDown:function(S){f(S,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function rU(e){var t=typeof e=="number"?lP(e):Yh(e).fullStr,n=t.includes(".");return n?Yh(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const bFe=function(){var e=d.useRef(0),t=function(){zn.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=zn(function(){n()})}};var SFe=["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"],CFe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],oU=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},iU=function(t){var n=Pl(t);return n.isInvalidate()?null:n},wFe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,h=e.readOnly,p=e.upHandler,m=e.downHandler,g=e.keyboard,v=e.changeOnWheel,b=v===void 0?!1:v,y=e.controls,S=y===void 0?!0:y;e.classNames;var w=e.stringMode,E=e.parser,C=e.formatter,x=e.precision,_=e.decimalSeparator,P=e.onChange,O=e.onInput,I=e.onPressEnter,M=e.onStep,T=e.changeOnBlur,D=T===void 0?!0:T,A=e.domRef,j=At(e,SFe),k="".concat(n,"-input"),F=d.useRef(null),V=d.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=d.useRef(!1),ee=d.useRef(!1),re=d.useRef(!1),ie=d.useState(function(){return Pl(u??c)}),G=$e(ie,2),X=G[0],ne=G[1];function le(et){u===void 0&&ne(et)}var ce=d.useCallback(function(et,st){if(!st)return x>=0?x:Math.max(Th(et),Th(l))},[x,l]),oe=d.useCallback(function(et){var st=String(et);if(E)return E(st);var yt=st;return _&&(yt=yt.replace(_,".")),yt.replace(/[^\w.-]+/g,"")},[E,_]),se=d.useRef(""),fe=d.useCallback(function(et,st){if(C)return C(et,{userTyping:st,input:String(se.current)});var yt=typeof et=="number"?lP(et):et;if(!st){var gt=ce(yt,st);if(ED(yt)&&(_||gt>=0)){var Lt=_||".";yt=lx(yt,Lt,gt)}}return yt},[C,ce,_]),te=d.useState(function(){var et=c??u;return X.isInvalidate()&&["string","number"].includes(Ht(et))?Number.isNaN(et)?"":et:fe(X.toString(),!1)}),he=$e(te,2),pe=he[0],Oe=he[1];se.current=pe;function Me(et,st){Oe(fe(et.isInvalidate()?et.toString(!1):et.toString(!st),st))}var Se=d.useMemo(function(){return iU(a)},[a,x]),ye=d.useMemo(function(){return iU(i)},[i,x]),ve=d.useMemo(function(){return!Se||!X||X.isInvalidate()?!1:Se.lessEquals(X)},[Se,X]),be=d.useMemo(function(){return!ye||!X||X.isInvalidate()?!1:X.lessEquals(ye)},[ye,X]),Pe=pFe(F.current,K),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=function(st){return Se&&!st.lessEquals(Se)?Se:ye&&!ye.lessEquals(st)?ye:null},me=function(st){return!q(st)},Ce=function(st,yt){var gt=st,Lt=me(gt)||gt.isEmpty();if(!gt.isEmpty()&&!yt&&(gt=q(gt)||gt,Lt=!0),!h&&!f&&Lt){var St=gt.toString(),wt=ce(St,yt);return wt>=0&&(gt=Pl(lx(St,".",wt)),me(gt)||(gt=Pl(lx(St,".",wt,!0)))),gt.equals(X)||(le(gt),P==null||P(gt.isEmpty()?null:oU(w,gt)),u===void 0&&Me(gt,yt)),gt}return X},ue=bFe(),Le=function et(st){if(U(),se.current=st,Oe(st),!ee.current){var yt=oe(st),gt=Pl(yt);gt.isNaN()||Ce(gt,!0)}O==null||O(st),ue(function(){var Lt=st;E||(Lt=st.replace(/。/g,".")),Lt!==st&&et(Lt)})},He=function(){ee.current=!0},ge=function(){ee.current=!1,Le(F.current.value)},De=function(st){Le(st.target.value)},qe=function(st){var yt;if(!(st&&ve||!st&&be)){Q.current=!1;var gt=Pl(re.current?rU(l):l);st||(gt=gt.negate());var Lt=(X||Pl(0)).add(gt.toString()),St=Ce(Lt,!1);M==null||M(oU(w,St),{offset:re.current?rU(l):l,type:st?"up":"down"}),(yt=F.current)===null||yt===void 0||yt.focus()}},Fe=function(st){var yt=Pl(oe(pe)),gt;yt.isNaN()?gt=Ce(X,st):gt=Ce(yt,st),u!==void 0?Me(X,!1):gt.isNaN()||Me(gt,!1)},Ke=function(){Q.current=!0},Ue=function(st){var yt=st.key,gt=st.shiftKey;Q.current=!0,re.current=gt,yt==="Enter"&&(ee.current||(Q.current=!1),Fe(!1),I==null||I(st)),g!==!1&&!ee.current&&["Up","ArrowUp","Down","ArrowDown"].includes(yt)&&(qe(yt==="Up"||yt==="ArrowUp"),st.preventDefault())},Ve=function(){Q.current=!1,re.current=!1};d.useEffect(function(){if(b&&K){var et=function(gt){qe(gt.deltaY<0),gt.preventDefault()},st=F.current;if(st)return st.addEventListener("wheel",et,{passive:!1}),function(){return st.removeEventListener("wheel",et)}}});var Tt=function(){D&&Fe(!1),L(!1),Q.current=!1};return Gh(function(){X.isInvalidate()||Me(X,!1)},[x,C]),Gh(function(){var et=Pl(u);ne(et);var st=Pl(oe(pe));(!et.equals(st)||!Q.current||C)&&Me(et,Q.current)},[u]),Gh(function(){C&&H()},[pe]),d.createElement("div",{ref:A,className:xe(n,r,Z(Z(Z(Z(Z({},"".concat(n,"-focused"),K),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!me(X))),style:o,onFocus:function(){L(!0)},onBlur:Tt,onKeyDown:Ue,onKeyUp:Ve,onCompositionStart:He,onCompositionEnd:ge,onBeforeInput:Ke},S&&d.createElement(yFe,{prefixCls:n,upNode:p,downNode:m,upDisabled:ve,downDisabled:be,onStep:qe}),d.createElement("div",{className:"".concat(k,"-wrap")},d.createElement("input",Ge({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},j,{ref:bi(F,t),className:k,value:pe,onChange:De,disabled:f,readOnly:h}))))}),xFe=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.classNames,p=At(e,CFe),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),b=function(S){v.current&&_D(v.current,S)};return d.useImperativeHandle(t,function(){return hFe(v.current,{focus:b,nativeElement:m.current.nativeElement||g.current})}),d.createElement($D,{className:f,triggerFocus:b,prefixCls:i,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},d.createElement(wFe,Ge({prefixCls:i,disabled:n,ref:v,domRef:g,className:h==null?void 0:h.input},p)))});const EFe=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({},eS(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Un(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},aU=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},_Fe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:h,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:b,paddingInline:y,paddingBlock:S,handleBg:w,handleActiveBg:E,colorTextDisabled:C,borderRadiusSM:x,borderRadiusLG:_,controlWidth:P,handleBorderColor:O,filledHandleBg:I,lineHeightLG:M,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),tS(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),mD(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${_e(n)} ${r} ${O}`}}})),vD(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${_e(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),gD(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:_,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${_e(h)} ${_e(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:x,[`input${t}-input`]:{height:T(l).sub(T(n).mul(2)).equal(),padding:`${_e(f)} ${_e(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Qn(e)),Hie(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:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},Fie(e)),Bie(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({},Qn(e)),{width:"100%",padding:`${_e(S)} ${_e(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),yD(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:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,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:`${_e(n)} ${r} ${O}`,transition:`all ${g} linear`,"&:active":{background:E},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Fp()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},lU(e,"lg")),lU(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Fp()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},aU(e,"lg")),aU(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:C}})}]},PFe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${_e(n)} 0`}},eS(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${_e(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${_e(f)} 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:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,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()}})}},OFe=Kn("InputNumber",e=>{const t=kn(e,J1(e));return[$Fe(t),PFe(t),Bp(t)]},_Fe,{unitless:{handleOpacity:!0}});var MFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=d.useContext(Yt),o=d.useRef(null);d.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:h,suffix:p,bordered:m,readOnly:g,status:v,controls:b,variant:y}=e,S=MFe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),E=Mr(w),[C,x,_]=OFe(w,E),{compactSize:P,compactItemClassnames:O}=gc(w,r);let I=d.createElement(aFe,{className:`${w}-handler-up-inner`}),M=d.createElement(z$,{className:`${w}-handler-down-inner`});const T=typeof b=="boolean"?b:void 0;typeof b=="object"&&(I=typeof b.upIcon>"u"?I:d.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),M=typeof b.downIcon>"u"?M:d.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:A,isFormItemInput:j,feedbackIcon:k}=d.useContext(Io),F=md(A,v),V=Eo(X=>{var ne;return(ne=s??P)!==null&&ne!==void 0?ne:X}),W=d.useContext(zo),K=l??W,[L,Q]=gd("inputNumber",y,m),ee=D&&d.createElement(d.Fragment,null,k),re=xe({[`${w}-lg`]:V==="large",[`${w}-sm`]:V==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:j},x),ie=`${w}-group`,G=d.createElement(EFe,Object.assign({ref:o,disabled:K,className:xe(_,E,i,a,O),upHandler:I,downHandler:M,prefixCls:w,readOnly:g,controls:T,prefix:h,suffix:ee||p,addonBefore:u&&d.createElement(ic,{form:!0,space:!0},u),addonAfter:f&&d.createElement(ic,{form:!0,space:!0},f),classNames:{input:re,variant:xe({[`${w}-${L}`]:Q},ac(w,F,D)),affixWrapper:xe({[`${w}-affix-wrapper-sm`]:V==="small",[`${w}-affix-wrapper-lg`]:V==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:b===!1},x),wrapper:xe({[`${ie}-rtl`]:r==="rtl"},x),groupWrapper:xe({[`${w}-group-wrapper-sm`]:V==="small",[`${w}-group-wrapper-lg`]:V==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${L}`]:Q},ac(`${w}-group-wrapper`,F,D),x)}},S));return C(G)}),lc=kae,TFe=e=>d.createElement(Mn,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(kae,Object.assign({},e)));lc._InternalPanelDoNotUseOrYouWillBeFired=TFe;const Xh=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=d.useState(o);return d.useEffect(()=>{Number.isNaN(o)||u(o)},[o]),de.createElement(lc,{className:xe(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:f=>{o||u(f||0),i==null||i(f)}})},RFe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=oa(c);n||a(u),r==null||r(u)};return de.createElement(Xh,{value:IA(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},IFe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=wD(a),c=xe(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=d.useContext(Io),f=d.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(Io.Provider,{value:f},e.children)))},Nae=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:de.createElement(ou,null)}),t};function Aae(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.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 d.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function kFe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var NFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:h,addonBefore:p,className:m,style:g,styles:v,rootClassName:b,onChange:y,classNames:S,variant:w}=e,E=NFe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:x,input:_}=de.useContext(Yt),P=C("input",r),O=d.useRef(null),I=Mr(P),[M,T,D]=wD(P,I),{compactSize:A,compactItemClassnames:j}=gc(P,x),k=Eo(se=>{var fe;return(fe=a??A)!==null&&fe!==void 0?fe:se}),F=de.useContext(zo),V=s??F,{status:W,hasFeedback:K,feedbackIcon:L}=d.useContext(Io),Q=md(W,i),ee=kFe(e)||!!K;d.useRef(ee);const re=Aae(O,!0),ie=se=>{re(),l==null||l(se)},G=se=>{re(),c==null||c(se)},X=se=>{re(),y==null||y(se)},ne=(K||u)&&de.createElement(de.Fragment,null,u,K&&L),le=Nae(f??(_==null?void 0:_.allowClear)),[ce,oe]=gd("input",w,o);return M(de.createElement(hFe,Object.assign({ref:Si(t,O),prefixCls:P,autoComplete:_==null?void 0:_.autoComplete},E,{disabled:V,onBlur:ie,onFocus:G,style:Object.assign(Object.assign({},_==null?void 0:_.style),g),styles:Object.assign(Object.assign({},_==null?void 0:_.styles),v),suffix:ne,allowClear:le,className:xe(m,b,D,I,j,_==null?void 0:_.className),onChange:X,addonBefore:p&&de.createElement(ic,{form:!0,space:!0},p),addonAfter:h&&de.createElement(ic,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},S),_==null?void 0:_.classNames),{input:xe({[`${P}-sm`]:k==="small",[`${P}-lg`]:k==="large",[`${P}-rtl`]:x==="rtl"},S==null?void 0:S.input,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.input,T),variant:xe({[`${P}-${ce}`]:oe},ac(P,Q)),affixWrapper:xe({[`${P}-affix-wrapper-sm`]:k==="small",[`${P}-affix-wrapper-lg`]:k==="large",[`${P}-affix-wrapper-rtl`]:x==="rtl"},T),wrapper:xe({[`${P}-group-rtl`]:x==="rtl"},T),groupWrapper:xe({[`${P}-group-wrapper-sm`]:k==="small",[`${P}-group-wrapper-lg`]:k==="large",[`${P}-group-wrapper-rtl`]:x==="rtl",[`${P}-group-wrapper-${ce}`]:oe},ac(`${P}-group-wrapper`,Q,K),T)})})))}),AFe=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}}}},DFe=Kn(["Input","OTP"],e=>{const t=kn(e,J1(e));return[AFe(t)]},Z1);var jFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,s=jFe(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=m=>{r(i,m.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{zn(()=>{var m;const g=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},h=m=>{const{key:g,ctrlKey:v,metaKey:b}=m;g==="ArrowLeft"?o(i-1):g==="ArrowRight"?o(i+1):g==="z"&&(v||b)&&m.preventDefault(),f()},p=m=>{m.key==="Backspace"&&!n&&o(i-1),f()};return d.createElement(cP,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:h,onKeyUp:p,onMouseDown:f,onMouseUp:f}))});var LFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:h,mask:p,type:m,onInput:g,inputMode:v}=e,b=LFe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:S}=d.useContext(Yt),w=y("otp",n),E=Jr(b,{aria:!0,data:!0,attr:!0}),C=Mr(w),[x,_,P]=DFe(w,C),O=Eo(ee=>o??ee),I=d.useContext(Io),M=md(I.status,f),T=d.useMemo(()=>Object.assign(Object.assign({},I),{status:M,hasFeedback:!1,feedbackIcon:null}),[I,M]),D=d.useRef(null),A=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var ee;(ee=A.current[0])===null||ee===void 0||ee.focus()},blur:()=>{var ee;for(let re=0;rel?l(ee):ee,[k,F]=d.useState(GC(j(i||"")));d.useEffect(()=>{a!==void 0&&F(GC(a))},[a]);const V=An(ee=>{F(ee),g&&g(ee),s&&ee.length===r&&ee.every(re=>re)&&ee.some((re,ie)=>k[ie]!==re)&&s(ee.join(""))}),W=An((ee,re)=>{let ie=Ze(k);for(let X=0;X=0&&!ie[X];X-=1)ie.pop();const G=j(ie.map(X=>X||" ").join(""));return ie=GC(G).map((X,ne)=>X===" "&&!ie[ne]?ie[ne]:X),ie}),K=(ee,re)=>{var ie;const G=W(ee,re),X=Math.min(ee+re.length,r-1);X!==ee&&G[ee]!==void 0&&((ie=A.current[X])===null||ie===void 0||ie.focus()),V(G)},L=ee=>{var re;(re=A.current[ee])===null||re===void 0||re.focus()},Q={variant:c,disabled:u,status:M,mask:p,type:m,inputMode:v};return x(d.createElement("div",Object.assign({},E,{ref:D,className:xe(w,{[`${w}-sm`]:O==="small",[`${w}-lg`]:O==="large",[`${w}-rtl`]:S==="rtl"},P,_)}),d.createElement(Io.Provider,{value:T},Array.from({length:r}).map((ee,re)=>{const ie=`otp-${re}`,G=k[re]||"";return d.createElement(FFe,Object.assign({ref:X=>{A.current[re]=X},key:ie,index:re,size:O,htmlSize:1,className:`${w}-input`,onChange:K,value:G,onActiveChange:L,autoFocus:re===0&&h},Q))}))))});var zFe={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"},HFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:zFe}))},Dae=d.forwardRef(HFe),UFe={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"},WFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:UFe}))},uP=d.forwardRef(WFe),VFe=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 o=0,r=Object.getOwnPropertySymbols(e);oe?d.createElement(uP,null):d.createElement(Dae,null),qFe={click:"onClick",hover:"onMouseOver"},GFe=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=KFe}=e,a=d.useContext(zo),s=n??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=d.useState(()=>l?o.visible:!1),f=d.useRef(null);d.useEffect(()=>{l&&u(o.visible)},[l,o]);const h=Aae(f),p=()=>{var O;if(s)return;c&&h();const I=!c;u(I),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,I))},m=O=>{const I=qFe[r]||"",M=i(c),T={[I]:p,className:`${O}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return d.cloneElement(d.isValidElement(M)?M:d.createElement("span",null,M),T)},{className:g,prefixCls:v,inputPrefixCls:b,size:y}=e,S=VFe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=d.useContext(Yt),E=w("input",b),C=w("input-password",v),x=o&&m(C),_=xe(C,g,{[`${C}-${y}`]:!!y}),P=Object.assign(Object.assign({},Yn(S,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:_,prefixCls:E,suffix:x});return y&&(P.size=y),d.createElement(cP,Object.assign({ref:Si(t,f)},P))});var YFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:h,onCompositionStart:p,onCompositionEnd:m}=e,g=YFe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=d.useContext(Yt),y=d.useRef(!1),S=v("input-search",n),w=v("input",r),{compactSize:E}=gc(S,b),C=Eo(K=>{var L;return(L=i??E)!==null&&L!==void 0?L:K}),x=d.useRef(null),_=K=>{K!=null&&K.target&&K.type==="click"&&f&&f(K.target.value,K,{source:"clear"}),h==null||h(K)},P=K=>{var L;document.activeElement===((L=x.current)===null||L===void 0?void 0:L.input)&&K.preventDefault()},O=K=>{var L,Q;f&&f((Q=(L=x.current)===null||L===void 0?void 0:L.input)===null||Q===void 0?void 0:Q.value,K,{source:"input"})},I=K=>{y.current||c||O(K)},M=typeof s=="boolean"?d.createElement(H$,null):null,T=`${S}-button`;let D;const A=s||{},j=A.type&&A.type.__ANT_BUTTON===!0;j||A.type==="button"?D=Zo(A,Object.assign({onMouseDown:P,onClick:K=>{var L,Q;(Q=(L=A==null?void 0:A.props)===null||L===void 0?void 0:L.onClick)===null||Q===void 0||Q.call(L,K),O(K)},key:"enterButton"},j?{className:T,size:C}:{})):D=d.createElement(Hn,{className:T,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:P,onClick:O,loading:c,icon:M},s),l&&(D=[D,Zo(l,{key:"addonAfter"})]);const k=xe(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${C}`]:!!C,[`${S}-with-button`]:!!s},o),F=Object.assign(Object.assign({},g),{className:k,prefixCls:w,type:"search"}),V=K=>{y.current=!0,p==null||p(K)},W=K=>{y.current=!1,m==null||m(K)};return d.createElement(cP,Object.assign({ref:Si(x,t),onPressEnter:I},F,{size:C,onCompositionStart:V,onCompositionEnd:W,addonAfter:D,suffix:a,onChange:_,disabled:u}))});var QFe=` + `]:{color:C}})}]},$Fe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${_e(n)} 0`}},tS(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${_e(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${_e(f)} 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:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,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()}})}},PFe=Kn("InputNumber",e=>{const t=kn(e,Z1(e));return[_Fe(t),$Fe(t),Bp(t)]},EFe,{unitless:{handleOpacity:!0}});var OFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=d.useContext(Yt),o=d.useRef(null);d.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:h,suffix:p,bordered:m,readOnly:g,status:v,controls:b,variant:y}=e,S=OFe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),E=Mr(w),[C,x,_]=PFe(w,E),{compactSize:P,compactItemClassnames:O}=gc(w,r);let I=d.createElement(iFe,{className:`${w}-handler-up-inner`}),M=d.createElement(z$,{className:`${w}-handler-down-inner`});const T=typeof b=="boolean"?b:void 0;typeof b=="object"&&(I=typeof b.upIcon>"u"?I:d.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),M=typeof b.downIcon>"u"?M:d.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:A,isFormItemInput:j,feedbackIcon:k}=d.useContext(Io),F=md(A,v),V=Eo(X=>{var ne;return(ne=s??P)!==null&&ne!==void 0?ne:X}),W=d.useContext(zo),K=l??W,[L,Q]=gd("inputNumber",y,m),ee=D&&d.createElement(d.Fragment,null,k),re=xe({[`${w}-lg`]:V==="large",[`${w}-sm`]:V==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:j},x),ie=`${w}-group`,G=d.createElement(xFe,Object.assign({ref:o,disabled:K,className:xe(_,E,i,a,O),upHandler:I,downHandler:M,prefixCls:w,readOnly:g,controls:T,prefix:h,suffix:ee||p,addonBefore:u&&d.createElement(ic,{form:!0,space:!0},u),addonAfter:f&&d.createElement(ic,{form:!0,space:!0},f),classNames:{input:re,variant:xe({[`${w}-${L}`]:Q},ac(w,F,D)),affixWrapper:xe({[`${w}-affix-wrapper-sm`]:V==="small",[`${w}-affix-wrapper-lg`]:V==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:b===!1},x),wrapper:xe({[`${ie}-rtl`]:r==="rtl"},x),groupWrapper:xe({[`${w}-group-wrapper-sm`]:V==="small",[`${w}-group-wrapper-lg`]:V==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${L}`]:Q},ac(`${w}-group-wrapper`,F,D),x)}},S));return C(G)}),lc=Iae,MFe=e=>d.createElement(Mn,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(Iae,Object.assign({},e)));lc._InternalPanelDoNotUseOrYouWillBeFired=MFe;const Xh=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=d.useState(o);return d.useEffect(()=>{Number.isNaN(o)||u(o)},[o]),de.createElement(lc,{className:xe(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:f=>{o||u(f||0),i==null||i(f)}})},TFe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=oa(c);n||a(u),r==null||r(u)};return de.createElement(Xh,{value:TA(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},RFe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=SD(a),c=xe(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=d.useContext(Io),f=d.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(Io.Provider,{value:f},e.children)))},kae=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:de.createElement(ru,null)}),t};function Nae(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.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 d.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function IFe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var kFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:h,addonBefore:p,className:m,style:g,styles:v,rootClassName:b,onChange:y,classNames:S,variant:w}=e,E=kFe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:x,input:_}=de.useContext(Yt),P=C("input",r),O=d.useRef(null),I=Mr(P),[M,T,D]=SD(P,I),{compactSize:A,compactItemClassnames:j}=gc(P,x),k=Eo(se=>{var fe;return(fe=a??A)!==null&&fe!==void 0?fe:se}),F=de.useContext(zo),V=s??F,{status:W,hasFeedback:K,feedbackIcon:L}=d.useContext(Io),Q=md(W,i),ee=IFe(e)||!!K;d.useRef(ee);const re=Nae(O,!0),ie=se=>{re(),l==null||l(se)},G=se=>{re(),c==null||c(se)},X=se=>{re(),y==null||y(se)},ne=(K||u)&&de.createElement(de.Fragment,null,u,K&&L),le=kae(f??(_==null?void 0:_.allowClear)),[ce,oe]=gd("input",w,o);return M(de.createElement(fFe,Object.assign({ref:bi(t,O),prefixCls:P,autoComplete:_==null?void 0:_.autoComplete},E,{disabled:V,onBlur:ie,onFocus:G,style:Object.assign(Object.assign({},_==null?void 0:_.style),g),styles:Object.assign(Object.assign({},_==null?void 0:_.styles),v),suffix:ne,allowClear:le,className:xe(m,b,D,I,j,_==null?void 0:_.className),onChange:X,addonBefore:p&&de.createElement(ic,{form:!0,space:!0},p),addonAfter:h&&de.createElement(ic,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},S),_==null?void 0:_.classNames),{input:xe({[`${P}-sm`]:k==="small",[`${P}-lg`]:k==="large",[`${P}-rtl`]:x==="rtl"},S==null?void 0:S.input,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.input,T),variant:xe({[`${P}-${ce}`]:oe},ac(P,Q)),affixWrapper:xe({[`${P}-affix-wrapper-sm`]:k==="small",[`${P}-affix-wrapper-lg`]:k==="large",[`${P}-affix-wrapper-rtl`]:x==="rtl"},T),wrapper:xe({[`${P}-group-rtl`]:x==="rtl"},T),groupWrapper:xe({[`${P}-group-wrapper-sm`]:k==="small",[`${P}-group-wrapper-lg`]:k==="large",[`${P}-group-wrapper-rtl`]:x==="rtl",[`${P}-group-wrapper-${ce}`]:oe},ac(`${P}-group-wrapper`,Q,K),T)})})))}),NFe=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}}}},AFe=Kn(["Input","OTP"],e=>{const t=kn(e,Z1(e));return[NFe(t)]},eS);var DFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,s=DFe(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=m=>{r(i,m.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{zn(()=>{var m;const g=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},h=m=>{const{key:g,ctrlKey:v,metaKey:b}=m;g==="ArrowLeft"?o(i-1):g==="ArrowRight"?o(i+1):g==="z"&&(v||b)&&m.preventDefault(),f()},p=m=>{m.key==="Backspace"&&!n&&o(i-1),f()};return d.createElement(cP,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:h,onKeyUp:p,onMouseDown:f,onMouseUp:f}))});var FFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:h,mask:p,type:m,onInput:g,inputMode:v}=e,b=FFe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:S}=d.useContext(Yt),w=y("otp",n),E=Jr(b,{aria:!0,data:!0,attr:!0}),C=Mr(w),[x,_,P]=AFe(w,C),O=Eo(ee=>o??ee),I=d.useContext(Io),M=md(I.status,f),T=d.useMemo(()=>Object.assign(Object.assign({},I),{status:M,hasFeedback:!1,feedbackIcon:null}),[I,M]),D=d.useRef(null),A=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var ee;(ee=A.current[0])===null||ee===void 0||ee.focus()},blur:()=>{var ee;for(let re=0;rel?l(ee):ee,[k,F]=d.useState(YC(j(i||"")));d.useEffect(()=>{a!==void 0&&F(YC(a))},[a]);const V=An(ee=>{F(ee),g&&g(ee),s&&ee.length===r&&ee.every(re=>re)&&ee.some((re,ie)=>k[ie]!==re)&&s(ee.join(""))}),W=An((ee,re)=>{let ie=Ze(k);for(let X=0;X=0&&!ie[X];X-=1)ie.pop();const G=j(ie.map(X=>X||" ").join(""));return ie=YC(G).map((X,ne)=>X===" "&&!ie[ne]?ie[ne]:X),ie}),K=(ee,re)=>{var ie;const G=W(ee,re),X=Math.min(ee+re.length,r-1);X!==ee&&G[ee]!==void 0&&((ie=A.current[X])===null||ie===void 0||ie.focus()),V(G)},L=ee=>{var re;(re=A.current[ee])===null||re===void 0||re.focus()},Q={variant:c,disabled:u,status:M,mask:p,type:m,inputMode:v};return x(d.createElement("div",Object.assign({},E,{ref:D,className:xe(w,{[`${w}-sm`]:O==="small",[`${w}-lg`]:O==="large",[`${w}-rtl`]:S==="rtl"},P,_)}),d.createElement(Io.Provider,{value:T},Array.from({length:r}).map((ee,re)=>{const ie=`otp-${re}`,G=k[re]||"";return d.createElement(jFe,Object.assign({ref:X=>{A.current[re]=X},key:ie,index:re,size:O,htmlSize:1,className:`${w}-input`,onChange:K,value:G,onActiveChange:L,autoFocus:re===0&&h},Q))}))))});var BFe={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"},zFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:BFe}))},Aae=d.forwardRef(zFe),HFe={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"},UFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:HFe}))},uP=d.forwardRef(UFe),WFe=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 o=0,r=Object.getOwnPropertySymbols(e);oe?d.createElement(uP,null):d.createElement(Aae,null),KFe={click:"onClick",hover:"onMouseOver"},qFe=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=VFe}=e,a=d.useContext(zo),s=n??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=d.useState(()=>l?o.visible:!1),f=d.useRef(null);d.useEffect(()=>{l&&u(o.visible)},[l,o]);const h=Nae(f),p=()=>{var O;if(s)return;c&&h();const I=!c;u(I),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,I))},m=O=>{const I=KFe[r]||"",M=i(c),T={[I]:p,className:`${O}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return d.cloneElement(d.isValidElement(M)?M:d.createElement("span",null,M),T)},{className:g,prefixCls:v,inputPrefixCls:b,size:y}=e,S=WFe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=d.useContext(Yt),E=w("input",b),C=w("input-password",v),x=o&&m(C),_=xe(C,g,{[`${C}-${y}`]:!!y}),P=Object.assign(Object.assign({},Yn(S,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:_,prefixCls:E,suffix:x});return y&&(P.size=y),d.createElement(cP,Object.assign({ref:bi(t,f)},P))});var GFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:h,onCompositionStart:p,onCompositionEnd:m}=e,g=GFe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=d.useContext(Yt),y=d.useRef(!1),S=v("input-search",n),w=v("input",r),{compactSize:E}=gc(S,b),C=Eo(K=>{var L;return(L=i??E)!==null&&L!==void 0?L:K}),x=d.useRef(null),_=K=>{K!=null&&K.target&&K.type==="click"&&f&&f(K.target.value,K,{source:"clear"}),h==null||h(K)},P=K=>{var L;document.activeElement===((L=x.current)===null||L===void 0?void 0:L.input)&&K.preventDefault()},O=K=>{var L,Q;f&&f((Q=(L=x.current)===null||L===void 0?void 0:L.input)===null||Q===void 0?void 0:Q.value,K,{source:"input"})},I=K=>{y.current||c||O(K)},M=typeof s=="boolean"?d.createElement(H$,null):null,T=`${S}-button`;let D;const A=s||{},j=A.type&&A.type.__ANT_BUTTON===!0;j||A.type==="button"?D=Zo(A,Object.assign({onMouseDown:P,onClick:K=>{var L,Q;(Q=(L=A==null?void 0:A.props)===null||L===void 0?void 0:L.onClick)===null||Q===void 0||Q.call(L,K),O(K)},key:"enterButton"},j?{className:T,size:C}:{})):D=d.createElement(Hn,{className:T,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:P,onClick:O,loading:c,icon:M},s),l&&(D=[D,Zo(l,{key:"addonAfter"})]);const k=xe(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${C}`]:!!C,[`${S}-with-button`]:!!s},o),F=Object.assign(Object.assign({},g),{className:k,prefixCls:w,type:"search"}),V=K=>{y.current=!0,p==null||p(K)},W=K=>{y.current=!1,m==null||m(K)};return d.createElement(cP,Object.assign({ref:bi(x,t),onPressEnter:I},F,{size:C,onCompositionStart:V,onCompositionEnd:W,addonAfter:D,suffix:a,onChange:_,disabled:u}))});var XFe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -399,7 +399,7 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,JFe=["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"],rR={},is;function ZFe(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&&rR[n])return rR[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=JFe.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(rR[n]=l),l}function eLe(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;is||(is=document.createElement("textarea"),is.setAttribute("tab-index","-1"),is.setAttribute("aria-hidden","true"),is.setAttribute("name","hiddenTextarea"),document.body.appendChild(is)),e.getAttribute("wrap")?is.setAttribute("wrap",e.getAttribute("wrap")):is.removeAttribute("wrap");var o=ZFe(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;is.setAttribute("style","".concat(l,";").concat(QFe)),is.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,h=is.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=i),n!==null||r!==null){is.value=" ";var p=is.scrollHeight-i;n!==null&&(c=p*n,s==="border-box"&&(c=c+i+a),h=Math.max(c,h)),r!==null&&(u=p*r,s==="border-box"&&(u=u+i+a),f=h>u?"":"hidden",h=Math.min(u,h))}var m={height:h,overflowY:f,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var tLe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],oR=0,iR=1,aR=2,nLe=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var h=At(n,tLe),p=xn(o,{value:i,postState:function(ee){return ee??""}}),m=$e(p,2),g=m[0],v=m[1],b=function(ee){v(ee.target.value),f==null||f(ee)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var S=d.useMemo(function(){return a&&Ht(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=$e(S,2),E=w[0],C=w[1],x=!!a,_=function(){try{if(document.activeElement===y.current){var ee=y.current,re=ee.selectionStart,ie=ee.selectionEnd,G=ee.scrollTop;y.current.setSelectionRange(re,ie),y.current.scrollTop=G}}catch{}},P=d.useState(aR),O=$e(P,2),I=O[0],M=O[1],T=d.useState(),D=$e(T,2),A=D[0],j=D[1],k=function(){M(oR)};Zn(function(){x&&k()},[i,E,C,x]),Zn(function(){if(I===oR)M(iR);else if(I===iR){var Q=eLe(y.current,!1,E,C);M(aR),j(Q)}else _()},[I]);var F=d.useRef(),V=function(){zn.cancel(F.current)},W=function(ee){I===aR&&(s==null||s(ee),a&&(V(),F.current=zn(function(){k()})))};d.useEffect(function(){return V},[]);var K=x?A:null,L=z(z({},c),K);return(I===oR||I===iR)&&(L.overflowY="hidden",L.overflowX="hidden"),d.createElement(Oi,{onResize:W,disabled:!(a||s)},d.createElement("textarea",Ge({},h,{ref:y,style:L,className:xe(r,l,Z({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),rLe=["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"],oLe=de.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,h=e.suffix,p=e.prefixCls,m=p===void 0?"rc-textarea":p,g=e.showCount,v=e.count,b=e.className,y=e.style,S=e.disabled,w=e.hidden,E=e.classNames,C=e.styles,x=e.onResize,_=e.onClear,P=e.onPressEnter,O=e.readOnly,I=e.autoSize,M=e.onKeyDown,T=At(e,rLe),D=xn(r,{value:o,defaultValue:r}),A=$e(D,2),j=A[0],k=A[1],F=j==null?"":String(j),V=de.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=de.useRef(!1),ee=de.useState(null),re=$e(ee,2),ie=re[0],G=re[1],X=d.useRef(null),ne=d.useRef(null),le=function(){var ge;return(ge=ne.current)===null||ge===void 0?void 0:ge.textArea},ce=function(){le().focus()};d.useImperativeHandle(t,function(){var He;return{resizableTextArea:ne.current,focus:ce,blur:function(){le().blur()},nativeElement:((He=X.current)===null||He===void 0?void 0:He.nativeElement)||le()}}),d.useEffect(function(){L(function(He){return!S&&He})},[S]);var oe=de.useState(null),se=$e(oe,2),fe=se[0],te=se[1];de.useEffect(function(){if(fe){var He;(He=le()).setSelectionRange.apply(He,Ze(fe))}},[fe]);var he=Iae(v,g),pe=(n=he.max)!==null&&n!==void 0?n:c,Oe=Number(pe)>0,Me=he.strategy(F),Se=!!pe&&Me>pe,ye=function(ge,De){var qe=De;!Q.current&&he.exceedFormatter&&he.max&&he.strategy(De)>he.max&&(qe=he.exceedFormatter(De,{max:he.max}),De!==qe&&te([le().selectionStart||0,le().selectionEnd||0])),k(qe),tE(ge.currentTarget,ge,s,qe)},ve=function(ge){Q.current=!0,u==null||u(ge)},be=function(ge){Q.current=!1,ye(ge,ge.currentTarget.value),f==null||f(ge)},Pe=function(ge){ye(ge,ge.target.value)},Ne=function(ge){ge.key==="Enter"&&P&&P(ge),M==null||M(ge)},U=function(ge){L(!0),i==null||i(ge)},H=function(ge){L(!1),a==null||a(ge)},q=function(ge){k(""),ce(),tE(le(),ge,s)},me=h,Ce;he.show&&(he.showFormatter?Ce=he.showFormatter({value:F,count:Me,maxLength:pe}):Ce="".concat(Me).concat(Oe?" / ".concat(pe):""),me=de.createElement(de.Fragment,null,me,de.createElement("span",{className:xe("".concat(m,"-data-count"),E==null?void 0:E.count),style:C==null?void 0:C.count},Ce)));var ue=function(ge){var De;x==null||x(ge),(De=le())!==null&&De!==void 0&&De.style.height&&G(!0)},Le=!I&&!g&&!l;return de.createElement(OD,{ref:X,value:F,allowClear:l,handleReset:q,suffix:me,prefixCls:m,classNames:z(z({},E),{},{affixWrapper:xe(E==null?void 0:E.affixWrapper,Z(Z({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:S,focused:K,className:xe(b,Se&&"".concat(m,"-out-of-range")),style:z(z({},y),ie&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:w,readOnly:O,onClear:_},de.createElement(nLe,Ge({},T,{autoSize:I,maxLength:c,onKeyDown:Ne,onChange:Pe,onFocus:U,onBlur:H,onCompositionStart:ve,onCompositionEnd:be,className:xe(E==null?void 0:E.textarea),style:z(z({},C==null?void 0:C.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:m,onResize:ue,ref:ne,readOnly:O})))}),iLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:h,style:p,styles:m,variant:g}=e,v=iLe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:b,direction:y,textArea:S}=d.useContext(Yt),w=Eo(a),E=d.useContext(zo),C=s??E,{status:x,hasFeedback:_,feedbackIcon:P}=d.useContext(Io),O=md(x,l),I=d.useRef(null);d.useImperativeHandle(t,()=>{var W;return{resizableTextArea:(W=I.current)===null||W===void 0?void 0:W.resizableTextArea,focus:K=>{var L,Q;PD((Q=(L=I.current)===null||L===void 0?void 0:L.resizableTextArea)===null||Q===void 0?void 0:Q.textArea,K)},blur:()=>{var K;return(K=I.current)===null||K===void 0?void 0:K.blur()}}});const M=b("input",o),T=Mr(M),[D,A,j]=wD(M,T),[k,F]=gd("textArea",g,i),V=Nae(c??(S==null?void 0:S.allowClear));return D(d.createElement(oLe,Object.assign({autoComplete:S==null?void 0:S.autoComplete},v,{style:Object.assign(Object.assign({},S==null?void 0:S.style),p),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),m),disabled:C,allowClear:V,className:xe(j,T,h,f,S==null?void 0:S.className),classNames:Object.assign(Object.assign(Object.assign({},u),S==null?void 0:S.classNames),{textarea:xe({[`${M}-sm`]:w==="small",[`${M}-lg`]:w==="large"},A,u==null?void 0:u.textarea,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.textarea),variant:xe({[`${M}-${k}`]:F},ac(M,O)),affixWrapper:xe(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:y==="rtl",[`${M}-affix-wrapper-sm`]:w==="small",[`${M}-affix-wrapper-lg`]:w==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},A)}),prefixCls:M,suffix:_&&d.createElement("span",{className:`${M}-textarea-suffix`},P),ref:I})))}),qr=cP;qr.Group=IFe;qr.Search=XFe;qr.TextArea=aLe;qr.Password=GFe;qr.OTP=BFe;const sLe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,lLe=e=>sLe.test(`#${e}`),cLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=d.useState(()=>n?uy(n.toHexString()):void 0);d.useEffect(()=>{n&&a(uy(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;a(uy(c)),lLe(uy(c,!0))&&(r==null||r(oa(c)))};return de.createElement(qr,{className:o,value:i,prefix:"#",onChange:s,size:"small"})},uLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const f=oa(u);n||a(f),r==null||r(f)};return de.createElement("div",{className:o},de.createElement(Xh,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>tx(l||0).toString(),onChange:l=>s(Number(l),"h")}),de.createElement(Xh,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${tx(l||0)}%`,onChange:l=>s(Number(l),"s")}),de.createElement(Xh,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${tx(l||0)}%`,onChange:l=>s(Number(l),"b")}))},dLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const f=oa(u);n||a(f),r==null||r(f)};return de.createElement("div",{className:o},de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},fLe=[yf.hex,yf.hsb,yf.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),hLe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a,disabledFormat:s}=e,[l,c]=xn(yf.hex,{value:n,onChange:i}),u=`${t}-input`,f=p=>{c(p)},h=d.useMemo(()=>{const p={value:r,prefixCls:t,onChange:a};switch(l){case yf.hsb:return de.createElement(uLe,Object.assign({},p));case yf.rgb:return de.createElement(dLe,Object.assign({},p));default:return de.createElement(cLe,Object.assign({},p))}},[l,t,r,a]);return de.createElement("div",{className:`${u}-container`},!s&&de.createElement(Va,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:fLe}),de.createElement("div",{className:u},h),!o&&de.createElement(RFe,{prefixCls:t,value:r,onChange:a}))};function y6(e,t,n){return(e-t)/(n-t)}function MD(e,t,n,r){var o=y6(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function gh(e,t){return Array.isArray(e)?e[t]:e}var Up=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),jae=d.createContext({}),pLe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],cU=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,h=e.onChangeComplete,p=e.onFocus,m=e.onMouseEnter,g=At(e,pLe),v=d.useContext(Up),b=v.min,y=v.max,S=v.direction,w=v.disabled,E=v.keyboard,C=v.range,x=v.tabIndex,_=v.ariaLabelForHandle,P=v.ariaLabelledByForHandle,O=v.ariaRequired,I=v.ariaValueTextFormatterForHandle,M=v.styles,T=v.classNames,D="".concat(n,"-handle"),A=function(re){w||i(re,o)},j=function(re){p==null||p(re,o)},k=function(re){m(re,o)},F=function(re){if(!w&&E){var ie=null;switch(re.which||re.keyCode){case ut.LEFT:ie=S==="ltr"||S==="btt"?-1:1;break;case ut.RIGHT:ie=S==="ltr"||S==="btt"?1:-1;break;case ut.UP:ie=S!=="ttb"?1:-1;break;case ut.DOWN:ie=S!=="ttb"?-1:1;break;case ut.HOME:ie="min";break;case ut.END:ie="max";break;case ut.PAGE_UP:ie=2;break;case ut.PAGE_DOWN:ie=-2;break;case ut.BACKSPACE:case ut.DELETE:a(o);break}ie!==null&&(re.preventDefault(),f(ie,o))}},V=function(re){switch(re.which||re.keyCode){case ut.LEFT:case ut.RIGHT:case ut.UP:case ut.DOWN:case ut.HOME:case ut.END:case ut.PAGE_UP:case ut.PAGE_DOWN:h==null||h();break}},W=MD(S,r,b,y),K={};if(o!==null){var L;K={tabIndex:w?null:gh(x,o),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":w,"aria-label":gh(_,o),"aria-labelledby":gh(P,o),"aria-required":gh(O,o),"aria-valuetext":(L=gh(I,o))===null||L===void 0?void 0:L(r),"aria-orientation":S==="ltr"||S==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:j,onMouseEnter:k,onKeyDown:F,onKeyUp:V}}var Q=d.createElement("div",Ge({ref:t,className:xe(D,Z(Z(Z({},"".concat(D,"-").concat(o+1),o!==null&&C),"".concat(D,"-dragging"),c),"".concat(D,"-dragging-delete"),u),T.handle),style:z(z(z({},W),s),M.handle)},K,g));return l&&(Q=l(Q,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:u})),Q}),mLe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],gLe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,h=At(e,mLe),p=d.useRef({}),m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=d.useState(-1),S=$e(y,2),w=S[0],E=S[1],C=function(I){E(I),b(!0)},x=function(I,M){C(M),f==null||f(I)},_=function(I,M){C(M)};d.useImperativeHandle(t,function(){return{focus:function(I){var M;(M=p.current[I])===null||M===void 0||M.focus()},hideHelp:function(){hi.flushSync(function(){b(!1)})}}});var P=z({prefixCls:n,onStartMove:o,onOffsetChange:i,render:s,onFocus:x,onMouseEnter:_},h);return d.createElement(d.Fragment,null,a.map(function(O,I){var M=c===I;return d.createElement(cU,Ge({ref:function(D){D?p.current[I]=D:delete p.current[I]},dragging:M,draggingDelete:M&&u,style:gh(r,I),key:I,value:O,valueIndex:I},P))}),l&&v&&d.createElement(cU,Ge({key:"a11y"},P,{value:a[w],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),vLe=function(t){var n=t.prefixCls,r=t.style,o=t.children,i=t.value,a=t.onClick,s=d.useContext(Up),l=s.min,c=s.max,u=s.direction,f=s.includedStart,h=s.includedEnd,p=s.included,m="".concat(n,"-text"),g=MD(u,i,l,c);return d.createElement("span",{className:xe(m,Z({},"".concat(m,"-active"),p&&f<=i&&i<=h)),style:z(z({},g),r),onMouseDown:function(b){b.stopPropagation()},onClick:function(){a(i)}},o)},yLe=function(t){var n=t.prefixCls,r=t.marks,o=t.onClick,i="".concat(n,"-mark");return r.length?d.createElement("div",{className:i},r.map(function(a){var s=a.value,l=a.style,c=a.label;return d.createElement(vLe,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},bLe=function(t){var n=t.prefixCls,r=t.value,o=t.style,i=t.activeStyle,a=d.useContext(Up),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,h=a.includedEnd,p="".concat(n,"-dot"),m=u&&f<=r&&r<=h,g=z(z({},MD(c,r,s,l)),typeof o=="function"?o(r):o);return m&&(g=z(z({},g),typeof i=="function"?i(r):i)),d.createElement("span",{className:xe(p,Z({},"".concat(p,"-active"),m)),style:g})},SLe=function(t){var n=t.prefixCls,r=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=d.useContext(Up),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var h=new Set;if(r.forEach(function(m){h.add(m.value)}),o&&u!==null)for(var p=l;p<=c;)h.add(p),p+=u;return Array.from(h)},[l,c,u,o,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(h){return d.createElement(bLe,{prefixCls:n,key:h,value:h,style:i,activeStyle:a})}))},uU=function(t){var n=t.prefixCls,r=t.style,o=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(Up),u=c.direction,f=c.min,h=c.max,p=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),b=y6(o,f,h),y=y6(i,f,h),S=function(x){!p&&s&&s(x,-1)},w={};switch(u){case"rtl":w.right="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");break;case"btt":w.bottom="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;case"ttb":w.top="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;default:w.left="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%")}var E=l||xe(v,Z(Z({},"".concat(v,"-").concat(a+1),a!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return d.createElement("div",{className:E,style:z(z({},w),r),onMouseDown:S,onTouchStart:S})},CLe=function(t){var n=t.prefixCls,r=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=d.useContext(Up),l=s.included,c=s.range,u=s.min,f=s.styles,h=s.classNames,p=d.useMemo(function(){if(!c){if(o.length===0)return[];var g=i??u,v=o[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var b=[],y=0;ywLe&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,S=m[v],w=S+g,E=[];r.forEach(function(O){E.push(O.value)}),E.push(e,t),E.push(s(S));var C=g>0?1:-1;b==="unit"?E.push(s(S+C*n)):E.push(s(w)),E=E.filter(function(O){return O!==null}).filter(function(O){return g<0?O<=S:O>=S}),b==="unit"&&(E=E.filter(function(O){return O!==S}));var x=b==="unit"?S:w;y=E[0];var _=Math.abs(y-x);if(E.forEach(function(O){var I=Math.abs(O-x);I<_&&(y=O,_=I)}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var P=Ze(m);return P[v]=y,p(P,g-C,v,b)}return y}else{if(g==="min")return e;if(g==="max")return t}},u=function(m,g,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=m[v],S=c(m,g,v,b);return{value:S,changed:S!==y}},f=function(m){return i===null&&m===0||typeof i=="number"&&m3&&arguments[3]!==void 0?arguments[3]:"unit",y=m.map(l),S=y[v],w=c(y,g,v,b);if(y[v]=w,o===!1){var E=i||0;v>0&&y[v-1]!==S&&(y[v]=Math.max(y[v],y[v-1]+E)),v0;P-=1)for(var O=!0;f(y[P]-y[P-1])&&O;){var I=u(y,-1,P-1);y[P-1]=I.value,O=I.changed}for(var M=y.length-1;M>0;M-=1)for(var T=!0;f(y[M]-y[M-1])&&T;){var D=u(y,-1,M-1);y[M-1]=D.value,T=D.changed}for(var A=0;A=0?k:!1},[k,ue]),He=d.useMemo(function(){return Object.keys(X||{}).map(function(kt){var tt=X[kt],Mt={value:Number(kt)};return tt&&Ht(tt)==="object"&&!d.isValidElement(tt)&&("label"in tt||"style"in tt)?(Mt.style=tt.style,Mt.label=tt.label):Mt.label=tt,Mt}).filter(function(kt){var tt=kt.label;return tt||typeof tt=="number"}).sort(function(kt,tt){return kt.value-tt.value})},[X]),ge=ELe(me,Ce,ue,He,A,Le),De=$e(ge,2),qe=De[0],je=De[1],Ke=xn(x,{value:C}),Ue=$e(Ke,2),Ve=Ue[0],St=Ue[1],et=d.useMemo(function(){var kt=Ve==null?[]:Array.isArray(Ve)?Ve:[Ve],tt=$e(kt,1),Mt=tt[0],Ot=Mt===void 0?me:Mt,pn=Ve===null?[]:[Ot];if(Pe){if(pn=Ze(kt),P||Ve===void 0){var Pn=P>=0?P+1:2;for(pn=pn.slice(0,Pn);pn.length=0&&Me.current.focus(kt)}ft(null)},[vt]);var bt=d.useMemo(function(){return U&&ue===null?!1:U},[U,ue]),Wt=An(function(kt,tt){Xe(kt,tt),I==null||I(st(et))}),at=Tt!==-1;d.useEffect(function(){if(!at){var kt=et.lastIndexOf(Be);Me.current.focus(kt)}},[at]);var Pt=d.useMemo(function(){return Ze(Fe).sort(function(kt,tt){return kt-tt})},[Fe]),Bt=d.useMemo(function(){return Pe?[Pt[0],Pt[Pt.length-1]]:[me,Pt[0]]},[Pt,Pe,me]),xt=$e(Bt,2),yt=xt[0],Ft=xt[1];d.useImperativeHandle(t,function(){return{focus:function(){Me.current.focus(0)},blur:function(){var tt,Mt=document,Ot=Mt.activeElement;(tt=Se.current)!==null&&tt!==void 0&&tt.contains(Ot)&&(Ot==null||Ot.blur())}}}),d.useEffect(function(){p&&Me.current.focus(0)},[]);var Re=d.useMemo(function(){return{min:me,max:Ce,direction:ye,disabled:u,keyboard:h,step:ue,included:K,includedStart:yt,includedEnd:Ft,range:Pe,tabIndex:fe,ariaLabelForHandle:te,ariaLabelledByForHandle:he,ariaRequired:pe,ariaValueTextFormatterForHandle:Oe,styles:s||{},classNames:a||{}}},[me,Ce,ye,u,h,ue,K,yt,Ft,Pe,fe,te,he,pe,Oe,s,a]);return d.createElement(Up.Provider,{value:Re},d.createElement("div",{ref:Se,className:xe(r,o,Z(Z(Z(Z({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),V),"".concat(r,"-horizontal"),!V),"".concat(r,"-with-marks"),He.length)),style:i,onMouseDown:pt,id:l},d.createElement("div",{className:xe("".concat(r,"-rail"),a==null?void 0:a.rail),style:z(z({},re),s==null?void 0:s.rail)}),oe!==!1&&d.createElement(CLe,{prefixCls:r,style:Q,values:et,startPoint:L,onStartMove:bt?Wt:void 0}),d.createElement(SLe,{prefixCls:r,marks:He,dots:ne,style:ie,activeStyle:G}),d.createElement(gLe,{ref:Me,prefixCls:r,style:ee,values:Fe,draggingIndex:Tt,draggingDelete:We,onStartMove:Wt,onOffsetChange:It,onFocus:m,onBlur:g,handleRender:le,activeHandleRender:ce,onChangeComplete:dt,onDelete:Ne?Lt:void 0}),d.createElement(yLe,{prefixCls:r,marks:He,onClick:gt})))});const Fae=d.createContext({}),fU=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,o=d.useRef(null),i=n&&!r,a=d.useRef(null);function s(){zn.cancel(a.current),a.current=null}function l(){a.current=zn(()=>{var c;(c=o.current)===null||c===void 0||c.forceAlign(),a.current=null})}return d.useEffect(()=>(i?l():s(),s),[i,e.title]),d.createElement(xa,Object.assign({ref:Si(o,t)},e,{open:i}))}),PLe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:h,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",height:r,margin:`${_e(a)} ${_e(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${_e(i)} ${_e(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${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 ${_e(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 ${_e(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` +`,QFe=["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"],rR={},is;function JFe(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&&rR[n])return rR[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=QFe.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(rR[n]=l),l}function ZFe(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;is||(is=document.createElement("textarea"),is.setAttribute("tab-index","-1"),is.setAttribute("aria-hidden","true"),is.setAttribute("name","hiddenTextarea"),document.body.appendChild(is)),e.getAttribute("wrap")?is.setAttribute("wrap",e.getAttribute("wrap")):is.removeAttribute("wrap");var o=JFe(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;is.setAttribute("style","".concat(l,";").concat(XFe)),is.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,h=is.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=i),n!==null||r!==null){is.value=" ";var p=is.scrollHeight-i;n!==null&&(c=p*n,s==="border-box"&&(c=c+i+a),h=Math.max(c,h)),r!==null&&(u=p*r,s==="border-box"&&(u=u+i+a),f=h>u?"":"hidden",h=Math.min(u,h))}var m={height:h,overflowY:f,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var eLe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],oR=0,iR=1,aR=2,tLe=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var h=At(n,eLe),p=xn(o,{value:i,postState:function(ee){return ee??""}}),m=$e(p,2),g=m[0],v=m[1],b=function(ee){v(ee.target.value),f==null||f(ee)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var S=d.useMemo(function(){return a&&Ht(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=$e(S,2),E=w[0],C=w[1],x=!!a,_=function(){try{if(document.activeElement===y.current){var ee=y.current,re=ee.selectionStart,ie=ee.selectionEnd,G=ee.scrollTop;y.current.setSelectionRange(re,ie),y.current.scrollTop=G}}catch{}},P=d.useState(aR),O=$e(P,2),I=O[0],M=O[1],T=d.useState(),D=$e(T,2),A=D[0],j=D[1],k=function(){M(oR)};Zn(function(){x&&k()},[i,E,C,x]),Zn(function(){if(I===oR)M(iR);else if(I===iR){var Q=ZFe(y.current,!1,E,C);M(aR),j(Q)}else _()},[I]);var F=d.useRef(),V=function(){zn.cancel(F.current)},W=function(ee){I===aR&&(s==null||s(ee),a&&(V(),F.current=zn(function(){k()})))};d.useEffect(function(){return V},[]);var K=x?A:null,L=z(z({},c),K);return(I===oR||I===iR)&&(L.overflowY="hidden",L.overflowX="hidden"),d.createElement(Oi,{onResize:W,disabled:!(a||s)},d.createElement("textarea",Ge({},h,{ref:y,style:L,className:xe(r,l,Z({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),nLe=["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"],rLe=de.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,h=e.suffix,p=e.prefixCls,m=p===void 0?"rc-textarea":p,g=e.showCount,v=e.count,b=e.className,y=e.style,S=e.disabled,w=e.hidden,E=e.classNames,C=e.styles,x=e.onResize,_=e.onClear,P=e.onPressEnter,O=e.readOnly,I=e.autoSize,M=e.onKeyDown,T=At(e,nLe),D=xn(r,{value:o,defaultValue:r}),A=$e(D,2),j=A[0],k=A[1],F=j==null?"":String(j),V=de.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=de.useRef(!1),ee=de.useState(null),re=$e(ee,2),ie=re[0],G=re[1],X=d.useRef(null),ne=d.useRef(null),le=function(){var ge;return(ge=ne.current)===null||ge===void 0?void 0:ge.textArea},ce=function(){le().focus()};d.useImperativeHandle(t,function(){var He;return{resizableTextArea:ne.current,focus:ce,blur:function(){le().blur()},nativeElement:((He=X.current)===null||He===void 0?void 0:He.nativeElement)||le()}}),d.useEffect(function(){L(function(He){return!S&&He})},[S]);var oe=de.useState(null),se=$e(oe,2),fe=se[0],te=se[1];de.useEffect(function(){if(fe){var He;(He=le()).setSelectionRange.apply(He,Ze(fe))}},[fe]);var he=Rae(v,g),pe=(n=he.max)!==null&&n!==void 0?n:c,Oe=Number(pe)>0,Me=he.strategy(F),Se=!!pe&&Me>pe,ye=function(ge,De){var qe=De;!Q.current&&he.exceedFormatter&&he.max&&he.strategy(De)>he.max&&(qe=he.exceedFormatter(De,{max:he.max}),De!==qe&&te([le().selectionStart||0,le().selectionEnd||0])),k(qe),nE(ge.currentTarget,ge,s,qe)},ve=function(ge){Q.current=!0,u==null||u(ge)},be=function(ge){Q.current=!1,ye(ge,ge.currentTarget.value),f==null||f(ge)},Pe=function(ge){ye(ge,ge.target.value)},Ne=function(ge){ge.key==="Enter"&&P&&P(ge),M==null||M(ge)},U=function(ge){L(!0),i==null||i(ge)},H=function(ge){L(!1),a==null||a(ge)},q=function(ge){k(""),ce(),nE(le(),ge,s)},me=h,Ce;he.show&&(he.showFormatter?Ce=he.showFormatter({value:F,count:Me,maxLength:pe}):Ce="".concat(Me).concat(Oe?" / ".concat(pe):""),me=de.createElement(de.Fragment,null,me,de.createElement("span",{className:xe("".concat(m,"-data-count"),E==null?void 0:E.count),style:C==null?void 0:C.count},Ce)));var ue=function(ge){var De;x==null||x(ge),(De=le())!==null&&De!==void 0&&De.style.height&&G(!0)},Le=!I&&!g&&!l;return de.createElement($D,{ref:X,value:F,allowClear:l,handleReset:q,suffix:me,prefixCls:m,classNames:z(z({},E),{},{affixWrapper:xe(E==null?void 0:E.affixWrapper,Z(Z({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:S,focused:K,className:xe(b,Se&&"".concat(m,"-out-of-range")),style:z(z({},y),ie&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:w,readOnly:O,onClear:_},de.createElement(tLe,Ge({},T,{autoSize:I,maxLength:c,onKeyDown:Ne,onChange:Pe,onFocus:U,onBlur:H,onCompositionStart:ve,onCompositionEnd:be,className:xe(E==null?void 0:E.textarea),style:z(z({},C==null?void 0:C.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:m,onResize:ue,ref:ne,readOnly:O})))}),oLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:h,style:p,styles:m,variant:g}=e,v=oLe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:b,direction:y,textArea:S}=d.useContext(Yt),w=Eo(a),E=d.useContext(zo),C=s??E,{status:x,hasFeedback:_,feedbackIcon:P}=d.useContext(Io),O=md(x,l),I=d.useRef(null);d.useImperativeHandle(t,()=>{var W;return{resizableTextArea:(W=I.current)===null||W===void 0?void 0:W.resizableTextArea,focus:K=>{var L,Q;_D((Q=(L=I.current)===null||L===void 0?void 0:L.resizableTextArea)===null||Q===void 0?void 0:Q.textArea,K)},blur:()=>{var K;return(K=I.current)===null||K===void 0?void 0:K.blur()}}});const M=b("input",o),T=Mr(M),[D,A,j]=SD(M,T),[k,F]=gd("textArea",g,i),V=kae(c??(S==null?void 0:S.allowClear));return D(d.createElement(rLe,Object.assign({autoComplete:S==null?void 0:S.autoComplete},v,{style:Object.assign(Object.assign({},S==null?void 0:S.style),p),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),m),disabled:C,allowClear:V,className:xe(j,T,h,f,S==null?void 0:S.className),classNames:Object.assign(Object.assign(Object.assign({},u),S==null?void 0:S.classNames),{textarea:xe({[`${M}-sm`]:w==="small",[`${M}-lg`]:w==="large"},A,u==null?void 0:u.textarea,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.textarea),variant:xe({[`${M}-${k}`]:F},ac(M,O)),affixWrapper:xe(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:y==="rtl",[`${M}-affix-wrapper-sm`]:w==="small",[`${M}-affix-wrapper-lg`]:w==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},A)}),prefixCls:M,suffix:_&&d.createElement("span",{className:`${M}-textarea-suffix`},P),ref:I})))}),qr=cP;qr.Group=RFe;qr.Search=YFe;qr.TextArea=iLe;qr.Password=qFe;qr.OTP=LFe;const aLe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,sLe=e=>aLe.test(`#${e}`),lLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=d.useState(()=>n?uy(n.toHexString()):void 0);d.useEffect(()=>{n&&a(uy(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;a(uy(c)),sLe(uy(c,!0))&&(r==null||r(oa(c)))};return de.createElement(qr,{className:o,value:i,prefix:"#",onChange:s,size:"small"})},cLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const f=oa(u);n||a(f),r==null||r(f)};return de.createElement("div",{className:o},de.createElement(Xh,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>nx(l||0).toString(),onChange:l=>s(Number(l),"h")}),de.createElement(Xh,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${nx(l||0)}%`,onChange:l=>s(Number(l),"s")}),de.createElement(Xh,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${nx(l||0)}%`,onChange:l=>s(Number(l),"b")}))},uLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const f=oa(u);n||a(f),r==null||r(f)};return de.createElement("div",{className:o},de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},dLe=[yf.hex,yf.hsb,yf.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),fLe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a,disabledFormat:s}=e,[l,c]=xn(yf.hex,{value:n,onChange:i}),u=`${t}-input`,f=p=>{c(p)},h=d.useMemo(()=>{const p={value:r,prefixCls:t,onChange:a};switch(l){case yf.hsb:return de.createElement(cLe,Object.assign({},p));case yf.rgb:return de.createElement(uLe,Object.assign({},p));default:return de.createElement(lLe,Object.assign({},p))}},[l,t,r,a]);return de.createElement("div",{className:`${u}-container`},!s&&de.createElement(Va,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:dLe}),de.createElement("div",{className:u},h),!o&&de.createElement(TFe,{prefixCls:t,value:r,onChange:a}))};function v6(e,t,n){return(e-t)/(n-t)}function PD(e,t,n,r){var o=v6(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function gh(e,t){return Array.isArray(e)?e[t]:e}var Up=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Dae=d.createContext({}),hLe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],sU=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,h=e.onChangeComplete,p=e.onFocus,m=e.onMouseEnter,g=At(e,hLe),v=d.useContext(Up),b=v.min,y=v.max,S=v.direction,w=v.disabled,E=v.keyboard,C=v.range,x=v.tabIndex,_=v.ariaLabelForHandle,P=v.ariaLabelledByForHandle,O=v.ariaRequired,I=v.ariaValueTextFormatterForHandle,M=v.styles,T=v.classNames,D="".concat(n,"-handle"),A=function(re){w||i(re,o)},j=function(re){p==null||p(re,o)},k=function(re){m(re,o)},F=function(re){if(!w&&E){var ie=null;switch(re.which||re.keyCode){case ut.LEFT:ie=S==="ltr"||S==="btt"?-1:1;break;case ut.RIGHT:ie=S==="ltr"||S==="btt"?1:-1;break;case ut.UP:ie=S!=="ttb"?1:-1;break;case ut.DOWN:ie=S!=="ttb"?-1:1;break;case ut.HOME:ie="min";break;case ut.END:ie="max";break;case ut.PAGE_UP:ie=2;break;case ut.PAGE_DOWN:ie=-2;break;case ut.BACKSPACE:case ut.DELETE:a(o);break}ie!==null&&(re.preventDefault(),f(ie,o))}},V=function(re){switch(re.which||re.keyCode){case ut.LEFT:case ut.RIGHT:case ut.UP:case ut.DOWN:case ut.HOME:case ut.END:case ut.PAGE_UP:case ut.PAGE_DOWN:h==null||h();break}},W=PD(S,r,b,y),K={};if(o!==null){var L;K={tabIndex:w?null:gh(x,o),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":w,"aria-label":gh(_,o),"aria-labelledby":gh(P,o),"aria-required":gh(O,o),"aria-valuetext":(L=gh(I,o))===null||L===void 0?void 0:L(r),"aria-orientation":S==="ltr"||S==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:j,onMouseEnter:k,onKeyDown:F,onKeyUp:V}}var Q=d.createElement("div",Ge({ref:t,className:xe(D,Z(Z(Z({},"".concat(D,"-").concat(o+1),o!==null&&C),"".concat(D,"-dragging"),c),"".concat(D,"-dragging-delete"),u),T.handle),style:z(z(z({},W),s),M.handle)},K,g));return l&&(Q=l(Q,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:u})),Q}),pLe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],mLe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,h=At(e,pLe),p=d.useRef({}),m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=d.useState(-1),S=$e(y,2),w=S[0],E=S[1],C=function(I){E(I),b(!0)},x=function(I,M){C(M),f==null||f(I)},_=function(I,M){C(M)};d.useImperativeHandle(t,function(){return{focus:function(I){var M;(M=p.current[I])===null||M===void 0||M.focus()},hideHelp:function(){_i.flushSync(function(){b(!1)})}}});var P=z({prefixCls:n,onStartMove:o,onOffsetChange:i,render:s,onFocus:x,onMouseEnter:_},h);return d.createElement(d.Fragment,null,a.map(function(O,I){var M=c===I;return d.createElement(sU,Ge({ref:function(D){D?p.current[I]=D:delete p.current[I]},dragging:M,draggingDelete:M&&u,style:gh(r,I),key:I,value:O,valueIndex:I},P))}),l&&v&&d.createElement(sU,Ge({key:"a11y"},P,{value:a[w],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),gLe=function(t){var n=t.prefixCls,r=t.style,o=t.children,i=t.value,a=t.onClick,s=d.useContext(Up),l=s.min,c=s.max,u=s.direction,f=s.includedStart,h=s.includedEnd,p=s.included,m="".concat(n,"-text"),g=PD(u,i,l,c);return d.createElement("span",{className:xe(m,Z({},"".concat(m,"-active"),p&&f<=i&&i<=h)),style:z(z({},g),r),onMouseDown:function(b){b.stopPropagation()},onClick:function(){a(i)}},o)},vLe=function(t){var n=t.prefixCls,r=t.marks,o=t.onClick,i="".concat(n,"-mark");return r.length?d.createElement("div",{className:i},r.map(function(a){var s=a.value,l=a.style,c=a.label;return d.createElement(gLe,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},yLe=function(t){var n=t.prefixCls,r=t.value,o=t.style,i=t.activeStyle,a=d.useContext(Up),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,h=a.includedEnd,p="".concat(n,"-dot"),m=u&&f<=r&&r<=h,g=z(z({},PD(c,r,s,l)),typeof o=="function"?o(r):o);return m&&(g=z(z({},g),typeof i=="function"?i(r):i)),d.createElement("span",{className:xe(p,Z({},"".concat(p,"-active"),m)),style:g})},bLe=function(t){var n=t.prefixCls,r=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=d.useContext(Up),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var h=new Set;if(r.forEach(function(m){h.add(m.value)}),o&&u!==null)for(var p=l;p<=c;)h.add(p),p+=u;return Array.from(h)},[l,c,u,o,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(h){return d.createElement(yLe,{prefixCls:n,key:h,value:h,style:i,activeStyle:a})}))},lU=function(t){var n=t.prefixCls,r=t.style,o=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(Up),u=c.direction,f=c.min,h=c.max,p=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),b=v6(o,f,h),y=v6(i,f,h),S=function(x){!p&&s&&s(x,-1)},w={};switch(u){case"rtl":w.right="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");break;case"btt":w.bottom="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;case"ttb":w.top="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;default:w.left="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%")}var E=l||xe(v,Z(Z({},"".concat(v,"-").concat(a+1),a!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return d.createElement("div",{className:E,style:z(z({},w),r),onMouseDown:S,onTouchStart:S})},SLe=function(t){var n=t.prefixCls,r=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=d.useContext(Up),l=s.included,c=s.range,u=s.min,f=s.styles,h=s.classNames,p=d.useMemo(function(){if(!c){if(o.length===0)return[];var g=i??u,v=o[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var b=[],y=0;yCLe&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,S=m[v],w=S+g,E=[];r.forEach(function(O){E.push(O.value)}),E.push(e,t),E.push(s(S));var C=g>0?1:-1;b==="unit"?E.push(s(S+C*n)):E.push(s(w)),E=E.filter(function(O){return O!==null}).filter(function(O){return g<0?O<=S:O>=S}),b==="unit"&&(E=E.filter(function(O){return O!==S}));var x=b==="unit"?S:w;y=E[0];var _=Math.abs(y-x);if(E.forEach(function(O){var I=Math.abs(O-x);I<_&&(y=O,_=I)}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var P=Ze(m);return P[v]=y,p(P,g-C,v,b)}return y}else{if(g==="min")return e;if(g==="max")return t}},u=function(m,g,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=m[v],S=c(m,g,v,b);return{value:S,changed:S!==y}},f=function(m){return i===null&&m===0||typeof i=="number"&&m3&&arguments[3]!==void 0?arguments[3]:"unit",y=m.map(l),S=y[v],w=c(y,g,v,b);if(y[v]=w,o===!1){var E=i||0;v>0&&y[v-1]!==S&&(y[v]=Math.max(y[v],y[v-1]+E)),v0;P-=1)for(var O=!0;f(y[P]-y[P-1])&&O;){var I=u(y,-1,P-1);y[P-1]=I.value,O=I.changed}for(var M=y.length-1;M>0;M-=1)for(var T=!0;f(y[M]-y[M-1])&&T;){var D=u(y,-1,M-1);y[M-1]=D.value,T=D.changed}for(var A=0;A=0?k:!1},[k,ue]),He=d.useMemo(function(){return Object.keys(X||{}).map(function(It){var tt=X[It],Ot={value:Number(It)};return tt&&Ht(tt)==="object"&&!d.isValidElement(tt)&&("label"in tt||"style"in tt)?(Ot.style=tt.style,Ot.label=tt.label):Ot.label=tt,Ot}).filter(function(It){var tt=It.label;return tt||typeof tt=="number"}).sort(function(It,tt){return It.value-tt.value})},[X]),ge=xLe(me,Ce,ue,He,A,Le),De=$e(ge,2),qe=De[0],Fe=De[1],Ke=xn(x,{value:C}),Ue=$e(Ke,2),Ve=Ue[0],Tt=Ue[1],et=d.useMemo(function(){var It=Ve==null?[]:Array.isArray(Ve)?Ve:[Ve],tt=$e(It,1),Ot=tt[0],Pt=Ot===void 0?me:Ot,pn=Ve===null?[]:[Pt];if(Pe){if(pn=Ze(It),P||Ve===void 0){var Pn=P>=0?P+1:2;for(pn=pn.slice(0,Pn);pn.length=0&&Me.current.focus(It)}dt(null)},[ft]);var Ct=d.useMemo(function(){return U&&ue===null?!1:U},[U,ue]),Wt=An(function(It,tt){Xe(It,tt),I==null||I(st(et))}),at=Nt!==-1;d.useEffect(function(){if(!at){var It=et.lastIndexOf(Be);Me.current.focus(It)}},[at]);var $t=d.useMemo(function(){return Ze(je).sort(function(It,tt){return It-tt})},[je]),Bt=d.useMemo(function(){return Pe?[$t[0],$t[$t.length-1]]:[me,$t[0]]},[$t,Pe,me]),xt=$e(Bt,2),bt=xt[0],Ft=xt[1];d.useImperativeHandle(t,function(){return{focus:function(){Me.current.focus(0)},blur:function(){var tt,Ot=document,Pt=Ot.activeElement;(tt=Se.current)!==null&&tt!==void 0&&tt.contains(Pt)&&(Pt==null||Pt.blur())}}}),d.useEffect(function(){p&&Me.current.focus(0)},[]);var Re=d.useMemo(function(){return{min:me,max:Ce,direction:ye,disabled:u,keyboard:h,step:ue,included:K,includedStart:bt,includedEnd:Ft,range:Pe,tabIndex:fe,ariaLabelForHandle:te,ariaLabelledByForHandle:he,ariaRequired:pe,ariaValueTextFormatterForHandle:Oe,styles:s||{},classNames:a||{}}},[me,Ce,ye,u,h,ue,K,bt,Ft,Pe,fe,te,he,pe,Oe,s,a]);return d.createElement(Up.Provider,{value:Re},d.createElement("div",{ref:Se,className:xe(r,o,Z(Z(Z(Z({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),V),"".concat(r,"-horizontal"),!V),"".concat(r,"-with-marks"),He.length)),style:i,onMouseDown:vt,id:l},d.createElement("div",{className:xe("".concat(r,"-rail"),a==null?void 0:a.rail),style:z(z({},re),s==null?void 0:s.rail)}),oe!==!1&&d.createElement(SLe,{prefixCls:r,style:Q,values:et,startPoint:L,onStartMove:Ct?Wt:void 0}),d.createElement(bLe,{prefixCls:r,marks:He,dots:ne,style:ie,activeStyle:G}),d.createElement(mLe,{ref:Me,prefixCls:r,style:ee,values:je,draggingIndex:Nt,draggingDelete:We,onStartMove:Wt,onOffsetChange:Rt,onFocus:m,onBlur:g,handleRender:le,activeHandleRender:ce,onChangeComplete:gt,onDelete:Ne?Lt:void 0}),d.createElement(vLe,{prefixCls:r,marks:He,onClick:pt})))});const jae=d.createContext({}),uU=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,o=d.useRef(null),i=n&&!r,a=d.useRef(null);function s(){zn.cancel(a.current),a.current=null}function l(){a.current=zn(()=>{var c;(c=o.current)===null||c===void 0||c.forceAlign(),a.current=null})}return d.useEffect(()=>(i?l():s(),s),[i,e.title]),d.createElement(xa,Object.assign({ref:bi(o,t)},e,{open:i}))}),$Le=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:h,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",height:r,margin:`${_e(a)} ${_e(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${_e(i)} ${_e(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${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 ${_e(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 ${_e(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${v}, inset-block-start ${v}, width ${v}, @@ -411,21 +411,21 @@ html body { `]:{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 ${_e(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Lae=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",p=s(r).mul(3).sub(o).div(2).equal(),m=s(o).sub(r).div(2).equal(),g=t?{borderWidth:`${_e(m)} 0`,transform:`translateY(${_e(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${_e(m)}`,transform:`translateX(${_e(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({},g),[`${n}-handle`]:{[f]: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",[f]:s(r).sub(i).div(2).equal()}}},OLe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Lae(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},MLe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Lae(e,!1)),{height:"100%"})}},TLe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new Un(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new Un(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},RLe=Kn("Slider",e=>{const t=kn(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[PLe(t),OLe(t),MLe(t)]},TLe);function sR(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{zn.cancel(n.current)},o=i=>{r(),i?t(i):n.current=zn(()=>{t(i)})};return d.useEffect(()=>r,[]),[e,o]}var ILe=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 o=0,r=Object.getOwnPropertySymbols(e);otypeof n=="number"?n.toString():""}const Bae=de.forwardRef((e,t)=>{var n,r,o,i,a,s,l,c,u,f;const{prefixCls:h,range:p,className:m,rootClassName:g,style:v,disabled:b,tooltipPrefixCls:y,tipFormatter:S,tooltipVisible:w,getTooltipPopupContainer:E,tooltipPlacement:C,tooltip:x={},onChangeComplete:_,classNames:P,styles:O}=e,I=ILe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:M}=e,{direction:T,slider:D,getPrefixCls:A,getPopupContainer:j}=de.useContext(Yt),k=de.useContext(zo),F=b??k,{handleRender:V,direction:W}=de.useContext(Fae),L=(W||T)==="rtl",[Q,ee]=sR(),[re,ie]=sR(),G=Object.assign({},x),{open:X,placement:ne,getPopupContainer:le,prefixCls:ce,formatter:oe}=G,se=X??w,fe=(Q||re)&&se!==!1,te=kLe(oe,S),[he,pe]=sR(),Oe=ue=>{_==null||_(ue),pe(!1)},Me=(ue,Le)=>ue||(Le?L?"left":"right":"top"),Se=A("slider",h),[ye,ve,be]=RLe(Se),Pe=xe(m,D==null?void 0:D.className,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.root,P==null?void 0:P.root,g,{[`${Se}-rtl`]:L,[`${Se}-lock`]:he},ve,be);L&&!I.vertical&&(I.reverse=!I.reverse),de.useEffect(()=>{const ue=()=>{zn(()=>{ie(!1)},1)};return document.addEventListener("mouseup",ue),()=>{document.removeEventListener("mouseup",ue)}},[]);const Ne=p&&!se,U=V||((ue,Le)=>{const{index:He}=Le,ge=ue.props;function De(Ue,Ve,St){var et,st,Ct,dt;St&&((st=(et=I)[Ue])===null||st===void 0||st.call(et,Ve)),(dt=(Ct=ge)[Ue])===null||dt===void 0||dt.call(Ct,Ve)}const qe=Object.assign(Object.assign({},ge),{onMouseEnter:Ue=>{ee(!0),De("onMouseEnter",Ue)},onMouseLeave:Ue=>{ee(!1),De("onMouseLeave",Ue)},onMouseDown:Ue=>{ie(!0),pe(!0),De("onMouseDown",Ue)},onFocus:Ue=>{var Ve;ie(!0),(Ve=I.onFocus)===null||Ve===void 0||Ve.call(I,Ue),De("onFocus",Ue,!0)},onBlur:Ue=>{var Ve;ie(!1),(Ve=I.onBlur)===null||Ve===void 0||Ve.call(I,Ue),De("onBlur",Ue,!0)}}),je=de.cloneElement(ue,qe),Ke=(!!se||fe)&&te!==null;return Ne?je:de.createElement(fU,Object.assign({},G,{prefixCls:A("tooltip",ce??y),title:te?te(Le.value):"",open:Ke,placement:Me(ne??C,M),key:He,classNames:{root:`${Se}-tooltip`},getPopupContainer:le||E||j}),je)}),H=Ne?(ue,Le)=>{const He=de.cloneElement(ue,{style:Object.assign(Object.assign({},ue.props.style),{visibility:"hidden"})});return de.createElement(fU,Object.assign({},G,{prefixCls:A("tooltip",ce??y),title:te?te(Le.value):"",open:te!==null&&fe,placement:Me(ne??C,M),key:"tooltip",classNames:{root:`${Se}-tooltip`},getPopupContainer:le||E||j,draggingDelete:Le.draggingDelete}),He)}:void 0,q=Object.assign(Object.assign(Object.assign(Object.assign({},(r=D==null?void 0:D.styles)===null||r===void 0?void 0:r.root),D==null?void 0:D.style),O==null?void 0:O.root),v),me=Object.assign(Object.assign({},(o=D==null?void 0:D.styles)===null||o===void 0?void 0:o.tracks),O==null?void 0:O.tracks),Ce=xe((i=D==null?void 0:D.classNames)===null||i===void 0?void 0:i.tracks,P==null?void 0:P.tracks);return ye(de.createElement($Le,Object.assign({},I,{classNames:Object.assign({handle:xe((a=D==null?void 0:D.classNames)===null||a===void 0?void 0:a.handle,P==null?void 0:P.handle),rail:xe((s=D==null?void 0:D.classNames)===null||s===void 0?void 0:s.rail,P==null?void 0:P.rail),track:xe((l=D==null?void 0:D.classNames)===null||l===void 0?void 0:l.track,P==null?void 0:P.track)},Ce?{tracks:Ce}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=D==null?void 0:D.styles)===null||c===void 0?void 0:c.handle),O==null?void 0:O.handle),rail:Object.assign(Object.assign({},(u=D==null?void 0:D.styles)===null||u===void 0?void 0:u.rail),O==null?void 0:O.rail),track:Object.assign(Object.assign({},(f=D==null?void 0:D.styles)===null||f===void 0?void 0:f.track),O==null?void 0:O.track)},Object.keys(me).length?{tracks:me}:{}),step:I.step,range:p,className:Pe,style:q,disabled:F,ref:t,prefixCls:Se,handleRender:U,activeHandleRender:H,onChangeComplete:Oe})))});var NLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,colors:n,type:r,color:o,range:i=!1,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:f}=e,h=NLe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},h),{track:!1}),m=d.useMemo(()=>`linear-gradient(90deg, ${n.map(C=>`${C.color} ${C.percent}%`).join(", ")})`,[n]),g=d.useMemo(()=>!o||!r?null:r==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,r]),v=An(c),b=An(u),y=d.useMemo(()=>({onDragStart:v,onDragChange:b}),[]),S=An((E,C)=>{const{onFocus:x,style:_,className:P,onKeyDown:O}=E.props,I=Object.assign({},_);return r==="gradient"&&(I.background=Zne(n,C.value)),d.cloneElement(E,{onFocus:M=>{l==null||l(C.index),x==null||x(M)},style:I,className:xe(P,{[`${t}-slider-handle-active`]:s===C.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&f&&f(C.index),O==null||O(M)}})}),w=d.useMemo(()=>({direction:"ltr",handleRender:S}),[]);return d.createElement(Fae.Provider,{value:w},d.createElement(jae.Provider,{value:y},d.createElement(Bae,Object.assign({},p,{className:xe(a,`${t}-slider`),tooltip:{open:!1},range:{editable:i,minCount:2},styles:{rail:{background:m},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},ALe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,o=a=>n(a[0]),i=a=>r(a[0]);return d.createElement(zae,Object.assign({},e,{value:[t],onChange:o,onChangeComplete:i}))};function hU(e){return Ze(e).sort((t,n)=>t.percent-n.percent)}const DLe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:o,onActive:i,activeIndex:a,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=d.useMemo(()=>l.map(b=>({percent:b.percent,color:b.color.toRgbString()})),[l]),f=d.useMemo(()=>u.map(b=>b.percent),[u]),h=d.useRef(u),p=b=>{let{rawValues:y,draggingIndex:S,draggingValue:w}=b;if(y.length>u.length){const E=Zne(u,w),C=Ze(u);C.splice(S,0,{percent:w,color:E}),h.current=C}else h.current=u;s(!0),r(new Ss(hU(h.current)),!0)},m=b=>{let{deleteIndex:y,draggingIndex:S,draggingValue:w}=b,E=Ze(h.current);y!==-1?E.splice(y,1):(E[S]=Object.assign(Object.assign({},E[S]),{percent:w}),E=hU(E)),r(new Ss(E),!0)},g=b=>{const y=Ze(u);y.splice(b,1);const S=new Ss(y);r(S),o(S)},v=b=>{o(new Ss(u)),a>=b.length&&i(b.length-1),s(!1)};return c?d.createElement(zae,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:a,onActive:i,onDragStart:p,onDragChange:m,onKeyDelete:g}):null},jLe=d.memo(DLe);var FLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const e=d.useContext(Oae),{mode:t,onModeChange:n,modeOptions:r,prefixCls:o,allowClear:i,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:f,gradientDragging:h}=e,p=FLe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=de.useMemo(()=>a.cleared?[{percent:0,color:new Ss("")},{percent:100,color:new Ss("")}]:a.getColors(),[a]),g=!a.isGradient(),[v,b]=de.useState(a);Zn(()=>{var D;g||b((D=m[f])===null||D===void 0?void 0:D.color)},[h,f]);const y=de.useMemo(()=>{var D;return g?a:h?v:(D=m[f])===null||D===void 0?void 0:D.color},[a,f,g,v,h]),[S,w]=de.useState(y),[E,C]=de.useState(0),x=S!=null&&S.equals(y)?y:S;Zn(()=>{w(y)},[E,y==null?void 0:y.toHexString()]);const _=(D,A)=>{let j=oa(D);if(a.cleared){const F=j.toRgb();if(!F.r&&!F.g&&!F.b&&A){const{type:V,value:W=0}=A;j=new Ss({h:V==="hue"?W:0,s:1,b:1,a:V==="alpha"?W/100:1})}else j=nx(j)}if(t==="single")return j;const k=Ze(m);return k[f]=Object.assign(Object.assign({},k[f]),{color:j}),new Ss(k)},P=(D,A,j)=>{const k=_(D,j);w(k.isGradient()?k.getColors()[f].color:k),l(k,A)},O=(D,A)=>{u(_(D,A)),C(j=>j+1)},I=D=>{l(_(D))};let M=null;const T=r.length>1;return(i||T)&&(M=de.createElement("div",{className:`${o}-operation`},T&&de.createElement(Pae,{size:"small",options:r,value:t,onChange:n}),de.createElement(Tae,Object.assign({prefixCls:o,value:a,onChange:D=>{l(D),c==null||c()}},p)))),de.createElement(de.Fragment,null,M,de.createElement(jLe,Object.assign({},e,{colors:m})),de.createElement(tRe,{prefixCls:o,value:x==null?void 0:x.toHsb(),disabledAlpha:s,onChange:(D,A)=>{P(D,!0,A)},onChangeComplete:(D,A)=>{O(D,A)},components:LLe}),de.createElement(hLe,Object.assign({value:y,onChange:I,prefixCls:o,disabledAlpha:s},p)))},mU=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=d.useContext(Mae);return Array.isArray(n)?de.createElement(YRe,{value:t,presets:n,prefixCls:e,onChange:r}):null},BLe=e=>{const{prefixCls:t,presets:n,panelRender:r,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:h,activeIndex:p,onActive:m,format:g,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:S}=e,w=`${t}-inner`,E=de.useMemo(()=>({prefixCls:t,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:h,activeIndex:p,onActive:m,format:g,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:S}),[t,o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S]),C=de.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),x=de.createElement("div",{className:`${w}-content`},de.createElement(pU,null),Array.isArray(n)&&de.createElement(Wje,null),de.createElement(mU,null));return de.createElement(Oae.Provider,{value:E},de.createElement(Mae.Provider,{value:C},de.createElement("div",{className:w},typeof r=="function"?r(x,{components:{Picker:pU,Presets:mU}}):x)))};var zLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,disabled:i,format:a,className:s,showText:l,activeIndex:c}=e,u=zLe(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,h=`${f}-text`,p=`${h}-cell`,[m]=zi("ColorPicker"),g=de.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((S,w)=>{const E=c!==-1&&c!==w;return de.createElement("span",{key:w,className:xe(p,E&&`${p}-inactive`)},S.color.toRgbString()," ",S.percent,"%")});const b=n.toHexString().toUpperCase(),y=IA(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return y<100?`${b.slice(0,7)},${y}%`:b}},[n,a,l,c]),v=d.useMemo(()=>n.cleared?de.createElement(Tae,{prefixCls:r}):de.createElement(OA,{prefixCls:r,color:n.toCssString()}),[n,r]);return de.createElement("div",Object.assign({ref:t,className:xe(f,s,{[`${f}-active`]:o,[`${f}-disabled`]:i})},Jr(u)),v,l&&de.createElement("div",{className:h},g))});function ULe(e,t,n){const[r]=zi("ColorPicker"),[o,i]=xn(e,{value:t}),[a,s]=d.useState("single"),[l,c]=d.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(S=>S);g.length||g.push("single");const v=new Set(g),b=[],y=(S,w)=>{v.has(S)&&b.push({label:w,value:S})};return y("single",r.singleColor),y("gradient",r.gradientColor),[b,v]},[n]),[u,f]=d.useState(null),h=An(g=>{f(g),i(g)}),p=d.useMemo(()=>{const g=oa(o||"");return g.equals(u)?u:g},[o,u]),m=d.useMemo(()=>{var g;return c.has(a)?a:(g=l[0])===null||g===void 0?void 0:g.value},[c,a,l]);return d.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,h,m,s,l]}const Hae=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),gU=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},Hae("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${_e(i)} ${a}`,borderRadius:"inherit"}})}},WLe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${_e(i)}`,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:_e(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${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 ${_e(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:_e(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:h}}}}}},VLe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,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:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${_e(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`}}},KLe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:f,colorWhite:h,marginXXS:p,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${_e(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:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).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:`${_e(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${_e(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}}}},qLe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),f=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),h={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[Hae(_e(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:f,height:f,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${_e(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).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}}}},b6=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${_e(e.controlOutlineWidth)} ${n}`,outline:0}),GLe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},vU=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${_e(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},YLe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},b6(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},b6(e,r,s))}}},XLe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,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:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:_e(i)}}}},QLe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:f,marginSM:h,controlHeight:p,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:b,lineWidth:y,colorBorder:S,paddingXXS:w,fontSize:E,colorPrimaryHover:C,controlOutline:x}=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:`${_e(h)} 0 ${_e(f)}`}},[`${n}-panel`]:Object.assign({},VLe(e))},qLe(e)),gU(e,b)),WLe(e)),KLe(e)),vU(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${_e(y)} solid ${S}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(w).sub(y).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(w).sub(y)).equal(),fontSize:E,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:C},[`&${n}-trigger-active`]:Object.assign({},b6(e,o,x)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},vU(e,m)),gU(e,m)),YLe(e)),XLe(e))},GLe(e))},Bp(e,{focusElCls:`${n}-trigger-active`})]},JLe=Kn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=kn(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[QLe(o)]});var ZLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{mode:t,value:n,defaultValue:r,format:o,defaultFormat:i,allowClear:a=!1,presets:s,children:l,trigger:c="click",open:u,disabled:f,placement:h="bottomLeft",arrow:p=!0,panelRender:m,showText:g,style:v,className:b,size:y,rootClassName:S,prefixCls:w,styles:E,disabledAlpha:C=!1,onFormatChange:x,onChange:_,onClear:P,onOpenChange:O,onChangeComplete:I,getPopupContainer:M,autoAdjustOverflow:T=!0,destroyTooltipOnHide:D,disabledFormat:A}=e,j=ZLe(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:k,direction:F,colorPicker:V}=d.useContext(Yt),W=d.useContext(zo),K=f??W,[L,Q]=xn(!1,{value:u,postState:qe=>!K&&qe,onChange:O}),[ee,re]=xn(o,{value:o,defaultValue:i,onChange:x}),ie=k("color-picker",w),[G,X,ne,le,ce]=ULe(r,n,t),oe=d.useMemo(()=>IA(G)<100,[G]),[se,fe]=de.useState(null),te=qe=>{if(I){let je=oa(qe);C&&oe&&(je=nx(qe)),I(je)}},he=(qe,je)=>{let Ke=oa(qe);C&&oe&&(Ke=nx(Ke)),X(Ke),fe(null),_&&_(Ke,Ke.toCssString()),je||te(Ke)},[pe,Oe]=de.useState(0),[Me,Se]=de.useState(!1),ye=qe=>{if(le(qe),qe==="single"&&G.isGradient())Oe(0),he(new Ss(G.getColors()[0].color)),fe(G);else if(qe==="gradient"&&!G.isGradient()){const je=oe?nx(G):G;he(new Ss(se||[{percent:0,color:je},{percent:100,color:je}]))}},{status:ve}=de.useContext(Io),{compactSize:be,compactItemClassnames:Pe}=gc(ie,F),Ne=Eo(qe=>{var je;return(je=y??be)!==null&&je!==void 0?je:qe}),U=Mr(ie),[H,q,me]=JLe(ie,U),Ce={[`${ie}-rtl`]:F},ue=xe(S,me,U,Ce),Le=xe(ac(ie,ve),{[`${ie}-sm`]:Ne==="small",[`${ie}-lg`]:Ne==="large"},Pe,V==null?void 0:V.className,ue,b,q),He=xe(ie,ue),ge={open:L,trigger:c,placement:h,arrow:p,rootClassName:S,getPopupContainer:M,autoAdjustOverflow:T,destroyTooltipOnHide:D},De=Object.assign(Object.assign({},V==null?void 0:V.style),v);return H(de.createElement(fl,Object.assign({style:E==null?void 0:E.popup,styles:{body:E==null?void 0:E.popupOverlayInner},onOpenChange:qe=>{(!qe||!K)&&Q(qe)},content:de.createElement(ic,{form:!0},de.createElement(BLe,{mode:ne,onModeChange:ye,modeOptions:ce,prefixCls:ie,value:G,allowClear:a,disabled:K,disabledAlpha:C,presets:s,panelRender:m,format:ee,onFormatChange:re,onChange:he,onChangeComplete:te,onClear:P,activeIndex:pe,onActive:Oe,gradientDragging:Me,onGradientDragging:Se,disabledFormat:A})),classNames:{root:He}},ge),l||de.createElement(HLe,Object.assign({activeIndex:L?pe:-1,open:L,className:Le,style:De,prefixCls:ie,disabled:K,showText:g,format:ee},j,{color:G}))))},e7e=jf(TD,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);TD._InternalPanelDoNotUseOrYouWillBeFired=e7e;var t7e={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"},n7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:t7e}))},Uae=d.forwardRef(n7e),r7e={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"},o7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:r7e}))},RD=d.forwardRef(o7e),i7e={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"},a7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:i7e}))},s7e=d.forwardRef(a7e);function l7e(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 c7e(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 Wae(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=U$(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[u7e,d7e]=["week","WeekPicker"],[f7e,h7e]=["month","MonthPicker"],[p7e,m7e]=["year","YearPicker"],[g7e,v7e]=["quarter","QuarterPicker"],[Vae,yU]=["time","TimePicker"],y7e=e=>d.createElement(Hn,Object.assign({size:"small",type:"primary"},e));function Kae(e){return d.useMemo(()=>Object.assign({button:y7e},e),[e])}var b7e=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 o=0,r=Object.getOwnPropertySymbols(e);od.forwardRef((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:f,disabled:h,bordered:p=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:b,rootClassName:y,variant:S,picker:w}=n,E=b7e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),C=d.useRef(null),{getPrefixCls:x,direction:_,getPopupContainer:P,rangePicker:O}=d.useContext(Yt),I=x("picker",i),{compactSize:M,compactItemClassnames:T}=gc(I,_),D=x(),[A,j]=gd("rangePicker",S,p),k=Mr(I),[F,V,W]=qie(I,k),[K]=Wae(n,I),L=Kae(s),Q=Eo(fe=>{var te;return(te=f??M)!==null&&te!==void 0?te:fe}),ee=d.useContext(zo),re=h??ee,ie=d.useContext(Io),{hasFeedback:G,status:X,feedbackIcon:ne}=ie,le=d.createElement(d.Fragment,null,w===Vae?d.createElement(RD,null):d.createElement(Uae,null),G&&ne);d.useImperativeHandle(r,()=>C.current);const[ce]=zi("Calendar",zb),oe=Object.assign(Object.assign({},ce),n.locale),[se]=vl("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return F(d.createElement(ic,{space:!0},d.createElement(cAe,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${I}-separator`},d.createElement(s7e,null)),disabled:re,ref:C,placement:u,placeholder:c7e(oe,w,m),suffixIcon:le,prevIcon:d.createElement("span",{className:`${I}-prev-icon`}),nextIcon:d.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:w},E,{className:xe({[`${I}-${Q}`]:Q,[`${I}-${A}`]:j},ac(I,md(X,b),G),V,T,l,O==null?void 0:O.className,W,k,y),style:Object.assign(Object.assign({},O==null?void 0:O.style),c),locale:oe.lang,prefixCls:I,getPopupContainer:a||P,generateConfig:e,components:L,direction:_,classNames:{popup:xe(V,g||v,W,k,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:se})},allowClear:K}))))});var C7e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const t=(l,c)=>{const u=c===yU?"timePicker":"datePicker";return d.forwardRef((h,p)=>{var m;const{prefixCls:g,getPopupContainer:v,components:b,style:y,className:S,rootClassName:w,size:E,bordered:C,placement:x,placeholder:_,popupClassName:P,dropdownClassName:O,disabled:I,status:M,variant:T,onCalendarChange:D}=h,A=C7e(h,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:j,direction:k,getPopupContainer:F,[u]:V}=d.useContext(Yt),W=j("picker",g),{compactSize:K,compactItemClassnames:L}=gc(W,k),Q=d.useRef(null),[ee,re]=gd("datePicker",T,C),ie=Mr(W),[G,X,ne]=qie(W,ie);d.useImperativeHandle(p,()=>Q.current);const le={showToday:!0},ce=l||h.picker,oe=j(),{onSelect:se,multiple:fe}=A,te=se&&l==="time"&&!fe,he=(ue,Le,He)=>{D==null||D(ue,Le,He),te&&se(ue)},[pe,Oe]=Wae(h,W),Me=Kae(b),Se=Eo(ue=>{var Le;return(Le=E??K)!==null&&Le!==void 0?Le:ue}),ye=d.useContext(zo),ve=I??ye,be=d.useContext(Io),{hasFeedback:Pe,status:Ne,feedbackIcon:U}=be,H=d.createElement(d.Fragment,null,ce==="time"?d.createElement(RD,null):d.createElement(Uae,null),Pe&&U),[q]=zi("DatePicker",zb),me=Object.assign(Object.assign({},q),h.locale),[Ce]=vl("DatePicker",(m=h.popupStyle)===null||m===void 0?void 0:m.zIndex);return G(d.createElement(ic,{space:!0},d.createElement(mAe,Object.assign({ref:Q,placeholder:l7e(me,ce,_),suffixIcon:H,placement:x,prevIcon:d.createElement("span",{className:`${W}-prev-icon`}),nextIcon:d.createElement("span",{className:`${W}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${W}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${W}-super-next-icon`}),transitionName:`${oe}-slide-up`,picker:l,onCalendarChange:he},le,A,{locale:me.lang,className:xe({[`${W}-${Se}`]:Se,[`${W}-${ee}`]:re},ac(W,md(Ne,M),Pe),X,L,V==null?void 0:V.className,S,ne,ie,w),style:Object.assign(Object.assign({},V==null?void 0:V.style),y),prefixCls:W,getPopupContainer:v||F,generateConfig:e,components:Me,direction:k,disabled:ve,classNames:{popup:xe(X,ne,ie,w,P||O)},styles:{popup:Object.assign(Object.assign({},h.popupStyle),{zIndex:Ce})},allowClear:pe,removeIcon:Oe}))))})},n=t(),r=t(u7e,d7e),o=t(f7e,h7e),i=t(p7e,m7e),a=t(g7e,v7e),s=t(Vae,yU);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:s,QuarterPicker:a}},qae=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=w7e(e),s=S7e(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,l},qa=qae(tie),x7e=jf(qa,"popupAlign",void 0,"picker");qa._InternalPanelDoNotUseOrYouWillBeFired=x7e;const E7e=jf(qa.RangePicker,"popupAlign",void 0,"picker");qa._InternalRangePanelDoNotUseOrYouWillBeFired=E7e;qa.generatePicker=qae;const _7e={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},ID=de.createContext({});var $7e=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 o=0,r=Object.getOwnPropertySymbols(e);oai(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function O7e(e,t,n){const r=d.useMemo(()=>t||P7e(n),[t,n]);return d.useMemo(()=>r.map(i=>{var{span:a}=i,s=$7e(i,["span"]);return a==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof a=="number"?a:coe(e,a)})}),[r,e])}var M7e=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 o=0,r=Object.getOwnPropertySymbols(e);oa).forEach(a=>{const{filled:s}=a,l=M7e(a,["filled"]);if(s){r.push(l),n.push(r),r=[],i=0;return}const c=t-i;i+=a.span||1,i>=t?(i>t?(o=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],i=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(a=>{const s=a.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=d.useMemo(()=>T7e(t,e),[t,e]);return n},I7e=e=>{let{children:t}=e;return t};function bU(e){return e!=null}const lR=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:i,labelStyle:a,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:h,styles:p}=e,m=n,g=d.useContext(ID),{classNames:v}=g;return l?d.createElement(m,{className:xe({[`${t}-item-label`]:h==="label",[`${t}-item-content`]:h==="content",[`${v==null?void 0:v.label}`]:h==="label",[`${v==null?void 0:v.content}`]:h==="content"},o),style:i,colSpan:r},bU(c)&&d.createElement("span",{style:Object.assign(Object.assign({},a),p==null?void 0:p.label)},c),bU(u)&&d.createElement("span",{style:Object.assign(Object.assign({},a),p==null?void 0:p.content)},u)):d.createElement(m,{className:xe(`${t}-item`,o),style:i,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(c||c===0)&&d.createElement("span",{className:xe(`${t}-item-label`,v==null?void 0:v.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},a),p==null?void 0:p.label)},c),(u||u===0)&&d.createElement("span",{className:xe(`${t}-item-content`,v==null?void 0:v.content),style:Object.assign(Object.assign({},s),p==null?void 0:p.content)},u)))};function cR(e,t,n){let{colon:r,prefixCls:o,bordered:i}=t,{component:a,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f,styles:h}=n;return e.map((p,m)=>{let{label:g,children:v,prefixCls:b=o,className:y,style:S,labelStyle:w,contentStyle:E,span:C=1,key:x,styles:_}=p;return typeof a=="string"?d.createElement(lR,{key:`${s}-${x||m}`,className:y,style:S,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.label),w),_==null?void 0:_.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},f),h==null?void 0:h.content),E),_==null?void 0:_.content)},span:C,colon:r,component:a,itemPrefixCls:b,bordered:i,label:l?g:null,content:c?v:null,type:s}):[d.createElement(lR,{key:`label-${x||m}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.label),S),w),_==null?void 0:_.label),span:1,colon:r,component:a[0],itemPrefixCls:b,bordered:i,label:g,type:"label"}),d.createElement(lR,{key:`content-${x||m}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),h==null?void 0:h.content),S),E),_==null?void 0:_.content),span:C*2-1,component:a[1],itemPrefixCls:b,bordered:i,content:v,type:"content"})]})}const k7e=e=>{const t=d.useContext(ID),{prefixCls:n,vertical:r,row:o,index:i,bordered:a}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${i}`,className:`${n}-row`},cR(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${i}`,className:`${n}-row`},cR(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:i,className:`${n}-row`},cR(o,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},N7e=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${_e(e.padding)} ${_e(e.paddingLG)}`,borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${_e(e.paddingSM)} ${_e(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${_e(e.paddingXS)} ${_e(e.padding)}`}}}}}},A7e=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Qn(e)),N7e(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},wa),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${_e(a)} ${_e(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},D7e=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),j7e=Kn("Descriptions",e=>{const t=kn(e,{});return A7e(t)},D7e);var F7e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l;const{prefixCls:c,title:u,extra:f,column:h,colon:p=!0,bordered:m,layout:g,children:v,className:b,rootClassName:y,style:S,size:w,labelStyle:E,contentStyle:C,styles:x,items:_,classNames:P}=e,O=F7e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:I,direction:M,descriptions:T}=d.useContext(Yt),D=I("descriptions",c),A=W$(),j=d.useMemo(()=>{var ee;return typeof h=="number"?h:(ee=coe(A,Object.assign(Object.assign({},_7e),h)))!==null&&ee!==void 0?ee:3},[A,h]),k=O7e(A,_,v),F=Eo(w),V=R7e(j,k),[W,K,L]=j7e(D),Q=d.useMemo(()=>{var ee,re,ie,G;return{labelStyle:E,contentStyle:C,styles:{content:Object.assign(Object.assign({},(ee=T==null?void 0:T.styles)===null||ee===void 0?void 0:ee.content),x==null?void 0:x.content),label:Object.assign(Object.assign({},(re=T==null?void 0:T.styles)===null||re===void 0?void 0:re.label),x==null?void 0:x.label)},classNames:{label:xe((ie=T==null?void 0:T.classNames)===null||ie===void 0?void 0:ie.label,P==null?void 0:P.label),content:xe((G=T==null?void 0:T.classNames)===null||G===void 0?void 0:G.content,P==null?void 0:P.content)}}},[E,C,x,P,T]);return W(d.createElement(ID.Provider,{value:Q},d.createElement("div",Object.assign({className:xe(D,T==null?void 0:T.className,(t=T==null?void 0:T.classNames)===null||t===void 0?void 0:t.root,P==null?void 0:P.root,{[`${D}-${F}`]:F&&F!=="default",[`${D}-bordered`]:!!m,[`${D}-rtl`]:M==="rtl"},b,y,K,L),style:Object.assign(Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),(n=T==null?void 0:T.styles)===null||n===void 0?void 0:n.root),x==null?void 0:x.root),S)},O),(u||f)&&d.createElement("div",{className:xe(`${D}-header`,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.header,P==null?void 0:P.header),style:Object.assign(Object.assign({},(o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.header),x==null?void 0:x.header)},u&&d.createElement("div",{className:xe(`${D}-title`,(i=T==null?void 0:T.classNames)===null||i===void 0?void 0:i.title,P==null?void 0:P.title),style:Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.title),x==null?void 0:x.title)},u),f&&d.createElement("div",{className:xe(`${D}-extra`,(s=T==null?void 0:T.classNames)===null||s===void 0?void 0:s.extra,P==null?void 0:P.extra),style:Object.assign(Object.assign({},(l=T==null?void 0:T.styles)===null||l===void 0?void 0:l.extra),x==null?void 0:x.extra)},f)),d.createElement("div",{className:`${D}-view`},d.createElement("table",null,d.createElement("tbody",null,V.map((ee,re)=>d.createElement(k7e,{key:re,index:re,colon:p,prefixCls:D,vertical:g==="vertical",bordered:m,row:ee}))))))))};Bs.Item=I7e;var SU=d.createContext(null),Gae=d.createContext({}),L7e=["prefixCls","className","containerRef"],B7e=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,i=At(t,L7e),a=d.useContext(Gae),s=a.panel,l=mc(s,o);return d.createElement("div",Ge({className:xe("".concat(n,"-content"),r),role:"dialog",ref:l},Jr(t,{aria:!0}),{"aria-modal":"true"},i))};function CU(e){return typeof e=="string"&&String(Number(e))===e?(yr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var wU={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function z7e(e,t){var n,r,o,i=e.prefixCls,a=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,f=e.autoFocus,h=e.keyboard,p=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,b=e.className,y=e.id,S=e.style,w=e.motion,E=e.width,C=e.height,x=e.children,_=e.mask,P=e.maskClosable,O=e.maskMotion,I=e.maskClassName,M=e.maskStyle,T=e.afterOpenChange,D=e.onClose,A=e.onMouseEnter,j=e.onMouseOver,k=e.onMouseLeave,F=e.onClick,V=e.onKeyDown,W=e.onKeyUp,K=e.styles,L=e.drawerRender,Q=d.useRef(),ee=d.useRef(),re=d.useRef();d.useImperativeHandle(t,function(){return Q.current});var ie=function(ve){var be=ve.keyCode,Pe=ve.shiftKey;switch(be){case ut.TAB:{if(be===ut.TAB){if(!Pe&&document.activeElement===re.current){var Ne;(Ne=ee.current)===null||Ne===void 0||Ne.focus({preventScroll:!0})}else if(Pe&&document.activeElement===ee.current){var U;(U=re.current)===null||U===void 0||U.focus({preventScroll:!0})}}break}case ut.ESC:{D&&h&&(ve.stopPropagation(),D(ve));break}}};d.useEffect(function(){if(a&&f){var ye;(ye=Q.current)===null||ye===void 0||ye.focus({preventScroll:!0})}},[a]);var G=d.useState(!1),X=$e(G,2),ne=X[0],le=X[1],ce=d.useContext(SU),oe;typeof c=="boolean"?oe=c?{}:{distance:0}:oe=c||{};var se=(n=(r=(o=oe)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:ce==null?void 0:ce.pushDistance)!==null&&n!==void 0?n:180,fe=d.useMemo(function(){return{pushDistance:se,push:function(){le(!0)},pull:function(){le(!1)}}},[se]);d.useEffect(function(){if(a){var ye;ce==null||(ye=ce.push)===null||ye===void 0||ye.call(ce)}else{var ve;ce==null||(ve=ce.pull)===null||ve===void 0||ve.call(ce)}},[a]),d.useEffect(function(){return function(){var ye;ce==null||(ye=ce.pull)===null||ye===void 0||ye.call(ce)}},[]);var te=_&&d.createElement(Jo,Ge({key:"mask"},O,{visible:a}),function(ye,ve){var be=ye.className,Pe=ye.style;return d.createElement("div",{className:xe("".concat(i,"-mask"),be,p==null?void 0:p.mask,I),style:z(z(z({},Pe),M),K==null?void 0:K.mask),onClick:P&&a?D:void 0,ref:ve})}),he=typeof w=="function"?w(s):w,pe={};if(ne&&se)switch(s){case"top":pe.transform="translateY(".concat(se,"px)");break;case"bottom":pe.transform="translateY(".concat(-se,"px)");break;case"left":pe.transform="translateX(".concat(se,"px)");break;default:pe.transform="translateX(".concat(-se,"px)");break}s==="left"||s==="right"?pe.width=CU(E):pe.height=CU(C);var Oe={onMouseEnter:A,onMouseOver:j,onMouseLeave:k,onClick:F,onKeyDown:V,onKeyUp:W},Me=d.createElement(Jo,Ge({key:"panel"},he,{visible:a,forceRender:u,onVisibleChanged:function(ve){T==null||T(ve)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(ye,ve){var be=ye.className,Pe=ye.style,Ne=d.createElement(B7e,Ge({id:y,containerRef:ve,prefixCls:i,className:xe(b,p==null?void 0:p.content),style:z(z({},S),K==null?void 0:K.content)},Jr(e,{aria:!0}),Oe),x);return d.createElement("div",Ge({className:xe("".concat(i,"-content-wrapper"),p==null?void 0:p.wrapper,be),style:z(z(z({},pe),Pe),K==null?void 0:K.wrapper)},Jr(e,{data:!0})),L?L(Ne):Ne)}),Se=z({},g);return v&&(Se.zIndex=v),d.createElement(SU.Provider,{value:fe},d.createElement("div",{className:xe(i,"".concat(i,"-").concat(s),m,Z(Z({},"".concat(i,"-open"),a),"".concat(i,"-inline"),l)),style:Se,tabIndex:-1,ref:Q,onKeyDown:ie},te,d.createElement("div",{tabIndex:0,ref:ee,style:wU,"aria-hidden":"true","data-sentinel":"start"}),Me,d.createElement("div",{tabIndex:0,ref:re,style:wU,"aria-hidden":"true","data-sentinel":"end"})))}var H7e=d.forwardRef(z7e),U7e=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,i=o===void 0?"rc-drawer":o,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,f=u===void 0?!0:u,h=t.width,p=h===void 0?378:h,m=t.mask,g=m===void 0?!0:m,v=t.maskClosable,b=v===void 0?!0:v,y=t.getContainer,S=t.forceRender,w=t.afterOpenChange,E=t.destroyOnClose,C=t.onMouseEnter,x=t.onMouseOver,_=t.onMouseLeave,P=t.onClick,O=t.onKeyDown,I=t.onKeyUp,M=t.panelRef,T=d.useState(!1),D=$e(T,2),A=D[0],j=D[1],k=d.useState(!1),F=$e(k,2),V=F[0],W=F[1];Zn(function(){W(!0)},[]);var K=V?r:!1,L=d.useRef(),Q=d.useRef();Zn(function(){K&&(Q.current=document.activeElement)},[K]);var ee=function(ne){var le;if(j(ne),w==null||w(ne),!ne&&Q.current&&!((le=L.current)!==null&&le!==void 0&&le.contains(Q.current))){var ce;(ce=Q.current)===null||ce===void 0||ce.focus({preventScroll:!0})}},re=d.useMemo(function(){return{panel:M}},[M]);if(!S&&!A&&!K&&E)return null;var ie={onMouseEnter:C,onMouseOver:x,onMouseLeave:_,onClick:P,onKeyDown:O,onKeyUp:I},G=z(z({},t),{},{open:K,prefixCls:i,placement:s,autoFocus:c,keyboard:f,width:p,mask:g,maskClosable:b,inline:y===!1,afterOpenChange:ee,ref:L},ie);return d.createElement(Gae.Provider,{value:re},d.createElement(W1,{open:K||S||A,autoDestroy:!1,getContainer:y,autoLock:g&&(K||A)},d.createElement(H7e,G)))};const Yae=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:f,children:h,classNames:p,styles:m}=e,{drawer:g}=d.useContext(Yt),v=d.useCallback(E=>d.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},E),[l]),[b,y]=zA(Vg(e),Vg(g),{closable:!0,closeIconRender:v}),S=d.useMemo(()=>{var E,C;return!o&&!b?null:d.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(E=g==null?void 0:g.styles)===null||E===void 0?void 0:E.header),c),m==null?void 0:m.header),className:xe(`${r}-header`,{[`${r}-header-close-only`]:b&&!o&&!a},(C=g==null?void 0:g.classNames)===null||C===void 0?void 0:C.header,p==null?void 0:p.header)},d.createElement("div",{className:`${r}-header-title`},y,o&&d.createElement("div",{className:`${r}-title`},o)),a&&d.createElement("div",{className:`${r}-extra`},a))},[b,y,a,c,r,o]),w=d.useMemo(()=>{var E,C;if(!i)return null;const x=`${r}-footer`;return d.createElement("div",{className:xe(x,(E=g==null?void 0:g.classNames)===null||E===void 0?void 0:E.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(C=g==null?void 0:g.styles)===null||C===void 0?void 0:C.footer),f),m==null?void 0:m.footer)},i)},[i,f,r]);return d.createElement(d.Fragment,null,S,d.createElement("div",{className:xe(`${r}-body`,p==null?void 0:p.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?d.createElement(pd,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),w)},W7e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Xae=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Qae=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Xae({opacity:e},{opacity:1})),V7e=(e,t)=>[Qae(.7,t),Xae({transform:W7e(e)},{transform:"none"})],K7e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Qae(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:V7e(o,n)}),{})}}},q7e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:f,lineHeightLG:h,lineWidth:p,lineType:m,colorSplit:g,marginXS:v,colorIcon:b,colorIconHover:y,colorBgTextHover:S,colorBgTextActive:w,colorText:E,fontWeightStrong:C,footerPaddingBlock:x,footerPaddingInline:_,calc:P}=e,O=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:E,"&-pure":{position:"relative",background:i,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:o,pointerEvents:"auto"},[O]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${_e(c)} ${_e(u)}`,fontSize:f,lineHeight:h,borderBottom:`${_e(p)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:P(f).add(l).equal(),height:P(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:b,fontWeight:C,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:y,backgroundColor:S,textDecoration:"none"},"&:active":{backgroundColor:w}},Ka(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,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:`${_e(x)} ${_e(_)}`,borderTop:`${_e(p)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},G7e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Jae=Kn("Drawer",e=>{const t=kn(e,{});return[q7e(t),K7e(t)]},G7e);var Zae=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=Y7e,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:f,style:h,className:p,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:b,contentWrapperStyle:y}=e,S=Zae(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:w,getPrefixCls:E,direction:C,drawer:x}=d.useContext(Yt),_=E("drawer",u),[P,O,I]=Jae(_),M=f===void 0&&w?()=>w(document.body):f,T=xe({"no-mask":!i,[`${_}-rtl`]:C==="rtl"},t,O,I),D=d.useMemo(()=>n??(o==="large"?736:378),[n,o]),A=d.useMemo(()=>r??(o==="large"?736:378),[r,o]),j={motionName:Mi(_,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},k=re=>({motionName:Mi(_,`panel-motion-${re}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),F=Cre(),[V,W]=vl("Drawer",S.zIndex),{classNames:K={},styles:L={}}=S,{classNames:Q={},styles:ee={}}=x||{};return P(d.createElement(ic,{form:!0,space:!0},d.createElement(L1.Provider,{value:W},d.createElement(U7e,Object.assign({prefixCls:_,onClose:c,maskMotion:j,motion:k},S,{classNames:{mask:xe(K.mask,Q.mask),content:xe(K.content,Q.content),wrapper:xe(K.wrapper,Q.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},L.mask),v),ee.mask),content:Object.assign(Object.assign(Object.assign({},L.content),b),ee.content),wrapper:Object.assign(Object.assign(Object.assign({},L.wrapper),y),ee.wrapper)},open:s??m,mask:i,push:a,width:D,height:A,style:Object.assign(Object.assign({},x==null?void 0:x.style),h),className:xe(x==null?void 0:x.className,p),rootClassName:T,getContainer:M,afterOpenChange:l??g,panelRef:F,zIndex:V}),d.createElement(Yae,Object.assign({prefixCls:_},S,{onClose:c}))))))},X7e=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=Zae(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=d.useContext(Yt),s=a("drawer",t),[l,c,u]=Jae(s),f=xe(s,`${s}-pure`,`${s}-${o}`,c,u,r);return l(d.createElement("div",{className:f,style:n},d.createElement(Yae,Object.assign({prefixCls:s},i))))};dP._InternalPanelDoNotUseOrYouWillBeFired=X7e;function xU(e){return["small","middle","large"].includes(e)}function EU(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const ese=de.createContext({latestIndex:0}),Q7e=ese.Provider,J7e=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=d.useContext(ese);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:i},r),n{var n,r,o;const{getPrefixCls:i,space:a,direction:s}=d.useContext(Yt),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:h,direction:p="horizontal",prefixCls:m,split:g,style:v,wrap:b=!1,classNames:y,styles:S}=e,w=Z7e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,C]=Array.isArray(l)?l:[l,l],x=xU(C),_=xU(E),P=EU(C),O=EU(E),I=ai(h,{keepEmpty:!0}),M=c===void 0&&p==="horizontal"?"center":c,T=i("space",m),[D,A,j]=Hne(T),k=xe(T,a==null?void 0:a.className,A,`${T}-${p}`,{[`${T}-rtl`]:s==="rtl",[`${T}-align-${M}`]:M,[`${T}-gap-row-${C}`]:x,[`${T}-gap-col-${E}`]:_},u,f,j),F=xe(`${T}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(o=a==null?void 0:a.classNames)===null||o===void 0?void 0:o.item);let V=0;const W=I.map((Q,ee)=>{var re,ie;Q!=null&&(V=ee);const G=(Q==null?void 0:Q.key)||`${F}-${ee}`;return d.createElement(J7e,{className:F,key:G,index:ee,split:g,style:(re=S==null?void 0:S.item)!==null&&re!==void 0?re:(ie=a==null?void 0:a.styles)===null||ie===void 0?void 0:ie.item},Q)}),K=d.useMemo(()=>({latestIndex:V}),[V]);if(I.length===0)return null;const L={};return b&&(L.flexWrap="wrap"),!_&&O&&(L.columnGap=E),!x&&P&&(L.rowGap=C),D(d.createElement("div",Object.assign({ref:t,className:k,style:Object.assign(Object.assign(Object.assign({},L),a==null?void 0:a.style),v)},w),d.createElement(Q7e,{value:K},W)))}),oo=eBe;oo.Compact=DTe;var tBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(Yt),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:h,menu:p,arrow:m,autoFocus:g,overlay:v,trigger:b,align:y,open:S,onOpenChange:w,placement:E,getPopupContainer:C,href:x,icon:_=d.createElement(lD,null),title:P,buttonsRender:O=X=>X,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:T,overlayStyle:D,destroyPopupOnHide:A,dropdownRender:j}=e,k=tBe(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"]),F=n("dropdown",o),V=`${F}-button`,W={menu:p,arrow:m,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:C||t,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:T,overlayStyle:D,destroyPopupOnHide:A,dropdownRender:j},{compactSize:K,compactItemClassnames:L}=gc(F,r),Q=xe(V,L,h);"overlay"in e&&(W.overlay=v),"open"in e&&(W.open=S),"placement"in e?W.placement=E:W.placement=r==="rtl"?"bottomLeft":"bottomRight";const ee=d.createElement(Hn,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:x,title:P},f),re=d.createElement(Hn,{type:i,danger:a,icon:_}),[ie,G]=O([ee,re]);return d.createElement(oo.Compact,Object.assign({className:Q,size:K,block:!0},k),ie,d.createElement(Q$,Object.assign({},W),G))};tse.__ANT_BUTTON=!0;const kD=Q$;kD.Button=tse;function nE(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const nBe=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}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Fae=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",p=s(r).mul(3).sub(o).div(2).equal(),m=s(o).sub(r).div(2).equal(),g=t?{borderWidth:`${_e(m)} 0`,transform:`translateY(${_e(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${_e(m)}`,transform:`translateX(${_e(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({},g),[`${n}-handle`]:{[f]: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",[f]:s(r).sub(i).div(2).equal()}}},PLe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Fae(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},OLe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Fae(e,!1)),{height:"100%"})}},MLe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new Un(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new Un(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},TLe=Kn("Slider",e=>{const t=kn(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[$Le(t),PLe(t),OLe(t)]},MLe);function sR(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{zn.cancel(n.current)},o=i=>{r(),i?t(i):n.current=zn(()=>{t(i)})};return d.useEffect(()=>r,[]),[e,o]}var RLe=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 o=0,r=Object.getOwnPropertySymbols(e);otypeof n=="number"?n.toString():""}const Lae=de.forwardRef((e,t)=>{var n,r,o,i,a,s,l,c,u,f;const{prefixCls:h,range:p,className:m,rootClassName:g,style:v,disabled:b,tooltipPrefixCls:y,tipFormatter:S,tooltipVisible:w,getTooltipPopupContainer:E,tooltipPlacement:C,tooltip:x={},onChangeComplete:_,classNames:P,styles:O}=e,I=RLe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:M}=e,{direction:T,slider:D,getPrefixCls:A,getPopupContainer:j}=de.useContext(Yt),k=de.useContext(zo),F=b??k,{handleRender:V,direction:W}=de.useContext(jae),L=(W||T)==="rtl",[Q,ee]=sR(),[re,ie]=sR(),G=Object.assign({},x),{open:X,placement:ne,getPopupContainer:le,prefixCls:ce,formatter:oe}=G,se=X??w,fe=(Q||re)&&se!==!1,te=ILe(oe,S),[he,pe]=sR(),Oe=ue=>{_==null||_(ue),pe(!1)},Me=(ue,Le)=>ue||(Le?L?"left":"right":"top"),Se=A("slider",h),[ye,ve,be]=TLe(Se),Pe=xe(m,D==null?void 0:D.className,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.root,P==null?void 0:P.root,g,{[`${Se}-rtl`]:L,[`${Se}-lock`]:he},ve,be);L&&!I.vertical&&(I.reverse=!I.reverse),de.useEffect(()=>{const ue=()=>{zn(()=>{ie(!1)},1)};return document.addEventListener("mouseup",ue),()=>{document.removeEventListener("mouseup",ue)}},[]);const Ne=p&&!se,U=V||((ue,Le)=>{const{index:He}=Le,ge=ue.props;function De(Ue,Ve,Tt){var et,st,yt,gt;Tt&&((st=(et=I)[Ue])===null||st===void 0||st.call(et,Ve)),(gt=(yt=ge)[Ue])===null||gt===void 0||gt.call(yt,Ve)}const qe=Object.assign(Object.assign({},ge),{onMouseEnter:Ue=>{ee(!0),De("onMouseEnter",Ue)},onMouseLeave:Ue=>{ee(!1),De("onMouseLeave",Ue)},onMouseDown:Ue=>{ie(!0),pe(!0),De("onMouseDown",Ue)},onFocus:Ue=>{var Ve;ie(!0),(Ve=I.onFocus)===null||Ve===void 0||Ve.call(I,Ue),De("onFocus",Ue,!0)},onBlur:Ue=>{var Ve;ie(!1),(Ve=I.onBlur)===null||Ve===void 0||Ve.call(I,Ue),De("onBlur",Ue,!0)}}),Fe=de.cloneElement(ue,qe),Ke=(!!se||fe)&&te!==null;return Ne?Fe:de.createElement(uU,Object.assign({},G,{prefixCls:A("tooltip",ce??y),title:te?te(Le.value):"",open:Ke,placement:Me(ne??C,M),key:He,classNames:{root:`${Se}-tooltip`},getPopupContainer:le||E||j}),Fe)}),H=Ne?(ue,Le)=>{const He=de.cloneElement(ue,{style:Object.assign(Object.assign({},ue.props.style),{visibility:"hidden"})});return de.createElement(uU,Object.assign({},G,{prefixCls:A("tooltip",ce??y),title:te?te(Le.value):"",open:te!==null&&fe,placement:Me(ne??C,M),key:"tooltip",classNames:{root:`${Se}-tooltip`},getPopupContainer:le||E||j,draggingDelete:Le.draggingDelete}),He)}:void 0,q=Object.assign(Object.assign(Object.assign(Object.assign({},(r=D==null?void 0:D.styles)===null||r===void 0?void 0:r.root),D==null?void 0:D.style),O==null?void 0:O.root),v),me=Object.assign(Object.assign({},(o=D==null?void 0:D.styles)===null||o===void 0?void 0:o.tracks),O==null?void 0:O.tracks),Ce=xe((i=D==null?void 0:D.classNames)===null||i===void 0?void 0:i.tracks,P==null?void 0:P.tracks);return ye(de.createElement(_Le,Object.assign({},I,{classNames:Object.assign({handle:xe((a=D==null?void 0:D.classNames)===null||a===void 0?void 0:a.handle,P==null?void 0:P.handle),rail:xe((s=D==null?void 0:D.classNames)===null||s===void 0?void 0:s.rail,P==null?void 0:P.rail),track:xe((l=D==null?void 0:D.classNames)===null||l===void 0?void 0:l.track,P==null?void 0:P.track)},Ce?{tracks:Ce}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=D==null?void 0:D.styles)===null||c===void 0?void 0:c.handle),O==null?void 0:O.handle),rail:Object.assign(Object.assign({},(u=D==null?void 0:D.styles)===null||u===void 0?void 0:u.rail),O==null?void 0:O.rail),track:Object.assign(Object.assign({},(f=D==null?void 0:D.styles)===null||f===void 0?void 0:f.track),O==null?void 0:O.track)},Object.keys(me).length?{tracks:me}:{}),step:I.step,range:p,className:Pe,style:q,disabled:F,ref:t,prefixCls:Se,handleRender:U,activeHandleRender:H,onChangeComplete:Oe})))});var kLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,colors:n,type:r,color:o,range:i=!1,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:f}=e,h=kLe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},h),{track:!1}),m=d.useMemo(()=>`linear-gradient(90deg, ${n.map(C=>`${C.color} ${C.percent}%`).join(", ")})`,[n]),g=d.useMemo(()=>!o||!r?null:r==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,r]),v=An(c),b=An(u),y=d.useMemo(()=>({onDragStart:v,onDragChange:b}),[]),S=An((E,C)=>{const{onFocus:x,style:_,className:P,onKeyDown:O}=E.props,I=Object.assign({},_);return r==="gradient"&&(I.background=Jne(n,C.value)),d.cloneElement(E,{onFocus:M=>{l==null||l(C.index),x==null||x(M)},style:I,className:xe(P,{[`${t}-slider-handle-active`]:s===C.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&f&&f(C.index),O==null||O(M)}})}),w=d.useMemo(()=>({direction:"ltr",handleRender:S}),[]);return d.createElement(jae.Provider,{value:w},d.createElement(Dae.Provider,{value:y},d.createElement(Lae,Object.assign({},p,{className:xe(a,`${t}-slider`),tooltip:{open:!1},range:{editable:i,minCount:2},styles:{rail:{background:m},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},NLe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,o=a=>n(a[0]),i=a=>r(a[0]);return d.createElement(Bae,Object.assign({},e,{value:[t],onChange:o,onChangeComplete:i}))};function dU(e){return Ze(e).sort((t,n)=>t.percent-n.percent)}const ALe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:o,onActive:i,activeIndex:a,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=d.useMemo(()=>l.map(b=>({percent:b.percent,color:b.color.toRgbString()})),[l]),f=d.useMemo(()=>u.map(b=>b.percent),[u]),h=d.useRef(u),p=b=>{let{rawValues:y,draggingIndex:S,draggingValue:w}=b;if(y.length>u.length){const E=Jne(u,w),C=Ze(u);C.splice(S,0,{percent:w,color:E}),h.current=C}else h.current=u;s(!0),r(new Ss(dU(h.current)),!0)},m=b=>{let{deleteIndex:y,draggingIndex:S,draggingValue:w}=b,E=Ze(h.current);y!==-1?E.splice(y,1):(E[S]=Object.assign(Object.assign({},E[S]),{percent:w}),E=dU(E)),r(new Ss(E),!0)},g=b=>{const y=Ze(u);y.splice(b,1);const S=new Ss(y);r(S),o(S)},v=b=>{o(new Ss(u)),a>=b.length&&i(b.length-1),s(!1)};return c?d.createElement(Bae,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:a,onActive:i,onDragStart:p,onDragChange:m,onKeyDelete:g}):null},DLe=d.memo(ALe);var jLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const e=d.useContext(Pae),{mode:t,onModeChange:n,modeOptions:r,prefixCls:o,allowClear:i,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:f,gradientDragging:h}=e,p=jLe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=de.useMemo(()=>a.cleared?[{percent:0,color:new Ss("")},{percent:100,color:new Ss("")}]:a.getColors(),[a]),g=!a.isGradient(),[v,b]=de.useState(a);Zn(()=>{var D;g||b((D=m[f])===null||D===void 0?void 0:D.color)},[h,f]);const y=de.useMemo(()=>{var D;return g?a:h?v:(D=m[f])===null||D===void 0?void 0:D.color},[a,f,g,v,h]),[S,w]=de.useState(y),[E,C]=de.useState(0),x=S!=null&&S.equals(y)?y:S;Zn(()=>{w(y)},[E,y==null?void 0:y.toHexString()]);const _=(D,A)=>{let j=oa(D);if(a.cleared){const F=j.toRgb();if(!F.r&&!F.g&&!F.b&&A){const{type:V,value:W=0}=A;j=new Ss({h:V==="hue"?W:0,s:1,b:1,a:V==="alpha"?W/100:1})}else j=rx(j)}if(t==="single")return j;const k=Ze(m);return k[f]=Object.assign(Object.assign({},k[f]),{color:j}),new Ss(k)},P=(D,A,j)=>{const k=_(D,j);w(k.isGradient()?k.getColors()[f].color:k),l(k,A)},O=(D,A)=>{u(_(D,A)),C(j=>j+1)},I=D=>{l(_(D))};let M=null;const T=r.length>1;return(i||T)&&(M=de.createElement("div",{className:`${o}-operation`},T&&de.createElement($ae,{size:"small",options:r,value:t,onChange:n}),de.createElement(Mae,Object.assign({prefixCls:o,value:a,onChange:D=>{l(D),c==null||c()}},p)))),de.createElement(de.Fragment,null,M,de.createElement(DLe,Object.assign({},e,{colors:m})),de.createElement(eRe,{prefixCls:o,value:x==null?void 0:x.toHsb(),disabledAlpha:s,onChange:(D,A)=>{P(D,!0,A)},onChangeComplete:(D,A)=>{O(D,A)},components:FLe}),de.createElement(fLe,Object.assign({value:y,onChange:I,prefixCls:o,disabledAlpha:s},p)))},hU=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=d.useContext(Oae);return Array.isArray(n)?de.createElement(GRe,{value:t,presets:n,prefixCls:e,onChange:r}):null},LLe=e=>{const{prefixCls:t,presets:n,panelRender:r,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:h,activeIndex:p,onActive:m,format:g,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:S}=e,w=`${t}-inner`,E=de.useMemo(()=>({prefixCls:t,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:h,activeIndex:p,onActive:m,format:g,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:S}),[t,o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S]),C=de.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),x=de.createElement("div",{className:`${w}-content`},de.createElement(fU,null),Array.isArray(n)&&de.createElement(Uje,null),de.createElement(hU,null));return de.createElement(Pae.Provider,{value:E},de.createElement(Oae.Provider,{value:C},de.createElement("div",{className:w},typeof r=="function"?r(x,{components:{Picker:fU,Presets:hU}}):x)))};var BLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,disabled:i,format:a,className:s,showText:l,activeIndex:c}=e,u=BLe(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,h=`${f}-text`,p=`${h}-cell`,[m]=zi("ColorPicker"),g=de.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((S,w)=>{const E=c!==-1&&c!==w;return de.createElement("span",{key:w,className:xe(p,E&&`${p}-inactive`)},S.color.toRgbString()," ",S.percent,"%")});const b=n.toHexString().toUpperCase(),y=TA(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return y<100?`${b.slice(0,7)},${y}%`:b}},[n,a,l,c]),v=d.useMemo(()=>n.cleared?de.createElement(Mae,{prefixCls:r}):de.createElement($A,{prefixCls:r,color:n.toCssString()}),[n,r]);return de.createElement("div",Object.assign({ref:t,className:xe(f,s,{[`${f}-active`]:o,[`${f}-disabled`]:i})},Jr(u)),v,l&&de.createElement("div",{className:h},g))});function HLe(e,t,n){const[r]=zi("ColorPicker"),[o,i]=xn(e,{value:t}),[a,s]=d.useState("single"),[l,c]=d.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(S=>S);g.length||g.push("single");const v=new Set(g),b=[],y=(S,w)=>{v.has(S)&&b.push({label:w,value:S})};return y("single",r.singleColor),y("gradient",r.gradientColor),[b,v]},[n]),[u,f]=d.useState(null),h=An(g=>{f(g),i(g)}),p=d.useMemo(()=>{const g=oa(o||"");return g.equals(u)?u:g},[o,u]),m=d.useMemo(()=>{var g;return c.has(a)?a:(g=l[0])===null||g===void 0?void 0:g.value},[c,a,l]);return d.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,h,m,s,l]}const zae=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),pU=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},zae("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${_e(i)} ${a}`,borderRadius:"inherit"}})}},ULe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${_e(i)}`,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:_e(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${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 ${_e(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:_e(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:h}}}}}},WLe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,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:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${_e(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`}}},VLe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:f,colorWhite:h,marginXXS:p,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${_e(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:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).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:`${_e(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${_e(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}}}},KLe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),f=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),h={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[zae(_e(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:f,height:f,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${_e(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).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}}}},y6=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${_e(e.controlOutlineWidth)} ${n}`,outline:0}),qLe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},mU=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${_e(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},GLe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},y6(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},y6(e,r,s))}}},YLe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,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:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:_e(i)}}}},XLe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:f,marginSM:h,controlHeight:p,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:b,lineWidth:y,colorBorder:S,paddingXXS:w,fontSize:E,colorPrimaryHover:C,controlOutline:x}=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:`${_e(h)} 0 ${_e(f)}`}},[`${n}-panel`]:Object.assign({},WLe(e))},KLe(e)),pU(e,b)),ULe(e)),VLe(e)),mU(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${_e(y)} solid ${S}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(w).sub(y).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(w).sub(y)).equal(),fontSize:E,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:C},[`&${n}-trigger-active`]:Object.assign({},y6(e,o,x)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},mU(e,m)),pU(e,m)),GLe(e)),YLe(e))},qLe(e))},Bp(e,{focusElCls:`${n}-trigger-active`})]},QLe=Kn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=kn(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[XLe(o)]});var JLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{mode:t,value:n,defaultValue:r,format:o,defaultFormat:i,allowClear:a=!1,presets:s,children:l,trigger:c="click",open:u,disabled:f,placement:h="bottomLeft",arrow:p=!0,panelRender:m,showText:g,style:v,className:b,size:y,rootClassName:S,prefixCls:w,styles:E,disabledAlpha:C=!1,onFormatChange:x,onChange:_,onClear:P,onOpenChange:O,onChangeComplete:I,getPopupContainer:M,autoAdjustOverflow:T=!0,destroyTooltipOnHide:D,disabledFormat:A}=e,j=JLe(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:k,direction:F,colorPicker:V}=d.useContext(Yt),W=d.useContext(zo),K=f??W,[L,Q]=xn(!1,{value:u,postState:qe=>!K&&qe,onChange:O}),[ee,re]=xn(o,{value:o,defaultValue:i,onChange:x}),ie=k("color-picker",w),[G,X,ne,le,ce]=HLe(r,n,t),oe=d.useMemo(()=>TA(G)<100,[G]),[se,fe]=de.useState(null),te=qe=>{if(I){let Fe=oa(qe);C&&oe&&(Fe=rx(qe)),I(Fe)}},he=(qe,Fe)=>{let Ke=oa(qe);C&&oe&&(Ke=rx(Ke)),X(Ke),fe(null),_&&_(Ke,Ke.toCssString()),Fe||te(Ke)},[pe,Oe]=de.useState(0),[Me,Se]=de.useState(!1),ye=qe=>{if(le(qe),qe==="single"&&G.isGradient())Oe(0),he(new Ss(G.getColors()[0].color)),fe(G);else if(qe==="gradient"&&!G.isGradient()){const Fe=oe?rx(G):G;he(new Ss(se||[{percent:0,color:Fe},{percent:100,color:Fe}]))}},{status:ve}=de.useContext(Io),{compactSize:be,compactItemClassnames:Pe}=gc(ie,F),Ne=Eo(qe=>{var Fe;return(Fe=y??be)!==null&&Fe!==void 0?Fe:qe}),U=Mr(ie),[H,q,me]=QLe(ie,U),Ce={[`${ie}-rtl`]:F},ue=xe(S,me,U,Ce),Le=xe(ac(ie,ve),{[`${ie}-sm`]:Ne==="small",[`${ie}-lg`]:Ne==="large"},Pe,V==null?void 0:V.className,ue,b,q),He=xe(ie,ue),ge={open:L,trigger:c,placement:h,arrow:p,rootClassName:S,getPopupContainer:M,autoAdjustOverflow:T,destroyTooltipOnHide:D},De=Object.assign(Object.assign({},V==null?void 0:V.style),v);return H(de.createElement(fl,Object.assign({style:E==null?void 0:E.popup,styles:{body:E==null?void 0:E.popupOverlayInner},onOpenChange:qe=>{(!qe||!K)&&Q(qe)},content:de.createElement(ic,{form:!0},de.createElement(LLe,{mode:ne,onModeChange:ye,modeOptions:ce,prefixCls:ie,value:G,allowClear:a,disabled:K,disabledAlpha:C,presets:s,panelRender:m,format:ee,onFormatChange:re,onChange:he,onChangeComplete:te,onClear:P,activeIndex:pe,onActive:Oe,gradientDragging:Me,onGradientDragging:Se,disabledFormat:A})),classNames:{root:He}},ge),l||de.createElement(zLe,Object.assign({activeIndex:L?pe:-1,open:L,className:Le,style:De,prefixCls:ie,disabled:K,showText:g,format:ee},j,{color:G}))))},ZLe=jf(OD,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);OD._InternalPanelDoNotUseOrYouWillBeFired=ZLe;var e7e={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"},t7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:e7e}))},Hae=d.forwardRef(t7e),n7e={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"},r7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:n7e}))},MD=d.forwardRef(r7e),o7e={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"},i7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:o7e}))},a7e=d.forwardRef(i7e);function s7e(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 l7e(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 Uae(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=U$(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[c7e,u7e]=["week","WeekPicker"],[d7e,f7e]=["month","MonthPicker"],[h7e,p7e]=["year","YearPicker"],[m7e,g7e]=["quarter","QuarterPicker"],[Wae,gU]=["time","TimePicker"],v7e=e=>d.createElement(Hn,Object.assign({size:"small",type:"primary"},e));function Vae(e){return d.useMemo(()=>Object.assign({button:v7e},e),[e])}var y7e=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 o=0,r=Object.getOwnPropertySymbols(e);od.forwardRef((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:f,disabled:h,bordered:p=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:b,rootClassName:y,variant:S,picker:w}=n,E=y7e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),C=d.useRef(null),{getPrefixCls:x,direction:_,getPopupContainer:P,rangePicker:O}=d.useContext(Yt),I=x("picker",i),{compactSize:M,compactItemClassnames:T}=gc(I,_),D=x(),[A,j]=gd("rangePicker",S,p),k=Mr(I),[F,V,W]=Kie(I,k),[K]=Uae(n,I),L=Vae(s),Q=Eo(fe=>{var te;return(te=f??M)!==null&&te!==void 0?te:fe}),ee=d.useContext(zo),re=h??ee,ie=d.useContext(Io),{hasFeedback:G,status:X,feedbackIcon:ne}=ie,le=d.createElement(d.Fragment,null,w===Wae?d.createElement(MD,null):d.createElement(Hae,null),G&&ne);d.useImperativeHandle(r,()=>C.current);const[ce]=zi("Calendar",zb),oe=Object.assign(Object.assign({},ce),n.locale),[se]=vl("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return F(d.createElement(ic,{space:!0},d.createElement(lAe,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${I}-separator`},d.createElement(a7e,null)),disabled:re,ref:C,placement:u,placeholder:l7e(oe,w,m),suffixIcon:le,prevIcon:d.createElement("span",{className:`${I}-prev-icon`}),nextIcon:d.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:w},E,{className:xe({[`${I}-${Q}`]:Q,[`${I}-${A}`]:j},ac(I,md(X,b),G),V,T,l,O==null?void 0:O.className,W,k,y),style:Object.assign(Object.assign({},O==null?void 0:O.style),c),locale:oe.lang,prefixCls:I,getPopupContainer:a||P,generateConfig:e,components:L,direction:_,classNames:{popup:xe(V,g||v,W,k,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:se})},allowClear:K}))))});var S7e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const t=(l,c)=>{const u=c===gU?"timePicker":"datePicker";return d.forwardRef((h,p)=>{var m;const{prefixCls:g,getPopupContainer:v,components:b,style:y,className:S,rootClassName:w,size:E,bordered:C,placement:x,placeholder:_,popupClassName:P,dropdownClassName:O,disabled:I,status:M,variant:T,onCalendarChange:D}=h,A=S7e(h,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:j,direction:k,getPopupContainer:F,[u]:V}=d.useContext(Yt),W=j("picker",g),{compactSize:K,compactItemClassnames:L}=gc(W,k),Q=d.useRef(null),[ee,re]=gd("datePicker",T,C),ie=Mr(W),[G,X,ne]=Kie(W,ie);d.useImperativeHandle(p,()=>Q.current);const le={showToday:!0},ce=l||h.picker,oe=j(),{onSelect:se,multiple:fe}=A,te=se&&l==="time"&&!fe,he=(ue,Le,He)=>{D==null||D(ue,Le,He),te&&se(ue)},[pe,Oe]=Uae(h,W),Me=Vae(b),Se=Eo(ue=>{var Le;return(Le=E??K)!==null&&Le!==void 0?Le:ue}),ye=d.useContext(zo),ve=I??ye,be=d.useContext(Io),{hasFeedback:Pe,status:Ne,feedbackIcon:U}=be,H=d.createElement(d.Fragment,null,ce==="time"?d.createElement(MD,null):d.createElement(Hae,null),Pe&&U),[q]=zi("DatePicker",zb),me=Object.assign(Object.assign({},q),h.locale),[Ce]=vl("DatePicker",(m=h.popupStyle)===null||m===void 0?void 0:m.zIndex);return G(d.createElement(ic,{space:!0},d.createElement(pAe,Object.assign({ref:Q,placeholder:s7e(me,ce,_),suffixIcon:H,placement:x,prevIcon:d.createElement("span",{className:`${W}-prev-icon`}),nextIcon:d.createElement("span",{className:`${W}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${W}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${W}-super-next-icon`}),transitionName:`${oe}-slide-up`,picker:l,onCalendarChange:he},le,A,{locale:me.lang,className:xe({[`${W}-${Se}`]:Se,[`${W}-${ee}`]:re},ac(W,md(Ne,M),Pe),X,L,V==null?void 0:V.className,S,ne,ie,w),style:Object.assign(Object.assign({},V==null?void 0:V.style),y),prefixCls:W,getPopupContainer:v||F,generateConfig:e,components:Me,direction:k,disabled:ve,classNames:{popup:xe(X,ne,ie,w,P||O)},styles:{popup:Object.assign(Object.assign({},h.popupStyle),{zIndex:Ce})},allowClear:pe,removeIcon:Oe}))))})},n=t(),r=t(c7e,u7e),o=t(d7e,f7e),i=t(h7e,p7e),a=t(m7e,g7e),s=t(Wae,gU);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:s,QuarterPicker:a}},Kae=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=C7e(e),s=b7e(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,l},qa=Kae(eie),w7e=jf(qa,"popupAlign",void 0,"picker");qa._InternalPanelDoNotUseOrYouWillBeFired=w7e;const x7e=jf(qa.RangePicker,"popupAlign",void 0,"picker");qa._InternalRangePanelDoNotUseOrYouWillBeFired=x7e;qa.generatePicker=Kae;const E7e={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},TD=de.createContext({});var _7e=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 o=0,r=Object.getOwnPropertySymbols(e);oai(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function P7e(e,t,n){const r=d.useMemo(()=>t||$7e(n),[t,n]);return d.useMemo(()=>r.map(i=>{var{span:a}=i,s=_7e(i,["span"]);return a==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof a=="number"?a:loe(e,a)})}),[r,e])}var O7e=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 o=0,r=Object.getOwnPropertySymbols(e);oa).forEach(a=>{const{filled:s}=a,l=O7e(a,["filled"]);if(s){r.push(l),n.push(r),r=[],i=0;return}const c=t-i;i+=a.span||1,i>=t?(i>t?(o=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],i=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(a=>{const s=a.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=d.useMemo(()=>M7e(t,e),[t,e]);return n},R7e=e=>{let{children:t}=e;return t};function vU(e){return e!=null}const lR=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:i,labelStyle:a,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:h,styles:p}=e,m=n,g=d.useContext(TD),{classNames:v}=g;return l?d.createElement(m,{className:xe({[`${t}-item-label`]:h==="label",[`${t}-item-content`]:h==="content",[`${v==null?void 0:v.label}`]:h==="label",[`${v==null?void 0:v.content}`]:h==="content"},o),style:i,colSpan:r},vU(c)&&d.createElement("span",{style:Object.assign(Object.assign({},a),p==null?void 0:p.label)},c),vU(u)&&d.createElement("span",{style:Object.assign(Object.assign({},a),p==null?void 0:p.content)},u)):d.createElement(m,{className:xe(`${t}-item`,o),style:i,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(c||c===0)&&d.createElement("span",{className:xe(`${t}-item-label`,v==null?void 0:v.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},a),p==null?void 0:p.label)},c),(u||u===0)&&d.createElement("span",{className:xe(`${t}-item-content`,v==null?void 0:v.content),style:Object.assign(Object.assign({},s),p==null?void 0:p.content)},u)))};function cR(e,t,n){let{colon:r,prefixCls:o,bordered:i}=t,{component:a,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f,styles:h}=n;return e.map((p,m)=>{let{label:g,children:v,prefixCls:b=o,className:y,style:S,labelStyle:w,contentStyle:E,span:C=1,key:x,styles:_}=p;return typeof a=="string"?d.createElement(lR,{key:`${s}-${x||m}`,className:y,style:S,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.label),w),_==null?void 0:_.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},f),h==null?void 0:h.content),E),_==null?void 0:_.content)},span:C,colon:r,component:a,itemPrefixCls:b,bordered:i,label:l?g:null,content:c?v:null,type:s}):[d.createElement(lR,{key:`label-${x||m}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.label),S),w),_==null?void 0:_.label),span:1,colon:r,component:a[0],itemPrefixCls:b,bordered:i,label:g,type:"label"}),d.createElement(lR,{key:`content-${x||m}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),h==null?void 0:h.content),S),E),_==null?void 0:_.content),span:C*2-1,component:a[1],itemPrefixCls:b,bordered:i,content:v,type:"content"})]})}const I7e=e=>{const t=d.useContext(TD),{prefixCls:n,vertical:r,row:o,index:i,bordered:a}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${i}`,className:`${n}-row`},cR(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${i}`,className:`${n}-row`},cR(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:i,className:`${n}-row`},cR(o,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},k7e=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${_e(e.padding)} ${_e(e.paddingLG)}`,borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${_e(e.paddingSM)} ${_e(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${_e(e.paddingXS)} ${_e(e.padding)}`}}}}}},N7e=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Qn(e)),k7e(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},wa),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${_e(a)} ${_e(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},A7e=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),D7e=Kn("Descriptions",e=>{const t=kn(e,{});return N7e(t)},A7e);var j7e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l;const{prefixCls:c,title:u,extra:f,column:h,colon:p=!0,bordered:m,layout:g,children:v,className:b,rootClassName:y,style:S,size:w,labelStyle:E,contentStyle:C,styles:x,items:_,classNames:P}=e,O=j7e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:I,direction:M,descriptions:T}=d.useContext(Yt),D=I("descriptions",c),A=W$(),j=d.useMemo(()=>{var ee;return typeof h=="number"?h:(ee=loe(A,Object.assign(Object.assign({},E7e),h)))!==null&&ee!==void 0?ee:3},[A,h]),k=P7e(A,_,v),F=Eo(w),V=T7e(j,k),[W,K,L]=D7e(D),Q=d.useMemo(()=>{var ee,re,ie,G;return{labelStyle:E,contentStyle:C,styles:{content:Object.assign(Object.assign({},(ee=T==null?void 0:T.styles)===null||ee===void 0?void 0:ee.content),x==null?void 0:x.content),label:Object.assign(Object.assign({},(re=T==null?void 0:T.styles)===null||re===void 0?void 0:re.label),x==null?void 0:x.label)},classNames:{label:xe((ie=T==null?void 0:T.classNames)===null||ie===void 0?void 0:ie.label,P==null?void 0:P.label),content:xe((G=T==null?void 0:T.classNames)===null||G===void 0?void 0:G.content,P==null?void 0:P.content)}}},[E,C,x,P,T]);return W(d.createElement(TD.Provider,{value:Q},d.createElement("div",Object.assign({className:xe(D,T==null?void 0:T.className,(t=T==null?void 0:T.classNames)===null||t===void 0?void 0:t.root,P==null?void 0:P.root,{[`${D}-${F}`]:F&&F!=="default",[`${D}-bordered`]:!!m,[`${D}-rtl`]:M==="rtl"},b,y,K,L),style:Object.assign(Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),(n=T==null?void 0:T.styles)===null||n===void 0?void 0:n.root),x==null?void 0:x.root),S)},O),(u||f)&&d.createElement("div",{className:xe(`${D}-header`,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.header,P==null?void 0:P.header),style:Object.assign(Object.assign({},(o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.header),x==null?void 0:x.header)},u&&d.createElement("div",{className:xe(`${D}-title`,(i=T==null?void 0:T.classNames)===null||i===void 0?void 0:i.title,P==null?void 0:P.title),style:Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.title),x==null?void 0:x.title)},u),f&&d.createElement("div",{className:xe(`${D}-extra`,(s=T==null?void 0:T.classNames)===null||s===void 0?void 0:s.extra,P==null?void 0:P.extra),style:Object.assign(Object.assign({},(l=T==null?void 0:T.styles)===null||l===void 0?void 0:l.extra),x==null?void 0:x.extra)},f)),d.createElement("div",{className:`${D}-view`},d.createElement("table",null,d.createElement("tbody",null,V.map((ee,re)=>d.createElement(I7e,{key:re,index:re,colon:p,prefixCls:D,vertical:g==="vertical",bordered:m,row:ee}))))))))};Bs.Item=R7e;var yU=d.createContext(null),qae=d.createContext({}),F7e=["prefixCls","className","containerRef"],L7e=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,i=At(t,F7e),a=d.useContext(qae),s=a.panel,l=mc(s,o);return d.createElement("div",Ge({className:xe("".concat(n,"-content"),r),role:"dialog",ref:l},Jr(t,{aria:!0}),{"aria-modal":"true"},i))};function bU(e){return typeof e=="string"&&String(Number(e))===e?(yr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var SU={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function B7e(e,t){var n,r,o,i=e.prefixCls,a=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,f=e.autoFocus,h=e.keyboard,p=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,b=e.className,y=e.id,S=e.style,w=e.motion,E=e.width,C=e.height,x=e.children,_=e.mask,P=e.maskClosable,O=e.maskMotion,I=e.maskClassName,M=e.maskStyle,T=e.afterOpenChange,D=e.onClose,A=e.onMouseEnter,j=e.onMouseOver,k=e.onMouseLeave,F=e.onClick,V=e.onKeyDown,W=e.onKeyUp,K=e.styles,L=e.drawerRender,Q=d.useRef(),ee=d.useRef(),re=d.useRef();d.useImperativeHandle(t,function(){return Q.current});var ie=function(ve){var be=ve.keyCode,Pe=ve.shiftKey;switch(be){case ut.TAB:{if(be===ut.TAB){if(!Pe&&document.activeElement===re.current){var Ne;(Ne=ee.current)===null||Ne===void 0||Ne.focus({preventScroll:!0})}else if(Pe&&document.activeElement===ee.current){var U;(U=re.current)===null||U===void 0||U.focus({preventScroll:!0})}}break}case ut.ESC:{D&&h&&(ve.stopPropagation(),D(ve));break}}};d.useEffect(function(){if(a&&f){var ye;(ye=Q.current)===null||ye===void 0||ye.focus({preventScroll:!0})}},[a]);var G=d.useState(!1),X=$e(G,2),ne=X[0],le=X[1],ce=d.useContext(yU),oe;typeof c=="boolean"?oe=c?{}:{distance:0}:oe=c||{};var se=(n=(r=(o=oe)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:ce==null?void 0:ce.pushDistance)!==null&&n!==void 0?n:180,fe=d.useMemo(function(){return{pushDistance:se,push:function(){le(!0)},pull:function(){le(!1)}}},[se]);d.useEffect(function(){if(a){var ye;ce==null||(ye=ce.push)===null||ye===void 0||ye.call(ce)}else{var ve;ce==null||(ve=ce.pull)===null||ve===void 0||ve.call(ce)}},[a]),d.useEffect(function(){return function(){var ye;ce==null||(ye=ce.pull)===null||ye===void 0||ye.call(ce)}},[]);var te=_&&d.createElement(Jo,Ge({key:"mask"},O,{visible:a}),function(ye,ve){var be=ye.className,Pe=ye.style;return d.createElement("div",{className:xe("".concat(i,"-mask"),be,p==null?void 0:p.mask,I),style:z(z(z({},Pe),M),K==null?void 0:K.mask),onClick:P&&a?D:void 0,ref:ve})}),he=typeof w=="function"?w(s):w,pe={};if(ne&&se)switch(s){case"top":pe.transform="translateY(".concat(se,"px)");break;case"bottom":pe.transform="translateY(".concat(-se,"px)");break;case"left":pe.transform="translateX(".concat(se,"px)");break;default:pe.transform="translateX(".concat(-se,"px)");break}s==="left"||s==="right"?pe.width=bU(E):pe.height=bU(C);var Oe={onMouseEnter:A,onMouseOver:j,onMouseLeave:k,onClick:F,onKeyDown:V,onKeyUp:W},Me=d.createElement(Jo,Ge({key:"panel"},he,{visible:a,forceRender:u,onVisibleChanged:function(ve){T==null||T(ve)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(ye,ve){var be=ye.className,Pe=ye.style,Ne=d.createElement(L7e,Ge({id:y,containerRef:ve,prefixCls:i,className:xe(b,p==null?void 0:p.content),style:z(z({},S),K==null?void 0:K.content)},Jr(e,{aria:!0}),Oe),x);return d.createElement("div",Ge({className:xe("".concat(i,"-content-wrapper"),p==null?void 0:p.wrapper,be),style:z(z(z({},pe),Pe),K==null?void 0:K.wrapper)},Jr(e,{data:!0})),L?L(Ne):Ne)}),Se=z({},g);return v&&(Se.zIndex=v),d.createElement(yU.Provider,{value:fe},d.createElement("div",{className:xe(i,"".concat(i,"-").concat(s),m,Z(Z({},"".concat(i,"-open"),a),"".concat(i,"-inline"),l)),style:Se,tabIndex:-1,ref:Q,onKeyDown:ie},te,d.createElement("div",{tabIndex:0,ref:ee,style:SU,"aria-hidden":"true","data-sentinel":"start"}),Me,d.createElement("div",{tabIndex:0,ref:re,style:SU,"aria-hidden":"true","data-sentinel":"end"})))}var z7e=d.forwardRef(B7e),H7e=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,i=o===void 0?"rc-drawer":o,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,f=u===void 0?!0:u,h=t.width,p=h===void 0?378:h,m=t.mask,g=m===void 0?!0:m,v=t.maskClosable,b=v===void 0?!0:v,y=t.getContainer,S=t.forceRender,w=t.afterOpenChange,E=t.destroyOnClose,C=t.onMouseEnter,x=t.onMouseOver,_=t.onMouseLeave,P=t.onClick,O=t.onKeyDown,I=t.onKeyUp,M=t.panelRef,T=d.useState(!1),D=$e(T,2),A=D[0],j=D[1],k=d.useState(!1),F=$e(k,2),V=F[0],W=F[1];Zn(function(){W(!0)},[]);var K=V?r:!1,L=d.useRef(),Q=d.useRef();Zn(function(){K&&(Q.current=document.activeElement)},[K]);var ee=function(ne){var le;if(j(ne),w==null||w(ne),!ne&&Q.current&&!((le=L.current)!==null&&le!==void 0&&le.contains(Q.current))){var ce;(ce=Q.current)===null||ce===void 0||ce.focus({preventScroll:!0})}},re=d.useMemo(function(){return{panel:M}},[M]);if(!S&&!A&&!K&&E)return null;var ie={onMouseEnter:C,onMouseOver:x,onMouseLeave:_,onClick:P,onKeyDown:O,onKeyUp:I},G=z(z({},t),{},{open:K,prefixCls:i,placement:s,autoFocus:c,keyboard:f,width:p,mask:g,maskClosable:b,inline:y===!1,afterOpenChange:ee,ref:L},ie);return d.createElement(qae.Provider,{value:re},d.createElement(V1,{open:K||S||A,autoDestroy:!1,getContainer:y,autoLock:g&&(K||A)},d.createElement(z7e,G)))};const Gae=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:f,children:h,classNames:p,styles:m}=e,{drawer:g}=d.useContext(Yt),v=d.useCallback(E=>d.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},E),[l]),[b,y]=LA(Vg(e),Vg(g),{closable:!0,closeIconRender:v}),S=d.useMemo(()=>{var E,C;return!o&&!b?null:d.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(E=g==null?void 0:g.styles)===null||E===void 0?void 0:E.header),c),m==null?void 0:m.header),className:xe(`${r}-header`,{[`${r}-header-close-only`]:b&&!o&&!a},(C=g==null?void 0:g.classNames)===null||C===void 0?void 0:C.header,p==null?void 0:p.header)},d.createElement("div",{className:`${r}-header-title`},y,o&&d.createElement("div",{className:`${r}-title`},o)),a&&d.createElement("div",{className:`${r}-extra`},a))},[b,y,a,c,r,o]),w=d.useMemo(()=>{var E,C;if(!i)return null;const x=`${r}-footer`;return d.createElement("div",{className:xe(x,(E=g==null?void 0:g.classNames)===null||E===void 0?void 0:E.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(C=g==null?void 0:g.styles)===null||C===void 0?void 0:C.footer),f),m==null?void 0:m.footer)},i)},[i,f,r]);return d.createElement(d.Fragment,null,S,d.createElement("div",{className:xe(`${r}-body`,p==null?void 0:p.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?d.createElement(pd,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),w)},U7e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Yae=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Xae=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Yae({opacity:e},{opacity:1})),W7e=(e,t)=>[Xae(.7,t),Yae({transform:U7e(e)},{transform:"none"})],V7e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Xae(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:W7e(o,n)}),{})}}},K7e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:f,lineHeightLG:h,lineWidth:p,lineType:m,colorSplit:g,marginXS:v,colorIcon:b,colorIconHover:y,colorBgTextHover:S,colorBgTextActive:w,colorText:E,fontWeightStrong:C,footerPaddingBlock:x,footerPaddingInline:_,calc:P}=e,O=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:E,"&-pure":{position:"relative",background:i,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:o,pointerEvents:"auto"},[O]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${_e(c)} ${_e(u)}`,fontSize:f,lineHeight:h,borderBottom:`${_e(p)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:P(f).add(l).equal(),height:P(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:b,fontWeight:C,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:y,backgroundColor:S,textDecoration:"none"},"&:active":{backgroundColor:w}},Ka(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,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:`${_e(x)} ${_e(_)}`,borderTop:`${_e(p)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},q7e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Qae=Kn("Drawer",e=>{const t=kn(e,{});return[K7e(t),V7e(t)]},q7e);var Jae=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=G7e,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:f,style:h,className:p,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:b,contentWrapperStyle:y}=e,S=Jae(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:w,getPrefixCls:E,direction:C,drawer:x}=d.useContext(Yt),_=E("drawer",u),[P,O,I]=Qae(_),M=f===void 0&&w?()=>w(document.body):f,T=xe({"no-mask":!i,[`${_}-rtl`]:C==="rtl"},t,O,I),D=d.useMemo(()=>n??(o==="large"?736:378),[n,o]),A=d.useMemo(()=>r??(o==="large"?736:378),[r,o]),j={motionName:Mi(_,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},k=re=>({motionName:Mi(_,`panel-motion-${re}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),F=Sre(),[V,W]=vl("Drawer",S.zIndex),{classNames:K={},styles:L={}}=S,{classNames:Q={},styles:ee={}}=x||{};return P(d.createElement(ic,{form:!0,space:!0},d.createElement(B1.Provider,{value:W},d.createElement(H7e,Object.assign({prefixCls:_,onClose:c,maskMotion:j,motion:k},S,{classNames:{mask:xe(K.mask,Q.mask),content:xe(K.content,Q.content),wrapper:xe(K.wrapper,Q.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},L.mask),v),ee.mask),content:Object.assign(Object.assign(Object.assign({},L.content),b),ee.content),wrapper:Object.assign(Object.assign(Object.assign({},L.wrapper),y),ee.wrapper)},open:s??m,mask:i,push:a,width:D,height:A,style:Object.assign(Object.assign({},x==null?void 0:x.style),h),className:xe(x==null?void 0:x.className,p),rootClassName:T,getContainer:M,afterOpenChange:l??g,panelRef:F,zIndex:V}),d.createElement(Gae,Object.assign({prefixCls:_},S,{onClose:c}))))))},Y7e=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=Jae(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=d.useContext(Yt),s=a("drawer",t),[l,c,u]=Qae(s),f=xe(s,`${s}-pure`,`${s}-${o}`,c,u,r);return l(d.createElement("div",{className:f,style:n},d.createElement(Gae,Object.assign({prefixCls:s},i))))};dP._InternalPanelDoNotUseOrYouWillBeFired=Y7e;function CU(e){return["small","middle","large"].includes(e)}function wU(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Zae=de.createContext({latestIndex:0}),X7e=Zae.Provider,Q7e=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=d.useContext(Zae);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:i},r),n{var n,r,o;const{getPrefixCls:i,space:a,direction:s}=d.useContext(Yt),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:h,direction:p="horizontal",prefixCls:m,split:g,style:v,wrap:b=!1,classNames:y,styles:S}=e,w=J7e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,C]=Array.isArray(l)?l:[l,l],x=CU(C),_=CU(E),P=wU(C),O=wU(E),I=ai(h,{keepEmpty:!0}),M=c===void 0&&p==="horizontal"?"center":c,T=i("space",m),[D,A,j]=zne(T),k=xe(T,a==null?void 0:a.className,A,`${T}-${p}`,{[`${T}-rtl`]:s==="rtl",[`${T}-align-${M}`]:M,[`${T}-gap-row-${C}`]:x,[`${T}-gap-col-${E}`]:_},u,f,j),F=xe(`${T}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(o=a==null?void 0:a.classNames)===null||o===void 0?void 0:o.item);let V=0;const W=I.map((Q,ee)=>{var re,ie;Q!=null&&(V=ee);const G=(Q==null?void 0:Q.key)||`${F}-${ee}`;return d.createElement(Q7e,{className:F,key:G,index:ee,split:g,style:(re=S==null?void 0:S.item)!==null&&re!==void 0?re:(ie=a==null?void 0:a.styles)===null||ie===void 0?void 0:ie.item},Q)}),K=d.useMemo(()=>({latestIndex:V}),[V]);if(I.length===0)return null;const L={};return b&&(L.flexWrap="wrap"),!_&&O&&(L.columnGap=E),!x&&P&&(L.rowGap=C),D(d.createElement("div",Object.assign({ref:t,className:k,style:Object.assign(Object.assign(Object.assign({},L),a==null?void 0:a.style),v)},w),d.createElement(X7e,{value:K},W)))}),oo=Z7e;oo.Compact=ATe;var eBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(Yt),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:h,menu:p,arrow:m,autoFocus:g,overlay:v,trigger:b,align:y,open:S,onOpenChange:w,placement:E,getPopupContainer:C,href:x,icon:_=d.createElement(aD,null),title:P,buttonsRender:O=X=>X,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:T,overlayStyle:D,destroyPopupOnHide:A,dropdownRender:j}=e,k=eBe(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"]),F=n("dropdown",o),V=`${F}-button`,W={menu:p,arrow:m,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:C||t,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:T,overlayStyle:D,destroyPopupOnHide:A,dropdownRender:j},{compactSize:K,compactItemClassnames:L}=gc(F,r),Q=xe(V,L,h);"overlay"in e&&(W.overlay=v),"open"in e&&(W.open=S),"placement"in e?W.placement=E:W.placement=r==="rtl"?"bottomLeft":"bottomRight";const ee=d.createElement(Hn,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:x,title:P},f),re=d.createElement(Hn,{type:i,danger:a,icon:_}),[ie,G]=O([ee,re]);return d.createElement(oo.Compact,Object.assign({className:Q,size:K,block:!0},k),ie,d.createElement(Q$,Object.assign({},W),G))};ese.__ANT_BUTTON=!0;const RD=Q$;RD.Button=ese;function rE(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const tBe=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)"}}}}},rBe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_e(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 ${_e(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),_U=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},oBe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Qn(e)),rBe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},_U(e,e.controlHeightSM)),"&-large":Object.assign({},_U(e,e.controlHeightLG))})}},iBe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${i}-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:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-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:RA,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},$U=(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"}}}}},aBe=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"}}}}},jl=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),nse=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:jl(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},sBe=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, + 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)"}}}}},nBe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_e(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 ${_e(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),xU=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rBe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Qn(e)),nBe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},xU(e,e.controlHeightSM)),"&-large":Object.assign({},xU(e,e.controlHeightLG))})}},oBe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${i}-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:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-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:MA,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},EU=(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"}}}}},iBe=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"}}}}},jl=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),tse=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:jl(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},aBe=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`]:jl(e)}},[`@media (max-width: ${_e(e.screenXSMax)})`]:[nse(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:jl(e)}}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:jl(e)}}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:jl(e)}}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:jl(e)}}}}},lBe=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, + ${r}-col-xl-24${n}-label`]:jl(e)}},[`@media (max-width: ${_e(e.screenXSMax)})`]:[tse(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:jl(e)}}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:jl(e)}}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:jl(e)}}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:jl(e)}}}}},sBe=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`]:jl(e),[`@media (max-width: ${_e(e.screenXSMax)})`]:[nse(e),{[t]:{[`${n}-col-xs-24${t}-label`]:jl(e)}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:jl(e)}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:jl(e)}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:jl(e)}}}},cBe=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}),rse=(e,t)=>kn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ND=Kn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=rse(e,n);return[oBe(r),iBe(r),nBe(r),$U(r,r.componentCls),$U(r,r.formItemCls),aBe(r),sBe(r),lBe(r),H1(r),RA]},cBe,{order:-1e3}),PU=[];function uR(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 ose=e=>{let{help:t,helpStatus:n,errors:r=PU,warnings:o=PU,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(BA),c=`${l}-item-explain`,u=Mr(l),[f,h,p]=ND(l,u),m=d.useMemo(()=>Ug(l),[l]),g=nE(r),v=nE(o),b=d.useMemo(()=>t!=null?[uR(t,"help",n)]:[].concat(Ze(g.map((w,E)=>uR(w,"error","error",E))),Ze(v.map((w,E)=>uR(w,"warning","warning",E)))),[t,n,g,v]),y=d.useMemo(()=>{const w={};return b.forEach(E=>{let{key:C}=E;w[C]=(w[C]||0)+1}),b.map((E,C)=>Object.assign(Object.assign({},E),{key:w[E.key]>1?`${E.key}-fallback-${C}`:E.key}))},[b]),S={};return a&&(S.id=`${a}_help`),f(d.createElement(Jo,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},w=>{const{className:E,style:C}=w;return d.createElement("div",Object.assign({},S,{className:xe(c,E,p,u,i,h),style:C,role:"alert"}),d.createElement(b$,Object.assign({keys:y},Ug(l),{motionName:`${l}-show-help-item`,component:!1}),x=>{const{key:_,error:P,errorStatus:O,className:I,style:M}=x;return d.createElement("div",{key:_,className:xe(I,{[`${c}-${O}`]:O}),style:M},P)}))}))},uBe=["parentNode"],dBe="form_item";function Vy(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ise(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:uBe.includes(n)?`${dBe}_${n}`:n}function ase(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function OU(e){return Vy(e).join("_")}function MU(e,t){const n=t.getFieldInstance(e),r=Q_(n);if(r)return r;const o=ise(Vy(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function sse(e){const[t]=LA(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=OU(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=MU(o,r);a&&FMe(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},focusField:o=>{var i;const a=MU(o,r);a&&((i=a.focus)===null||i===void 0||i.call(a))},getFieldInstance:o=>{const i=OU(o);return n.current[i]}}),[e,t]);return[r]}var fBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=d.useContext(zo),{getPrefixCls:r,direction:o,form:i}=d.useContext(Yt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:h,labelAlign:p,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:S,requiredMark:w,onFinishFailed:E,name:C,style:x,feedbackIcons:_,variant:P}=e,O=fBe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Eo(c),M=d.useContext(Bte),T=d.useMemo(()=>w!==void 0?w:b?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[b,w,i]),D=h??(i==null?void 0:i.colon),A=r("form",a),j=Mr(A),[k,F,V]=ND(A,j),W=xe(A,`${A}-${y}`,{[`${A}-hide-required-mark`]:T===!1,[`${A}-rtl`]:o==="rtl",[`${A}-${I}`]:I},V,j,F,i==null?void 0:i.className,s,l),[K]=sse(f),{__INTERNAL__:L}=K;L.name=C;const Q=d.useMemo(()=>({name:C,labelAlign:p,labelCol:g,labelWrap:m,wrapperCol:v,vertical:y==="vertical",colon:D,requiredMark:T,itemRef:L.itemRef,form:K,feedbackIcons:_}),[C,p,g,v,y,D,T,K,_]),ee=d.useRef(null);d.useImperativeHandle(t,()=>{var G;return Object.assign(Object.assign({},K),{nativeElement:(G=ee.current)===null||G===void 0?void 0:G.nativeElement})});const re=(G,X)=>{if(G){let ne={block:"nearest"};typeof G=="object"&&(ne=Object.assign(Object.assign({},ne),G)),K.scrollToField(X,ne),ne.focus&&K.focusField(X)}},ie=G=>{if(E==null||E(G),G.errorFields.length){const X=G.errorFields[0].name;if(S!==void 0){re(S,X);return}i&&i.scrollToFirstError!==void 0&&re(i.scrollToFirstError,X)}};return k(d.createElement(bre.Provider,{value:P},d.createElement(SA,{disabled:u},d.createElement(fp.Provider,{value:I},d.createElement(yre,{validateMessages:M},d.createElement(od.Provider,{value:Q},d.createElement(Tv,Object.assign({id:C},O,{name:C,onFinishFailed:ie,form:K,ref:ee,style:Object.assign(Object.assign({},i==null?void 0:i.style),x),className:W}))))))))},pBe=d.forwardRef(hBe);function mBe(e){if(typeof e=="function")return e;const t=ai(e);return t.length<=1?t[0]:t}const lse=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Io);return{status:e,errors:t,warnings:n}};lse.Context=Io;function gBe(e){const[t,n]=d.useState(e),r=d.useRef(null),o=d.useRef([]),i=d.useRef(!1);d.useEffect(()=>(i.current=!1,()=>{i.current=!0,zn.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=zn(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,a]}function vBe(){const{itemRef:e}=d.useContext(od),t=d.useRef({});function n(r,o){const i=o&&typeof o=="object"&&Af(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Si(e(r),i)),t.current.ref}return n}const yBe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},bBe=$v(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=rse(e,n);return[yBe(r)]});var SBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:h,onErrorVisibleChanged:p,label:m}=e,g=`${t}-item`,v=d.useContext(od),b=d.useMemo(()=>{let D=Object.assign({},o||v.wrapperCol||{});return m===null&&!r&&!o&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const k=j?[j]:[],F=Mo(v.labelCol,k),V=typeof F=="object"?F:{},W=Mo(D,k),K=typeof W=="object"?W:{};"span"in V&&!("offset"in K)&&V.spanSBe(v,["labelCol","wrapperCol"]),[v]),w=d.useRef(null),[E,C]=d.useState(0);Zn(()=>{c&&w.current?C(w.current.clientHeight):C(0)},[c]);const x=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},i)),_=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),P=h!==null||a.length||s.length?d.createElement(BA.Provider,{value:_},d.createElement(ose,{fieldId:f,errors:a,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})):null,O={};f&&(O.id=`${f}_extra`);const I=c?d.createElement("div",Object.assign({},O,{className:`${g}-extra`,ref:w}),c):null,M=P||I?d.createElement("div",{className:`${g}-additional`,style:h?{minHeight:h+E}:{}},P,I):null,T=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:x,errorList:P,extra:I}):d.createElement(d.Fragment,null,x,M);return d.createElement(od.Provider,{value:S},d.createElement(gp,Object.assign({},b,{className:y}),T),d.createElement(bBe,{prefixCls:t}))};var xBe={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"},EBe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:xBe}))},_Be=d.forwardRef(EBe),$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 o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[h]=zi("Form"),{labelAlign:p,labelCol:m,labelWrap:g,colon:v}=d.useContext(od);if(!n)return null;const b=o||m||{},y=i||p,S=`${t}-item-label`,w=xe(S,y==="left"&&`${S}-left`,b.className,{[`${S}-wrap`]:!!g});let E=n;const C=a===!0||v!==!1&&a!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(E=n.replace(/[:|:]\s*$/,""));const _=PBe(c);if(_){const{icon:M=d.createElement(_Be,null)}=_,T=$Be(_,["icon"]),D=d.createElement(xa,Object.assign({},T),d.cloneElement(M,{className:`${t}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));E=d.createElement(d.Fragment,null,E,D)}const P=l==="optional",O=typeof l=="function";O?E=l(E,{required:!!s}):P&&!s&&(E=d.createElement(d.Fragment,null,E,d.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((f=Os.Form)===null||f===void 0?void 0:f.optional))));const I=xe({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:P||O,[`${t}-item-no-colon`]:!C});return d.createElement(gp,Object.assign({},b,{className:w}),d.createElement("label",{htmlFor:r,className:I,title:typeof n=="string"?n:""},E))},MBe={success:Lp,warning:Df,error:ou,validating:Gc};function cse(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=d.useContext(od),f=ase(n,r,s,null,!!o,i),{isFormItemInput:h,status:p,hasFeedback:m,feedbackIcon:g}=d.useContext(Io),v=d.useMemo(()=>{var b;let y;if(o){const w=o!==!0&&o.icons||u,E=f&&((b=w==null?void 0:w({status:f,errors:n,warnings:r}))===null||b===void 0?void 0:b[f]),C=f&&MBe[f];y=E!==!1&&C?d.createElement("span",{className:xe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||d.createElement(C,null)):null}const S={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:y,isFormItemInput:!0};return l&&(S.status=(f??p)||"",S.isFormItemInput=h,S.hasFeedback=!!(o??m),S.feedbackIcon=o!==void 0?S.feedbackIcon:g),S},[f,o,l,h,p]);return d.createElement(Io.Provider,{value:v},t)}var TBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{if(I&&x.current){const V=getComputedStyle(x.current);D(parseInt(V.marginBottom,10))}},[I,M]);const A=V=>{V||D(null)},k=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const W=V?_:c.errors,K=V?P:c.warnings;return ase(W,K,c,"",!!u,l)}(),F=xe(S,n,r,{[`${S}-with-help`]:O||_.length||P.length,[`${S}-has-feedback`]:k&&u,[`${S}-has-success`]:k==="success",[`${S}-has-warning`]:k==="warning",[`${S}-has-error`]:k==="error",[`${S}-is-validating`]:k==="validating",[`${S}-hidden`]:f,[`${S}-${b}`]:b});return d.createElement("div",{className:F,style:o,ref:x},d.createElement(sP,Object.assign({className:`${S}-row`},Yn(y,["_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"])),d.createElement(OBe,Object.assign({htmlFor:p},e,{requiredMark:w,required:m??g,prefixCls:t,vertical:C})),d.createElement(wBe,Object.assign({},e,c,{errors:_,warnings:P,prefixCls:t,status:k,help:i,marginBottom:T,onErrorVisibleChanged:A}),d.createElement(vre.Provider,{value:v},d.createElement(cse,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:k},h)))),!!T&&d.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-T}}))}const IBe="__SPLIT__";function kBe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const NBe=d.memo(e=>{let{children:t}=e;return t},(e,t)=>kBe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function TU(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ABe(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:h="onChange",validateTrigger:p,hidden:m,help:g,layout:v}=e,{getPrefixCls:b}=d.useContext(Yt),{name:y}=d.useContext(od),S=mBe(l),w=typeof S=="function",E=d.useContext(vre),{validateTrigger:C}=d.useContext(_f),x=p!==void 0?p:C,_=t!=null,P=b("form",i),O=Mr(P),[I,M,T]=ND(P,O);ru();const D=d.useContext(Vb),A=d.useRef(null),[j,k]=gBe({}),[F,V]=hp(()=>TU()),W=G=>{const X=D==null?void 0:D.getKey(G.name);if(V(G.destroy?TU():G,!0),n&&g!==!1&&E){let ne=G.name;if(G.destroy)ne=A.current||ne;else if(X!==void 0){const[le,ce]=X;ne=[le].concat(Ze(ce)),A.current=ne}E(G,ne)}},K=(G,X)=>{k(ne=>{const le=Object.assign({},ne),oe=[].concat(Ze(G.name.slice(0,-1)),Ze(X)).join(IBe);return G.destroy?delete le[oe]:le[oe]=G,le})},[L,Q]=d.useMemo(()=>{const G=Ze(F.errors),X=Ze(F.warnings);return Object.values(j).forEach(ne=>{G.push.apply(G,Ze(ne.errors||[])),X.push.apply(X,Ze(ne.warnings||[]))}),[G,X]},[j,F.errors,F.warnings]),ee=vBe();function re(G,X,ne){return n&&!m?d.createElement(cse,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:L,warnings:Q,noStyle:!0},G):d.createElement(RBe,Object.assign({key:"row"},e,{className:xe(r,T,O,M),prefixCls:P,fieldId:X,isRequired:ne,errors:L,warnings:Q,meta:F,onSubItemMetaChange:K,layout:v}),G)}if(!_&&!w&&!o)return I(re(S));let ie={};return typeof u=="string"?ie.label=u:t&&(ie.label=String(t)),f&&(ie=Object.assign(Object.assign({},ie),f)),I(d.createElement(FA,Object.assign({},e,{messageVariables:ie,trigger:h,validateTrigger:x,onMetaChange:W}),(G,X,ne)=>{const le=Vy(t).length&&X?X.name:[],ce=ise(le,y),oe=c!==void 0?c:!!(s!=null&&s.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const he=te(ne);return(he==null?void 0:he.required)&&!(he!=null&&he.warningOnly)}return!1})),se=Object.assign({},G);let fe=null;if(Array.isArray(S)&&_)fe=S;else if(!(w&&(!(a||o)||_))){if(!(o&&!w&&!_))if(d.isValidElement(S)){const te=Object.assign(Object.assign({},S.props),se);if(te.id||(te.id=ce),g||L.length>0||Q.length>0||e.extra){const Oe=[];(g||L.length>0)&&Oe.push(`${ce}_help`),e.extra&&Oe.push(`${ce}_extra`),te["aria-describedby"]=Oe.join(" ")}L.length>0&&(te["aria-invalid"]="true"),oe&&(te["aria-required"]="true"),tc(S)&&(te.ref=ee(le,S)),new Set([].concat(Ze(Vy(h)),Ze(Vy(x)))).forEach(Oe=>{te[Oe]=function(){for(var Me,Se,ye,ve,be,Pe=arguments.length,Ne=new Array(Pe),U=0;U{var{prefixCls:t,children:n}=e,r=DBe(e,["prefixCls","children"]);const{getPrefixCls:o}=d.useContext(Yt),i=o("form",t),a=d.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return d.createElement(hre,Object.assign({},r),(s,l,c)=>d.createElement(BA.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function FBe(){const{form:e}=d.useContext(od);return e}const Vn=pBe;Vn.Item=use;Vn.List=jBe;Vn.ErrorList=ose;Vn.useForm=sse;Vn.useFormInstance=FBe;Vn.useWatch=gre;Vn.Provider=yre;Vn.create=()=>{};function dse(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function LBe(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 jc(e,t,n,r){var o=bb.unstable_batchedUpdates?function(a){bb.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var iS=d.createContext(null),BBe=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,i=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,h=t.transform,p=t.count,m=t.scale,g=t.minScale,v=t.maxScale,b=t.closeIcon,y=t.onActive,S=t.onClose,w=t.onZoomIn,E=t.onZoomOut,C=t.onRotateRight,x=t.onRotateLeft,_=t.onFlipX,P=t.onFlipY,O=t.onReset,I=t.toolbarRender,M=t.zIndex,T=t.image,D=d.useContext(iS),A=s.rotateLeft,j=s.rotateRight,k=s.zoomIn,F=s.zoomOut,V=s.close,W=s.left,K=s.right,L=s.flipX,Q=s.flipY,ee="".concat(i,"-operations-operation");d.useEffect(function(){var he=function(Oe){Oe.keyCode===ut.ESC&&S()};return n&&window.addEventListener("keydown",he),function(){window.removeEventListener("keydown",he)}},[n]);var re=function(pe,Oe){pe.preventDefault(),pe.stopPropagation(),y(Oe)},ie=d.useCallback(function(he){var pe=he.type,Oe=he.disabled,Me=he.onClick,Se=he.icon;return d.createElement("div",{key:pe,className:xe(ee,"".concat(i,"-operations-operation-").concat(pe),Z({},"".concat(i,"-operations-operation-disabled"),!!Oe)),onClick:Me},Se)},[ee,i]),G=c?ie({icon:W,onClick:function(pe){return re(pe,-1)},type:"prev",disabled:f===0}):void 0,X=c?ie({icon:K,onClick:function(pe){return re(pe,1)},type:"next",disabled:f===p-1}):void 0,ne=ie({icon:Q,onClick:P,type:"flipY"}),le=ie({icon:L,onClick:_,type:"flipX"}),ce=ie({icon:A,onClick:x,type:"rotateLeft"}),oe=ie({icon:j,onClick:C,type:"rotateRight"}),se=ie({icon:F,onClick:E,type:"zoomOut",disabled:m<=g}),fe=ie({icon:k,onClick:w,type:"zoomIn",disabled:m===v}),te=d.createElement("div",{className:"".concat(i,"-operations")},ne,le,ce,oe,se,fe);return d.createElement(Jo,{visible:n,motionName:r},function(he){var pe=he.className,Oe=he.style;return d.createElement(W1,{open:!0,getContainer:o??document.body},d.createElement("div",{className:xe("".concat(i,"-operations-wrapper"),pe,a),style:z(z({},Oe),{},{zIndex:M})},b===null?null:d.createElement("button",{className:"".concat(i,"-close"),onClick:S},b||V),c&&d.createElement(d.Fragment,null,d.createElement("div",{className:xe("".concat(i,"-switch-left"),Z({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:function(Se){return re(Se,-1)}},W),d.createElement("div",{className:xe("".concat(i,"-switch-right"),Z({},"".concat(i,"-switch-right-disabled"),f===p-1)),onClick:function(Se){return re(Se,1)}},K)),d.createElement("div",{className:"".concat(i,"-footer")},u&&d.createElement("div",{className:"".concat(i,"-progress")},l?l(f+1,p):"".concat(f+1," / ").concat(p)),I?I(te,z(z({icons:{prevIcon:G,nextIcon:X,flipYIcon:ne,flipXIcon:le,rotateLeftIcon:ce,rotateRightIcon:oe,zoomOutIcon:se,zoomInIcon:fe},actions:{onActive:y,onFlipY:P,onFlipX:_,onRotateLeft:x,onRotateRight:C,onZoomOut:E,onZoomIn:w,onReset:O,onClose:S},transform:h},D?{current:f,total:p}:{}),{},{image:T})):te)))})},YC={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function zBe(e,t,n,r){var o=d.useRef(null),i=d.useRef([]),a=d.useState(YC),s=$e(a,2),l=s[0],c=s[1],u=function(m){c(YC),dl(YC,l)||r==null||r({transform:YC,action:m})},f=function(m,g){o.current===null&&(i.current=[],o.current=zn(function(){c(function(v){var b=v;return i.current.forEach(function(y){b=z(z({},b),y)}),o.current=null,r==null||r({transform:b,action:g}),b})})),i.current.push(z(z({},l),m))},h=function(m,g,v,b,y){var S=e.current,w=S.width,E=S.height,C=S.offsetWidth,x=S.offsetHeight,_=S.offsetLeft,P=S.offsetTop,O=m,I=l.scale*m;I>n?(I=n,O=n/l.scale):Ir){if(t>0)return Z({},e,i);if(t<0&&or)return Z({},e,t<0?i:-i);return{}}function fse(e,t,n,r){var o=dse(),i=o.width,a=o.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=z(z({},RU("x",n,e,i)),RU("y",r,t,a))),s}var Km=1,HBe=1;function UBe(e,t,n,r,o,i,a){var s=o.rotate,l=o.scale,c=o.x,u=o.y,f=d.useState(!1),h=$e(f,2),p=h[0],m=h[1],g=d.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(E){!t||E.button!==0||(E.preventDefault(),E.stopPropagation(),g.current={diffX:E.pageX-c,diffY:E.pageY-u,transformX:c,transformY:u},m(!0))},b=function(E){n&&p&&i({x:E.pageX-g.current.diffX,y:E.pageY-g.current.diffY},"move")},y=function(){if(n&&p){m(!1);var E=g.current,C=E.transformX,x=E.transformY,_=c!==C&&u!==x;if(!_)return;var P=e.current.offsetWidth*l,O=e.current.offsetHeight*l,I=e.current.getBoundingClientRect(),M=I.left,T=I.top,D=s%180!==0,A=fse(D?O:P,D?P:O,M,T);A&&i(z({},A),"dragRebound")}},S=function(E){if(!(!n||E.deltaY==0)){var C=Math.abs(E.deltaY/100),x=Math.min(C,HBe),_=Km+x*r;E.deltaY>0&&(_=Km/_),a(_,"wheel",E.clientX,E.clientY)}};return d.useEffect(function(){var w,E,C,x;if(t){C=jc(window,"mouseup",y,!1),x=jc(window,"mousemove",b,!1);try{window.top!==window.self&&(w=jc(window.top,"mouseup",y,!1),E=jc(window.top,"mousemove",b,!1))}catch{}}return function(){var _,P,O,I;(_=C)===null||_===void 0||_.remove(),(P=x)===null||P===void 0||P.remove(),(O=w)===null||O===void 0||O.remove(),(I=E)===null||I===void 0||I.remove()}},[n,p,c,u,s,t]),{isMoving:p,onMouseDown:v,onMouseMove:b,onMouseUp:y,onWheel:S}}function WBe(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 hse(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=d.useState(n?"loading":"normal"),i=$e(o,2),a=i[0],s=i[1],l=d.useRef(!1),c=a==="error";d.useEffect(function(){var p=!0;return WBe(t).then(function(m){!m&&p&&s("error")}),function(){p=!1}},[t]),d.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=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[f,h,a]}function rE(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function VBe(e,t,n,r){var o=rE(e,n),i=rE(t,r);if(o===0&&i===0)return[e.x,e.y];var a=o/(o+i),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function KBe(e,t,n,r,o,i,a){var s=o.rotate,l=o.scale,c=o.x,u=o.y,f=d.useState(!1),h=$e(f,2),p=h[0],m=h[1],g=d.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(E){g.current=z(z({},g.current),E)},b=function(E){if(t){E.stopPropagation(),m(!0);var C=E.touches,x=C===void 0?[]:C;x.length>1?v({point1:{x:x[0].clientX,y:x[0].clientY},point2:{x:x[1].clientX,y:x[1].clientY},eventType:"touchZoom"}):v({point1:{x:x[0].clientX-c,y:x[0].clientY-u},eventType:"move"})}},y=function(E){var C=E.touches,x=C===void 0?[]:C,_=g.current,P=_.point1,O=_.point2,I=_.eventType;if(x.length>1&&I==="touchZoom"){var M={x:x[0].clientX,y:x[0].clientY},T={x:x[1].clientX,y:x[1].clientY},D=VBe(P,O,M,T),A=$e(D,2),j=A[0],k=A[1],F=rE(M,T)/rE(P,O);a(F,"touchZoom",j,k,!0),v({point1:M,point2:T,eventType:"touchZoom"})}else I==="move"&&(i({x:x[0].clientX-P.x,y:x[0].clientY-P.y},"move"),v({eventType:"move"}))},S=function(){if(n){if(p&&m(!1),v({eventType:"none"}),r>l)return i({x:0,y:0,scale:r},"touchZoom");var E=e.current.offsetWidth*l,C=e.current.offsetHeight*l,x=e.current.getBoundingClientRect(),_=x.left,P=x.top,O=s%180!==0,I=fse(O?C:E,O?E:C,_,P);I&&i(z({},I),"dragRebound")}};return d.useEffect(function(){var w;return n&&t&&(w=jc(window,"touchmove",function(E){return E.preventDefault()},{passive:!1})),function(){var E;(E=w)===null||E===void 0||E.remove()}},[n,t]),{isTouching:p,onTouchStart:b,onTouchMove:y,onTouchEnd:S}}var qBe=["fallback","src","imgRef"],GBe=["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"],YBe=function(t){var n=t.fallback,r=t.src,o=t.imgRef,i=At(t,qBe),a=hse({src:r,fallback:n}),s=$e(a,2),l=s[0],c=s[1];return de.createElement("img",Ge({ref:function(f){o.current=f,l(f)}},i,c))},pse=function(t){var n=t.prefixCls,r=t.src,o=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,h=f===void 0?{}:f,p=t.rootClassName,m=t.closeIcon,g=t.getContainer,v=t.current,b=v===void 0?0:v,y=t.count,S=y===void 0?1:y,w=t.countRender,E=t.scaleStep,C=E===void 0?.5:E,x=t.minScale,_=x===void 0?1:x,P=t.maxScale,O=P===void 0?50:P,I=t.transitionName,M=I===void 0?"zoom":I,T=t.maskTransitionName,D=T===void 0?"fade":T,A=t.imageRender,j=t.imgCommonProps,k=t.toolbarRender,F=t.onTransform,V=t.onChange,W=At(t,GBe),K=d.useRef(),L=d.useContext(iS),Q=L&&S>1,ee=L&&S>=1,re=d.useState(!0),ie=$e(re,2),G=ie[0],X=ie[1],ne=zBe(K,_,O,F),le=ne.transform,ce=ne.resetTransform,oe=ne.updateTransform,se=ne.dispatchZoomChange,fe=UBe(K,l,u,C,le,oe,se),te=fe.isMoving,he=fe.onMouseDown,pe=fe.onWheel,Oe=KBe(K,l,u,_,le,oe,se),Me=Oe.isTouching,Se=Oe.onTouchStart,ye=Oe.onTouchMove,ve=Oe.onTouchEnd,be=le.rotate,Pe=le.scale,Ne=xe(Z({},"".concat(n,"-moving"),te));d.useEffect(function(){G||X(!0)},[G]);var U=function(){ce("close")},H=function(){se(Km+C,"zoomIn")},q=function(){se(Km/(Km+C),"zoomOut")},me=function(){oe({rotate:be+90},"rotateRight")},Ce=function(){oe({rotate:be-90},"rotateLeft")},ue=function(){oe({flipX:!le.flipX},"flipX")},Le=function(){oe({flipY:!le.flipY},"flipY")},He=function(){ce("reset")},ge=function(Ve){var St=b+Ve;!Number.isInteger(St)||St<0||St>S-1||(X(!1),ce(Ve<0?"prev":"next"),V==null||V(St,b))},De=function(Ve){!u||!Q||(Ve.keyCode===ut.LEFT?ge(-1):Ve.keyCode===ut.RIGHT&&ge(1))},qe=function(Ve){u&&(Pe!==1?oe({x:0,y:0,scale:1},"doubleClick"):se(Km+C,"doubleClick",Ve.clientX,Ve.clientY))};d.useEffect(function(){var Ue=jc(window,"keydown",De,!1);return function(){Ue.remove()}},[u,Q,b]);var je=de.createElement(YBe,Ge({},j,{width:t.width,height:t.height,imgRef:K,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(le.x,"px, ").concat(le.y,"px, 0) scale3d(").concat(le.flipX?"-":"").concat(Pe,", ").concat(le.flipY?"-":"").concat(Pe,", 1) rotate(").concat(be,"deg)"),transitionDuration:(!G||Me)&&"0s"},fallback:a,src:r,onWheel:pe,onMouseDown:he,onDoubleClick:qe,onTouchStart:Se,onTouchMove:ye,onTouchEnd:ve,onTouchCancel:ve})),Ke=z({url:r,alt:o},i);return de.createElement(de.Fragment,null,de.createElement(DA,Ge({transitionName:M,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Ne},rootClassName:p,getContainer:g},W,{afterClose:U}),de.createElement("div",{className:"".concat(n,"-img-wrapper")},A?A(je,z({transform:le,image:Ke},L?{current:b}:{})):je)),de.createElement(BBe,{visible:u,transform:le,maskTransitionName:D,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:p,icons:h,countRender:w,showSwitch:Q,showProgress:ee,current:b,count:S,scale:Pe,minScale:_,maxScale:O,toolbarRender:k,onActive:ge,onZoomIn:H,onZoomOut:q,onRotateRight:me,onRotateLeft:Ce,onFlipX:ue,onFlipY:Le,onClose:c,onReset:He,zIndex:W.zIndex!==void 0?W.zIndex+1:void 0,image:Ke}))},S6=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function XBe(e){var t=d.useState({}),n=$e(t,2),r=n[0],o=n[1],i=d.useCallback(function(s,l){return o(function(c){return z(z({},c),{},Z({},s,l))}),function(){o(function(c){var u=z({},c);return delete u[s],u})}},[]),a=d.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(Ze(S6)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[a,i,!!e]}var QBe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],JBe=["src"],ZBe=function(t){var n,r=t.previewPrefixCls,o=r===void 0?"rc-image-preview":r,i=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,u=t.fallback,f=Ht(c)==="object"?c:{},h=f.visible,p=f.onVisibleChange,m=f.getContainer,g=f.current,v=f.movable,b=f.minScale,y=f.maxScale,S=f.countRender,w=f.closeIcon,E=f.onChange,C=f.onTransform,x=f.toolbarRender,_=f.imageRender,P=At(f,QBe),O=XBe(l),I=$e(O,3),M=I[0],T=I[1],D=I[2],A=xn(0,{value:g}),j=$e(A,2),k=j[0],F=j[1],V=d.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=((n=M[k])===null||n===void 0?void 0:n.data)||{},ee=Q.src,re=At(Q,JBe),ie=xn(!!h,{value:h,onChange:function(Me,Se){p==null||p(Me,Se,k)}}),G=$e(ie,2),X=G[0],ne=G[1],le=d.useState(null),ce=$e(le,2),oe=ce[0],se=ce[1],fe=d.useCallback(function(Oe,Me,Se,ye){var ve=D?M.findIndex(function(be){return be.data.src===Me}):M.findIndex(function(be){return be.id===Oe});F(ve<0?0:ve),ne(!0),se({x:Se,y:ye}),L(!0)},[M,D]);d.useEffect(function(){X?K||F(0):L(!1)},[X]);var te=function(Me,Se){F(Me),E==null||E(Me,Se)},he=function(){ne(!1),se(null)},pe=d.useMemo(function(){return{register:T,onPreview:fe}},[T,fe]);return d.createElement(iS.Provider,{value:pe},i,d.createElement(pse,Ge({"aria-hidden":!X,movable:v,visible:X,prefixCls:o,closeIcon:w,onClose:he,mousePosition:oe,imgCommonProps:re,src:ee,fallback:u,icons:s,minScale:b,maxScale:y,getContainer:m,current:k,count:M.length,countRender:S,onTransform:C,toolbarRender:x,imageRender:_,onChange:te},P)))},IU=0;function e9e(e,t){var n=d.useState(function(){return IU+=1,String(IU)}),r=$e(n,1),o=r[0],i=d.useContext(iS),a={data:t,canPreview:e};return d.useEffect(function(){if(i)return i.register(o,a)},[]),d.useEffect(function(){i&&i.register(o,a)},[e,t]),o}var t9e=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],n9e=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],AD=function(t){var n=t.src,r=t.alt,o=t.onPreviewClose,i=t.prefixCls,a=i===void 0?"rc-image":i,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,h=t.height,p=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,b=t.onClick,y=t.onError,S=t.wrapperClassName,w=t.wrapperStyle,E=t.rootClassName,C=At(t,t9e),x=c&&c!==!0,_=Ht(g)==="object"?g:{},P=_.src,O=_.visible,I=O===void 0?void 0:O,M=_.onVisibleChange,T=M===void 0?o:M,D=_.getContainer,A=D===void 0?void 0:D,j=_.mask,k=_.maskClassName,F=_.movable,V=_.icons,W=_.scaleStep,K=_.minScale,L=_.maxScale,Q=_.imageRender,ee=_.toolbarRender,re=At(_,n9e),ie=P??n,G=xn(!!I,{value:I,onChange:T}),X=$e(G,2),ne=X[0],le=X[1],ce=hse({src:n,isCustomPlaceholder:x,fallback:u}),oe=$e(ce,3),se=oe[0],fe=oe[1],te=oe[2],he=d.useState(null),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=d.useContext(iS),ye=!!g,ve=function(){le(!1),Me(null)},be=xe(a,S,E,Z({},"".concat(a,"-error"),te==="error")),Pe=d.useMemo(function(){var q={};return S6.forEach(function(me){t[me]!==void 0&&(q[me]=t[me])}),q},S6.map(function(q){return t[q]})),Ne=d.useMemo(function(){return z(z({},Pe),{},{src:ie})},[ie,Pe]),U=e9e(ye,Ne),H=function(me){var Ce=LBe(me.target),ue=Ce.left,Le=Ce.top;Se?Se.onPreview(U,ie,ue,Le):(Me({x:ue,y:Le}),le(!0)),b==null||b(me)};return d.createElement(d.Fragment,null,d.createElement("div",Ge({},C,{className:be,onClick:ye?H:b,style:z({width:f,height:h},w)}),d.createElement("img",Ge({},Pe,{className:xe("".concat(a,"-img"),Z({},"".concat(a,"-img-placeholder"),c===!0),v),style:z({height:h},p),ref:se},fe,{width:f,height:h,onError:y})),te==="loading"&&d.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),j&&ye&&d.createElement("div",{className:xe("".concat(a,"-mask"),k),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},j)),!Se&&ye&&d.createElement(pse,Ge({"aria-hidden":!ne,visible:ne,prefixCls:l,onClose:ve,mousePosition:Oe,src:ie,alt:r,imageInfo:{width:f,height:h},fallback:u,getContainer:A,icons:V,movable:F,scaleStep:W,minScale:K,maxScale:L,rootClassName:E,imageRender:Q,imgCommonProps:Pe,toolbarRender:ee},re)))};AD.PreviewGroup=ZBe;var r9e={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"},o9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:r9e}))},i9e=d.forwardRef(o9e),a9e={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"},s9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:a9e}))},l9e=d.forwardRef(s9e),c9e={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"},u9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:c9e}))},kU=d.forwardRef(u9e),d9e={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"},f9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:d9e}))},h9e=d.forwardRef(f9e),p9e={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"},m9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:p9e}))},g9e=d.forwardRef(m9e);const C6=e=>({position:e||"absolute",inset:0}),v9e=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Un("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},wa),{padding:`0 ${_e(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},y9e=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,h=new Un(n).setA(.1),p=h.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,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 ${_e(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}}}}},b9e=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,s=new Un(t).setA(.1),l=s.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).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}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},S9e=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},C6()),{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({},C6()),{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"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[y9e(e),b9e(e)]}]},C9e=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({},v9e(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},C6())}}},w9e=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Mv(e,"zoom"),"&":TA(e,!0)}},x9e=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Un(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Un(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Un(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),mse=Kn("Image",e=>{const t=`${e.componentCls}-preview`,n=kn(e,{previewCls:t,modalMaskBg:new Un("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[C9e(n),S9e(n),_re(kn(n,{componentCls:t})),w9e(n)]},x9e);var E9e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{previewPrefixCls:t,preview:n}=e,r=E9e(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=d.useContext(Yt),i=o("image",t),a=`${i}-preview`,s=o(),l=Mr(i),[c,u,f]=mse(i,l),[h]=vl("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=d.useMemo(()=>{var m;if(n===!1)return n;const g=typeof n=="object"?n:{},v=xe(u,f,l,(m=g.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},g),{transitionName:Mi(s,"zoom",g.transitionName),maskTransitionName:Mi(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:h})},[n]);return c(d.createElement(AD.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:gse},r)))};var NU=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:r,className:o,rootClassName:i,style:a}=e,s=NU(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Os,getPopupContainer:u,image:f}=d.useContext(Yt),h=l("image",n),p=l(),m=c.Image||Os.Image,g=Mr(h),[v,b,y]=mse(h,g),S=xe(i,b,y,g),w=xe(o,b,f==null?void 0:f.className),[E]=vl("ImagePreview",typeof r=="object"?r.zIndex:void 0),C=d.useMemo(()=>{var _;if(r===!1)return r;const P=typeof r=="object"?r:{},{getContainer:O,closeIcon:I,rootClassName:M}=P,T=NU(P,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:d.createElement("div",{className:`${h}-mask-info`},d.createElement(uP,null),m==null?void 0:m.preview),icons:gse},T),{rootClassName:xe(S,M),getContainer:O??u,transitionName:Mi(p,"zoom",P.transitionName),maskTransitionName:Mi(p,"fade",P.maskTransitionName),zIndex:E,closeIcon:I??((_=f==null?void 0:f.preview)===null||_===void 0?void 0:_.closeIcon)})},[r,m,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),x=Object.assign(Object.assign({},f==null?void 0:f.style),a);return v(d.createElement(AD,Object.assign({prefixCls:h,preview:C,rootClassName:S,className:w,style:x},s)))};vse.PreviewGroup=_9e;function $9e(e,t,n){return typeof n=="boolean"?n:e.length?!0:ai(t).some(o=>o.type===Foe)}var yse=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 o=0,r=Object.getOwnPropertySymbols(e);od.forwardRef((a,s)=>d.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const DD=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=yse(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Yt),l=s("layout",n),[c,u,f]=joe(l),h=r?`${l}-${r}`:l;return c(d.createElement(i,Object.assign({className:xe(n||h,o,u,f),ref:t},a)))}),P9e=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(Yt),[r,o]=d.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=yse(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=Yn(h,["suffixCls"]),{getPrefixCls:m,layout:g}=d.useContext(Yt),v=m("layout",i),b=$9e(r,l,c),[y,S,w]=joe(v),E=xe(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,S,w),C=d.useMemo(()=>({siderHook:{addSider:x=>{o(_=>[].concat(Ze(_),[x]))},removeSider:x=>{o(_=>_.filter(P=>P!==x))}}}),[]);return y(d.createElement(Noe.Provider,{value:C},d.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},p),l)))}),O9e=fP({tagName:"div",displayName:"Layout"})(P9e),oE=fP({suffixCls:"header",tagName:"header",displayName:"Header"})(DD),M9e=fP({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(DD),T9e=fP({suffixCls:"content",tagName:"main",displayName:"Content"})(DD),ei=O9e;ei.Header=oE;ei.Footer=M9e;ei.Content=T9e;ei.Sider=Foe;ei._InternalSiderContext=X$;const bse=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e};var R9e={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"},I9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:R9e}))},AU=d.forwardRef(I9e),k9e={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"},N9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:k9e}))},DU=d.forwardRef(N9e),Sse={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:"页码"},A9e=[10,20,50,100],D9e=function(t){var n=t.pageSizeOptions,r=n===void 0?A9e:n,o=t.locale,i=t.changeSize,a=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,h=t.showSizeChanger,p=t.sizeChangerRender,m=de.useState(""),g=$e(m,2),v=g[0],b=g[1],y=function(){return!v||Number.isNaN(v)?void 0:Number(v)},S=typeof f=="function"?f:function(M){return"".concat(M," ").concat(o.items_per_page)},w=function(T){b(T.target.value)},E=function(T){s||v===""||(b(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},C=function(T){v!==""&&(T.keyCode===ut.ENTER||T.type==="click")&&(b(""),l==null||l(y()))},x=function(){return r.some(function(T){return T.toString()===a.toString()})?r:r.concat([a]).sort(function(T,D){var A=Number.isNaN(Number(T))?0:Number(T),j=Number.isNaN(Number(D))?0:Number(D);return A-j})},_="".concat(c,"-options");if(!h&&!l)return null;var P=null,O=null,I=null;return h&&p&&(P=p({disabled:u,size:a,onSizeChange:function(T){i==null||i(Number(T))},"aria-label":o.page_size,className:"".concat(_,"-size-changer"),options:x().map(function(M){return{label:S(M),value:M}})})),l&&(s&&(I=typeof s=="boolean"?de.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(_,"-quick-jumper-button")},o.jump_to_confirm):de.createElement("span",{onClick:C,onKeyUp:C},s)),O=de.createElement("div",{className:"".concat(_,"-quick-jumper")},o.jump_to,de.createElement("input",{disabled:u,type:"text",value:v,onChange:w,onKeyUp:C,onBlur:E,"aria-label":o.page}),o.page,I)),de.createElement("li",{className:_},P,O)},z0=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),h=xe(f,"".concat(f,"-").concat(o),(n={},Z(n,"".concat(f,"-active"),i),Z(n,"".concat(f,"-disabled"),!o),n),a),p=function(){l(o)},m=function(b){c(b,l,o)},g=u(o,"page",de.createElement("a",{rel:"nofollow"},o));return g?de.createElement("li",{title:s?String(o):null,className:h,onClick:p,onKeyDown:m,tabIndex:0},g):null},j9e=function(t,n,r){return r};function jU(){}function FU(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ih(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var F9e=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,a=i===void 0?"rc-select":i,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,h=f===void 0?0:f,p=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,b=v===void 0?jU:v,y=t.hideOnSinglePage,S=t.align,w=t.showPrevNextJumpers,E=w===void 0?!0:w,C=t.showQuickJumper,x=t.showLessItems,_=t.showTitle,P=_===void 0?!0:_,O=t.onShowSizeChange,I=O===void 0?jU:O,M=t.locale,T=M===void 0?Sse:M,D=t.style,A=t.totalBoundaryShowSizeChanger,j=A===void 0?50:A,k=t.disabled,F=t.simple,V=t.showTotal,W=t.showSizeChanger,K=W===void 0?h>j:W,L=t.sizeChangerRender,Q=t.pageSizeOptions,ee=t.itemRender,re=ee===void 0?j9e:ee,ie=t.jumpPrevIcon,G=t.jumpNextIcon,X=t.prevIcon,ne=t.nextIcon,le=de.useRef(null),ce=xn(10,{value:p,defaultValue:g}),oe=$e(ce,2),se=oe[0],fe=oe[1],te=xn(1,{value:l,defaultValue:u,postState:function(J){return Math.max(1,Math.min(J,ih(void 0,se,h)))}}),he=$e(te,2),pe=he[0],Oe=he[1],Me=de.useState(pe),Se=$e(Me,2),ye=Se[0],ve=Se[1];d.useEffect(function(){ve(pe)},[pe]);var be=Math.max(1,pe-(x?3:5)),Pe=Math.min(ih(void 0,se,h),pe+(x?3:5));function Ne(R,J){var Ee=R||de.createElement("button",{type:"button","aria-label":J,className:"".concat(o,"-item-link")});return typeof R=="function"&&(Ee=de.createElement(R,z({},t))),Ee}function U(R){var J=R.target.value,Ee=ih(void 0,se,h),ke;return J===""?ke=J:Number.isNaN(Number(J))?ke=ye:J>=Ee?ke=Ee:ke=Number(J),ke}function H(R){return FU(R)&&R!==pe&&FU(h)&&h>0}var q=h>se?C:!1;function me(R){(R.keyCode===ut.UP||R.keyCode===ut.DOWN)&&R.preventDefault()}function Ce(R){var J=U(R);switch(J!==ye&&ve(J),R.keyCode){case ut.ENTER:He(J);break;case ut.UP:He(J-1);break;case ut.DOWN:He(J+1);break}}function ue(R){He(U(R))}function Le(R){var J=ih(R,se,h),Ee=pe>J&&J!==0?J:pe;fe(R),ve(Ee),I==null||I(pe,R),Oe(Ee),b==null||b(Ee,R)}function He(R){if(H(R)&&!k){var J=ih(void 0,se,h),Ee=R;return R>J?Ee=J:R<1&&(Ee=1),Ee!==ye&&ve(Ee),Oe(Ee),b==null||b(Ee,se),Ee}return pe}var ge=pe>1,De=pe2?Ee-2:0),Je=2;Jeh?h:pe*se])),We=null,Fe=ih(void 0,se,h);if(y&&h<=se)return null;var Xe=[],gt={rootPrefixCls:o,onClick:He,onKeyPress:Ve,showTitle:P,itemRender:re,page:-1},pt=pe-1>0?pe-1:0,Rt=pe+1=bt*2&&pe!==3&&(Xe[0]=de.cloneElement(Xe[0],{className:xe("".concat(o,"-item-after-jump-prev"),Xe[0].props.className)}),Xe.unshift(Et)),Fe-pe>=bt*2&&pe!==Fe-2){var kt=Xe[Xe.length-1];Xe[Xe.length-1]=de.cloneElement(kt,{className:xe("".concat(o,"-item-before-jump-next"),kt.props.className)}),Xe.push(We)}yt!==1&&Xe.unshift(de.createElement(z0,Ge({},gt,{key:1,page:1}))),Ft!==Fe&&Xe.push(de.createElement(z0,Ge({},gt,{key:Fe,page:Fe})))}var tt=dt(pt);if(tt){var Mt=!ge||!Fe;tt=de.createElement("li",{title:P?T.prev_page:null,onClick:qe,tabIndex:Mt?null:0,onKeyDown:St,className:xe("".concat(o,"-prev"),Z({},"".concat(o,"-disabled"),Mt)),"aria-disabled":Mt},tt)}var Ot=Lt(Rt);if(Ot){var pn,Pn;F?(pn=!De,Pn=ge?0:null):(pn=!De||!Fe,Pn=pn?null:0),Ot=de.createElement("li",{title:P?T.next_page:null,onClick:je,tabIndex:Pn,onKeyDown:et,className:xe("".concat(o,"-next"),Z({},"".concat(o,"-disabled"),pn)),"aria-disabled":pn},Ot)}var $=xe(o,s,(n={},Z(n,"".concat(o,"-start"),S==="start"),Z(n,"".concat(o,"-center"),S==="center"),Z(n,"".concat(o,"-end"),S==="end"),Z(n,"".concat(o,"-simple"),F),Z(n,"".concat(o,"-disabled"),k),n));return de.createElement("ul",Ge({className:$,style:D,ref:le},Tt),Be,tt,F?It:Xe,Ot,de.createElement(D9e,{locale:T,rootPrefixCls:o,disabled:k,selectPrefixCls:a,changeSize:Le,pageSize:se,pageSizeOptions:Q,quickGo:q?He:null,goButton:ft,showSizeChanger:K,sizeChangerRender:L}))};const L9e=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"}}}}}},B9e=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:_e(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_e(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:_e(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"}}},[` + ${n}-col-xl-24${t}-label`]:jl(e),[`@media (max-width: ${_e(e.screenXSMax)})`]:[tse(e),{[t]:{[`${n}-col-xs-24${t}-label`]:jl(e)}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:jl(e)}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:jl(e)}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:jl(e)}}}},lBe=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}),nse=(e,t)=>kn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ID=Kn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=nse(e,n);return[rBe(r),oBe(r),tBe(r),EU(r,r.componentCls),EU(r,r.formItemCls),iBe(r),aBe(r),sBe(r),U1(r),MA]},lBe,{order:-1e3}),_U=[];function uR(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 rse=e=>{let{help:t,helpStatus:n,errors:r=_U,warnings:o=_U,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(FA),c=`${l}-item-explain`,u=Mr(l),[f,h,p]=ID(l,u),m=d.useMemo(()=>Ug(l),[l]),g=rE(r),v=rE(o),b=d.useMemo(()=>t!=null?[uR(t,"help",n)]:[].concat(Ze(g.map((w,E)=>uR(w,"error","error",E))),Ze(v.map((w,E)=>uR(w,"warning","warning",E)))),[t,n,g,v]),y=d.useMemo(()=>{const w={};return b.forEach(E=>{let{key:C}=E;w[C]=(w[C]||0)+1}),b.map((E,C)=>Object.assign(Object.assign({},E),{key:w[E.key]>1?`${E.key}-fallback-${C}`:E.key}))},[b]),S={};return a&&(S.id=`${a}_help`),f(d.createElement(Jo,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},w=>{const{className:E,style:C}=w;return d.createElement("div",Object.assign({},S,{className:xe(c,E,p,u,i,h),style:C,role:"alert"}),d.createElement(b$,Object.assign({keys:y},Ug(l),{motionName:`${l}-show-help-item`,component:!1}),x=>{const{key:_,error:P,errorStatus:O,className:I,style:M}=x;return d.createElement("div",{key:_,className:xe(I,{[`${c}-${O}`]:O}),style:M},P)}))}))},cBe=["parentNode"],uBe="form_item";function Vy(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ose(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:cBe.includes(n)?`${uBe}_${n}`:n}function ise(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function $U(e){return Vy(e).join("_")}function PU(e,t){const n=t.getFieldInstance(e),r=Q_(n);if(r)return r;const o=ose(Vy(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function ase(e){const[t]=jA(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=$U(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=PU(o,r);a&&jMe(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},focusField:o=>{var i;const a=PU(o,r);a&&((i=a.focus)===null||i===void 0||i.call(a))},getFieldInstance:o=>{const i=$U(o);return n.current[i]}}),[e,t]);return[r]}var dBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=d.useContext(zo),{getPrefixCls:r,direction:o,form:i}=d.useContext(Yt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:h,labelAlign:p,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:S,requiredMark:w,onFinishFailed:E,name:C,style:x,feedbackIcons:_,variant:P}=e,O=dBe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Eo(c),M=d.useContext(Lte),T=d.useMemo(()=>w!==void 0?w:b?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[b,w,i]),D=h??(i==null?void 0:i.colon),A=r("form",a),j=Mr(A),[k,F,V]=ID(A,j),W=xe(A,`${A}-${y}`,{[`${A}-hide-required-mark`]:T===!1,[`${A}-rtl`]:o==="rtl",[`${A}-${I}`]:I},V,j,F,i==null?void 0:i.className,s,l),[K]=ase(f),{__INTERNAL__:L}=K;L.name=C;const Q=d.useMemo(()=>({name:C,labelAlign:p,labelCol:g,labelWrap:m,wrapperCol:v,vertical:y==="vertical",colon:D,requiredMark:T,itemRef:L.itemRef,form:K,feedbackIcons:_}),[C,p,g,v,y,D,T,K,_]),ee=d.useRef(null);d.useImperativeHandle(t,()=>{var G;return Object.assign(Object.assign({},K),{nativeElement:(G=ee.current)===null||G===void 0?void 0:G.nativeElement})});const re=(G,X)=>{if(G){let ne={block:"nearest"};typeof G=="object"&&(ne=Object.assign(Object.assign({},ne),G)),K.scrollToField(X,ne),ne.focus&&K.focusField(X)}},ie=G=>{if(E==null||E(G),G.errorFields.length){const X=G.errorFields[0].name;if(S!==void 0){re(S,X);return}i&&i.scrollToFirstError!==void 0&&re(i.scrollToFirstError,X)}};return k(d.createElement(yre.Provider,{value:P},d.createElement(yA,{disabled:u},d.createElement(fp.Provider,{value:I},d.createElement(vre,{validateMessages:M},d.createElement(rd.Provider,{value:Q},d.createElement(Tv,Object.assign({id:C},O,{name:C,onFinishFailed:ie,form:K,ref:ee,style:Object.assign(Object.assign({},i==null?void 0:i.style),x),className:W}))))))))},hBe=d.forwardRef(fBe);function pBe(e){if(typeof e=="function")return e;const t=ai(e);return t.length<=1?t[0]:t}const sse=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Io);return{status:e,errors:t,warnings:n}};sse.Context=Io;function mBe(e){const[t,n]=d.useState(e),r=d.useRef(null),o=d.useRef([]),i=d.useRef(!1);d.useEffect(()=>(i.current=!1,()=>{i.current=!0,zn.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=zn(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,a]}function gBe(){const{itemRef:e}=d.useContext(rd),t=d.useRef({});function n(r,o){const i=o&&typeof o=="object"&&Af(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=bi(e(r),i)),t.current.ref}return n}const vBe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},yBe=$v(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=nse(e,n);return[vBe(r)]});var bBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:h,onErrorVisibleChanged:p,label:m}=e,g=`${t}-item`,v=d.useContext(rd),b=d.useMemo(()=>{let D=Object.assign({},o||v.wrapperCol||{});return m===null&&!r&&!o&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const k=j?[j]:[],F=Mo(v.labelCol,k),V=typeof F=="object"?F:{},W=Mo(D,k),K=typeof W=="object"?W:{};"span"in V&&!("offset"in K)&&V.spanbBe(v,["labelCol","wrapperCol"]),[v]),w=d.useRef(null),[E,C]=d.useState(0);Zn(()=>{c&&w.current?C(w.current.clientHeight):C(0)},[c]);const x=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},i)),_=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),P=h!==null||a.length||s.length?d.createElement(FA.Provider,{value:_},d.createElement(rse,{fieldId:f,errors:a,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})):null,O={};f&&(O.id=`${f}_extra`);const I=c?d.createElement("div",Object.assign({},O,{className:`${g}-extra`,ref:w}),c):null,M=P||I?d.createElement("div",{className:`${g}-additional`,style:h?{minHeight:h+E}:{}},P,I):null,T=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:x,errorList:P,extra:I}):d.createElement(d.Fragment,null,x,M);return d.createElement(rd.Provider,{value:S},d.createElement(gp,Object.assign({},b,{className:y}),T),d.createElement(yBe,{prefixCls:t}))};var wBe={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"},xBe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:wBe}))},EBe=d.forwardRef(xBe),_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 o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[h]=zi("Form"),{labelAlign:p,labelCol:m,labelWrap:g,colon:v}=d.useContext(rd);if(!n)return null;const b=o||m||{},y=i||p,S=`${t}-item-label`,w=xe(S,y==="left"&&`${S}-left`,b.className,{[`${S}-wrap`]:!!g});let E=n;const C=a===!0||v!==!1&&a!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(E=n.replace(/[:|:]\s*$/,""));const _=$Be(c);if(_){const{icon:M=d.createElement(EBe,null)}=_,T=_Be(_,["icon"]),D=d.createElement(xa,Object.assign({},T),d.cloneElement(M,{className:`${t}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));E=d.createElement(d.Fragment,null,E,D)}const P=l==="optional",O=typeof l=="function";O?E=l(E,{required:!!s}):P&&!s&&(E=d.createElement(d.Fragment,null,E,d.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((f=Os.Form)===null||f===void 0?void 0:f.optional))));const I=xe({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:P||O,[`${t}-item-no-colon`]:!C});return d.createElement(gp,Object.assign({},b,{className:w}),d.createElement("label",{htmlFor:r,className:I,title:typeof n=="string"?n:""},E))},OBe={success:Lp,warning:Df,error:ru,validating:Gc};function lse(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=d.useContext(rd),f=ise(n,r,s,null,!!o,i),{isFormItemInput:h,status:p,hasFeedback:m,feedbackIcon:g}=d.useContext(Io),v=d.useMemo(()=>{var b;let y;if(o){const w=o!==!0&&o.icons||u,E=f&&((b=w==null?void 0:w({status:f,errors:n,warnings:r}))===null||b===void 0?void 0:b[f]),C=f&&OBe[f];y=E!==!1&&C?d.createElement("span",{className:xe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||d.createElement(C,null)):null}const S={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:y,isFormItemInput:!0};return l&&(S.status=(f??p)||"",S.isFormItemInput=h,S.hasFeedback=!!(o??m),S.feedbackIcon=o!==void 0?S.feedbackIcon:g),S},[f,o,l,h,p]);return d.createElement(Io.Provider,{value:v},t)}var MBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{if(I&&x.current){const V=getComputedStyle(x.current);D(parseInt(V.marginBottom,10))}},[I,M]);const A=V=>{V||D(null)},k=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const W=V?_:c.errors,K=V?P:c.warnings;return ise(W,K,c,"",!!u,l)}(),F=xe(S,n,r,{[`${S}-with-help`]:O||_.length||P.length,[`${S}-has-feedback`]:k&&u,[`${S}-has-success`]:k==="success",[`${S}-has-warning`]:k==="warning",[`${S}-has-error`]:k==="error",[`${S}-is-validating`]:k==="validating",[`${S}-hidden`]:f,[`${S}-${b}`]:b});return d.createElement("div",{className:F,style:o,ref:x},d.createElement(sP,Object.assign({className:`${S}-row`},Yn(y,["_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"])),d.createElement(PBe,Object.assign({htmlFor:p},e,{requiredMark:w,required:m??g,prefixCls:t,vertical:C})),d.createElement(CBe,Object.assign({},e,c,{errors:_,warnings:P,prefixCls:t,status:k,help:i,marginBottom:T,onErrorVisibleChanged:A}),d.createElement(gre.Provider,{value:v},d.createElement(lse,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:k},h)))),!!T&&d.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-T}}))}const RBe="__SPLIT__";function IBe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const kBe=d.memo(e=>{let{children:t}=e;return t},(e,t)=>IBe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function OU(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function NBe(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:h="onChange",validateTrigger:p,hidden:m,help:g,layout:v}=e,{getPrefixCls:b}=d.useContext(Yt),{name:y}=d.useContext(rd),S=pBe(l),w=typeof S=="function",E=d.useContext(gre),{validateTrigger:C}=d.useContext(_f),x=p!==void 0?p:C,_=t!=null,P=b("form",i),O=Mr(P),[I,M,T]=ID(P,O);nu();const D=d.useContext(Vb),A=d.useRef(null),[j,k]=mBe({}),[F,V]=hp(()=>OU()),W=G=>{const X=D==null?void 0:D.getKey(G.name);if(V(G.destroy?OU():G,!0),n&&g!==!1&&E){let ne=G.name;if(G.destroy)ne=A.current||ne;else if(X!==void 0){const[le,ce]=X;ne=[le].concat(Ze(ce)),A.current=ne}E(G,ne)}},K=(G,X)=>{k(ne=>{const le=Object.assign({},ne),oe=[].concat(Ze(G.name.slice(0,-1)),Ze(X)).join(RBe);return G.destroy?delete le[oe]:le[oe]=G,le})},[L,Q]=d.useMemo(()=>{const G=Ze(F.errors),X=Ze(F.warnings);return Object.values(j).forEach(ne=>{G.push.apply(G,Ze(ne.errors||[])),X.push.apply(X,Ze(ne.warnings||[]))}),[G,X]},[j,F.errors,F.warnings]),ee=gBe();function re(G,X,ne){return n&&!m?d.createElement(lse,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:L,warnings:Q,noStyle:!0},G):d.createElement(TBe,Object.assign({key:"row"},e,{className:xe(r,T,O,M),prefixCls:P,fieldId:X,isRequired:ne,errors:L,warnings:Q,meta:F,onSubItemMetaChange:K,layout:v}),G)}if(!_&&!w&&!o)return I(re(S));let ie={};return typeof u=="string"?ie.label=u:t&&(ie.label=String(t)),f&&(ie=Object.assign(Object.assign({},ie),f)),I(d.createElement(DA,Object.assign({},e,{messageVariables:ie,trigger:h,validateTrigger:x,onMetaChange:W}),(G,X,ne)=>{const le=Vy(t).length&&X?X.name:[],ce=ose(le,y),oe=c!==void 0?c:!!(s!=null&&s.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const he=te(ne);return(he==null?void 0:he.required)&&!(he!=null&&he.warningOnly)}return!1})),se=Object.assign({},G);let fe=null;if(Array.isArray(S)&&_)fe=S;else if(!(w&&(!(a||o)||_))){if(!(o&&!w&&!_))if(d.isValidElement(S)){const te=Object.assign(Object.assign({},S.props),se);if(te.id||(te.id=ce),g||L.length>0||Q.length>0||e.extra){const Oe=[];(g||L.length>0)&&Oe.push(`${ce}_help`),e.extra&&Oe.push(`${ce}_extra`),te["aria-describedby"]=Oe.join(" ")}L.length>0&&(te["aria-invalid"]="true"),oe&&(te["aria-required"]="true"),tc(S)&&(te.ref=ee(le,S)),new Set([].concat(Ze(Vy(h)),Ze(Vy(x)))).forEach(Oe=>{te[Oe]=function(){for(var Me,Se,ye,ve,be,Pe=arguments.length,Ne=new Array(Pe),U=0;U{var{prefixCls:t,children:n}=e,r=ABe(e,["prefixCls","children"]);const{getPrefixCls:o}=d.useContext(Yt),i=o("form",t),a=d.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return d.createElement(fre,Object.assign({},r),(s,l,c)=>d.createElement(FA.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function jBe(){const{form:e}=d.useContext(rd);return e}const Vn=hBe;Vn.Item=cse;Vn.List=DBe;Vn.ErrorList=rse;Vn.useForm=ase;Vn.useFormInstance=jBe;Vn.useWatch=mre;Vn.Provider=vre;Vn.create=()=>{};function use(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function FBe(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 jc(e,t,n,r){var o=bb.unstable_batchedUpdates?function(a){bb.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var aS=d.createContext(null),LBe=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,i=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,h=t.transform,p=t.count,m=t.scale,g=t.minScale,v=t.maxScale,b=t.closeIcon,y=t.onActive,S=t.onClose,w=t.onZoomIn,E=t.onZoomOut,C=t.onRotateRight,x=t.onRotateLeft,_=t.onFlipX,P=t.onFlipY,O=t.onReset,I=t.toolbarRender,M=t.zIndex,T=t.image,D=d.useContext(aS),A=s.rotateLeft,j=s.rotateRight,k=s.zoomIn,F=s.zoomOut,V=s.close,W=s.left,K=s.right,L=s.flipX,Q=s.flipY,ee="".concat(i,"-operations-operation");d.useEffect(function(){var he=function(Oe){Oe.keyCode===ut.ESC&&S()};return n&&window.addEventListener("keydown",he),function(){window.removeEventListener("keydown",he)}},[n]);var re=function(pe,Oe){pe.preventDefault(),pe.stopPropagation(),y(Oe)},ie=d.useCallback(function(he){var pe=he.type,Oe=he.disabled,Me=he.onClick,Se=he.icon;return d.createElement("div",{key:pe,className:xe(ee,"".concat(i,"-operations-operation-").concat(pe),Z({},"".concat(i,"-operations-operation-disabled"),!!Oe)),onClick:Me},Se)},[ee,i]),G=c?ie({icon:W,onClick:function(pe){return re(pe,-1)},type:"prev",disabled:f===0}):void 0,X=c?ie({icon:K,onClick:function(pe){return re(pe,1)},type:"next",disabled:f===p-1}):void 0,ne=ie({icon:Q,onClick:P,type:"flipY"}),le=ie({icon:L,onClick:_,type:"flipX"}),ce=ie({icon:A,onClick:x,type:"rotateLeft"}),oe=ie({icon:j,onClick:C,type:"rotateRight"}),se=ie({icon:F,onClick:E,type:"zoomOut",disabled:m<=g}),fe=ie({icon:k,onClick:w,type:"zoomIn",disabled:m===v}),te=d.createElement("div",{className:"".concat(i,"-operations")},ne,le,ce,oe,se,fe);return d.createElement(Jo,{visible:n,motionName:r},function(he){var pe=he.className,Oe=he.style;return d.createElement(V1,{open:!0,getContainer:o??document.body},d.createElement("div",{className:xe("".concat(i,"-operations-wrapper"),pe,a),style:z(z({},Oe),{},{zIndex:M})},b===null?null:d.createElement("button",{className:"".concat(i,"-close"),onClick:S},b||V),c&&d.createElement(d.Fragment,null,d.createElement("div",{className:xe("".concat(i,"-switch-left"),Z({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:function(Se){return re(Se,-1)}},W),d.createElement("div",{className:xe("".concat(i,"-switch-right"),Z({},"".concat(i,"-switch-right-disabled"),f===p-1)),onClick:function(Se){return re(Se,1)}},K)),d.createElement("div",{className:"".concat(i,"-footer")},u&&d.createElement("div",{className:"".concat(i,"-progress")},l?l(f+1,p):"".concat(f+1," / ").concat(p)),I?I(te,z(z({icons:{prevIcon:G,nextIcon:X,flipYIcon:ne,flipXIcon:le,rotateLeftIcon:ce,rotateRightIcon:oe,zoomOutIcon:se,zoomInIcon:fe},actions:{onActive:y,onFlipY:P,onFlipX:_,onRotateLeft:x,onRotateRight:C,onZoomOut:E,onZoomIn:w,onReset:O,onClose:S},transform:h},D?{current:f,total:p}:{}),{},{image:T})):te)))})},XC={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function BBe(e,t,n,r){var o=d.useRef(null),i=d.useRef([]),a=d.useState(XC),s=$e(a,2),l=s[0],c=s[1],u=function(m){c(XC),dl(XC,l)||r==null||r({transform:XC,action:m})},f=function(m,g){o.current===null&&(i.current=[],o.current=zn(function(){c(function(v){var b=v;return i.current.forEach(function(y){b=z(z({},b),y)}),o.current=null,r==null||r({transform:b,action:g}),b})})),i.current.push(z(z({},l),m))},h=function(m,g,v,b,y){var S=e.current,w=S.width,E=S.height,C=S.offsetWidth,x=S.offsetHeight,_=S.offsetLeft,P=S.offsetTop,O=m,I=l.scale*m;I>n?(I=n,O=n/l.scale):Ir){if(t>0)return Z({},e,i);if(t<0&&or)return Z({},e,t<0?i:-i);return{}}function dse(e,t,n,r){var o=use(),i=o.width,a=o.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=z(z({},MU("x",n,e,i)),MU("y",r,t,a))),s}var Km=1,zBe=1;function HBe(e,t,n,r,o,i,a){var s=o.rotate,l=o.scale,c=o.x,u=o.y,f=d.useState(!1),h=$e(f,2),p=h[0],m=h[1],g=d.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(E){!t||E.button!==0||(E.preventDefault(),E.stopPropagation(),g.current={diffX:E.pageX-c,diffY:E.pageY-u,transformX:c,transformY:u},m(!0))},b=function(E){n&&p&&i({x:E.pageX-g.current.diffX,y:E.pageY-g.current.diffY},"move")},y=function(){if(n&&p){m(!1);var E=g.current,C=E.transformX,x=E.transformY,_=c!==C&&u!==x;if(!_)return;var P=e.current.offsetWidth*l,O=e.current.offsetHeight*l,I=e.current.getBoundingClientRect(),M=I.left,T=I.top,D=s%180!==0,A=dse(D?O:P,D?P:O,M,T);A&&i(z({},A),"dragRebound")}},S=function(E){if(!(!n||E.deltaY==0)){var C=Math.abs(E.deltaY/100),x=Math.min(C,zBe),_=Km+x*r;E.deltaY>0&&(_=Km/_),a(_,"wheel",E.clientX,E.clientY)}};return d.useEffect(function(){var w,E,C,x;if(t){C=jc(window,"mouseup",y,!1),x=jc(window,"mousemove",b,!1);try{window.top!==window.self&&(w=jc(window.top,"mouseup",y,!1),E=jc(window.top,"mousemove",b,!1))}catch{}}return function(){var _,P,O,I;(_=C)===null||_===void 0||_.remove(),(P=x)===null||P===void 0||P.remove(),(O=w)===null||O===void 0||O.remove(),(I=E)===null||I===void 0||I.remove()}},[n,p,c,u,s,t]),{isMoving:p,onMouseDown:v,onMouseMove:b,onMouseUp:y,onWheel:S}}function UBe(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 fse(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=d.useState(n?"loading":"normal"),i=$e(o,2),a=i[0],s=i[1],l=d.useRef(!1),c=a==="error";d.useEffect(function(){var p=!0;return UBe(t).then(function(m){!m&&p&&s("error")}),function(){p=!1}},[t]),d.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=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[f,h,a]}function oE(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function WBe(e,t,n,r){var o=oE(e,n),i=oE(t,r);if(o===0&&i===0)return[e.x,e.y];var a=o/(o+i),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function VBe(e,t,n,r,o,i,a){var s=o.rotate,l=o.scale,c=o.x,u=o.y,f=d.useState(!1),h=$e(f,2),p=h[0],m=h[1],g=d.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(E){g.current=z(z({},g.current),E)},b=function(E){if(t){E.stopPropagation(),m(!0);var C=E.touches,x=C===void 0?[]:C;x.length>1?v({point1:{x:x[0].clientX,y:x[0].clientY},point2:{x:x[1].clientX,y:x[1].clientY},eventType:"touchZoom"}):v({point1:{x:x[0].clientX-c,y:x[0].clientY-u},eventType:"move"})}},y=function(E){var C=E.touches,x=C===void 0?[]:C,_=g.current,P=_.point1,O=_.point2,I=_.eventType;if(x.length>1&&I==="touchZoom"){var M={x:x[0].clientX,y:x[0].clientY},T={x:x[1].clientX,y:x[1].clientY},D=WBe(P,O,M,T),A=$e(D,2),j=A[0],k=A[1],F=oE(M,T)/oE(P,O);a(F,"touchZoom",j,k,!0),v({point1:M,point2:T,eventType:"touchZoom"})}else I==="move"&&(i({x:x[0].clientX-P.x,y:x[0].clientY-P.y},"move"),v({eventType:"move"}))},S=function(){if(n){if(p&&m(!1),v({eventType:"none"}),r>l)return i({x:0,y:0,scale:r},"touchZoom");var E=e.current.offsetWidth*l,C=e.current.offsetHeight*l,x=e.current.getBoundingClientRect(),_=x.left,P=x.top,O=s%180!==0,I=dse(O?C:E,O?E:C,_,P);I&&i(z({},I),"dragRebound")}};return d.useEffect(function(){var w;return n&&t&&(w=jc(window,"touchmove",function(E){return E.preventDefault()},{passive:!1})),function(){var E;(E=w)===null||E===void 0||E.remove()}},[n,t]),{isTouching:p,onTouchStart:b,onTouchMove:y,onTouchEnd:S}}var KBe=["fallback","src","imgRef"],qBe=["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"],GBe=function(t){var n=t.fallback,r=t.src,o=t.imgRef,i=At(t,KBe),a=fse({src:r,fallback:n}),s=$e(a,2),l=s[0],c=s[1];return de.createElement("img",Ge({ref:function(f){o.current=f,l(f)}},i,c))},hse=function(t){var n=t.prefixCls,r=t.src,o=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,h=f===void 0?{}:f,p=t.rootClassName,m=t.closeIcon,g=t.getContainer,v=t.current,b=v===void 0?0:v,y=t.count,S=y===void 0?1:y,w=t.countRender,E=t.scaleStep,C=E===void 0?.5:E,x=t.minScale,_=x===void 0?1:x,P=t.maxScale,O=P===void 0?50:P,I=t.transitionName,M=I===void 0?"zoom":I,T=t.maskTransitionName,D=T===void 0?"fade":T,A=t.imageRender,j=t.imgCommonProps,k=t.toolbarRender,F=t.onTransform,V=t.onChange,W=At(t,qBe),K=d.useRef(),L=d.useContext(aS),Q=L&&S>1,ee=L&&S>=1,re=d.useState(!0),ie=$e(re,2),G=ie[0],X=ie[1],ne=BBe(K,_,O,F),le=ne.transform,ce=ne.resetTransform,oe=ne.updateTransform,se=ne.dispatchZoomChange,fe=HBe(K,l,u,C,le,oe,se),te=fe.isMoving,he=fe.onMouseDown,pe=fe.onWheel,Oe=VBe(K,l,u,_,le,oe,se),Me=Oe.isTouching,Se=Oe.onTouchStart,ye=Oe.onTouchMove,ve=Oe.onTouchEnd,be=le.rotate,Pe=le.scale,Ne=xe(Z({},"".concat(n,"-moving"),te));d.useEffect(function(){G||X(!0)},[G]);var U=function(){ce("close")},H=function(){se(Km+C,"zoomIn")},q=function(){se(Km/(Km+C),"zoomOut")},me=function(){oe({rotate:be+90},"rotateRight")},Ce=function(){oe({rotate:be-90},"rotateLeft")},ue=function(){oe({flipX:!le.flipX},"flipX")},Le=function(){oe({flipY:!le.flipY},"flipY")},He=function(){ce("reset")},ge=function(Ve){var Tt=b+Ve;!Number.isInteger(Tt)||Tt<0||Tt>S-1||(X(!1),ce(Ve<0?"prev":"next"),V==null||V(Tt,b))},De=function(Ve){!u||!Q||(Ve.keyCode===ut.LEFT?ge(-1):Ve.keyCode===ut.RIGHT&&ge(1))},qe=function(Ve){u&&(Pe!==1?oe({x:0,y:0,scale:1},"doubleClick"):se(Km+C,"doubleClick",Ve.clientX,Ve.clientY))};d.useEffect(function(){var Ue=jc(window,"keydown",De,!1);return function(){Ue.remove()}},[u,Q,b]);var Fe=de.createElement(GBe,Ge({},j,{width:t.width,height:t.height,imgRef:K,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(le.x,"px, ").concat(le.y,"px, 0) scale3d(").concat(le.flipX?"-":"").concat(Pe,", ").concat(le.flipY?"-":"").concat(Pe,", 1) rotate(").concat(be,"deg)"),transitionDuration:(!G||Me)&&"0s"},fallback:a,src:r,onWheel:pe,onMouseDown:he,onDoubleClick:qe,onTouchStart:Se,onTouchMove:ye,onTouchEnd:ve,onTouchCancel:ve})),Ke=z({url:r,alt:o},i);return de.createElement(de.Fragment,null,de.createElement(NA,Ge({transitionName:M,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Ne},rootClassName:p,getContainer:g},W,{afterClose:U}),de.createElement("div",{className:"".concat(n,"-img-wrapper")},A?A(Fe,z({transform:le,image:Ke},L?{current:b}:{})):Fe)),de.createElement(LBe,{visible:u,transform:le,maskTransitionName:D,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:p,icons:h,countRender:w,showSwitch:Q,showProgress:ee,current:b,count:S,scale:Pe,minScale:_,maxScale:O,toolbarRender:k,onActive:ge,onZoomIn:H,onZoomOut:q,onRotateRight:me,onRotateLeft:Ce,onFlipX:ue,onFlipY:Le,onClose:c,onReset:He,zIndex:W.zIndex!==void 0?W.zIndex+1:void 0,image:Ke}))},b6=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function YBe(e){var t=d.useState({}),n=$e(t,2),r=n[0],o=n[1],i=d.useCallback(function(s,l){return o(function(c){return z(z({},c),{},Z({},s,l))}),function(){o(function(c){var u=z({},c);return delete u[s],u})}},[]),a=d.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(Ze(b6)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[a,i,!!e]}var XBe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],QBe=["src"],JBe=function(t){var n,r=t.previewPrefixCls,o=r===void 0?"rc-image-preview":r,i=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,u=t.fallback,f=Ht(c)==="object"?c:{},h=f.visible,p=f.onVisibleChange,m=f.getContainer,g=f.current,v=f.movable,b=f.minScale,y=f.maxScale,S=f.countRender,w=f.closeIcon,E=f.onChange,C=f.onTransform,x=f.toolbarRender,_=f.imageRender,P=At(f,XBe),O=YBe(l),I=$e(O,3),M=I[0],T=I[1],D=I[2],A=xn(0,{value:g}),j=$e(A,2),k=j[0],F=j[1],V=d.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=((n=M[k])===null||n===void 0?void 0:n.data)||{},ee=Q.src,re=At(Q,QBe),ie=xn(!!h,{value:h,onChange:function(Me,Se){p==null||p(Me,Se,k)}}),G=$e(ie,2),X=G[0],ne=G[1],le=d.useState(null),ce=$e(le,2),oe=ce[0],se=ce[1],fe=d.useCallback(function(Oe,Me,Se,ye){var ve=D?M.findIndex(function(be){return be.data.src===Me}):M.findIndex(function(be){return be.id===Oe});F(ve<0?0:ve),ne(!0),se({x:Se,y:ye}),L(!0)},[M,D]);d.useEffect(function(){X?K||F(0):L(!1)},[X]);var te=function(Me,Se){F(Me),E==null||E(Me,Se)},he=function(){ne(!1),se(null)},pe=d.useMemo(function(){return{register:T,onPreview:fe}},[T,fe]);return d.createElement(aS.Provider,{value:pe},i,d.createElement(hse,Ge({"aria-hidden":!X,movable:v,visible:X,prefixCls:o,closeIcon:w,onClose:he,mousePosition:oe,imgCommonProps:re,src:ee,fallback:u,icons:s,minScale:b,maxScale:y,getContainer:m,current:k,count:M.length,countRender:S,onTransform:C,toolbarRender:x,imageRender:_,onChange:te},P)))},TU=0;function ZBe(e,t){var n=d.useState(function(){return TU+=1,String(TU)}),r=$e(n,1),o=r[0],i=d.useContext(aS),a={data:t,canPreview:e};return d.useEffect(function(){if(i)return i.register(o,a)},[]),d.useEffect(function(){i&&i.register(o,a)},[e,t]),o}var e9e=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],t9e=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],kD=function(t){var n=t.src,r=t.alt,o=t.onPreviewClose,i=t.prefixCls,a=i===void 0?"rc-image":i,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,h=t.height,p=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,b=t.onClick,y=t.onError,S=t.wrapperClassName,w=t.wrapperStyle,E=t.rootClassName,C=At(t,e9e),x=c&&c!==!0,_=Ht(g)==="object"?g:{},P=_.src,O=_.visible,I=O===void 0?void 0:O,M=_.onVisibleChange,T=M===void 0?o:M,D=_.getContainer,A=D===void 0?void 0:D,j=_.mask,k=_.maskClassName,F=_.movable,V=_.icons,W=_.scaleStep,K=_.minScale,L=_.maxScale,Q=_.imageRender,ee=_.toolbarRender,re=At(_,t9e),ie=P??n,G=xn(!!I,{value:I,onChange:T}),X=$e(G,2),ne=X[0],le=X[1],ce=fse({src:n,isCustomPlaceholder:x,fallback:u}),oe=$e(ce,3),se=oe[0],fe=oe[1],te=oe[2],he=d.useState(null),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=d.useContext(aS),ye=!!g,ve=function(){le(!1),Me(null)},be=xe(a,S,E,Z({},"".concat(a,"-error"),te==="error")),Pe=d.useMemo(function(){var q={};return b6.forEach(function(me){t[me]!==void 0&&(q[me]=t[me])}),q},b6.map(function(q){return t[q]})),Ne=d.useMemo(function(){return z(z({},Pe),{},{src:ie})},[ie,Pe]),U=ZBe(ye,Ne),H=function(me){var Ce=FBe(me.target),ue=Ce.left,Le=Ce.top;Se?Se.onPreview(U,ie,ue,Le):(Me({x:ue,y:Le}),le(!0)),b==null||b(me)};return d.createElement(d.Fragment,null,d.createElement("div",Ge({},C,{className:be,onClick:ye?H:b,style:z({width:f,height:h},w)}),d.createElement("img",Ge({},Pe,{className:xe("".concat(a,"-img"),Z({},"".concat(a,"-img-placeholder"),c===!0),v),style:z({height:h},p),ref:se},fe,{width:f,height:h,onError:y})),te==="loading"&&d.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),j&&ye&&d.createElement("div",{className:xe("".concat(a,"-mask"),k),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},j)),!Se&&ye&&d.createElement(hse,Ge({"aria-hidden":!ne,visible:ne,prefixCls:l,onClose:ve,mousePosition:Oe,src:ie,alt:r,imageInfo:{width:f,height:h},fallback:u,getContainer:A,icons:V,movable:F,scaleStep:W,minScale:K,maxScale:L,rootClassName:E,imageRender:Q,imgCommonProps:Pe,toolbarRender:ee},re)))};kD.PreviewGroup=JBe;var n9e={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"},r9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:n9e}))},o9e=d.forwardRef(r9e),i9e={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"},a9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:i9e}))},s9e=d.forwardRef(a9e),l9e={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"},c9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:l9e}))},RU=d.forwardRef(c9e),u9e={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"},d9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:u9e}))},f9e=d.forwardRef(d9e),h9e={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"},p9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:h9e}))},m9e=d.forwardRef(p9e);const S6=e=>({position:e||"absolute",inset:0}),g9e=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Un("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},wa),{padding:`0 ${_e(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},v9e=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,h=new Un(n).setA(.1),p=h.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,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 ${_e(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}}}}},y9e=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,s=new Un(t).setA(.1),l=s.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).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}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},b9e=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},S6()),{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({},S6()),{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"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[v9e(e),y9e(e)]}]},S9e=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({},g9e(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},S6())}}},C9e=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Mv(e,"zoom"),"&":OA(e,!0)}},w9e=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Un(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Un(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Un(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),pse=Kn("Image",e=>{const t=`${e.componentCls}-preview`,n=kn(e,{previewCls:t,modalMaskBg:new Un("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[S9e(n),b9e(n),Ere(kn(n,{componentCls:t})),C9e(n)]},w9e);var x9e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{previewPrefixCls:t,preview:n}=e,r=x9e(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=d.useContext(Yt),i=o("image",t),a=`${i}-preview`,s=o(),l=Mr(i),[c,u,f]=pse(i,l),[h]=vl("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=d.useMemo(()=>{var m;if(n===!1)return n;const g=typeof n=="object"?n:{},v=xe(u,f,l,(m=g.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},g),{transitionName:Mi(s,"zoom",g.transitionName),maskTransitionName:Mi(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:h})},[n]);return c(d.createElement(kD.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:mse},r)))};var IU=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:r,className:o,rootClassName:i,style:a}=e,s=IU(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Os,getPopupContainer:u,image:f}=d.useContext(Yt),h=l("image",n),p=l(),m=c.Image||Os.Image,g=Mr(h),[v,b,y]=pse(h,g),S=xe(i,b,y,g),w=xe(o,b,f==null?void 0:f.className),[E]=vl("ImagePreview",typeof r=="object"?r.zIndex:void 0),C=d.useMemo(()=>{var _;if(r===!1)return r;const P=typeof r=="object"?r:{},{getContainer:O,closeIcon:I,rootClassName:M}=P,T=IU(P,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:d.createElement("div",{className:`${h}-mask-info`},d.createElement(uP,null),m==null?void 0:m.preview),icons:mse},T),{rootClassName:xe(S,M),getContainer:O??u,transitionName:Mi(p,"zoom",P.transitionName),maskTransitionName:Mi(p,"fade",P.maskTransitionName),zIndex:E,closeIcon:I??((_=f==null?void 0:f.preview)===null||_===void 0?void 0:_.closeIcon)})},[r,m,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),x=Object.assign(Object.assign({},f==null?void 0:f.style),a);return v(d.createElement(kD,Object.assign({prefixCls:h,preview:C,rootClassName:S,className:w,style:x},s)))};gse.PreviewGroup=E9e;function _9e(e,t,n){return typeof n=="boolean"?n:e.length?!0:ai(t).some(o=>o.type===joe)}var vse=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 o=0,r=Object.getOwnPropertySymbols(e);od.forwardRef((a,s)=>d.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const ND=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=vse(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Yt),l=s("layout",n),[c,u,f]=Doe(l),h=r?`${l}-${r}`:l;return c(d.createElement(i,Object.assign({className:xe(n||h,o,u,f),ref:t},a)))}),$9e=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(Yt),[r,o]=d.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=vse(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=Yn(h,["suffixCls"]),{getPrefixCls:m,layout:g}=d.useContext(Yt),v=m("layout",i),b=_9e(r,l,c),[y,S,w]=Doe(v),E=xe(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,S,w),C=d.useMemo(()=>({siderHook:{addSider:x=>{o(_=>[].concat(Ze(_),[x]))},removeSider:x=>{o(_=>_.filter(P=>P!==x))}}}),[]);return y(d.createElement(koe.Provider,{value:C},d.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},p),l)))}),P9e=fP({tagName:"div",displayName:"Layout"})($9e),iE=fP({suffixCls:"header",tagName:"header",displayName:"Header"})(ND),O9e=fP({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ND),M9e=fP({suffixCls:"content",tagName:"main",displayName:"Content"})(ND),ei=P9e;ei.Header=iE;ei.Footer=O9e;ei.Content=M9e;ei.Sider=joe;ei._InternalSiderContext=X$;const yse=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e};var T9e={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"},R9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:T9e}))},kU=d.forwardRef(R9e),I9e={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"},k9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:I9e}))},NU=d.forwardRef(k9e),bse={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:"页码"},N9e=[10,20,50,100],A9e=function(t){var n=t.pageSizeOptions,r=n===void 0?N9e:n,o=t.locale,i=t.changeSize,a=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,h=t.showSizeChanger,p=t.sizeChangerRender,m=de.useState(""),g=$e(m,2),v=g[0],b=g[1],y=function(){return!v||Number.isNaN(v)?void 0:Number(v)},S=typeof f=="function"?f:function(M){return"".concat(M," ").concat(o.items_per_page)},w=function(T){b(T.target.value)},E=function(T){s||v===""||(b(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},C=function(T){v!==""&&(T.keyCode===ut.ENTER||T.type==="click")&&(b(""),l==null||l(y()))},x=function(){return r.some(function(T){return T.toString()===a.toString()})?r:r.concat([a]).sort(function(T,D){var A=Number.isNaN(Number(T))?0:Number(T),j=Number.isNaN(Number(D))?0:Number(D);return A-j})},_="".concat(c,"-options");if(!h&&!l)return null;var P=null,O=null,I=null;return h&&p&&(P=p({disabled:u,size:a,onSizeChange:function(T){i==null||i(Number(T))},"aria-label":o.page_size,className:"".concat(_,"-size-changer"),options:x().map(function(M){return{label:S(M),value:M}})})),l&&(s&&(I=typeof s=="boolean"?de.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(_,"-quick-jumper-button")},o.jump_to_confirm):de.createElement("span",{onClick:C,onKeyUp:C},s)),O=de.createElement("div",{className:"".concat(_,"-quick-jumper")},o.jump_to,de.createElement("input",{disabled:u,type:"text",value:v,onChange:w,onKeyUp:C,onBlur:E,"aria-label":o.page}),o.page,I)),de.createElement("li",{className:_},P,O)},z0=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),h=xe(f,"".concat(f,"-").concat(o),(n={},Z(n,"".concat(f,"-active"),i),Z(n,"".concat(f,"-disabled"),!o),n),a),p=function(){l(o)},m=function(b){c(b,l,o)},g=u(o,"page",de.createElement("a",{rel:"nofollow"},o));return g?de.createElement("li",{title:s?String(o):null,className:h,onClick:p,onKeyDown:m,tabIndex:0},g):null},D9e=function(t,n,r){return r};function AU(){}function DU(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ih(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var j9e=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,a=i===void 0?"rc-select":i,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,h=f===void 0?0:f,p=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,b=v===void 0?AU:v,y=t.hideOnSinglePage,S=t.align,w=t.showPrevNextJumpers,E=w===void 0?!0:w,C=t.showQuickJumper,x=t.showLessItems,_=t.showTitle,P=_===void 0?!0:_,O=t.onShowSizeChange,I=O===void 0?AU:O,M=t.locale,T=M===void 0?bse:M,D=t.style,A=t.totalBoundaryShowSizeChanger,j=A===void 0?50:A,k=t.disabled,F=t.simple,V=t.showTotal,W=t.showSizeChanger,K=W===void 0?h>j:W,L=t.sizeChangerRender,Q=t.pageSizeOptions,ee=t.itemRender,re=ee===void 0?D9e:ee,ie=t.jumpPrevIcon,G=t.jumpNextIcon,X=t.prevIcon,ne=t.nextIcon,le=de.useRef(null),ce=xn(10,{value:p,defaultValue:g}),oe=$e(ce,2),se=oe[0],fe=oe[1],te=xn(1,{value:l,defaultValue:u,postState:function(J){return Math.max(1,Math.min(J,ih(void 0,se,h)))}}),he=$e(te,2),pe=he[0],Oe=he[1],Me=de.useState(pe),Se=$e(Me,2),ye=Se[0],ve=Se[1];d.useEffect(function(){ve(pe)},[pe]);var be=Math.max(1,pe-(x?3:5)),Pe=Math.min(ih(void 0,se,h),pe+(x?3:5));function Ne(R,J){var Ee=R||de.createElement("button",{type:"button","aria-label":J,className:"".concat(o,"-item-link")});return typeof R=="function"&&(Ee=de.createElement(R,z({},t))),Ee}function U(R){var J=R.target.value,Ee=ih(void 0,se,h),ke;return J===""?ke=J:Number.isNaN(Number(J))?ke=ye:J>=Ee?ke=Ee:ke=Number(J),ke}function H(R){return DU(R)&&R!==pe&&DU(h)&&h>0}var q=h>se?C:!1;function me(R){(R.keyCode===ut.UP||R.keyCode===ut.DOWN)&&R.preventDefault()}function Ce(R){var J=U(R);switch(J!==ye&&ve(J),R.keyCode){case ut.ENTER:He(J);break;case ut.UP:He(J-1);break;case ut.DOWN:He(J+1);break}}function ue(R){He(U(R))}function Le(R){var J=ih(R,se,h),Ee=pe>J&&J!==0?J:pe;fe(R),ve(Ee),I==null||I(pe,R),Oe(Ee),b==null||b(Ee,R)}function He(R){if(H(R)&&!k){var J=ih(void 0,se,h),Ee=R;return R>J?Ee=J:R<1&&(Ee=1),Ee!==ye&&ve(Ee),Oe(Ee),b==null||b(Ee,se),Ee}return pe}var ge=pe>1,De=pe2?Ee-2:0),Je=2;Jeh?h:pe*se])),We=null,je=ih(void 0,se,h);if(y&&h<=se)return null;var Xe=[],pt={rootPrefixCls:o,onClick:He,onKeyPress:Ve,showTitle:P,itemRender:re,page:-1},vt=pe-1>0?pe-1:0,Mt=pe+1=Ct*2&&pe!==3&&(Xe[0]=de.cloneElement(Xe[0],{className:xe("".concat(o,"-item-after-jump-prev"),Xe[0].props.className)}),Xe.unshift(wt)),je-pe>=Ct*2&&pe!==je-2){var It=Xe[Xe.length-1];Xe[Xe.length-1]=de.cloneElement(It,{className:xe("".concat(o,"-item-before-jump-next"),It.props.className)}),Xe.push(We)}bt!==1&&Xe.unshift(de.createElement(z0,Ge({},pt,{key:1,page:1}))),Ft!==je&&Xe.push(de.createElement(z0,Ge({},pt,{key:je,page:je})))}var tt=gt(vt);if(tt){var Ot=!ge||!je;tt=de.createElement("li",{title:P?T.prev_page:null,onClick:qe,tabIndex:Ot?null:0,onKeyDown:Tt,className:xe("".concat(o,"-prev"),Z({},"".concat(o,"-disabled"),Ot)),"aria-disabled":Ot},tt)}var Pt=Lt(Mt);if(Pt){var pn,Pn;F?(pn=!De,Pn=ge?0:null):(pn=!De||!je,Pn=pn?null:0),Pt=de.createElement("li",{title:P?T.next_page:null,onClick:Fe,tabIndex:Pn,onKeyDown:et,className:xe("".concat(o,"-next"),Z({},"".concat(o,"-disabled"),pn)),"aria-disabled":pn},Pt)}var $=xe(o,s,(n={},Z(n,"".concat(o,"-start"),S==="start"),Z(n,"".concat(o,"-center"),S==="center"),Z(n,"".concat(o,"-end"),S==="end"),Z(n,"".concat(o,"-simple"),F),Z(n,"".concat(o,"-disabled"),k),n));return de.createElement("ul",Ge({className:$,style:D,ref:le},Nt),Be,tt,F?Rt:Xe,Pt,de.createElement(A9e,{locale:T,rootPrefixCls:o,disabled:k,selectPrefixCls:a,changeSize:Le,pageSize:se,pageSizeOptions:Q,quickGo:q?He:null,goButton:dt,showSizeChanger:K,sizeChangerRender:L}))};const F9e=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"}}}}}},L9e=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:_e(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_e(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:_e(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:_e(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:_e(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:_e(e.itemSizeSM),input:Object.assign(Object.assign({},CD(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},z9e=e=>{const{componentCls:t}=e;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:_e(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:_e(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:_e(e.itemSizeSM),input:Object.assign(Object.assign({},bD(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},B9e=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:_e(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:_e(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${_e(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${_e(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:`${_e(e.inputOutlineOffset)} 0 ${_e(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},H9e=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}}},[` + `]:{height:e.itemSizeSM,lineHeight:_e(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:_e(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${_e(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${_e(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:`${_e(e.inputOutlineOffset)} 0 ${_e(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},z9e=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 @@ -434,8 +434,8 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:_e(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:`${_e(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:_e(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},eS(e)),gD(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})}}}},U9e=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:_e(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${_e(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_e(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}}}}},W9e=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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:_e(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),U9e(e)),H9e(e)),z9e(e)),B9e(e)),L9e(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"}}},V9e=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ka(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},rc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},rc(e))}}}},Cse=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},Z1(e)),wse=e=>kn(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"},J1(e)),K9e=Kn("Pagination",e=>{const t=wse(e);return[W9e(t),V9e(t)]},Cse),q9e=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:`${_e(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}}}}},G9e=$v(["Pagination","bordered"],e=>{const t=wse(e);return[q9e(t)]},Cse);function LU(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Y9e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:h}=e,p=Y9e(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=W$(c),[,g]=Ho(),{getPrefixCls:v,direction:b,pagination:y={}}=d.useContext(Yt),S=v("pagination",n),[w,E,C]=K9e(S),x=Eo(s),_=x==="small"||!!(m&&!x&&c),[P]=zi("Pagination",zte),O=Object.assign(Object.assign({},P),l),[I,M]=LU(u),[T,D]=LU(y.showSizeChanger),A=I??T,j=M??D,k=f||Va,F=d.useMemo(()=>h?h.map(ee=>Number(ee)):void 0,[h]),V=ee=>{var re;const{disabled:ie,size:G,onSizeChange:X,"aria-label":ne,className:le,options:ce}=ee,{className:oe,onChange:se}=j||{},fe=(re=ce.find(te=>String(te.value)===String(G)))===null||re===void 0?void 0:re.value;return d.createElement(k,Object.assign({disabled:ie,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:te=>te.parentNode,"aria-label":ne,options:ce},j,{value:fe,onChange:(te,he)=>{X==null||X(te),se==null||se(te,he)},size:_?"small":"middle",className:xe(le,oe)}))},W=d.useMemo(()=>{const ee=d.createElement("span",{className:`${S}-item-ellipsis`},"•••"),re=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?d.createElement(rd,null):d.createElement(qg,null)),ie=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?d.createElement(qg,null):d.createElement(rd,null)),G=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},b==="rtl"?d.createElement(DU,{className:`${S}-item-link-icon`}):d.createElement(AU,{className:`${S}-item-link-icon`}),ee)),X=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},b==="rtl"?d.createElement(AU,{className:`${S}-item-link-icon`}):d.createElement(DU,{className:`${S}-item-link-icon`}),ee));return{prevIcon:re,nextIcon:ie,jumpPrevIcon:G,jumpNextIcon:X}},[b,S]),K=v("select",r),L=xe({[`${S}-${t}`]:!!t,[`${S}-mini`]:_,[`${S}-rtl`]:b==="rtl",[`${S}-bordered`]:g.wireframe},y==null?void 0:y.className,o,i,E,C),Q=Object.assign(Object.assign({},y==null?void 0:y.style),a);return w(d.createElement(d.Fragment,null,g.wireframe&&d.createElement(G9e,{prefixCls:S}),d.createElement(F9e,Object.assign({},W,p,{style:Q,prefixCls:S,selectPrefixCls:K,className:L,locale:O,pageSizeOptions:F,showSizeChanger:A,sizeChangerRender:V}))))},iE=100,xse=iE/5,Ese=iE/2-xse/2,dR=Ese*2*Math.PI,BU=50,zU=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:xe(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Ese,cx:BU,cy:BU,strokeWidth:xse,style:n})},Q9e=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,s]=d.useState(!1);Zn(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:`${dR/4}`,strokeDasharray:`${dR*l/100} ${dR*(100-l)/100}`};return d.createElement("span",{className:xe(o,`${r}-progress`,l<=0&&i)},d.createElement("svg",{viewBox:`0 0 ${iE} ${iE}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},d.createElement(zU,{dotClassName:r,hasCircleCls:!0}),d.createElement(zU,{dotClassName:r,style:c})))};function J9e(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:xe(o,n>0&&i)},d.createElement("span",{className:xe(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>d.createElement("i",{className:`${t}-dot-item`,key:a})))),d.createElement(Q9e,{prefixCls:t,percent:n}))}function Z9e(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&d.isValidElement(n)?Zo(n,{className:xe(n.props.className,o),percent:r}):d.createElement(J9e,{prefixCls:t,percent:r})}const eze=new Gn("antSpinMove",{to:{opacity:1}}),tze=new Gn("antRotate",{to:{transform:"rotate(405deg)"}}),nze=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Qn(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:eze,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:tze,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"}})}},rze=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},oze=Kn("Spin",e=>{const t=kn(e,{spinDotDefault:e.colorTextDescription});return[nze(t)]},rze),ize=200,HU=[[30,.05],[70,.03],[96,.01]];function aze(e,t){const[n,r]=d.useState(0),o=d.useRef(null),i=t==="auto";return d.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l{clearInterval(o.current)}),[i,e]),i?n:t}var sze=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:h=!1,indicator:p,percent:m}=e,g=sze(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,spin:y}=d.useContext(Yt),S=v("spin",n),[w,E,C]=oze(S),[x,_]=d.useState(()=>r&&!lze(r,o)),P=aze(x,m);d.useEffect(()=>{if(r){const j=JDe(o,()=>{_(!0)});return j(),()=>{var k;(k=j==null?void 0:j.cancel)===null||k===void 0||k.call(j)}}_(!1)},[o,r]);const O=d.useMemo(()=>typeof f<"u"&&!h,[f,h]),I=xe(S,y==null?void 0:y.className,{[`${S}-sm`]:s==="small",[`${S}-lg`]:s==="large",[`${S}-spinning`]:x,[`${S}-show-text`]:!!l,[`${S}-rtl`]:b==="rtl"},i,!h&&a,E,C),M=xe(`${S}-container`,{[`${S}-blur`]:x}),T=(t=p??(y==null?void 0:y.indicator))!==null&&t!==void 0?t:_se,D=Object.assign(Object.assign({},y==null?void 0:y.style),u),A=d.createElement("div",Object.assign({},g,{style:D,className:I,"aria-live":"polite","aria-busy":x}),d.createElement(Z9e,{prefixCls:S,indicator:T,percent:P}),l&&(O||h)?d.createElement("div",{className:`${S}-text`},l):null);return w(O?d.createElement("div",Object.assign({},g,{className:xe(`${S}-nested-loading`,c,E,C)}),x&&d.createElement("div",{key:"loading"},A),d.createElement("div",{className:M,key:"container"},f)):h?d.createElement("div",{className:xe(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:x},a,E,C)},A):A)};au.setDefaultIndicator=e=>{_se=e};let Vs=null,Rh=e=>e(),Gb=[],Yb={};function UU(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Yb,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const cze=de.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=d.useContext(Yt),i=Yb.prefixCls||o("message"),a=d.useContext(e6),[s,l]=Bne(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return de.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}),uze=de.forwardRef((e,t)=>{const[n,r]=de.useState(UU),o=()=>{r(UU)};de.useEffect(o,[]);const i=Ene(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=de.createElement(cze,{ref:t,sync:o,messageConfig:n});return de.createElement(Mn,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});function hP(){if(!Vs){const e=document.createDocumentFragment(),t={fragment:e};Vs=t,Rh(()=>{$A()(de.createElement(uze,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,hP())})}}),e)});return}Vs.instance&&(Gb.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Rh(()=>{const r=Vs.instance.open(Object.assign(Object.assign({},Yb),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Rh(()=>{Vs==null||Vs.instance.destroy(e.key)});break;default:Rh(()=>{var r;const o=(r=Vs.instance)[t].apply(r,Ze(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Gb=[])}function dze(e){Yb=Object.assign(Object.assign({},Yb),e),Rh(()=>{var t;(t=Vs==null?void 0:Vs.sync)===null||t===void 0||t.call(Vs)})}function fze(e){const t=_A(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Gb.push(o),()=>{r?Rh(()=>{r()}):o.skipped=!0}});return hP(),t}function hze(e,t){const n=_A(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return Gb.push(i),()=>{o?Rh(()=>{o()}):i.skipped=!0}});return hP(),n}const pze=e=>{Gb.push({type:"destroy",key:e}),hP()},mze=["success","info","warning","error","loading"],gze={open:fze,destroy:pze,config:dze,useMessage:zne,_InternalPanelDoNotUseOrYouWillBeFired:oTe},$se=gze;mze.forEach(e=>{$se[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:l}=e,c=vze(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Yt),f=u(),h=t||u("modal"),p=Mr(f),[m,g,v]=Ore(h,p),b=`${h}-confirm`;let y={};return i?y={closable:o??!1,title:"",footer:"",children:d.createElement(Tre,Object.assign({},e,{prefixCls:h,confirmPrefixCls:b,rootPrefixCls:f,content:s}))}:y={closable:o??!0,title:a,footer:l!==null&&d.createElement(xre,Object.assign({},e)),children:s},m(d.createElement(lre,Object.assign({prefixCls:h,className:xe(g,`${h}-pure-panel`,i&&b,i&&`${b}-${i}`,n,v,p)},c,{closeIcon:wre(h,r),closable:o},y)))},bze=Hre(yze);function Pse(e){return K1(Nre(e))}const Hi=Mre;Hi.useModal=Lre;Hi.info=function(t){return K1(Are(t))};Hi.success=function(t){return K1(Dre(t))};Hi.error=function(t){return K1(jre(t))};Hi.warning=Pse;Hi.warn=Pse;Hi.confirm=function(t){return K1(Fre(t))};Hi.destroyAll=function(){for(;Mh.length;){const t=Mh.pop();t&&t()}};Hi.config=y4e;Hi._InternalPanelDoNotUseOrYouWillBeFired=bze;const Sze=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${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:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},Cze=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},Ose=Kn("Popconfirm",e=>Sze(e),Cze,{resetStyle:!1});var wze=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=d.createElement(Df,null),showCancel:u=!0,close:f,onConfirm:h,onCancel:p,onPopupClick:m}=e,{getPrefixCls:g}=d.useContext(Yt),[v]=zi("Popconfirm",Os.Popconfirm),b=Kg(o),y=Kg(i);return d.createElement("div",{className:`${t}-inner-content`,onClick:m},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},b&&d.createElement("div",{className:`${t}-title`},b),y&&d.createElement("div",{className:`${t}-description`},y))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(Hn,Object.assign({onClick:p,size:"small"},r),a||(v==null?void 0:v.cancelText)),d.createElement(AA,{buttonProps:Object.assign(Object.assign({size:"small"},PA(l)),n),actionFn:h,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},xze=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=wze(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=d.useContext(Yt),s=a("popconfirm",t),[l]=Ose(s);return l(d.createElement(boe,{placement:n,className:xe(s,r),style:o,content:d.createElement(Mse,Object.assign({prefixCls:s},i))}))};var Eze=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:f="primary",icon:h=d.createElement(Df,null),children:p,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:b,styles:y,classNames:S}=e,w=Eze(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:E,popconfirm:C}=d.useContext(Yt),[x,_]=xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=(F,V)=>{_(F,!0),v==null||v(F),g==null||g(F,V)},O=F=>{P(!1,F)},I=F=>{var V;return(V=e.onConfirm)===null||V===void 0?void 0:V.call(void 0,F)},M=F=>{var V;P(!1,F),(V=e.onCancel)===null||V===void 0||V.call(void 0,F)},T=(F,V)=>{const{disabled:W=!1}=e;W||P(F,V)},D=E("popconfirm",l),A=xe(D,m,(o=C==null?void 0:C.classNames)===null||o===void 0?void 0:o.root,S==null?void 0:S.root),j=xe((i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.body,S==null?void 0:S.body),[k]=Ose(D);return k(d.createElement(fl,Object.assign({},Yn(w,["title"]),{trigger:u,placement:c,onOpenChange:T,open:x,ref:t,classNames:{root:A,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.root),C==null?void 0:C.style),b),y==null?void 0:y.root),body:Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.body),y==null?void 0:y.body)},content:d.createElement(Mse,Object.assign({okType:f,icon:h},e,{prefixCls:D,close:O,onConfirm:I,onCancel:M})),"data-popover-inject":!0}),p))}),Tse=_ze;Tse._InternalPanelDoNotUseOrYouWillBeFired=xze;var $ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Pze=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},WU=0,Oze=Ca();function Mze(){var e;return Oze?(e=WU,WU+=1):e="TEST_OR_SSR",e}const Tze=function(e){var t=d.useState(),n=$e(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_progress_".concat(Mze()))},[]),e||r};var VU=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function KU(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var Rze=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,h=r&&Ht(r)==="object",p=h?"#FFF":void 0,m=u/2,g=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!h)return g;var v="".concat(o,"-conic"),b=f?"".concat(180+f/2,"deg"):"0deg",y=KU(r,(360-f)/360),S=KU(r,1),w="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),E="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(S.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},g),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(VU,{bg:E},d.createElement(VU,{bg:w}))))}),gy=100,fR=function(t,n,r,o,i,a,s,l,c,u){var f=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-o)/100*n;c==="round"&&o!==100&&(m+=u/2,m>=n&&(m=n-.01));var g=gy/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+f,transform:"rotate(".concat(i+h+p,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"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}},Ize=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qU(e){var t=e??[];return Array.isArray(t)?t:[t]}var kze=function(t){var n=z(z({},$ze),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,h=n.strokeLinecap,p=n.style,m=n.className,g=n.strokeColor,v=n.percent,b=At(n,Ize),y=gy/2,S=Tze(r),w="".concat(S,"-gradient"),E=y-a/2,C=Math.PI*2*E,x=c>0?90+c/2:-90,_=C*((360-c)/360),P=Ht(i)==="object"?i:{count:i,gap:2},O=P.count,I=P.gap,M=qU(v),T=qU(g),D=T.find(function(K){return K&&Ht(K)==="object"}),A=D&&Ht(D)==="object",j=A?"butt":h,k=fR(C,_,0,100,x,c,u,f,j,a),F=Pze(),V=function(){var L=0;return M.map(function(Q,ee){var re=T[ee]||T[T.length-1],ie=fR(C,_,L,Q,x,c,u,re,j,a);return L+=Q,d.createElement(Rze,{key:ee,color:re,ptg:Q,radius:E,prefixCls:o,gradientId:w,style:ie,strokeLinecap:j,strokeWidth:a,gapDegree:c,ref:function(X){F[ee]=X},size:gy})}).reverse()},W=function(){var L=Math.round(O*(M[0]/100)),Q=100/O,ee=0;return new Array(O).fill(null).map(function(re,ie){var G=ie<=L-1?T[0]:f,X=G&&Ht(G)==="object"?"url(#".concat(w,")"):void 0,ne=fR(C,_,ee,Q,x,c,u,G,"butt",a,I);return ee+=(_-ne.strokeDashoffset+I)*100/_,d.createElement("circle",{key:ie,className:"".concat(o,"-circle-path"),r:E,cx:y,cy:y,stroke:X,strokeWidth:a,opacity:1,style:ne,ref:function(ce){F[ie]=ce}})})};return d.createElement("svg",Ge({className:xe("".concat(o,"-circle"),m),viewBox:"0 0 ".concat(gy," ").concat(gy),style:p,id:r,role:"presentation"},b),!O&&d.createElement("circle",{className:"".concat(o,"-circle-trail"),r:E,cx:y,cy:y,stroke:f,strokeLinecap:j,strokeWidth:s||a,style:k}),O?W():V())};function bf(e){return!e||e<0?0:e>100?100:e}function aE(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 Nze=e=>{let{percent:t,success:n,successPercent:r}=e;const o=bf(aE({success:n,successPercent:r}));return[o,bf(bf(t)-o)]},Aze=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||qh.green,n||null]},pP=(e,t,n)=>{var r,o,i,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=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},Dze=3,jze=e=>Dze/e*100,Fze=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[h,p]=pP(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(jze(h),6));const g={width:h,height:p,fontSize:h*.15+6},v=d.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),b=Nze(e),y=o||s==="dashboard"&&"bottom"||void 0,S=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=Aze({success:c,strokeColor:e.strokeColor}),E=xe(`${t}-inner`,{[`${t}-circle-gradient`]:S}),C=d.createElement(kze,{steps:f,percent:f?b[1]:b,strokeWidth:m,trailWidth:m,strokeColor:f?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y}),x=h<=20,_=d.createElement("div",{className:E,style:g},C,!x&&l);return x?d.createElement(xa,{title:l},_):_},sE="--progress-line-stroke-color",Rse="--progress-percent",GU=e=>{const t=e?"100%":"-100%";return new Gn(`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}})},Lze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Qn(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(${sE})`]},height:"100%",width:`calc(1 / var(${Rse}) * 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 ${_e(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:GU(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:GU(!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}}})}},Bze=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"}}}},zze=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}}}}}},Hze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Uze=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Wze=Kn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=kn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Lze(n),Bze(n),zze(n),Hze(n)]},Uze);var Vze=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 o=0,r=Object.getOwnPropertySymbols(e);o{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:o}=n;return`${o} ${r}%`}).join(", ")},qze=(e,t)=>{const{from:n=qh.blue,to:r=qh.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Vze(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=Kze(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[sE]:l}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[sE]:a}},Gze=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:h,type:p}=u,m=a&&typeof a!="string"?qze(a,n):{[sE]:a,background:a},g=s==="square"||s==="butt"?0:void 0,v=o??[-1,i||(o==="small"?6:8)],[b,y]=pP(v,"line",{strokeWidth:i}),S={backgroundColor:c||void 0,borderRadius:g},w=Object.assign(Object.assign({width:`${bf(r)}%`,height:y,borderRadius:g},m),{[Rse]:bf(r)/100}),E=aE(e),C={width:`${bf(E)}%`,height:y,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},x={width:b<0?"100%":b},_=d.createElement("div",{className:`${t}-inner`,style:S},d.createElement("div",{className:xe(`${t}-bg`,`${t}-bg-${p}`),style:w},p==="inner"&&l),E!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:C})),P=p==="outer"&&h==="start",O=p==="outer"&&h==="end";return p==="outer"&&h==="center"?d.createElement("div",{className:`${t}-layout-bottom`},_,l):d.createElement("div",{className:`${t}-outer`,style:x},P&&l,_,O&&l)},Yze=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,o],[h,p]=pP(f,"step",{steps:n,strokeWidth:o}),m=h/n,g=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:h,style:p,percentPosition:m={}}=e,g=Xze(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:b="outer"}=m,y=Array.isArray(a)?a[0]:a,S=typeof a=="string"||Array.isArray(a)?a:void 0,w=d.useMemo(()=>{if(y){const V=typeof y=="string"?y:Object.values(y)[0];return new Un(V).isLight()}return!1},[a]),E=d.useMemo(()=>{var V,W;const K=aE(e);return parseInt(K!==void 0?(V=K??0)===null||V===void 0?void 0:V.toString():(W=s??0)===null||W===void 0?void 0:W.toString(),10)},[s,e.success,e.successPercent]),C=d.useMemo(()=>!Qze.includes(f)&&E>=100?"success":f||"normal",[f,E]),{getPrefixCls:x,direction:_,progress:P}=d.useContext(Yt),O=x("progress",n),[I,M,T]=Wze(O),D=u==="line",A=D&&!i,j=d.useMemo(()=>{if(!c)return null;const V=aE(e);let W;const K=h||(Q=>`${Q}%`),L=D&&w&&b==="inner";return b==="inner"||h||C!=="exception"&&C!=="success"?W=K(bf(s),bf(V)):C==="exception"?W=D?d.createElement(ou,null):d.createElement(iu,null):C==="success"&&(W=D?d.createElement(Lp,null):d.createElement(gf,null)),d.createElement("span",{className:xe(`${O}-text`,{[`${O}-text-bright`]:L,[`${O}-text-${v}`]:A,[`${O}-text-${b}`]:A}),title:typeof W=="string"?W:void 0},W)},[c,s,E,C,u,O,h]);let k;u==="line"?k=i?d.createElement(Yze,Object.assign({},e,{strokeColor:S,prefixCls:O,steps:typeof i=="object"?i.count:i}),j):d.createElement(Gze,Object.assign({},e,{strokeColor:y,prefixCls:O,direction:_,percentPosition:{align:v,type:b}}),j):(u==="circle"||u==="dashboard")&&(k=d.createElement(Fze,Object.assign({},e,{strokeColor:y,prefixCls:O,progressStatus:C}),j));const F=xe(O,`${O}-status-${C}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&pP(l,"circle")[0]<=20,[`${O}-line`]:A,[`${O}-line-align-${v}`]:A,[`${O}-line-position-${b}`]:A,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:_==="rtl"},P==null?void 0:P.className,r,o,M,T);return I(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P==null?void 0:P.style),p),className:F,role:"progressbar","aria-valuenow":E,"aria-valuemin":0,"aria-valuemax":100},Yn(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),k))});function Fc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u$(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}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 i,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,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}var Fv,aS;function ja(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 vu(e,t){return(e>>>t&1)!=0}function as(e){if(!e)throw new Error("Assertion error")}var Lc=function(){function e(t,n){br(this,e),Z(this,"modeBits",void 0),Z(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Sr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();Fv=Lc;Z(Lc,"NUMERIC",new Fv(1,[10,12,14]));Z(Lc,"ALPHANUMERIC",new Fv(2,[9,11,13]));Z(Lc,"BYTE",new Fv(4,[8,16,16]));Z(Lc,"KANJI",new Fv(8,[8,10,12]));Z(Lc,"ECI",new Fv(7,[0,0,0]));var tl=Sr(function e(t,n){br(this,e),Z(this,"ordinal",void 0),Z(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});aS=tl;Z(tl,"LOW",new aS(0,1));Z(tl,"MEDIUM",new aS(1,0));Z(tl,"QUARTILE",new aS(2,3));Z(tl,"HIGH",new aS(3,2));var Qh=function(){function e(t,n,r){if(br(this,e),Z(this,"mode",void 0),Z(this,"numChars",void 0),Z(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 Sr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],o=Fc(n),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;ja(a,8,r)}}catch(s){o.e(s)}finally{o.f()}return new e(Lc.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],o=0;o=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],s=0;s>>9)*1335;var a=(r<<10|o)^21522;as(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,vu(a,s));this.setFunctionModule(8,7,vu(a,6)),this.setFunctionModule(8,8,vu(a,7)),this.setFunctionModule(7,8,vu(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,vu(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,vu(a,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,vu(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 o=this.version<<12|n;as(o>>>18==0);for(var i=0;i<18;i++){var a=vu(o,i),s=this.size-11+i%3,l=Math.floor(i/3);this.setFunctionModule(s,l,a),this.setFunctionModule(l,s,a)}}}},{key:"drawFinderPattern",value:function(n,r){for(var o=-4;o<=4;o++)for(var i=-4;i<=4;i++){var a=Math.max(Math.abs(i),Math.abs(o)),s=n+i,l=r+o;0<=s&&s=l)&&v.push(E[w])})},y=0;y=1;o-=2){o==6&&(o=5);for(var i=0;i>>3],7-(r&7)),r++)}}as(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;r5&&n++):(this.finderPenaltyAddHistory(i,a),o||(n+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),o=this.modules[r][s],i=1);n+=this.finderPenaltyTerminateAndCount(o,i,a)*e.PENALTY_N3}for(var l=0;l5&&n++):(this.finderPenaltyAddHistory(u,f),c||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),c=this.modules[h][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,f)*e.PENALTY_N3}for(var p=0;p0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(o&&n[0]>=r*4&&n[6]>=r?1:0)+(o&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,o){var i=r;return n&&(this.finderPenaltyAddHistory(i,o),i=0),i+=this.size,this.finderPenaltyAddHistory(i,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(n,r){var o=n;r[0]==0&&(o+=this.size),r.pop(),r.unshift(o)}}],[{key:"encodeText",value:function(n,r){var o=Qh.makeSegments(n);return e.encodeSegments(o,r)}},{key:"encodeBinary",value:function(n,r){var o=Qh.makeBytes(n);return e.encodeSegments([o],r)}},{key:"encodeSegments",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=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<=o&&o<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw new RangeError("Invalid value");var l,c;for(l=o;;l++){var u=e.getNumDataCodewords(l,r)*8,f=Qh.getTotalBits(n,l);if(f<=u){c=f;break}if(l>=i)throw new RangeError("Data too long")}for(var h=r,p=0,m=[tl.MEDIUM,tl.QUARTILE,tl.HIGH];p>>3]|=O<<7-(I&7)}),new e(l,h,P,a)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var o=Math.floor(n/7)+2;r-=(25*o-10)*o-55,n>=7&&(r-=36)}return as(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=[],o=0;o>>8||r>>>8)throw new RangeError("Byte out of range");for(var o=0,i=7;i>=0;i--)o=o<<1^(o>>>7)*285,o^=(r>>>i&1)*n;return as(o>>>8==0),o}}]),e}();Z(vd,"MIN_VERSION",1);Z(vd,"MAX_VERSION",40);Z(vd,"PENALTY_N1",3);Z(vd,"PENALTY_N2",3);Z(vd,"PENALTY_N3",40);Z(vd,"PENALTY_N4",10);Z(vd,"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]]);Z(vd,"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 Jze={L:tl.LOW,M:tl.MEDIUM,Q:tl.QUARTILE,H:tl.HIGH},Ise=128,kse="L",Nse="#FFFFFF",Ase="#000000",Dse=!1,jse=1,Zze=4,eHe=0,tHe=.1;function Fse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,o){var i=null;r.forEach(function(a,s){if(!a&&i!==null){n.push("M".concat(i+t," ").concat(o+t,"h").concat(s-i,"v1H").concat(i+t,"z")),i=null;return}if(s===r.length-1){if(!a)return;i===null?n.push("M".concat(s+t,",").concat(o+t," h1v1H").concat(s+t,"z")):n.push("M".concat(i+t,",").concat(o+t," h").concat(s+1-i,"v1H").concat(i+t,"z"));return}a&&i===null&&(i=s)})}),n.join("")}function Lse(e,t){return e.slice().map(function(n,r){return r=t.y+t.h?n:n.map(function(o,i){return i=t.x+t.w?o:!1})})}function nHe(e,t,n,r){if(r==null)return null;var o=e.length+n*2,i=Math.floor(t*tHe),a=o/t,s=(r.width||i)*a,l=(r.height||i)*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,f=r.opacity==null?1:r.opacity,h=null;if(r.excavate){var p=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-p),v=Math.ceil(l+u-m);h={x:p,y:m,w:g,h:v}}var b=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:h,opacity:f,crossOrigin:b}}function rHe(e,t){return t!=null?Math.floor(t):e?Zze:eHe}var oHe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function Bse(e){var t=e.value,n=e.level,r=e.minVersion,o=e.includeMargin,i=e.marginSize,a=e.imageSettings,s=e.size,l=d.useMemo(function(){var m=Qh.makeSegments(t);return vd.encodeSegments(m,Jze[n],r)},[t,n,r]),c=d.useMemo(function(){var m=l.getModules(),g=rHe(o,i),v=m.length+g*2,b=nHe(m,s,g,a);return{cells:m,margin:g,numCells:v,calculatedImageSettings:b}},[l,s,a,o,i]),u=c.cells,f=c.margin,h=c.numCells,p=c.calculatedImageSettings;return{qrcode:l,margin:f,cells:u,numCells:h,calculatedImageSettings:p}}var iHe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],zse=de.forwardRef(function(t,n){var r=t.value,o=t.size,i=o===void 0?Ise:o,a=t.level,s=a===void 0?kse:a,l=t.bgColor,c=l===void 0?Nse:l,u=t.fgColor,f=u===void 0?Ase:u,h=t.includeMargin,p=h===void 0?Dse:h,m=t.minVersion,g=m===void 0?jse:m,v=t.marginSize,b=t.style,y=t.imageSettings,S=At(t,iHe),w=y==null?void 0:y.src,E=d.useRef(null),C=d.useRef(null),x=d.useCallback(function(F){E.current=F,typeof n=="function"?n(F):n&&(n.current=F)},[n]),_=d.useState(!1),P=$e(_,2),O=P[1],I=Bse({value:r,level:s,minVersion:g,includeMargin:p,marginSize:v,imageSettings:y,size:i}),M=I.margin,T=I.cells,D=I.numCells,A=I.calculatedImageSettings;d.useEffect(function(){if(E.current!=null){var F=E.current,V=F.getContext("2d");if(!V)return;var W=T,K=C.current,L=A!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWidth!==0;L&&A.excavation!=null&&(W=Lse(T,A.excavation));var Q=window.devicePixelRatio||1;F.height=F.width=i*Q;var ee=i/D*Q;V.scale(ee,ee),V.fillStyle=c,V.fillRect(0,0,D,D),V.fillStyle=f,oHe?V.fill(new Path2D(Fse(W,M))):T.forEach(function(re,ie){re.forEach(function(G,X){G&&V.fillRect(X+M,ie+M,1,1)})}),A&&(V.globalAlpha=A.opacity),L&&V.drawImage(K,A.x+M,A.y+M,A.w,A.h)}}),d.useEffect(function(){O(!1)},[w]);var j=z({height:i,width:i},b),k=null;return w!=null&&(k=de.createElement("img",{src:w,key:w,style:{display:"none"},onLoad:function(){O(!0)},ref:C,crossOrigin:A==null?void 0:A.crossOrigin})),de.createElement(de.Fragment,null,de.createElement("canvas",Ge({style:j,height:i,width:i,ref:x,role:"img"},S)),k)});zse.displayName="QRCodeCanvas";var aHe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],Hse=de.forwardRef(function(t,n){var r=t.value,o=t.size,i=o===void 0?Ise:o,a=t.level,s=a===void 0?kse:a,l=t.bgColor,c=l===void 0?Nse:l,u=t.fgColor,f=u===void 0?Ase:u,h=t.includeMargin,p=h===void 0?Dse:h,m=t.minVersion,g=m===void 0?jse:m,v=t.title,b=t.marginSize,y=t.imageSettings,S=At(t,aHe),w=Bse({value:r,level:s,minVersion:g,includeMargin:p,marginSize:b,imageSettings:y,size:i}),E=w.margin,C=w.cells,x=w.numCells,_=w.calculatedImageSettings,P=C,O=null;y!=null&&_!=null&&(_.excavation!=null&&(P=Lse(C,_.excavation)),O=de.createElement("image",{href:y.src,height:_.h,width:_.w,x:_.x+E,y:_.y+E,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));var I=Fse(P,E);return de.createElement("svg",Ge({height:i,width:i,viewBox:"0 0 ".concat(x," ").concat(x),ref:n,role:"img"},S),!!v&&de.createElement("title",null,v),de.createElement("path",{fill:c,d:"M0,0 h".concat(x,"v").concat(x,"H0z"),shapeRendering:"crispEdges"}),de.createElement("path",{fill:f,d:I,shapeRendering:"crispEdges"}),O)});Hse.displayName="QRCodeSVG";var sHe={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"},lHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:sHe}))},cHe=d.forwardRef(lHe),uHe={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"},dHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:uHe}))},fHe=d.forwardRef(dHe),hHe={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"},pHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:hHe}))},mHe=d.forwardRef(pHe),gHe={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"},vHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:gHe}))},yHe=d.forwardRef(vHe),bHe={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"},SHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:bHe}))},CHe=d.forwardRef(SHe),wHe={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"},xHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:wHe}))},EHe=d.forwardRef(xHe),_He={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"},$He=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:_He}))},PHe=d.forwardRef($He),OHe={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"},MHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:OHe}))},Use=d.forwardRef(MHe),THe={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"},RHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:THe}))},IHe=d.forwardRef(RHe),kHe={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"},NHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:kHe}))},AHe=d.forwardRef(NHe),DHe={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"},jHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:DHe}))},FHe=d.forwardRef(jHe),LHe={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"},BHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:LHe}))},zHe=d.forwardRef(BHe),HHe={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"},UHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:HHe}))},WHe=d.forwardRef(UHe),VHe={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"},KHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:VHe}))},qHe=d.forwardRef(KHe),GHe={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"},YHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:GHe}))},XHe=d.forwardRef(YHe),QHe={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"},JHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:QHe}))},Wp=d.forwardRef(JHe),ZHe={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"},eUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:ZHe}))},tUe=d.forwardRef(eUe),nUe={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"},rUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:nUe}))},vy=d.forwardRef(rUe),oUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},iUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:oUe}))},lg=d.forwardRef(iUe),aUe={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"},sUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:aUe}))},lUe=d.forwardRef(sUe),cUe={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"},uUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:cUe}))},sS=d.forwardRef(uUe),dUe={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"},fUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:dUe}))},hUe=d.forwardRef(fUe),pUe={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"},mUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:pUe}))},gUe=d.forwardRef(mUe),vUe={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"},yUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:vUe}))},bUe=d.forwardRef(yUe),SUe={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"},CUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:SUe}))},Wse=d.forwardRef(CUe),wUe={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"},xUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:wUe}))},EUe=d.forwardRef(xUe),_Ue={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"},$Ue=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:_Ue}))},PUe=d.forwardRef($Ue),OUe={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"},MUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:OUe}))},Vse=d.forwardRef(MUe),TUe={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"},RUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:TUe}))},IUe=d.forwardRef(RUe),kUe={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"},NUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:kUe}))},FD=d.forwardRef(NUe),AUe={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"},DUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:AUe}))},Kse=d.forwardRef(DUe),jUe={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"},FUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:jUe}))},LUe=d.forwardRef(FUe),BUe=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],qse=d.forwardRef(function(e,t){var n=e.className,r=e.component,o=e.viewBox,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=At(e,BUe),f=d.useRef(),h=mc(f,t);N3(!!(r||c),"Should have `component` prop or `children`."),One(f);var p=d.useContext(p$),m=p.prefixCls,g=m===void 0?"anticon":m,v=p.rootClassName,b=xe(v,g,Z({},"".concat(g,"-spin"),!!i&&!!r),n),y=xe(Z({},"".concat(g,"-spin"),!!i)),S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=z(z({},iMe),{},{className:y,style:S,viewBox:o});o||delete w.viewBox;var E=function(){return r?d.createElement(r,w,c):c?(N3(!!o||d.Children.count(c)===1&&d.isValidElement(c)&&d.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",Ge({},w,{viewBox:o}),c)):null},C=s;return C===void 0&&l&&(C=-1),d.createElement("span",Ge({role:"img"},u,{ref:h,tabIndex:C,onClick:l,className:b}),E())});qse.displayName="AntdIcon";var zUe=["type","children"],Gse=new Set;function HUe(e){return!!(typeof e=="string"&&e.length&&!Gse.has(e))}function lE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(HUe(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){lE(e,t+1)},r.onerror=function(){lE(e,t+1)}),Gse.add(n),document.body.appendChild(r)}}function Yse(){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)?lE(t.reverse()):lE([t]));var o=d.forwardRef(function(i,a){var s=i.type,l=i.children,c=At(i,zUe),u=null;return i.type&&(u=d.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),d.createElement(qse,Ge({},r,c,{ref:a}),u)});return o.displayName="Iconfont",o}const UUe=de.createElement(au,null);function WUe(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:o,status:i}=e;const a=de.createElement(de.Fragment,null,de.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&de.createElement(Hn,{type:"link",icon:de.createElement(EUe,null),onClick:r},n==null?void 0:n.refresh)),s=de.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:a,loading:UUe,scanned:s};return(o??(f=>l[f.status]))({status:i,locale:n,onRefresh:r})}const VUe=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${_e(n)} ${r} ${o}`,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}}},KUe=e=>({QRCodeMaskBackgroundColor:new Un(e.colorBgContainer).setA(.96).toRgbString()}),qUe=Kn("QRCode",e=>{const t=kn(e,{QRCodeTextColor:e.colorText});return VUe(t)},KUe);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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o;const[,i]=Ho(),{value:a,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:f=i.colorText,errorLevel:h="M",status:p="active",bordered:m=!0,onRefresh:g,style:v,className:b,rootClassName:y,prefixCls:S,bgColor:w="transparent",statusRender:E}=e,C=GUe(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:x}=d.useContext(Yt),_=x("qrcode",S),[P,O,I]=qUe(_),M={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"},T=Jr(C,!0),D=Yn(C,Object.keys(T)),A=Object.assign({value:a,size:c,level:h,bgColor:w,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?M:void 0},T),[j]=zi("QRCode");if(!a)return null;const k=xe(_,b,y,O,I,{[`${_}-borderless`]:!m}),F=Object.assign(Object.assign({backgroundColor:w},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(o=v==null?void 0:v.height)!==null&&o!==void 0?o:c});return P(de.createElement("div",Object.assign({},D,{className:k,style:F}),p!=="active"&&de.createElement("div",{className:`${_}-mask`},de.createElement(WUe,{prefixCls:_,locale:j,status:p,onRefresh:g,statusRender:E})),s==="canvas"?de.createElement(zse,Object.assign({},A)):de.createElement(Hse,Object.assign({},A))))};function YUe(e,t){var n=e.disabled,r=e.prefixCls,o=e.character,i=e.characterRender,a=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,f=e.onHover,h=e.onClick,p=function(E){f(E,a)},m=function(E){h(E,a)},g=function(E){E.keyCode===ut.ENTER&&h(E,a)},v=a+1,b=new Set([r]);l===0&&a===0&&u?b.add("".concat(r,"-focused")):c&&l+.5>=v&&la?"true":"false","aria-posinset":a+1,"aria-setsize":s,tabIndex:n?-1:0},de.createElement("div",{className:"".concat(r,"-first")},y),de.createElement("div",{className:"".concat(r,"-second")},y)));return i&&(S=i(S,e)),S}const XUe=de.forwardRef(YUe);function QUe(){var e=d.useRef({});function t(r){return e.current[r]}function n(r){return function(o){e.current[r]=o}}return[t,n]}function JUe(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 ZUe(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=i.clientLeft||o.clientLeft||0,n-=i.clientTop||o.clientTop||0,{left:t,top:n}}function eWe(e){var t=ZUe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=JUe(r),t.left}var tWe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function nWe(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,o=e.className,i=e.defaultValue,a=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,f=e.allowClear,h=f===void 0?!0:f,p=e.keyboard,m=p===void 0?!0:p,g=e.character,v=g===void 0?"★":g,b=e.characterRender,y=e.disabled,S=e.direction,w=S===void 0?"ltr":S,E=e.tabIndex,C=E===void 0?0:E,x=e.autoFocus,_=e.onHoverChange,P=e.onChange,O=e.onFocus,I=e.onBlur,M=e.onKeyDown,T=e.onMouseLeave,D=At(e,tWe),A=QUe(),j=$e(A,2),k=j[0],F=j[1],V=de.useRef(null),W=function(){if(!y){var q;(q=V.current)===null||q===void 0||q.focus()}};de.useImperativeHandle(t,function(){return{focus:W,blur:function(){if(!y){var q;(q=V.current)===null||q===void 0||q.blur()}}}});var K=xn(i||0,{value:a}),L=$e(K,2),Q=L[0],ee=L[1],re=xn(null),ie=$e(re,2),G=ie[0],X=ie[1],ne=function(q,me){var Ce=w==="rtl",ue=q+1;if(u){var Le=k(q),He=eWe(Le),ge=Le.clientWidth;(Ce&&me-He>ge/2||!Ce&&me-He0&&!Ce||me===ut.RIGHT&&Q>0&&Ce?(le(Q-ue),q.preventDefault()):me===ut.LEFT&&Q{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:`${_e(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"}}}},iWe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),aWe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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)"}}}),oWe(e)),iWe(e))}},sWe=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),lWe=Kn("Rate",e=>{const t=kn(e,{});return[aWe(t)]},sWe);var cWe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,tooltips:a,character:s=d.createElement(IUe,null),disabled:l}=e,c=cWe(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(E,C)=>{let{index:x}=C;return a?d.createElement(xa,{title:a[x]},E):E},{getPrefixCls:f,direction:h,rate:p}=d.useContext(Yt),m=f("rate",n),[g,v,b]=lWe(m),y=Object.assign(Object.assign({},p==null?void 0:p.style),i),S=d.useContext(zo),w=l??S;return g(d.createElement(rWe,Object.assign({ref:t,character:s,characterRender:u,disabled:w},c,{className:xe(r,o,v,b,p==null?void 0:p.className),style:y,prefixCls:m,direction:h})))}),uWe=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("defs",null,d.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .012)"},d.createElement("mask",{fill:"#fff"}),d.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)"})),d.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"}),d.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),d.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),d.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"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),dWe=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("defs",null,d.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),d.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .067)"},d.createElement("mask",{fill:"#fff"}),d.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)"})),d.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"}),d.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),d.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.createElement("mask",{fill:"#fff"}),d.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),d.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)"}),d.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)"}),d.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)"}),d.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)"}),d.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)"}),d.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)"}),d.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.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)"}),d.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)"}),d.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)"}))),fWe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${_e(e.calc(s).mul(2).equal())} ${_e(i)}`,"&-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:`${_e(s)} ${_e(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},hWe=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}}},pWe=e=>[fWe(e),hWe(e)],mWe=e=>pWe(e),gWe=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),vWe=Kn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,i=kn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[mWe(i)]},gWe),yWe=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.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"}),d.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"}),d.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}))),bWe={success:Lp,error:ou,info:Df,warning:LUe},lS={404:uWe,500:dWe,403:yWe},SWe=Object.keys(lS),CWe=e=>{let{prefixCls:t,icon:n,status:r}=e;const o=xe(`${t}-icon`);if(SWe.includes(`${r}`)){const a=lS[r];return d.createElement("div",{className:`${o} ${t}-image`},d.createElement(a,null))}const i=d.createElement(bWe[r]);return n===null||n===!1?null:d.createElement("div",{className:o},n||i)},wWe=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},cS=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:o,title:i,style:a,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:h,result:p}=d.useContext(Yt),m=f("result",t),[g,v,b]=vWe(m),y=xe(m,`${m}-${l}`,n,p==null?void 0:p.className,r,{[`${m}-rtl`]:h==="rtl"},v,b),S=Object.assign(Object.assign({},p==null?void 0:p.style),a);return g(d.createElement("div",{className:y,style:S},d.createElement(CWe,{prefixCls:m,status:l,icon:c}),d.createElement("div",{className:`${m}-title`},i),o&&d.createElement("div",{className:`${m}-subtitle`},o),d.createElement(wWe,{prefixCls:m,extra:u}),s&&d.createElement("div",{className:`${m}-content`},s)))};cS.PRESENTED_IMAGE_403=lS[403];cS.PRESENTED_IMAGE_404=lS[404];cS.PRESENTED_IMAGE_500=lS[500];var xWe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Qse=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,h=e.onClick,p=e.onChange,m=e.onKeyDown,g=At(e,xWe),v=xn(!1,{value:a,defaultValue:s}),b=$e(v,2),y=b[0],S=b[1];function w(_,P){var O=y;return l||(O=_,S(O),p==null||p(O,P)),O}function E(_){_.which===ut.LEFT?w(!1,_):_.which===ut.RIGHT&&w(!0,_),m==null||m(_)}function C(_){var P=w(!y,_);h==null||h(P,_)}var x=xe(o,i,(n={},Z(n,"".concat(o,"-checked"),y),Z(n,"".concat(o,"-disabled"),l),n));return d.createElement("button",Ge({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:x,ref:t,onKeyDown:E,onClick:C}),c,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},u),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Qse.displayName="Switch";const EWe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=_e(l(s).add(l(r).mul(2)).equal()),f=_e(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:_e(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${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:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${_e(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()}}}}}}},_We=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}}}},$We=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${_e(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},PWe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=_e(s(a).add(s(r).mul(2)).equal()),u=_e(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,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:o,paddingInlineEnd:i,[`${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()}}}}}},OWe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:_e(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}}),Ka(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"}})}},MWe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=2,l=i-s*2,c=a-s*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Un("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},TWe=Kn("Switch",e=>{const t=kn(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[OWe(t),PWe(t),$We(t),_We(t),EWe(t)]},MWe);var RWe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:h,onChange:p}=e,m=RWe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=xn(!1,{value:c??u,defaultValue:f??h}),{getPrefixCls:b,direction:y,switch:S}=d.useContext(Yt),w=d.useContext(zo),E=(o??w)||i,C=b("switch",n),x=d.createElement("div",{className:`${C}-handle`},i&&d.createElement(Gc,{className:`${C}-loading-icon`})),[_,P,O]=TWe(C),I=Eo(r),M=xe(S==null?void 0:S.className,{[`${C}-small`]:I==="small",[`${C}-loading`]:i,[`${C}-rtl`]:y==="rtl"},a,s,P,O),T=Object.assign(Object.assign({},S==null?void 0:S.style),l),D=function(){v(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return _(d.createElement(z1,{component:"Switch"},d.createElement(Qse,Object.assign({},m,{checked:g,onChange:D,prefixCls:C,className:M,style:T,disabled:E,ref:t,loadingIcon:x}))))}),cE=IWe;cE.__ANT_SWITCH=!0;var Mu={},uS="rc-table-internal-hook";function LD(e){var t=d.createContext(void 0),n=function(o){var i=o.value,a=o.children,s=d.useRef(i);s.current=i;var l=d.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=$e(l,1),u=c[0];return Zn(function(){hi.unstable_batchedUpdates(function(){u.listeners.forEach(function(f){f(i)})})},[i]),d.createElement(t.Provider,{value:u},a)};return{Context:t,Provider:n,defaultValue:e}}function ji(e,t){var n=An(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var h={};return t.forEach(function(p){h[p]=f[p]}),h}),r=d.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,s=d.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var l=d.useState({}),c=$e(l,2),u=c[1];return Zn(function(){if(!r)return;function f(h){var p=n(h);dl(s.current,p,!0)||u({})}return i.add(f),function(){i.delete(f)}},[r]),s.current}function kWe(){var e=d.createContext(null);function t(){return d.useContext(e)}function n(o,i){var a=tc(o),s=function(c,u){var f=a?{ref:u}:{},h=d.useRef(0),p=d.useRef(c),m=t();return m!==null?d.createElement(o,Ge({},c,f)):((!i||i(p.current,c))&&(h.current+=1),p.current=c,d.createElement(e.Provider,{value:h.current},d.createElement(o,Ge({},c,f))))};return a?d.forwardRef(s):s}function r(o,i){var a=tc(o),s=function(c,u){var f=a?{ref:u}:{};return t(),d.createElement(o,Ge({},c,f))};return a?d.memo(d.forwardRef(s),i):d.memo(s,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var BD=kWe(),Jse=BD.makeImmutable,Lv=BD.responseImmutable,NWe=BD.useImmutableMark,Oa=LD(),Zse=d.createContext({renderWithProps:!1}),AWe="RC_TABLE_KEY";function DWe(e){return e==null?[]:Array.isArray(e)?e:[e]}function mP(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,s=i||DWe(a).join("-")||AWe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function w6(e){return e!=null}function jWe(e){return typeof e=="number"&&!Number.isNaN(e)}function FWe(e){return e&&Ht(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function LWe(e,t,n,r,o,i){var a=d.useContext(Zse),s=NWe(),l=td(function(){if(w6(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Mo(e,c),f=u,h=void 0;if(o){var p=o(u,e,n);FWe(p)?(f=p.children,h=p.props,a.renderWithProps=!0):f=p}return[f,h]},[s,e,r,t,o,n],function(c,u){if(i){var f=$e(c,2),h=f[1],p=$e(u,2),m=p[1];return i(m,h)}return a.renderWithProps?!0:!dl(c,u,!0)});return l}function BWe(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function zWe(e,t){return ji(Oa,function(n){var r=BWe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var HWe=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():d.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function UWe(e){var t,n,r,o,i,a,s,l,c=e.component,u=e.children,f=e.ellipsis,h=e.scope,p=e.prefixCls,m=e.className,g=e.align,v=e.record,b=e.render,y=e.dataIndex,S=e.renderIndex,w=e.shouldCellUpdate,E=e.index,C=e.rowType,x=e.colSpan,_=e.rowSpan,P=e.fixLeft,O=e.fixRight,I=e.firstFixLeft,M=e.lastFixLeft,T=e.firstFixRight,D=e.lastFixRight,A=e.appendNode,j=e.additionalProps,k=j===void 0?{}:j,F=e.isSticky,V="".concat(p,"-cell"),W=ji(Oa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=W.supportSticky,L=W.allColumnsFixedLeft,Q=W.rowHoverable,ee=LWe(v,y,S,u,b,w),re=$e(ee,2),ie=re[0],G=re[1],X={},ne=typeof P=="number"&&K,le=typeof O=="number"&&K;ne&&(X.position="sticky",X.left=P),le&&(X.position="sticky",X.right=O);var ce=(t=(n=(r=G==null?void 0:G.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:x)!==null&&t!==void 0?t:1,oe=(o=(i=(a=G==null?void 0:G.rowSpan)!==null&&a!==void 0?a:k.rowSpan)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:1,se=zWe(E,oe),fe=$e(se,2),te=fe[0],he=fe[1],pe=An(function(Pe){var Ne;v&&he(E,E+oe-1),k==null||(Ne=k.onMouseEnter)===null||Ne===void 0||Ne.call(k,Pe)}),Oe=An(function(Pe){var Ne;v&&he(-1,-1),k==null||(Ne=k.onMouseLeave)===null||Ne===void 0||Ne.call(k,Pe)});if(ce===0||oe===0)return null;var Me=(s=k.title)!==null&&s!==void 0?s:HWe({rowType:C,ellipsis:f,children:ie}),Se=xe(V,m,(l={},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(l,"".concat(V,"-fix-left"),ne&&K),"".concat(V,"-fix-left-first"),I&&K),"".concat(V,"-fix-left-last"),M&&K),"".concat(V,"-fix-left-all"),M&&L&&K),"".concat(V,"-fix-right"),le&&K),"".concat(V,"-fix-right-first"),T&&K),"".concat(V,"-fix-right-last"),D&&K),"".concat(V,"-ellipsis"),f),"".concat(V,"-with-append"),A),"".concat(V,"-fix-sticky"),(ne||le)&&F&&K),Z(l,"".concat(V,"-row-hover"),!G&&te)),k.className,G==null?void 0:G.className),ye={};g&&(ye.textAlign=g);var ve=z(z(z(z({},G==null?void 0:G.style),X),ye),k.style),be=ie;return Ht(be)==="object"&&!Array.isArray(be)&&!d.isValidElement(be)&&(be=null),f&&(M||T)&&(be=d.createElement("span",{className:"".concat(V,"-content")},be)),d.createElement(c,Ge({},G,k,{className:Se,style:ve,title:Me,scope:h,onMouseEnter:Q?pe:void 0,onMouseLeave:Q?Oe:void 0,colSpan:ce!==1?ce:null,rowSpan:oe!==1?oe:null}),A,be)}const Bv=d.memo(UWe);function zD(e,t,n,r,o){var i=n[e]||{},a=n[t]||{},s,l;i.fixed==="left"?s=r.left[o==="rtl"?t:e]:a.fixed==="right"&&(l=r.right[o==="rtl"?e:t]);var c=!1,u=!1,f=!1,h=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every(function(w){return w.fixed==="left"});if(o==="rtl"){if(s!==void 0){var v=m&&m.fixed==="left";h=!v&&g}else if(l!==void 0){var b=p&&p.fixed==="right";f=!b&&g}}else if(s!==void 0){var y=p&&p.fixed==="left";c=!y&&g}else if(l!==void 0){var S=m&&m.fixed==="right";u=!S&&g}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:f,firstFixLeft:h,isSticky:r.isSticky}}var ele=d.createContext({});function WWe(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,s=e.align,l=ji(Oa,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,f=d.useContext(ele),h=f.scrollColumnIndex,p=f.stickyOffsets,m=f.flattenColumns,g=n+i-1,v=g+1===h?i+1:i,b=zD(n,n+v-1,m,p,u);return d.createElement(Bv,Ge({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:a,render:function(){return r}},b))}var VWe=["children"];function KWe(e){var t=e.children,n=At(e,VWe);return d.createElement("tr",n,t)}function gP(e){var t=e.children;return t}gP.Row=KWe;gP.Cell=WWe;function qWe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=ji(Oa,"prefixCls"),i=r.length-1,a=r[i],s=d.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?i:null}},[a,r,i,n]);return d.createElement(ele.Provider,{value:s},d.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const XC=Lv(qWe);var tle=gP;function GWe(e){return null}function YWe(e){return null}function nle(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var s=i(t),l=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c1?I-1:0),T=1;T=1)),style:z(z({},n),b==null?void 0:b.style)}),m.map(function(P,O){var I=P.render,M=P.dataIndex,T=P.className,D=sle(h,P,O,l,o),A=D.key,j=D.fixedInfo,k=D.appendCellNode,F=D.additionalCellProps;return d.createElement(Bv,Ge({className:T,ellipsis:P.ellipsis,align:P.align,scope:P.rowScope,component:P.rowScope?f:u,prefixCls:p,key:A,record:r,index:o,renderIndex:i,dataIndex:M,render:I,shouldCellUpdate:P.shouldCellUpdate},j,{appendNode:k,additionalProps:F}))})),x;if(S&&(w.current||y)){var _=v(r,o,l+1,y);x=d.createElement(ile,{expanded:y,className:xe("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(l+1),E),prefixCls:p,component:c,cellComponent:u,colSpan:m.length,isEmpty:!1},_)}return d.createElement(d.Fragment,null,C,x)}const ZWe=Lv(JWe);function eVe(e){var t=e.columnKey,n=e.onColumnResize,r=d.useRef();return d.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),d.createElement(Oi,{data:t},d.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function tVe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},d.createElement(Oi.Collection,{onBatchResize:function(i){i.forEach(function(a){var s=a.data,l=a.size;r(s,l.offsetWidth)})}},n.map(function(o){return d.createElement(eVe,{key:o,columnKey:o,onColumnResize:r})})))}function nVe(e){var t=e.data,n=e.measureColumnWidth,r=ji(Oa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,f=r.emptyNode,h=rle(t,u,c,l),p=d.useRef({renderWithProps:!1}),m=i(["body","wrapper"],"tbody"),g=i(["body","row"],"tr"),v=i(["body","cell"],"td"),b=i(["body","cell"],"th"),y;t.length?y=h.map(function(w,E){var C=w.record,x=w.indent,_=w.index,P=l(C,E);return d.createElement(ZWe,{key:P,rowKey:P,record:C,index:E,renderIndex:_,rowComponent:g,cellComponent:v,scopeCellComponent:b,indent:x})}):y=d.createElement(ile,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:g,cellComponent:v,colSpan:s.length,isEmpty:!0},f);var S=mP(s);return d.createElement(Zse.Provider,{value:p.current},d.createElement(m,{className:"".concat(o,"-tbody")},n&&d.createElement(tVe,{prefixCls:o,columnsKey:S,onColumnResize:a}),y))}const rVe=Lv(nVe);var oVe=["expandable"],Ky="RC_TABLE_INTERNAL_COL_DEFINE";function iVe(e){var t=e.expandable,n=At(e,oVe),r;return"expandable"in e?r=z(z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var aVe=["columnType"];function lle(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=ji(Oa,["tableLayout"]),i=o.tableLayout,a=[],s=r||n.length,l=!1,c=s-1;c>=0;c-=1){var u=t[c],f=n&&n[c],h=void 0,p=void 0;if(f&&(h=f[Ky],i==="auto"&&(p=f.minWidth)),u||p||h||l){var m=h||{};m.columnType;var g=At(m,aVe);a.unshift(d.createElement("col",Ge({key:c,style:{width:u,minWidth:p}},g))),l=!0}}return d.createElement("colgroup",null,a)}var sVe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function lVe(e,t){return d.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:a,prefixCls:u,key:p[g]},b,{additionalProps:y,rowType:"header"}))}))};function dVe(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(f){var h={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},p=1,m=f.children;return m&&m.length>0&&(p=n(m,c,l+1).reduce(function(g,v){return g+v},0),h.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(h.rowSpan=f.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,o=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function hVe(e,t,n){return d.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(h){var p=JU(t,h.width);p?r+=p:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),s=o,l=a/o,c=0,u=e.map(function(h){var p=z({},h),m=JU(t,p.width);if(m)p.width=m;else{var g=Math.floor(l);p.width=s===1?a:g,a-=g,s-=1}return c+=p.width,p});if(c0?z(z({},t),{},{children:cle(n)}):t})}function x6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Ht(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,s="".concat(t,"-").concat(o),l=r.children;return l&&l.length>0?[].concat(Ze(n),Ze(x6(l,s).map(function(c){return z({fixed:a},c)}))):[].concat(Ze(n),[z(z({key:s},r),{},{fixed:a})])},[])}function gVe(e){return e.map(function(t){var n=t.fixed,r=At(t,mVe),o=n;return n==="left"?o="right":n==="right"&&(o="left"),z({fixed:o},r)})}function vVe(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,h=e.expandIconColumnIndex,p=e.direction,m=e.expandRowByClick,g=e.columnWidth,v=e.fixed,b=e.scrollWidth,y=e.clientWidth,S=d.useMemo(function(){var M=r||HD(o)||[];return cle(M.slice())},[r,o]),w=d.useMemo(function(){if(i){var M=S.slice();if(!M.includes(Mu)){var T=h||0;T>=0&&(T||v==="left"||!v)&&M.splice(T,0,Mu),v==="right"&&M.splice(S.length,0,Mu)}var D=M.indexOf(Mu);M=M.filter(function(F,V){return F!==Mu||V===D});var A=S[D],j;v?j=v:j=A?A.fixed:null;var k=Z(Z(Z(Z(Z(Z({},Ky,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",j),"className","".concat(n,"-row-expand-icon-cell")),"width",g),"render",function(V,W,K){var L=l(W,K),Q=a.has(L),ee=f?f(W):!0,re=u({prefixCls:n,expanded:Q,expandable:ee,record:W,onExpand:c});return m?d.createElement("span",{onClick:function(G){return G.stopPropagation()}},re):re});return M.map(function(F){return F===Mu?k:F})}return S.filter(function(F){return F!==Mu})},[i,S,l,a,u,p]),E=d.useMemo(function(){var M=w;return t&&(M=t(M)),M.length||(M=[{render:function(){return null}}]),M},[t,w,p]),C=d.useMemo(function(){return p==="rtl"?gVe(x6(E)):x6(E)},[E,p,b]),x=d.useMemo(function(){for(var M=-1,T=C.length-1;T>=0;T-=1){var D=C[T].fixed;if(D==="left"||D===!0){M=T;break}}if(M>=0)for(var A=0;A<=M;A+=1){var j=C[A].fixed;if(j!=="left"&&j!==!0)return!0}var k=C.findIndex(function(W){var K=W.fixed;return K==="right"});if(k>=0)for(var F=k;F=k-s?y(function(F){return z(z({},F),{},{isHiddenScrollBar:!0})}):y(function(F){return z(z({},F),{},{isHiddenScrollBar:!1})})}})},T=function(A){y(function(j){return z(z({},j),{},{scrollLeft:A/f*h||0})})};return d.useImperativeHandle(n,function(){return{setScrollLeft:T,checkScrollBarVisible:M}}),d.useEffect(function(){var D=jc(document.body,"mouseup",P,!1),A=jc(document.body,"mousemove",I,!1);return M(),function(){D.remove(),A.remove()}},[p,C]),d.useEffect(function(){var D=jc(l,"scroll",M,!1),A=jc(window,"resize",M,!1);return function(){D.remove(),A.remove()}},[l]),d.useEffect(function(){b.isHiddenScrollBar||y(function(D){var A=i.current;return A?z(z({},D),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):D})},[b.isHiddenScrollBar]),f<=h||!p||b.isHiddenScrollBar?null:d.createElement("div",{style:{height:Ez(),width:h,bottom:s},className:"".concat(u,"-sticky-scroll")},d.createElement("div",{onMouseDown:O,ref:m,className:xe("".concat(u,"-sticky-scroll-bar"),Z({},"".concat(u,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const _Ve=d.forwardRef(EVe);var dle="rc-table",$Ve=[],PVe={};function OVe(){return"No Data"}function MVe(e,t){var n=z({rowKey:"key",prefixCls:dle,emptyText:OVe},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,f=n.direction,h=n.title,p=n.footer,m=n.summary,g=n.caption,v=n.id,b=n.showHeader,y=n.components,S=n.emptyText,w=n.onRow,E=n.onHeaderRow,C=n.onScroll,x=n.internalHooks,_=n.transformColumns,P=n.internalRefs,O=n.tailor,I=n.getContainerWidth,M=n.sticky,T=n.rowHoverable,D=T===void 0?!0:T,A=s||$Ve,j=!!A.length,k=x===uS,F=d.useCallback(function(Fn,rn){return Mo(y,Fn)||rn},[y]),V=d.useMemo(function(){return typeof l=="function"?l:function(Fn){var rn=Fn&&Fn[l];return rn}},[l]),W=F(["body"]),K=CVe(),L=$e(K,3),Q=L[0],ee=L[1],re=L[2],ie=yVe(n,A,V),G=$e(ie,6),X=G[0],ne=G[1],le=G[2],ce=G[3],oe=G[4],se=G[5],fe=c==null?void 0:c.x,te=d.useState(0),he=$e(te,2),pe=he[0],Oe=he[1],Me=vVe(z(z(z({},n),X),{},{expandable:!!X.expandedRowRender,columnTitle:X.columnTitle,expandedKeys:le,getRowKey:V,onTriggerExpand:se,expandIcon:ce,expandIconColumnIndex:X.expandIconColumnIndex,direction:f,scrollWidth:k&&O&&typeof fe=="number"?fe:null,clientWidth:pe}),k?_:null),Se=$e(Me,4),ye=Se[0],ve=Se[1],be=Se[2],Pe=Se[3],Ne=be??fe,U=d.useMemo(function(){return{columns:ye,flattenColumns:ve}},[ye,ve]),H=d.useRef(),q=d.useRef(),me=d.useRef(),Ce=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:H.current,scrollTo:function(rn){var fn;if(me.current instanceof HTMLElement){var Sn=rn.index,Dn=rn.top,cr=rn.key;if(jWe(Dn)){var Uo;(Uo=me.current)===null||Uo===void 0||Uo.scrollTo({top:Dn})}else{var si,Ar=cr??V(A[Sn]);(si=me.current.querySelector('[data-row-key="'.concat(Ar,'"]')))===null||si===void 0||si.scrollIntoView()}}else(fn=me.current)!==null&&fn!==void 0&&fn.scrollTo&&me.current.scrollTo(rn)}}});var ue=d.useRef(),Le=d.useState(!1),He=$e(Le,2),ge=He[0],De=He[1],qe=d.useState(!1),je=$e(qe,2),Ke=je[0],Ue=je[1],Ve=ule(new Map),St=$e(Ve,2),et=St[0],st=St[1],Ct=mP(ve),dt=Ct.map(function(Fn){return et.get(Fn)}),Lt=d.useMemo(function(){return dt},[dt.join("_")]),wt=xVe(Lt,ve,f),Et=c&&w6(c.y),Tt=c&&w6(Ne)||!!X.fixed,Be=Tt&&ve.some(function(Fn){var rn=Fn.fixed;return rn}),We=d.useRef(),Fe=wVe(M,r),Xe=Fe.isSticky,gt=Fe.offsetHeader,pt=Fe.offsetSummary,Rt=Fe.offsetScroll,_t=Fe.stickyClassName,vt=Fe.container,ft=d.useMemo(function(){return m==null?void 0:m(A)},[m,A]),It=(Et||Xe)&&d.isValidElement(ft)&&ft.type===gP&&ft.props.fixed,bt,Wt,at;Et&&(Wt={overflowY:j?"scroll":"auto",maxHeight:c.y}),Tt&&(bt={overflowX:"auto"},Et||(Wt={overflowY:"hidden"}),at={width:Ne===!0?"auto":Ne,minWidth:"100%"});var Pt=d.useCallback(function(Fn,rn){Ov(H.current)&&st(function(fn){if(fn.get(Fn)!==rn){var Sn=new Map(fn);return Sn.set(Fn,rn),Sn}return fn})},[]),Bt=SVe(),xt=$e(Bt,2),yt=xt[0],Ft=xt[1];function Re(Fn,rn){rn&&(typeof rn=="function"?rn(Fn):rn.scrollLeft!==Fn&&(rn.scrollLeft=Fn,rn.scrollLeft!==Fn&&setTimeout(function(){rn.scrollLeft=Fn},0)))}var kt=An(function(Fn){var rn=Fn.currentTarget,fn=Fn.scrollLeft,Sn=f==="rtl",Dn=typeof fn=="number"?fn:rn.scrollLeft,cr=rn||PVe;if(!Ft()||Ft()===cr){var Uo;yt(cr),Re(Dn,q.current),Re(Dn,me.current),Re(Dn,ue.current),Re(Dn,(Uo=We.current)===null||Uo===void 0?void 0:Uo.setScrollLeft)}var si=rn||q.current;if(si){var Ar=k&&O&&typeof Ne=="number"?Ne:si.scrollWidth,li=si.clientWidth;if(Ar===li){De(!1),Ue(!1);return}Sn?(De(-Dn0)):(De(Dn>0),Ue(Dn1?v-D:0,j=z(z(z({},_),c),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:A,pointerEvents:"auto"}),k=d.useMemo(function(){return f?M<=1:O===0||M===0||M>1},[M,O,f]);k?j.visibility="hidden":f&&(j.height=h==null?void 0:h(M));var F=k?function(){return null}:p,V={};return(M===0||O===0)&&(V.rowSpan=1,V.colSpan=1),d.createElement(Bv,Ge({className:xe(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:w,record:l,index:i,renderIndex:s,dataIndex:m,render:F,shouldCellUpdate:n.shouldCellUpdate},E,{appendNode:C,additionalProps:z(z({},x),{},{style:j},V)}))}var kVe=["data","index","className","rowKey","style","extra","getHeight"],NVe=d.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,s=e.extra,l=e.getHeight,c=At(e,kVe),u=n.record,f=n.indent,h=n.index,p=ji(Oa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=p.scrollX,g=p.flattenColumns,v=p.prefixCls,b=p.fixColumn,y=p.componentWidth,S=ji(UD,["getComponent"]),w=S.getComponent,E=ole(u,i,r,f),C=w(["body","row"],"div"),x=w(["body","cell"],"div"),_=E.rowSupportExpand,P=E.expanded,O=E.rowProps,I=E.expandedRowRender,M=E.expandedRowClassName,T;if(_&&P){var D=I(u,r,f+1,P),A=ale(M,u,r,f),j={};b&&(j={style:Z({},"--virtual-width","".concat(y,"px"))});var k="".concat(v,"-expanded-row-cell");T=d.createElement(C,{className:xe("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),A)},d.createElement(Bv,{component:x,prefixCls:v,className:xe(k,Z({},"".concat(k,"-fixed"),b)),additionalProps:j},D))}var F=z(z({},a),{},{width:m});s&&(F.position="absolute",F.pointerEvents="none");var V=d.createElement(C,Ge({},O,c,{"data-row-key":i,ref:_?null:t,className:xe(o,"".concat(v,"-row"),O==null?void 0:O.className,Z({},"".concat(v,"-row-extra"),s)),style:z(z({},F),O==null?void 0:O.style)}),g.map(function(W,K){return d.createElement(IVe,{key:K,component:x,rowInfo:E,column:W,colIndex:K,indent:f,index:r,renderIndex:h,record:u,inverse:s,getHeight:l})}));return _?d.createElement("div",{ref:t},V,T):V}),nW=Lv(NVe),AVe=d.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=ji(Oa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,a=o.onColumnResize,s=o.getRowKey,l=o.expandedKeys,c=o.prefixCls,u=o.childrenColumnName,f=o.scrollX,h=o.direction,p=ji(UD),m=p.sticky,g=p.scrollY,v=p.listItemHeight,b=p.getComponent,y=p.onScroll,S=d.useRef(),w=rle(n,u,l,s),E=d.useMemo(function(){var T=0;return i.map(function(D){var A=D.width,j=D.key;return T+=A,[j,A,T]})},[i]),C=d.useMemo(function(){return E.map(function(T){return T[2]})},[E]);d.useEffect(function(){E.forEach(function(T){var D=$e(T,2),A=D[0],j=D[1];a(A,j)})},[E]),d.useImperativeHandle(t,function(){var T,D={scrollTo:function(j){var k;(k=S.current)===null||k===void 0||k.scrollTo(j)},nativeElement:(T=S.current)===null||T===void 0?void 0:T.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var j;return((j=S.current)===null||j===void 0?void 0:j.getScrollInfo().x)||0},set:function(j){var k;(k=S.current)===null||k===void 0||k.scrollTo({left:j})}}),D});var x=function(D,A){var j,k=(j=w[A])===null||j===void 0?void 0:j.record,F=D.onCell;if(F){var V,W=F(k,A);return(V=W==null?void 0:W.rowSpan)!==null&&V!==void 0?V:1}return 1},_=function(D){var A=D.start,j=D.end,k=D.getSize,F=D.offsetY;if(j<0)return null;for(var V=i.filter(function(ce){return x(ce,A)===0}),W=A,K=function(oe){if(V=V.filter(function(se){return x(se,oe)===0}),!V.length)return W=oe,1},L=A;L>=0&&!K(L);L-=1);for(var Q=i.filter(function(ce){return x(ce,j)!==1}),ee=j,re=function(oe){if(Q=Q.filter(function(se){return x(se,oe)!==1}),!Q.length)return ee=Math.max(oe-1,j),1},ie=j;ie1})&&G.push(oe)},ne=W;ne<=ee;ne+=1)X(ne);var le=G.map(function(ce){var oe=w[ce],se=s(oe.record,ce),fe=function(pe){var Oe=ce+pe-1,Me=s(w[Oe].record,Oe),Se=k(se,Me);return Se.bottom-Se.top},te=k(se);return d.createElement(nW,{key:ce,data:oe,rowKey:se,index:ce,style:{top:-F+te.top},extra:!0,getHeight:fe})});return le},P=d.useMemo(function(){return{columnsOffset:C}},[C]),O="".concat(c,"-tbody"),I=b(["body","wrapper"]),M={};return m&&(M.position="sticky",M.bottom=0,Ht(m)==="object"&&m.offsetScroll&&(M.bottom=m.offsetScroll)),d.createElement(hle.Provider,{value:P},d.createElement(B$,{fullHeight:!1,ref:S,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:M},className:O,height:g,itemHeight:v||24,data:w,itemKey:function(D){return s(D.record)},component:I,scrollWidth:f,direction:h,onVirtualScroll:function(D){var A,j=D.x;r({currentTarget:(A=S.current)===null||A===void 0?void 0:A.nativeElement,scrollLeft:j})},onScroll:y,extraRender:_},function(T,D,A){var j=s(T.record,D);return d.createElement(nW,{data:T,rowKey:j,index:D,style:A.style})}))}),DVe=Lv(AVe),jVe=function(t,n){var r=n.ref,o=n.onScroll;return d.createElement(DVe,{ref:r,data:t,onScroll:o})};function FVe(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,a=e.prefixCls,s=a===void 0?dle:a,l=e.className,c=e.listItemHeight,u=e.components,f=e.onScroll,h=o||{},p=h.x,m=h.y;typeof p!="number"&&(p=1),typeof m!="number"&&(m=500);var g=An(function(y,S){return Mo(u,y)||S}),v=An(f),b=d.useMemo(function(){return{sticky:i,scrollY:m,listItemHeight:c,getComponent:g,onScroll:v}},[i,m,c,g,v]);return d.createElement(UD.Provider,{value:b},d.createElement(zv,Ge({},e,{className:xe(l,"".concat(s,"-virtual")),scroll:z(z({},o),{},{x:p}),components:z(z({},u),{},{body:n!=null&&n.length?jVe:void 0}),columns:r,internalHooks:uS,tailor:!0,ref:t})))}var LVe=d.forwardRef(FVe);function ple(e){return Jse(LVe,e)}ple();const BVe=e=>null,zVe=e=>null;var WD=d.createContext(null),mle=d.createContext({}),HVe=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function wu(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function VD(e){return e.split("-")}function KVe(e,t){var n=[],r=La(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var s=a.key,l=a.children;n.push(s),o(l)})}return o(r.children),n}function qVe(e){if(e.parent){var t=VD(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function GVe(e){var t=VD(e.pos);return Number(t[t.length-1])===0}function iW(e,t,n,r,o,i,a,s,l,c){var u,f=e.clientX,h=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,v=(c==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),b=(v-12)/r,y=l.filter(function(j){var k;return(k=s[j])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),S=La(s,n.eventKey);if(h-1.5?i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1:i({dragNode:T,dropNode:D,dropPosition:0})?O=0:i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1:i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1,{dropPosition:O,dropLevelOffset:I,dropTargetKey:S.key,dropTargetPos:S.pos,dragOverNodeKey:P,dropContainerKey:O===0?null:((u=S.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:A}}function aW(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function hR(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ht(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return yr(!1,"`checkedKeys` is not an array or an object"),null;return t}function E6(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=La(t,o);if(i){n.add(o);var a=i.parent,s=i.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Ze(n)}function YVe(e){const[t,n]=d.useState(null);return[d.useCallback((i,a,s)=>{const l=t??i,c=Math.min(l||0,i),u=Math.max(l||0,i),f=a.slice(c,u+1).map(m=>e(m)),h=f.some(m=>!s.has(m)),p=[];return f.forEach(m=>{h?(s.has(m)||p.push(m),s.add(m)):(s.delete(m),p.push(m))}),n(h?u:null),p},[t]),i=>{n(i)}]}const Nd={},_6="SELECT_ALL",$6="SELECT_INVERT",P6="SELECT_NONE",sW=[],gle=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ze(n),Ze(gle(e,r[e]))))}),n},XVe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:f,columnWidth:h,type:p,selections:m,fixed:g,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:S,data:w,pageData:E,getRecordByKey:C,getRowKey:x,expandType:_,childrenColumnName:P,locale:O,getPopupContainer:I}=e,M=ru(),[T,D]=YVe(ce=>ce),[A,j]=xn(r||o||sW,{value:r}),k=d.useRef(new Map),F=d.useCallback(ce=>{if(n){const oe=new Map;ce.forEach(se=>{let fe=C(se);!fe&&k.current.has(se)&&(fe=k.current.get(se)),oe.set(se,fe)}),k.current=oe}},[C,n]);d.useEffect(()=>{F(A)},[A]);const V=d.useMemo(()=>gle(P,E),[P,E]),{keyEntities:W}=d.useMemo(()=>{if(y)return{keyEntities:null};let ce=w;if(n){const oe=new Set(V.map((fe,te)=>x(fe,te))),se=Array.from(k.current).reduce((fe,te)=>{let[he,pe]=te;return oe.has(he)?fe:fe.concat(pe)},[]);ce=[].concat(Ze(ce),Ze(se))}return rS(ce,{externalGetKey:x,childrenPropName:P})},[w,x,y,P,n,V]),K=d.useMemo(()=>{const ce=new Map;return V.forEach((oe,se)=>{const fe=x(oe,se),te=(i?i(oe):null)||{};ce.set(fe,te)}),ce},[V,x,i]),L=d.useCallback(ce=>{const oe=x(ce);let se;return K.has(oe)?se=K.get(x(ce)):se=i?i(ce):void 0,!!(se!=null&&se.disabled)},[K,x]),[Q,ee]=d.useMemo(()=>{if(y)return[A||[],[]];const{checkedKeys:ce,halfCheckedKeys:oe}=il(A,!0,W,L);return[ce||[],oe]},[A,y,W,L]),re=d.useMemo(()=>{const ce=p==="radio"?Q.slice(0,1):Q;return new Set(ce)},[Q,p]),ie=d.useMemo(()=>p==="radio"?new Set:new Set(ee),[ee,p]);d.useEffect(()=>{t||j(sW)},[!!t]);const G=d.useCallback((ce,oe)=>{let se,fe;F(ce),n?(se=ce,fe=ce.map(te=>k.current.get(te))):(se=[],fe=[],ce.forEach(te=>{const he=C(te);he!==void 0&&(se.push(te),fe.push(he))})),j(se),a==null||a(se,fe,{type:oe})},[j,C,a,n]),X=d.useCallback((ce,oe,se,fe)=>{if(s){const te=se.map(he=>C(he));s(C(ce),oe,te,fe)}G(se,"single")},[s,C,G]),ne=d.useMemo(()=>!m||b?null:(m===!0?[_6,$6,P6]:m).map(oe=>oe===_6?{key:"all",text:O.selectionAll,onSelect(){G(w.map((se,fe)=>x(se,fe)).filter(se=>{const fe=K.get(se);return!(fe!=null&&fe.disabled)||re.has(se)}),"all")}}:oe===$6?{key:"invert",text:O.selectInvert,onSelect(){const se=new Set(re);E.forEach((te,he)=>{const pe=x(te,he),Oe=K.get(pe);Oe!=null&&Oe.disabled||(se.has(pe)?se.delete(pe):se.add(pe))});const fe=Array.from(se);c&&(M.deprecated(!1,"onSelectInvert","onChange"),c(fe)),G(fe,"invert")}}:oe===P6?{key:"none",text:O.selectNone,onSelect(){u==null||u(),G(Array.from(re).filter(se=>{const fe=K.get(se);return fe==null?void 0:fe.disabled}),"none")}}:oe).map(oe=>Object.assign(Object.assign({},oe),{onSelect:function(){for(var se,fe,te=arguments.length,he=new Array(te),pe=0;pe{var oe;if(!t)return ce.filter(Ce=>Ce!==Nd);let se=Ze(ce);const fe=new Set(re),te=V.map(x).filter(Ce=>!K.get(Ce).disabled),he=te.every(Ce=>fe.has(Ce)),pe=te.some(Ce=>fe.has(Ce)),Oe=()=>{const Ce=[];he?te.forEach(Le=>{fe.delete(Le),Ce.push(Le)}):te.forEach(Le=>{fe.has(Le)||(fe.add(Le),Ce.push(Le))});const ue=Array.from(fe);l==null||l(!he,ue.map(Le=>C(Le)),Ce.map(Le=>C(Le))),G(ue,"all"),D(null)};let Me,Se;if(p!=="radio"){let Ce;if(ne){const De={getPopupContainer:I,items:ne.map((qe,je)=>{const{key:Ke,text:Ue,onSelect:Ve}=qe;return{key:Ke??je,onClick:()=>{Ve==null||Ve(te)},label:Ue}})};Ce=d.createElement("div",{className:`${S}-selection-extra`},d.createElement(kD,{menu:De,getPopupContainer:I},d.createElement("span",null,d.createElement(z$,null))))}const ue=V.map((De,qe)=>{const je=x(De,qe),Ke=K.get(je)||{};return Object.assign({checked:fe.has(je)},Ke)}).filter(De=>{let{disabled:qe}=De;return qe}),Le=!!ue.length&&ue.length===V.length,He=Le&&ue.every(De=>{let{checked:qe}=De;return qe}),ge=Le&&ue.some(De=>{let{checked:qe}=De;return qe});Se=d.createElement(id,{checked:Le?He:!!V.length&&he,indeterminate:Le?!He&&ge:!he&&pe,onChange:Oe,disabled:V.length===0||Le,"aria-label":Ce?"Custom selection":"Select all",skipGroup:!0}),Me=!b&&d.createElement("div",{className:`${S}-selection`},Se,Ce)}let ye;p==="radio"?ye=(Ce,ue,Le)=>{const He=x(ue,Le),ge=fe.has(He),De=K.get(He);return{node:d.createElement(qo,Object.assign({},De,{checked:ge,onClick:qe=>{var je;qe.stopPropagation(),(je=De==null?void 0:De.onClick)===null||je===void 0||je.call(De,qe)},onChange:qe=>{var je;fe.has(He)||X(He,!0,[He],qe.nativeEvent),(je=De==null?void 0:De.onChange)===null||je===void 0||je.call(De,qe)}})),checked:ge}}:ye=(Ce,ue,Le)=>{var He;const ge=x(ue,Le),De=fe.has(ge),qe=ie.has(ge),je=K.get(ge);let Ke;return _==="nest"?Ke=qe:Ke=(He=je==null?void 0:je.indeterminate)!==null&&He!==void 0?He:qe,{node:d.createElement(id,Object.assign({},je,{indeterminate:Ke,checked:De,skipGroup:!0,onClick:Ue=>{var Ve;Ue.stopPropagation(),(Ve=je==null?void 0:je.onClick)===null||Ve===void 0||Ve.call(je,Ue)},onChange:Ue=>{var Ve;const{nativeEvent:St}=Ue,{shiftKey:et}=St,st=te.findIndex(dt=>dt===ge),Ct=Q.some(dt=>te.includes(dt));if(et&&y&&Ct){const dt=T(st,te,fe),Lt=Array.from(fe);f==null||f(!De,Lt.map(wt=>C(wt)),dt.map(wt=>C(wt))),G(Lt,"multiple")}else{const dt=Q;if(y){const Lt=De?_c(dt,ge):wu(dt,ge);X(ge,!De,Lt,St)}else{const Lt=il([].concat(Ze(dt),[ge]),!0,W,L),{checkedKeys:wt,halfCheckedKeys:Et}=Lt;let Tt=wt;if(De){const Be=new Set(wt);Be.delete(ge),Tt=il(Array.from(Be),{checked:!1,halfCheckedKeys:Et},W,L).checkedKeys}X(ge,!De,Tt,St)}}D(De?null:st),(Ve=je==null?void 0:je.onChange)===null||Ve===void 0||Ve.call(je,Ue)}})),checked:De}};const ve=(Ce,ue,Le)=>{const{node:He,checked:ge}=ye(Ce,ue,Le);return v?v(ge,ue,Le,He):He};if(!se.includes(Nd))if(se.findIndex(Ce=>{var ue;return((ue=Ce[Ky])===null||ue===void 0?void 0:ue.columnType)==="EXPAND_COLUMN"})===0){const[Ce,...ue]=se;se=[Ce,Nd].concat(Ze(ue))}else se=[Nd].concat(Ze(se));const be=se.indexOf(Nd);se=se.filter((Ce,ue)=>Ce!==Nd||ue===be);const Pe=se[be-1],Ne=se[be+1];let U=g;U===void 0&&((Ne==null?void 0:Ne.fixed)!==void 0?U=Ne.fixed:(Pe==null?void 0:Pe.fixed)!==void 0&&(U=Pe.fixed)),U&&Pe&&((oe=Pe[Ky])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"&&Pe.fixed===void 0&&(Pe.fixed=U);const H=xe(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:m&&p==="checkbox"}),q=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Se):t.columnTitle:Me,me={fixed:U,width:h,className:`${S}-selection-column`,title:q(),render:ve,onCell:t.onCell,[Ky]:{className:H}};return se.map(Ce=>Ce===Nd?me:Ce)},[x,V,t,Q,re,ie,h,ne,_,K,f,X,L]),re]};function QVe(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 JVe(e,t){return d.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):QVe(r,n)})}function ZVe(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,s=`${n}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:l=>{r(o,l),l.stopPropagation()},className:xe(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function eKe(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),s=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderRightWidth,10);i=r-s-l}return i}}const Pf=(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 Hv(e,t){return t?`${t}-${e}`:`${e}`}const vP=(e,t)=>typeof e=="function"?e(t):e,tKe=(e,t)=>{const n=vP(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function nKe(e){const t=d.useRef(e),n=JA();return[()=>t.current,r=>{t.current=r,n()}]}var rKe=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o;break}return de.createElement("div",{style:i})};function vle(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function oKe(e,t){var n=d.useState(!1),r=$e(n,2),o=r[0],i=r[1];Zn(function(){if(o)return e(),function(){t()}},[o]),Zn(function(){return i(!0),function(){i(!1)}},[])}var iKe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],aKe=d.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=At(e,iKe),h=d.useState(!0),p=$e(h,2),m=p[0],g=p[1],v=d.useContext(WD),b=v.prefixCls,y=i&&a!=="hide";Zn(function(){i&&y!==m&&g(y)},[i]);var S=function(){i&&s()},w=d.useRef(!1),E=function(){i&&!w.current&&(w.current=!0,l())};oKe(S,E);var C=function(_){y===_&&E()};return i?d.createElement(Jo,Ge({ref:t,visible:m},o,{motionAppear:a==="show",onVisibleChanged:C}),function(x,_){var P=x.className,O=x.style;return d.createElement("div",{ref:_,className:xe("".concat(b,"-treenode-motion"),P),style:O},i.map(function(I){var M=Object.assign({},(vle(I.data),I.data)),T=I.title,D=I.key,A=I.isStart,j=I.isEnd;delete M.children;var k=Wy(D,u);return d.createElement(Xb,Ge({},M,k,{title:T,active:c,data:I.data,key:D,isStart:A,isEnd:j}))}))}):d.createElement(Xb,Ge({domRef:t,className:n,style:r},f,{active:c}))});function sKe(){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 o(i,a){var s=new Map;i.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 ").concat(t);return t}var dKe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,h=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,b=e.itemHeight,y=e.virtual,S=e.scrollWidth,w=e.focusable,E=e.activeItem,C=e.focused,x=e.tabIndex,_=e.onKeyDown,P=e.onFocus,O=e.onBlur,I=e.onActiveChange,M=e.onListChangeStart,T=e.onListChangeEnd,D=At(e,lKe),A=d.useRef(null),j=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(ve){A.current.scrollTo(ve)},getIndentWidth:function(){return j.current.offsetWidth}}});var k=d.useState(o),F=$e(k,2),V=F[0],W=F[1],K=d.useState(r),L=$e(K,2),Q=L[0],ee=L[1],re=d.useState(r),ie=$e(re,2),G=ie[0],X=ie[1],ne=d.useState([]),le=$e(ne,2),ce=le[0],oe=le[1],se=d.useState(null),fe=$e(se,2),te=fe[0],he=fe[1],pe=d.useRef(r);pe.current=r;function Oe(){var ye=pe.current;ee(ye),X(ye),oe([]),he(null),T()}Zn(function(){W(o);var ye=sKe(V,o);if(ye.key!==null)if(ye.add){var ve=Q.findIndex(function(q){var me=q.key;return me===ye.key}),be=dW(lW(Q,r,ye.key),y,v,b),Pe=Q.slice();Pe.splice(ve+1,0,uW),X(Pe),oe(be),he("show")}else{var Ne=r.findIndex(function(q){var me=q.key;return me===ye.key}),U=dW(lW(r,Q,ye.key),y,v,b),H=r.slice();H.splice(Ne+1,0,uW),X(H),oe(U),he("hide")}else Q!==r&&(ee(r),X(r))},[o,r]),d.useEffect(function(){h||Oe()},[h]);var Me=g?G:r,Se={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:m,keyEntities:u};return d.createElement(d.Fragment,null,C&&E&&d.createElement("span",{style:cW,"aria-live":"assertive"},uKe(E)),d.createElement("div",null,d.createElement("input",{style:cW,disabled:w===!1||f,tabIndex:w!==!1?x:null,onKeyDown:_,onFocus:P,onBlur:O,value:"",onChange:cKe,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),d.createElement(B$,Ge({},D,{data:Me,itemKey:fW,height:v,fullHeight:!1,virtual:y,itemHeight:b,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:A,role:"tree",onVisibleChange:function(ve){ve.every(function(be){return fW(be)!==vp})&&Oe()}}),function(ye){var ve=ye.pos,be=Object.assign({},(vle(ye.data),ye.data)),Pe=ye.title,Ne=ye.key,U=ye.isStart,H=ye.isEnd,q=nS(Ne,ve);delete be.key,delete be.children;var me=Wy(q,Se);return d.createElement(aKe,Ge({},be,me,{title:Pe,active:!!E&&Ne===E.key,pos:ve,data:ye.data,isStart:U,isEnd:H,motion:g,motionNodes:Ne===vp?ce:null,motionType:te,onMotionStart:M,onMotionEnd:Oe,treeNodeRequiredProps:Se,onMouseMove:function(){I(null)}}))}))}),fKe=10,yP=function(e){la(n,e);var t=Pa(n);function n(){var r;br(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,h=f.dragChildrenKeys,p=f.dropPosition,m=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var y=z(z({},Wy(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:La(r.state.keyEntities,m).node}),S=h.includes(m);yr(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=VD(g),E={event:s,node:ri(y),dragNode:r.dragNodeProps?ri(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(h),dropToGap:p!==0,dropPosition:p+Number(w[w.length-1])};u||b==null||b(E),r.dragNodeProps=null}}}),Z(tn(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}),Z(tn(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,h=l.expanded,p=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(b){return b.key===p})[0],v=ri(z(z({},Wy(p,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(h?_c(u,p):wu(u,p)),r.onNodeExpand(s,v)}}),Z(tn(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(tn(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(tn(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,h=u.fieldNames,p=r.props,m=p.onSelect,g=p.multiple,v=l.selected,b=l[h.key],y=!v;y?g?c=wu(c,b):c=[b]:c=_c(c,b);var S=c.map(function(w){var E=La(f,w);return E?E.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:y,node:l,selectedNodes:S,nativeEvent:s.nativeEvent})}),Z(tn(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,h=u.checkedKeys,p=u.halfCheckedKeys,m=r.props,g=m.checkStrictly,v=m.onCheck,b=l.key,y,S={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var w=c?wu(h,b):_c(h,b),E=_c(p,b);y={checked:w,halfChecked:E},S.checkedNodes=w.map(function(I){return La(f,I)}).filter(Boolean).map(function(I){return I.node}),r.setUncontrolledState({checkedKeys:w})}else{var C=il([].concat(Ze(h),[b]),!0,f),x=C.checkedKeys,_=C.halfCheckedKeys;if(!c){var P=new Set(x);P.delete(b);var O=il(Array.from(P),{checked:!1,halfCheckedKeys:_},f);x=O.checkedKeys,_=O.halfCheckedKeys}y=x,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=_,x.forEach(function(I){var M=La(f,I);if(M){var T=M.node,D=M.pos;S.checkedNodes.push(T),S.checkedNodesPositions.push({node:T,pos:D})}}),r.setUncontrolledState({checkedKeys:x},!1,{halfCheckedKeys:_})}v==null||v(y,S)}),Z(tn(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=La(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var h=new Promise(function(p,m){r.setState(function(g){var v=g.loadedKeys,b=v===void 0?[]:v,y=g.loadingKeys,S=y===void 0?[]:y,w=r.props,E=w.loadData,C=w.onLoad;if(!E||b.includes(c)||S.includes(c))return null;var x=E(s);return x.then(function(){var _=r.state.loadedKeys,P=wu(_,c);C==null||C(P,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:P}),r.setState(function(O){return{loadingKeys:_c(O.loadingKeys,c)}}),p()}).catch(function(_){if(r.setState(function(O){return{loadingKeys:_c(O.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=fKe){var P=r.state.loadedKeys;yr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:wu(P,c)}),p()}m(_)}),{loadingKeys:wu(S,c)}})});return h.catch(function(){}),h}}),Z(tn(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),Z(tn(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),Z(tn(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),Z(tn(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,h={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){f=!1;return}u=!0,h[p]=s[p]}),u&&(!l||f)&&r.setState(z(z({},h),c))}}),Z(tn(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Sr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,s=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,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 o=this.state,i=o.focused,a=o.flattenNodes,s=o.keyEntities,l=o.draggingNodeKey,c=o.activeKey,u=o.dropLevelOffset,f=o.dropContainerKey,h=o.dropTargetKey,p=o.dropPosition,m=o.dragOverNodeKey,g=o.indent,v=this.props,b=v.prefixCls,y=v.className,S=v.style,w=v.showLine,E=v.focusable,C=v.tabIndex,x=C===void 0?0:C,_=v.selectable,P=v.showIcon,O=v.icon,I=v.switcherIcon,M=v.draggable,T=v.checkable,D=v.checkStrictly,A=v.disabled,j=v.motion,k=v.loadData,F=v.filterTreeNode,V=v.height,W=v.itemHeight,K=v.scrollWidth,L=v.virtual,Q=v.titleRender,ee=v.dropIndicatorRender,re=v.onContextMenu,ie=v.onScroll,G=v.direction,X=v.rootClassName,ne=v.rootStyle,le=Jr(this.props,{aria:!0,data:!0}),ce;M&&(Ht(M)==="object"?ce=M:typeof M=="function"?ce={nodeDraggable:M}:ce={});var oe={prefixCls:b,selectable:_,showIcon:P,icon:O,switcherIcon:I,draggable:ce,draggingNodeKey:l,checkable:T,checkStrictly:D,disabled:A,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:h,dropPosition:p,dragOverNodeKey:m,indent:g,direction:G,dropIndicatorRender:ee,loadData:k,filterTreeNode:F,titleRender:Q,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 d.createElement(WD.Provider,{value:oe},d.createElement("div",{className:xe(b,y,X,Z(Z(Z({},"".concat(b,"-show-line"),w),"".concat(b,"-focused"),i),"".concat(b,"-active-focused"),c!==null)),style:ne},d.createElement(dKe,Ge({ref:this.listRef,prefixCls:b,style:S,data:a,disabled:A,selectable:_,checkable:!!T,motion:j,dragging:l!==null,height:V,itemHeight:W,virtual:L,focusable:E,focused:i,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:re,onScroll:ie,scrollWidth:K},this.getTreeNodeRequiredProps(),le))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s={prevProps:o};function l(x){return!a&&o.hasOwnProperty(x)||a&&a[x]!==o[x]}var c,u=i.fieldNames;if(l("fieldNames")&&(u=Xg(o.fieldNames),s.fieldNames=u),l("treeData")?c=o.treeData:l("children")&&(yr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=cae(o.children)),c){s.treeData=c;var f=rS(c,{fieldNames:u});s.keyEntities=z(Z({},vp,yle),f.keyEntities)}var h=s.keyEntities||i.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?E6(o.expandedKeys,h):o.expandedKeys;else if(!a&&o.defaultExpandAll){var p=z({},h);delete p[vp];var m=[];Object.keys(p).forEach(function(x){var _=p[x];_.children&&_.children.length&&m.push(_.key)}),s.expandedKeys=m}else!a&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?E6(o.defaultExpandedKeys,h):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=nR(c||i.treeData,s.expandedKeys||i.expandedKeys,u);s.flattenNodes=g}if(o.selectable&&(l("selectedKeys")?s.selectedKeys=aW(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(s.selectedKeys=aW(o.defaultSelectedKeys,o))),o.checkable){var v;if(l("checkedKeys")?v=hR(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?v=hR(o.defaultCheckedKeys)||{}:c&&(v=hR(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),v){var b=v,y=b.checkedKeys,S=y===void 0?[]:y,w=b.halfCheckedKeys,E=w===void 0?[]:w;if(!o.checkStrictly){var C=il(S,!0,h);S=C.checkedKeys,E=C.halfCheckedKeys}s.checkedKeys=S,s.halfCheckedKeys=E}}return l("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(d.Component);Z(yP,"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:rKe,allowDrop:function(){return!0},expandAction:!1});Z(yP,"TreeNode",Xb);const hKe=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,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 ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},pKe=new Gn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),mKe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),gKe=(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:`${_e(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),vKe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},Qn(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({},rc(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:pKe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:_e(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-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:i,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(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},mKe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,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(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},gKe(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,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(i).div(2).equal(),bottom:t.calc(o).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:`${_e(t.calc(i).div(2).equal())} !important`}})}},ble=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=kn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[vKe(e,i),hKe(i)]},Sle=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},yKe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Sle(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},bKe=Kn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:aP(`${n}-checkbox`,e)},ble(n,e),H1(e)]},yKe),hW=4;function SKe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[a]:-n*o+hW,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+hW;break}return de.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Cle=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return d.isValidElement(i)?i:d.createElement(Gc,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const h=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return d.isValidElement(h)?Zo(h,{className:xe(h.props.className||"",p)}):h}return c?d.createElement(Use,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?Zo(f,{className:xe(f.props.className||"",u)}):f!==void 0?f:o?s?d.createElement(lUe,{className:`${t}-switcher-line-icon`}):d.createElement(bUe,{className:`${t}-switcher-line-icon`}):d.createElement(fHe,{className:u})},wle=de.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=de.useContext(Yt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:h,blockNode:p=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:b,motion:y,style:S}=e,w=r("tree",s),E=r(),C=y??Object.assign(Object.assign({},Ug(E)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:C,blockNode:p,showLine:!!u,dropIndicatorRender:SKe}),[_,P,O]=bKe(w),[,I]=Ho(),M=I.paddingXS/2+(((n=I.Tree)===null||n===void 0?void 0:n.titleHeight)||I.controlHeightSM),T=de.useMemo(()=>{if(!b)return!1;let A={};switch(typeof b){case"function":A.nodeDraggable=b;break;case"object":A=Object.assign({},b);break}return A.icon!==!1&&(A.icon=A.icon||de.createElement(qHe,null)),A},[b]),D=A=>de.createElement(Cle,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:h,treeNodeProps:A,showLine:u});return _(de.createElement(yP,Object.assign({itemHeight:M,ref:t,virtual:i},x,{style:Object.assign(Object.assign({},a==null?void 0:a.style),S),prefixCls:w,className:xe({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:p,[`${w}-unselectable`]:!v,[`${w}-rtl`]:o==="rtl"},a==null?void 0:a.className,l,P,O),direction:o,checkable:g&&de.createElement("span",{className:`${w}-checkbox-inner`}),selectable:v,switcherIcon:D,draggable:T}),m))}),pW=0,pR=1,mW=2;function KD(e,t,n){const{key:r,children:o}=n;function i(a){const s=a[r],l=a[o];t(s,a)!==!1&&KD(l||[],t,n)}e.forEach(i)}function CKe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let s=pW;if(r&&r===o)return[r];if(!r||!o)return[];function l(c){return c===r||c===o}return KD(t,c=>{if(s===mW)return!1;if(l(c)){if(a.push(c),s===pW)s=pR;else if(s===pR)return s=mW,!1}else s===pR&&a.push(c);return n.includes(c)},Xg(i)),a}function mR(e,t,n){const r=Ze(t),o=[];return KD(e,(i,a)=>{const s=r.indexOf(i);return s!==-1&&(o.push(a),r.splice(s,1)),!!r.length},Xg(n)),o}var gW=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=gW(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:_}=rS(vW(i));let P;return n?P=Object.keys(_):r?P=E6(i.expandedKeys||o||[],_):P=i.expandedKeys||o||[],P},[c,u]=d.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,h]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),d.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);const p=(_,P)=>{var O;return"expandedKeys"in i||h(_),(O=i.onExpand)===null||O===void 0?void 0:O.call(i,_,P)},m=(_,P)=>{var O;const{multiple:I,fieldNames:M}=i,{node:T,nativeEvent:D}=P,{key:A=""}=T,j=vW(i),k=Object.assign(Object.assign({},P),{selected:!0}),F=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),V=D==null?void 0:D.shiftKey;let W;I&&F?(W=_,a.current=A,s.current=W,k.selectedNodes=mR(j,W,M)):I&&V?(W=Array.from(new Set([].concat(Ze(s.current||[]),Ze(CKe({treeData:j,expandedKeys:f,startKey:A,endKey:a.current,fieldNames:M}))))),k.selectedNodes=mR(j,W,M)):(W=[A],a.current=A,s.current=W,k.selectedNodes=mR(j,W,M)),(O=i.onSelect)===null||O===void 0||O.call(i,W,k),"selectedKeys"in i||u(W)},{getPrefixCls:g,direction:v}=d.useContext(Yt),{prefixCls:b,className:y,showIcon:S=!0,expandAction:w="click"}=i,E=gW(i,["prefixCls","className","showIcon","expandAction"]),C=g("tree",b),x=xe(`${C}-directory`,{[`${C}-directory-rtl`]:v==="rtl"},y);return d.createElement(wle,Object.assign({icon:wKe,ref:t,blockNode:!0},E,{showIcon:S,expandAction:w,prefixCls:C,className:x,expandedKeys:f,selectedKeys:c,onSelect:m,onExpand:p}))},EKe=d.forwardRef(xKe),qD=wle;qD.DirectoryTree=EKe;qD.TreeNode=Xb;const yW=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?d.createElement("div",{className:`${r}-filter-dropdown-search`},d.createElement(qr,{prefix:d.createElement(H$,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},_Ke=e=>{const{keyCode:t}=e;t===ut.ENTER&&e.stopPropagation()},$Ke=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:_Ke,ref:t},e.children));function cg(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(Ze(t),Ze(cg(o))))}),t}function PKe(e){return e.some(t=>{let{children:n}=t;return n})}function xle(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Ele(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,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:Ele({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const u=o?id:qo,f={key:s.value!==void 0?c:l,label:d.createElement(d.Fragment,null,d.createElement(u,{checked:r.includes(c)}),d.createElement("span",null,s.text))};return i.trim()?typeof a=="function"?a(i,s)?f:null:xle(i,s.text)?f:null:f})}function gR(e){return e||[]}const OKe=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:f,filterMode:h="menu",filterSearch:p=!1,filterState:m,triggerFilter:g,locale:v,children:b,getPopupContainer:y,rootClassName:S}=e,{filterResetToDefaultFilteredValue:w,defaultFilteredValue:E,filterDropdownProps:C={},filterDropdownOpen:x,filterDropdownVisible:_,onFilterDropdownVisibleChange:P,onFilterDropdownOpenChange:O}=s,[I,M]=d.useState(!1),T=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),D=ye=>{var ve;M(ye),(ve=C.onOpenChange)===null||ve===void 0||ve.call(C,ye),O==null||O(ye),P==null||P(ye)},A=(o=(r=(n=C.open)!==null&&n!==void 0?n:x)!==null&&r!==void 0?r:_)!==null&&o!==void 0?o:I,j=m==null?void 0:m.filteredKeys,[k,F]=nKe(gR(j)),V=ye=>{let{selectedKeys:ve}=ye;F(ve)},W=(ye,ve)=>{let{node:be,checked:Pe}=ve;V(f?{selectedKeys:ye}:{selectedKeys:Pe&&be.key?[be.key]:[]})};d.useEffect(()=>{I&&V({selectedKeys:gR(j)})},[j]);const[K,L]=d.useState([]),Q=ye=>{L(ye)},[ee,re]=d.useState(""),ie=ye=>{const{value:ve}=ye.target;re(ve)};d.useEffect(()=>{I||re("")},[I]);const G=ye=>{const ve=ye!=null&&ye.length?ye:null;if(ve===null&&(!m||!m.filteredKeys)||dl(ve,m==null?void 0:m.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:ve})},X=()=>{D(!1),G(k())},ne=function(){let{confirm:ye,closeDropdown:ve}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ye&&G([]),ve&&D(!1),re(""),F(w?(E||[]).map(be=>String(be)):[])},le=function(){let{closeDropdown:ye}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ye&&D(!1),G(k())},ce=(ye,ve)=>{ve.source==="trigger"&&(ye&&j!==void 0&&F(gR(j)),D(ye),!ye&&!s.filterDropdown&&u&&X())},oe=xe({[`${l}-menu-without-submenu`]:!PKe(s.filters||[])}),se=ye=>{if(ye.target.checked){const ve=cg(s==null?void 0:s.filters).map(be=>String(be));F(ve)}else F([])},fe=ye=>{let{filters:ve}=ye;return(ve||[]).map((be,Pe)=>{const Ne=String(be.value),U={title:be.text,key:be.value!==void 0?Ne:String(Pe)};return be.children&&(U.children=fe({filters:be.children})),U})},te=ye=>{var ve;return Object.assign(Object.assign({},ye),{text:ye.title,value:ye.key,children:((ve=ye.children)===null||ve===void 0?void 0:ve.map(be=>te(be)))||[]})};let he;const{direction:pe,renderEmpty:Oe}=d.useContext(Yt);if(typeof s.filterDropdown=="function")he=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:ye=>V({selectedKeys:ye}),selectedKeys:k(),confirm:le,clearFilters:ne,filters:s.filters,visible:A,close:()=>{D(!1)}});else if(s.filterDropdown)he=s.filterDropdown;else{const ye=k()||[],ve=()=>{var Pe;const Ne=(Pe=Oe==null?void 0:Oe("Table.filter"))!==null&&Pe!==void 0?Pe:d.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Ne;if(h==="tree")return d.createElement(d.Fragment,null,d.createElement(yW,{filterSearch:p,value:ee,onChange:ie,tablePrefixCls:i,locale:v}),d.createElement("div",{className:`${i}-filter-dropdown-tree`},f?d.createElement(id,{checked:ye.length===cg(s.filters).length,indeterminate:ye.length>0&&ye.lengthtypeof p=="function"?p(ee,te(q)):xle(ee,q.title):void 0})));const U=Ele({filters:s.filters||[],filterSearch:p,prefixCls:a,filteredKeys:k(),filterMultiple:f,searchValue:ee}),H=U.every(q=>q===null);return d.createElement(d.Fragment,null,d.createElement(yW,{filterSearch:p,value:ee,onChange:ie,tablePrefixCls:i,locale:v}),H?Ne:d.createElement(vc,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:oe,onSelect:V,onDeselect:V,selectedKeys:ye,getPopupContainer:y,openKeys:K,onOpenChange:Q,items:U}))},be=()=>w?dl((E||[]).map(Pe=>String(Pe)),ye,!0):ye.length===0;he=d.createElement(d.Fragment,null,ve(),d.createElement("div",{className:`${a}-dropdown-btns`},d.createElement(Hn,{type:"link",size:"small",disabled:be(),onClick:()=>ne()},v.filterReset),d.createElement(Hn,{type:"primary",size:"small",onClick:X},v.filterConfirm)))}s.filterDropdown&&(he=d.createElement(zoe,{selectable:void 0},he)),he=d.createElement($Ke,{className:`${a}-dropdown`},he);const Se=bse({trigger:["click"],placement:pe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ye;return typeof s.filterIcon=="function"?ye=s.filterIcon(T):s.filterIcon?ye=s.filterIcon:ye=d.createElement(AHe,null),d.createElement("span",{role:"button",tabIndex:-1,className:xe(`${a}-trigger`,{active:T}),onClick:ve=>{ve.stopPropagation()}},ye)})(),getPopupContainer:y},Object.assign(Object.assign({},C),{rootClassName:xe(S,C.rootClassName),open:A,onOpenChange:ce,dropdownRender:()=>typeof(C==null?void 0:C.dropdownRender)=="function"?C.dropdownRender(he):he}));return d.createElement("div",{className:`${a}-column`},d.createElement("span",{className:`${i}-column-title`},b),d.createElement(kD,Object.assign({},Se)))},M6=(e,t,n)=>{let r=[];return(e||[]).forEach((o,i)=>{var a;const s=Hv(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let l=o.filteredValue;"filterDropdown"in o||(l=(a=l==null?void 0:l.map(String))!==null&&a!==void 0?a:l),r.push({column:o,key:Pf(o,s),filteredKeys:l,forceFiltered:o.filtered})}else r.push({column:o,key:Pf(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Ze(r),Ze(M6(o.children,t,s))))}),r};function _le(e,t,n,r,o,i,a,s,l){return n.map((c,u)=>{const f=Hv(u,s),{filterOnClose:h=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=c;let v=c;if(v.filters||v.filterDropdown){const b=Pf(v,f),y=r.find(S=>{let{key:w}=S;return b===w});v=Object.assign(Object.assign({},v),{title:S=>d.createElement(OKe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:b,filterState:y,filterOnClose:h,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:l},vP(c.title,S))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:_le(e,t,v.children,r,o,i,a,f,l)})),v})}const bW=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:s,filterDropdown:l}=i;if(l)t[a]=o||null;else if(Array.isArray(o)){const c=cg(s);t[a]=c.filter(u=>o.includes(String(u)))}else t[a]=null}),t},T6=(e,t,n)=>t.reduce((o,i)=>{const{column:{onFilter:a,filters:s},filteredKeys:l}=i;return a&&l&&l.length?o.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const f=cg(s),h=f.findIndex(m=>String(m)===String(u)),p=h!==-1?f[h]:u;return c[n]&&(c[n]=T6(c[n],t,n)),a(p,c)})):o},e),$le=e=>e.flatMap(t=>"children"in t?[t].concat(Ze($le(t.children||[]))):[t]),MKe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:s}=e;ru();const l=d.useMemo(()=>$le(r||[]),[r]),[c,u]=d.useState(()=>M6(l,!0)),f=d.useMemo(()=>{const g=M6(l,!1);if(g.length===0)return g;let v=!0;if(g.forEach(b=>{let{filteredKeys:y}=b;y!==void 0&&(v=!1)}),v){const b=(l||[]).map((y,S)=>Pf(y,Hv(S)));return c.filter(y=>{let{key:S}=y;return b.includes(S)}).map(y=>{const S=l[b.findIndex(w=>w===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),S),forceFiltered:S.filtered})})}return g},[l,c]),h=d.useMemo(()=>bW(f),[f]),p=g=>{const v=f.filter(b=>{let{key:y}=b;return y!==g.key});v.push(g),u(v),o(bW(v),v)};return[g=>_le(t,n,g,f,a,p,i,void 0,s),f,h]},TKe=(e,t,n)=>{const r=d.useRef({});function o(i){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,f)=>{const h=n(u,f);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(i)}return[o]};var RKe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function kKe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=RKe(r,["total"]),[a,s]=d.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Ple})),l=bse(a,i,{total:o>0?o:e}),c=Math.ceil((o||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(h,p)=>{s({current:h??1,pageSize:p||l.pageSize})},f=(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:f}),u]}const lx="ascend",vR="descend",uE=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,SW=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,NKe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],R6=(e,t,n)=>{let r=[];const o=(i,a)=>{r.push({column:i,key:Pf(i,a),multiplePriority:uE(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,a)=>{const s=Hv(a,n);i.children?("sortOrder"in i&&o(i,s),r=[].concat(Ze(r),Ze(R6(i.children,t,s)))):i.sorter&&("sortOrder"in i?o(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:Pf(i,s),multiplePriority:uE(i),sortOrder:i.defaultSortOrder}))}),r},Ole=(e,t,n,r,o,i,a,s)=>(t||[]).map((c,u)=>{const f=Hv(u,s);let h=c;if(h.sorter){const p=h.sortDirections||o,m=h.showSorterTooltip===void 0?a:h.showSorterTooltip,g=Pf(h,f),v=n.find(P=>{let{key:O}=P;return O===g}),b=v?v.sortOrder:null,y=NKe(p,b);let S;if(c.sortIcon)S=c.sortIcon({sortOrder:b});else{const P=p.includes(lx)&&d.createElement(yHe,{className:xe(`${e}-column-sorter-up`,{active:b===lx})}),O=p.includes(vR)&&d.createElement(mHe,{className:xe(`${e}-column-sorter-down`,{active:b===vR})});S=d.createElement("span",{className:xe(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(P&&O)})},d.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},P,O))}const{cancelSort:w,triggerAsc:E,triggerDesc:C}=i||{};let x=w;y===vR?x=C:y===lx&&(x=E);const _=typeof m=="object"?Object.assign({title:x},m):{title:x};h=Object.assign(Object.assign({},h),{className:xe(h.className,{[`${e}-column-sort`]:b}),title:P=>{const O=`${e}-column-sorters`,I=d.createElement("span",{className:`${e}-column-title`},vP(c.title,P)),M=d.createElement("div",{className:O},I,S);return m?typeof m!="boolean"&&(m==null?void 0:m.target)==="sorter-icon"?d.createElement("div",{className:`${O} ${e}-column-sorters-tooltip-target-sorter`},I,d.createElement(xa,Object.assign({},_),S)):d.createElement(xa,Object.assign({},_),M):M},onHeaderCell:P=>{var O;const I=((O=c.onHeaderCell)===null||O===void 0?void 0:O.call(c,P))||{},M=I.onClick,T=I.onKeyDown;I.onClick=j=>{r({column:c,key:g,sortOrder:y,multiplePriority:uE(c)}),M==null||M(j)},I.onKeyDown=j=>{j.keyCode===ut.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:uE(c)}),T==null||T(j))};const D=tKe(c.title,{}),A=D==null?void 0:D.toString();return b?I["aria-sort"]=b==="ascend"?"ascending":"descending":I["aria-label"]=A||"",I.className=xe(I.className,`${e}-column-has-sorters`),I.tabIndex=0,c.ellipsis&&(I.title=(D??"").toString()),I}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Ole(e,h.children,n,r,o,i,a,f)})),h}),CW=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},wW=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(CW);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},CW(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},I6=(e,t,n)=>{const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:s},sortOrder:l}=a;return SW(s)&&l});return i.length?o.sort((a,s)=>{for(let l=0;l{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:I6(s,t,n)}):a}):o},AKe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[s,l]=d.useState(R6(n,!0)),c=(g,v)=>{const b=[];return g.forEach((y,S)=>{const w=Hv(S,v);if(b.push(Pf(y,w)),Array.isArray(y.children)){const E=c(y.children,w);b.push.apply(b,Ze(E))}}),b},u=d.useMemo(()=>{let g=!0;const v=R6(n,!1);if(!v.length){const w=c(n);return s.filter(E=>{let{key:C}=E;return w.includes(C)})}const b=[];function y(w){g?b.push(w):b.push(Object.assign(Object.assign({},w),{sortOrder:null}))}let S=null;return v.forEach(w=>{S===null?(y(w),w.sortOrder&&(w.multiplePriority===!1?g=!1:S=!0)):(S&&w.multiplePriority!==!1||(g=!1),y(w))}),b},[n,s]),f=d.useMemo(()=>{var g,v;const b=u.map(y=>{let{column:S,sortOrder:w}=y;return{column:S,order:w}});return{sortColumns:b,sortColumn:(g=b[0])===null||g===void 0?void 0:g.column,sortOrder:(v=b[0])===null||v===void 0?void 0:v.order}},[u]),h=g=>{let v;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?v=[g]:v=[].concat(Ze(u.filter(b=>{let{key:y}=b;return y!==g.key})),[g]),l(v),a(wW(v),v)};return[g=>Ole(t,g,u,h,r,o,i),u,f,()=>wW(u)]},Mle=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=vP(r.title,t),"children"in o&&(o.children=Mle(o.children,t)),o}),DKe=e=>[d.useCallback(n=>Mle(n,e),[e])],jKe=fle((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),FKe=ple((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),LKe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${_e(n)} ${r} ${o}`,u=(f,h,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_e(l(h).mul(-1).equal())} + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:_e(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:`${_e(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:_e(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},tS(e)),pD(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})}}}},H9e=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:_e(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${_e(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_e(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}}}}},U9e=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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:_e(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),H9e(e)),z9e(e)),B9e(e)),L9e(e)),F9e(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"}}},W9e=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ka(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},rc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},rc(e))}}}},Sse=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},eS(e)),Cse=e=>kn(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"},Z1(e)),V9e=Kn("Pagination",e=>{const t=Cse(e);return[U9e(t),W9e(t)]},Sse),K9e=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:`${_e(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}}}}},q9e=$v(["Pagination","bordered"],e=>{const t=Cse(e);return[K9e(t)]},Sse);function jU(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var G9e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:h}=e,p=G9e(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=W$(c),[,g]=Ho(),{getPrefixCls:v,direction:b,pagination:y={}}=d.useContext(Yt),S=v("pagination",n),[w,E,C]=V9e(S),x=Eo(s),_=x==="small"||!!(m&&!x&&c),[P]=zi("Pagination",Bte),O=Object.assign(Object.assign({},P),l),[I,M]=jU(u),[T,D]=jU(y.showSizeChanger),A=I??T,j=M??D,k=f||Va,F=d.useMemo(()=>h?h.map(ee=>Number(ee)):void 0,[h]),V=ee=>{var re;const{disabled:ie,size:G,onSizeChange:X,"aria-label":ne,className:le,options:ce}=ee,{className:oe,onChange:se}=j||{},fe=(re=ce.find(te=>String(te.value)===String(G)))===null||re===void 0?void 0:re.value;return d.createElement(k,Object.assign({disabled:ie,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:te=>te.parentNode,"aria-label":ne,options:ce},j,{value:fe,onChange:(te,he)=>{X==null||X(te),se==null||se(te,he)},size:_?"small":"middle",className:xe(le,oe)}))},W=d.useMemo(()=>{const ee=d.createElement("span",{className:`${S}-item-ellipsis`},"•••"),re=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?d.createElement(nd,null):d.createElement(qg,null)),ie=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?d.createElement(qg,null):d.createElement(nd,null)),G=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},b==="rtl"?d.createElement(NU,{className:`${S}-item-link-icon`}):d.createElement(kU,{className:`${S}-item-link-icon`}),ee)),X=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},b==="rtl"?d.createElement(kU,{className:`${S}-item-link-icon`}):d.createElement(NU,{className:`${S}-item-link-icon`}),ee));return{prevIcon:re,nextIcon:ie,jumpPrevIcon:G,jumpNextIcon:X}},[b,S]),K=v("select",r),L=xe({[`${S}-${t}`]:!!t,[`${S}-mini`]:_,[`${S}-rtl`]:b==="rtl",[`${S}-bordered`]:g.wireframe},y==null?void 0:y.className,o,i,E,C),Q=Object.assign(Object.assign({},y==null?void 0:y.style),a);return w(d.createElement(d.Fragment,null,g.wireframe&&d.createElement(q9e,{prefixCls:S}),d.createElement(j9e,Object.assign({},W,p,{style:Q,prefixCls:S,selectPrefixCls:K,className:L,locale:O,pageSizeOptions:F,showSizeChanger:A,sizeChangerRender:V}))))},aE=100,wse=aE/5,xse=aE/2-wse/2,dR=xse*2*Math.PI,FU=50,LU=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:xe(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:xse,cx:FU,cy:FU,strokeWidth:wse,style:n})},X9e=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,s]=d.useState(!1);Zn(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:`${dR/4}`,strokeDasharray:`${dR*l/100} ${dR*(100-l)/100}`};return d.createElement("span",{className:xe(o,`${r}-progress`,l<=0&&i)},d.createElement("svg",{viewBox:`0 0 ${aE} ${aE}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},d.createElement(LU,{dotClassName:r,hasCircleCls:!0}),d.createElement(LU,{dotClassName:r,style:c})))};function Q9e(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:xe(o,n>0&&i)},d.createElement("span",{className:xe(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>d.createElement("i",{className:`${t}-dot-item`,key:a})))),d.createElement(X9e,{prefixCls:t,percent:n}))}function J9e(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&d.isValidElement(n)?Zo(n,{className:xe(n.props.className,o),percent:r}):d.createElement(Q9e,{prefixCls:t,percent:r})}const Z9e=new Gn("antSpinMove",{to:{opacity:1}}),eze=new Gn("antRotate",{to:{transform:"rotate(405deg)"}}),tze=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Qn(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:Z9e,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:eze,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"}})}},nze=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},rze=Kn("Spin",e=>{const t=kn(e,{spinDotDefault:e.colorTextDescription});return[tze(t)]},nze),oze=200,BU=[[30,.05],[70,.03],[96,.01]];function ize(e,t){const[n,r]=d.useState(0),o=d.useRef(null),i=t==="auto";return d.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l{clearInterval(o.current)}),[i,e]),i?n:t}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 o=0,r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:h=!1,indicator:p,percent:m}=e,g=aze(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,spin:y}=d.useContext(Yt),S=v("spin",n),[w,E,C]=rze(S),[x,_]=d.useState(()=>r&&!sze(r,o)),P=ize(x,m);d.useEffect(()=>{if(r){const j=QDe(o,()=>{_(!0)});return j(),()=>{var k;(k=j==null?void 0:j.cancel)===null||k===void 0||k.call(j)}}_(!1)},[o,r]);const O=d.useMemo(()=>typeof f<"u"&&!h,[f,h]),I=xe(S,y==null?void 0:y.className,{[`${S}-sm`]:s==="small",[`${S}-lg`]:s==="large",[`${S}-spinning`]:x,[`${S}-show-text`]:!!l,[`${S}-rtl`]:b==="rtl"},i,!h&&a,E,C),M=xe(`${S}-container`,{[`${S}-blur`]:x}),T=(t=p??(y==null?void 0:y.indicator))!==null&&t!==void 0?t:Ese,D=Object.assign(Object.assign({},y==null?void 0:y.style),u),A=d.createElement("div",Object.assign({},g,{style:D,className:I,"aria-live":"polite","aria-busy":x}),d.createElement(J9e,{prefixCls:S,indicator:T,percent:P}),l&&(O||h)?d.createElement("div",{className:`${S}-text`},l):null);return w(O?d.createElement("div",Object.assign({},g,{className:xe(`${S}-nested-loading`,c,E,C)}),x&&d.createElement("div",{key:"loading"},A),d.createElement("div",{className:M,key:"container"},f)):h?d.createElement("div",{className:xe(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:x},a,E,C)},A):A)};iu.setDefaultIndicator=e=>{Ese=e};let Vs=null,Rh=e=>e(),Gb=[],Yb={};function zU(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Yb,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const lze=de.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=d.useContext(Yt),i=Yb.prefixCls||o("message"),a=d.useContext(Z3),[s,l]=Lne(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return de.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}),cze=de.forwardRef((e,t)=>{const[n,r]=de.useState(zU),o=()=>{r(zU)};de.useEffect(o,[]);const i=xne(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=de.createElement(lze,{ref:t,sync:o,messageConfig:n});return de.createElement(Mn,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});function hP(){if(!Vs){const e=document.createDocumentFragment(),t={fragment:e};Vs=t,Rh(()=>{EA()(de.createElement(cze,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,hP())})}}),e)});return}Vs.instance&&(Gb.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Rh(()=>{const r=Vs.instance.open(Object.assign(Object.assign({},Yb),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Rh(()=>{Vs==null||Vs.instance.destroy(e.key)});break;default:Rh(()=>{var r;const o=(r=Vs.instance)[t].apply(r,Ze(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Gb=[])}function uze(e){Yb=Object.assign(Object.assign({},Yb),e),Rh(()=>{var t;(t=Vs==null?void 0:Vs.sync)===null||t===void 0||t.call(Vs)})}function dze(e){const t=xA(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Gb.push(o),()=>{r?Rh(()=>{r()}):o.skipped=!0}});return hP(),t}function fze(e,t){const n=xA(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return Gb.push(i),()=>{o?Rh(()=>{o()}):i.skipped=!0}});return hP(),n}const hze=e=>{Gb.push({type:"destroy",key:e}),hP()},pze=["success","info","warning","error","loading"],mze={open:dze,destroy:hze,config:uze,useMessage:Bne,_InternalPanelDoNotUseOrYouWillBeFired:rTe},_se=mze;pze.forEach(e=>{_se[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:l}=e,c=gze(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Yt),f=u(),h=t||u("modal"),p=Mr(f),[m,g,v]=Pre(h,p),b=`${h}-confirm`;let y={};return i?y={closable:o??!1,title:"",footer:"",children:d.createElement(Mre,Object.assign({},e,{prefixCls:h,confirmPrefixCls:b,rootPrefixCls:f,content:s}))}:y={closable:o??!0,title:a,footer:l!==null&&d.createElement(wre,Object.assign({},e)),children:s},m(d.createElement(sre,Object.assign({prefixCls:h,className:xe(g,`${h}-pure-panel`,i&&b,i&&`${b}-${i}`,n,v,p)},c,{closeIcon:Cre(h,r),closable:o},y)))},yze=zre(vze);function $se(e){return q1(kre(e))}const Hi=Ore;Hi.useModal=Fre;Hi.info=function(t){return q1(Nre(t))};Hi.success=function(t){return q1(Are(t))};Hi.error=function(t){return q1(Dre(t))};Hi.warning=$se;Hi.warn=$se;Hi.confirm=function(t){return q1(jre(t))};Hi.destroyAll=function(){for(;Mh.length;){const t=Mh.pop();t&&t()}};Hi.config=v4e;Hi._InternalPanelDoNotUseOrYouWillBeFired=yze;const bze=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${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:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},Sze=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},Pse=Kn("Popconfirm",e=>bze(e),Sze,{resetStyle:!1});var Cze=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=d.createElement(Df,null),showCancel:u=!0,close:f,onConfirm:h,onCancel:p,onPopupClick:m}=e,{getPrefixCls:g}=d.useContext(Yt),[v]=zi("Popconfirm",Os.Popconfirm),b=Kg(o),y=Kg(i);return d.createElement("div",{className:`${t}-inner-content`,onClick:m},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},b&&d.createElement("div",{className:`${t}-title`},b),y&&d.createElement("div",{className:`${t}-description`},y))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(Hn,Object.assign({onClick:p,size:"small"},r),a||(v==null?void 0:v.cancelText)),d.createElement(kA,{buttonProps:Object.assign(Object.assign({size:"small"},_A(l)),n),actionFn:h,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},wze=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=Cze(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=d.useContext(Yt),s=a("popconfirm",t),[l]=Pse(s);return l(d.createElement(yoe,{placement:n,className:xe(s,r),style:o,content:d.createElement(Ose,Object.assign({prefixCls:s},i))}))};var xze=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:f="primary",icon:h=d.createElement(Df,null),children:p,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:b,styles:y,classNames:S}=e,w=xze(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:E,popconfirm:C}=d.useContext(Yt),[x,_]=xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=(F,V)=>{_(F,!0),v==null||v(F),g==null||g(F,V)},O=F=>{P(!1,F)},I=F=>{var V;return(V=e.onConfirm)===null||V===void 0?void 0:V.call(void 0,F)},M=F=>{var V;P(!1,F),(V=e.onCancel)===null||V===void 0||V.call(void 0,F)},T=(F,V)=>{const{disabled:W=!1}=e;W||P(F,V)},D=E("popconfirm",l),A=xe(D,m,(o=C==null?void 0:C.classNames)===null||o===void 0?void 0:o.root,S==null?void 0:S.root),j=xe((i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.body,S==null?void 0:S.body),[k]=Pse(D);return k(d.createElement(fl,Object.assign({},Yn(w,["title"]),{trigger:u,placement:c,onOpenChange:T,open:x,ref:t,classNames:{root:A,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.root),C==null?void 0:C.style),b),y==null?void 0:y.root),body:Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.body),y==null?void 0:y.body)},content:d.createElement(Ose,Object.assign({okType:f,icon:h},e,{prefixCls:D,close:O,onConfirm:I,onCancel:M})),"data-popover-inject":!0}),p))}),Mse=Eze;Mse._InternalPanelDoNotUseOrYouWillBeFired=wze;var _ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$ze=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},HU=0,Pze=Ca();function Oze(){var e;return Pze?(e=HU,HU+=1):e="TEST_OR_SSR",e}const Mze=function(e){var t=d.useState(),n=$e(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_progress_".concat(Oze()))},[]),e||r};var UU=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function WU(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var Tze=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,h=r&&Ht(r)==="object",p=h?"#FFF":void 0,m=u/2,g=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!h)return g;var v="".concat(o,"-conic"),b=f?"".concat(180+f/2,"deg"):"0deg",y=WU(r,(360-f)/360),S=WU(r,1),w="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),E="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(S.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},g),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(UU,{bg:E},d.createElement(UU,{bg:w}))))}),gy=100,fR=function(t,n,r,o,i,a,s,l,c,u){var f=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-o)/100*n;c==="round"&&o!==100&&(m+=u/2,m>=n&&(m=n-.01));var g=gy/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+f,transform:"rotate(".concat(i+h+p,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"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}},Rze=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function VU(e){var t=e??[];return Array.isArray(t)?t:[t]}var Ize=function(t){var n=z(z({},_ze),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,h=n.strokeLinecap,p=n.style,m=n.className,g=n.strokeColor,v=n.percent,b=At(n,Rze),y=gy/2,S=Mze(r),w="".concat(S,"-gradient"),E=y-a/2,C=Math.PI*2*E,x=c>0?90+c/2:-90,_=C*((360-c)/360),P=Ht(i)==="object"?i:{count:i,gap:2},O=P.count,I=P.gap,M=VU(v),T=VU(g),D=T.find(function(K){return K&&Ht(K)==="object"}),A=D&&Ht(D)==="object",j=A?"butt":h,k=fR(C,_,0,100,x,c,u,f,j,a),F=$ze(),V=function(){var L=0;return M.map(function(Q,ee){var re=T[ee]||T[T.length-1],ie=fR(C,_,L,Q,x,c,u,re,j,a);return L+=Q,d.createElement(Tze,{key:ee,color:re,ptg:Q,radius:E,prefixCls:o,gradientId:w,style:ie,strokeLinecap:j,strokeWidth:a,gapDegree:c,ref:function(X){F[ee]=X},size:gy})}).reverse()},W=function(){var L=Math.round(O*(M[0]/100)),Q=100/O,ee=0;return new Array(O).fill(null).map(function(re,ie){var G=ie<=L-1?T[0]:f,X=G&&Ht(G)==="object"?"url(#".concat(w,")"):void 0,ne=fR(C,_,ee,Q,x,c,u,G,"butt",a,I);return ee+=(_-ne.strokeDashoffset+I)*100/_,d.createElement("circle",{key:ie,className:"".concat(o,"-circle-path"),r:E,cx:y,cy:y,stroke:X,strokeWidth:a,opacity:1,style:ne,ref:function(ce){F[ie]=ce}})})};return d.createElement("svg",Ge({className:xe("".concat(o,"-circle"),m),viewBox:"0 0 ".concat(gy," ").concat(gy),style:p,id:r,role:"presentation"},b),!O&&d.createElement("circle",{className:"".concat(o,"-circle-trail"),r:E,cx:y,cy:y,stroke:f,strokeLinecap:j,strokeWidth:s||a,style:k}),O?W():V())};function bf(e){return!e||e<0?0:e>100?100:e}function sE(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 kze=e=>{let{percent:t,success:n,successPercent:r}=e;const o=bf(sE({success:n,successPercent:r}));return[o,bf(bf(t)-o)]},Nze=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||qh.green,n||null]},pP=(e,t,n)=>{var r,o,i,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=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},Aze=3,Dze=e=>Aze/e*100,jze=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[h,p]=pP(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(Dze(h),6));const g={width:h,height:p,fontSize:h*.15+6},v=d.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),b=kze(e),y=o||s==="dashboard"&&"bottom"||void 0,S=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=Nze({success:c,strokeColor:e.strokeColor}),E=xe(`${t}-inner`,{[`${t}-circle-gradient`]:S}),C=d.createElement(Ize,{steps:f,percent:f?b[1]:b,strokeWidth:m,trailWidth:m,strokeColor:f?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y}),x=h<=20,_=d.createElement("div",{className:E,style:g},C,!x&&l);return x?d.createElement(xa,{title:l},_):_},lE="--progress-line-stroke-color",Tse="--progress-percent",KU=e=>{const t=e?"100%":"-100%";return new Gn(`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}})},Fze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Qn(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(${lE})`]},height:"100%",width:`calc(1 / var(${Tse}) * 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 ${_e(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:KU(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:KU(!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}}})}},Lze=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"}}}},Bze=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}}}}}},zze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Hze=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Uze=Kn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=kn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Fze(n),Lze(n),Bze(n),zze(n)]},Hze);var Wze=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 o=0,r=Object.getOwnPropertySymbols(e);o{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:o}=n;return`${o} ${r}%`}).join(", ")},Kze=(e,t)=>{const{from:n=qh.blue,to:r=qh.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Wze(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=Vze(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[lE]:l}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[lE]:a}},qze=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:h,type:p}=u,m=a&&typeof a!="string"?Kze(a,n):{[lE]:a,background:a},g=s==="square"||s==="butt"?0:void 0,v=o??[-1,i||(o==="small"?6:8)],[b,y]=pP(v,"line",{strokeWidth:i}),S={backgroundColor:c||void 0,borderRadius:g},w=Object.assign(Object.assign({width:`${bf(r)}%`,height:y,borderRadius:g},m),{[Tse]:bf(r)/100}),E=sE(e),C={width:`${bf(E)}%`,height:y,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},x={width:b<0?"100%":b},_=d.createElement("div",{className:`${t}-inner`,style:S},d.createElement("div",{className:xe(`${t}-bg`,`${t}-bg-${p}`),style:w},p==="inner"&&l),E!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:C})),P=p==="outer"&&h==="start",O=p==="outer"&&h==="end";return p==="outer"&&h==="center"?d.createElement("div",{className:`${t}-layout-bottom`},_,l):d.createElement("div",{className:`${t}-outer`,style:x},P&&l,_,O&&l)},Gze=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,o],[h,p]=pP(f,"step",{steps:n,strokeWidth:o}),m=h/n,g=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:h,style:p,percentPosition:m={}}=e,g=Yze(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:b="outer"}=m,y=Array.isArray(a)?a[0]:a,S=typeof a=="string"||Array.isArray(a)?a:void 0,w=d.useMemo(()=>{if(y){const V=typeof y=="string"?y:Object.values(y)[0];return new Un(V).isLight()}return!1},[a]),E=d.useMemo(()=>{var V,W;const K=sE(e);return parseInt(K!==void 0?(V=K??0)===null||V===void 0?void 0:V.toString():(W=s??0)===null||W===void 0?void 0:W.toString(),10)},[s,e.success,e.successPercent]),C=d.useMemo(()=>!Xze.includes(f)&&E>=100?"success":f||"normal",[f,E]),{getPrefixCls:x,direction:_,progress:P}=d.useContext(Yt),O=x("progress",n),[I,M,T]=Uze(O),D=u==="line",A=D&&!i,j=d.useMemo(()=>{if(!c)return null;const V=sE(e);let W;const K=h||(Q=>`${Q}%`),L=D&&w&&b==="inner";return b==="inner"||h||C!=="exception"&&C!=="success"?W=K(bf(s),bf(V)):C==="exception"?W=D?d.createElement(ru,null):d.createElement(ou,null):C==="success"&&(W=D?d.createElement(Lp,null):d.createElement(gf,null)),d.createElement("span",{className:xe(`${O}-text`,{[`${O}-text-bright`]:L,[`${O}-text-${v}`]:A,[`${O}-text-${b}`]:A}),title:typeof W=="string"?W:void 0},W)},[c,s,E,C,u,O,h]);let k;u==="line"?k=i?d.createElement(Gze,Object.assign({},e,{strokeColor:S,prefixCls:O,steps:typeof i=="object"?i.count:i}),j):d.createElement(qze,Object.assign({},e,{strokeColor:y,prefixCls:O,direction:_,percentPosition:{align:v,type:b}}),j):(u==="circle"||u==="dashboard")&&(k=d.createElement(jze,Object.assign({},e,{strokeColor:y,prefixCls:O,progressStatus:C}),j));const F=xe(O,`${O}-status-${C}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&pP(l,"circle")[0]<=20,[`${O}-line`]:A,[`${O}-line-align-${v}`]:A,[`${O}-line-position-${b}`]:A,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:_==="rtl"},P==null?void 0:P.className,r,o,M,T);return I(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P==null?void 0:P.style),p),className:F,role:"progressbar","aria-valuenow":E,"aria-valuemin":0,"aria-valuemax":100},Yn(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),k))});function Fc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u$(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}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 i,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,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}var Fv,sS;function ja(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 gu(e,t){return(e>>>t&1)!=0}function as(e){if(!e)throw new Error("Assertion error")}var Lc=function(){function e(t,n){br(this,e),Z(this,"modeBits",void 0),Z(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Sr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();Fv=Lc;Z(Lc,"NUMERIC",new Fv(1,[10,12,14]));Z(Lc,"ALPHANUMERIC",new Fv(2,[9,11,13]));Z(Lc,"BYTE",new Fv(4,[8,16,16]));Z(Lc,"KANJI",new Fv(8,[8,10,12]));Z(Lc,"ECI",new Fv(7,[0,0,0]));var tl=Sr(function e(t,n){br(this,e),Z(this,"ordinal",void 0),Z(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});sS=tl;Z(tl,"LOW",new sS(0,1));Z(tl,"MEDIUM",new sS(1,0));Z(tl,"QUARTILE",new sS(2,3));Z(tl,"HIGH",new sS(3,2));var Qh=function(){function e(t,n,r){if(br(this,e),Z(this,"mode",void 0),Z(this,"numChars",void 0),Z(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 Sr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],o=Fc(n),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;ja(a,8,r)}}catch(s){o.e(s)}finally{o.f()}return new e(Lc.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],o=0;o=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],s=0;s>>9)*1335;var a=(r<<10|o)^21522;as(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,gu(a,s));this.setFunctionModule(8,7,gu(a,6)),this.setFunctionModule(8,8,gu(a,7)),this.setFunctionModule(7,8,gu(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,gu(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,gu(a,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,gu(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 o=this.version<<12|n;as(o>>>18==0);for(var i=0;i<18;i++){var a=gu(o,i),s=this.size-11+i%3,l=Math.floor(i/3);this.setFunctionModule(s,l,a),this.setFunctionModule(l,s,a)}}}},{key:"drawFinderPattern",value:function(n,r){for(var o=-4;o<=4;o++)for(var i=-4;i<=4;i++){var a=Math.max(Math.abs(i),Math.abs(o)),s=n+i,l=r+o;0<=s&&s=l)&&v.push(E[w])})},y=0;y=1;o-=2){o==6&&(o=5);for(var i=0;i>>3],7-(r&7)),r++)}}as(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;r5&&n++):(this.finderPenaltyAddHistory(i,a),o||(n+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),o=this.modules[r][s],i=1);n+=this.finderPenaltyTerminateAndCount(o,i,a)*e.PENALTY_N3}for(var l=0;l5&&n++):(this.finderPenaltyAddHistory(u,f),c||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),c=this.modules[h][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,f)*e.PENALTY_N3}for(var p=0;p0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(o&&n[0]>=r*4&&n[6]>=r?1:0)+(o&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,o){var i=r;return n&&(this.finderPenaltyAddHistory(i,o),i=0),i+=this.size,this.finderPenaltyAddHistory(i,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(n,r){var o=n;r[0]==0&&(o+=this.size),r.pop(),r.unshift(o)}}],[{key:"encodeText",value:function(n,r){var o=Qh.makeSegments(n);return e.encodeSegments(o,r)}},{key:"encodeBinary",value:function(n,r){var o=Qh.makeBytes(n);return e.encodeSegments([o],r)}},{key:"encodeSegments",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=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<=o&&o<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw new RangeError("Invalid value");var l,c;for(l=o;;l++){var u=e.getNumDataCodewords(l,r)*8,f=Qh.getTotalBits(n,l);if(f<=u){c=f;break}if(l>=i)throw new RangeError("Data too long")}for(var h=r,p=0,m=[tl.MEDIUM,tl.QUARTILE,tl.HIGH];p>>3]|=O<<7-(I&7)}),new e(l,h,P,a)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var o=Math.floor(n/7)+2;r-=(25*o-10)*o-55,n>=7&&(r-=36)}return as(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=[],o=0;o>>8||r>>>8)throw new RangeError("Byte out of range");for(var o=0,i=7;i>=0;i--)o=o<<1^(o>>>7)*285,o^=(r>>>i&1)*n;return as(o>>>8==0),o}}]),e}();Z(vd,"MIN_VERSION",1);Z(vd,"MAX_VERSION",40);Z(vd,"PENALTY_N1",3);Z(vd,"PENALTY_N2",3);Z(vd,"PENALTY_N3",40);Z(vd,"PENALTY_N4",10);Z(vd,"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]]);Z(vd,"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 Qze={L:tl.LOW,M:tl.MEDIUM,Q:tl.QUARTILE,H:tl.HIGH},Rse=128,Ise="L",kse="#FFFFFF",Nse="#000000",Ase=!1,Dse=1,Jze=4,Zze=0,eHe=.1;function jse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,o){var i=null;r.forEach(function(a,s){if(!a&&i!==null){n.push("M".concat(i+t," ").concat(o+t,"h").concat(s-i,"v1H").concat(i+t,"z")),i=null;return}if(s===r.length-1){if(!a)return;i===null?n.push("M".concat(s+t,",").concat(o+t," h1v1H").concat(s+t,"z")):n.push("M".concat(i+t,",").concat(o+t," h").concat(s+1-i,"v1H").concat(i+t,"z"));return}a&&i===null&&(i=s)})}),n.join("")}function Fse(e,t){return e.slice().map(function(n,r){return r=t.y+t.h?n:n.map(function(o,i){return i=t.x+t.w?o:!1})})}function tHe(e,t,n,r){if(r==null)return null;var o=e.length+n*2,i=Math.floor(t*eHe),a=o/t,s=(r.width||i)*a,l=(r.height||i)*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,f=r.opacity==null?1:r.opacity,h=null;if(r.excavate){var p=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-p),v=Math.ceil(l+u-m);h={x:p,y:m,w:g,h:v}}var b=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:h,opacity:f,crossOrigin:b}}function nHe(e,t){return t!=null?Math.floor(t):e?Jze:Zze}var rHe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function Lse(e){var t=e.value,n=e.level,r=e.minVersion,o=e.includeMargin,i=e.marginSize,a=e.imageSettings,s=e.size,l=d.useMemo(function(){var m=Qh.makeSegments(t);return vd.encodeSegments(m,Qze[n],r)},[t,n,r]),c=d.useMemo(function(){var m=l.getModules(),g=nHe(o,i),v=m.length+g*2,b=tHe(m,s,g,a);return{cells:m,margin:g,numCells:v,calculatedImageSettings:b}},[l,s,a,o,i]),u=c.cells,f=c.margin,h=c.numCells,p=c.calculatedImageSettings;return{qrcode:l,margin:f,cells:u,numCells:h,calculatedImageSettings:p}}var oHe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],Bse=de.forwardRef(function(t,n){var r=t.value,o=t.size,i=o===void 0?Rse:o,a=t.level,s=a===void 0?Ise:a,l=t.bgColor,c=l===void 0?kse:l,u=t.fgColor,f=u===void 0?Nse:u,h=t.includeMargin,p=h===void 0?Ase:h,m=t.minVersion,g=m===void 0?Dse:m,v=t.marginSize,b=t.style,y=t.imageSettings,S=At(t,oHe),w=y==null?void 0:y.src,E=d.useRef(null),C=d.useRef(null),x=d.useCallback(function(F){E.current=F,typeof n=="function"?n(F):n&&(n.current=F)},[n]),_=d.useState(!1),P=$e(_,2),O=P[1],I=Lse({value:r,level:s,minVersion:g,includeMargin:p,marginSize:v,imageSettings:y,size:i}),M=I.margin,T=I.cells,D=I.numCells,A=I.calculatedImageSettings;d.useEffect(function(){if(E.current!=null){var F=E.current,V=F.getContext("2d");if(!V)return;var W=T,K=C.current,L=A!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWidth!==0;L&&A.excavation!=null&&(W=Fse(T,A.excavation));var Q=window.devicePixelRatio||1;F.height=F.width=i*Q;var ee=i/D*Q;V.scale(ee,ee),V.fillStyle=c,V.fillRect(0,0,D,D),V.fillStyle=f,rHe?V.fill(new Path2D(jse(W,M))):T.forEach(function(re,ie){re.forEach(function(G,X){G&&V.fillRect(X+M,ie+M,1,1)})}),A&&(V.globalAlpha=A.opacity),L&&V.drawImage(K,A.x+M,A.y+M,A.w,A.h)}}),d.useEffect(function(){O(!1)},[w]);var j=z({height:i,width:i},b),k=null;return w!=null&&(k=de.createElement("img",{src:w,key:w,style:{display:"none"},onLoad:function(){O(!0)},ref:C,crossOrigin:A==null?void 0:A.crossOrigin})),de.createElement(de.Fragment,null,de.createElement("canvas",Ge({style:j,height:i,width:i,ref:x,role:"img"},S)),k)});Bse.displayName="QRCodeCanvas";var iHe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],zse=de.forwardRef(function(t,n){var r=t.value,o=t.size,i=o===void 0?Rse:o,a=t.level,s=a===void 0?Ise:a,l=t.bgColor,c=l===void 0?kse:l,u=t.fgColor,f=u===void 0?Nse:u,h=t.includeMargin,p=h===void 0?Ase:h,m=t.minVersion,g=m===void 0?Dse:m,v=t.title,b=t.marginSize,y=t.imageSettings,S=At(t,iHe),w=Lse({value:r,level:s,minVersion:g,includeMargin:p,marginSize:b,imageSettings:y,size:i}),E=w.margin,C=w.cells,x=w.numCells,_=w.calculatedImageSettings,P=C,O=null;y!=null&&_!=null&&(_.excavation!=null&&(P=Fse(C,_.excavation)),O=de.createElement("image",{href:y.src,height:_.h,width:_.w,x:_.x+E,y:_.y+E,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));var I=jse(P,E);return de.createElement("svg",Ge({height:i,width:i,viewBox:"0 0 ".concat(x," ").concat(x),ref:n,role:"img"},S),!!v&&de.createElement("title",null,v),de.createElement("path",{fill:c,d:"M0,0 h".concat(x,"v").concat(x,"H0z"),shapeRendering:"crispEdges"}),de.createElement("path",{fill:f,d:I,shapeRendering:"crispEdges"}),O)});zse.displayName="QRCodeSVG";var aHe={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"},sHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:aHe}))},lHe=d.forwardRef(sHe),cHe={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"},uHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:cHe}))},dHe=d.forwardRef(uHe),fHe={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"},hHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:fHe}))},pHe=d.forwardRef(hHe),mHe={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"},gHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:mHe}))},vHe=d.forwardRef(gHe),yHe={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"},bHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:yHe}))},SHe=d.forwardRef(bHe),CHe={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"},wHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:CHe}))},xHe=d.forwardRef(wHe),EHe={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"},_He=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:EHe}))},$He=d.forwardRef(_He),PHe={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"},OHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:PHe}))},Hse=d.forwardRef(OHe),MHe={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"},THe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:MHe}))},RHe=d.forwardRef(THe),IHe={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"},kHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:IHe}))},NHe=d.forwardRef(kHe),AHe={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"},DHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:AHe}))},jHe=d.forwardRef(DHe),FHe={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"},LHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:FHe}))},BHe=d.forwardRef(LHe),zHe={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"},HHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:zHe}))},UHe=d.forwardRef(HHe),WHe={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"},VHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:WHe}))},KHe=d.forwardRef(VHe),qHe={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"},GHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:qHe}))},YHe=d.forwardRef(GHe),XHe={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"},QHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:XHe}))},Wp=d.forwardRef(QHe),JHe={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"},ZHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:JHe}))},eUe=d.forwardRef(ZHe),tUe={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"},nUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:tUe}))},vy=d.forwardRef(nUe),rUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},oUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:rUe}))},lg=d.forwardRef(oUe),iUe={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"},aUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:iUe}))},sUe=d.forwardRef(aUe),lUe={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"},cUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:lUe}))},lS=d.forwardRef(cUe),uUe={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"},dUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:uUe}))},fUe=d.forwardRef(dUe),hUe={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"},pUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:hUe}))},mUe=d.forwardRef(pUe),gUe={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"},vUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:gUe}))},yUe=d.forwardRef(vUe),bUe={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"},SUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:bUe}))},Use=d.forwardRef(SUe),CUe={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"},wUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:CUe}))},xUe=d.forwardRef(wUe),EUe={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"},_Ue=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:EUe}))},$Ue=d.forwardRef(_Ue),PUe={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"},OUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:PUe}))},Wse=d.forwardRef(OUe),MUe={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"},TUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:MUe}))},RUe=d.forwardRef(TUe),IUe={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"},kUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:IUe}))},DD=d.forwardRef(kUe),NUe={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"},AUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:NUe}))},Vse=d.forwardRef(AUe),DUe={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"},jUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:DUe}))},FUe=d.forwardRef(jUe),LUe=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Kse=d.forwardRef(function(e,t){var n=e.className,r=e.component,o=e.viewBox,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=At(e,LUe),f=d.useRef(),h=mc(f,t);k3(!!(r||c),"Should have `component` prop or `children`."),Pne(f);var p=d.useContext(p$),m=p.prefixCls,g=m===void 0?"anticon":m,v=p.rootClassName,b=xe(v,g,Z({},"".concat(g,"-spin"),!!i&&!!r),n),y=xe(Z({},"".concat(g,"-spin"),!!i)),S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=z(z({},oMe),{},{className:y,style:S,viewBox:o});o||delete w.viewBox;var E=function(){return r?d.createElement(r,w,c):c?(k3(!!o||d.Children.count(c)===1&&d.isValidElement(c)&&d.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",Ge({},w,{viewBox:o}),c)):null},C=s;return C===void 0&&l&&(C=-1),d.createElement("span",Ge({role:"img"},u,{ref:h,tabIndex:C,onClick:l,className:b}),E())});Kse.displayName="AntdIcon";var BUe=["type","children"],qse=new Set;function zUe(e){return!!(typeof e=="string"&&e.length&&!qse.has(e))}function cE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(zUe(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){cE(e,t+1)},r.onerror=function(){cE(e,t+1)}),qse.add(n),document.body.appendChild(r)}}function Gse(){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)?cE(t.reverse()):cE([t]));var o=d.forwardRef(function(i,a){var s=i.type,l=i.children,c=At(i,BUe),u=null;return i.type&&(u=d.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),d.createElement(Kse,Ge({},r,c,{ref:a}),u)});return o.displayName="Iconfont",o}const HUe=de.createElement(iu,null);function UUe(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:o,status:i}=e;const a=de.createElement(de.Fragment,null,de.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&de.createElement(Hn,{type:"link",icon:de.createElement(xUe,null),onClick:r},n==null?void 0:n.refresh)),s=de.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:a,loading:HUe,scanned:s};return(o??(f=>l[f.status]))({status:i,locale:n,onRefresh:r})}const WUe=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${_e(n)} ${r} ${o}`,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}}},VUe=e=>({QRCodeMaskBackgroundColor:new Un(e.colorBgContainer).setA(.96).toRgbString()}),KUe=Kn("QRCode",e=>{const t=kn(e,{QRCodeTextColor:e.colorText});return WUe(t)},VUe);var qUe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o;const[,i]=Ho(),{value:a,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:f=i.colorText,errorLevel:h="M",status:p="active",bordered:m=!0,onRefresh:g,style:v,className:b,rootClassName:y,prefixCls:S,bgColor:w="transparent",statusRender:E}=e,C=qUe(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:x}=d.useContext(Yt),_=x("qrcode",S),[P,O,I]=KUe(_),M={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"},T=Jr(C,!0),D=Yn(C,Object.keys(T)),A=Object.assign({value:a,size:c,level:h,bgColor:w,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?M:void 0},T),[j]=zi("QRCode");if(!a)return null;const k=xe(_,b,y,O,I,{[`${_}-borderless`]:!m}),F=Object.assign(Object.assign({backgroundColor:w},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(o=v==null?void 0:v.height)!==null&&o!==void 0?o:c});return P(de.createElement("div",Object.assign({},D,{className:k,style:F}),p!=="active"&&de.createElement("div",{className:`${_}-mask`},de.createElement(UUe,{prefixCls:_,locale:j,status:p,onRefresh:g,statusRender:E})),s==="canvas"?de.createElement(Bse,Object.assign({},A)):de.createElement(zse,Object.assign({},A))))};function GUe(e,t){var n=e.disabled,r=e.prefixCls,o=e.character,i=e.characterRender,a=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,f=e.onHover,h=e.onClick,p=function(E){f(E,a)},m=function(E){h(E,a)},g=function(E){E.keyCode===ut.ENTER&&h(E,a)},v=a+1,b=new Set([r]);l===0&&a===0&&u?b.add("".concat(r,"-focused")):c&&l+.5>=v&&la?"true":"false","aria-posinset":a+1,"aria-setsize":s,tabIndex:n?-1:0},de.createElement("div",{className:"".concat(r,"-first")},y),de.createElement("div",{className:"".concat(r,"-second")},y)));return i&&(S=i(S,e)),S}const YUe=de.forwardRef(GUe);function XUe(){var e=d.useRef({});function t(r){return e.current[r]}function n(r){return function(o){e.current[r]=o}}return[t,n]}function QUe(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 JUe(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=i.clientLeft||o.clientLeft||0,n-=i.clientTop||o.clientTop||0,{left:t,top:n}}function ZUe(e){var t=JUe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=QUe(r),t.left}var eWe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function tWe(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,o=e.className,i=e.defaultValue,a=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,f=e.allowClear,h=f===void 0?!0:f,p=e.keyboard,m=p===void 0?!0:p,g=e.character,v=g===void 0?"★":g,b=e.characterRender,y=e.disabled,S=e.direction,w=S===void 0?"ltr":S,E=e.tabIndex,C=E===void 0?0:E,x=e.autoFocus,_=e.onHoverChange,P=e.onChange,O=e.onFocus,I=e.onBlur,M=e.onKeyDown,T=e.onMouseLeave,D=At(e,eWe),A=XUe(),j=$e(A,2),k=j[0],F=j[1],V=de.useRef(null),W=function(){if(!y){var q;(q=V.current)===null||q===void 0||q.focus()}};de.useImperativeHandle(t,function(){return{focus:W,blur:function(){if(!y){var q;(q=V.current)===null||q===void 0||q.blur()}}}});var K=xn(i||0,{value:a}),L=$e(K,2),Q=L[0],ee=L[1],re=xn(null),ie=$e(re,2),G=ie[0],X=ie[1],ne=function(q,me){var Ce=w==="rtl",ue=q+1;if(u){var Le=k(q),He=ZUe(Le),ge=Le.clientWidth;(Ce&&me-He>ge/2||!Ce&&me-He0&&!Ce||me===ut.RIGHT&&Q>0&&Ce?(le(Q-ue),q.preventDefault()):me===ut.LEFT&&Q{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:`${_e(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"}}}},oWe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),iWe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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)"}}}),rWe(e)),oWe(e))}},aWe=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),sWe=Kn("Rate",e=>{const t=kn(e,{});return[iWe(t)]},aWe);var lWe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,tooltips:a,character:s=d.createElement(RUe,null),disabled:l}=e,c=lWe(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(E,C)=>{let{index:x}=C;return a?d.createElement(xa,{title:a[x]},E):E},{getPrefixCls:f,direction:h,rate:p}=d.useContext(Yt),m=f("rate",n),[g,v,b]=sWe(m),y=Object.assign(Object.assign({},p==null?void 0:p.style),i),S=d.useContext(zo),w=l??S;return g(d.createElement(nWe,Object.assign({ref:t,character:s,characterRender:u,disabled:w},c,{className:xe(r,o,v,b,p==null?void 0:p.className),style:y,prefixCls:m,direction:h})))}),cWe=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("defs",null,d.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .012)"},d.createElement("mask",{fill:"#fff"}),d.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)"})),d.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"}),d.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),d.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),d.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"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),uWe=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("defs",null,d.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),d.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .067)"},d.createElement("mask",{fill:"#fff"}),d.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)"})),d.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"}),d.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),d.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.createElement("mask",{fill:"#fff"}),d.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),d.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)"}),d.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)"}),d.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)"}),d.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)"}),d.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)"}),d.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)"}),d.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.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)"}),d.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)"}),d.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)"}))),dWe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${_e(e.calc(s).mul(2).equal())} ${_e(i)}`,"&-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:`${_e(s)} ${_e(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},fWe=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}}},hWe=e=>[dWe(e),fWe(e)],pWe=e=>hWe(e),mWe=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),gWe=Kn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,i=kn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[pWe(i)]},mWe),vWe=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.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"}),d.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"}),d.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}))),yWe={success:Lp,error:ru,info:Df,warning:FUe},cS={404:cWe,500:uWe,403:vWe},bWe=Object.keys(cS),SWe=e=>{let{prefixCls:t,icon:n,status:r}=e;const o=xe(`${t}-icon`);if(bWe.includes(`${r}`)){const a=cS[r];return d.createElement("div",{className:`${o} ${t}-image`},d.createElement(a,null))}const i=d.createElement(yWe[r]);return n===null||n===!1?null:d.createElement("div",{className:o},n||i)},CWe=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},uS=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:o,title:i,style:a,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:h,result:p}=d.useContext(Yt),m=f("result",t),[g,v,b]=gWe(m),y=xe(m,`${m}-${l}`,n,p==null?void 0:p.className,r,{[`${m}-rtl`]:h==="rtl"},v,b),S=Object.assign(Object.assign({},p==null?void 0:p.style),a);return g(d.createElement("div",{className:y,style:S},d.createElement(SWe,{prefixCls:m,status:l,icon:c}),d.createElement("div",{className:`${m}-title`},i),o&&d.createElement("div",{className:`${m}-subtitle`},o),d.createElement(CWe,{prefixCls:m,extra:u}),s&&d.createElement("div",{className:`${m}-content`},s)))};uS.PRESENTED_IMAGE_403=cS[403];uS.PRESENTED_IMAGE_404=cS[404];uS.PRESENTED_IMAGE_500=cS[500];var wWe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Xse=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,h=e.onClick,p=e.onChange,m=e.onKeyDown,g=At(e,wWe),v=xn(!1,{value:a,defaultValue:s}),b=$e(v,2),y=b[0],S=b[1];function w(_,P){var O=y;return l||(O=_,S(O),p==null||p(O,P)),O}function E(_){_.which===ut.LEFT?w(!1,_):_.which===ut.RIGHT&&w(!0,_),m==null||m(_)}function C(_){var P=w(!y,_);h==null||h(P,_)}var x=xe(o,i,(n={},Z(n,"".concat(o,"-checked"),y),Z(n,"".concat(o,"-disabled"),l),n));return d.createElement("button",Ge({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:x,ref:t,onKeyDown:E,onClick:C}),c,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},u),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Xse.displayName="Switch";const xWe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=_e(l(s).add(l(r).mul(2)).equal()),f=_e(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:_e(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${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:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${_e(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()}}}}}}},EWe=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}}}},_We=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${_e(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},$We=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=_e(s(a).add(s(r).mul(2)).equal()),u=_e(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,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:o,paddingInlineEnd:i,[`${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()}}}}}},PWe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:_e(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}}),Ka(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"}})}},OWe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=2,l=i-s*2,c=a-s*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Un("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},MWe=Kn("Switch",e=>{const t=kn(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[PWe(t),$We(t),_We(t),EWe(t),xWe(t)]},OWe);var TWe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:h,onChange:p}=e,m=TWe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=xn(!1,{value:c??u,defaultValue:f??h}),{getPrefixCls:b,direction:y,switch:S}=d.useContext(Yt),w=d.useContext(zo),E=(o??w)||i,C=b("switch",n),x=d.createElement("div",{className:`${C}-handle`},i&&d.createElement(Gc,{className:`${C}-loading-icon`})),[_,P,O]=MWe(C),I=Eo(r),M=xe(S==null?void 0:S.className,{[`${C}-small`]:I==="small",[`${C}-loading`]:i,[`${C}-rtl`]:y==="rtl"},a,s,P,O),T=Object.assign(Object.assign({},S==null?void 0:S.style),l),D=function(){v(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return _(d.createElement(H1,{component:"Switch"},d.createElement(Xse,Object.assign({},m,{checked:g,onChange:D,prefixCls:C,className:M,style:T,disabled:E,ref:t,loadingIcon:x}))))}),uE=RWe;uE.__ANT_SWITCH=!0;var Ou={},dS="rc-table-internal-hook";function jD(e){var t=d.createContext(void 0),n=function(o){var i=o.value,a=o.children,s=d.useRef(i);s.current=i;var l=d.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=$e(l,1),u=c[0];return Zn(function(){_i.unstable_batchedUpdates(function(){u.listeners.forEach(function(f){f(i)})})},[i]),d.createElement(t.Provider,{value:u},a)};return{Context:t,Provider:n,defaultValue:e}}function ji(e,t){var n=An(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var h={};return t.forEach(function(p){h[p]=f[p]}),h}),r=d.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,s=d.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var l=d.useState({}),c=$e(l,2),u=c[1];return Zn(function(){if(!r)return;function f(h){var p=n(h);dl(s.current,p,!0)||u({})}return i.add(f),function(){i.delete(f)}},[r]),s.current}function IWe(){var e=d.createContext(null);function t(){return d.useContext(e)}function n(o,i){var a=tc(o),s=function(c,u){var f=a?{ref:u}:{},h=d.useRef(0),p=d.useRef(c),m=t();return m!==null?d.createElement(o,Ge({},c,f)):((!i||i(p.current,c))&&(h.current+=1),p.current=c,d.createElement(e.Provider,{value:h.current},d.createElement(o,Ge({},c,f))))};return a?d.forwardRef(s):s}function r(o,i){var a=tc(o),s=function(c,u){var f=a?{ref:u}:{};return t(),d.createElement(o,Ge({},c,f))};return a?d.memo(d.forwardRef(s),i):d.memo(s,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var FD=IWe(),Qse=FD.makeImmutable,Lv=FD.responseImmutable,kWe=FD.useImmutableMark,Oa=jD(),Jse=d.createContext({renderWithProps:!1}),NWe="RC_TABLE_KEY";function AWe(e){return e==null?[]:Array.isArray(e)?e:[e]}function mP(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,s=i||AWe(a).join("-")||NWe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function C6(e){return e!=null}function DWe(e){return typeof e=="number"&&!Number.isNaN(e)}function jWe(e){return e&&Ht(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function FWe(e,t,n,r,o,i){var a=d.useContext(Jse),s=kWe(),l=ed(function(){if(C6(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Mo(e,c),f=u,h=void 0;if(o){var p=o(u,e,n);jWe(p)?(f=p.children,h=p.props,a.renderWithProps=!0):f=p}return[f,h]},[s,e,r,t,o,n],function(c,u){if(i){var f=$e(c,2),h=f[1],p=$e(u,2),m=p[1];return i(m,h)}return a.renderWithProps?!0:!dl(c,u,!0)});return l}function LWe(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function BWe(e,t){return ji(Oa,function(n){var r=LWe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var zWe=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():d.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function HWe(e){var t,n,r,o,i,a,s,l,c=e.component,u=e.children,f=e.ellipsis,h=e.scope,p=e.prefixCls,m=e.className,g=e.align,v=e.record,b=e.render,y=e.dataIndex,S=e.renderIndex,w=e.shouldCellUpdate,E=e.index,C=e.rowType,x=e.colSpan,_=e.rowSpan,P=e.fixLeft,O=e.fixRight,I=e.firstFixLeft,M=e.lastFixLeft,T=e.firstFixRight,D=e.lastFixRight,A=e.appendNode,j=e.additionalProps,k=j===void 0?{}:j,F=e.isSticky,V="".concat(p,"-cell"),W=ji(Oa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=W.supportSticky,L=W.allColumnsFixedLeft,Q=W.rowHoverable,ee=FWe(v,y,S,u,b,w),re=$e(ee,2),ie=re[0],G=re[1],X={},ne=typeof P=="number"&&K,le=typeof O=="number"&&K;ne&&(X.position="sticky",X.left=P),le&&(X.position="sticky",X.right=O);var ce=(t=(n=(r=G==null?void 0:G.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:x)!==null&&t!==void 0?t:1,oe=(o=(i=(a=G==null?void 0:G.rowSpan)!==null&&a!==void 0?a:k.rowSpan)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:1,se=BWe(E,oe),fe=$e(se,2),te=fe[0],he=fe[1],pe=An(function(Pe){var Ne;v&&he(E,E+oe-1),k==null||(Ne=k.onMouseEnter)===null||Ne===void 0||Ne.call(k,Pe)}),Oe=An(function(Pe){var Ne;v&&he(-1,-1),k==null||(Ne=k.onMouseLeave)===null||Ne===void 0||Ne.call(k,Pe)});if(ce===0||oe===0)return null;var Me=(s=k.title)!==null&&s!==void 0?s:zWe({rowType:C,ellipsis:f,children:ie}),Se=xe(V,m,(l={},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(l,"".concat(V,"-fix-left"),ne&&K),"".concat(V,"-fix-left-first"),I&&K),"".concat(V,"-fix-left-last"),M&&K),"".concat(V,"-fix-left-all"),M&&L&&K),"".concat(V,"-fix-right"),le&&K),"".concat(V,"-fix-right-first"),T&&K),"".concat(V,"-fix-right-last"),D&&K),"".concat(V,"-ellipsis"),f),"".concat(V,"-with-append"),A),"".concat(V,"-fix-sticky"),(ne||le)&&F&&K),Z(l,"".concat(V,"-row-hover"),!G&&te)),k.className,G==null?void 0:G.className),ye={};g&&(ye.textAlign=g);var ve=z(z(z(z({},G==null?void 0:G.style),X),ye),k.style),be=ie;return Ht(be)==="object"&&!Array.isArray(be)&&!d.isValidElement(be)&&(be=null),f&&(M||T)&&(be=d.createElement("span",{className:"".concat(V,"-content")},be)),d.createElement(c,Ge({},G,k,{className:Se,style:ve,title:Me,scope:h,onMouseEnter:Q?pe:void 0,onMouseLeave:Q?Oe:void 0,colSpan:ce!==1?ce:null,rowSpan:oe!==1?oe:null}),A,be)}const Bv=d.memo(HWe);function LD(e,t,n,r,o){var i=n[e]||{},a=n[t]||{},s,l;i.fixed==="left"?s=r.left[o==="rtl"?t:e]:a.fixed==="right"&&(l=r.right[o==="rtl"?e:t]);var c=!1,u=!1,f=!1,h=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every(function(w){return w.fixed==="left"});if(o==="rtl"){if(s!==void 0){var v=m&&m.fixed==="left";h=!v&&g}else if(l!==void 0){var b=p&&p.fixed==="right";f=!b&&g}}else if(s!==void 0){var y=p&&p.fixed==="left";c=!y&&g}else if(l!==void 0){var S=m&&m.fixed==="right";u=!S&&g}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:f,firstFixLeft:h,isSticky:r.isSticky}}var Zse=d.createContext({});function UWe(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,s=e.align,l=ji(Oa,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,f=d.useContext(Zse),h=f.scrollColumnIndex,p=f.stickyOffsets,m=f.flattenColumns,g=n+i-1,v=g+1===h?i+1:i,b=LD(n,n+v-1,m,p,u);return d.createElement(Bv,Ge({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:a,render:function(){return r}},b))}var WWe=["children"];function VWe(e){var t=e.children,n=At(e,WWe);return d.createElement("tr",n,t)}function gP(e){var t=e.children;return t}gP.Row=VWe;gP.Cell=UWe;function KWe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=ji(Oa,"prefixCls"),i=r.length-1,a=r[i],s=d.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?i:null}},[a,r,i,n]);return d.createElement(Zse.Provider,{value:s},d.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const QC=Lv(KWe);var ele=gP;function qWe(e){return null}function GWe(e){return null}function tle(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var s=i(t),l=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c1?I-1:0),T=1;T=1)),style:z(z({},n),b==null?void 0:b.style)}),m.map(function(P,O){var I=P.render,M=P.dataIndex,T=P.className,D=ale(h,P,O,l,o),A=D.key,j=D.fixedInfo,k=D.appendCellNode,F=D.additionalCellProps;return d.createElement(Bv,Ge({className:T,ellipsis:P.ellipsis,align:P.align,scope:P.rowScope,component:P.rowScope?f:u,prefixCls:p,key:A,record:r,index:o,renderIndex:i,dataIndex:M,render:I,shouldCellUpdate:P.shouldCellUpdate},j,{appendNode:k,additionalProps:F}))})),x;if(S&&(w.current||y)){var _=v(r,o,l+1,y);x=d.createElement(ole,{expanded:y,className:xe("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(l+1),E),prefixCls:p,component:c,cellComponent:u,colSpan:m.length,isEmpty:!1},_)}return d.createElement(d.Fragment,null,C,x)}const JWe=Lv(QWe);function ZWe(e){var t=e.columnKey,n=e.onColumnResize,r=d.useRef();return d.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),d.createElement(Oi,{data:t},d.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function eVe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},d.createElement(Oi.Collection,{onBatchResize:function(i){i.forEach(function(a){var s=a.data,l=a.size;r(s,l.offsetWidth)})}},n.map(function(o){return d.createElement(ZWe,{key:o,columnKey:o,onColumnResize:r})})))}function tVe(e){var t=e.data,n=e.measureColumnWidth,r=ji(Oa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,f=r.emptyNode,h=nle(t,u,c,l),p=d.useRef({renderWithProps:!1}),m=i(["body","wrapper"],"tbody"),g=i(["body","row"],"tr"),v=i(["body","cell"],"td"),b=i(["body","cell"],"th"),y;t.length?y=h.map(function(w,E){var C=w.record,x=w.indent,_=w.index,P=l(C,E);return d.createElement(JWe,{key:P,rowKey:P,record:C,index:E,renderIndex:_,rowComponent:g,cellComponent:v,scopeCellComponent:b,indent:x})}):y=d.createElement(ole,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:g,cellComponent:v,colSpan:s.length,isEmpty:!0},f);var S=mP(s);return d.createElement(Jse.Provider,{value:p.current},d.createElement(m,{className:"".concat(o,"-tbody")},n&&d.createElement(eVe,{prefixCls:o,columnsKey:S,onColumnResize:a}),y))}const nVe=Lv(tVe);var rVe=["expandable"],Ky="RC_TABLE_INTERNAL_COL_DEFINE";function oVe(e){var t=e.expandable,n=At(e,rVe),r;return"expandable"in e?r=z(z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var iVe=["columnType"];function sle(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=ji(Oa,["tableLayout"]),i=o.tableLayout,a=[],s=r||n.length,l=!1,c=s-1;c>=0;c-=1){var u=t[c],f=n&&n[c],h=void 0,p=void 0;if(f&&(h=f[Ky],i==="auto"&&(p=f.minWidth)),u||p||h||l){var m=h||{};m.columnType;var g=At(m,iVe);a.unshift(d.createElement("col",Ge({key:c,style:{width:u,minWidth:p}},g))),l=!0}}return d.createElement("colgroup",null,a)}var aVe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function sVe(e,t){return d.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:a,prefixCls:u,key:p[g]},b,{additionalProps:y,rowType:"header"}))}))};function uVe(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(f){var h={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},p=1,m=f.children;return m&&m.length>0&&(p=n(m,c,l+1).reduce(function(g,v){return g+v},0),h.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(h.rowSpan=f.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,o=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function fVe(e,t,n){return d.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(h){var p=XU(t,h.width);p?r+=p:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),s=o,l=a/o,c=0,u=e.map(function(h){var p=z({},h),m=XU(t,p.width);if(m)p.width=m;else{var g=Math.floor(l);p.width=s===1?a:g,a-=g,s-=1}return c+=p.width,p});if(c0?z(z({},t),{},{children:lle(n)}):t})}function w6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Ht(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,s="".concat(t,"-").concat(o),l=r.children;return l&&l.length>0?[].concat(Ze(n),Ze(w6(l,s).map(function(c){return z({fixed:a},c)}))):[].concat(Ze(n),[z(z({key:s},r),{},{fixed:a})])},[])}function mVe(e){return e.map(function(t){var n=t.fixed,r=At(t,pVe),o=n;return n==="left"?o="right":n==="right"&&(o="left"),z({fixed:o},r)})}function gVe(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,h=e.expandIconColumnIndex,p=e.direction,m=e.expandRowByClick,g=e.columnWidth,v=e.fixed,b=e.scrollWidth,y=e.clientWidth,S=d.useMemo(function(){var M=r||BD(o)||[];return lle(M.slice())},[r,o]),w=d.useMemo(function(){if(i){var M=S.slice();if(!M.includes(Ou)){var T=h||0;T>=0&&(T||v==="left"||!v)&&M.splice(T,0,Ou),v==="right"&&M.splice(S.length,0,Ou)}var D=M.indexOf(Ou);M=M.filter(function(F,V){return F!==Ou||V===D});var A=S[D],j;v?j=v:j=A?A.fixed:null;var k=Z(Z(Z(Z(Z(Z({},Ky,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",j),"className","".concat(n,"-row-expand-icon-cell")),"width",g),"render",function(V,W,K){var L=l(W,K),Q=a.has(L),ee=f?f(W):!0,re=u({prefixCls:n,expanded:Q,expandable:ee,record:W,onExpand:c});return m?d.createElement("span",{onClick:function(G){return G.stopPropagation()}},re):re});return M.map(function(F){return F===Ou?k:F})}return S.filter(function(F){return F!==Ou})},[i,S,l,a,u,p]),E=d.useMemo(function(){var M=w;return t&&(M=t(M)),M.length||(M=[{render:function(){return null}}]),M},[t,w,p]),C=d.useMemo(function(){return p==="rtl"?mVe(w6(E)):w6(E)},[E,p,b]),x=d.useMemo(function(){for(var M=-1,T=C.length-1;T>=0;T-=1){var D=C[T].fixed;if(D==="left"||D===!0){M=T;break}}if(M>=0)for(var A=0;A<=M;A+=1){var j=C[A].fixed;if(j!=="left"&&j!==!0)return!0}var k=C.findIndex(function(W){var K=W.fixed;return K==="right"});if(k>=0)for(var F=k;F=k-s?y(function(F){return z(z({},F),{},{isHiddenScrollBar:!0})}):y(function(F){return z(z({},F),{},{isHiddenScrollBar:!1})})}})},T=function(A){y(function(j){return z(z({},j),{},{scrollLeft:A/f*h||0})})};return d.useImperativeHandle(n,function(){return{setScrollLeft:T,checkScrollBarVisible:M}}),d.useEffect(function(){var D=jc(document.body,"mouseup",P,!1),A=jc(document.body,"mousemove",I,!1);return M(),function(){D.remove(),A.remove()}},[p,C]),d.useEffect(function(){var D=jc(l,"scroll",M,!1),A=jc(window,"resize",M,!1);return function(){D.remove(),A.remove()}},[l]),d.useEffect(function(){b.isHiddenScrollBar||y(function(D){var A=i.current;return A?z(z({},D),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):D})},[b.isHiddenScrollBar]),f<=h||!p||b.isHiddenScrollBar?null:d.createElement("div",{style:{height:wz(),width:h,bottom:s},className:"".concat(u,"-sticky-scroll")},d.createElement("div",{onMouseDown:O,ref:m,className:xe("".concat(u,"-sticky-scroll-bar"),Z({},"".concat(u,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const EVe=d.forwardRef(xVe);var ule="rc-table",_Ve=[],$Ve={};function PVe(){return"No Data"}function OVe(e,t){var n=z({rowKey:"key",prefixCls:ule,emptyText:PVe},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,f=n.direction,h=n.title,p=n.footer,m=n.summary,g=n.caption,v=n.id,b=n.showHeader,y=n.components,S=n.emptyText,w=n.onRow,E=n.onHeaderRow,C=n.onScroll,x=n.internalHooks,_=n.transformColumns,P=n.internalRefs,O=n.tailor,I=n.getContainerWidth,M=n.sticky,T=n.rowHoverable,D=T===void 0?!0:T,A=s||_Ve,j=!!A.length,k=x===dS,F=d.useCallback(function(Fn,rn){return Mo(y,Fn)||rn},[y]),V=d.useMemo(function(){return typeof l=="function"?l:function(Fn){var rn=Fn&&Fn[l];return rn}},[l]),W=F(["body"]),K=SVe(),L=$e(K,3),Q=L[0],ee=L[1],re=L[2],ie=vVe(n,A,V),G=$e(ie,6),X=G[0],ne=G[1],le=G[2],ce=G[3],oe=G[4],se=G[5],fe=c==null?void 0:c.x,te=d.useState(0),he=$e(te,2),pe=he[0],Oe=he[1],Me=gVe(z(z(z({},n),X),{},{expandable:!!X.expandedRowRender,columnTitle:X.columnTitle,expandedKeys:le,getRowKey:V,onTriggerExpand:se,expandIcon:ce,expandIconColumnIndex:X.expandIconColumnIndex,direction:f,scrollWidth:k&&O&&typeof fe=="number"?fe:null,clientWidth:pe}),k?_:null),Se=$e(Me,4),ye=Se[0],ve=Se[1],be=Se[2],Pe=Se[3],Ne=be??fe,U=d.useMemo(function(){return{columns:ye,flattenColumns:ve}},[ye,ve]),H=d.useRef(),q=d.useRef(),me=d.useRef(),Ce=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:H.current,scrollTo:function(rn){var fn;if(me.current instanceof HTMLElement){var Sn=rn.index,Dn=rn.top,cr=rn.key;if(DWe(Dn)){var Uo;(Uo=me.current)===null||Uo===void 0||Uo.scrollTo({top:Dn})}else{var si,Ar=cr??V(A[Sn]);(si=me.current.querySelector('[data-row-key="'.concat(Ar,'"]')))===null||si===void 0||si.scrollIntoView()}}else(fn=me.current)!==null&&fn!==void 0&&fn.scrollTo&&me.current.scrollTo(rn)}}});var ue=d.useRef(),Le=d.useState(!1),He=$e(Le,2),ge=He[0],De=He[1],qe=d.useState(!1),Fe=$e(qe,2),Ke=Fe[0],Ue=Fe[1],Ve=cle(new Map),Tt=$e(Ve,2),et=Tt[0],st=Tt[1],yt=mP(ve),gt=yt.map(function(Fn){return et.get(Fn)}),Lt=d.useMemo(function(){return gt},[gt.join("_")]),St=wVe(Lt,ve,f),wt=c&&C6(c.y),Nt=c&&C6(Ne)||!!X.fixed,Be=Nt&&ve.some(function(Fn){var rn=Fn.fixed;return rn}),We=d.useRef(),je=CVe(M,r),Xe=je.isSticky,pt=je.offsetHeader,vt=je.offsetSummary,Mt=je.offsetScroll,Et=je.stickyClassName,ft=je.container,dt=d.useMemo(function(){return m==null?void 0:m(A)},[m,A]),Rt=(wt||Xe)&&d.isValidElement(dt)&&dt.type===gP&&dt.props.fixed,Ct,Wt,at;wt&&(Wt={overflowY:j?"scroll":"auto",maxHeight:c.y}),Nt&&(Ct={overflowX:"auto"},wt||(Wt={overflowY:"hidden"}),at={width:Ne===!0?"auto":Ne,minWidth:"100%"});var $t=d.useCallback(function(Fn,rn){Ov(H.current)&&st(function(fn){if(fn.get(Fn)!==rn){var Sn=new Map(fn);return Sn.set(Fn,rn),Sn}return fn})},[]),Bt=bVe(),xt=$e(Bt,2),bt=xt[0],Ft=xt[1];function Re(Fn,rn){rn&&(typeof rn=="function"?rn(Fn):rn.scrollLeft!==Fn&&(rn.scrollLeft=Fn,rn.scrollLeft!==Fn&&setTimeout(function(){rn.scrollLeft=Fn},0)))}var It=An(function(Fn){var rn=Fn.currentTarget,fn=Fn.scrollLeft,Sn=f==="rtl",Dn=typeof fn=="number"?fn:rn.scrollLeft,cr=rn||$Ve;if(!Ft()||Ft()===cr){var Uo;bt(cr),Re(Dn,q.current),Re(Dn,me.current),Re(Dn,ue.current),Re(Dn,(Uo=We.current)===null||Uo===void 0?void 0:Uo.setScrollLeft)}var si=rn||q.current;if(si){var Ar=k&&O&&typeof Ne=="number"?Ne:si.scrollWidth,li=si.clientWidth;if(Ar===li){De(!1),Ue(!1);return}Sn?(De(-Dn0)):(De(Dn>0),Ue(Dn1?v-D:0,j=z(z(z({},_),c),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:A,pointerEvents:"auto"}),k=d.useMemo(function(){return f?M<=1:O===0||M===0||M>1},[M,O,f]);k?j.visibility="hidden":f&&(j.height=h==null?void 0:h(M));var F=k?function(){return null}:p,V={};return(M===0||O===0)&&(V.rowSpan=1,V.colSpan=1),d.createElement(Bv,Ge({className:xe(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:w,record:l,index:i,renderIndex:s,dataIndex:m,render:F,shouldCellUpdate:n.shouldCellUpdate},E,{appendNode:C,additionalProps:z(z({},x),{},{style:j},V)}))}var IVe=["data","index","className","rowKey","style","extra","getHeight"],kVe=d.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,s=e.extra,l=e.getHeight,c=At(e,IVe),u=n.record,f=n.indent,h=n.index,p=ji(Oa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=p.scrollX,g=p.flattenColumns,v=p.prefixCls,b=p.fixColumn,y=p.componentWidth,S=ji(zD,["getComponent"]),w=S.getComponent,E=rle(u,i,r,f),C=w(["body","row"],"div"),x=w(["body","cell"],"div"),_=E.rowSupportExpand,P=E.expanded,O=E.rowProps,I=E.expandedRowRender,M=E.expandedRowClassName,T;if(_&&P){var D=I(u,r,f+1,P),A=ile(M,u,r,f),j={};b&&(j={style:Z({},"--virtual-width","".concat(y,"px"))});var k="".concat(v,"-expanded-row-cell");T=d.createElement(C,{className:xe("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),A)},d.createElement(Bv,{component:x,prefixCls:v,className:xe(k,Z({},"".concat(k,"-fixed"),b)),additionalProps:j},D))}var F=z(z({},a),{},{width:m});s&&(F.position="absolute",F.pointerEvents="none");var V=d.createElement(C,Ge({},O,c,{"data-row-key":i,ref:_?null:t,className:xe(o,"".concat(v,"-row"),O==null?void 0:O.className,Z({},"".concat(v,"-row-extra"),s)),style:z(z({},F),O==null?void 0:O.style)}),g.map(function(W,K){return d.createElement(RVe,{key:K,component:x,rowInfo:E,column:W,colIndex:K,indent:f,index:r,renderIndex:h,record:u,inverse:s,getHeight:l})}));return _?d.createElement("div",{ref:t},V,T):V}),eW=Lv(kVe),NVe=d.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=ji(Oa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,a=o.onColumnResize,s=o.getRowKey,l=o.expandedKeys,c=o.prefixCls,u=o.childrenColumnName,f=o.scrollX,h=o.direction,p=ji(zD),m=p.sticky,g=p.scrollY,v=p.listItemHeight,b=p.getComponent,y=p.onScroll,S=d.useRef(),w=nle(n,u,l,s),E=d.useMemo(function(){var T=0;return i.map(function(D){var A=D.width,j=D.key;return T+=A,[j,A,T]})},[i]),C=d.useMemo(function(){return E.map(function(T){return T[2]})},[E]);d.useEffect(function(){E.forEach(function(T){var D=$e(T,2),A=D[0],j=D[1];a(A,j)})},[E]),d.useImperativeHandle(t,function(){var T,D={scrollTo:function(j){var k;(k=S.current)===null||k===void 0||k.scrollTo(j)},nativeElement:(T=S.current)===null||T===void 0?void 0:T.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var j;return((j=S.current)===null||j===void 0?void 0:j.getScrollInfo().x)||0},set:function(j){var k;(k=S.current)===null||k===void 0||k.scrollTo({left:j})}}),D});var x=function(D,A){var j,k=(j=w[A])===null||j===void 0?void 0:j.record,F=D.onCell;if(F){var V,W=F(k,A);return(V=W==null?void 0:W.rowSpan)!==null&&V!==void 0?V:1}return 1},_=function(D){var A=D.start,j=D.end,k=D.getSize,F=D.offsetY;if(j<0)return null;for(var V=i.filter(function(ce){return x(ce,A)===0}),W=A,K=function(oe){if(V=V.filter(function(se){return x(se,oe)===0}),!V.length)return W=oe,1},L=A;L>=0&&!K(L);L-=1);for(var Q=i.filter(function(ce){return x(ce,j)!==1}),ee=j,re=function(oe){if(Q=Q.filter(function(se){return x(se,oe)!==1}),!Q.length)return ee=Math.max(oe-1,j),1},ie=j;ie1})&&G.push(oe)},ne=W;ne<=ee;ne+=1)X(ne);var le=G.map(function(ce){var oe=w[ce],se=s(oe.record,ce),fe=function(pe){var Oe=ce+pe-1,Me=s(w[Oe].record,Oe),Se=k(se,Me);return Se.bottom-Se.top},te=k(se);return d.createElement(eW,{key:ce,data:oe,rowKey:se,index:ce,style:{top:-F+te.top},extra:!0,getHeight:fe})});return le},P=d.useMemo(function(){return{columnsOffset:C}},[C]),O="".concat(c,"-tbody"),I=b(["body","wrapper"]),M={};return m&&(M.position="sticky",M.bottom=0,Ht(m)==="object"&&m.offsetScroll&&(M.bottom=m.offsetScroll)),d.createElement(fle.Provider,{value:P},d.createElement(B$,{fullHeight:!1,ref:S,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:M},className:O,height:g,itemHeight:v||24,data:w,itemKey:function(D){return s(D.record)},component:I,scrollWidth:f,direction:h,onVirtualScroll:function(D){var A,j=D.x;r({currentTarget:(A=S.current)===null||A===void 0?void 0:A.nativeElement,scrollLeft:j})},onScroll:y,extraRender:_},function(T,D,A){var j=s(T.record,D);return d.createElement(eW,{data:T,rowKey:j,index:D,style:A.style})}))}),AVe=Lv(NVe),DVe=function(t,n){var r=n.ref,o=n.onScroll;return d.createElement(AVe,{ref:r,data:t,onScroll:o})};function jVe(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,a=e.prefixCls,s=a===void 0?ule:a,l=e.className,c=e.listItemHeight,u=e.components,f=e.onScroll,h=o||{},p=h.x,m=h.y;typeof p!="number"&&(p=1),typeof m!="number"&&(m=500);var g=An(function(y,S){return Mo(u,y)||S}),v=An(f),b=d.useMemo(function(){return{sticky:i,scrollY:m,listItemHeight:c,getComponent:g,onScroll:v}},[i,m,c,g,v]);return d.createElement(zD.Provider,{value:b},d.createElement(zv,Ge({},e,{className:xe(l,"".concat(s,"-virtual")),scroll:z(z({},o),{},{x:p}),components:z(z({},u),{},{body:n!=null&&n.length?DVe:void 0}),columns:r,internalHooks:dS,tailor:!0,ref:t})))}var FVe=d.forwardRef(jVe);function hle(e){return Qse(FVe,e)}hle();const LVe=e=>null,BVe=e=>null;var HD=d.createContext(null),ple=d.createContext({}),zVe=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function Cu(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function UD(e){return e.split("-")}function VVe(e,t){var n=[],r=La(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var s=a.key,l=a.children;n.push(s),o(l)})}return o(r.children),n}function KVe(e){if(e.parent){var t=UD(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function qVe(e){var t=UD(e.pos);return Number(t[t.length-1])===0}function rW(e,t,n,r,o,i,a,s,l,c){var u,f=e.clientX,h=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,v=(c==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),b=(v-12)/r,y=l.filter(function(j){var k;return(k=s[j])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),S=La(s,n.eventKey);if(h-1.5?i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1:i({dragNode:T,dropNode:D,dropPosition:0})?O=0:i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1:i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1,{dropPosition:O,dropLevelOffset:I,dropTargetKey:S.key,dropTargetPos:S.pos,dragOverNodeKey:P,dropContainerKey:O===0?null:((u=S.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:A}}function oW(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function hR(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ht(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return yr(!1,"`checkedKeys` is not an array or an object"),null;return t}function x6(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=La(t,o);if(i){n.add(o);var a=i.parent,s=i.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Ze(n)}function GVe(e){const[t,n]=d.useState(null);return[d.useCallback((i,a,s)=>{const l=t??i,c=Math.min(l||0,i),u=Math.max(l||0,i),f=a.slice(c,u+1).map(m=>e(m)),h=f.some(m=>!s.has(m)),p=[];return f.forEach(m=>{h?(s.has(m)||p.push(m),s.add(m)):(s.delete(m),p.push(m))}),n(h?u:null),p},[t]),i=>{n(i)}]}const Nd={},E6="SELECT_ALL",_6="SELECT_INVERT",$6="SELECT_NONE",iW=[],mle=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ze(n),Ze(mle(e,r[e]))))}),n},YVe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:f,columnWidth:h,type:p,selections:m,fixed:g,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:S,data:w,pageData:E,getRecordByKey:C,getRowKey:x,expandType:_,childrenColumnName:P,locale:O,getPopupContainer:I}=e,M=nu(),[T,D]=GVe(ce=>ce),[A,j]=xn(r||o||iW,{value:r}),k=d.useRef(new Map),F=d.useCallback(ce=>{if(n){const oe=new Map;ce.forEach(se=>{let fe=C(se);!fe&&k.current.has(se)&&(fe=k.current.get(se)),oe.set(se,fe)}),k.current=oe}},[C,n]);d.useEffect(()=>{F(A)},[A]);const V=d.useMemo(()=>mle(P,E),[P,E]),{keyEntities:W}=d.useMemo(()=>{if(y)return{keyEntities:null};let ce=w;if(n){const oe=new Set(V.map((fe,te)=>x(fe,te))),se=Array.from(k.current).reduce((fe,te)=>{let[he,pe]=te;return oe.has(he)?fe:fe.concat(pe)},[]);ce=[].concat(Ze(ce),Ze(se))}return oS(ce,{externalGetKey:x,childrenPropName:P})},[w,x,y,P,n,V]),K=d.useMemo(()=>{const ce=new Map;return V.forEach((oe,se)=>{const fe=x(oe,se),te=(i?i(oe):null)||{};ce.set(fe,te)}),ce},[V,x,i]),L=d.useCallback(ce=>{const oe=x(ce);let se;return K.has(oe)?se=K.get(x(ce)):se=i?i(ce):void 0,!!(se!=null&&se.disabled)},[K,x]),[Q,ee]=d.useMemo(()=>{if(y)return[A||[],[]];const{checkedKeys:ce,halfCheckedKeys:oe}=il(A,!0,W,L);return[ce||[],oe]},[A,y,W,L]),re=d.useMemo(()=>{const ce=p==="radio"?Q.slice(0,1):Q;return new Set(ce)},[Q,p]),ie=d.useMemo(()=>p==="radio"?new Set:new Set(ee),[ee,p]);d.useEffect(()=>{t||j(iW)},[!!t]);const G=d.useCallback((ce,oe)=>{let se,fe;F(ce),n?(se=ce,fe=ce.map(te=>k.current.get(te))):(se=[],fe=[],ce.forEach(te=>{const he=C(te);he!==void 0&&(se.push(te),fe.push(he))})),j(se),a==null||a(se,fe,{type:oe})},[j,C,a,n]),X=d.useCallback((ce,oe,se,fe)=>{if(s){const te=se.map(he=>C(he));s(C(ce),oe,te,fe)}G(se,"single")},[s,C,G]),ne=d.useMemo(()=>!m||b?null:(m===!0?[E6,_6,$6]:m).map(oe=>oe===E6?{key:"all",text:O.selectionAll,onSelect(){G(w.map((se,fe)=>x(se,fe)).filter(se=>{const fe=K.get(se);return!(fe!=null&&fe.disabled)||re.has(se)}),"all")}}:oe===_6?{key:"invert",text:O.selectInvert,onSelect(){const se=new Set(re);E.forEach((te,he)=>{const pe=x(te,he),Oe=K.get(pe);Oe!=null&&Oe.disabled||(se.has(pe)?se.delete(pe):se.add(pe))});const fe=Array.from(se);c&&(M.deprecated(!1,"onSelectInvert","onChange"),c(fe)),G(fe,"invert")}}:oe===$6?{key:"none",text:O.selectNone,onSelect(){u==null||u(),G(Array.from(re).filter(se=>{const fe=K.get(se);return fe==null?void 0:fe.disabled}),"none")}}:oe).map(oe=>Object.assign(Object.assign({},oe),{onSelect:function(){for(var se,fe,te=arguments.length,he=new Array(te),pe=0;pe{var oe;if(!t)return ce.filter(Ce=>Ce!==Nd);let se=Ze(ce);const fe=new Set(re),te=V.map(x).filter(Ce=>!K.get(Ce).disabled),he=te.every(Ce=>fe.has(Ce)),pe=te.some(Ce=>fe.has(Ce)),Oe=()=>{const Ce=[];he?te.forEach(Le=>{fe.delete(Le),Ce.push(Le)}):te.forEach(Le=>{fe.has(Le)||(fe.add(Le),Ce.push(Le))});const ue=Array.from(fe);l==null||l(!he,ue.map(Le=>C(Le)),Ce.map(Le=>C(Le))),G(ue,"all"),D(null)};let Me,Se;if(p!=="radio"){let Ce;if(ne){const De={getPopupContainer:I,items:ne.map((qe,Fe)=>{const{key:Ke,text:Ue,onSelect:Ve}=qe;return{key:Ke??Fe,onClick:()=>{Ve==null||Ve(te)},label:Ue}})};Ce=d.createElement("div",{className:`${S}-selection-extra`},d.createElement(RD,{menu:De,getPopupContainer:I},d.createElement("span",null,d.createElement(z$,null))))}const ue=V.map((De,qe)=>{const Fe=x(De,qe),Ke=K.get(Fe)||{};return Object.assign({checked:fe.has(Fe)},Ke)}).filter(De=>{let{disabled:qe}=De;return qe}),Le=!!ue.length&&ue.length===V.length,He=Le&&ue.every(De=>{let{checked:qe}=De;return qe}),ge=Le&&ue.some(De=>{let{checked:qe}=De;return qe});Se=d.createElement(od,{checked:Le?He:!!V.length&&he,indeterminate:Le?!He&&ge:!he&&pe,onChange:Oe,disabled:V.length===0||Le,"aria-label":Ce?"Custom selection":"Select all",skipGroup:!0}),Me=!b&&d.createElement("div",{className:`${S}-selection`},Se,Ce)}let ye;p==="radio"?ye=(Ce,ue,Le)=>{const He=x(ue,Le),ge=fe.has(He),De=K.get(He);return{node:d.createElement(qo,Object.assign({},De,{checked:ge,onClick:qe=>{var Fe;qe.stopPropagation(),(Fe=De==null?void 0:De.onClick)===null||Fe===void 0||Fe.call(De,qe)},onChange:qe=>{var Fe;fe.has(He)||X(He,!0,[He],qe.nativeEvent),(Fe=De==null?void 0:De.onChange)===null||Fe===void 0||Fe.call(De,qe)}})),checked:ge}}:ye=(Ce,ue,Le)=>{var He;const ge=x(ue,Le),De=fe.has(ge),qe=ie.has(ge),Fe=K.get(ge);let Ke;return _==="nest"?Ke=qe:Ke=(He=Fe==null?void 0:Fe.indeterminate)!==null&&He!==void 0?He:qe,{node:d.createElement(od,Object.assign({},Fe,{indeterminate:Ke,checked:De,skipGroup:!0,onClick:Ue=>{var Ve;Ue.stopPropagation(),(Ve=Fe==null?void 0:Fe.onClick)===null||Ve===void 0||Ve.call(Fe,Ue)},onChange:Ue=>{var Ve;const{nativeEvent:Tt}=Ue,{shiftKey:et}=Tt,st=te.findIndex(gt=>gt===ge),yt=Q.some(gt=>te.includes(gt));if(et&&y&&yt){const gt=T(st,te,fe),Lt=Array.from(fe);f==null||f(!De,Lt.map(St=>C(St)),gt.map(St=>C(St))),G(Lt,"multiple")}else{const gt=Q;if(y){const Lt=De?_c(gt,ge):Cu(gt,ge);X(ge,!De,Lt,Tt)}else{const Lt=il([].concat(Ze(gt),[ge]),!0,W,L),{checkedKeys:St,halfCheckedKeys:wt}=Lt;let Nt=St;if(De){const Be=new Set(St);Be.delete(ge),Nt=il(Array.from(Be),{checked:!1,halfCheckedKeys:wt},W,L).checkedKeys}X(ge,!De,Nt,Tt)}}D(De?null:st),(Ve=Fe==null?void 0:Fe.onChange)===null||Ve===void 0||Ve.call(Fe,Ue)}})),checked:De}};const ve=(Ce,ue,Le)=>{const{node:He,checked:ge}=ye(Ce,ue,Le);return v?v(ge,ue,Le,He):He};if(!se.includes(Nd))if(se.findIndex(Ce=>{var ue;return((ue=Ce[Ky])===null||ue===void 0?void 0:ue.columnType)==="EXPAND_COLUMN"})===0){const[Ce,...ue]=se;se=[Ce,Nd].concat(Ze(ue))}else se=[Nd].concat(Ze(se));const be=se.indexOf(Nd);se=se.filter((Ce,ue)=>Ce!==Nd||ue===be);const Pe=se[be-1],Ne=se[be+1];let U=g;U===void 0&&((Ne==null?void 0:Ne.fixed)!==void 0?U=Ne.fixed:(Pe==null?void 0:Pe.fixed)!==void 0&&(U=Pe.fixed)),U&&Pe&&((oe=Pe[Ky])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"&&Pe.fixed===void 0&&(Pe.fixed=U);const H=xe(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:m&&p==="checkbox"}),q=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Se):t.columnTitle:Me,me={fixed:U,width:h,className:`${S}-selection-column`,title:q(),render:ve,onCell:t.onCell,[Ky]:{className:H}};return se.map(Ce=>Ce===Nd?me:Ce)},[x,V,t,Q,re,ie,h,ne,_,K,f,X,L]),re]};function XVe(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 QVe(e,t){return d.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):XVe(r,n)})}function JVe(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,s=`${n}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:l=>{r(o,l),l.stopPropagation()},className:xe(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function ZVe(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),s=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderRightWidth,10);i=r-s-l}return i}}const Pf=(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 Hv(e,t){return t?`${t}-${e}`:`${e}`}const vP=(e,t)=>typeof e=="function"?e(t):e,eKe=(e,t)=>{const n=vP(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function tKe(e){const t=d.useRef(e),n=XA();return[()=>t.current,r=>{t.current=r,n()}]}var nKe=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o;break}return de.createElement("div",{style:i})};function gle(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function rKe(e,t){var n=d.useState(!1),r=$e(n,2),o=r[0],i=r[1];Zn(function(){if(o)return e(),function(){t()}},[o]),Zn(function(){return i(!0),function(){i(!1)}},[])}var oKe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],iKe=d.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=At(e,oKe),h=d.useState(!0),p=$e(h,2),m=p[0],g=p[1],v=d.useContext(HD),b=v.prefixCls,y=i&&a!=="hide";Zn(function(){i&&y!==m&&g(y)},[i]);var S=function(){i&&s()},w=d.useRef(!1),E=function(){i&&!w.current&&(w.current=!0,l())};rKe(S,E);var C=function(_){y===_&&E()};return i?d.createElement(Jo,Ge({ref:t,visible:m},o,{motionAppear:a==="show",onVisibleChanged:C}),function(x,_){var P=x.className,O=x.style;return d.createElement("div",{ref:_,className:xe("".concat(b,"-treenode-motion"),P),style:O},i.map(function(I){var M=Object.assign({},(gle(I.data),I.data)),T=I.title,D=I.key,A=I.isStart,j=I.isEnd;delete M.children;var k=Wy(D,u);return d.createElement(Xb,Ge({},M,k,{title:T,active:c,data:I.data,key:D,isStart:A,isEnd:j}))}))}):d.createElement(Xb,Ge({domRef:t,className:n,style:r},f,{active:c}))});function aKe(){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 o(i,a){var s=new Map;i.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 ").concat(t);return t}var uKe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,h=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,b=e.itemHeight,y=e.virtual,S=e.scrollWidth,w=e.focusable,E=e.activeItem,C=e.focused,x=e.tabIndex,_=e.onKeyDown,P=e.onFocus,O=e.onBlur,I=e.onActiveChange,M=e.onListChangeStart,T=e.onListChangeEnd,D=At(e,sKe),A=d.useRef(null),j=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(ve){A.current.scrollTo(ve)},getIndentWidth:function(){return j.current.offsetWidth}}});var k=d.useState(o),F=$e(k,2),V=F[0],W=F[1],K=d.useState(r),L=$e(K,2),Q=L[0],ee=L[1],re=d.useState(r),ie=$e(re,2),G=ie[0],X=ie[1],ne=d.useState([]),le=$e(ne,2),ce=le[0],oe=le[1],se=d.useState(null),fe=$e(se,2),te=fe[0],he=fe[1],pe=d.useRef(r);pe.current=r;function Oe(){var ye=pe.current;ee(ye),X(ye),oe([]),he(null),T()}Zn(function(){W(o);var ye=aKe(V,o);if(ye.key!==null)if(ye.add){var ve=Q.findIndex(function(q){var me=q.key;return me===ye.key}),be=cW(aW(Q,r,ye.key),y,v,b),Pe=Q.slice();Pe.splice(ve+1,0,lW),X(Pe),oe(be),he("show")}else{var Ne=r.findIndex(function(q){var me=q.key;return me===ye.key}),U=cW(aW(r,Q,ye.key),y,v,b),H=r.slice();H.splice(Ne+1,0,lW),X(H),oe(U),he("hide")}else Q!==r&&(ee(r),X(r))},[o,r]),d.useEffect(function(){h||Oe()},[h]);var Me=g?G:r,Se={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:m,keyEntities:u};return d.createElement(d.Fragment,null,C&&E&&d.createElement("span",{style:sW,"aria-live":"assertive"},cKe(E)),d.createElement("div",null,d.createElement("input",{style:sW,disabled:w===!1||f,tabIndex:w!==!1?x:null,onKeyDown:_,onFocus:P,onBlur:O,value:"",onChange:lKe,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),d.createElement(B$,Ge({},D,{data:Me,itemKey:uW,height:v,fullHeight:!1,virtual:y,itemHeight:b,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:A,role:"tree",onVisibleChange:function(ve){ve.every(function(be){return uW(be)!==vp})&&Oe()}}),function(ye){var ve=ye.pos,be=Object.assign({},(gle(ye.data),ye.data)),Pe=ye.title,Ne=ye.key,U=ye.isStart,H=ye.isEnd,q=rS(Ne,ve);delete be.key,delete be.children;var me=Wy(q,Se);return d.createElement(iKe,Ge({},be,me,{title:Pe,active:!!E&&Ne===E.key,pos:ve,data:ye.data,isStart:U,isEnd:H,motion:g,motionNodes:Ne===vp?ce:null,motionType:te,onMotionStart:M,onMotionEnd:Oe,treeNodeRequiredProps:Se,onMouseMove:function(){I(null)}}))}))}),dKe=10,yP=function(e){la(n,e);var t=Pa(n);function n(){var r;br(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,h=f.dragChildrenKeys,p=f.dropPosition,m=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var y=z(z({},Wy(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:La(r.state.keyEntities,m).node}),S=h.includes(m);yr(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=UD(g),E={event:s,node:ri(y),dragNode:r.dragNodeProps?ri(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(h),dropToGap:p!==0,dropPosition:p+Number(w[w.length-1])};u||b==null||b(E),r.dragNodeProps=null}}}),Z(tn(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}),Z(tn(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,h=l.expanded,p=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(b){return b.key===p})[0],v=ri(z(z({},Wy(p,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(h?_c(u,p):Cu(u,p)),r.onNodeExpand(s,v)}}),Z(tn(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(tn(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(tn(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,h=u.fieldNames,p=r.props,m=p.onSelect,g=p.multiple,v=l.selected,b=l[h.key],y=!v;y?g?c=Cu(c,b):c=[b]:c=_c(c,b);var S=c.map(function(w){var E=La(f,w);return E?E.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:y,node:l,selectedNodes:S,nativeEvent:s.nativeEvent})}),Z(tn(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,h=u.checkedKeys,p=u.halfCheckedKeys,m=r.props,g=m.checkStrictly,v=m.onCheck,b=l.key,y,S={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var w=c?Cu(h,b):_c(h,b),E=_c(p,b);y={checked:w,halfChecked:E},S.checkedNodes=w.map(function(I){return La(f,I)}).filter(Boolean).map(function(I){return I.node}),r.setUncontrolledState({checkedKeys:w})}else{var C=il([].concat(Ze(h),[b]),!0,f),x=C.checkedKeys,_=C.halfCheckedKeys;if(!c){var P=new Set(x);P.delete(b);var O=il(Array.from(P),{checked:!1,halfCheckedKeys:_},f);x=O.checkedKeys,_=O.halfCheckedKeys}y=x,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=_,x.forEach(function(I){var M=La(f,I);if(M){var T=M.node,D=M.pos;S.checkedNodes.push(T),S.checkedNodesPositions.push({node:T,pos:D})}}),r.setUncontrolledState({checkedKeys:x},!1,{halfCheckedKeys:_})}v==null||v(y,S)}),Z(tn(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=La(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var h=new Promise(function(p,m){r.setState(function(g){var v=g.loadedKeys,b=v===void 0?[]:v,y=g.loadingKeys,S=y===void 0?[]:y,w=r.props,E=w.loadData,C=w.onLoad;if(!E||b.includes(c)||S.includes(c))return null;var x=E(s);return x.then(function(){var _=r.state.loadedKeys,P=Cu(_,c);C==null||C(P,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:P}),r.setState(function(O){return{loadingKeys:_c(O.loadingKeys,c)}}),p()}).catch(function(_){if(r.setState(function(O){return{loadingKeys:_c(O.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=dKe){var P=r.state.loadedKeys;yr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Cu(P,c)}),p()}m(_)}),{loadingKeys:Cu(S,c)}})});return h.catch(function(){}),h}}),Z(tn(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),Z(tn(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),Z(tn(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),Z(tn(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,h={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){f=!1;return}u=!0,h[p]=s[p]}),u&&(!l||f)&&r.setState(z(z({},h),c))}}),Z(tn(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Sr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,s=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,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 o=this.state,i=o.focused,a=o.flattenNodes,s=o.keyEntities,l=o.draggingNodeKey,c=o.activeKey,u=o.dropLevelOffset,f=o.dropContainerKey,h=o.dropTargetKey,p=o.dropPosition,m=o.dragOverNodeKey,g=o.indent,v=this.props,b=v.prefixCls,y=v.className,S=v.style,w=v.showLine,E=v.focusable,C=v.tabIndex,x=C===void 0?0:C,_=v.selectable,P=v.showIcon,O=v.icon,I=v.switcherIcon,M=v.draggable,T=v.checkable,D=v.checkStrictly,A=v.disabled,j=v.motion,k=v.loadData,F=v.filterTreeNode,V=v.height,W=v.itemHeight,K=v.scrollWidth,L=v.virtual,Q=v.titleRender,ee=v.dropIndicatorRender,re=v.onContextMenu,ie=v.onScroll,G=v.direction,X=v.rootClassName,ne=v.rootStyle,le=Jr(this.props,{aria:!0,data:!0}),ce;M&&(Ht(M)==="object"?ce=M:typeof M=="function"?ce={nodeDraggable:M}:ce={});var oe={prefixCls:b,selectable:_,showIcon:P,icon:O,switcherIcon:I,draggable:ce,draggingNodeKey:l,checkable:T,checkStrictly:D,disabled:A,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:h,dropPosition:p,dragOverNodeKey:m,indent:g,direction:G,dropIndicatorRender:ee,loadData:k,filterTreeNode:F,titleRender:Q,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 d.createElement(HD.Provider,{value:oe},d.createElement("div",{className:xe(b,y,X,Z(Z(Z({},"".concat(b,"-show-line"),w),"".concat(b,"-focused"),i),"".concat(b,"-active-focused"),c!==null)),style:ne},d.createElement(uKe,Ge({ref:this.listRef,prefixCls:b,style:S,data:a,disabled:A,selectable:_,checkable:!!T,motion:j,dragging:l!==null,height:V,itemHeight:W,virtual:L,focusable:E,focused:i,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:re,onScroll:ie,scrollWidth:K},this.getTreeNodeRequiredProps(),le))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s={prevProps:o};function l(x){return!a&&o.hasOwnProperty(x)||a&&a[x]!==o[x]}var c,u=i.fieldNames;if(l("fieldNames")&&(u=Xg(o.fieldNames),s.fieldNames=u),l("treeData")?c=o.treeData:l("children")&&(yr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=lae(o.children)),c){s.treeData=c;var f=oS(c,{fieldNames:u});s.keyEntities=z(Z({},vp,vle),f.keyEntities)}var h=s.keyEntities||i.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?x6(o.expandedKeys,h):o.expandedKeys;else if(!a&&o.defaultExpandAll){var p=z({},h);delete p[vp];var m=[];Object.keys(p).forEach(function(x){var _=p[x];_.children&&_.children.length&&m.push(_.key)}),s.expandedKeys=m}else!a&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?x6(o.defaultExpandedKeys,h):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=nR(c||i.treeData,s.expandedKeys||i.expandedKeys,u);s.flattenNodes=g}if(o.selectable&&(l("selectedKeys")?s.selectedKeys=oW(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(s.selectedKeys=oW(o.defaultSelectedKeys,o))),o.checkable){var v;if(l("checkedKeys")?v=hR(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?v=hR(o.defaultCheckedKeys)||{}:c&&(v=hR(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),v){var b=v,y=b.checkedKeys,S=y===void 0?[]:y,w=b.halfCheckedKeys,E=w===void 0?[]:w;if(!o.checkStrictly){var C=il(S,!0,h);S=C.checkedKeys,E=C.halfCheckedKeys}s.checkedKeys=S,s.halfCheckedKeys=E}}return l("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(d.Component);Z(yP,"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:nKe,allowDrop:function(){return!0},expandAction:!1});Z(yP,"TreeNode",Xb);const fKe=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,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 ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},hKe=new Gn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),pKe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),mKe=(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:`${_e(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),gKe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},Qn(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({},rc(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:hKe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:_e(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-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:i,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(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},pKe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,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(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},mKe(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,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(i).div(2).equal(),bottom:t.calc(o).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:`${_e(t.calc(i).div(2).equal())} !important`}})}},yle=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=kn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[gKe(e,i),fKe(i)]},ble=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},vKe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},ble(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},yKe=Kn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:aP(`${n}-checkbox`,e)},yle(n,e),U1(e)]},vKe),dW=4;function bKe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[a]:-n*o+dW,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+dW;break}return de.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Sle=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return d.isValidElement(i)?i:d.createElement(Gc,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const h=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return d.isValidElement(h)?Zo(h,{className:xe(h.props.className||"",p)}):h}return c?d.createElement(Hse,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?Zo(f,{className:xe(f.props.className||"",u)}):f!==void 0?f:o?s?d.createElement(sUe,{className:`${t}-switcher-line-icon`}):d.createElement(yUe,{className:`${t}-switcher-line-icon`}):d.createElement(dHe,{className:u})},Cle=de.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=de.useContext(Yt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:h,blockNode:p=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:b,motion:y,style:S}=e,w=r("tree",s),E=r(),C=y??Object.assign(Object.assign({},Ug(E)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:C,blockNode:p,showLine:!!u,dropIndicatorRender:bKe}),[_,P,O]=yKe(w),[,I]=Ho(),M=I.paddingXS/2+(((n=I.Tree)===null||n===void 0?void 0:n.titleHeight)||I.controlHeightSM),T=de.useMemo(()=>{if(!b)return!1;let A={};switch(typeof b){case"function":A.nodeDraggable=b;break;case"object":A=Object.assign({},b);break}return A.icon!==!1&&(A.icon=A.icon||de.createElement(KHe,null)),A},[b]),D=A=>de.createElement(Sle,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:h,treeNodeProps:A,showLine:u});return _(de.createElement(yP,Object.assign({itemHeight:M,ref:t,virtual:i},x,{style:Object.assign(Object.assign({},a==null?void 0:a.style),S),prefixCls:w,className:xe({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:p,[`${w}-unselectable`]:!v,[`${w}-rtl`]:o==="rtl"},a==null?void 0:a.className,l,P,O),direction:o,checkable:g&&de.createElement("span",{className:`${w}-checkbox-inner`}),selectable:v,switcherIcon:D,draggable:T}),m))}),fW=0,pR=1,hW=2;function WD(e,t,n){const{key:r,children:o}=n;function i(a){const s=a[r],l=a[o];t(s,a)!==!1&&WD(l||[],t,n)}e.forEach(i)}function SKe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let s=fW;if(r&&r===o)return[r];if(!r||!o)return[];function l(c){return c===r||c===o}return WD(t,c=>{if(s===hW)return!1;if(l(c)){if(a.push(c),s===fW)s=pR;else if(s===pR)return s=hW,!1}else s===pR&&a.push(c);return n.includes(c)},Xg(i)),a}function mR(e,t,n){const r=Ze(t),o=[];return WD(e,(i,a)=>{const s=r.indexOf(i);return s!==-1&&(o.push(a),r.splice(s,1)),!!r.length},Xg(n)),o}var pW=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=pW(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:_}=oS(mW(i));let P;return n?P=Object.keys(_):r?P=x6(i.expandedKeys||o||[],_):P=i.expandedKeys||o||[],P},[c,u]=d.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,h]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),d.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);const p=(_,P)=>{var O;return"expandedKeys"in i||h(_),(O=i.onExpand)===null||O===void 0?void 0:O.call(i,_,P)},m=(_,P)=>{var O;const{multiple:I,fieldNames:M}=i,{node:T,nativeEvent:D}=P,{key:A=""}=T,j=mW(i),k=Object.assign(Object.assign({},P),{selected:!0}),F=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),V=D==null?void 0:D.shiftKey;let W;I&&F?(W=_,a.current=A,s.current=W,k.selectedNodes=mR(j,W,M)):I&&V?(W=Array.from(new Set([].concat(Ze(s.current||[]),Ze(SKe({treeData:j,expandedKeys:f,startKey:A,endKey:a.current,fieldNames:M}))))),k.selectedNodes=mR(j,W,M)):(W=[A],a.current=A,s.current=W,k.selectedNodes=mR(j,W,M)),(O=i.onSelect)===null||O===void 0||O.call(i,W,k),"selectedKeys"in i||u(W)},{getPrefixCls:g,direction:v}=d.useContext(Yt),{prefixCls:b,className:y,showIcon:S=!0,expandAction:w="click"}=i,E=pW(i,["prefixCls","className","showIcon","expandAction"]),C=g("tree",b),x=xe(`${C}-directory`,{[`${C}-directory-rtl`]:v==="rtl"},y);return d.createElement(Cle,Object.assign({icon:CKe,ref:t,blockNode:!0},E,{showIcon:S,expandAction:w,prefixCls:C,className:x,expandedKeys:f,selectedKeys:c,onSelect:m,onExpand:p}))},xKe=d.forwardRef(wKe),VD=Cle;VD.DirectoryTree=xKe;VD.TreeNode=Xb;const gW=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?d.createElement("div",{className:`${r}-filter-dropdown-search`},d.createElement(qr,{prefix:d.createElement(H$,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},EKe=e=>{const{keyCode:t}=e;t===ut.ENTER&&e.stopPropagation()},_Ke=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:EKe,ref:t},e.children));function cg(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(Ze(t),Ze(cg(o))))}),t}function $Ke(e){return e.some(t=>{let{children:n}=t;return n})}function wle(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function xle(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,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:xle({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const u=o?od:qo,f={key:s.value!==void 0?c:l,label:d.createElement(d.Fragment,null,d.createElement(u,{checked:r.includes(c)}),d.createElement("span",null,s.text))};return i.trim()?typeof a=="function"?a(i,s)?f:null:wle(i,s.text)?f:null:f})}function gR(e){return e||[]}const PKe=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:f,filterMode:h="menu",filterSearch:p=!1,filterState:m,triggerFilter:g,locale:v,children:b,getPopupContainer:y,rootClassName:S}=e,{filterResetToDefaultFilteredValue:w,defaultFilteredValue:E,filterDropdownProps:C={},filterDropdownOpen:x,filterDropdownVisible:_,onFilterDropdownVisibleChange:P,onFilterDropdownOpenChange:O}=s,[I,M]=d.useState(!1),T=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),D=ye=>{var ve;M(ye),(ve=C.onOpenChange)===null||ve===void 0||ve.call(C,ye),O==null||O(ye),P==null||P(ye)},A=(o=(r=(n=C.open)!==null&&n!==void 0?n:x)!==null&&r!==void 0?r:_)!==null&&o!==void 0?o:I,j=m==null?void 0:m.filteredKeys,[k,F]=tKe(gR(j)),V=ye=>{let{selectedKeys:ve}=ye;F(ve)},W=(ye,ve)=>{let{node:be,checked:Pe}=ve;V(f?{selectedKeys:ye}:{selectedKeys:Pe&&be.key?[be.key]:[]})};d.useEffect(()=>{I&&V({selectedKeys:gR(j)})},[j]);const[K,L]=d.useState([]),Q=ye=>{L(ye)},[ee,re]=d.useState(""),ie=ye=>{const{value:ve}=ye.target;re(ve)};d.useEffect(()=>{I||re("")},[I]);const G=ye=>{const ve=ye!=null&&ye.length?ye:null;if(ve===null&&(!m||!m.filteredKeys)||dl(ve,m==null?void 0:m.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:ve})},X=()=>{D(!1),G(k())},ne=function(){let{confirm:ye,closeDropdown:ve}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ye&&G([]),ve&&D(!1),re(""),F(w?(E||[]).map(be=>String(be)):[])},le=function(){let{closeDropdown:ye}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ye&&D(!1),G(k())},ce=(ye,ve)=>{ve.source==="trigger"&&(ye&&j!==void 0&&F(gR(j)),D(ye),!ye&&!s.filterDropdown&&u&&X())},oe=xe({[`${l}-menu-without-submenu`]:!$Ke(s.filters||[])}),se=ye=>{if(ye.target.checked){const ve=cg(s==null?void 0:s.filters).map(be=>String(be));F(ve)}else F([])},fe=ye=>{let{filters:ve}=ye;return(ve||[]).map((be,Pe)=>{const Ne=String(be.value),U={title:be.text,key:be.value!==void 0?Ne:String(Pe)};return be.children&&(U.children=fe({filters:be.children})),U})},te=ye=>{var ve;return Object.assign(Object.assign({},ye),{text:ye.title,value:ye.key,children:((ve=ye.children)===null||ve===void 0?void 0:ve.map(be=>te(be)))||[]})};let he;const{direction:pe,renderEmpty:Oe}=d.useContext(Yt);if(typeof s.filterDropdown=="function")he=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:ye=>V({selectedKeys:ye}),selectedKeys:k(),confirm:le,clearFilters:ne,filters:s.filters,visible:A,close:()=>{D(!1)}});else if(s.filterDropdown)he=s.filterDropdown;else{const ye=k()||[],ve=()=>{var Pe;const Ne=(Pe=Oe==null?void 0:Oe("Table.filter"))!==null&&Pe!==void 0?Pe:d.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Ne;if(h==="tree")return d.createElement(d.Fragment,null,d.createElement(gW,{filterSearch:p,value:ee,onChange:ie,tablePrefixCls:i,locale:v}),d.createElement("div",{className:`${i}-filter-dropdown-tree`},f?d.createElement(od,{checked:ye.length===cg(s.filters).length,indeterminate:ye.length>0&&ye.lengthtypeof p=="function"?p(ee,te(q)):wle(ee,q.title):void 0})));const U=xle({filters:s.filters||[],filterSearch:p,prefixCls:a,filteredKeys:k(),filterMultiple:f,searchValue:ee}),H=U.every(q=>q===null);return d.createElement(d.Fragment,null,d.createElement(gW,{filterSearch:p,value:ee,onChange:ie,tablePrefixCls:i,locale:v}),H?Ne:d.createElement(vc,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:oe,onSelect:V,onDeselect:V,selectedKeys:ye,getPopupContainer:y,openKeys:K,onOpenChange:Q,items:U}))},be=()=>w?dl((E||[]).map(Pe=>String(Pe)),ye,!0):ye.length===0;he=d.createElement(d.Fragment,null,ve(),d.createElement("div",{className:`${a}-dropdown-btns`},d.createElement(Hn,{type:"link",size:"small",disabled:be(),onClick:()=>ne()},v.filterReset),d.createElement(Hn,{type:"primary",size:"small",onClick:X},v.filterConfirm)))}s.filterDropdown&&(he=d.createElement(Boe,{selectable:void 0},he)),he=d.createElement(_Ke,{className:`${a}-dropdown`},he);const Se=yse({trigger:["click"],placement:pe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ye;return typeof s.filterIcon=="function"?ye=s.filterIcon(T):s.filterIcon?ye=s.filterIcon:ye=d.createElement(NHe,null),d.createElement("span",{role:"button",tabIndex:-1,className:xe(`${a}-trigger`,{active:T}),onClick:ve=>{ve.stopPropagation()}},ye)})(),getPopupContainer:y},Object.assign(Object.assign({},C),{rootClassName:xe(S,C.rootClassName),open:A,onOpenChange:ce,dropdownRender:()=>typeof(C==null?void 0:C.dropdownRender)=="function"?C.dropdownRender(he):he}));return d.createElement("div",{className:`${a}-column`},d.createElement("span",{className:`${i}-column-title`},b),d.createElement(RD,Object.assign({},Se)))},O6=(e,t,n)=>{let r=[];return(e||[]).forEach((o,i)=>{var a;const s=Hv(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let l=o.filteredValue;"filterDropdown"in o||(l=(a=l==null?void 0:l.map(String))!==null&&a!==void 0?a:l),r.push({column:o,key:Pf(o,s),filteredKeys:l,forceFiltered:o.filtered})}else r.push({column:o,key:Pf(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Ze(r),Ze(O6(o.children,t,s))))}),r};function Ele(e,t,n,r,o,i,a,s,l){return n.map((c,u)=>{const f=Hv(u,s),{filterOnClose:h=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=c;let v=c;if(v.filters||v.filterDropdown){const b=Pf(v,f),y=r.find(S=>{let{key:w}=S;return b===w});v=Object.assign(Object.assign({},v),{title:S=>d.createElement(PKe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:b,filterState:y,filterOnClose:h,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:l},vP(c.title,S))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:Ele(e,t,v.children,r,o,i,a,f,l)})),v})}const vW=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:s,filterDropdown:l}=i;if(l)t[a]=o||null;else if(Array.isArray(o)){const c=cg(s);t[a]=c.filter(u=>o.includes(String(u)))}else t[a]=null}),t},M6=(e,t,n)=>t.reduce((o,i)=>{const{column:{onFilter:a,filters:s},filteredKeys:l}=i;return a&&l&&l.length?o.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const f=cg(s),h=f.findIndex(m=>String(m)===String(u)),p=h!==-1?f[h]:u;return c[n]&&(c[n]=M6(c[n],t,n)),a(p,c)})):o},e),_le=e=>e.flatMap(t=>"children"in t?[t].concat(Ze(_le(t.children||[]))):[t]),OKe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:s}=e;nu();const l=d.useMemo(()=>_le(r||[]),[r]),[c,u]=d.useState(()=>O6(l,!0)),f=d.useMemo(()=>{const g=O6(l,!1);if(g.length===0)return g;let v=!0;if(g.forEach(b=>{let{filteredKeys:y}=b;y!==void 0&&(v=!1)}),v){const b=(l||[]).map((y,S)=>Pf(y,Hv(S)));return c.filter(y=>{let{key:S}=y;return b.includes(S)}).map(y=>{const S=l[b.findIndex(w=>w===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),S),forceFiltered:S.filtered})})}return g},[l,c]),h=d.useMemo(()=>vW(f),[f]),p=g=>{const v=f.filter(b=>{let{key:y}=b;return y!==g.key});v.push(g),u(v),o(vW(v),v)};return[g=>Ele(t,n,g,f,a,p,i,void 0,s),f,h]},MKe=(e,t,n)=>{const r=d.useRef({});function o(i){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,f)=>{const h=n(u,f);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(i)}return[o]};var TKe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function IKe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=TKe(r,["total"]),[a,s]=d.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:$le})),l=yse(a,i,{total:o>0?o:e}),c=Math.ceil((o||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(h,p)=>{s({current:h??1,pageSize:p||l.pageSize})},f=(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:f}),u]}const cx="ascend",vR="descend",dE=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,yW=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,kKe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],T6=(e,t,n)=>{let r=[];const o=(i,a)=>{r.push({column:i,key:Pf(i,a),multiplePriority:dE(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,a)=>{const s=Hv(a,n);i.children?("sortOrder"in i&&o(i,s),r=[].concat(Ze(r),Ze(T6(i.children,t,s)))):i.sorter&&("sortOrder"in i?o(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:Pf(i,s),multiplePriority:dE(i),sortOrder:i.defaultSortOrder}))}),r},Ple=(e,t,n,r,o,i,a,s)=>(t||[]).map((c,u)=>{const f=Hv(u,s);let h=c;if(h.sorter){const p=h.sortDirections||o,m=h.showSorterTooltip===void 0?a:h.showSorterTooltip,g=Pf(h,f),v=n.find(P=>{let{key:O}=P;return O===g}),b=v?v.sortOrder:null,y=kKe(p,b);let S;if(c.sortIcon)S=c.sortIcon({sortOrder:b});else{const P=p.includes(cx)&&d.createElement(vHe,{className:xe(`${e}-column-sorter-up`,{active:b===cx})}),O=p.includes(vR)&&d.createElement(pHe,{className:xe(`${e}-column-sorter-down`,{active:b===vR})});S=d.createElement("span",{className:xe(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(P&&O)})},d.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},P,O))}const{cancelSort:w,triggerAsc:E,triggerDesc:C}=i||{};let x=w;y===vR?x=C:y===cx&&(x=E);const _=typeof m=="object"?Object.assign({title:x},m):{title:x};h=Object.assign(Object.assign({},h),{className:xe(h.className,{[`${e}-column-sort`]:b}),title:P=>{const O=`${e}-column-sorters`,I=d.createElement("span",{className:`${e}-column-title`},vP(c.title,P)),M=d.createElement("div",{className:O},I,S);return m?typeof m!="boolean"&&(m==null?void 0:m.target)==="sorter-icon"?d.createElement("div",{className:`${O} ${e}-column-sorters-tooltip-target-sorter`},I,d.createElement(xa,Object.assign({},_),S)):d.createElement(xa,Object.assign({},_),M):M},onHeaderCell:P=>{var O;const I=((O=c.onHeaderCell)===null||O===void 0?void 0:O.call(c,P))||{},M=I.onClick,T=I.onKeyDown;I.onClick=j=>{r({column:c,key:g,sortOrder:y,multiplePriority:dE(c)}),M==null||M(j)},I.onKeyDown=j=>{j.keyCode===ut.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:dE(c)}),T==null||T(j))};const D=eKe(c.title,{}),A=D==null?void 0:D.toString();return b?I["aria-sort"]=b==="ascend"?"ascending":"descending":I["aria-label"]=A||"",I.className=xe(I.className,`${e}-column-has-sorters`),I.tabIndex=0,c.ellipsis&&(I.title=(D??"").toString()),I}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Ple(e,h.children,n,r,o,i,a,f)})),h}),bW=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},SW=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(bW);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},bW(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},R6=(e,t,n)=>{const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:s},sortOrder:l}=a;return yW(s)&&l});return i.length?o.sort((a,s)=>{for(let l=0;l{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:R6(s,t,n)}):a}):o},NKe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[s,l]=d.useState(T6(n,!0)),c=(g,v)=>{const b=[];return g.forEach((y,S)=>{const w=Hv(S,v);if(b.push(Pf(y,w)),Array.isArray(y.children)){const E=c(y.children,w);b.push.apply(b,Ze(E))}}),b},u=d.useMemo(()=>{let g=!0;const v=T6(n,!1);if(!v.length){const w=c(n);return s.filter(E=>{let{key:C}=E;return w.includes(C)})}const b=[];function y(w){g?b.push(w):b.push(Object.assign(Object.assign({},w),{sortOrder:null}))}let S=null;return v.forEach(w=>{S===null?(y(w),w.sortOrder&&(w.multiplePriority===!1?g=!1:S=!0)):(S&&w.multiplePriority!==!1||(g=!1),y(w))}),b},[n,s]),f=d.useMemo(()=>{var g,v;const b=u.map(y=>{let{column:S,sortOrder:w}=y;return{column:S,order:w}});return{sortColumns:b,sortColumn:(g=b[0])===null||g===void 0?void 0:g.column,sortOrder:(v=b[0])===null||v===void 0?void 0:v.order}},[u]),h=g=>{let v;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?v=[g]:v=[].concat(Ze(u.filter(b=>{let{key:y}=b;return y!==g.key})),[g]),l(v),a(SW(v),v)};return[g=>Ple(t,g,u,h,r,o,i),u,f,()=>SW(u)]},Ole=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=vP(r.title,t),"children"in o&&(o.children=Ole(o.children,t)),o}),AKe=e=>[d.useCallback(n=>Ole(n,e),[e])],DKe=dle((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),jKe=hle((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),FKe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${_e(n)} ${r} ${o}`,u=(f,h,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_e(l(h).mul(-1).equal())} ${_e(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, @@ -444,10 +444,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{"> 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:`${_e(l(a).mul(-1).equal())} ${_e(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 ${_e(n)} 0 ${_e(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},BKe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},wa),{wordBreak:"keep-all",[` + `]:{"> 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 ${_e(n)} 0 ${_e(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},LKe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},wa),{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"}})}}},zKe=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}}}}},HKe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:b,expandIconScale:y,calc:S}=e,w=`${_e(o)} ${a} ${s}`,E=S(m).sub(o).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({},COe(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:_e(v),background:l,border:w,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:E,insetInlineStart:E,height:o},"&::after":{top:E,bottom:E,insetInlineStart:b,width:o,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:g,marginInlineEnd:i},[`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:`${_e(S(f).mul(-1).equal())} ${_e(S(h).mul(-1).equal())}`,padding:`${_e(f)} ${_e(h)}`}}}},UKe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:v,colorTextDescription:b,colorPrimary:y,tableHeaderFilterActiveBg:S,colorTextDisabled:w,tableFilterDropdownBg:E,tableFilterDropdownHeight:C,controlItemBgHover:x,controlItemBgActive:_,boxShadowSecondary:P,filterDropdownMenuBg:O,calc:I}=e,M=`${n}-dropdown`,T=`${t}-filter-dropdown`,D=`${n}-tree`,A=`${_e(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(a).mul(-1).equal(),marginInline:`${_e(a)} ${_e(I(m).div(2).mul(-1).equal())}`,padding:`0 ${_e(a)}`,color:h,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:b,background:S},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[T]:Object.assign(Object.assign({},Qn(e)),{minWidth:o,backgroundColor:E,borderRadius:g,boxShadow:P,overflow:"hidden",[`${M}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:`${_e(s)} 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${_e(s)} 0`,paddingInline:s,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:x},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${T}-search`]:{padding:s,borderBottom:A,"&-input":{input:{minWidth:i},[r]:{color:w}}},[`${T}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${_e(I(s).sub(c).equal())} ${_e(s)}`,overflow:"hidden",borderTop:A}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},WKe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},BKe=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}}}}},zKe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:b,expandIconScale:y,calc:S}=e,w=`${_e(o)} ${a} ${s}`,E=S(m).sub(o).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({},SOe(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:_e(v),background:l,border:w,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:E,insetInlineStart:E,height:o},"&::after":{top:E,bottom:E,insetInlineStart:b,width:o,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:g,marginInlineEnd:i},[`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:`${_e(S(f).mul(-1).equal())} ${_e(S(h).mul(-1).equal())}`,padding:`${_e(f)} ${_e(h)}`}}}},HKe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:v,colorTextDescription:b,colorPrimary:y,tableHeaderFilterActiveBg:S,colorTextDisabled:w,tableFilterDropdownBg:E,tableFilterDropdownHeight:C,controlItemBgHover:x,controlItemBgActive:_,boxShadowSecondary:P,filterDropdownMenuBg:O,calc:I}=e,M=`${n}-dropdown`,T=`${t}-filter-dropdown`,D=`${n}-tree`,A=`${_e(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(a).mul(-1).equal(),marginInline:`${_e(a)} ${_e(I(m).div(2).mul(-1).equal())}`,padding:`0 ${_e(a)}`,color:h,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:b,background:S},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[T]:Object.assign(Object.assign({},Qn(e)),{minWidth:o,backgroundColor:E,borderRadius:g,boxShadow:P,overflow:"hidden",[`${M}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:`${_e(s)} 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${_e(s)} 0`,paddingInline:s,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:x},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${T}-search`]:{padding:s,borderBottom:A,"&-input":{input:{minWidth:i},[r]:{color:w}}},[`${T}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${_e(I(s).sub(c).equal())} ${_e(s)}`,overflow:"hidden",borderTop:A}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},UKe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:i,background:a},[` @@ -467,11 +467,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-cell-fix-left-last::after, ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},VKe=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${_e(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},KKe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${_e(n)} ${_e(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 ${_e(n)} ${_e(n)}`}}}}},qKe=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"}}}}},GKe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(o).add(m(i).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(o).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[` + `]:{boxShadow:"none"}}}}},WKe=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${_e(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},VKe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${_e(n)} ${_e(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 ${_e(n)} ${_e(n)}`}}}}},KKe=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"}}}}},qKe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(o).add(m(i).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(o).add(m(i).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:_e(m(p).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},YKe=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[` + `]:{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:_e(m(p).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},GKe=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -480,13 +480,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${_e(a)} ${_e(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:_e(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${_e(r(a).mul(-1).equal())} ${_e(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:_e(r(a).mul(-1).equal()),marginInline:`${_e(r(n).sub(s).equal())} ${_e(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:_e(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},XKe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=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},[` + `]:{padding:`${_e(a)} ${_e(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:_e(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${_e(r(a).mul(-1).equal())} ${_e(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:_e(r(a).mul(-1).equal()),marginInline:`${_e(r(n).sub(s).equal())} ${_e(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:_e(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},YKe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=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:o,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:i}}}},QKe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:f}=e,h=`${_e(c)} ${u} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${_e(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},xW=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${_e(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${_e(o(n).mul(-1).equal())} 0 ${r}`}}}},JKe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,s=`${_e(r)} ${o} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + `]:{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:o,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:i}}}},XKe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:f}=e,h=`${_e(c)} ${u} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${_e(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},CW=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${_e(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${_e(o(n).mul(-1).equal())} 0 ${r}`}}}},QKe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,s=`${_e(r)} ${o} ${i}`,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) - ${_e(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}}}}}},ZKe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:b,calc:y}=e,S=`${_e(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},nc()),{[t]:Object.assign(Object.assign({},Qn(e)),{fontSize:c,background:u,borderRadius:`${_e(f)} ${_e(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${_e(f)} ${_e(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{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) - ${_e(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}}}}}},JKe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:b,calc:y}=e,S=`${_e(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},nc()),{[t]:Object.assign(Object.assign({},Qn(e)),{fontSize:c,background:u,borderRadius:`${_e(f)} ${_e(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${_e(f)} ${_e(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -497,29 +497,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:_e(y(r).mul(-1).equal()),marginInline:`${_e(y(i).sub(o).equal())} - ${_e(y(o).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:S,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${_e(r)} ${_e(o)}`,color:v,background:b}})}},eqe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:v,lineHeight:b,lineWidth:y,colorIcon:S,colorIconHover:w,opacityLoading:E,controlInteractiveSize:C}=e,x=new Un(o).onBackground(n).toHexString(),_=new Un(i).onBackground(n).toHexString(),P=new Un(t).onBackground(n).toHexString(),O=new Un(S),I=new Un(w),M=C/2-y,T=M*2+y*3;return{headerBg:P,headerColor:r,headerSortActiveBg:x,headerSortHoverBg:_,bodySortBg:P,rowHoverBg:P,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:h,footerBg:P,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:f,fixedHeaderSortActiveBg:x,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*b-y*3)/2-Math.ceil((v*1.4-y*3)/2),headerIconColor:O.clone().setA(O.a*E).toRgbString(),headerIconHoverColor:I.clone().setA(I.a*E).toRgbString(),expandIconHalfInner:M,expandIconSize:T,expandIconScale:C/T}},EW=2,tqe=Kn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:b,cellPaddingBlockSM:y,cellPaddingInlineSM:S,borderColor:w,footerBg:E,footerColor:C,headerBorderRadius:x,cellFontSize:_,cellFontSizeMD:P,cellFontSizeSM:O,headerSplitColor:I,fixedHeaderSortActiveBg:M,headerFilterHoverBg:T,filterDropdownBg:D,expandIconBg:A,selectionColumnWidth:j,stickyScrollBarBg:k,calc:F}=e,V=kn(e,{tableFontSize:_,tableBg:r,tableRadius:x,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:S,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:E,tableHeaderCellSplitColor:I,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:T,tableFilterDropdownBg:D,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:h,zIndexTableFixed:EW,zIndexTableSticky:F(EW).add(1).equal({unit:!1}),tableFontSizeMiddle:P,tableFontSizeSmall:O,tableSelectionColumnWidth:j,tableExpandIconBg:A,tableExpandColumnWidth:F(o).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[ZKe(V),VKe(V),xW(V),XKe(V),UKe(V),LKe(V),KKe(V),HKe(V),xW(V),zKe(V),GKe(V),WKe(V),QKe(V),BKe(V),YKe(V),qKe(V),JKe(V)]},eqe,{unitless:{expandIconScale:!0}}),nqe=[],rqe=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:h,rowSelection:p,rowKey:m="key",rowClassName:g,columns:v,children:b,childrenColumnName:y,onChange:S,getPopupContainer:w,loading:E,expandIcon:C,expandable:x,expandedRowRender:_,expandIconColumnIndex:P,indentSize:O,scroll:I,sortDirections:M,locale:T,showSorterTooltip:D={target:"full-header"},virtual:A}=e;ru();const j=d.useMemo(()=>v||HD(b),[v,b]),k=d.useMemo(()=>j.some(vt=>vt.responsive),[j]),F=W$(k),V=d.useMemo(()=>{const vt=new Set(Object.keys(F).filter(ft=>F[ft]));return j.filter(ft=>!ft.responsive||ft.responsive.some(It=>vt.has(It)))},[j,F]),W=Yn(e,["className","style","columns"]),{locale:K=Os,direction:L,table:Q,renderEmpty:ee,getPrefixCls:re,getPopupContainer:ie}=d.useContext(Yt),G=Eo(l),X=Object.assign(Object.assign({},K.Table),T),ne=f||nqe,le=re("table",o),ce=re("dropdown",u),[,oe]=Ho(),se=Mr(le),[fe,te,he]=tqe(le,se),pe=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:P},x),{expandIcon:(n=x==null?void 0:x.expandIcon)!==null&&n!==void 0?n:(r=Q==null?void 0:Q.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Oe="children"}=pe,Me=d.useMemo(()=>ne.some(vt=>vt==null?void 0:vt[Oe])?"nest":_||x!=null&&x.expandedRowRender?"row":null,[ne]),Se={body:d.useRef(null)},ye=eKe(le),ve=d.useRef(null),be=d.useRef(null);JVe(t,()=>Object.assign(Object.assign({},be.current),{nativeElement:ve.current}));const Pe=d.useMemo(()=>typeof m=="function"?m:vt=>vt==null?void 0:vt[m],[m]),[Ne]=TKe(ne,Oe,Pe),U={},H=function(vt,ft){let It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bt,Wt,at,Pt;const Bt=Object.assign(Object.assign({},U),vt);It&&((bt=U.resetPagination)===null||bt===void 0||bt.call(U),!((Wt=Bt.pagination)===null||Wt===void 0)&&Wt.current&&(Bt.pagination.current=1),h&&((at=h.onChange)===null||at===void 0||at.call(h,1,(Pt=Bt.pagination)===null||Pt===void 0?void 0:Pt.pageSize))),I&&I.scrollToFirstRowOnChange!==!1&&Se.body.current&&zMe(0,{getContainer:()=>Se.body.current}),S==null||S(Bt.pagination,Bt.filters,Bt.sorter,{currentDataSource:T6(I6(ne,Bt.sorterStates,Oe),Bt.filterStates,Oe),action:ft})},q=(vt,ft)=>{H({sorter:vt,sorterStates:ft},"sort",!1)},[me,Ce,ue,Le]=AKe({prefixCls:le,mergedColumns:V,onSorterChange:q,sortDirections:M||["ascend","descend"],tableLocale:X,showSorterTooltip:D}),He=d.useMemo(()=>I6(ne,Ce,Oe),[ne,Ce]);U.sorter=Le(),U.sorterStates=Ce;const ge=(vt,ft)=>{H({filters:vt,filterStates:ft},"filter",!0)},[De,qe,je]=MKe({prefixCls:le,locale:X,dropdownPrefixCls:ce,mergedColumns:V,onFilterChange:ge,getPopupContainer:w||ie,rootClassName:xe(a,se)}),Ke=T6(He,qe,Oe);U.filters=je,U.filterStates=qe;const Ue=d.useMemo(()=>{const vt={};return Object.keys(je).forEach(ft=>{je[ft]!==null&&(vt[ft]=je[ft])}),Object.assign(Object.assign({},ue),{filters:vt})},[ue,je]),[Ve]=DKe(Ue),St=(vt,ft)=>{H({pagination:Object.assign(Object.assign({},U.pagination),{current:vt,pageSize:ft})},"paginate")},[et,st]=kKe(Ke.length,St,h);U.pagination=h===!1?{}:IKe(et,h),U.resetPagination=st;const Ct=d.useMemo(()=>{if(h===!1||!et.pageSize)return Ke;const{current:vt=1,total:ft,pageSize:It=Ple}=et;return Ke.lengthIt?Ke.slice((vt-1)*It,vt*It):Ke:Ke.slice((vt-1)*It,vt*It)},[!!h,Ke,et==null?void 0:et.current,et==null?void 0:et.pageSize,et==null?void 0:et.total]),[dt,Lt]=XVe({prefixCls:le,data:Ke,pageData:Ct,getRowKey:Pe,getRecordByKey:Ne,expandType:Me,childrenColumnName:Oe,locale:X,getPopupContainer:w||ie},p),wt=(vt,ft,It)=>{let bt;return typeof g=="function"?bt=xe(g(vt,ft,It)):bt=xe(g),xe({[`${le}-row-selected`]:Lt.has(Pe(vt,ft))},bt)};pe.__PARENT_RENDER_ICON__=pe.expandIcon,pe.expandIcon=pe.expandIcon||C||ZVe(X),Me==="nest"&&pe.expandIconColumnIndex===void 0?pe.expandIconColumnIndex=p?1:0:pe.expandIconColumnIndex>0&&p&&(pe.expandIconColumnIndex-=1),typeof pe.indentSize!="number"&&(pe.indentSize=typeof O=="number"?O:15);const Et=d.useCallback(vt=>Ve(dt(De(me(vt)))),[me,De,dt]);let Tt,Be;if(h!==!1&&(et!=null&&et.total)){let vt;et.size?vt=et.size:vt=G==="small"||G==="middle"?"small":void 0;const ft=Wt=>d.createElement(X9e,Object.assign({},et,{className:xe(`${le}-pagination ${le}-pagination-${Wt}`,et.className),size:vt})),It=L==="rtl"?"left":"right",{position:bt}=et;if(bt!==null&&Array.isArray(bt)){const Wt=bt.find(Bt=>Bt.includes("top")),at=bt.find(Bt=>Bt.includes("bottom")),Pt=bt.every(Bt=>`${Bt}`=="none");!Wt&&!at&&!Pt&&(Be=ft(It)),Wt&&(Tt=ft(Wt.toLowerCase().replace("top",""))),at&&(Be=ft(at.toLowerCase().replace("bottom","")))}else Be=ft(It)}let We;typeof E=="boolean"?We={spinning:E}:typeof E=="object"&&(We=Object.assign({spinning:!0},E));const Fe=xe(he,se,`${le}-wrapper`,Q==null?void 0:Q.className,{[`${le}-wrapper-rtl`]:L==="rtl"},i,a,te),Xe=Object.assign(Object.assign({},Q==null?void 0:Q.style),s),gt=typeof(T==null?void 0:T.emptyText)<"u"?T.emptyText:(ee==null?void 0:ee("Table"))||d.createElement(Y1,{componentName:"Table"}),pt=A?FKe:jKe,Rt={},_t=d.useMemo(()=>{const{fontSize:vt,lineHeight:ft,lineWidth:It,padding:bt,paddingXS:Wt,paddingSM:at}=oe,Pt=Math.floor(vt*ft);switch(G){case"middle":return at*2+Pt+It;case"small":return Wt*2+Pt+It;default:return bt*2+Pt+It}},[oe,G]);return A&&(Rt.listItemHeight=_t),fe(d.createElement("div",{ref:ve,className:Fe,style:Xe},d.createElement(au,Object.assign({spinning:!1},We),Tt,d.createElement(pt,Object.assign({},Rt,W,{ref:be,columns:V,direction:L,expandable:pe,prefixCls:le,className:xe({[`${le}-middle`]:G==="middle",[`${le}-small`]:G==="small",[`${le}-bordered`]:c,[`${le}-empty`]:ne.length===0},he,se,te),data:Ct,rowKey:Pe,rowClassName:wt,emptyText:gt,internalHooks:uS,internalRefs:Se,transformColumns:Et,getContainerWidth:ye})),Be)))},oqe=d.forwardRef(rqe),iqe=(e,t)=>{const n=d.useRef(0);return n.current+=1,d.createElement(oqe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},su=d.forwardRef(iqe);su.SELECTION_COLUMN=Nd;su.EXPAND_COLUMN=Mu;su.SELECTION_ALL=_6;su.SELECTION_INVERT=$6;su.SELECTION_NONE=P6;su.Column=BVe;su.ColumnGroup=zVe;su.Summary=tle;const aqe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Qn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},GD=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return kn(e,{tagFontSize:o,tagLineHeight:_e(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},YD=e=>({defaultBg:new Un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Tle=Kn("Tag",e=>{const t=GD(e);return aqe(t)},YD);var sqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=sqe(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(Yt),f=b=>{a==null||a(!i),s==null||s(b)},h=c("tag",n),[p,m,g]=Tle(h),v=xe(h,`${h}-checkable`,{[`${h}-checkable-checked`]:i},u==null?void 0:u.className,o,m,g);return p(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),cqe=e=>y$(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),uqe=$v(["Tag","preset"],e=>{const t=GD(e);return cqe(t)},YD);function dqe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const QC=(e,t,n)=>{const r=dqe(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"}}}},fqe=$v(["Tag","status"],e=>{const t=GD(e);return[QC(t,"success","Success"),QC(t,"processing","Info"),QC(t,"error","Error"),QC(t,"warning","Warning")]},YD);var hqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,h=hqe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:g}=d.useContext(Yt),[v,b]=d.useState(!0),y=Yn(h,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&b(f)},[f]);const S=q$(l),w=g8e(l),E=S||w,C=Object.assign(Object.assign({backgroundColor:l&&!E?l:void 0},g==null?void 0:g.style),i),x=p("tag",n),[_,P,O]=Tle(x),I=xe(x,g==null?void 0:g.className,{[`${x}-${l}`]:E,[`${x}-has-color`]:l&&!E,[`${x}-hidden`]:!v,[`${x}-rtl`]:m==="rtl",[`${x}-borderless`]:!u},r,o,P,O),M=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&b(!1)},[,T]=zA(Vg(e),Vg(g),{closable:!1,closeIconRender:F=>{const V=d.createElement("span",{className:`${x}-close-icon`,onClick:M},F);return xA(F,V,W=>({onClick:K=>{var L;(L=W==null?void 0:W.onClick)===null||L===void 0||L.call(W,K),M(K)},className:xe(W==null?void 0:W.className,`${x}-close-icon`)}))}}),D=typeof h.onClick=="function"||a&&a.type==="a",A=s||null,j=A?d.createElement(d.Fragment,null,A,a&&d.createElement("span",null,a)):a,k=d.createElement("span",Object.assign({},y,{ref:t,className:I,style:C}),j,T,S&&d.createElement(uqe,{key:"preset",prefixCls:x}),w&&d.createElement(fqe,{key:"status",prefixCls:x}));return _(D?d.createElement(z1,{component:"Tag"},k):k)}),Wu=pqe;Wu.CheckableTag=lqe;const mqe=e=>{const t=e!=null&&e.algorithm?up(e.algorithm):up(F1),n=Object.assign(Object.assign({},Hg),e==null?void 0:e.token);return fA(n,{override:e==null?void 0:e.token},t,CA)};function gqe(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 vqe=(e,t)=>{const n=t??F1(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),gqe(t??e)),Yte(r)),{controlHeight:o}),Gte(Object.assign(Object.assign({},n),{controlHeight:o})))},Ls=(e,t)=>new Un(e).setA(t).toRgbString(),vm=(e,t)=>new Un(e).lighten(t).toHexString(),yqe=e=>{const t=xf(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]}},bqe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ls(r,.85),colorTextSecondary:Ls(r,.65),colorTextTertiary:Ls(r,.45),colorTextQuaternary:Ls(r,.25),colorFill:Ls(r,.18),colorFillSecondary:Ls(r,.12),colorFillTertiary:Ls(r,.08),colorFillQuaternary:Ls(r,.04),colorBgSolid:Ls(r,.95),colorBgSolidHover:Ls(r,1),colorBgSolidActive:Ls(r,.9),colorBgElevated:vm(n,12),colorBgContainer:vm(n,8),colorBgLayout:vm(n,0),colorBgSpotlight:vm(n,26),colorBgBlur:Ls(r,.04),colorBorder:vm(n,26),colorBorderSecondary:vm(n,19)}},Sqe=(e,t)=>{const n=Object.keys(vA).map(o=>{const i=xf(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??F1(e);return Object.assign(Object.assign(Object.assign({},r),n),qte(e,{generateColorPalettes:yqe,generateNeutralColorPalettes:bqe}))};function Cqe(){const[e,t,n]=Ho();return{theme:e,token:t,hashId:n}}const pa={defaultSeed:Ub.token,useToken:Cqe,defaultAlgorithm:F1,darkAlgorithm:Sqe,compactAlgorithm:vqe,getDesignToken:mqe,defaultConfig:Ub,_internalContext:yA};var wqe=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 o=0,r=Object.getOwnPropertySymbols(e);od.createElement(Eqe,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),yp=d.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:o,bordered:i}=e,a=wqe(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=gd("timePicker",o,i),l=d.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return d.createElement(xqe,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Rle=jf(yp,"popupAlign",void 0,"picker");yp._InternalPanelDoNotUseOrYouWillBeFired=Rle;yp.RangePicker=_qe;yp._InternalPanelDoNotUseOrYouWillBeFired=Rle;const $qe=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,o=e.map(function(i){var a=i.value,s=i.label,l=s??n.get(a);return r.set(a,l),z(z({},i),{},{label:l})});return t.current.valueLabels=r,[o]},[e])};var Pqe=function(t,n,r,o){return d.useMemo(function(){var i=function(p){return p.map(function(m){var g=m.value;return g})},a=i(t),s=i(n),l=a.filter(function(h){return!o[h]}),c=a,u=s;if(r){var f=il(a,!0,o);c=f.checkedKeys,u=f.halfCheckedKeys}return[Array.from(new Set([].concat(Ze(l),Ze(c)))),u]},[t,n,r,o])},Oqe=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},Mqe=function(t){var n=t||{},r=n.label,o=n.value,i=n.children;return{_title:r?[r]:["title","label"],value:o||"value",key:o||"value",children:i||"children"}},k6=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Tqe=function(t,n){var r=[],o=function i(a){a.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),i(l))})};return o(t),r},_W=function(t){return t==null};const Rqe=function(e,t){return d.useMemo(function(){var n=rS(e,{fieldNames:t,initWrapper:function(o){return z(z({},o),{},{valueEntities:new Map})},processEntity:function(o,i){var a=o.node[t.value];i.valueEntities.set(a,o)}});return n},[e,t])};var XD=function(){return null},Iqe=["children","value"];function Ile(e){return ai(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,o=n.props,i=o.children,a=o.value,s=At(o,Iqe),l=z({key:r,value:a},s),c=Ile(i);return c.length&&(l.children=c),l}).filter(function(t){return t})}function N6(e){if(!e)return e;var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return yr(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function kqe(e,t,n,r,o,i){var a=null,s=null;function l(){function c(u){var f=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 g="".concat(f,"-").concat(m),v=p[i.value],b=n.includes(v),y=c(p[i.children]||[],g,b),S=d.createElement(XD,p,y.map(function(E){return E.node}));if(t===v&&(a=S),b){var w={pos:g,node:S,children:y};return h||s.push(w),w}return null}).filter(function(p){return p})}s||(s=[],c(r),s.sort(function(u,f){var h=u.node.props.value,p=f.node.props.value,m=n.indexOf(h),g=n.indexOf(p);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return yr(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return yr(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),o?s:s.map(function(u){var f=u.node;return f})}})}var Nqe=function(t,n,r){var o=r.fieldNames,i=r.treeNodeFilterProp,a=r.filterTreeNode,s=o.children;return d.useMemo(function(){if(!n||a===!1)return t;var l=typeof a=="function"?a:function(u,f){return String(f[i]).toUpperCase().includes(n.toUpperCase())},c=function u(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(p,m){var g=m[s],v=h||l(n,N6(m)),b=u(g||[],v);return(v||b.length)&&p.push(z(z({},m),{},Z({isLeaf:void 0},s,b))),p},[])};return c(t)},[t,n,s,i,a])};function $W(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Aqe(e,t){var n=t.id,r=t.pId,o=t.rootPId,i=new Map,a=[];return e.forEach(function(s){var l=s[n],c=z(z({},s),{},{key:s.key||l});i.set(l,c)}),i.forEach(function(s){var l=s[r],c=i.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===o||o===null)&&a.push(s)}),a}function Dqe(e,t,n){return d.useMemo(function(){if(e){if(n){var r=z({id:"id",pId:"pId",rootPId:null},Ht(n)==="object"?n:{});return Aqe(e,r)}return e}return Ile(t)},[t,n,e])}var kle=d.createContext(null),Nle=d.createContext(null),jqe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Fqe=function(t,n){var r=HA(),o=r.prefixCls,i=r.multiple,a=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=d.useContext(Nle),f=u.virtual,h=u.listHeight,p=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,b=u.onSelect,y=u.dropdownMatchSelectWidth,S=u.treeExpandAction,w=u.treeTitleRender,E=u.onPopupScroll,C=u.leftMaxCount,x=u.leafCountOnly,_=u.valueEntities,P=d.useContext(kle),O=P.checkable,I=P.checkedKeys,M=P.halfCheckedKeys,T=P.treeExpandedKeys,D=P.treeDefaultExpandAll,A=P.treeDefaultExpandedKeys,j=P.onTreeExpand,k=P.treeIcon,F=P.showTreeIcon,V=P.switcherIcon,W=P.treeLine,K=P.treeNodeFilterProp,L=P.loadData,Q=P.treeLoadedKeys,ee=P.treeMotion,re=P.onTreeLoad,ie=P.keyEntities,G=d.useRef(),X=td(function(){return g},[l,g],function(Ue,Ve){return Ve[0]&&Ue[1]!==Ve[1]}),ne=d.useMemo(function(){return O?{checked:I,halfChecked:M}:null},[O,I,M]);d.useEffect(function(){if(l&&!i&&I.length){var Ue;(Ue=G.current)===null||Ue===void 0||Ue.scrollTo({key:I[0]})}},[l]);var le=function(Ve){Ve.preventDefault()},ce=function(Ve,St){var et=St.node;O&&k6(et)||(b(et.key,{selected:!I.includes(et.key)}),i||s(!1))},oe=d.useState(A),se=$e(oe,2),fe=se[0],te=se[1],he=d.useState(null),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=d.useMemo(function(){return T?Ze(T):a?Oe:fe},[fe,Oe,T,a]),ye=function(Ve){te(Ve),Me(Ve),j&&j(Ve)},ve=String(a).toLowerCase(),be=function(Ve){return ve?String(Ve[K]).toLowerCase().includes(ve):!1};d.useEffect(function(){a&&Me(Tqe(g,v))},[a]);var Pe=d.useState(function(){return new Map}),Ne=$e(Pe,2),U=Ne[0],H=Ne[1];d.useEffect(function(){C&&H(new Map)},[C]);function q(Ue){var Ve=Ue[v.value];if(!U.has(Ve)){var St=_.get(Ve),et=(St.children||[]).length===0;if(et)U.set(Ve,!1);else{var st=St.children.filter(function(dt){return!dt.node.disabled&&!dt.node.disableCheckbox&&!I.includes(dt.node[v.value])}),Ct=st.length;U.set(Ve,Ct>C)}}return U.get(Ve)}var me=An(function(Ue){var Ve=Ue[v.value];return I.includes(Ve)||C===null?!1:C<=0?!0:x&&C?q(Ue):!1}),Ce=function Ue(Ve){var St=Fc(Ve),et;try{for(St.s();!(et=St.n()).done;){var st=et.value;if(!(st.disabled||st.selectable===!1)){if(a){if(be(st))return st}else return st;if(st[v.children]){var Ct=Ue(st[v.children]);if(Ct)return Ct}}}}catch(dt){St.e(dt)}finally{St.f()}return null},ue=d.useState(null),Le=$e(ue,2),He=Le[0],ge=Le[1],De=ie[He];d.useEffect(function(){if(l){var Ue=null,Ve=function(){var et=Ce(X);return et?et[v.value]:null};!i&&I.length&&!a?Ue=I[0]:Ue=Ve(),ge(Ue)}},[l,a]),d.useImperativeHandle(n,function(){var Ue;return{scrollTo:(Ue=G.current)===null||Ue===void 0?void 0:Ue.scrollTo,onKeyDown:function(St){var et,st=St.which;switch(st){case ut.UP:case ut.DOWN:case ut.LEFT:case ut.RIGHT:(et=G.current)===null||et===void 0||et.onKeyDown(St);break;case ut.ENTER:{if(De){var Ct=me(De.node),dt=(De==null?void 0:De.node)||{},Lt=dt.selectable,wt=dt.value,Et=dt.disabled;Lt!==!1&&!Et&&!Ct&&ce(null,{node:{key:He},selected:!I.includes(wt)})}break}case ut.ESC:s(!1)}},onKeyUp:function(){}}});var qe=td(function(){return!a},[a,T||fe],function(Ue,Ve){var St=$e(Ue,1),et=St[0],st=$e(Ve,2),Ct=st[0],dt=st[1];return et!==Ct&&!!(Ct||dt)}),je=qe?L:null;if(X.length===0)return d.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:le},c);var Ke={fieldNames:v};return Q&&(Ke.loadedKeys=Q),Se&&(Ke.expandedKeys=Se),d.createElement("div",{onMouseDown:le},De&&l&&d.createElement("span",{style:jqe,"aria-live":"assertive"},De.node.value),d.createElement(mle.Provider,{value:{nodeDisabled:me}},d.createElement(yP,Ge({ref:G,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:X,height:h,itemHeight:p,itemScrollOffset:m,virtual:f!==!1&&y!==!1,multiple:i,icon:k,showIcon:F,switcherIcon:V,showLine:W,loadData:je,motion:ee,activeKey:He,checkable:O,checkStrictly:!0,checkedKeys:ne,selectedKeys:O?[]:I,defaultExpandAll:D,titleRender:w},Ke,{onActiveChange:ge,onSelect:ce,onCheck:ce,onExpand:ye,onLoad:re,filterTreeNode:be,expandAction:S,onScroll:E}))))},Lqe=d.forwardRef(Fqe),QD="SHOW_ALL",JD="SHOW_PARENT",bP="SHOW_CHILD";function PW(e,t,n,r){var o=new Set(e);return t===bP?e.filter(function(i){var a=n[i];return!a||!a.children||!a.children.some(function(s){var l=s.node;return o.has(l[r.value])})||!a.children.every(function(s){var l=s.node;return k6(l)||o.has(l[r.value])})}):t===JD?e.filter(function(i){var a=n[i],s=a?a.parent:null;return!s||k6(s.node)||!o.has(s.key)}):e}var Bqe=["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 zqe(e){return!e||Ht(e)!=="object"}var Hqe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tree-select":r,i=e.value,a=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,h=e.onSearch,p=e.autoClearSearchValue,m=p===void 0?!0:p,g=e.filterTreeNode,v=e.treeNodeFilterProp,b=v===void 0?"value":v,y=e.showCheckedStrategy,S=e.treeNodeLabelProp,w=e.multiple,E=e.treeCheckable,C=e.treeCheckStrictly,x=e.labelInValue,_=e.maxCount,P=e.fieldNames,O=e.treeDataSimpleMode,I=e.treeData,M=e.children,T=e.loadData,D=e.treeLoadedKeys,A=e.onTreeLoad,j=e.treeDefaultExpandAll,k=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,V=e.onTreeExpand,W=e.treeExpandAction,K=e.virtual,L=e.listHeight,Q=L===void 0?200:L,ee=e.listItemHeight,re=ee===void 0?20:ee,ie=e.listItemScrollOffset,G=ie===void 0?0:ie,X=e.onDropdownVisibleChange,ne=e.dropdownMatchSelectWidth,le=ne===void 0?!0:ne,ce=e.treeLine,oe=e.treeIcon,se=e.showTreeIcon,fe=e.switcherIcon,te=e.treeMotion,he=e.treeTitleRender,pe=e.onPopupScroll,Oe=At(e,Bqe),Me=qA(n),Se=E&&!C,ye=E||C,ve=C||x,be=ye||w,Pe=xn(a,{value:i}),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=d.useMemo(function(){return E?y||bP:QD},[y,E]),me=d.useMemo(function(){return Mqe(P)},[JSON.stringify(P)]),Ce=xn("",{value:u!==void 0?u:f,postState:function(xt){return xt||""}}),ue=$e(Ce,2),Le=ue[0],He=ue[1],ge=function(xt){He(xt),h==null||h(xt)},De=Dqe(I,M,O),qe=Rqe(De,me),je=qe.keyEntities,Ke=qe.valueEntities,Ue=d.useCallback(function(Bt){var xt=[],yt=[];return Bt.forEach(function(Ft){Ke.has(Ft)?yt.push(Ft):xt.push(Ft)}),{missingRawValues:xt,existRawValues:yt}},[Ke]),Ve=Nqe(De,Le,{fieldNames:me,treeNodeFilterProp:b,filterTreeNode:g}),St=d.useCallback(function(Bt){if(Bt){if(S)return Bt[S];for(var xt=me._title,yt=0;ytvt)){var Re=st(Bt);if(H(Re),m&&He(""),s){var kt=Bt;Se&&(kt=Ft.map(function(ke){var Je=Ke.get(ke);return Je?Je.node[me.value]:ke}));var tt=xt||{triggerValue:void 0,selected:void 0},Mt=tt.triggerValue,Ot=tt.selected,pn=kt;if(C){var Pn=Et.filter(function(ke){return!kt.includes(ke.value)});pn=[].concat(Ze(pn),Ze(Pn))}var $=st(pn),R={preValue:wt,triggerValue:Mt},J=!0;(C||yt==="selection"&&!Ot)&&(J=!1),kqe(R,Mt,Bt,De,J,me),ye?R.checked=Ot:R.selected=Ot;var Ee=ve?$:$.map(function(ke){return ke.value});s(be?Ee:Ee[0],ve?null:$.map(function(ke){return ke.label}),R)}}}),It=d.useCallback(function(Bt,xt){var yt,Ft=xt.selected,Re=xt.source,kt=je[Bt],tt=kt==null?void 0:kt.node,Mt=(yt=tt==null?void 0:tt[me.value])!==null&&yt!==void 0?yt:Bt;if(!be)ft([Mt],{selected:!0,triggerValue:Mt},"option");else{var Ot=Ft?[].concat(Ze(Tt),[Mt]):Fe.filter(function(Je){return Je!==Mt});if(Se){var pn=Ue(Ot),Pn=pn.missingRawValues,$=pn.existRawValues,R=$.map(function(Je){return Ke.get(Je).key}),J;if(Ft){var Ee=il(R,!0,je);J=Ee.checkedKeys}else{var ke=il(R,{checked:!1,halfCheckedKeys:Xe},je);J=ke.checkedKeys}Ot=[].concat(Ze(Pn),Ze(J.map(function(Je){return je[Je].node[me.value]})))}ft(Ot,{selected:Ft,triggerValue:Mt},Re||"option")}Ft||!be?l==null||l(Mt,N6(tt)):c==null||c(Mt,N6(tt))},[Ue,Ke,je,me,be,Tt,ft,Se,l,c,Fe,Xe,_]),bt=d.useCallback(function(Bt){if(X){var xt={};Object.defineProperty(xt,"documentClickClose",{get:function(){return yr(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(Bt,xt)}},[X]),Wt=$W(function(Bt,xt){var yt=Bt.map(function(Ft){return Ft.value});if(xt.type==="clear"){ft(yt,{},"selection");return}xt.values.length&&It(xt.values[0].value,{selected:!1,source:"selection"})}),at=d.useMemo(function(){return{virtual:K,dropdownMatchSelectWidth:le,listHeight:Q,listItemHeight:re,listItemScrollOffset:G,treeData:Ve,fieldNames:me,onSelect:It,treeExpandAction:W,treeTitleRender:he,onPopupScroll:pe,leftMaxCount:_===void 0?null:_-_t.length,leafCountOnly:q==="SHOW_CHILD"&&!C&&!!E,valueEntities:Ke}},[K,le,Q,re,G,Ve,me,It,W,he,pe,_,_t.length,q,C,E,Ke]),Pt=d.useMemo(function(){return{checkable:ye,loadData:T,treeLoadedKeys:D,onTreeLoad:A,checkedKeys:Fe,halfCheckedKeys:Xe,treeDefaultExpandAll:j,treeExpandedKeys:k,treeDefaultExpandedKeys:F,onTreeExpand:V,treeIcon:oe,treeMotion:te,showTreeIcon:se,switcherIcon:fe,treeLine:ce,treeNodeFilterProp:b,keyEntities:je}},[ye,T,D,A,Fe,Xe,j,k,F,V,oe,te,se,fe,ce,b,je]);return d.createElement(Nle.Provider,{value:at},d.createElement(kle.Provider,{value:Pt},d.createElement(WA,Ge({ref:t},Oe,{id:Me,prefixCls:o,mode:be?"multiple":void 0,displayValues:_t,onDisplayValuesChange:Wt,searchValue:Le,onSearch:ge,OptionList:Lqe,emptyOptions:!De.length,onDropdownVisibleChange:bt,dropdownMatchSelectWidth:le}))))}),dS=Hqe;dS.TreeNode=XD;dS.SHOW_ALL=QD;dS.SHOW_PARENT=JD;dS.SHOW_CHILD=bP;const Uqe=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${_e(e.paddingXS)} ${_e(e.calc(e.paddingXS).div(2).equal())}`},ble(n,kn(e,{colorBgContainer:r})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},aP(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Wqe(e,t,n){return Kn("TreeSelect",r=>{const o=kn(r,{treePrefixCls:t});return[Uqe(o)]},Sle)(e,n)}var Vqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,size:o,disabled:i,bordered:a=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:f=256,listItemHeight:h,placement:p,notFoundContent:m,switcherIcon:g,treeLine:v,getPopupContainer:b,popupClassName:y,dropdownClassName:S,treeIcon:w=!1,transitionName:E,choiceTransitionName:C="",status:x,treeExpandAction:_,builtinPlacements:P,dropdownMatchSelectWidth:O,popupMatchSelectWidth:I,allowClear:M,variant:T,dropdownStyle:D,tagRender:A,maxCount:j,showCheckedStrategy:k,treeCheckStrictly:F}=e,V=Vqe(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:W,getPrefixCls:K,renderEmpty:L,direction:Q,virtual:ee,popupMatchSelectWidth:re,popupOverflow:ie}=d.useContext(Yt),[,G]=Ho(),X=h??(G==null?void 0:G.controlHeightSM)+(G==null?void 0:G.paddingXXS),ne=K(),le=K("select",r),ce=K("select-tree",r),oe=K("tree-select",r),{compactSize:se,compactItemClassnames:fe}=gc(le,Q),te=Mr(le),he=Mr(oe),[pe,Oe,Me]=XA(le,te),[Se]=Wqe(oe,ce,he),[ye,ve]=gd("treeSelect",T,a),be=xe(y||S,`${oe}-dropdown`,{[`${oe}-dropdown-rtl`]:Q==="rtl"},l,Me,te,he,Oe),Pe=!!(c||u),Ne=d.useMemo(()=>{if(!(j&&(k==="SHOW_ALL"&&!F||k==="SHOW_PARENT")))return j},[j,k,F]),U=QA(e.suffixIcon,e.showArrow),H=(n=I??O)!==null&&n!==void 0?n:re,{status:q,hasFeedback:me,isFormItemInput:Ce,feedbackIcon:ue}=d.useContext(Io),Le=md(q,x),{suffixIcon:He,removeIcon:ge,clearIcon:De}=U$(Object.assign(Object.assign({},V),{multiple:Pe,showSuffixIcon:U,hasFeedback:me,feedbackIcon:ue,prefixCls:le,componentName:"TreeSelect"})),qe=M===!0?{clearIcon:De}:M;let je;m!==void 0?je=m:je=(L==null?void 0:L("Select"))||d.createElement(Y1,{componentName:"Select"});const Ke=Yn(V,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ue=d.useMemo(()=>p!==void 0?p:Q==="rtl"?"bottomRight":"bottomLeft",[p,Q]),Ve=Eo(wt=>{var Et;return(Et=o??se)!==null&&Et!==void 0?Et:wt}),St=d.useContext(zo),et=i??St,st=xe(!r&&oe,{[`${le}-lg`]:Ve==="large",[`${le}-sm`]:Ve==="small",[`${le}-rtl`]:Q==="rtl",[`${le}-${ye}`]:ve,[`${le}-in-form-item`]:Ce},ac(le,Le,me),fe,s,l,Me,te,he,Oe),Ct=wt=>d.createElement(Cle,{prefixCls:ce,switcherIcon:g,treeNodeProps:wt,showLine:v}),[dt]=vl("SelectLike",D==null?void 0:D.zIndex),Lt=d.createElement(dS,Object.assign({virtual:ee,disabled:et},Ke,{dropdownMatchSelectWidth:H,builtinPlacements:YA(P,ie),ref:t,prefixCls:le,className:st,listHeight:f,listItemHeight:X,treeCheckable:c&&d.createElement("span",{className:`${le}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:He,multiple:Pe,placement:Ue,removeIcon:ge,allowClear:qe,switcherIcon:Ct,showTreeIcon:w,notFoundContent:je,getPopupContainer:b||W,treeMotion:null,dropdownClassName:be,dropdownStyle:Object.assign(Object.assign({},D),{zIndex:dt}),choiceTransitionName:Mi(ne,"",C),transitionName:Mi(ne,"slide-up",E),treeExpandAction:_,tagRender:Pe?A:void 0,maxCount:Ne,showCheckedStrategy:k,treeCheckStrictly:F}));return pe(Se(Lt))},qqe=d.forwardRef(Kqe),Vp=qqe,Gqe=jf(Vp,"dropdownAlign",e=>Yn(e,["visible"]));Vp.TreeNode=XD;Vp.SHOW_ALL=QD;Vp.SHOW_PARENT=JD;Vp.SHOW_CHILD=bP;Vp._InternalPanelDoNotUseOrYouWillBeFired=Gqe;const yR=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.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(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(yr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Yqe(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 OW(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Xqe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Yqe(e,t),OW(t)):e.onSuccess(OW(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(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var Qqe=function(){var e=Bo(nr().mark(function t(n,r){var o,i,a,s,l,c,u,f;return nr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Bo(nr().mark(function g(v){return nr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(S){v.file(function(w){r(w)?(v.fullPath&&!w.webkitRelativePath&&(Object.defineProperties(w,{webkitRelativePath:{writable:!0}}),w.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(w,{webkitRelativePath:{writable:!1}})),S(w)):S(null)})}));case 1:case"end":return y.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=Bo(nr().mark(function g(v){var b,y,S,w,E;return nr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:b=v.createReader(),y=[];case 2:return x.next=5,new Promise(function(_){b.readEntries(_,function(){return _([])})});case 5:if(S=x.sent,w=S.length,w){x.next=9;break}return x.abrupt("break",12);case 9:for(E=0;E{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${_e(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:`${_e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + ${_e(y(o).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:S,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${_e(r)} ${_e(o)}`,color:v,background:b}})}},ZKe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:v,lineHeight:b,lineWidth:y,colorIcon:S,colorIconHover:w,opacityLoading:E,controlInteractiveSize:C}=e,x=new Un(o).onBackground(n).toHexString(),_=new Un(i).onBackground(n).toHexString(),P=new Un(t).onBackground(n).toHexString(),O=new Un(S),I=new Un(w),M=C/2-y,T=M*2+y*3;return{headerBg:P,headerColor:r,headerSortActiveBg:x,headerSortHoverBg:_,bodySortBg:P,rowHoverBg:P,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:h,footerBg:P,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:f,fixedHeaderSortActiveBg:x,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*b-y*3)/2-Math.ceil((v*1.4-y*3)/2),headerIconColor:O.clone().setA(O.a*E).toRgbString(),headerIconHoverColor:I.clone().setA(I.a*E).toRgbString(),expandIconHalfInner:M,expandIconSize:T,expandIconScale:C/T}},wW=2,eqe=Kn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:b,cellPaddingBlockSM:y,cellPaddingInlineSM:S,borderColor:w,footerBg:E,footerColor:C,headerBorderRadius:x,cellFontSize:_,cellFontSizeMD:P,cellFontSizeSM:O,headerSplitColor:I,fixedHeaderSortActiveBg:M,headerFilterHoverBg:T,filterDropdownBg:D,expandIconBg:A,selectionColumnWidth:j,stickyScrollBarBg:k,calc:F}=e,V=kn(e,{tableFontSize:_,tableBg:r,tableRadius:x,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:S,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:E,tableHeaderCellSplitColor:I,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:T,tableFilterDropdownBg:D,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:h,zIndexTableFixed:wW,zIndexTableSticky:F(wW).add(1).equal({unit:!1}),tableFontSizeMiddle:P,tableFontSizeSmall:O,tableSelectionColumnWidth:j,tableExpandIconBg:A,tableExpandColumnWidth:F(o).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[JKe(V),WKe(V),CW(V),YKe(V),HKe(V),FKe(V),VKe(V),zKe(V),CW(V),BKe(V),qKe(V),UKe(V),XKe(V),LKe(V),GKe(V),KKe(V),QKe(V)]},ZKe,{unitless:{expandIconScale:!0}}),tqe=[],nqe=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:h,rowSelection:p,rowKey:m="key",rowClassName:g,columns:v,children:b,childrenColumnName:y,onChange:S,getPopupContainer:w,loading:E,expandIcon:C,expandable:x,expandedRowRender:_,expandIconColumnIndex:P,indentSize:O,scroll:I,sortDirections:M,locale:T,showSorterTooltip:D={target:"full-header"},virtual:A}=e;nu();const j=d.useMemo(()=>v||BD(b),[v,b]),k=d.useMemo(()=>j.some(ft=>ft.responsive),[j]),F=W$(k),V=d.useMemo(()=>{const ft=new Set(Object.keys(F).filter(dt=>F[dt]));return j.filter(dt=>!dt.responsive||dt.responsive.some(Rt=>ft.has(Rt)))},[j,F]),W=Yn(e,["className","style","columns"]),{locale:K=Os,direction:L,table:Q,renderEmpty:ee,getPrefixCls:re,getPopupContainer:ie}=d.useContext(Yt),G=Eo(l),X=Object.assign(Object.assign({},K.Table),T),ne=f||tqe,le=re("table",o),ce=re("dropdown",u),[,oe]=Ho(),se=Mr(le),[fe,te,he]=eqe(le,se),pe=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:P},x),{expandIcon:(n=x==null?void 0:x.expandIcon)!==null&&n!==void 0?n:(r=Q==null?void 0:Q.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Oe="children"}=pe,Me=d.useMemo(()=>ne.some(ft=>ft==null?void 0:ft[Oe])?"nest":_||x!=null&&x.expandedRowRender?"row":null,[ne]),Se={body:d.useRef(null)},ye=ZVe(le),ve=d.useRef(null),be=d.useRef(null);QVe(t,()=>Object.assign(Object.assign({},be.current),{nativeElement:ve.current}));const Pe=d.useMemo(()=>typeof m=="function"?m:ft=>ft==null?void 0:ft[m],[m]),[Ne]=MKe(ne,Oe,Pe),U={},H=function(ft,dt){let Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ct,Wt,at,$t;const Bt=Object.assign(Object.assign({},U),ft);Rt&&((Ct=U.resetPagination)===null||Ct===void 0||Ct.call(U),!((Wt=Bt.pagination)===null||Wt===void 0)&&Wt.current&&(Bt.pagination.current=1),h&&((at=h.onChange)===null||at===void 0||at.call(h,1,($t=Bt.pagination)===null||$t===void 0?void 0:$t.pageSize))),I&&I.scrollToFirstRowOnChange!==!1&&Se.body.current&&BMe(0,{getContainer:()=>Se.body.current}),S==null||S(Bt.pagination,Bt.filters,Bt.sorter,{currentDataSource:M6(R6(ne,Bt.sorterStates,Oe),Bt.filterStates,Oe),action:dt})},q=(ft,dt)=>{H({sorter:ft,sorterStates:dt},"sort",!1)},[me,Ce,ue,Le]=NKe({prefixCls:le,mergedColumns:V,onSorterChange:q,sortDirections:M||["ascend","descend"],tableLocale:X,showSorterTooltip:D}),He=d.useMemo(()=>R6(ne,Ce,Oe),[ne,Ce]);U.sorter=Le(),U.sorterStates=Ce;const ge=(ft,dt)=>{H({filters:ft,filterStates:dt},"filter",!0)},[De,qe,Fe]=OKe({prefixCls:le,locale:X,dropdownPrefixCls:ce,mergedColumns:V,onFilterChange:ge,getPopupContainer:w||ie,rootClassName:xe(a,se)}),Ke=M6(He,qe,Oe);U.filters=Fe,U.filterStates=qe;const Ue=d.useMemo(()=>{const ft={};return Object.keys(Fe).forEach(dt=>{Fe[dt]!==null&&(ft[dt]=Fe[dt])}),Object.assign(Object.assign({},ue),{filters:ft})},[ue,Fe]),[Ve]=AKe(Ue),Tt=(ft,dt)=>{H({pagination:Object.assign(Object.assign({},U.pagination),{current:ft,pageSize:dt})},"paginate")},[et,st]=IKe(Ke.length,Tt,h);U.pagination=h===!1?{}:RKe(et,h),U.resetPagination=st;const yt=d.useMemo(()=>{if(h===!1||!et.pageSize)return Ke;const{current:ft=1,total:dt,pageSize:Rt=$le}=et;return Ke.lengthRt?Ke.slice((ft-1)*Rt,ft*Rt):Ke:Ke.slice((ft-1)*Rt,ft*Rt)},[!!h,Ke,et==null?void 0:et.current,et==null?void 0:et.pageSize,et==null?void 0:et.total]),[gt,Lt]=YVe({prefixCls:le,data:Ke,pageData:yt,getRowKey:Pe,getRecordByKey:Ne,expandType:Me,childrenColumnName:Oe,locale:X,getPopupContainer:w||ie},p),St=(ft,dt,Rt)=>{let Ct;return typeof g=="function"?Ct=xe(g(ft,dt,Rt)):Ct=xe(g),xe({[`${le}-row-selected`]:Lt.has(Pe(ft,dt))},Ct)};pe.__PARENT_RENDER_ICON__=pe.expandIcon,pe.expandIcon=pe.expandIcon||C||JVe(X),Me==="nest"&&pe.expandIconColumnIndex===void 0?pe.expandIconColumnIndex=p?1:0:pe.expandIconColumnIndex>0&&p&&(pe.expandIconColumnIndex-=1),typeof pe.indentSize!="number"&&(pe.indentSize=typeof O=="number"?O:15);const wt=d.useCallback(ft=>Ve(gt(De(me(ft)))),[me,De,gt]);let Nt,Be;if(h!==!1&&(et!=null&&et.total)){let ft;et.size?ft=et.size:ft=G==="small"||G==="middle"?"small":void 0;const dt=Wt=>d.createElement(Y9e,Object.assign({},et,{className:xe(`${le}-pagination ${le}-pagination-${Wt}`,et.className),size:ft})),Rt=L==="rtl"?"left":"right",{position:Ct}=et;if(Ct!==null&&Array.isArray(Ct)){const Wt=Ct.find(Bt=>Bt.includes("top")),at=Ct.find(Bt=>Bt.includes("bottom")),$t=Ct.every(Bt=>`${Bt}`=="none");!Wt&&!at&&!$t&&(Be=dt(Rt)),Wt&&(Nt=dt(Wt.toLowerCase().replace("top",""))),at&&(Be=dt(at.toLowerCase().replace("bottom","")))}else Be=dt(Rt)}let We;typeof E=="boolean"?We={spinning:E}:typeof E=="object"&&(We=Object.assign({spinning:!0},E));const je=xe(he,se,`${le}-wrapper`,Q==null?void 0:Q.className,{[`${le}-wrapper-rtl`]:L==="rtl"},i,a,te),Xe=Object.assign(Object.assign({},Q==null?void 0:Q.style),s),pt=typeof(T==null?void 0:T.emptyText)<"u"?T.emptyText:(ee==null?void 0:ee("Table"))||d.createElement(X1,{componentName:"Table"}),vt=A?jKe:DKe,Mt={},Et=d.useMemo(()=>{const{fontSize:ft,lineHeight:dt,lineWidth:Rt,padding:Ct,paddingXS:Wt,paddingSM:at}=oe,$t=Math.floor(ft*dt);switch(G){case"middle":return at*2+$t+Rt;case"small":return Wt*2+$t+Rt;default:return Ct*2+$t+Rt}},[oe,G]);return A&&(Mt.listItemHeight=Et),fe(d.createElement("div",{ref:ve,className:je,style:Xe},d.createElement(iu,Object.assign({spinning:!1},We),Nt,d.createElement(vt,Object.assign({},Mt,W,{ref:be,columns:V,direction:L,expandable:pe,prefixCls:le,className:xe({[`${le}-middle`]:G==="middle",[`${le}-small`]:G==="small",[`${le}-bordered`]:c,[`${le}-empty`]:ne.length===0},he,se,te),data:yt,rowKey:Pe,rowClassName:St,emptyText:pt,internalHooks:dS,internalRefs:Se,transformColumns:wt,getContainerWidth:ye})),Be)))},rqe=d.forwardRef(nqe),oqe=(e,t)=>{const n=d.useRef(0);return n.current+=1,d.createElement(rqe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},au=d.forwardRef(oqe);au.SELECTION_COLUMN=Nd;au.EXPAND_COLUMN=Ou;au.SELECTION_ALL=E6;au.SELECTION_INVERT=_6;au.SELECTION_NONE=$6;au.Column=LVe;au.ColumnGroup=BVe;au.Summary=ele;const iqe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Qn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},KD=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return kn(e,{tagFontSize:o,tagLineHeight:_e(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},qD=e=>({defaultBg:new Un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Mle=Kn("Tag",e=>{const t=KD(e);return iqe(t)},qD);var aqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=aqe(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(Yt),f=b=>{a==null||a(!i),s==null||s(b)},h=c("tag",n),[p,m,g]=Mle(h),v=xe(h,`${h}-checkable`,{[`${h}-checkable-checked`]:i},u==null?void 0:u.className,o,m,g);return p(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),lqe=e=>y$(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),cqe=$v(["Tag","preset"],e=>{const t=KD(e);return lqe(t)},qD);function uqe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const JC=(e,t,n)=>{const r=uqe(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"}}}},dqe=$v(["Tag","status"],e=>{const t=KD(e);return[JC(t,"success","Success"),JC(t,"processing","Info"),JC(t,"error","Error"),JC(t,"warning","Warning")]},qD);var fqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,h=fqe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:g}=d.useContext(Yt),[v,b]=d.useState(!0),y=Yn(h,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&b(f)},[f]);const S=q$(l),w=m8e(l),E=S||w,C=Object.assign(Object.assign({backgroundColor:l&&!E?l:void 0},g==null?void 0:g.style),i),x=p("tag",n),[_,P,O]=Mle(x),I=xe(x,g==null?void 0:g.className,{[`${x}-${l}`]:E,[`${x}-has-color`]:l&&!E,[`${x}-hidden`]:!v,[`${x}-rtl`]:m==="rtl",[`${x}-borderless`]:!u},r,o,P,O),M=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&b(!1)},[,T]=LA(Vg(e),Vg(g),{closable:!1,closeIconRender:F=>{const V=d.createElement("span",{className:`${x}-close-icon`,onClick:M},F);return CA(F,V,W=>({onClick:K=>{var L;(L=W==null?void 0:W.onClick)===null||L===void 0||L.call(W,K),M(K)},className:xe(W==null?void 0:W.className,`${x}-close-icon`)}))}}),D=typeof h.onClick=="function"||a&&a.type==="a",A=s||null,j=A?d.createElement(d.Fragment,null,A,a&&d.createElement("span",null,a)):a,k=d.createElement("span",Object.assign({},y,{ref:t,className:I,style:C}),j,T,S&&d.createElement(cqe,{key:"preset",prefixCls:x}),w&&d.createElement(dqe,{key:"status",prefixCls:x}));return _(D?d.createElement(H1,{component:"Tag"},k):k)}),Uu=hqe;Uu.CheckableTag=sqe;const pqe=e=>{const t=e!=null&&e.algorithm?up(e.algorithm):up(L1),n=Object.assign(Object.assign({},Hg),e==null?void 0:e.token);return uA(n,{override:e==null?void 0:e.token},t,bA)};function mqe(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 gqe=(e,t)=>{const n=t??L1(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),mqe(t??e)),Gte(r)),{controlHeight:o}),qte(Object.assign(Object.assign({},n),{controlHeight:o})))},Ls=(e,t)=>new Un(e).setA(t).toRgbString(),vm=(e,t)=>new Un(e).lighten(t).toHexString(),vqe=e=>{const t=xf(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]}},yqe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ls(r,.85),colorTextSecondary:Ls(r,.65),colorTextTertiary:Ls(r,.45),colorTextQuaternary:Ls(r,.25),colorFill:Ls(r,.18),colorFillSecondary:Ls(r,.12),colorFillTertiary:Ls(r,.08),colorFillQuaternary:Ls(r,.04),colorBgSolid:Ls(r,.95),colorBgSolidHover:Ls(r,1),colorBgSolidActive:Ls(r,.9),colorBgElevated:vm(n,12),colorBgContainer:vm(n,8),colorBgLayout:vm(n,0),colorBgSpotlight:vm(n,26),colorBgBlur:Ls(r,.04),colorBorder:vm(n,26),colorBorderSecondary:vm(n,19)}},bqe=(e,t)=>{const n=Object.keys(mA).map(o=>{const i=xf(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??L1(e);return Object.assign(Object.assign(Object.assign({},r),n),Kte(e,{generateColorPalettes:vqe,generateNeutralColorPalettes:yqe}))};function Sqe(){const[e,t,n]=Ho();return{theme:e,token:t,hashId:n}}const pa={defaultSeed:Ub.token,useToken:Sqe,defaultAlgorithm:L1,darkAlgorithm:bqe,compactAlgorithm:gqe,getDesignToken:pqe,defaultConfig:Ub,_internalContext:gA};var Cqe=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 o=0,r=Object.getOwnPropertySymbols(e);od.createElement(xqe,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),yp=d.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:o,bordered:i}=e,a=Cqe(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=gd("timePicker",o,i),l=d.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return d.createElement(wqe,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Tle=jf(yp,"popupAlign",void 0,"picker");yp._InternalPanelDoNotUseOrYouWillBeFired=Tle;yp.RangePicker=Eqe;yp._InternalPanelDoNotUseOrYouWillBeFired=Tle;const _qe=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,o=e.map(function(i){var a=i.value,s=i.label,l=s??n.get(a);return r.set(a,l),z(z({},i),{},{label:l})});return t.current.valueLabels=r,[o]},[e])};var $qe=function(t,n,r,o){return d.useMemo(function(){var i=function(p){return p.map(function(m){var g=m.value;return g})},a=i(t),s=i(n),l=a.filter(function(h){return!o[h]}),c=a,u=s;if(r){var f=il(a,!0,o);c=f.checkedKeys,u=f.halfCheckedKeys}return[Array.from(new Set([].concat(Ze(l),Ze(c)))),u]},[t,n,r,o])},Pqe=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},Oqe=function(t){var n=t||{},r=n.label,o=n.value,i=n.children;return{_title:r?[r]:["title","label"],value:o||"value",key:o||"value",children:i||"children"}},I6=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Mqe=function(t,n){var r=[],o=function i(a){a.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),i(l))})};return o(t),r},xW=function(t){return t==null};const Tqe=function(e,t){return d.useMemo(function(){var n=oS(e,{fieldNames:t,initWrapper:function(o){return z(z({},o),{},{valueEntities:new Map})},processEntity:function(o,i){var a=o.node[t.value];i.valueEntities.set(a,o)}});return n},[e,t])};var GD=function(){return null},Rqe=["children","value"];function Rle(e){return ai(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,o=n.props,i=o.children,a=o.value,s=At(o,Rqe),l=z({key:r,value:a},s),c=Rle(i);return c.length&&(l.children=c),l}).filter(function(t){return t})}function k6(e){if(!e)return e;var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return yr(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Iqe(e,t,n,r,o,i){var a=null,s=null;function l(){function c(u){var f=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 g="".concat(f,"-").concat(m),v=p[i.value],b=n.includes(v),y=c(p[i.children]||[],g,b),S=d.createElement(GD,p,y.map(function(E){return E.node}));if(t===v&&(a=S),b){var w={pos:g,node:S,children:y};return h||s.push(w),w}return null}).filter(function(p){return p})}s||(s=[],c(r),s.sort(function(u,f){var h=u.node.props.value,p=f.node.props.value,m=n.indexOf(h),g=n.indexOf(p);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return yr(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return yr(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),o?s:s.map(function(u){var f=u.node;return f})}})}var kqe=function(t,n,r){var o=r.fieldNames,i=r.treeNodeFilterProp,a=r.filterTreeNode,s=o.children;return d.useMemo(function(){if(!n||a===!1)return t;var l=typeof a=="function"?a:function(u,f){return String(f[i]).toUpperCase().includes(n.toUpperCase())},c=function u(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(p,m){var g=m[s],v=h||l(n,k6(m)),b=u(g||[],v);return(v||b.length)&&p.push(z(z({},m),{},Z({isLeaf:void 0},s,b))),p},[])};return c(t)},[t,n,s,i,a])};function EW(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Nqe(e,t){var n=t.id,r=t.pId,o=t.rootPId,i=new Map,a=[];return e.forEach(function(s){var l=s[n],c=z(z({},s),{},{key:s.key||l});i.set(l,c)}),i.forEach(function(s){var l=s[r],c=i.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===o||o===null)&&a.push(s)}),a}function Aqe(e,t,n){return d.useMemo(function(){if(e){if(n){var r=z({id:"id",pId:"pId",rootPId:null},Ht(n)==="object"?n:{});return Nqe(e,r)}return e}return Rle(t)},[t,n,e])}var Ile=d.createContext(null),kle=d.createContext(null),Dqe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},jqe=function(t,n){var r=BA(),o=r.prefixCls,i=r.multiple,a=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=d.useContext(kle),f=u.virtual,h=u.listHeight,p=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,b=u.onSelect,y=u.dropdownMatchSelectWidth,S=u.treeExpandAction,w=u.treeTitleRender,E=u.onPopupScroll,C=u.leftMaxCount,x=u.leafCountOnly,_=u.valueEntities,P=d.useContext(Ile),O=P.checkable,I=P.checkedKeys,M=P.halfCheckedKeys,T=P.treeExpandedKeys,D=P.treeDefaultExpandAll,A=P.treeDefaultExpandedKeys,j=P.onTreeExpand,k=P.treeIcon,F=P.showTreeIcon,V=P.switcherIcon,W=P.treeLine,K=P.treeNodeFilterProp,L=P.loadData,Q=P.treeLoadedKeys,ee=P.treeMotion,re=P.onTreeLoad,ie=P.keyEntities,G=d.useRef(),X=ed(function(){return g},[l,g],function(Ue,Ve){return Ve[0]&&Ue[1]!==Ve[1]}),ne=d.useMemo(function(){return O?{checked:I,halfChecked:M}:null},[O,I,M]);d.useEffect(function(){if(l&&!i&&I.length){var Ue;(Ue=G.current)===null||Ue===void 0||Ue.scrollTo({key:I[0]})}},[l]);var le=function(Ve){Ve.preventDefault()},ce=function(Ve,Tt){var et=Tt.node;O&&I6(et)||(b(et.key,{selected:!I.includes(et.key)}),i||s(!1))},oe=d.useState(A),se=$e(oe,2),fe=se[0],te=se[1],he=d.useState(null),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=d.useMemo(function(){return T?Ze(T):a?Oe:fe},[fe,Oe,T,a]),ye=function(Ve){te(Ve),Me(Ve),j&&j(Ve)},ve=String(a).toLowerCase(),be=function(Ve){return ve?String(Ve[K]).toLowerCase().includes(ve):!1};d.useEffect(function(){a&&Me(Mqe(g,v))},[a]);var Pe=d.useState(function(){return new Map}),Ne=$e(Pe,2),U=Ne[0],H=Ne[1];d.useEffect(function(){C&&H(new Map)},[C]);function q(Ue){var Ve=Ue[v.value];if(!U.has(Ve)){var Tt=_.get(Ve),et=(Tt.children||[]).length===0;if(et)U.set(Ve,!1);else{var st=Tt.children.filter(function(gt){return!gt.node.disabled&&!gt.node.disableCheckbox&&!I.includes(gt.node[v.value])}),yt=st.length;U.set(Ve,yt>C)}}return U.get(Ve)}var me=An(function(Ue){var Ve=Ue[v.value];return I.includes(Ve)||C===null?!1:C<=0?!0:x&&C?q(Ue):!1}),Ce=function Ue(Ve){var Tt=Fc(Ve),et;try{for(Tt.s();!(et=Tt.n()).done;){var st=et.value;if(!(st.disabled||st.selectable===!1)){if(a){if(be(st))return st}else return st;if(st[v.children]){var yt=Ue(st[v.children]);if(yt)return yt}}}}catch(gt){Tt.e(gt)}finally{Tt.f()}return null},ue=d.useState(null),Le=$e(ue,2),He=Le[0],ge=Le[1],De=ie[He];d.useEffect(function(){if(l){var Ue=null,Ve=function(){var et=Ce(X);return et?et[v.value]:null};!i&&I.length&&!a?Ue=I[0]:Ue=Ve(),ge(Ue)}},[l,a]),d.useImperativeHandle(n,function(){var Ue;return{scrollTo:(Ue=G.current)===null||Ue===void 0?void 0:Ue.scrollTo,onKeyDown:function(Tt){var et,st=Tt.which;switch(st){case ut.UP:case ut.DOWN:case ut.LEFT:case ut.RIGHT:(et=G.current)===null||et===void 0||et.onKeyDown(Tt);break;case ut.ENTER:{if(De){var yt=me(De.node),gt=(De==null?void 0:De.node)||{},Lt=gt.selectable,St=gt.value,wt=gt.disabled;Lt!==!1&&!wt&&!yt&&ce(null,{node:{key:He},selected:!I.includes(St)})}break}case ut.ESC:s(!1)}},onKeyUp:function(){}}});var qe=ed(function(){return!a},[a,T||fe],function(Ue,Ve){var Tt=$e(Ue,1),et=Tt[0],st=$e(Ve,2),yt=st[0],gt=st[1];return et!==yt&&!!(yt||gt)}),Fe=qe?L:null;if(X.length===0)return d.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:le},c);var Ke={fieldNames:v};return Q&&(Ke.loadedKeys=Q),Se&&(Ke.expandedKeys=Se),d.createElement("div",{onMouseDown:le},De&&l&&d.createElement("span",{style:Dqe,"aria-live":"assertive"},De.node.value),d.createElement(ple.Provider,{value:{nodeDisabled:me}},d.createElement(yP,Ge({ref:G,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:X,height:h,itemHeight:p,itemScrollOffset:m,virtual:f!==!1&&y!==!1,multiple:i,icon:k,showIcon:F,switcherIcon:V,showLine:W,loadData:Fe,motion:ee,activeKey:He,checkable:O,checkStrictly:!0,checkedKeys:ne,selectedKeys:O?[]:I,defaultExpandAll:D,titleRender:w},Ke,{onActiveChange:ge,onSelect:ce,onCheck:ce,onExpand:ye,onLoad:re,filterTreeNode:be,expandAction:S,onScroll:E}))))},Fqe=d.forwardRef(jqe),YD="SHOW_ALL",XD="SHOW_PARENT",bP="SHOW_CHILD";function _W(e,t,n,r){var o=new Set(e);return t===bP?e.filter(function(i){var a=n[i];return!a||!a.children||!a.children.some(function(s){var l=s.node;return o.has(l[r.value])})||!a.children.every(function(s){var l=s.node;return I6(l)||o.has(l[r.value])})}):t===XD?e.filter(function(i){var a=n[i],s=a?a.parent:null;return!s||I6(s.node)||!o.has(s.key)}):e}var Lqe=["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 Bqe(e){return!e||Ht(e)!=="object"}var zqe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tree-select":r,i=e.value,a=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,h=e.onSearch,p=e.autoClearSearchValue,m=p===void 0?!0:p,g=e.filterTreeNode,v=e.treeNodeFilterProp,b=v===void 0?"value":v,y=e.showCheckedStrategy,S=e.treeNodeLabelProp,w=e.multiple,E=e.treeCheckable,C=e.treeCheckStrictly,x=e.labelInValue,_=e.maxCount,P=e.fieldNames,O=e.treeDataSimpleMode,I=e.treeData,M=e.children,T=e.loadData,D=e.treeLoadedKeys,A=e.onTreeLoad,j=e.treeDefaultExpandAll,k=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,V=e.onTreeExpand,W=e.treeExpandAction,K=e.virtual,L=e.listHeight,Q=L===void 0?200:L,ee=e.listItemHeight,re=ee===void 0?20:ee,ie=e.listItemScrollOffset,G=ie===void 0?0:ie,X=e.onDropdownVisibleChange,ne=e.dropdownMatchSelectWidth,le=ne===void 0?!0:ne,ce=e.treeLine,oe=e.treeIcon,se=e.showTreeIcon,fe=e.switcherIcon,te=e.treeMotion,he=e.treeTitleRender,pe=e.onPopupScroll,Oe=At(e,Lqe),Me=VA(n),Se=E&&!C,ye=E||C,ve=C||x,be=ye||w,Pe=xn(a,{value:i}),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=d.useMemo(function(){return E?y||bP:YD},[y,E]),me=d.useMemo(function(){return Oqe(P)},[JSON.stringify(P)]),Ce=xn("",{value:u!==void 0?u:f,postState:function(xt){return xt||""}}),ue=$e(Ce,2),Le=ue[0],He=ue[1],ge=function(xt){He(xt),h==null||h(xt)},De=Aqe(I,M,O),qe=Tqe(De,me),Fe=qe.keyEntities,Ke=qe.valueEntities,Ue=d.useCallback(function(Bt){var xt=[],bt=[];return Bt.forEach(function(Ft){Ke.has(Ft)?bt.push(Ft):xt.push(Ft)}),{missingRawValues:xt,existRawValues:bt}},[Ke]),Ve=kqe(De,Le,{fieldNames:me,treeNodeFilterProp:b,filterTreeNode:g}),Tt=d.useCallback(function(Bt){if(Bt){if(S)return Bt[S];for(var xt=me._title,bt=0;btft)){var Re=st(Bt);if(H(Re),m&&He(""),s){var It=Bt;Se&&(It=Ft.map(function(ke){var Je=Ke.get(ke);return Je?Je.node[me.value]:ke}));var tt=xt||{triggerValue:void 0,selected:void 0},Ot=tt.triggerValue,Pt=tt.selected,pn=It;if(C){var Pn=wt.filter(function(ke){return!It.includes(ke.value)});pn=[].concat(Ze(pn),Ze(Pn))}var $=st(pn),R={preValue:St,triggerValue:Ot},J=!0;(C||bt==="selection"&&!Pt)&&(J=!1),Iqe(R,Ot,Bt,De,J,me),ye?R.checked=Pt:R.selected=Pt;var Ee=ve?$:$.map(function(ke){return ke.value});s(be?Ee:Ee[0],ve?null:$.map(function(ke){return ke.label}),R)}}}),Rt=d.useCallback(function(Bt,xt){var bt,Ft=xt.selected,Re=xt.source,It=Fe[Bt],tt=It==null?void 0:It.node,Ot=(bt=tt==null?void 0:tt[me.value])!==null&&bt!==void 0?bt:Bt;if(!be)dt([Ot],{selected:!0,triggerValue:Ot},"option");else{var Pt=Ft?[].concat(Ze(Nt),[Ot]):je.filter(function(Je){return Je!==Ot});if(Se){var pn=Ue(Pt),Pn=pn.missingRawValues,$=pn.existRawValues,R=$.map(function(Je){return Ke.get(Je).key}),J;if(Ft){var Ee=il(R,!0,Fe);J=Ee.checkedKeys}else{var ke=il(R,{checked:!1,halfCheckedKeys:Xe},Fe);J=ke.checkedKeys}Pt=[].concat(Ze(Pn),Ze(J.map(function(Je){return Fe[Je].node[me.value]})))}dt(Pt,{selected:Ft,triggerValue:Ot},Re||"option")}Ft||!be?l==null||l(Ot,k6(tt)):c==null||c(Ot,k6(tt))},[Ue,Ke,Fe,me,be,Nt,dt,Se,l,c,je,Xe,_]),Ct=d.useCallback(function(Bt){if(X){var xt={};Object.defineProperty(xt,"documentClickClose",{get:function(){return yr(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(Bt,xt)}},[X]),Wt=EW(function(Bt,xt){var bt=Bt.map(function(Ft){return Ft.value});if(xt.type==="clear"){dt(bt,{},"selection");return}xt.values.length&&Rt(xt.values[0].value,{selected:!1,source:"selection"})}),at=d.useMemo(function(){return{virtual:K,dropdownMatchSelectWidth:le,listHeight:Q,listItemHeight:re,listItemScrollOffset:G,treeData:Ve,fieldNames:me,onSelect:Rt,treeExpandAction:W,treeTitleRender:he,onPopupScroll:pe,leftMaxCount:_===void 0?null:_-Et.length,leafCountOnly:q==="SHOW_CHILD"&&!C&&!!E,valueEntities:Ke}},[K,le,Q,re,G,Ve,me,Rt,W,he,pe,_,Et.length,q,C,E,Ke]),$t=d.useMemo(function(){return{checkable:ye,loadData:T,treeLoadedKeys:D,onTreeLoad:A,checkedKeys:je,halfCheckedKeys:Xe,treeDefaultExpandAll:j,treeExpandedKeys:k,treeDefaultExpandedKeys:F,onTreeExpand:V,treeIcon:oe,treeMotion:te,showTreeIcon:se,switcherIcon:fe,treeLine:ce,treeNodeFilterProp:b,keyEntities:Fe}},[ye,T,D,A,je,Xe,j,k,F,V,oe,te,se,fe,ce,b,Fe]);return d.createElement(kle.Provider,{value:at},d.createElement(Ile.Provider,{value:$t},d.createElement(HA,Ge({ref:t},Oe,{id:Me,prefixCls:o,mode:be?"multiple":void 0,displayValues:Et,onDisplayValuesChange:Wt,searchValue:Le,onSearch:ge,OptionList:Fqe,emptyOptions:!De.length,onDropdownVisibleChange:Ct,dropdownMatchSelectWidth:le}))))}),fS=zqe;fS.TreeNode=GD;fS.SHOW_ALL=YD;fS.SHOW_PARENT=XD;fS.SHOW_CHILD=bP;const Hqe=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${_e(e.paddingXS)} ${_e(e.calc(e.paddingXS).div(2).equal())}`},yle(n,kn(e,{colorBgContainer:r})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},aP(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Uqe(e,t,n){return Kn("TreeSelect",r=>{const o=kn(r,{treePrefixCls:t});return[Hqe(o)]},ble)(e,n)}var Wqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,size:o,disabled:i,bordered:a=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:f=256,listItemHeight:h,placement:p,notFoundContent:m,switcherIcon:g,treeLine:v,getPopupContainer:b,popupClassName:y,dropdownClassName:S,treeIcon:w=!1,transitionName:E,choiceTransitionName:C="",status:x,treeExpandAction:_,builtinPlacements:P,dropdownMatchSelectWidth:O,popupMatchSelectWidth:I,allowClear:M,variant:T,dropdownStyle:D,tagRender:A,maxCount:j,showCheckedStrategy:k,treeCheckStrictly:F}=e,V=Wqe(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:W,getPrefixCls:K,renderEmpty:L,direction:Q,virtual:ee,popupMatchSelectWidth:re,popupOverflow:ie}=d.useContext(Yt),[,G]=Ho(),X=h??(G==null?void 0:G.controlHeightSM)+(G==null?void 0:G.paddingXXS),ne=K(),le=K("select",r),ce=K("select-tree",r),oe=K("tree-select",r),{compactSize:se,compactItemClassnames:fe}=gc(le,Q),te=Mr(le),he=Mr(oe),[pe,Oe,Me]=GA(le,te),[Se]=Uqe(oe,ce,he),[ye,ve]=gd("treeSelect",T,a),be=xe(y||S,`${oe}-dropdown`,{[`${oe}-dropdown-rtl`]:Q==="rtl"},l,Me,te,he,Oe),Pe=!!(c||u),Ne=d.useMemo(()=>{if(!(j&&(k==="SHOW_ALL"&&!F||k==="SHOW_PARENT")))return j},[j,k,F]),U=YA(e.suffixIcon,e.showArrow),H=(n=I??O)!==null&&n!==void 0?n:re,{status:q,hasFeedback:me,isFormItemInput:Ce,feedbackIcon:ue}=d.useContext(Io),Le=md(q,x),{suffixIcon:He,removeIcon:ge,clearIcon:De}=U$(Object.assign(Object.assign({},V),{multiple:Pe,showSuffixIcon:U,hasFeedback:me,feedbackIcon:ue,prefixCls:le,componentName:"TreeSelect"})),qe=M===!0?{clearIcon:De}:M;let Fe;m!==void 0?Fe=m:Fe=(L==null?void 0:L("Select"))||d.createElement(X1,{componentName:"Select"});const Ke=Yn(V,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ue=d.useMemo(()=>p!==void 0?p:Q==="rtl"?"bottomRight":"bottomLeft",[p,Q]),Ve=Eo(St=>{var wt;return(wt=o??se)!==null&&wt!==void 0?wt:St}),Tt=d.useContext(zo),et=i??Tt,st=xe(!r&&oe,{[`${le}-lg`]:Ve==="large",[`${le}-sm`]:Ve==="small",[`${le}-rtl`]:Q==="rtl",[`${le}-${ye}`]:ve,[`${le}-in-form-item`]:Ce},ac(le,Le,me),fe,s,l,Me,te,he,Oe),yt=St=>d.createElement(Sle,{prefixCls:ce,switcherIcon:g,treeNodeProps:St,showLine:v}),[gt]=vl("SelectLike",D==null?void 0:D.zIndex),Lt=d.createElement(fS,Object.assign({virtual:ee,disabled:et},Ke,{dropdownMatchSelectWidth:H,builtinPlacements:qA(P,ie),ref:t,prefixCls:le,className:st,listHeight:f,listItemHeight:X,treeCheckable:c&&d.createElement("span",{className:`${le}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:He,multiple:Pe,placement:Ue,removeIcon:ge,allowClear:qe,switcherIcon:yt,showTreeIcon:w,notFoundContent:Fe,getPopupContainer:b||W,treeMotion:null,dropdownClassName:be,dropdownStyle:Object.assign(Object.assign({},D),{zIndex:gt}),choiceTransitionName:Mi(ne,"",C),transitionName:Mi(ne,"slide-up",E),treeExpandAction:_,tagRender:Pe?A:void 0,maxCount:Ne,showCheckedStrategy:k,treeCheckStrictly:F}));return pe(Se(Lt))},Kqe=d.forwardRef(Vqe),Vp=Kqe,qqe=jf(Vp,"dropdownAlign",e=>Yn(e,["visible"]));Vp.TreeNode=GD;Vp.SHOW_ALL=YD;Vp.SHOW_PARENT=XD;Vp.SHOW_CHILD=bP;Vp._InternalPanelDoNotUseOrYouWillBeFired=qqe;const yR=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.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(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(yr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Gqe(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 $W(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Yqe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Gqe(e,t),$W(t)):e.onSuccess($W(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(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var Xqe=function(){var e=Bo(nr().mark(function t(n,r){var o,i,a,s,l,c,u,f;return nr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Bo(nr().mark(function g(v){return nr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(S){v.file(function(w){r(w)?(v.fullPath&&!w.webkitRelativePath&&(Object.defineProperties(w,{webkitRelativePath:{writable:!0}}),w.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(w,{webkitRelativePath:{writable:!1}})),S(w)):S(null)})}));case 1:case"end":return y.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=Bo(nr().mark(function g(v){var b,y,S,w,E;return nr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:b=v.createReader(),y=[];case 2:return x.next=5,new Promise(function(_){b.readEntries(_,function(){return _([])})});case 5:if(S=x.sent,w=S.length,w){x.next=9;break}return x.abrupt("break",12);case 9:for(E=0;E{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${_e(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:`${_e(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 ${_e(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}}}}}},rGe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},nc()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(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({},wa),{padding:`0 ${_e(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + `]:{color:e.colorTextDisabled}}}}}},nGe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},nc()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(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({},wa),{padding:`0 ${_e(e.paddingXS)}`,lineHeight:o,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:i(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:'""'}}})}}},oGe=e=>{const{componentCls:t}=e,n=new Gn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Gn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:TA(e)},n,r]},iGe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[` + `]:{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:i(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:'""'}}})}}},rGe=e=>{const{componentCls:t}=e,n=new Gn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Gn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:OA(e)},n,r]},oGe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=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:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},wa),{width:r,height:r,lineHeight:_e(i(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:o,width:`calc(100% - ${_e(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${dp[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${dp.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},aGe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[` + `]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},wa),{width:r,height:r,lineHeight:_e(i(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:o,width:`calc(100% - ${_e(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${dp[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${dp.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},iGe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=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({},nc()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${_e(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% - ${_e(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${_e(i(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 ${_e(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},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% - ${_e(i(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% - ${_e(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},sGe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},lGe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qn(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"}})}},cGe=e=>({actionsColor:e.colorTextDescription}),uGe=Kn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=kn(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[lGe(a),nGe(a),iGe(a),aGe(a),rGe(a),oGe(a),sGe(a),H1(a)]},cGe);function JC(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 ZC(e,t){const n=Ze(t),r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function CR(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function dGe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const fGe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Ale=e=>e.indexOf("image/")===0,hGe=e=>{if(e.type&&!e.thumbUrl)return Ale(e.type);const t=e.thumbUrl||e.url||"",n=fGe(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)},Pd=200;function pGe(e){return new Promise(t=>{if(!e.type||!Ale(e.type)){t("");return}const n=document.createElement("canvas");n.width=Pd,n.height=Pd,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Pd}px; height: ${Pd}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=Pd,l=Pd,c=0,u=0;i>a?(l=a*(Pd/i),u=-(l-s)/2):(s=i*(Pd/a),c=-(s-l)/2),r.drawImage(o,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const mGe=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:h,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,previewIcon:b,removeIcon:y,downloadIcon:S,extra:w,onPreview:E,onDownload:C,onClose:x}=e;var _,P;const{status:O}=s,[I,M]=d.useState(O);d.useEffect(()=>{O!=="removed"&&M(O)},[O]);const[T,D]=d.useState(!1);d.useEffect(()=>{const se=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(se)}},[]);const A=u(s);let j=d.createElement("div",{className:`${n}-icon`},A);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(I==="uploading"||!s.thumbUrl&&!s.url){const se=xe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:I!=="uploading"});j=d.createElement("div",{className:se},A)}else{const se=p!=null&&p(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):A,fe=xe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});j=d.createElement("a",{className:fe,onClick:te=>E(s,te),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},se)}const k=xe(`${n}-list-item`,`${n}-list-item-${I}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,V=(typeof g=="function"?g(s):g)?f((typeof y=="function"?y(s):y)||d.createElement(EHe,null),()=>x(s),n,i.removeFile,!0):null,W=(typeof v=="function"?v(s):v)&&I==="done"?f((typeof S=="function"?S(s):S)||d.createElement(PHe,null),()=>C(s),n,i.downloadFile):null,K=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:xe(`${n}-list-item-actions`,{picture:a==="picture"})},W,V),L=typeof w=="function"?w(s):w,Q=L&&d.createElement("span",{className:`${n}-list-item-extra`},L),ee=xe(`${n}-list-item-name`),re=s.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ee,title:s.name},F,{href:s.url,onClick:se=>E(s,se)}),s.name,Q):d.createElement("span",{key:"view",className:ee,onClick:se=>E(s,se),title:s.name},s.name,Q),ie=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:se=>E(s,se),title:i.previewFile},typeof b=="function"?b(s):b||d.createElement(uP,null)):null,G=(a==="picture-card"||a==="picture-circle")&&I!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},ie,I==="done"&&W,V),{getPrefixCls:X}=d.useContext(Yt),ne=X(),le=d.createElement("div",{className:k},j,re,K,G,T&&d.createElement(Jo,{motionName:`${ne}-fade`,visible:I==="uploading",motionDeadline:2e3},se=>{let{className:fe}=se;const te="percent"in s?d.createElement(jD,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:xe(`${n}-list-item-progress`,fe)},te)})),ce=s.response&&typeof s.response=="string"?s.response:((_=s.error)===null||_===void 0?void 0:_.statusText)||((P=s.error)===null||P===void 0?void 0:P.message)||i.uploadError,oe=I==="error"?d.createElement(xa,{title:ce,getPopupContainer:se=>se.parentNode},le):le;return d.createElement("div",{className:xe(`${n}-list-item-container`,r),style:o,ref:t},h?h(oe,s,l,{download:C.bind(null,s),preview:E.bind(null,s),remove:x.bind(null,s)}):oe)}),gGe=(e,t)=>{const{listType:n="text",previewFile:r=pGe,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=hGe,prefixCls:u,items:f=[],showPreviewIcon:h=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,progress:S={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:E=!0,itemRender:C,disabled:x}=e,_=JA(),[P,O]=d.useState(!1),I=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(Q=>{!(Q.originFileObj instanceof File||Q.originFileObj instanceof Blob)||Q.thumbUrl!==void 0||(Q.thumbUrl="",r==null||r(Q.originFileObj).then(ee=>{Q.thumbUrl=ee||"",_()}))})},[n,f,r]),d.useEffect(()=>{O(!0)},[]);const M=(Q,ee)=>{if(o)return ee==null||ee.preventDefault(),o(Q)},T=Q=>{typeof i=="function"?i(Q):Q.url&&window.open(Q.url)},D=Q=>{a==null||a(Q)},A=Q=>{if(l)return l(Q,n);const ee=Q.status==="uploading";if(n.startsWith("picture")){const re=n==="picture"?d.createElement(Gc,null):s.uploading,ie=c!=null&&c(Q)?d.createElement(gUe,null):d.createElement(IHe,null);return ee?re:ie}return ee?d.createElement(Gc,null):d.createElement(hUe,null)},j=(Q,ee,re,ie,G)=>{const X={type:"text",size:"small",title:ie,onClick:ne=>{var le,ce;ee(),d.isValidElement(Q)&&((ce=(le=Q.props).onClick)===null||ce===void 0||ce.call(le,ne))},className:`${re}-list-item-action`};return G&&(X.disabled=x),d.isValidElement(Q)?d.createElement(Hn,Object.assign({},X,{icon:Zo(Q,Object.assign(Object.assign({},Q.props),{onClick:()=>{}}))})):d.createElement(Hn,Object.assign({},X),d.createElement("span",null,Q))};d.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:T}));const{getPrefixCls:k}=d.useContext(Yt),F=k("upload",u),V=k(),W=xe(`${F}-list`,`${F}-list-${n}`),K=d.useMemo(()=>Yn(Ug(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),L=Object.assign(Object.assign({},I?{}:K),{motionDeadline:2e3,motionName:`${F}-${I?"animate-inline":"animate"}`,keys:Ze(f.map(Q=>({key:Q.uid,file:Q}))),motionAppear:P});return d.createElement("div",{className:W},d.createElement(b$,Object.assign({},L,{component:!1}),Q=>{let{key:ee,file:re,className:ie,style:G}=Q;return d.createElement(mGe,{key:ee,locale:s,prefixCls:F,className:ie,style:G,file:re,items:f,progress:S,listType:n,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,iconRender:A,actionIconRender:j,itemRender:C,onPreview:M,onDownload:T,onClose:D})}),w&&d.createElement(Jo,Object.assign({},L,{visible:E,forceRender:!0}),Q=>{let{className:ee,style:re}=Q;return Zo(w,ie=>({className:xe(ie.className,ee),style:Object.assign(Object.assign(Object.assign({},re),{pointerEvents:ee?"none":void 0}),ie.style)}))}))},vGe=d.forwardRef(gGe);var yGe=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const yy=`__LIST_IGNORE_${Date.now()}__`,bGe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:h,locale:p,iconRender:m,isImageUrl:g,progress:v,prefixCls:b,className:y,type:S="select",children:w,style:E,itemRender:C,maxCount:x,data:_={},multiple:P=!1,hasControlInside:O=!0,action:I="",accept:M="",supportServerRender:T=!0,rootClassName:D}=e,A=d.useContext(zo),j=h??A,[k,F]=xn(r||[],{value:n,postState:ge=>ge??[]}),[V,W]=d.useState("drop"),K=d.useRef(null),L=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((De,qe)=>{!De.uid&&!Object.isFrozen(De)&&(De.uid=`__AUTO__${ge}_${qe}__`)})},[n]);const Q=(ge,De,qe)=>{let je=Ze(De),Ke=!1;x===1?je=je.slice(-1):x&&(Ke=je.length>x,je=je.slice(0,x)),hi.flushSync(()=>{F(je)});const Ue={file:ge,fileList:je};qe&&(Ue.event=qe),(!Ke||ge.status==="removed"||je.some(Ve=>Ve.uid===ge.uid))&&hi.flushSync(()=>{c==null||c(Ue)})},ee=(ge,De)=>yGe(void 0,void 0,void 0,function*(){const{beforeUpload:qe,transformFile:je}=e;let Ke=ge;if(qe){const Ue=yield qe(ge,De);if(Ue===!1)return!1;if(delete ge[yy],Ue===yy)return Object.defineProperty(ge,yy,{value:!0,configurable:!0}),!1;typeof Ue=="object"&&Ue&&(Ke=Ue)}return je&&(Ke=yield je(Ke)),Ke}),re=ge=>{const De=ge.filter(Ke=>!Ke.file[yy]);if(!De.length)return;const qe=De.map(Ke=>JC(Ke.file));let je=Ze(k);qe.forEach(Ke=>{je=ZC(Ke,je)}),qe.forEach((Ke,Ue)=>{let Ve=Ke;if(De[Ue].parsedFile)Ke.status="uploading";else{const{originFileObj:St}=Ke;let et;try{et=new File([St],St.name,{type:St.type})}catch{et=new Blob([St],{type:St.type}),et.name=St.name,et.lastModifiedDate=new Date,et.lastModified=new Date().getTime()}et.uid=Ke.uid,Ve=et}Q(Ve,je)})},ie=(ge,De,qe)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!CR(De,k))return;const je=JC(De);je.status="done",je.percent=100,je.response=ge,je.xhr=qe;const Ke=ZC(je,k);Q(je,Ke)},G=(ge,De)=>{if(!CR(De,k))return;const qe=JC(De);qe.status="uploading",qe.percent=ge.percent;const je=ZC(qe,k);Q(qe,je,ge)},X=(ge,De,qe)=>{if(!CR(qe,k))return;const je=JC(qe);je.error=ge,je.response=De,je.status="error";const Ke=ZC(je,k);Q(je,Ke)},ne=ge=>{let De;Promise.resolve(typeof o=="function"?o(ge):o).then(qe=>{var je;if(qe===!1)return;const Ke=dGe(ge,k);Ke&&(De=Object.assign(Object.assign({},ge),{status:"removed"}),k==null||k.forEach(Ue=>{const Ve=De.uid!==void 0?"uid":"name";Ue[Ve]===De[Ve]&&!Object.isFrozen(Ue)&&(Ue.status="removed")}),(je=K.current)===null||je===void 0||je.abort(De),Q(De,Ke))})},le=ge=>{W(ge.type),ge.type==="drop"&&(u==null||u(ge))};d.useImperativeHandle(t,()=>({onBatchStart:re,onSuccess:ie,onProgress:G,onError:X,fileList:k,upload:K.current,nativeElement:L.current}));const{getPrefixCls:ce,direction:oe,upload:se}=d.useContext(Yt),fe=ce("upload",b),te=Object.assign(Object.assign({onBatchStart:re,onError:X,onProgress:G,onSuccess:ie},e),{data:_,multiple:P,action:I,accept:M,supportServerRender:T,prefixCls:fe,disabled:j,beforeUpload:ee,onChange:void 0,hasControlInside:O});delete te.className,delete te.style,(!w||j)&&delete te.id;const he=`${fe}-wrapper`,[pe,Oe,Me]=uGe(fe,he),[Se]=zi("Upload",Os.Upload),{showRemoveIcon:ye,showPreviewIcon:ve,showDownloadIcon:be,removeIcon:Pe,previewIcon:Ne,downloadIcon:U,extra:H}=typeof i=="boolean"?{}:i,q=typeof ye>"u"?!j:ye,me=(ge,De)=>i?d.createElement(vGe,{prefixCls:fe,listType:a,items:k,previewFile:f,onPreview:s,onDownload:l,onRemove:ne,showRemoveIcon:q,showPreviewIcon:ve,showDownloadIcon:be,removeIcon:Pe,previewIcon:Ne,downloadIcon:U,iconRender:m,extra:H,locale:Object.assign(Object.assign({},Se),p),isImageUrl:g,progress:v,appendAction:ge,appendActionVisible:De,itemRender:C,disabled:j}):ge,Ce=xe(he,y,D,Oe,Me,se==null?void 0:se.className,{[`${fe}-rtl`]:oe==="rtl",[`${fe}-picture-card-wrapper`]:a==="picture-card",[`${fe}-picture-circle-wrapper`]:a==="picture-circle"}),ue=Object.assign(Object.assign({},se==null?void 0:se.style),E);if(S==="drag"){const ge=xe(Oe,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:k.some(De=>De.status==="uploading"),[`${fe}-drag-hover`]:V==="dragover",[`${fe}-disabled`]:j,[`${fe}-rtl`]:oe==="rtl"});return pe(d.createElement("span",{className:Ce,ref:L},d.createElement("div",{className:ge,style:ue,onDrop:le,onDragOver:le,onDragLeave:le},d.createElement(A6,Object.assign({},te,{ref:K,className:`${fe}-btn`}),d.createElement("div",{className:`${fe}-drag-container`},w))),me()))}const Le=xe(fe,`${fe}-select`,{[`${fe}-disabled`]:j,[`${fe}-hidden`]:!w}),He=d.createElement("div",{className:Le},d.createElement(A6,Object.assign({},te,{ref:K})));return pe(a==="picture-card"||a==="picture-circle"?d.createElement("span",{className:Ce,ref:L},me(He,!!w)):d.createElement("span",{className:Ce,ref:L},He,me()))},Dle=d.forwardRef(bGe);var SGe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{style:n,height:r,hasControlInside:o=!1}=e,i=SGe(e,["style","height","hasControlInside"]);return d.createElement(Dle,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),SP=Dle;SP.Dragger=CGe;SP.LIST_IGNORE=yy;let gn;const wGe=()=>{const e=j$.useApp();return gn=e.message,e.modal,e.notification,null};var jle={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n=function(B,Y){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,we){ae.__proto__=we}||function(ae,we){for(var Te in we)Object.prototype.hasOwnProperty.call(we,Te)&&(ae[Te]=we[Te])})(B,Y)},r=function(){return(r=Object.assign||function(B){for(var Y,ae=1,we=arguments.length;ae"u"||i.Promise||(i.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function f(B,Y){return u.call(B,Y)}function h(B,Y){typeof Y=="function"&&(Y=Y(c(B))),(typeof Reflect>"u"?a:Reflect.ownKeys)(Y).forEach(function(ae){m(B,ae,Y[ae])})}var p=Object.defineProperty;function m(B,Y,ae,we){p(B,Y,l(ae&&f(ae,"get")&&typeof ae.get=="function"?{get:ae.get,set:ae.set,configurable:!0}:{value:ae,configurable:!0,writable:!0},we))}function g(B){return{from:function(Y){return B.prototype=Object.create(Y.prototype),m(B.prototype,"constructor",B),{extend:h.bind(null,B.prototype)}}}}var v=Object.getOwnPropertyDescriptor,b=[].slice;function y(B,Y,ae){return b.call(B,Y,ae)}function S(B,Y){return Y(B)}function w(B){if(!B)throw new Error("Assertion Failed")}function E(B){i.setImmediate?setImmediate(B):setTimeout(B,0)}function C(B,Y){if(typeof Y=="string"&&f(B,Y))return B[Y];if(!Y)return B;if(typeof Y!="string"){for(var ae=[],we=0,Te=Y.length;we{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},sGe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qn(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"}})}},lGe=e=>({actionsColor:e.colorTextDescription}),cGe=Kn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=kn(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[sGe(a),tGe(a),oGe(a),iGe(a),nGe(a),rGe(a),aGe(a),U1(a)]},lGe);function ZC(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 ew(e,t){const n=Ze(t),r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function CR(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function uGe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const dGe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Nle=e=>e.indexOf("image/")===0,fGe=e=>{if(e.type&&!e.thumbUrl)return Nle(e.type);const t=e.thumbUrl||e.url||"",n=dGe(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)},Pd=200;function hGe(e){return new Promise(t=>{if(!e.type||!Nle(e.type)){t("");return}const n=document.createElement("canvas");n.width=Pd,n.height=Pd,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Pd}px; height: ${Pd}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=Pd,l=Pd,c=0,u=0;i>a?(l=a*(Pd/i),u=-(l-s)/2):(s=i*(Pd/a),c=-(s-l)/2),r.drawImage(o,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const pGe=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:h,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,previewIcon:b,removeIcon:y,downloadIcon:S,extra:w,onPreview:E,onDownload:C,onClose:x}=e;var _,P;const{status:O}=s,[I,M]=d.useState(O);d.useEffect(()=>{O!=="removed"&&M(O)},[O]);const[T,D]=d.useState(!1);d.useEffect(()=>{const se=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(se)}},[]);const A=u(s);let j=d.createElement("div",{className:`${n}-icon`},A);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(I==="uploading"||!s.thumbUrl&&!s.url){const se=xe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:I!=="uploading"});j=d.createElement("div",{className:se},A)}else{const se=p!=null&&p(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):A,fe=xe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});j=d.createElement("a",{className:fe,onClick:te=>E(s,te),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},se)}const k=xe(`${n}-list-item`,`${n}-list-item-${I}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,V=(typeof g=="function"?g(s):g)?f((typeof y=="function"?y(s):y)||d.createElement(xHe,null),()=>x(s),n,i.removeFile,!0):null,W=(typeof v=="function"?v(s):v)&&I==="done"?f((typeof S=="function"?S(s):S)||d.createElement($He,null),()=>C(s),n,i.downloadFile):null,K=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:xe(`${n}-list-item-actions`,{picture:a==="picture"})},W,V),L=typeof w=="function"?w(s):w,Q=L&&d.createElement("span",{className:`${n}-list-item-extra`},L),ee=xe(`${n}-list-item-name`),re=s.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ee,title:s.name},F,{href:s.url,onClick:se=>E(s,se)}),s.name,Q):d.createElement("span",{key:"view",className:ee,onClick:se=>E(s,se),title:s.name},s.name,Q),ie=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:se=>E(s,se),title:i.previewFile},typeof b=="function"?b(s):b||d.createElement(uP,null)):null,G=(a==="picture-card"||a==="picture-circle")&&I!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},ie,I==="done"&&W,V),{getPrefixCls:X}=d.useContext(Yt),ne=X(),le=d.createElement("div",{className:k},j,re,K,G,T&&d.createElement(Jo,{motionName:`${ne}-fade`,visible:I==="uploading",motionDeadline:2e3},se=>{let{className:fe}=se;const te="percent"in s?d.createElement(AD,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:xe(`${n}-list-item-progress`,fe)},te)})),ce=s.response&&typeof s.response=="string"?s.response:((_=s.error)===null||_===void 0?void 0:_.statusText)||((P=s.error)===null||P===void 0?void 0:P.message)||i.uploadError,oe=I==="error"?d.createElement(xa,{title:ce,getPopupContainer:se=>se.parentNode},le):le;return d.createElement("div",{className:xe(`${n}-list-item-container`,r),style:o,ref:t},h?h(oe,s,l,{download:C.bind(null,s),preview:E.bind(null,s),remove:x.bind(null,s)}):oe)}),mGe=(e,t)=>{const{listType:n="text",previewFile:r=hGe,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=fGe,prefixCls:u,items:f=[],showPreviewIcon:h=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,progress:S={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:E=!0,itemRender:C,disabled:x}=e,_=XA(),[P,O]=d.useState(!1),I=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(Q=>{!(Q.originFileObj instanceof File||Q.originFileObj instanceof Blob)||Q.thumbUrl!==void 0||(Q.thumbUrl="",r==null||r(Q.originFileObj).then(ee=>{Q.thumbUrl=ee||"",_()}))})},[n,f,r]),d.useEffect(()=>{O(!0)},[]);const M=(Q,ee)=>{if(o)return ee==null||ee.preventDefault(),o(Q)},T=Q=>{typeof i=="function"?i(Q):Q.url&&window.open(Q.url)},D=Q=>{a==null||a(Q)},A=Q=>{if(l)return l(Q,n);const ee=Q.status==="uploading";if(n.startsWith("picture")){const re=n==="picture"?d.createElement(Gc,null):s.uploading,ie=c!=null&&c(Q)?d.createElement(mUe,null):d.createElement(RHe,null);return ee?re:ie}return ee?d.createElement(Gc,null):d.createElement(fUe,null)},j=(Q,ee,re,ie,G)=>{const X={type:"text",size:"small",title:ie,onClick:ne=>{var le,ce;ee(),d.isValidElement(Q)&&((ce=(le=Q.props).onClick)===null||ce===void 0||ce.call(le,ne))},className:`${re}-list-item-action`};return G&&(X.disabled=x),d.isValidElement(Q)?d.createElement(Hn,Object.assign({},X,{icon:Zo(Q,Object.assign(Object.assign({},Q.props),{onClick:()=>{}}))})):d.createElement(Hn,Object.assign({},X),d.createElement("span",null,Q))};d.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:T}));const{getPrefixCls:k}=d.useContext(Yt),F=k("upload",u),V=k(),W=xe(`${F}-list`,`${F}-list-${n}`),K=d.useMemo(()=>Yn(Ug(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),L=Object.assign(Object.assign({},I?{}:K),{motionDeadline:2e3,motionName:`${F}-${I?"animate-inline":"animate"}`,keys:Ze(f.map(Q=>({key:Q.uid,file:Q}))),motionAppear:P});return d.createElement("div",{className:W},d.createElement(b$,Object.assign({},L,{component:!1}),Q=>{let{key:ee,file:re,className:ie,style:G}=Q;return d.createElement(pGe,{key:ee,locale:s,prefixCls:F,className:ie,style:G,file:re,items:f,progress:S,listType:n,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,iconRender:A,actionIconRender:j,itemRender:C,onPreview:M,onDownload:T,onClose:D})}),w&&d.createElement(Jo,Object.assign({},L,{visible:E,forceRender:!0}),Q=>{let{className:ee,style:re}=Q;return Zo(w,ie=>({className:xe(ie.className,ee),style:Object.assign(Object.assign(Object.assign({},re),{pointerEvents:ee?"none":void 0}),ie.style)}))}))},gGe=d.forwardRef(mGe);var vGe=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const yy=`__LIST_IGNORE_${Date.now()}__`,yGe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:h,locale:p,iconRender:m,isImageUrl:g,progress:v,prefixCls:b,className:y,type:S="select",children:w,style:E,itemRender:C,maxCount:x,data:_={},multiple:P=!1,hasControlInside:O=!0,action:I="",accept:M="",supportServerRender:T=!0,rootClassName:D}=e,A=d.useContext(zo),j=h??A,[k,F]=xn(r||[],{value:n,postState:ge=>ge??[]}),[V,W]=d.useState("drop"),K=d.useRef(null),L=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((De,qe)=>{!De.uid&&!Object.isFrozen(De)&&(De.uid=`__AUTO__${ge}_${qe}__`)})},[n]);const Q=(ge,De,qe)=>{let Fe=Ze(De),Ke=!1;x===1?Fe=Fe.slice(-1):x&&(Ke=Fe.length>x,Fe=Fe.slice(0,x)),_i.flushSync(()=>{F(Fe)});const Ue={file:ge,fileList:Fe};qe&&(Ue.event=qe),(!Ke||ge.status==="removed"||Fe.some(Ve=>Ve.uid===ge.uid))&&_i.flushSync(()=>{c==null||c(Ue)})},ee=(ge,De)=>vGe(void 0,void 0,void 0,function*(){const{beforeUpload:qe,transformFile:Fe}=e;let Ke=ge;if(qe){const Ue=yield qe(ge,De);if(Ue===!1)return!1;if(delete ge[yy],Ue===yy)return Object.defineProperty(ge,yy,{value:!0,configurable:!0}),!1;typeof Ue=="object"&&Ue&&(Ke=Ue)}return Fe&&(Ke=yield Fe(Ke)),Ke}),re=ge=>{const De=ge.filter(Ke=>!Ke.file[yy]);if(!De.length)return;const qe=De.map(Ke=>ZC(Ke.file));let Fe=Ze(k);qe.forEach(Ke=>{Fe=ew(Ke,Fe)}),qe.forEach((Ke,Ue)=>{let Ve=Ke;if(De[Ue].parsedFile)Ke.status="uploading";else{const{originFileObj:Tt}=Ke;let et;try{et=new File([Tt],Tt.name,{type:Tt.type})}catch{et=new Blob([Tt],{type:Tt.type}),et.name=Tt.name,et.lastModifiedDate=new Date,et.lastModified=new Date().getTime()}et.uid=Ke.uid,Ve=et}Q(Ve,Fe)})},ie=(ge,De,qe)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!CR(De,k))return;const Fe=ZC(De);Fe.status="done",Fe.percent=100,Fe.response=ge,Fe.xhr=qe;const Ke=ew(Fe,k);Q(Fe,Ke)},G=(ge,De)=>{if(!CR(De,k))return;const qe=ZC(De);qe.status="uploading",qe.percent=ge.percent;const Fe=ew(qe,k);Q(qe,Fe,ge)},X=(ge,De,qe)=>{if(!CR(qe,k))return;const Fe=ZC(qe);Fe.error=ge,Fe.response=De,Fe.status="error";const Ke=ew(Fe,k);Q(Fe,Ke)},ne=ge=>{let De;Promise.resolve(typeof o=="function"?o(ge):o).then(qe=>{var Fe;if(qe===!1)return;const Ke=uGe(ge,k);Ke&&(De=Object.assign(Object.assign({},ge),{status:"removed"}),k==null||k.forEach(Ue=>{const Ve=De.uid!==void 0?"uid":"name";Ue[Ve]===De[Ve]&&!Object.isFrozen(Ue)&&(Ue.status="removed")}),(Fe=K.current)===null||Fe===void 0||Fe.abort(De),Q(De,Ke))})},le=ge=>{W(ge.type),ge.type==="drop"&&(u==null||u(ge))};d.useImperativeHandle(t,()=>({onBatchStart:re,onSuccess:ie,onProgress:G,onError:X,fileList:k,upload:K.current,nativeElement:L.current}));const{getPrefixCls:ce,direction:oe,upload:se}=d.useContext(Yt),fe=ce("upload",b),te=Object.assign(Object.assign({onBatchStart:re,onError:X,onProgress:G,onSuccess:ie},e),{data:_,multiple:P,action:I,accept:M,supportServerRender:T,prefixCls:fe,disabled:j,beforeUpload:ee,onChange:void 0,hasControlInside:O});delete te.className,delete te.style,(!w||j)&&delete te.id;const he=`${fe}-wrapper`,[pe,Oe,Me]=cGe(fe,he),[Se]=zi("Upload",Os.Upload),{showRemoveIcon:ye,showPreviewIcon:ve,showDownloadIcon:be,removeIcon:Pe,previewIcon:Ne,downloadIcon:U,extra:H}=typeof i=="boolean"?{}:i,q=typeof ye>"u"?!j:ye,me=(ge,De)=>i?d.createElement(gGe,{prefixCls:fe,listType:a,items:k,previewFile:f,onPreview:s,onDownload:l,onRemove:ne,showRemoveIcon:q,showPreviewIcon:ve,showDownloadIcon:be,removeIcon:Pe,previewIcon:Ne,downloadIcon:U,iconRender:m,extra:H,locale:Object.assign(Object.assign({},Se),p),isImageUrl:g,progress:v,appendAction:ge,appendActionVisible:De,itemRender:C,disabled:j}):ge,Ce=xe(he,y,D,Oe,Me,se==null?void 0:se.className,{[`${fe}-rtl`]:oe==="rtl",[`${fe}-picture-card-wrapper`]:a==="picture-card",[`${fe}-picture-circle-wrapper`]:a==="picture-circle"}),ue=Object.assign(Object.assign({},se==null?void 0:se.style),E);if(S==="drag"){const ge=xe(Oe,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:k.some(De=>De.status==="uploading"),[`${fe}-drag-hover`]:V==="dragover",[`${fe}-disabled`]:j,[`${fe}-rtl`]:oe==="rtl"});return pe(d.createElement("span",{className:Ce,ref:L},d.createElement("div",{className:ge,style:ue,onDrop:le,onDragOver:le,onDragLeave:le},d.createElement(N6,Object.assign({},te,{ref:K,className:`${fe}-btn`}),d.createElement("div",{className:`${fe}-drag-container`},w))),me()))}const Le=xe(fe,`${fe}-select`,{[`${fe}-disabled`]:j,[`${fe}-hidden`]:!w}),He=d.createElement("div",{className:Le},d.createElement(N6,Object.assign({},te,{ref:K})));return pe(a==="picture-card"||a==="picture-circle"?d.createElement("span",{className:Ce,ref:L},me(He,!!w)):d.createElement("span",{className:Ce,ref:L},He,me()))},Ale=d.forwardRef(yGe);var bGe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{style:n,height:r,hasControlInside:o=!1}=e,i=bGe(e,["style","height","hasControlInside"]);return d.createElement(Ale,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),SP=Ale;SP.Dragger=SGe;SP.LIST_IGNORE=yy;let gn;const CGe=()=>{const e=j$.useApp();return gn=e.message,e.modal,e.notification,null};var Dle={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n=function(B,Y){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,we){ae.__proto__=we}||function(ae,we){for(var Te in we)Object.prototype.hasOwnProperty.call(we,Te)&&(ae[Te]=we[Te])})(B,Y)},r=function(){return(r=Object.assign||function(B){for(var Y,ae=1,we=arguments.length;ae"u"||i.Promise||(i.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function f(B,Y){return u.call(B,Y)}function h(B,Y){typeof Y=="function"&&(Y=Y(c(B))),(typeof Reflect>"u"?a:Reflect.ownKeys)(Y).forEach(function(ae){m(B,ae,Y[ae])})}var p=Object.defineProperty;function m(B,Y,ae,we){p(B,Y,l(ae&&f(ae,"get")&&typeof ae.get=="function"?{get:ae.get,set:ae.set,configurable:!0}:{value:ae,configurable:!0,writable:!0},we))}function g(B){return{from:function(Y){return B.prototype=Object.create(Y.prototype),m(B.prototype,"constructor",B),{extend:h.bind(null,B.prototype)}}}}var v=Object.getOwnPropertyDescriptor,b=[].slice;function y(B,Y,ae){return b.call(B,Y,ae)}function S(B,Y){return Y(B)}function w(B){if(!B)throw new Error("Assertion Failed")}function E(B){i.setImmediate?setImmediate(B):setTimeout(B,0)}function C(B,Y){if(typeof Y=="string"&&f(B,Y))return B[Y];if(!Y)return B;if(typeof Y!="string"){for(var ae=[],we=0,Te=Y.length;we"u"?[]:function(){var B=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[B,c(B),B];var Y=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[Y,c(Y),B]}(),Ne=Rn[0],As=Rn[1],Rn=Rn[2],As=As&&As.then,U=Ne&&Ne.constructor,H=!!Rn,q=function(B,Y){qe.push([B,Y]),Ce&&(queueMicrotask(Lt),Ce=!1)},me=!0,Ce=!0,ue=[],Le=[],He=se,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:oe,pgp:!1,env:{},finalize:oe},De=ge,qe=[],je=0,Ke=[];function Ue(B){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var Y=this._PSD=De;if(typeof B!="function"){if(B!==be)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&et(this,this._value))}this._state=null,this._value=null,++Y.ref,function ae(we,Te){try{Te(function(Ie){if(we._state===null){if(Ie===we)throw new TypeError("A promise cannot be resolved with itself.");var ze=we._lib&&wt();Ie&&typeof Ie.then=="function"?ae(we,function(Ye,nt){Ie instanceof Ue?Ie._then(Ye,nt):Ie.then(Ye,nt)}):(we._state=!0,we._value=Ie,st(we)),ze&&Et()}},et.bind(null,we))}catch(Ie){et(we,Ie)}}(this,B)}var Ve={get:function(){var B=De,Y=Rt;function ae(we,Te){var Ie=this,ze=!B.global&&(B!==De||Y!==Rt),Ye=ze&&!It(),nt=new Ue(function(ot,ct){Ct(Ie,new St(xt(we,B,ze,Ye),xt(Te,B,ze,Ye),ot,ct,B))});return this._consoleTask&&(nt._consoleTask=this._consoleTask),nt}return ae.prototype=be,ae},set:function(B){m(this,"then",B&&B.prototype===be?Ve:{get:function(){return B},set:Ve.set})}};function St(B,Y,ae,we,Te){this.onFulfilled=typeof B=="function"?B:null,this.onRejected=typeof Y=="function"?Y:null,this.resolve=ae,this.reject=we,this.psd=Te}function et(B,Y){var ae,we;Le.push(Y),B._state===null&&(ae=B._lib&&wt(),Y=He(Y),B._state=!1,B._value=Y,we=B,ue.some(function(Te){return Te._value===we._value})||ue.push(we),st(B),ae&&Et())}function st(B){var Y=B._listeners;B._listeners=[];for(var ae=0,we=Y.length;ae.",tt="String expected.",Mt=[],Ot="__dbnames",pn="readonly",Pn="readwrite";function $(B,Y){return B?Y?function(){return B.apply(this,arguments)&&Y.apply(this,arguments)}:B:Y}var R={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function J(B){return typeof B!="string"||/\./.test(B)?function(Y){return Y}:function(Y){return Y[B]===void 0&&B in Y&&delete(Y=T(Y))[B],Y}}function Ee(){throw ne.Type()}function ke(B,Y){try{var ae=Je(B),we=Je(Y);if(ae!==we)return ae==="Array"?1:we==="Array"?-1:ae==="binary"?1:we==="binary"?-1:ae==="string"?1:we==="string"?-1:ae==="Date"?1:we!=="Date"?NaN:-1;switch(ae){case"number":case"Date":case"string":return Yjt+Ut&&$t(jt+ct)})})}var Nt=Nr(ae)&&ae.limit===1/0&&(typeof B!="function"||B===Yr)&&{index:ae.index,range:ae.range};return $t(0).then(function(){if(0=mt})).length!==0?(ct.forEach(function($t){ht.push(function(){var Nt=it,jt=$t._cfg.dbschema;VS(Qe,Nt,lt),VS(Qe,jt,lt),it=Qe._dbSchema=jt;var Ut=GO(Nt,jt);Ut.add.forEach(function(bn){YO(lt,bn[0],bn[1].primKey,bn[1].indexes)}),Ut.change.forEach(function(bn){if(bn.recreate)throw new ne.Upgrade("Not yet support for changing primary key");var hn=lt.objectStore(bn.name);bn.add.forEach(function(_n){return US(hn,_n)}),bn.change.forEach(function(_n){hn.deleteIndex(_n.name),US(hn,_n)}),bn.del.forEach(function(_n){return hn.deleteIndex(_n)})});var sn=$t._cfg.contentUpgrade;if(sn&&$t._cfg.version>mt){zS(Qe,lt),rt._memoizedTables={};var mn=_(jt);Ut.del.forEach(function(bn){mn[bn]=Nt[bn]}),qO(Qe,[Qe.Transaction.prototype]),HS(Qe,[Qe.Transaction.prototype],a(mn),mn),rt.schema=mn;var ln,dn=K(sn);return dn&&ft(),Ut=Ue.follow(function(){var bn;(ln=sn(rt))&&dn&&(bn=It.bind(null,null),ln.then(bn,bn))}),ln&&typeof ln.then=="function"?Ue.resolve(ln):Ut.then(function(){return ln})}}),ht.push(function(Nt){var jt,Ut,sn=$t._cfg.dbschema;jt=sn,Ut=Nt,[].slice.call(Ut.db.objectStoreNames).forEach(function(mn){return jt[mn]==null&&Ut.db.deleteObjectStore(mn)}),qO(Qe,[Qe.Transaction.prototype]),HS(Qe,[Qe.Transaction.prototype],Qe._storeNames,Qe._dbSchema),rt.schema=Qe._dbSchema}),ht.push(function(Nt){Qe.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Qe.idbdb.version/10)===$t._cfg.version?(Qe.idbdb.deleteObjectStore("$meta"),delete Qe._dbSchema.$meta,Qe._storeNames=Qe._storeNames.filter(function(jt){return jt!=="$meta"})):Nt.objectStore("$meta").put($t._cfg.version,"version"))})}),function $t(){return ht.length?Ue.resolve(ht.shift()(rt.idbtrans)).then($t):Ue.resolve()}().then(function(){nL(it,lt)})):Ue.resolve();var Qe,mt,rt,lt,ht,it}).catch(ze)):(a(Te).forEach(function(ct){YO(ae,ct,Te[ct].primKey,Te[ct].indexes)}),zS(B,ae),void Ue.follow(function(){return B.on.populate.fire(Ie)}).catch(ze));var nt,ot})}function Qpe(B,Y){nL(B._dbSchema,Y),Y.db.version%10!=0||Y.objectStoreNames.contains("$meta")||Y.db.createObjectStore("$meta").add(Math.ceil(Y.db.version/10-1),"version");var ae=WS(0,B.idbdb,Y);VS(B,B._dbSchema,Y);for(var we=0,Te=GO(ae,B._dbSchema).change;weMath.pow(2,62)?0:it.oldVersion,Qe=it<1,B.idbdb=ht.result,Ie&&Qpe(B,ct),Xpe(B,it/10,ct,rt))},rt),ht.onsuccess=We(function(){ct=null;var it,$t,Nt,jt,Ut,sn=B.idbdb=ht.result,mn=y(sn.objectStoreNames);if(0"u"?Ue.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(mt){function rt(){return indexedDB.databases().finally(mt)}nt=setInterval(rt,100),rt()}).finally(function(){return clearInterval(nt)}):Promise.resolve()).then(Ye)]).then(function(){return ze(),Y.onReadyBeingFired=[],Ue.resolve(JO(function(){return B.on.ready.fire(B.vip)})).then(function mt(){if(0Y.limit?mt.length=Y.limit:B.length===Y.limit&&mt.length=$t.limit&&(!$t.values||sn.req.values)&&ome(sn.req.query.range,$t.query.range)}),!1,Nt,jt];case"count":return Ut=jt.find(function(sn){return hL(sn.req.query.range,$t.query.range)}),[Ut,!!Ut,Nt,jt]}}(Y,ae,"query",Ie),ct=ot[0],Qe=ot[1],mt=ot[2],rt=ot[3];return ct&&Qe?ct.obsSet=Ie.obsSet:(Qe=we.query(Ie).then(function(lt){var ht=lt.result;if(ct&&(ct.res=ht),ze){for(var it=0,$t=ht.length;it<$t;++it)Object.freeze(ht[it]);Object.freeze(ht)}else lt.result=T(ht);return lt}).catch(function(lt){return rt&&ct&&F(rt,ct),Promise.reject(lt)}),ct={obsSet:Ie.obsSet,promise:Qe,subscribers:new Set,type:"query",req:Ie,dirty:!1},rt?rt.push(ct):(rt=[ct],(mt=mt||(Kf["idb://".concat(Y,"/").concat(ae)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[Ie.query.index.name||""]=rt)),ime(ct,rt,Ye,nt),ct.promise.then(function(lt){return{result:fL(lt.result,Ie,mt==null?void 0:mt.optimisticOps,we,ct,ze)}})}})}})}};function QS(B,Y){return new Proxy(B,{get:function(ae,we,Te){return we==="db"?Y:Reflect.get(ae,we,Te)}})}var pu=(Wo.prototype.version=function(B){if(isNaN(B)||B<.1)throw new ne.Type("Given version is not a positive number");if(B=Math.round(10*B)/10,this.idbdb||this._state.isBeingOpened)throw new ne.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,B);var Y=this._versions,ae=Y.filter(function(we){return we._cfg.version===B})[0];return ae||(ae=new this.Version(B),Y.push(ae),Y.sort(Ype),ae.stores({}),this._state.autoSchema=!1,ae)},Wo.prototype._whenReady=function(B){var Y=this;return this.idbdb&&(this._state.openComplete||De.letThrough||this._vip)?B():new Ue(function(ae,we){if(Y._state.openComplete)return we(new ne.DatabaseClosed(Y._state.dbOpenError));if(!Y._state.isBeingOpened){if(!Y._state.autoOpen)return void we(new ne.DatabaseClosed);Y.open().catch(oe)}Y._state.dbReadyPromise.then(ae,we)}).then(B)},Wo.prototype.use=function(B){var Y=B.stack,ae=B.create,we=B.level,Te=B.name;return Te&&this.unuse({stack:Y,name:Te}),B=this._middlewares[Y]||(this._middlewares[Y]=[]),B.push({stack:Y,create:ae,level:we??10,name:Te}),B.sort(function(Ie,ze){return Ie.level-ze.level}),this},Wo.prototype.unuse=function(B){var Y=B.stack,ae=B.name,we=B.create;return Y&&this._middlewares[Y]&&(this._middlewares[Y]=this._middlewares[Y].filter(function(Te){return we?Te.create!==we:!!ae&&Te.name!==ae})),this},Wo.prototype.open=function(){var B=this;return Bt(ge,function(){return Zpe(B)})},Wo.prototype._close=function(){var B=this._state,Y=Mt.indexOf(this);if(0<=Y&&Mt.splice(Y,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}B.isBeingOpened||(B.dbReadyPromise=new Ue(function(ae){B.dbReadyResolve=ae}),B.openCanceller=new Ue(function(ae,we){B.cancelOpen=we}))},Wo.prototype.close=function(ae){var Y=(ae===void 0?{disableAutoOpen:!0}:ae).disableAutoOpen,ae=this._state;Y?(ae.isBeingOpened&&ae.cancelOpen(new ne.DatabaseClosed),this._close(),ae.autoOpen=!1,ae.dbOpenError=new ne.DatabaseClosed):(this._close(),ae.autoOpen=this._options.autoOpen||ae.isBeingOpened,ae.openComplete=!1,ae.dbOpenError=null)},Wo.prototype.delete=function(B){var Y=this;B===void 0&&(B={disableAutoOpen:!0});var ae=0({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 Hs.messages.get(n)}async updateMessage(n,r){return await Hs.messages.update(n,{content:r})}async deleteMessage(n){return await Hs.messages.delete(n)}subscribeMessages(){EGe(()=>this.messages.toArray()).subscribe({next:r=>{const o=r.map(i=>i.uid);console.log("messagesObservable message uids",o)}})}async createThread(n){var r,o,i;return console.log("useIndexedDB createThread",n.topic),await Hs.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:(o=n.user)==null?void 0:o.nickname,userAvatar:(i=n.user)==null?void 0:i.avatar})}async getAllThreads(){return(await Hs.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 Hs.threads.get(n)}async updateThread(n,r){return await Hs.threads.update(n,r)}async deleteThread(n){return await Hs.threads.delete(n)}}const Hs=new Fle;let jo,Ra,Ia,ym=!1;const _Ge=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Ra=yi.getState().userInfo,Ia=jp.getState().agentInfo,ym){console.log("mqtt is connecting");return}if(jo&&jo.connected){console.log("mqtt already connected");return}if(jo&&jo.reconnecting){console.log("mqtt already reconnecting");return}ym=!0;const r=yi.getState().deviceUid,i={keepalive:30,clientId:e+"/"+po+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1,log(...a){Ag&&console.log("mqtt debug log",...a)}};console.log("mqtt start connect:",i),jo=qCe.connect(J1e(),i),jo.on("connect",()=>{console.log("mqtt event connected"),ym=!1,Jn.emit(gk)}),jo.on("message",async function(a,s,l){console.log("mqtt receive message topic:",a,l);const c=nee.Message.deserializeBinary(s),u=Ll.getState().currentThread,f={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(MGe(c,Ra,Ia))switch(c.getType()){case Tk:case Mk:xR(c);return;case Pk:case Ok:return;case G7:return;case X7:console.log("self transfer message"),kW(h,f);break;case Q7:console.log("self transfer accept message"),NW(h,f);return;case J7:console.log("self transfer reject message"),AW(h,f);return;case Y7:console.log("self recall message"),DW(h);return;case Pb:console.log("thread closed message"),Ll.getState().closeThread(f.topic);break;default:c.setStatus(_k)}else switch(c.getType()){case Tk:case Mk:xR(c);return;case Pk:case Ok:IW(u,f,c.getType());return;case _b:IW(u,f,c.getType());break;case G7:TGe(c,u,f);return;case hye:case pye:case mye:case gye:case vye:case yye:xR(c);return;case X7:console.log("transfer message"),kW(h,f);break;case Q7:console.log("transfer accept message"),NW(h,f);return;case J7:console.log("transfer reject message"),AW(h,f);return;case Y7:console.log("recall message"),DW(h);return;case $b:case Pb:console.log("thread closed message"),Ll.getState().closeThread(f.topic);break;default:console.log("send receive message type",c.getType()),RGe(c,u,f)}console.log("mqtt message received",a,h,f),hd.getState().addMessage(h),Jn.emit(xb,h);const p=Ll.getState().addThreadWithMessage(f,h);console.log("unreadCount",p);try{await Hs.createMessage(h),console.log("Sent message stored in IndexedDB:",h)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),jo.on("packetsend",a=>{console.log("mqtt event packetsend",a)}),jo.on("packetreceive",a=>{console.log("mqtt event packetreceive",a,a.cmd),a.cmd==="publish"||a.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),jo.on("reconnect",()=>{console.log("mqtt event reconnect")}),jo.on("close",()=>{console.log("mqtt event close"),ym=!1,Jn.emit(yk)}),jo.on("disconnect",()=>{console.error("mqtt event disconnected"),ym=!1,Jn.emit(bk)}),jo.on("offline",()=>{console.log("mqtt event offline"),ym=!1,Jn.emit(vk)}),jo.on("error",()=>{console.log("mqtt event error"),Jn.emit(Sk)}),jo.on("end",()=>{console.log("mqtt event end"),Jn.emit(Ck)})},TW=new Set,Lle=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),TW.has(e)||(TW.add(e),Ble(Y_(),Mk,e,t))},RW=new Set,$Ge=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),RW.has(e)||(RW.add(e),Ble(Y_(),Tk,e,t))},Ble=async(e,t,n,r)=>{var i,a,s,l,c,u,f,h;console.log("mqtt mqttSendMessage",n);const o=s_e();if(jo&&jo.connected){const p=new YCe.Thread;p.setUid(r.uid),p.setType(r.type),p.setTopic(r.topic);const m=new s9.User;m.setUid((i=r.user)==null?void 0:i.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 g=new s9.User;(Ia==null?void 0:Ia.uid)!=""&&((r==null?void 0:r.type)===U7||(r==null?void 0:r.type)===W7)?(g.setUid(Ia.uid),g.setNickname(Ia.nickname),g.setAvatar(Ia.avatar),g.setType(z7)):(g.setUid(Ra.uid),g.setNickname(Ra.nickname),g.setAvatar(Ra.avatar),g.setType(H7));const v={orgUid:(l=Ra==null?void 0:Ra.currentOrganization)==null?void 0:l.uid},b=new nee.Message;b.setUid(e),b.setType(t),b.setStatus(q7),b.setCreatedat(o),b.setClient(po),b.setContent(n),b.setUser(g),b.setThread(p),b.setExtra(JSON.stringify(v));const y=b.serializeBinary();jo.publish(r.topic,y);try{const S={uid:b.getUid(),type:b.getType(),content:b.getContent(),client:b.getClient(),createdAt:b.getCreatedat(),status:b.getStatus(),threadTopic:b.getThread().getTopic(),user:{uid:b.getUser().getUid(),nickname:b.getUser().getNickname(),avatar:b.getUser().getAvatar()}};await Hs.createMessage(S),console.log("Sent message stored in IndexedDB:",S)}catch(S){console.error("Error storing sent message in IndexedDB:",S)}}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:(f=r.user)==null?void 0:f.avatar}};let m;(Ia==null?void 0:Ia.uid)!=""&&((r==null?void 0:r.type)===U7||(r==null?void 0:r.type)===W7)?m={uid:Ia.uid,nickname:Ia.nickname,avatar:Ia.avatar,type:z7}:m={uid:Ra.uid,nickname:Ra.nickname,avatar:Ra.avatar,type:H7};const g={orgUid:(h=Ra==null?void 0:Ra.currentOrganization)==null?void 0:h.uid},v={uid:e,type:t,status:q7,createdAt:o,client:po,content:n,extra:JSON.stringify(g),user:m,thread:p};OGe(v)}},wR=()=>{jo?jo.end():console.log("mqttClient is null")},PGe=()=>jo&&jo.connected,OGe=async e=>{const t=JSON.stringify(e),n=await oSe(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){hd.getState().updateMessageStatus(e==null?void 0:e.uid,_k);const r={uid:e==null?void 0:e.uid,type:_k};Jn.emit(EQ,JSON.stringify(r))}else gn.error(n.data.message)},MGe=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function xR(e){console.log("update message status:",e.getContent(),e.getType()),hd.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};Jn.emit(EQ,JSON.stringify(t))}function IW(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===Pk?Jn.emit(T0e):n===Ok?Jn.emit(R0e):n===_b&&Jn.emit(I0e))}function TGe(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Jn.emit(k0e,e.getContent())}function kW(e,t){const n={message:e,thread:t};Jn.emit(wk,JSON.stringify(n))}function NW(e,t){const n=JSON.parse(e==null?void 0:e.content);hd.getState().updateMessageStatus(n.uid,iye);const r={message:e,thread:t};Jn.emit(xk,JSON.stringify(r))}function AW(e,t){const n=JSON.parse(e==null?void 0:e.content);hd.getState().updateMessageStatus(n.uid,aye);const r={message:e,thread:t};Jn.emit(Ek,JSON.stringify(r))}function DW(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),hd.getState().recallMessage(e==null?void 0:e.content)}function RGe(e,t,n){if(!d_e(n==null?void 0:n.topic)&&l_e(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();Lle(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&$Ge(r,n)}}const IGe=hl()(uc(dc(fc(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:U0e}))),zle=()=>{Qb("https://www.weiyuai.cn/docs/zh-CN/")},Qb=e=>{Pi?window.electronAPI.openUrl(e):window.open(e,"_blank")},kGe=async()=>{if(Pi){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},Hle=async()=>Pi?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),NGe=async()=>{if(Pi){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},AGe=(e,t)=>{Pi&&window.electronAPI.showElectronNotification(e,t)},DGe=e=>{Pi?window.electronAPI.setThemeMode(e):console.log("not electron")},j6=()=>{Pi&&window.electronAPI.loginSuccess()},jGe=()=>{Pi&&window.electronAPI.logoutSuccess()};function Ule(){console.debug("useUserInfo");const[e,t]=d.useState(""),{myDevice:n,setMyDevice:r}=IGe(_=>({myDevice:_.myDevice,setMyDevice:_.setMyDevice})),{userInfo:o,deviceUid:i,setUserInfo:a,setDeviceUid:s}=yi(_=>({userInfo:_.userInfo,deviceUid:_.deviceUid,setUserInfo:_.setUserInfo,setDeviceUid:_.setDeviceUid})),{agentInfo:l}=jp(_=>({agentInfo:_.agentInfo})),c=hd(_=>_.addMessage),u=Ll(_=>_.updateThreadContent),f=d.useRef(!1),[h,p]=d.useState(!1);d.useEffect(()=>{p(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===Cye&&p(!0)})})},[o.userOrganizationRoles]);const[m,g]=d.useState(!1);d.useEffect(()=>{g(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===wye&&g(!0)})})},[o.userOrganizationRoles]);const[v,b]=d.useState(!1);d.useEffect(()=>{b(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===xye&&b(!0)})})},[o.userOrganizationRoles]);const[y,S]=d.useState(!1);d.useEffect(()=>{S(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===Eye&&S(!0)})})},[o.userOrganizationRoles]);const w="",E=async()=>{const _=await Hle();console.log("ipAddress",e,_),_.length>0&&(t(_[0]),n.ip=_[0],r(n))},C=async()=>{var P,O;if(f.current)return;f.current=!0;const _=await rSe(l==null?void 0:l.uid);console.log("getAgentMessageUnread response:",_==null?void 0:_.data),(O=(P=_==null?void 0:_.data)==null?void 0:P.data)==null||O.forEach(I=>{console.log("getAgentMessageUnread item:",I),c(I);const M=u(I.threadTopic,I.content);M&&Lle(I==null?void 0:I.uid,M)}),f.current=!1};return d.useEffect(()=>{y&&C()},[y]),d.useEffect(()=>{console.log("useUserInfo useEffect"),(i===void 0||i==="")&&s(Y_()),E()},[]),{userInfo:o,setUserInfo:a,agentInfo:l,handleUpdateAgentStatus:async _=>{const P={...l,status:_};gn.loading("正在更新状态");const O=await nSe(P);console.log("updateAgentStatus:",_,O.data),O.data.code===200?(gn.destroy(),gn.success("状态更新成功")):(gn.destroy(),gn.error("状态更新失败"))},avatar:w,hasRoleAgent:y,hasRoleSuper:h,hasRoleAdmin:m,hasRoleMember:v}}const ia=d.createContext({}),FGe=({children:e})=>{const[t,n]=d.useState(!1),[r,o]=d.useState(!1),i=E1(P=>P.accessToken),a=_ye(P=>P.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m}=Ule(),g=d.useMemo(()=>!!i&&i.trim().length>0,[i]),{themeMode:v,setThemeMode:b,isDarkMode:y}=LQ(),[S,w]=d.useState(bC),E=P=>{let O;P==="en"?O=rB:P==="zh-cn"?O=bC:P==="zh-tw"?O=Sbe:O=bC,console.log("changeLocale localeValue:",O),w(O),localStorage.setItem(D7,O.locale)},[C,x]=d.useState(Zm),_=P=>{x(P),localStorage.setItem(j7,P)};return d.useEffect(()=>{const P=localStorage.getItem(D7);w(P==="en"?rB:bC);const O=localStorage.getItem(j7);x(O===Zm?Zm:O===sp?sp:i2)},[]),N.jsx(ia.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:a,isDarkMode:y,themeMode:v,setThemeMode:b,locale:S,changeLocale:E,mode:C,changeMode:_,isPingLoading:r,setPingLoading:o,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m},children:e})};var CP=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(){}},wP=typeof window>"u"||"Deno"in globalThis;function Ml(){}function LGe(e,t){return typeof e=="function"?e(t):e}function BGe(e){return typeof e=="number"&&e>=0&&e!==1/0}function zGe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jW(e,t){return typeof e=="function"?e(t):e}function HGe(e,t){return typeof e=="function"?e(t):e}function FW(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==ZD(a,t.options))return!1}else if(!Zb(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||o&&o!==t.state.fetchStatus||i&&!i(t))}function LW(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Jb(t.options.mutationKey)!==Jb(i))return!1}else if(!Zb(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ZD(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jb)(e)}function Jb(e){return JSON.stringify(e,(t,n)=>F6(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Zb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Zb(e[n],t[n])):!1}function Wle(e,t){if(e===t)return e;const n=BW(e)&&BW(t);if(n||F6(e)&&F6(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function WGe(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Wle(e,t):t}function VGe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function KGe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ej=Symbol();function Vle(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ej?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Nh,Wd,gg,HG,qGe=(HG=class extends CP{constructor(){super();Tn(this,Nh);Tn(this,Wd);Tn(this,gg);cn(this,gg,t=>{if(!wP&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Ae(this,Wd)||this.setEventListener(Ae(this,gg))}onUnsubscribe(){var t;this.hasListeners()||((t=Ae(this,Wd))==null||t.call(this),cn(this,Wd,void 0))}setEventListener(t){var n;cn(this,gg,t),(n=Ae(this,Wd))==null||n.call(this),cn(this,Wd,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ae(this,Nh)!==t&&(cn(this,Nh,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Ae(this,Nh)=="boolean"?Ae(this,Nh):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Nh=new WeakMap,Wd=new WeakMap,gg=new WeakMap,HG),Kle=new qGe,vg,Vd,yg,UG,GGe=(UG=class extends CP{constructor(){super();Tn(this,vg,!0);Tn(this,Vd);Tn(this,yg);cn(this,yg,t=>{if(!wP&&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(){Ae(this,Vd)||this.setEventListener(Ae(this,yg))}onUnsubscribe(){var t;this.hasListeners()||((t=Ae(this,Vd))==null||t.call(this),cn(this,Vd,void 0))}setEventListener(t){var n;cn(this,yg,t),(n=Ae(this,Vd))==null||n.call(this),cn(this,Vd,t(this.setOnline.bind(this)))}setOnline(t){Ae(this,vg)!==t&&(cn(this,vg,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ae(this,vg)}},vg=new WeakMap,Vd=new WeakMap,yg=new WeakMap,UG),fE=new GGe;function YGe(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function XGe(e){return Math.min(1e3*2**e,3e4)}function qle(e){return(e??"online")==="online"?fE.isOnline():!0}var Gle=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ER(e){return e instanceof Gle}function Yle(e){let t=!1,n=0,r=!1,o;const i=YGe(),a=g=>{var v;r||(h(new Gle(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>Kle.isFocused()&&(e.networkMode==="always"||fE.isOnline())&&e.canRun(),u=()=>qle(e.networkMode)&&e.canRun(),f=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),o==null||o(),i.resolve(g))},h=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),o==null||o(),i.reject(g))},p=()=>new Promise(g=>{var v;o=b=>{(r||c())&&g(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(f).catch(b=>{var C;if(r)return;const y=e.retry??(wP?0:3),S=e.retryDelay??XGe,w=typeof S=="function"?S(n,b):S,E=y===!0||typeof y=="number"&&nc()?void 0:p()).then(()=>{t?h(b):m()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),i)}}function QGe(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=s=>setTimeout(s,0);const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var ya=QGe(),Ah,WG,Xle=(WG=class{constructor(){Tn(this,Ah)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),BGe(this.gcTime)&&cn(this,Ah,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wP?1/0:5*60*1e3))}clearGcTimeout(){Ae(this,Ah)&&(clearTimeout(Ae(this,Ah)),cn(this,Ah,void 0))}},Ah=new WeakMap,WG),bg,Sg,Ws,Yi,m1,Dh,Tl,xu,VG,JGe=(VG=class extends Xle{constructor(t){super();Tn(this,Tl);Tn(this,bg);Tn(this,Sg);Tn(this,Ws);Tn(this,Yi);Tn(this,m1);Tn(this,Dh);cn(this,Dh,!1),cn(this,m1,t.defaultOptions),this.setOptions(t.options),this.observers=[],cn(this,Ws,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,cn(this,bg,eYe(this.options)),this.state=t.state??Ae(this,bg),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Ae(this,Yi))==null?void 0:t.promise}setOptions(t){this.options={...Ae(this,m1),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ae(this,Ws).remove(this)}setData(t,n){const r=WGe(this.state.data,t,this.options);return wn(this,Tl,xu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){wn(this,Tl,xu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=Ae(this,Yi))==null?void 0:r.promise;return(o=Ae(this,Yi))==null||o.cancel(t),n?n.then(Ml).catch(Ml):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ae(this,bg))}isActive(){return this.observers.some(t=>HGe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ej||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||!zGe(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Ae(this,Yi))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Ae(this,Yi))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ae(this,Ws).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ae(this,Yi)&&(Ae(this,Dh)?Ae(this,Yi).cancel({revert:!0}):Ae(this,Yi).cancelRetry()),this.scheduleGc()),Ae(this,Ws).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||wn(this,Tl,xu).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(Ae(this,Yi))return Ae(this,Yi).continueRetry(),Ae(this,Yi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(cn(this,Dh,!0),r.signal)})},i=()=>{const f=Vle(this.options,n),h={queryKey:this.queryKey,meta:this.meta};return o(h),cn(this,Dh,!1),this.options.persister?this.options.persister(f,h,this):f(h)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),cn(this,Sg,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&wn(this,Tl,xu).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=f=>{var h,p,m,g;ER(f)&&f.silent||wn(this,Tl,xu).call(this,{type:"error",error:f}),ER(f)||((p=(h=Ae(this,Ws).config).onError)==null||p.call(h,f,this),(g=(m=Ae(this,Ws).config).onSettled)==null||g.call(m,this.state.data,f,this)),this.scheduleGc()};return cn(this,Yi,Yle({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,p,m,g;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(p=(h=Ae(this,Ws).config).onSuccess)==null||p.call(h,f,this),(g=(m=Ae(this,Ws).config).onSettled)==null||g.call(m,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,h)=>{wn(this,Tl,xu).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{wn(this,Tl,xu).call(this,{type:"pause"})},onContinue:()=>{wn(this,Tl,xu).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),Ae(this,Yi).start()}},bg=new WeakMap,Sg=new WeakMap,Ws=new WeakMap,Yi=new WeakMap,m1=new WeakMap,Dh=new WeakMap,Tl=new WeakSet,xu=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,...ZGe(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 o=t.error;return ER(o)&&o.revert&&Ae(this,Sg)?{...Ae(this,Sg),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ya.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ae(this,Ws).notify({query:this,type:"updated",action:t})})},VG);function ZGe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qle(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eYe(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 Mc,KG,tYe=(KG=class extends CP{constructor(t={}){super();Tn(this,Mc);this.config=t,cn(this,Mc,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??ZD(o,n);let a=this.get(i);return a||(a=new JGe({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){Ae(this,Mc).has(t.queryHash)||(Ae(this,Mc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Ae(this,Mc).get(t.queryHash);n&&(t.destroy(),n===t&&Ae(this,Mc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ya.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ae(this,Mc).get(t)}getAll(){return[...Ae(this,Mc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>FW(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>FW(t,r)):n}notify(t){ya.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ya.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ya.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Mc=new WeakMap,KG),Tc,da,jh,Rc,Ad,qG,nYe=(qG=class extends Xle{constructor(t){super();Tn(this,Rc);Tn(this,Tc);Tn(this,da);Tn(this,jh);this.mutationId=t.mutationId,cn(this,da,t.mutationCache),cn(this,Tc,[]),this.state=t.state||rYe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ae(this,Tc).includes(t)||(Ae(this,Tc).push(t),this.clearGcTimeout(),Ae(this,da).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){cn(this,Tc,Ae(this,Tc).filter(n=>n!==t)),this.scheduleGc(),Ae(this,da).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ae(this,Tc).length||(this.state.status==="pending"?this.scheduleGc():Ae(this,da).remove(this))}continue(){var t;return((t=Ae(this,jh))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S,w,E,C,x;cn(this,jh,Yle({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,P)=>{wn(this,Rc,Ad).call(this,{type:"failed",failureCount:_,error:P})},onPause:()=>{wn(this,Rc,Ad).call(this,{type:"pause"})},onContinue:()=>{wn(this,Rc,Ad).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ae(this,da).canRun(this)}));const n=this.state.status==="pending",r=!Ae(this,jh).canStart();try{if(!n){wn(this,Rc,Ad).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=Ae(this,da).config).onMutate)==null?void 0:i.call(o,t,this));const P=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));P!==this.state.context&&wn(this,Rc,Ad).call(this,{type:"pending",context:P,variables:t,isPaused:r})}const _=await Ae(this,jh).start();return await((c=(l=Ae(this,da).config).onSuccess)==null?void 0:c.call(l,_,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,_,t,this.state.context)),await((p=(h=Ae(this,da).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,_,null,t,this.state.context)),wn(this,Rc,Ad).call(this,{type:"success",data:_}),_}catch(_){try{throw await((b=(v=Ae(this,da).config).onError)==null?void 0:b.call(v,_,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,_,t,this.state.context)),await((E=(w=Ae(this,da).config).onSettled)==null?void 0:E.call(w,void 0,_,this.state.variables,this.state.context,this)),await((x=(C=this.options).onSettled)==null?void 0:x.call(C,void 0,_,t,this.state.context)),_}finally{wn(this,Rc,Ad).call(this,{type:"error",error:_})}}finally{Ae(this,da).runNext(this)}}},Tc=new WeakMap,da=new WeakMap,jh=new WeakMap,Rc=new WeakSet,Ad=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),ya.batch(()=>{Ae(this,Tc).forEach(r=>{r.onMutationUpdate(t)}),Ae(this,da).notify({mutation:this,type:"updated",action:t})})},qG);function rYe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fs,g1,GG,oYe=(GG=class extends CP{constructor(t={}){super();Tn(this,fs);Tn(this,g1);this.config=t,cn(this,fs,new Map),cn(this,g1,Date.now())}build(t,n,r){const o=new nYe({mutationCache:this,mutationId:++Yf(this,g1)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=ew(t),r=Ae(this,fs).get(n)??[];r.push(t),Ae(this,fs).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=ew(t);if(Ae(this,fs).has(n)){const o=(r=Ae(this,fs).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?Ae(this,fs).delete(n):Ae(this,fs).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Ae(this,fs).get(ew(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Ae(this,fs).get(ew(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ya.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Ae(this,fs).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>LW(n,r))}findAll(t={}){return this.getAll().filter(n=>LW(t,n))}notify(t){ya.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ya.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ml))))}},fs=new WeakMap,g1=new WeakMap,GG);function ew(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function HW(e){return{onFetch:(t,n)=>{var u,f,h,p,m;const r=t.options,o=(h=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((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 g=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=Vle(t.options,t.fetchOptions),y=async(S,w,E)=>{if(g)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const C={queryKey:t.queryKey,pageParam:w,direction:E?"backward":"forward",meta:t.options.meta};v(C);const x=await b(C),{maxPages:_}=t.options,P=E?KGe:VGe;return{pages:P(S.pages,x,_),pageParams:P(S.pageParams,w,_)}};if(o&&i.length){const S=o==="backward",w=S?iYe:UW,E={pages:i,pageParams:a},C=w(r,E);s=await y(E,C,S)}else{const S=e??i.length;do{const w=l===0?a[0]??r.initialPageParam:UW(r,s);if(l>0&&w==null)break;s=await y(s,w),l++}while(l{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function UW(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 iYe(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 Do,Kd,qd,Cg,wg,Gd,xg,Eg,YG,aYe=(YG=class{constructor(e={}){Tn(this,Do);Tn(this,Kd);Tn(this,qd);Tn(this,Cg);Tn(this,wg);Tn(this,Gd);Tn(this,xg);Tn(this,Eg);cn(this,Do,e.queryCache||new tYe),cn(this,Kd,e.mutationCache||new oYe),cn(this,qd,e.defaultOptions||{}),cn(this,Cg,new Map),cn(this,wg,new Map),cn(this,Gd,0)}mount(){Yf(this,Gd)._++,Ae(this,Gd)===1&&(cn(this,xg,Kle.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ae(this,Do).onFocus())})),cn(this,Eg,fE.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ae(this,Do).onOnline())})))}unmount(){var e,t;Yf(this,Gd)._--,Ae(this,Gd)===0&&((e=Ae(this,xg))==null||e.call(this),cn(this,xg,void 0),(t=Ae(this,Eg))==null||t.call(this),cn(this,Eg,void 0))}isFetching(e){return Ae(this,Do).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ae(this,Kd).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ae(this,Do).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=Ae(this,Do).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(jW(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Ae(this,Do).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Ae(this,Do).get(r.queryHash),i=o==null?void 0:o.state.data,a=LGe(t,i);if(a!==void 0)return Ae(this,Do).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ya.batch(()=>Ae(this,Do).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ae(this,Do).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Ae(this,Do);ya.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Ae(this,Do),r={type:"active",...e};return ya.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ya.batch(()=>Ae(this,Do).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ml).catch(Ml)}invalidateQueries(e={},t={}){return ya.batch(()=>{if(Ae(this,Do).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=ya.batch(()=>Ae(this,Do).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ml)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ml)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Ae(this,Do).build(this,t);return n.isStaleByTime(jW(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ml).catch(Ml)}fetchInfiniteQuery(e){return e.behavior=HW(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ml).catch(Ml)}ensureInfiniteQueryData(e){return e.behavior=HW(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fE.isOnline()?Ae(this,Kd).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ae(this,Do)}getMutationCache(){return Ae(this,Kd)}getDefaultOptions(){return Ae(this,qd)}setDefaultOptions(e){cn(this,qd,e)}setQueryDefaults(e,t){Ae(this,Cg).set(Jb(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ae(this,Cg).values()];let n={};return t.forEach(r=>{Zb(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Ae(this,wg).set(Jb(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ae(this,wg).values()];let n={};return t.forEach(r=>{Zb(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ae(this,qd).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ZD(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===ej&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Ae(this,qd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ae(this,Do).clear(),Ae(this,Kd).clear()}},Do=new WeakMap,Kd=new WeakMap,qd=new WeakMap,Cg=new WeakMap,wg=new WeakMap,Gd=new WeakMap,xg=new WeakMap,Eg=new WeakMap,YG),sYe=d.createContext(void 0),lYe=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(sYe.Provider,{value:e,children:t}));/** + `+Ie:""),this.inner=Ie||null):typeof Te=="object"&&(this.message="".concat(Te.name," ").concat(Te.message),this.inner=Te):(this.message=L[Y]||ae,this.inner=null)}return g(we).from(X),B[Y]=we,B},{});ne.Syntax=SyntaxError,ne.Type=TypeError,ne.Range=RangeError;var le=Ne.reduce(function(B,Y){return B[Y+"Error"]=ne[Y],B},{}),ce=As.reduce(function(B,Y){return["Syntax","Type","Range"].indexOf(Y)===-1&&(B[Y+"Error"]=ne[Y]),B},{});function oe(){}function se(B){return B}function fe(B,Y){return B==null||B===se?Y:function(ae){return Y(B(ae))}}function te(B,Y){return function(){B.apply(this,arguments),Y.apply(this,arguments)}}function he(B,Y){return B===oe?Y:function(){var ae=B.apply(this,arguments);ae!==void 0&&(arguments[0]=ae);var we=this.onsuccess,Te=this.onerror;this.onsuccess=null,this.onerror=null;var Ie=Y.apply(this,arguments);return we&&(this.onsuccess=this.onsuccess?te(we,this.onsuccess):we),Te&&(this.onerror=this.onerror?te(Te,this.onerror):Te),Ie!==void 0?Ie:ae}}function pe(B,Y){return B===oe?Y:function(){B.apply(this,arguments);var ae=this.onsuccess,we=this.onerror;this.onsuccess=this.onerror=null,Y.apply(this,arguments),ae&&(this.onsuccess=this.onsuccess?te(ae,this.onsuccess):ae),we&&(this.onerror=this.onerror?te(we,this.onerror):we)}}function Oe(B,Y){return B===oe?Y:function(ae){var we=B.apply(this,arguments);l(ae,we);var Te=this.onsuccess,Ie=this.onerror;return this.onsuccess=null,this.onerror=null,ae=Y.apply(this,arguments),Te&&(this.onsuccess=this.onsuccess?te(Te,this.onsuccess):Te),Ie&&(this.onerror=this.onerror?te(Ie,this.onerror):Ie),we===void 0?ae===void 0?void 0:ae:l(we,ae)}}function Me(B,Y){return B===oe?Y:function(){return Y.apply(this,arguments)!==!1&&B.apply(this,arguments)}}function Se(B,Y){return B===oe?Y:function(){var ae=B.apply(this,arguments);if(ae&&typeof ae.then=="function"){for(var we=this,Te=arguments.length,Ie=new Array(Te);Te--;)Ie[Te]=arguments[Te];return ae.then(function(){return Y.apply(we,Ie)})}return Y.apply(this,arguments)}}ce.ModifyError=re,ce.DexieError=Q,ce.BulkError=ie;var ye=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ve(B){ye=B}var be={},Pe=100,Rn=typeof Promise>"u"?[]:function(){var B=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[B,c(B),B];var Y=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[Y,c(Y),B]}(),Ne=Rn[0],As=Rn[1],Rn=Rn[2],As=As&&As.then,U=Ne&&Ne.constructor,H=!!Rn,q=function(B,Y){qe.push([B,Y]),Ce&&(queueMicrotask(Lt),Ce=!1)},me=!0,Ce=!0,ue=[],Le=[],He=se,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:oe,pgp:!1,env:{},finalize:oe},De=ge,qe=[],Fe=0,Ke=[];function Ue(B){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var Y=this._PSD=De;if(typeof B!="function"){if(B!==be)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&et(this,this._value))}this._state=null,this._value=null,++Y.ref,function ae(we,Te){try{Te(function(Ie){if(we._state===null){if(Ie===we)throw new TypeError("A promise cannot be resolved with itself.");var ze=we._lib&&St();Ie&&typeof Ie.then=="function"?ae(we,function(Ye,nt){Ie instanceof Ue?Ie._then(Ye,nt):Ie.then(Ye,nt)}):(we._state=!0,we._value=Ie,st(we)),ze&&wt()}},et.bind(null,we))}catch(Ie){et(we,Ie)}}(this,B)}var Ve={get:function(){var B=De,Y=Mt;function ae(we,Te){var Ie=this,ze=!B.global&&(B!==De||Y!==Mt),Ye=ze&&!Rt(),nt=new Ue(function(ot,ct){yt(Ie,new Tt(xt(we,B,ze,Ye),xt(Te,B,ze,Ye),ot,ct,B))});return this._consoleTask&&(nt._consoleTask=this._consoleTask),nt}return ae.prototype=be,ae},set:function(B){m(this,"then",B&&B.prototype===be?Ve:{get:function(){return B},set:Ve.set})}};function Tt(B,Y,ae,we,Te){this.onFulfilled=typeof B=="function"?B:null,this.onRejected=typeof Y=="function"?Y:null,this.resolve=ae,this.reject=we,this.psd=Te}function et(B,Y){var ae,we;Le.push(Y),B._state===null&&(ae=B._lib&&St(),Y=He(Y),B._state=!1,B._value=Y,we=B,ue.some(function(Te){return Te._value===we._value})||ue.push(we),st(B),ae&&wt())}function st(B){var Y=B._listeners;B._listeners=[];for(var ae=0,we=Y.length;ae.",tt="String expected.",Ot=[],Pt="__dbnames",pn="readonly",Pn="readwrite";function $(B,Y){return B?Y?function(){return B.apply(this,arguments)&&Y.apply(this,arguments)}:B:Y}var R={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function J(B){return typeof B!="string"||/\./.test(B)?function(Y){return Y}:function(Y){return Y[B]===void 0&&B in Y&&delete(Y=T(Y))[B],Y}}function Ee(){throw ne.Type()}function ke(B,Y){try{var ae=Je(B),we=Je(Y);if(ae!==we)return ae==="Array"?1:we==="Array"?-1:ae==="binary"?1:we==="binary"?-1:ae==="string"?1:we==="string"?-1:ae==="Date"?1:we!=="Date"?NaN:-1;switch(ae){case"number":case"Date":case"string":return Yjt+Ut&&_t(jt+ct)})})}var kt=Nr(ae)&&ae.limit===1/0&&(typeof B!="function"||B===Yr)&&{index:ae.index,range:ae.range};return _t(0).then(function(){if(0=mt})).length!==0?(ct.forEach(function(_t){ht.push(function(){var kt=it,jt=_t._cfg.dbschema;KS(Qe,kt,lt),KS(Qe,jt,lt),it=Qe._dbSchema=jt;var Ut=GO(kt,jt);Ut.add.forEach(function(bn){YO(lt,bn[0],bn[1].primKey,bn[1].indexes)}),Ut.change.forEach(function(bn){if(bn.recreate)throw new ne.Upgrade("Not yet support for changing primary key");var hn=lt.objectStore(bn.name);bn.add.forEach(function(_n){return WS(hn,_n)}),bn.change.forEach(function(_n){hn.deleteIndex(_n.name),WS(hn,_n)}),bn.del.forEach(function(_n){return hn.deleteIndex(_n)})});var sn=_t._cfg.contentUpgrade;if(sn&&_t._cfg.version>mt){HS(Qe,lt),rt._memoizedTables={};var mn=_(jt);Ut.del.forEach(function(bn){mn[bn]=kt[bn]}),qO(Qe,[Qe.Transaction.prototype]),US(Qe,[Qe.Transaction.prototype],a(mn),mn),rt.schema=mn;var ln,dn=K(sn);return dn&&dt(),Ut=Ue.follow(function(){var bn;(ln=sn(rt))&&dn&&(bn=Rt.bind(null,null),ln.then(bn,bn))}),ln&&typeof ln.then=="function"?Ue.resolve(ln):Ut.then(function(){return ln})}}),ht.push(function(kt){var jt,Ut,sn=_t._cfg.dbschema;jt=sn,Ut=kt,[].slice.call(Ut.db.objectStoreNames).forEach(function(mn){return jt[mn]==null&&Ut.db.deleteObjectStore(mn)}),qO(Qe,[Qe.Transaction.prototype]),US(Qe,[Qe.Transaction.prototype],Qe._storeNames,Qe._dbSchema),rt.schema=Qe._dbSchema}),ht.push(function(kt){Qe.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Qe.idbdb.version/10)===_t._cfg.version?(Qe.idbdb.deleteObjectStore("$meta"),delete Qe._dbSchema.$meta,Qe._storeNames=Qe._storeNames.filter(function(jt){return jt!=="$meta"})):kt.objectStore("$meta").put(_t._cfg.version,"version"))})}),function _t(){return ht.length?Ue.resolve(ht.shift()(rt.idbtrans)).then(_t):Ue.resolve()}().then(function(){eL(it,lt)})):Ue.resolve();var Qe,mt,rt,lt,ht,it}).catch(ze)):(a(Te).forEach(function(ct){YO(ae,ct,Te[ct].primKey,Te[ct].indexes)}),HS(B,ae),void Ue.follow(function(){return B.on.populate.fire(Ie)}).catch(ze));var nt,ot})}function Xpe(B,Y){eL(B._dbSchema,Y),Y.db.version%10!=0||Y.objectStoreNames.contains("$meta")||Y.db.createObjectStore("$meta").add(Math.ceil(Y.db.version/10-1),"version");var ae=VS(0,B.idbdb,Y);KS(B,B._dbSchema,Y);for(var we=0,Te=GO(ae,B._dbSchema).change;weMath.pow(2,62)?0:it.oldVersion,Qe=it<1,B.idbdb=ht.result,Ie&&Xpe(B,ct),Ype(B,it/10,ct,rt))},rt),ht.onsuccess=We(function(){ct=null;var it,_t,kt,jt,Ut,sn=B.idbdb=ht.result,mn=y(sn.objectStoreNames);if(0"u"?Ue.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(mt){function rt(){return indexedDB.databases().finally(mt)}nt=setInterval(rt,100),rt()}).finally(function(){return clearInterval(nt)}):Promise.resolve()).then(Ye)]).then(function(){return ze(),Y.onReadyBeingFired=[],Ue.resolve(JO(function(){return B.on.ready.fire(B.vip)})).then(function mt(){if(0Y.limit?mt.length=Y.limit:B.length===Y.limit&&mt.length=_t.limit&&(!_t.values||sn.req.values)&&rme(sn.req.query.range,_t.query.range)}),!1,kt,jt];case"count":return Ut=jt.find(function(sn){return dL(sn.req.query.range,_t.query.range)}),[Ut,!!Ut,kt,jt]}}(Y,ae,"query",Ie),ct=ot[0],Qe=ot[1],mt=ot[2],rt=ot[3];return ct&&Qe?ct.obsSet=Ie.obsSet:(Qe=we.query(Ie).then(function(lt){var ht=lt.result;if(ct&&(ct.res=ht),ze){for(var it=0,_t=ht.length;it<_t;++it)Object.freeze(ht[it]);Object.freeze(ht)}else lt.result=T(ht);return lt}).catch(function(lt){return rt&&ct&&F(rt,ct),Promise.reject(lt)}),ct={obsSet:Ie.obsSet,promise:Qe,subscribers:new Set,type:"query",req:Ie,dirty:!1},rt?rt.push(ct):(rt=[ct],(mt=mt||(Kf["idb://".concat(Y,"/").concat(ae)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[Ie.query.index.name||""]=rt)),ome(ct,rt,Ye,nt),ct.promise.then(function(lt){return{result:uL(lt.result,Ie,mt==null?void 0:mt.optimisticOps,we,ct,ze)}})}})}})}};function JS(B,Y){return new Proxy(B,{get:function(ae,we,Te){return we==="db"?Y:Reflect.get(ae,we,Te)}})}var hu=(Wo.prototype.version=function(B){if(isNaN(B)||B<.1)throw new ne.Type("Given version is not a positive number");if(B=Math.round(10*B)/10,this.idbdb||this._state.isBeingOpened)throw new ne.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,B);var Y=this._versions,ae=Y.filter(function(we){return we._cfg.version===B})[0];return ae||(ae=new this.Version(B),Y.push(ae),Y.sort(Gpe),ae.stores({}),this._state.autoSchema=!1,ae)},Wo.prototype._whenReady=function(B){var Y=this;return this.idbdb&&(this._state.openComplete||De.letThrough||this._vip)?B():new Ue(function(ae,we){if(Y._state.openComplete)return we(new ne.DatabaseClosed(Y._state.dbOpenError));if(!Y._state.isBeingOpened){if(!Y._state.autoOpen)return void we(new ne.DatabaseClosed);Y.open().catch(oe)}Y._state.dbReadyPromise.then(ae,we)}).then(B)},Wo.prototype.use=function(B){var Y=B.stack,ae=B.create,we=B.level,Te=B.name;return Te&&this.unuse({stack:Y,name:Te}),B=this._middlewares[Y]||(this._middlewares[Y]=[]),B.push({stack:Y,create:ae,level:we??10,name:Te}),B.sort(function(Ie,ze){return Ie.level-ze.level}),this},Wo.prototype.unuse=function(B){var Y=B.stack,ae=B.name,we=B.create;return Y&&this._middlewares[Y]&&(this._middlewares[Y]=this._middlewares[Y].filter(function(Te){return we?Te.create!==we:!!ae&&Te.name!==ae})),this},Wo.prototype.open=function(){var B=this;return Bt(ge,function(){return Jpe(B)})},Wo.prototype._close=function(){var B=this._state,Y=Ot.indexOf(this);if(0<=Y&&Ot.splice(Y,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}B.isBeingOpened||(B.dbReadyPromise=new Ue(function(ae){B.dbReadyResolve=ae}),B.openCanceller=new Ue(function(ae,we){B.cancelOpen=we}))},Wo.prototype.close=function(ae){var Y=(ae===void 0?{disableAutoOpen:!0}:ae).disableAutoOpen,ae=this._state;Y?(ae.isBeingOpened&&ae.cancelOpen(new ne.DatabaseClosed),this._close(),ae.autoOpen=!1,ae.dbOpenError=new ne.DatabaseClosed):(this._close(),ae.autoOpen=this._options.autoOpen||ae.isBeingOpened,ae.openComplete=!1,ae.dbOpenError=null)},Wo.prototype.delete=function(B){var Y=this;B===void 0&&(B={disableAutoOpen:!0});var ae=0({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 Hs.messages.get(n)}async updateMessage(n,r){return await Hs.messages.update(n,{content:r})}async deleteMessage(n){return await Hs.messages.delete(n)}subscribeMessages(){xGe(()=>this.messages.toArray()).subscribe({next:r=>{const o=r.map(i=>i.uid);console.log("messagesObservable message uids",o)}})}async createThread(n){var r,o,i;return console.log("useIndexedDB createThread",n.topic),await Hs.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:(o=n.user)==null?void 0:o.nickname,userAvatar:(i=n.user)==null?void 0:i.avatar})}async getAllThreads(){return(await Hs.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 Hs.threads.get(n)}async updateThread(n,r){return await Hs.threads.update(n,r)}async deleteThread(n){return await Hs.threads.delete(n)}}const Hs=new jle;let jo,Ra,Ia,ym=!1;const EGe=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Ra=vi.getState().userInfo,Ia=jp.getState().agentInfo,ym){console.log("mqtt is connecting");return}if(jo&&jo.connected){console.log("mqtt already connected");return}if(jo&&jo.reconnecting){console.log("mqtt already reconnecting");return}ym=!0;const r=vi.getState().deviceUid,i={keepalive:30,clientId:e+"/"+po+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1,log(...a){Ag&&console.log("mqtt debug log",...a)}};console.log("mqtt start connect:",i),jo=KCe.connect(Q1e(),i),jo.on("connect",()=>{console.log("mqtt event connected"),ym=!1,Jn.emit(mk)}),jo.on("message",async function(a,s,l){console.log("mqtt receive message topic:",a,l);const c=tee.Message.deserializeBinary(s),u=Ll.getState().currentThread,f={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(OGe(c,Ra,Ia))switch(c.getType()){case Mk:case Ok:xR(c);return;case $k:case Pk:return;case K7:return;case G7:console.log("self transfer message"),RW(h,f);break;case Y7:console.log("self transfer accept message"),IW(h,f);return;case X7:console.log("self transfer reject message"),kW(h,f);return;case q7:console.log("self recall message"),NW(h);return;case Pb:console.log("thread closed message"),Ll.getState().closeThread(f.topic);break;default:c.setStatus(Ek)}else switch(c.getType()){case Mk:case Ok:xR(c);return;case $k:case Pk:TW(u,f,c.getType());return;case _b:TW(u,f,c.getType());break;case K7:MGe(c,u,f);return;case fye:case hye:case pye:case mye:case gye:case vye:xR(c);return;case G7:console.log("transfer message"),RW(h,f);break;case Y7:console.log("transfer accept message"),IW(h,f);return;case X7:console.log("transfer reject message"),kW(h,f);return;case q7:console.log("recall message"),NW(h);return;case $b:case Pb:console.log("thread closed message"),Ll.getState().closeThread(f.topic);break;default:console.log("send receive message type",c.getType()),TGe(c,u,f)}console.log("mqtt message received",a,h,f),hd.getState().addMessage(h),Jn.emit(xb,h);const p=Ll.getState().addThreadWithMessage(f,h);console.log("unreadCount",p);try{await Hs.createMessage(h),console.log("Sent message stored in IndexedDB:",h)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),jo.on("packetsend",a=>{console.log("mqtt event packetsend",a)}),jo.on("packetreceive",a=>{console.log("mqtt event packetreceive",a,a.cmd),a.cmd==="publish"||a.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),jo.on("reconnect",()=>{console.log("mqtt event reconnect")}),jo.on("close",()=>{console.log("mqtt event close"),ym=!1,Jn.emit(vk)}),jo.on("disconnect",()=>{console.error("mqtt event disconnected"),ym=!1,Jn.emit(yk)}),jo.on("offline",()=>{console.log("mqtt event offline"),ym=!1,Jn.emit(gk)}),jo.on("error",()=>{console.log("mqtt event error"),Jn.emit(bk)}),jo.on("end",()=>{console.log("mqtt event end"),Jn.emit(Sk)})},OW=new Set,Fle=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),OW.has(e)||(OW.add(e),Lle(Y_(),Ok,e,t))},MW=new Set,_Ge=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),MW.has(e)||(MW.add(e),Lle(Y_(),Mk,e,t))},Lle=async(e,t,n,r)=>{var i,a,s,l,c,u,f,h;console.log("mqtt mqttSendMessage",n);const o=a_e();if(jo&&jo.connected){const p=new GCe.Thread;p.setUid(r.uid),p.setType(r.type),p.setTopic(r.topic);const m=new i9.User;m.setUid((i=r.user)==null?void 0:i.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 g=new i9.User;(Ia==null?void 0:Ia.uid)!=""&&((r==null?void 0:r.type)===z7||(r==null?void 0:r.type)===H7)?(g.setUid(Ia.uid),g.setNickname(Ia.nickname),g.setAvatar(Ia.avatar),g.setType(L7)):(g.setUid(Ra.uid),g.setNickname(Ra.nickname),g.setAvatar(Ra.avatar),g.setType(B7));const v={orgUid:(l=Ra==null?void 0:Ra.currentOrganization)==null?void 0:l.uid},b=new tee.Message;b.setUid(e),b.setType(t),b.setStatus(V7),b.setCreatedat(o),b.setClient(po),b.setContent(n),b.setUser(g),b.setThread(p),b.setExtra(JSON.stringify(v));const y=b.serializeBinary();jo.publish(r.topic,y);try{const S={uid:b.getUid(),type:b.getType(),content:b.getContent(),client:b.getClient(),createdAt:b.getCreatedat(),status:b.getStatus(),threadTopic:b.getThread().getTopic(),user:{uid:b.getUser().getUid(),nickname:b.getUser().getNickname(),avatar:b.getUser().getAvatar()}};await Hs.createMessage(S),console.log("Sent message stored in IndexedDB:",S)}catch(S){console.error("Error storing sent message in IndexedDB:",S)}}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:(f=r.user)==null?void 0:f.avatar}};let m;(Ia==null?void 0:Ia.uid)!=""&&((r==null?void 0:r.type)===z7||(r==null?void 0:r.type)===H7)?m={uid:Ia.uid,nickname:Ia.nickname,avatar:Ia.avatar,type:L7}:m={uid:Ra.uid,nickname:Ra.nickname,avatar:Ra.avatar,type:B7};const g={orgUid:(h=Ra==null?void 0:Ra.currentOrganization)==null?void 0:h.uid},v={uid:e,type:t,status:V7,createdAt:o,client:po,content:n,extra:JSON.stringify(g),user:m,thread:p};PGe(v)}},wR=()=>{jo?jo.end():console.log("mqttClient is null")},$Ge=()=>jo&&jo.connected,PGe=async e=>{const t=JSON.stringify(e),n=await rSe(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){hd.getState().updateMessageStatus(e==null?void 0:e.uid,Ek);const r={uid:e==null?void 0:e.uid,type:Ek};Jn.emit(xQ,JSON.stringify(r))}else gn.error(n.data.message)},OGe=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function xR(e){console.log("update message status:",e.getContent(),e.getType()),hd.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};Jn.emit(xQ,JSON.stringify(t))}function TW(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===$k?Jn.emit(M0e):n===Pk?Jn.emit(T0e):n===_b&&Jn.emit(R0e))}function MGe(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Jn.emit(I0e,e.getContent())}function RW(e,t){const n={message:e,thread:t};Jn.emit(Ck,JSON.stringify(n))}function IW(e,t){const n=JSON.parse(e==null?void 0:e.content);hd.getState().updateMessageStatus(n.uid,oye);const r={message:e,thread:t};Jn.emit(wk,JSON.stringify(r))}function kW(e,t){const n=JSON.parse(e==null?void 0:e.content);hd.getState().updateMessageStatus(n.uid,iye);const r={message:e,thread:t};Jn.emit(xk,JSON.stringify(r))}function NW(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),hd.getState().recallMessage(e==null?void 0:e.content)}function TGe(e,t,n){if(!u_e(n==null?void 0:n.topic)&&s_e(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();Fle(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&_Ge(r,n)}}const RGe=hl()(uc(dc(fc(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:H0e}))),Ble=()=>{Qb("https://www.weiyuai.cn/docs/zh-CN/")},Qb=e=>{Pi?window.electronAPI.openUrl(e):window.open(e,"_blank")},IGe=async()=>{if(Pi){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},zle=async()=>Pi?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),kGe=async()=>{if(Pi){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},NGe=(e,t)=>{Pi&&window.electronAPI.showElectronNotification(e,t)},AGe=e=>{Pi?window.electronAPI.setThemeMode(e):console.log("not electron")},D6=()=>{Pi&&window.electronAPI.loginSuccess()},DGe=()=>{Pi&&window.electronAPI.logoutSuccess()};function Hle(){console.debug("useUserInfo");const[e,t]=d.useState(""),{myDevice:n,setMyDevice:r}=RGe(_=>({myDevice:_.myDevice,setMyDevice:_.setMyDevice})),{userInfo:o,deviceUid:i,setUserInfo:a,setDeviceUid:s}=vi(_=>({userInfo:_.userInfo,deviceUid:_.deviceUid,setUserInfo:_.setUserInfo,setDeviceUid:_.setDeviceUid})),{agentInfo:l}=jp(_=>({agentInfo:_.agentInfo})),c=hd(_=>_.addMessage),u=Ll(_=>_.updateThreadContent),f=d.useRef(!1),[h,p]=d.useState(!1);d.useEffect(()=>{p(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===Sye&&p(!0)})})},[o.userOrganizationRoles]);const[m,g]=d.useState(!1);d.useEffect(()=>{g(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===Cye&&g(!0)})})},[o.userOrganizationRoles]);const[v,b]=d.useState(!1);d.useEffect(()=>{b(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===wye&&b(!0)})})},[o.userOrganizationRoles]);const[y,S]=d.useState(!1);d.useEffect(()=>{S(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===xye&&S(!0)})})},[o.userOrganizationRoles]);const w="",E=async()=>{const _=await zle();console.log("ipAddress",e,_),_.length>0&&(t(_[0]),n.ip=_[0],r(n))},C=async()=>{var P,O;if(f.current)return;f.current=!0;const _=await nSe(l==null?void 0:l.uid);console.log("getAgentMessageUnread response:",_==null?void 0:_.data),(O=(P=_==null?void 0:_.data)==null?void 0:P.data)==null||O.forEach(I=>{console.log("getAgentMessageUnread item:",I),c(I);const M=u(I.threadTopic,I.content);M&&Fle(I==null?void 0:I.uid,M)}),f.current=!1};return d.useEffect(()=>{y&&C()},[y]),d.useEffect(()=>{console.log("useUserInfo useEffect"),(i===void 0||i==="")&&s(Y_()),E()},[]),{userInfo:o,setUserInfo:a,agentInfo:l,handleUpdateAgentStatus:async _=>{const P={...l,status:_};gn.loading("正在更新状态");const O=await tSe(P);console.log("updateAgentStatus:",_,O.data),O.data.code===200?(gn.destroy(),gn.success("状态更新成功")):(gn.destroy(),gn.error("状态更新失败"))},avatar:w,hasRoleAgent:y,hasRoleSuper:h,hasRoleAdmin:m,hasRoleMember:v}}const ia=d.createContext({}),jGe=({children:e})=>{const[t,n]=d.useState(!1),[r,o]=d.useState(!1),i=_1(P=>P.accessToken),a=Eye(P=>P.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m}=Hle(),g=d.useMemo(()=>!!i&&i.trim().length>0,[i]),{themeMode:v,setThemeMode:b,isDarkMode:y}=FQ(),[S,w]=d.useState(SC),E=P=>{let O;P==="en"?O=tB:P==="zh-cn"?O=SC:P==="zh-tw"?O=bbe:O=SC,console.log("changeLocale localeValue:",O),w(O),localStorage.setItem(N7,O.locale)},[C,x]=d.useState(Zm),_=P=>{x(P),localStorage.setItem(A7,P)};return d.useEffect(()=>{const P=localStorage.getItem(N7);w(P==="en"?tB:SC);const O=localStorage.getItem(A7);x(O===Zm?Zm:O===sp?sp:a2)},[]),N.jsx(ia.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:a,isDarkMode:y,themeMode:v,setThemeMode:b,locale:S,changeLocale:E,mode:C,changeMode:_,isPingLoading:r,setPingLoading:o,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m},children:e})};var CP=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(){}},wP=typeof window>"u"||"Deno"in globalThis;function Ml(){}function FGe(e,t){return typeof e=="function"?e(t):e}function LGe(e){return typeof e=="number"&&e>=0&&e!==1/0}function BGe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function AW(e,t){return typeof e=="function"?e(t):e}function zGe(e,t){return typeof e=="function"?e(t):e}function DW(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==QD(a,t.options))return!1}else if(!Zb(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||o&&o!==t.state.fetchStatus||i&&!i(t))}function jW(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Jb(t.options.mutationKey)!==Jb(i))return!1}else if(!Zb(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function QD(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jb)(e)}function Jb(e){return JSON.stringify(e,(t,n)=>j6(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Zb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Zb(e[n],t[n])):!1}function Ule(e,t){if(e===t)return e;const n=FW(e)&&FW(t);if(n||j6(e)&&j6(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function UGe(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ule(e,t):t}function WGe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function VGe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var JD=Symbol();function Wle(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===JD?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Nh,Wd,gg,zG,KGe=(zG=class extends CP{constructor(){super();Tn(this,Nh);Tn(this,Wd);Tn(this,gg);cn(this,gg,t=>{if(!wP&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Ae(this,Wd)||this.setEventListener(Ae(this,gg))}onUnsubscribe(){var t;this.hasListeners()||((t=Ae(this,Wd))==null||t.call(this),cn(this,Wd,void 0))}setEventListener(t){var n;cn(this,gg,t),(n=Ae(this,Wd))==null||n.call(this),cn(this,Wd,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ae(this,Nh)!==t&&(cn(this,Nh,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Ae(this,Nh)=="boolean"?Ae(this,Nh):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Nh=new WeakMap,Wd=new WeakMap,gg=new WeakMap,zG),Vle=new KGe,vg,Vd,yg,HG,qGe=(HG=class extends CP{constructor(){super();Tn(this,vg,!0);Tn(this,Vd);Tn(this,yg);cn(this,yg,t=>{if(!wP&&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(){Ae(this,Vd)||this.setEventListener(Ae(this,yg))}onUnsubscribe(){var t;this.hasListeners()||((t=Ae(this,Vd))==null||t.call(this),cn(this,Vd,void 0))}setEventListener(t){var n;cn(this,yg,t),(n=Ae(this,Vd))==null||n.call(this),cn(this,Vd,t(this.setOnline.bind(this)))}setOnline(t){Ae(this,vg)!==t&&(cn(this,vg,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ae(this,vg)}},vg=new WeakMap,Vd=new WeakMap,yg=new WeakMap,HG),hE=new qGe;function GGe(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function YGe(e){return Math.min(1e3*2**e,3e4)}function Kle(e){return(e??"online")==="online"?hE.isOnline():!0}var qle=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ER(e){return e instanceof qle}function Gle(e){let t=!1,n=0,r=!1,o;const i=GGe(),a=g=>{var v;r||(h(new qle(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>Vle.isFocused()&&(e.networkMode==="always"||hE.isOnline())&&e.canRun(),u=()=>Kle(e.networkMode)&&e.canRun(),f=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),o==null||o(),i.resolve(g))},h=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),o==null||o(),i.reject(g))},p=()=>new Promise(g=>{var v;o=b=>{(r||c())&&g(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(f).catch(b=>{var C;if(r)return;const y=e.retry??(wP?0:3),S=e.retryDelay??YGe,w=typeof S=="function"?S(n,b):S,E=y===!0||typeof y=="number"&&nc()?void 0:p()).then(()=>{t?h(b):m()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),i)}}function XGe(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=s=>setTimeout(s,0);const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var ya=XGe(),Ah,UG,Yle=(UG=class{constructor(){Tn(this,Ah)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),LGe(this.gcTime)&&cn(this,Ah,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wP?1/0:5*60*1e3))}clearGcTimeout(){Ae(this,Ah)&&(clearTimeout(Ae(this,Ah)),cn(this,Ah,void 0))}},Ah=new WeakMap,UG),bg,Sg,Ws,Yi,g1,Dh,Tl,wu,WG,QGe=(WG=class extends Yle{constructor(t){super();Tn(this,Tl);Tn(this,bg);Tn(this,Sg);Tn(this,Ws);Tn(this,Yi);Tn(this,g1);Tn(this,Dh);cn(this,Dh,!1),cn(this,g1,t.defaultOptions),this.setOptions(t.options),this.observers=[],cn(this,Ws,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,cn(this,bg,ZGe(this.options)),this.state=t.state??Ae(this,bg),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Ae(this,Yi))==null?void 0:t.promise}setOptions(t){this.options={...Ae(this,g1),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ae(this,Ws).remove(this)}setData(t,n){const r=UGe(this.state.data,t,this.options);return wn(this,Tl,wu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){wn(this,Tl,wu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=Ae(this,Yi))==null?void 0:r.promise;return(o=Ae(this,Yi))==null||o.cancel(t),n?n.then(Ml).catch(Ml):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ae(this,bg))}isActive(){return this.observers.some(t=>zGe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===JD||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||!BGe(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Ae(this,Yi))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Ae(this,Yi))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ae(this,Ws).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ae(this,Yi)&&(Ae(this,Dh)?Ae(this,Yi).cancel({revert:!0}):Ae(this,Yi).cancelRetry()),this.scheduleGc()),Ae(this,Ws).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||wn(this,Tl,wu).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(Ae(this,Yi))return Ae(this,Yi).continueRetry(),Ae(this,Yi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(cn(this,Dh,!0),r.signal)})},i=()=>{const f=Wle(this.options,n),h={queryKey:this.queryKey,meta:this.meta};return o(h),cn(this,Dh,!1),this.options.persister?this.options.persister(f,h,this):f(h)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),cn(this,Sg,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&wn(this,Tl,wu).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=f=>{var h,p,m,g;ER(f)&&f.silent||wn(this,Tl,wu).call(this,{type:"error",error:f}),ER(f)||((p=(h=Ae(this,Ws).config).onError)==null||p.call(h,f,this),(g=(m=Ae(this,Ws).config).onSettled)==null||g.call(m,this.state.data,f,this)),this.scheduleGc()};return cn(this,Yi,Gle({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,p,m,g;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(p=(h=Ae(this,Ws).config).onSuccess)==null||p.call(h,f,this),(g=(m=Ae(this,Ws).config).onSettled)==null||g.call(m,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,h)=>{wn(this,Tl,wu).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{wn(this,Tl,wu).call(this,{type:"pause"})},onContinue:()=>{wn(this,Tl,wu).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),Ae(this,Yi).start()}},bg=new WeakMap,Sg=new WeakMap,Ws=new WeakMap,Yi=new WeakMap,g1=new WeakMap,Dh=new WeakMap,Tl=new WeakSet,wu=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,...JGe(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 o=t.error;return ER(o)&&o.revert&&Ae(this,Sg)?{...Ae(this,Sg),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ya.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ae(this,Ws).notify({query:this,type:"updated",action:t})})},WG);function JGe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kle(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ZGe(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 Mc,VG,eYe=(VG=class extends CP{constructor(t={}){super();Tn(this,Mc);this.config=t,cn(this,Mc,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??QD(o,n);let a=this.get(i);return a||(a=new QGe({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){Ae(this,Mc).has(t.queryHash)||(Ae(this,Mc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Ae(this,Mc).get(t.queryHash);n&&(t.destroy(),n===t&&Ae(this,Mc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ya.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ae(this,Mc).get(t)}getAll(){return[...Ae(this,Mc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>DW(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>DW(t,r)):n}notify(t){ya.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ya.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ya.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Mc=new WeakMap,VG),Tc,da,jh,Rc,Ad,KG,tYe=(KG=class extends Yle{constructor(t){super();Tn(this,Rc);Tn(this,Tc);Tn(this,da);Tn(this,jh);this.mutationId=t.mutationId,cn(this,da,t.mutationCache),cn(this,Tc,[]),this.state=t.state||nYe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ae(this,Tc).includes(t)||(Ae(this,Tc).push(t),this.clearGcTimeout(),Ae(this,da).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){cn(this,Tc,Ae(this,Tc).filter(n=>n!==t)),this.scheduleGc(),Ae(this,da).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ae(this,Tc).length||(this.state.status==="pending"?this.scheduleGc():Ae(this,da).remove(this))}continue(){var t;return((t=Ae(this,jh))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S,w,E,C,x;cn(this,jh,Gle({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,P)=>{wn(this,Rc,Ad).call(this,{type:"failed",failureCount:_,error:P})},onPause:()=>{wn(this,Rc,Ad).call(this,{type:"pause"})},onContinue:()=>{wn(this,Rc,Ad).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ae(this,da).canRun(this)}));const n=this.state.status==="pending",r=!Ae(this,jh).canStart();try{if(!n){wn(this,Rc,Ad).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=Ae(this,da).config).onMutate)==null?void 0:i.call(o,t,this));const P=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));P!==this.state.context&&wn(this,Rc,Ad).call(this,{type:"pending",context:P,variables:t,isPaused:r})}const _=await Ae(this,jh).start();return await((c=(l=Ae(this,da).config).onSuccess)==null?void 0:c.call(l,_,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,_,t,this.state.context)),await((p=(h=Ae(this,da).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,_,null,t,this.state.context)),wn(this,Rc,Ad).call(this,{type:"success",data:_}),_}catch(_){try{throw await((b=(v=Ae(this,da).config).onError)==null?void 0:b.call(v,_,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,_,t,this.state.context)),await((E=(w=Ae(this,da).config).onSettled)==null?void 0:E.call(w,void 0,_,this.state.variables,this.state.context,this)),await((x=(C=this.options).onSettled)==null?void 0:x.call(C,void 0,_,t,this.state.context)),_}finally{wn(this,Rc,Ad).call(this,{type:"error",error:_})}}finally{Ae(this,da).runNext(this)}}},Tc=new WeakMap,da=new WeakMap,jh=new WeakMap,Rc=new WeakSet,Ad=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),ya.batch(()=>{Ae(this,Tc).forEach(r=>{r.onMutationUpdate(t)}),Ae(this,da).notify({mutation:this,type:"updated",action:t})})},KG);function nYe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fs,v1,qG,rYe=(qG=class extends CP{constructor(t={}){super();Tn(this,fs);Tn(this,v1);this.config=t,cn(this,fs,new Map),cn(this,v1,Date.now())}build(t,n,r){const o=new tYe({mutationCache:this,mutationId:++Yf(this,v1)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=tw(t),r=Ae(this,fs).get(n)??[];r.push(t),Ae(this,fs).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=tw(t);if(Ae(this,fs).has(n)){const o=(r=Ae(this,fs).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?Ae(this,fs).delete(n):Ae(this,fs).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Ae(this,fs).get(tw(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Ae(this,fs).get(tw(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ya.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Ae(this,fs).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jW(n,r))}findAll(t={}){return this.getAll().filter(n=>jW(t,n))}notify(t){ya.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ya.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ml))))}},fs=new WeakMap,v1=new WeakMap,qG);function tw(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function BW(e){return{onFetch:(t,n)=>{var u,f,h,p,m;const r=t.options,o=(h=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((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 g=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=Wle(t.options,t.fetchOptions),y=async(S,w,E)=>{if(g)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const C={queryKey:t.queryKey,pageParam:w,direction:E?"backward":"forward",meta:t.options.meta};v(C);const x=await b(C),{maxPages:_}=t.options,P=E?VGe:WGe;return{pages:P(S.pages,x,_),pageParams:P(S.pageParams,w,_)}};if(o&&i.length){const S=o==="backward",w=S?oYe:zW,E={pages:i,pageParams:a},C=w(r,E);s=await y(E,C,S)}else{const S=e??i.length;do{const w=l===0?a[0]??r.initialPageParam:zW(r,s);if(l>0&&w==null)break;s=await y(s,w),l++}while(l{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function zW(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 oYe(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 Do,Kd,qd,Cg,wg,Gd,xg,Eg,GG,iYe=(GG=class{constructor(e={}){Tn(this,Do);Tn(this,Kd);Tn(this,qd);Tn(this,Cg);Tn(this,wg);Tn(this,Gd);Tn(this,xg);Tn(this,Eg);cn(this,Do,e.queryCache||new eYe),cn(this,Kd,e.mutationCache||new rYe),cn(this,qd,e.defaultOptions||{}),cn(this,Cg,new Map),cn(this,wg,new Map),cn(this,Gd,0)}mount(){Yf(this,Gd)._++,Ae(this,Gd)===1&&(cn(this,xg,Vle.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ae(this,Do).onFocus())})),cn(this,Eg,hE.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ae(this,Do).onOnline())})))}unmount(){var e,t;Yf(this,Gd)._--,Ae(this,Gd)===0&&((e=Ae(this,xg))==null||e.call(this),cn(this,xg,void 0),(t=Ae(this,Eg))==null||t.call(this),cn(this,Eg,void 0))}isFetching(e){return Ae(this,Do).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ae(this,Kd).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ae(this,Do).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=Ae(this,Do).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(AW(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Ae(this,Do).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Ae(this,Do).get(r.queryHash),i=o==null?void 0:o.state.data,a=FGe(t,i);if(a!==void 0)return Ae(this,Do).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ya.batch(()=>Ae(this,Do).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ae(this,Do).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Ae(this,Do);ya.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Ae(this,Do),r={type:"active",...e};return ya.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ya.batch(()=>Ae(this,Do).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ml).catch(Ml)}invalidateQueries(e={},t={}){return ya.batch(()=>{if(Ae(this,Do).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=ya.batch(()=>Ae(this,Do).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ml)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ml)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Ae(this,Do).build(this,t);return n.isStaleByTime(AW(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ml).catch(Ml)}fetchInfiniteQuery(e){return e.behavior=BW(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ml).catch(Ml)}ensureInfiniteQueryData(e){return e.behavior=BW(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hE.isOnline()?Ae(this,Kd).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ae(this,Do)}getMutationCache(){return Ae(this,Kd)}getDefaultOptions(){return Ae(this,qd)}setDefaultOptions(e){cn(this,qd,e)}setQueryDefaults(e,t){Ae(this,Cg).set(Jb(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ae(this,Cg).values()];let n={};return t.forEach(r=>{Zb(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Ae(this,wg).set(Jb(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ae(this,wg).values()];let n={};return t.forEach(r=>{Zb(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ae(this,qd).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=QD(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===JD&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Ae(this,qd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ae(this,Do).clear(),Ae(this,Kd).clear()}},Do=new WeakMap,Kd=new WeakMap,qd=new WeakMap,Cg=new WeakMap,wg=new WeakMap,Gd=new WeakMap,xg=new WeakMap,Eg=new WeakMap,GG),aYe=d.createContext(void 0),sYe=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(aYe.Provider,{value:e,children:t}));/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. @@ -528,8 +528,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dYe(){return Math.random().toString(36).substr(2,8)}function VW(e,t){return{usr:e.state,key:e.key,idx:t}}function Qg(e,t,n,r){return n===void 0&&(n=null),Co({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yd(t):t,{state:n,key:t&&t.key||r||dYe()})}function Of(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 yd(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 Qle(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=ni.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(Co({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=ni.Pop;let v=u(),b=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:b})}function h(v,b){s=ni.Push;let y=Qg(g.location,v,b);n&&n(y,v),c=u()+1;let S=VW(y,c),w=g.createHref(y);try{a.pushState(S,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(w)}i&&l&&l({action:s,location:g.location,delta:1})}function p(v,b){s=ni.Replace;let y=Qg(g.location,v,b);n&&n(y,v),c=u();let S=VW(y,c),w=g.createHref(y);a.replaceState(S,"",w),i&&l&&l({action:s,location:g.location,delta:0})}function m(v){let b=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof v=="string"?v:Of(v);return y=y.replace(/ $/,"%20"),hr(b,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,b)}let g={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(WW,f),l=v,()=>{o.removeEventListener(WW,f),l=null}},createHref(v){return t(o,v)},createURL:m,encodeLocation(v){let b=m(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:p,go(v){return a.go(v)}};return g}var Kr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kr||(Kr={}));const fYe=new Set(["lazy","caseSensitive","path","id","index","children"]);function hYe(e){return e.index===!0}function hE(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(hr(o.index!==!0||!o.children,"Cannot specify children on an index route"),hr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),hYe(o)){let l=Co({},o,t(o),{id:s});return r[s]=l,l}else{let l=Co({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=hE(o.children,t,a,r)),l}})}function vh(e,t,n){return n===void 0&&(n="/"),cx(e,t,n,!1)}function cx(e,t,n,r){let o=typeof t=="string"?yd(t):t,i=Uv(o.pathname||"/",n);if(i==null)return null;let a=Jle(e);mYe(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(hr(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=Vu([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(hr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Jle(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:wYe(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Zle(i.path))o(i,a,l)}),t}function Zle(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Zle(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function mYe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xYe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gYe=/^:[\w-]+$/,vYe=3,yYe=2,bYe=1,SYe=10,CYe=-2,KW=e=>e==="*";function wYe(e,t){let n=e.split("/"),r=n.length;return n.some(KW)&&(r+=CYe),t&&(r+=yYe),n.filter(o=>!KW(o)).reduce((o,i)=>o+(gYe.test(i)?vYe:i===""?bYe:SYe),r)}function xYe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function EYe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=s[f]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return p&&!m?c[h]=void 0:c[h]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function _Ye(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bp(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=[],o="^"+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:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function $Ye(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bp(!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 Uv(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 PYe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?yd(e):e;return{pathname:n?n.startsWith("/")?n:OYe(n,t):t,search:TYe(r),hash:RYe(o)}}function OYe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function _R(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 and the router will parse it for you.'}function ece(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xP(e,t){let n=ece(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function EP(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=yd(e):(o=Co({},e),hr(!o.pathname||!o.pathname.includes("?"),_R("?","pathname","search",o)),hr(!o.pathname||!o.pathname.includes("#"),_R("#","pathname","hash",o)),hr(!o.search||!o.search.includes("#"),_R("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=PYe(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Vu=e=>e.join("/").replace(/\/\/+/g,"/"),MYe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TYe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RYe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class pE{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function _P(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const tce=["post","put","patch","delete"],IYe=new Set(tce),kYe=["get",...tce],NYe=new Set(kYe),AYe=new Set([301,302,303,307,308]),DYe=new Set([307,308]),$R={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jYe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},tj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,FYe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),nce="remix-router-transitions";function rce(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;hr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let Be=e.detectErrorBoundary;o=We=>({hasErrorBoundary:Be(We)})}else o=FYe;let i={},a=hE(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||HYe,u=e.patchRoutesOnNavigation,f=Co({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,g=null,v=null,b=e.hydrationData!=null,y=vh(a,e.history.location,l),S=null;if(y==null&&!u){let Be=Aa(404,{pathname:e.history.location.pathname}),{matches:We,route:Fe}=oV(a);y=We,S={[Fe.id]:Be}}y&&!e.hydrationData&&Lt(y,a,e.history.location.pathname).active&&(y=null);let w;if(y)if(y.some(Be=>Be.route.lazy))w=!1;else if(!y.some(Be=>Be.route.loader))w=!0;else if(f.v7_partialHydration){let Be=e.hydrationData?e.hydrationData.loaderData:null,We=e.hydrationData?e.hydrationData.errors:null;if(We){let Fe=y.findIndex(Xe=>We[Xe.route.id]!==void 0);w=y.slice(0,Fe+1).every(Xe=>!B6(Xe.route,Be,We))}else w=y.every(Fe=>!B6(Fe.route,Be,We))}else w=e.hydrationData!=null;else if(w=!1,y=[],f.v7_partialHydration){let Be=Lt(null,a,e.history.location.pathname);Be.active&&Be.matches&&(y=Be.matches)}let E,C={historyAction:e.history.action,location:e.history.location,matches:y,initialized:w,navigation:$R,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||S,fetchers:new Map,blockers:new Map},x=ni.Pop,_=!1,P,O=!1,I=new Map,M=null,T=!1,D=!1,A=[],j=new Set,k=new Map,F=0,V=-1,W=new Map,K=new Set,L=new Map,Q=new Map,ee=new Set,re=new Map,ie=new Map,G;function X(){if(h=e.history.listen(Be=>{let{action:We,location:Fe,delta:Xe}=Be;if(G){G(),G=void 0;return}bp(ie.size===0||Xe!=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 gt=Ue({currentLocation:C.location,nextLocation:Fe,historyAction:We});if(gt&&Xe!=null){let pt=new Promise(Rt=>{G=Rt});e.history.go(Xe*-1),Ke(gt,{state:"blocked",location:Fe,proceed(){Ke(gt,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),pt.then(()=>e.history.go(Xe))},reset(){let Rt=new Map(C.blockers);Rt.set(gt,H0),ce({blockers:Rt})}});return}return te(We,Fe)}),n){nXe(t,I);let Be=()=>rXe(t,I);t.addEventListener("pagehide",Be),M=()=>t.removeEventListener("pagehide",Be)}return C.initialized||te(ni.Pop,C.location,{initialHydration:!0}),E}function ne(){h&&h(),M&&M(),p.clear(),P&&P.abort(),C.fetchers.forEach((Be,We)=>Ce(We)),C.blockers.forEach((Be,We)=>je(We))}function le(Be){return p.add(Be),()=>p.delete(Be)}function ce(Be,We){We===void 0&&(We={}),C=Co({},C,Be);let Fe=[],Xe=[];f.v7_fetcherPersist&&C.fetchers.forEach((gt,pt)=>{gt.state==="idle"&&(ee.has(pt)?Xe.push(pt):Fe.push(pt))}),[...p].forEach(gt=>gt(C,{deletedFetchers:Xe,viewTransitionOpts:We.viewTransitionOpts,flushSync:We.flushSync===!0})),f.v7_fetcherPersist&&(Fe.forEach(gt=>C.fetchers.delete(gt)),Xe.forEach(gt=>Ce(gt)))}function oe(Be,We,Fe){var Xe,gt;let{flushSync:pt}=Fe===void 0?{}:Fe,Rt=C.actionData!=null&&C.navigation.formMethod!=null&&Nl(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Xe=Be.state)==null?void 0:Xe._isRedirect)!==!0,_t;We.actionData?Object.keys(We.actionData).length>0?_t=We.actionData:_t=null:Rt?_t=C.actionData:_t=null;let vt=We.loaderData?nV(C.loaderData,We.loaderData,We.matches||[],We.errors):C.loaderData,ft=C.blockers;ft.size>0&&(ft=new Map(ft),ft.forEach((Wt,at)=>ft.set(at,H0)));let It=_===!0||C.navigation.formMethod!=null&&Nl(C.navigation.formMethod)&&((gt=Be.state)==null?void 0:gt._isRedirect)!==!0;s&&(a=s,s=void 0),T||x===ni.Pop||(x===ni.Push?e.history.push(Be,Be.state):x===ni.Replace&&e.history.replace(Be,Be.state));let bt;if(x===ni.Pop){let Wt=I.get(C.location.pathname);Wt&&Wt.has(Be.pathname)?bt={currentLocation:C.location,nextLocation:Be}:I.has(Be.pathname)&&(bt={currentLocation:Be,nextLocation:C.location})}else if(O){let Wt=I.get(C.location.pathname);Wt?Wt.add(Be.pathname):(Wt=new Set([Be.pathname]),I.set(C.location.pathname,Wt)),bt={currentLocation:C.location,nextLocation:Be}}ce(Co({},We,{actionData:_t,loaderData:vt,historyAction:x,location:Be,initialized:!0,navigation:$R,revalidation:"idle",restoreScrollPosition:dt(Be,We.matches||C.matches),preventScrollReset:It,blockers:ft}),{viewTransitionOpts:bt,flushSync:pt===!0}),x=ni.Pop,_=!1,O=!1,T=!1,D=!1,A=[]}async function se(Be,We){if(typeof Be=="number"){e.history.go(Be);return}let Fe=L6(C.location,C.matches,l,f.v7_prependBasename,Be,f.v7_relativeSplatPath,We==null?void 0:We.fromRouteId,We==null?void 0:We.relative),{path:Xe,submission:gt,error:pt}=GW(f.v7_normalizeFormMethod,!1,Fe,We),Rt=C.location,_t=Qg(C.location,Xe,We&&We.state);_t=Co({},_t,e.history.encodeLocation(_t));let vt=We&&We.replace!=null?We.replace:void 0,ft=ni.Push;vt===!0?ft=ni.Replace:vt===!1||gt!=null&&Nl(gt.formMethod)&>.formAction===C.location.pathname+C.location.search&&(ft=ni.Replace);let It=We&&"preventScrollReset"in We?We.preventScrollReset===!0:void 0,bt=(We&&We.flushSync)===!0,Wt=Ue({currentLocation:Rt,nextLocation:_t,historyAction:ft});if(Wt){Ke(Wt,{state:"blocked",location:_t,proceed(){Ke(Wt,{state:"proceeding",proceed:void 0,reset:void 0,location:_t}),se(Be,We)},reset(){let at=new Map(C.blockers);at.set(Wt,H0),ce({blockers:at})}});return}return await te(ft,_t,{submission:gt,pendingError:pt,preventScrollReset:It,replace:We&&We.replace,enableViewTransition:We&&We.viewTransition,flushSync:bt})}function fe(){if(U(),ce({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){te(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}te(x||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:O===!0})}}async function te(Be,We,Fe){P&&P.abort(),P=null,x=Be,T=(Fe&&Fe.startUninterruptedRevalidation)===!0,Ct(C.location,C.matches),_=(Fe&&Fe.preventScrollReset)===!0,O=(Fe&&Fe.enableViewTransition)===!0;let Xe=s||a,gt=Fe&&Fe.overrideNavigation,pt=vh(Xe,We,l),Rt=(Fe&&Fe.flushSync)===!0,_t=Lt(pt,Xe,We.pathname);if(_t.active&&_t.matches&&(pt=_t.matches),!pt){let{error:Pt,notFoundMatches:Bt,route:xt}=Ve(We.pathname);oe(We,{matches:Bt,loaderData:{},errors:{[xt.id]:Pt}},{flushSync:Rt});return}if(C.initialized&&!D&&GYe(C.location,We)&&!(Fe&&Fe.submission&&Nl(Fe.submission.formMethod))){oe(We,{matches:pt},{flushSync:Rt});return}P=new AbortController;let vt=bm(e.history,We,P.signal,Fe&&Fe.submission),ft;if(Fe&&Fe.pendingError)ft=[yh(pt).route.id,{type:Kr.error,error:Fe.pendingError}];else if(Fe&&Fe.submission&&Nl(Fe.submission.formMethod)){let Pt=await he(vt,We,Fe.submission,pt,_t.active,{replace:Fe.replace,flushSync:Rt});if(Pt.shortCircuited)return;if(Pt.pendingActionResult){let[Bt,xt]=Pt.pendingActionResult;if(gs(xt)&&_P(xt.error)&&xt.error.status===404){P=null,oe(We,{matches:Pt.matches,loaderData:{},errors:{[Bt]:xt.error}});return}}pt=Pt.matches||pt,ft=Pt.pendingActionResult,gt=PR(We,Fe.submission),Rt=!1,_t.active=!1,vt=bm(e.history,vt.url,vt.signal)}let{shortCircuited:It,matches:bt,loaderData:Wt,errors:at}=await pe(vt,We,pt,_t.active,gt,Fe&&Fe.submission,Fe&&Fe.fetcherSubmission,Fe&&Fe.replace,Fe&&Fe.initialHydration===!0,Rt,ft);It||(P=null,oe(We,Co({matches:bt||pt},rV(ft),{loaderData:Wt,errors:at})))}async function he(Be,We,Fe,Xe,gt,pt){pt===void 0&&(pt={}),U();let Rt=eXe(We,Fe);if(ce({navigation:Rt},{flushSync:pt.flushSync===!0}),gt){let ft=await wt(Xe,We.pathname,Be.signal);if(ft.type==="aborted")return{shortCircuited:!0};if(ft.type==="error"){let It=yh(ft.partialMatches).route.id;return{matches:ft.partialMatches,pendingActionResult:[It,{type:Kr.error,error:ft.error}]}}else if(ft.matches)Xe=ft.matches;else{let{notFoundMatches:It,error:bt,route:Wt}=Ve(We.pathname);return{matches:It,pendingActionResult:[Wt.id,{type:Kr.error,error:bt}]}}}let _t,vt=by(Xe,We);if(!vt.route.action&&!vt.route.lazy)_t={type:Kr.error,error:Aa(405,{method:Be.method,pathname:We.pathname,routeId:vt.route.id})};else if(_t=(await Pe("action",C,Be,[vt],Xe,null))[vt.route.id],Be.signal.aborted)return{shortCircuited:!0};if(Ih(_t)){let ft;return pt&&pt.replace!=null?ft=pt.replace:ft=ZW(_t.response.headers.get("Location"),new URL(Be.url),l)===C.location.pathname+C.location.search,await be(Be,_t,!0,{submission:Fe,replace:ft}),{shortCircuited:!0}}if(nf(_t))throw Aa(400,{type:"defer-action"});if(gs(_t)){let ft=yh(Xe,vt.route.id);return(pt&&pt.replace)!==!0&&(x=ni.Push),{matches:Xe,pendingActionResult:[ft.route.id,_t]}}return{matches:Xe,pendingActionResult:[vt.route.id,_t]}}async function pe(Be,We,Fe,Xe,gt,pt,Rt,_t,vt,ft,It){let bt=gt||PR(We,pt),Wt=pt||Rt||aV(bt),at=!T&&(!f.v7_partialHydration||!vt);if(Xe){if(at){let R=Oe(It);ce(Co({navigation:bt},R!==void 0?{actionData:R}:{}),{flushSync:ft})}let $=await wt(Fe,We.pathname,Be.signal);if($.type==="aborted")return{shortCircuited:!0};if($.type==="error"){let R=yh($.partialMatches).route.id;return{matches:$.partialMatches,loaderData:{},errors:{[R]:$.error}}}else if($.matches)Fe=$.matches;else{let{error:R,notFoundMatches:J,route:Ee}=Ve(We.pathname);return{matches:J,loaderData:{},errors:{[Ee.id]:R}}}}let Pt=s||a,[Bt,xt]=XW(e.history,C,Fe,Wt,We,f.v7_partialHydration&&vt===!0,f.v7_skipActionErrorRevalidation,D,A,j,ee,L,K,Pt,l,It);if(St($=>!(Fe&&Fe.some(R=>R.route.id===$))||Bt&&Bt.some(R=>R.route.id===$)),V=++F,Bt.length===0&&xt.length===0){let $=ge();return oe(We,Co({matches:Fe,loaderData:{},errors:It&&gs(It[1])?{[It[0]]:It[1].error}:null},rV(It),$?{fetchers:new Map(C.fetchers)}:{}),{flushSync:ft}),{shortCircuited:!0}}if(at){let $={};if(!Xe){$.navigation=bt;let R=Oe(It);R!==void 0&&($.actionData=R)}xt.length>0&&($.fetchers=Me(xt)),ce($,{flushSync:ft})}xt.forEach($=>{Le($.key),$.controller&&k.set($.key,$.controller)});let yt=()=>xt.forEach($=>Le($.key));P&&P.signal.addEventListener("abort",yt);let{loaderResults:Ft,fetcherResults:Re}=await Ne(C,Fe,Bt,xt,Be);if(Be.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",yt),xt.forEach($=>k.delete($.key));let kt=tw(Ft);if(kt)return await be(Be,kt.result,!0,{replace:_t}),{shortCircuited:!0};if(kt=tw(Re),kt)return K.add(kt.key),await be(Be,kt.result,!0,{replace:_t}),{shortCircuited:!0};let{loaderData:tt,errors:Mt}=tV(C,Fe,Ft,It,xt,Re,re);re.forEach(($,R)=>{$.subscribe(J=>{(J||$.done)&&re.delete(R)})}),f.v7_partialHydration&&vt&&C.errors&&(Mt=Co({},C.errors,Mt));let Ot=ge(),pn=De(V),Pn=Ot||pn||xt.length>0;return Co({matches:Fe,loaderData:tt,errors:Mt},Pn?{fetchers:new Map(C.fetchers)}:{})}function Oe(Be){if(Be&&!gs(Be[1]))return{[Be[0]]:Be[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Me(Be){return Be.forEach(We=>{let Fe=C.fetchers.get(We.key),Xe=U0(void 0,Fe?Fe.data:void 0);C.fetchers.set(We.key,Xe)}),new Map(C.fetchers)}function Se(Be,We,Fe,Xe){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.");Le(Be);let gt=(Xe&&Xe.flushSync)===!0,pt=s||a,Rt=L6(C.location,C.matches,l,f.v7_prependBasename,Fe,f.v7_relativeSplatPath,We,Xe==null?void 0:Xe.relative),_t=vh(pt,Rt,l),vt=Lt(_t,pt,Rt);if(vt.active&&vt.matches&&(_t=vt.matches),!_t){q(Be,We,Aa(404,{pathname:Rt}),{flushSync:gt});return}let{path:ft,submission:It,error:bt}=GW(f.v7_normalizeFormMethod,!0,Rt,Xe);if(bt){q(Be,We,bt,{flushSync:gt});return}let Wt=by(_t,ft),at=(Xe&&Xe.preventScrollReset)===!0;if(It&&Nl(It.formMethod)){ye(Be,We,ft,Wt,_t,vt.active,gt,at,It);return}L.set(Be,{routeId:We,path:ft}),ve(Be,We,ft,Wt,_t,vt.active,gt,at,It)}async function ye(Be,We,Fe,Xe,gt,pt,Rt,_t,vt){U(),L.delete(Be);function ft(ke){if(!ke.route.action&&!ke.route.lazy){let Je=Aa(405,{method:vt.formMethod,pathname:Fe,routeId:We});return q(Be,We,Je,{flushSync:Rt}),!0}return!1}if(!pt&&ft(Xe))return;let It=C.fetchers.get(Be);H(Be,tXe(vt,It),{flushSync:Rt});let bt=new AbortController,Wt=bm(e.history,Fe,bt.signal,vt);if(pt){let ke=await wt(gt,Fe,Wt.signal);if(ke.type==="aborted")return;if(ke.type==="error"){q(Be,We,ke.error,{flushSync:Rt});return}else if(ke.matches){if(gt=ke.matches,Xe=by(gt,Fe),ft(Xe))return}else{q(Be,We,Aa(404,{pathname:Fe}),{flushSync:Rt});return}}k.set(Be,bt);let at=F,Bt=(await Pe("action",C,Wt,[Xe],gt,Be))[Xe.route.id];if(Wt.signal.aborted){k.get(Be)===bt&&k.delete(Be);return}if(f.v7_fetcherPersist&&ee.has(Be)){if(Ih(Bt)||gs(Bt)){H(Be,Dd(void 0));return}}else{if(Ih(Bt))if(k.delete(Be),V>at){H(Be,Dd(void 0));return}else return K.add(Be),H(Be,U0(vt)),be(Wt,Bt,!1,{fetcherSubmission:vt,preventScrollReset:_t});if(gs(Bt)){q(Be,We,Bt.error);return}}if(nf(Bt))throw Aa(400,{type:"defer-action"});let xt=C.navigation.location||C.location,yt=bm(e.history,xt,bt.signal),Ft=s||a,Re=C.navigation.state!=="idle"?vh(Ft,C.navigation.location,l):C.matches;hr(Re,"Didn't find any matches after fetcher action");let kt=++F;W.set(Be,kt);let tt=U0(vt,Bt.data);C.fetchers.set(Be,tt);let[Mt,Ot]=XW(e.history,C,Re,vt,xt,!1,f.v7_skipActionErrorRevalidation,D,A,j,ee,L,K,Ft,l,[Xe.route.id,Bt]);Ot.filter(ke=>ke.key!==Be).forEach(ke=>{let Je=ke.key,Dt=C.fetchers.get(Je),an=U0(void 0,Dt?Dt.data:void 0);C.fetchers.set(Je,an),Le(Je),ke.controller&&k.set(Je,ke.controller)}),ce({fetchers:new Map(C.fetchers)});let pn=()=>Ot.forEach(ke=>Le(ke.key));bt.signal.addEventListener("abort",pn);let{loaderResults:Pn,fetcherResults:$}=await Ne(C,Re,Mt,Ot,yt);if(bt.signal.aborted)return;bt.signal.removeEventListener("abort",pn),W.delete(Be),k.delete(Be),Ot.forEach(ke=>k.delete(ke.key));let R=tw(Pn);if(R)return be(yt,R.result,!1,{preventScrollReset:_t});if(R=tw($),R)return K.add(R.key),be(yt,R.result,!1,{preventScrollReset:_t});let{loaderData:J,errors:Ee}=tV(C,Re,Pn,void 0,Ot,$,re);if(C.fetchers.has(Be)){let ke=Dd(Bt.data);C.fetchers.set(Be,ke)}De(kt),C.navigation.state==="loading"&&kt>V?(hr(x,"Expected pending action"),P&&P.abort(),oe(C.navigation.location,{matches:Re,loaderData:J,errors:Ee,fetchers:new Map(C.fetchers)})):(ce({errors:Ee,loaderData:nV(C.loaderData,J,Re,Ee),fetchers:new Map(C.fetchers)}),D=!1)}async function ve(Be,We,Fe,Xe,gt,pt,Rt,_t,vt){let ft=C.fetchers.get(Be);H(Be,U0(vt,ft?ft.data:void 0),{flushSync:Rt});let It=new AbortController,bt=bm(e.history,Fe,It.signal);if(pt){let Bt=await wt(gt,Fe,bt.signal);if(Bt.type==="aborted")return;if(Bt.type==="error"){q(Be,We,Bt.error,{flushSync:Rt});return}else if(Bt.matches)gt=Bt.matches,Xe=by(gt,Fe);else{q(Be,We,Aa(404,{pathname:Fe}),{flushSync:Rt});return}}k.set(Be,It);let Wt=F,Pt=(await Pe("loader",C,bt,[Xe],gt,Be))[Xe.route.id];if(nf(Pt)&&(Pt=await nj(Pt,bt.signal,!0)||Pt),k.get(Be)===It&&k.delete(Be),!bt.signal.aborted){if(ee.has(Be)){H(Be,Dd(void 0));return}if(Ih(Pt))if(V>Wt){H(Be,Dd(void 0));return}else{K.add(Be),await be(bt,Pt,!1,{preventScrollReset:_t});return}if(gs(Pt)){q(Be,We,Pt.error);return}hr(!nf(Pt),"Unhandled fetcher deferred data"),H(Be,Dd(Pt.data))}}async function be(Be,We,Fe,Xe){let{submission:gt,fetcherSubmission:pt,preventScrollReset:Rt,replace:_t}=Xe===void 0?{}:Xe;We.response.headers.has("X-Remix-Revalidate")&&(D=!0);let vt=We.response.headers.get("Location");hr(vt,"Expected a Location header on the redirect Response"),vt=ZW(vt,new URL(Be.url),l);let ft=Qg(C.location,vt,{_isRedirect:!0});if(n){let Bt=!1;if(We.response.headers.has("X-Remix-Reload-Document"))Bt=!0;else if(tj.test(vt)){const xt=e.history.createURL(vt);Bt=xt.origin!==t.location.origin||Uv(xt.pathname,l)==null}if(Bt){_t?t.location.replace(vt):t.location.assign(vt);return}}P=null;let It=_t===!0||We.response.headers.has("X-Remix-Replace")?ni.Replace:ni.Push,{formMethod:bt,formAction:Wt,formEncType:at}=C.navigation;!gt&&!pt&&bt&&Wt&&at&&(gt=aV(C.navigation));let Pt=gt||pt;if(DYe.has(We.response.status)&&Pt&&Nl(Pt.formMethod))await te(It,ft,{submission:Co({},Pt,{formAction:vt}),preventScrollReset:Rt||_,enableViewTransition:Fe?O:void 0});else{let Bt=PR(ft,gt);await te(It,ft,{overrideNavigation:Bt,fetcherSubmission:pt,preventScrollReset:Rt||_,enableViewTransition:Fe?O:void 0})}}async function Pe(Be,We,Fe,Xe,gt,pt){let Rt,_t={};try{Rt=await UYe(c,Be,We,Fe,Xe,gt,pt,i,o)}catch(vt){return Xe.forEach(ft=>{_t[ft.route.id]={type:Kr.error,error:vt}}),_t}for(let[vt,ft]of Object.entries(Rt))if(YYe(ft)){let It=ft.result;_t[vt]={type:Kr.redirect,response:KYe(It,Fe,vt,gt,l,f.v7_relativeSplatPath)}}else _t[vt]=await VYe(ft);return _t}async function Ne(Be,We,Fe,Xe,gt){let pt=Be.matches,Rt=Pe("loader",Be,gt,Fe,We,null),_t=Promise.all(Xe.map(async It=>{if(It.matches&&It.match&&It.controller){let Wt=(await Pe("loader",Be,bm(e.history,It.path,It.controller.signal),[It.match],It.matches,It.key))[It.match.route.id];return{[It.key]:Wt}}else return Promise.resolve({[It.key]:{type:Kr.error,error:Aa(404,{pathname:It.path})}})})),vt=await Rt,ft=(await _t).reduce((It,bt)=>Object.assign(It,bt),{});return await Promise.all([JYe(We,vt,gt.signal,pt,Be.loaderData),ZYe(We,ft,Xe)]),{loaderResults:vt,fetcherResults:ft}}function U(){D=!0,A.push(...St()),L.forEach((Be,We)=>{k.has(We)&&j.add(We),Le(We)})}function H(Be,We,Fe){Fe===void 0&&(Fe={}),C.fetchers.set(Be,We),ce({fetchers:new Map(C.fetchers)},{flushSync:(Fe&&Fe.flushSync)===!0})}function q(Be,We,Fe,Xe){Xe===void 0&&(Xe={});let gt=yh(C.matches,We);Ce(Be),ce({errors:{[gt.route.id]:Fe},fetchers:new Map(C.fetchers)},{flushSync:(Xe&&Xe.flushSync)===!0})}function me(Be){return f.v7_fetcherPersist&&(Q.set(Be,(Q.get(Be)||0)+1),ee.has(Be)&&ee.delete(Be)),C.fetchers.get(Be)||jYe}function Ce(Be){let We=C.fetchers.get(Be);k.has(Be)&&!(We&&We.state==="loading"&&W.has(Be))&&Le(Be),L.delete(Be),W.delete(Be),K.delete(Be),ee.delete(Be),j.delete(Be),C.fetchers.delete(Be)}function ue(Be){if(f.v7_fetcherPersist){let We=(Q.get(Be)||0)-1;We<=0?(Q.delete(Be),ee.add(Be)):Q.set(Be,We)}else Ce(Be);ce({fetchers:new Map(C.fetchers)})}function Le(Be){let We=k.get(Be);We&&(We.abort(),k.delete(Be))}function He(Be){for(let We of Be){let Fe=me(We),Xe=Dd(Fe.data);C.fetchers.set(We,Xe)}}function ge(){let Be=[],We=!1;for(let Fe of K){let Xe=C.fetchers.get(Fe);hr(Xe,"Expected fetcher: "+Fe),Xe.state==="loading"&&(K.delete(Fe),Be.push(Fe),We=!0)}return He(Be),We}function De(Be){let We=[];for(let[Fe,Xe]of W)if(Xe0}function qe(Be,We){let Fe=C.blockers.get(Be)||H0;return ie.get(Be)!==We&&ie.set(Be,We),Fe}function je(Be){C.blockers.delete(Be),ie.delete(Be)}function Ke(Be,We){let Fe=C.blockers.get(Be)||H0;hr(Fe.state==="unblocked"&&We.state==="blocked"||Fe.state==="blocked"&&We.state==="blocked"||Fe.state==="blocked"&&We.state==="proceeding"||Fe.state==="blocked"&&We.state==="unblocked"||Fe.state==="proceeding"&&We.state==="unblocked","Invalid blocker state transition: "+Fe.state+" -> "+We.state);let Xe=new Map(C.blockers);Xe.set(Be,We),ce({blockers:Xe})}function Ue(Be){let{currentLocation:We,nextLocation:Fe,historyAction:Xe}=Be;if(ie.size===0)return;ie.size>1&&bp(!1,"A router only supports one blocker at a time");let gt=Array.from(ie.entries()),[pt,Rt]=gt[gt.length-1],_t=C.blockers.get(pt);if(!(_t&&_t.state==="proceeding")&&Rt({currentLocation:We,nextLocation:Fe,historyAction:Xe}))return pt}function Ve(Be){let We=Aa(404,{pathname:Be}),Fe=s||a,{matches:Xe,route:gt}=oV(Fe);return St(),{notFoundMatches:Xe,route:gt,error:We}}function St(Be){let We=[];return re.forEach((Fe,Xe)=>{(!Be||Be(Xe))&&(Fe.cancel(),We.push(Xe),re.delete(Xe))}),We}function et(Be,We,Fe){if(m=Be,v=We,g=Fe||null,!b&&C.navigation===$R){b=!0;let Xe=dt(C.location,C.matches);Xe!=null&&ce({restoreScrollPosition:Xe})}return()=>{m=null,v=null,g=null}}function st(Be,We){return g&&g(Be,We.map(Xe=>pYe(Xe,C.loaderData)))||Be.key}function Ct(Be,We){if(m&&v){let Fe=st(Be,We);m[Fe]=v()}}function dt(Be,We){if(m){let Fe=st(Be,We),Xe=m[Fe];if(typeof Xe=="number")return Xe}return null}function Lt(Be,We,Fe){if(u)if(Be){if(Object.keys(Be[0].params).length>0)return{active:!0,matches:cx(We,Fe,l,!0)}}else return{active:!0,matches:cx(We,Fe,l,!0)||[]};return{active:!1,matches:null}}async function wt(Be,We,Fe){if(!u)return{type:"success",matches:Be};let Xe=Be;for(;;){let gt=s==null,pt=s||a,Rt=i;try{await u({path:We,matches:Xe,patch:(ft,It)=>{Fe.aborted||JW(ft,It,pt,Rt,o)}})}catch(ft){return{type:"error",error:ft,partialMatches:Xe}}finally{gt&&!Fe.aborted&&(a=[...a])}if(Fe.aborted)return{type:"aborted"};let _t=vh(pt,We,l);if(_t)return{type:"success",matches:_t};let vt=cx(pt,We,l,!0);if(!vt||Xe.length===vt.length&&Xe.every((ft,It)=>ft.route.id===vt[It].route.id))return{type:"success",matches:null};Xe=vt}}function Et(Be){i={},s=hE(Be,o,void 0,i)}function Tt(Be,We){let Fe=s==null;JW(Be,We,s||a,i,o),Fe&&(a=[...a],ce({}))}return E={get basename(){return l},get future(){return f},get state(){return C},get routes(){return a},get window(){return t},initialize:X,subscribe:le,enableScrollRestoration:et,navigate:se,fetch:Se,revalidate:fe,createHref:Be=>e.history.createHref(Be),encodeLocation:Be=>e.history.encodeLocation(Be),getFetcher:me,deleteFetcher:ue,dispose:ne,getBlocker:qe,deleteBlocker:je,patchRoutes:Tt,_internalFetchControllers:k,_internalActiveDeferreds:re,_internalSetRoutes:Et},E}function LYe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function L6(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let u=EP(o||".",xP(l,i),Uv(e.pathname,n)||e.pathname,s==="path");if(o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c){let f=rj(u.search);if(c.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let h=new URLSearchParams(u.search),p=h.getAll("index");h.delete("index"),p.filter(g=>g).forEach(g=>h.append("index",g));let m=h.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Vu([n,u.pathname])),Of(u)}function GW(e,t,n,r){if(!r||!LYe(r))return{path:n};if(r.formMethod&&!QYe(r.formMethod))return{path:n,error:Aa(405,{method:r.formMethod})};let o=()=>({path:n,error:Aa(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=ace(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Nl(a))return o();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[g,v]=m;return""+p+g+"="+v+` -`},""):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(!Nl(a))return o();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 o()}}}hr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=z6(r.formData),c=r.formData;else if(r.body instanceof FormData)l=z6(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=eV(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=eV(l)}catch{return o()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Nl(u.formMethod))return{path:n,submission:u};let f=yd(n);return t&&f.search&&rj(f.search)&&l.append("index",""),f.search="?"+l,{path:Of(f),submission:u}}function YW(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function XW(e,t,n,r,o,i,a,s,l,c,u,f,h,p,m,g){let v=g?gs(g[1])?g[1].error:g[1].data:void 0,b=e.createURL(t.location),y=e.createURL(o),S=n;i&&t.errors?S=YW(n,Object.keys(t.errors)[0],!0):g&&gs(g[1])&&(S=YW(n,g[0]));let w=g?g[1].statusCode:void 0,E=a&&w&&w>=400,C=S.filter((_,P)=>{let{route:O}=_;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return B6(O,t.loaderData,t.errors);if(BYe(t.loaderData,t.matches[P],_)||l.some(T=>T===_.route.id))return!0;let I=t.matches[P],M=_;return QW(_,Co({currentUrl:b,currentParams:I.params,nextUrl:y,nextParams:M.params},r,{actionResult:v,actionStatus:w,defaultShouldRevalidate:E?!1:s||b.pathname+b.search===y.pathname+y.search||b.search!==y.search||oce(I,M)}))}),x=[];return f.forEach((_,P)=>{if(i||!n.some(D=>D.route.id===_.routeId)||u.has(P))return;let O=vh(p,_.path,m);if(!O){x.push({key:P,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(P),M=by(O,_.path),T=!1;h.has(P)?T=!1:c.has(P)?(c.delete(P),T=!0):I&&I.state!=="idle"&&I.data===void 0?T=s:T=QW(M,Co({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:w,defaultShouldRevalidate:E?!1:s})),T&&x.push({key:P,routeId:_.routeId,path:_.path,matches:O,match:M,controller:new AbortController})}),[C,x]}function B6(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function BYe(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function oce(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function QW(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function JW(e,t,n,r,o){var i;let a;if(e){let c=r[e];hr(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=>ice(c,u))),l=hE(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function ice(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 o;return(o=t.children)==null?void 0:o.some(i=>ice(n,i))}):!1}async function zYe(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];hr(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";bp(!l,'Route "'+o.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&&!fYe.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Co({},t(o),{lazy:void 0}))}async function HYe(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function UYe(e,t,n,r,o,i,a,s,l,c){let u=i.map(p=>p.route.lazy?zYe(p.route,l,s):void 0),f=i.map((p,m)=>{let g=u[m],v=o.some(y=>y.route.id===p.route.id);return Co({},p,{shouldLoad:v,resolve:async y=>(y&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(v=!0),v?WYe(t,r,p,g,y,c):Promise.resolve({type:Kr.data,result:void 0}))})}),h=await e({matches:f,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return h}async function WYe(e,t,n,r,o,i){let a,s,l=c=>{let u,f=new Promise((m,g)=>u=g);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:i},...m!==void 0?[m]:[]),p=(async()=>{try{return{type:"data",result:await(o?o(g=>h(g)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([p,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(h=>{u=h}),r]);if(u!==void 0)throw u;a=f}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Aa(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Kr.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Aa(404,{pathname:f})}hr(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:Kr.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function VYe(e){let{result:t,type:n}=e;if(sce(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:Kr.error,error:u}}return n===Kr.error?{type:Kr.error,error:new pE(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Kr.data,data:c,statusCode:t.status,headers:t.headers}}if(n===Kr.error){if(iV(t)){var r;if(t.data instanceof Error){var o;return{type:Kr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new pE(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Kr.error,error:t,statusCode:_P(t)?t.status:void 0}}if(XYe(t)){var i,a;return{type:Kr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(iV(t)){var s,l;return{type:Kr.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:Kr.data,data:t}}function KYe(e,t,n,r,o,i){let a=e.headers.get("Location");if(hr(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!tj.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=L6(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function ZW(e,t,n){if(tj.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Uv(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function bm(e,t,n,r){let o=e.createURL(ace(t)).toString(),i={signal:n};if(r&&Nl(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=z6(r.formData):i.body=r.formData}return new Request(o,i)}function z6(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function eV(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function qYe(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&gs(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let h=f.route.id,p=t[h];if(hr(!Ih(p),"Cannot handle redirect results in processLoaderData"),gs(p)){let m=p.error;u!==void 0&&(m=u,u=void 0),a=a||{};{let g=yh(e,h);a[g.route.id]==null&&(a[g.route.id]=m)}i[h]=void 0,l||(l=!0,s=_P(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else nf(p)?(r.set(h,p.deferredData),i[h]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers)):(i[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},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function tV(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=qYe(t,n,r,a);return o.forEach(c=>{let{key:u,match:f,controller:h}=c,p=i[u];if(hr(p,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(gs(p)){let m=yh(e.matches,f==null?void 0:f.route.id);l&&l[m.route.id]||(l=Co({},l,{[m.route.id]:p.error})),e.fetchers.delete(u)}else if(Ih(p))hr(!1,"Unhandled fetcher revalidation redirect");else if(nf(p))hr(!1,"Unhandled fetcher deferred data");else{let m=Dd(p.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function nV(e,t,n,r){let o=Co({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function rV(e){return e?gs(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function yh(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 oV(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 Aa(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="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",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new pE(e||500,s,new Error(l),!0)}function tw(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Ih(o))return{key:r,result:o}}}function ace(e){let t=typeof e=="string"?yd(e):e;return Of(Co({},t,{hash:""}))}function GYe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function YYe(e){return sce(e.result)&&AYe.has(e.result.status)}function nf(e){return e.type===Kr.deferred}function gs(e){return e.type===Kr.error}function Ih(e){return(e&&e.type)===Kr.redirect}function iV(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function XYe(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 sce(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QYe(e){return NYe.has(e.toLowerCase())}function Nl(e){return IYe.has(e.toLowerCase())}async function JYe(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(h==null?void 0:h.route.id)===s);if(!c)continue;let u=r.find(h=>h.route.id===c.route.id),f=u!=null&&!oce(u,c)&&(o&&o[c.route.id])!==void 0;nf(l)&&f&&await nj(l,n,!1).then(h=>{h&&(t[s]=h)})}}async function ZYe(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&nf(s)&&(hr(a,"Expected an AbortController for revalidating fetcher deferred result"),await nj(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function nj(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Kr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Kr.error,error:o}}return{type:Kr.data,data:e.deferredData.data}}}function rj(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function by(e,t){let n=typeof t=="string"?yd(t).search:t.search;if(e[e.length-1].route.index&&rj(n||""))return e[e.length-1];let r=ece(e);return r[r.length-1]}function aV(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,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 PR(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 eXe(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 U0(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 tXe(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 Dd(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 nXe(e,t){try{let n=e.sessionStorage.getItem(nce);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function rXe(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(nce,JSON.stringify(n))}catch(r){bp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uYe(){return Math.random().toString(36).substr(2,8)}function UW(e,t){return{usr:e.state,key:e.key,idx:t}}function Qg(e,t,n,r){return n===void 0&&(n=null),Co({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yd(t):t,{state:n,key:t&&t.key||r||uYe()})}function Of(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 yd(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 Xle(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=ni.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(Co({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=ni.Pop;let v=u(),b=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:b})}function h(v,b){s=ni.Push;let y=Qg(g.location,v,b);n&&n(y,v),c=u()+1;let S=UW(y,c),w=g.createHref(y);try{a.pushState(S,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(w)}i&&l&&l({action:s,location:g.location,delta:1})}function p(v,b){s=ni.Replace;let y=Qg(g.location,v,b);n&&n(y,v),c=u();let S=UW(y,c),w=g.createHref(y);a.replaceState(S,"",w),i&&l&&l({action:s,location:g.location,delta:0})}function m(v){let b=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof v=="string"?v:Of(v);return y=y.replace(/ $/,"%20"),hr(b,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,b)}let g={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(HW,f),l=v,()=>{o.removeEventListener(HW,f),l=null}},createHref(v){return t(o,v)},createURL:m,encodeLocation(v){let b=m(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:p,go(v){return a.go(v)}};return g}var Kr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kr||(Kr={}));const dYe=new Set(["lazy","caseSensitive","path","id","index","children"]);function fYe(e){return e.index===!0}function pE(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(hr(o.index!==!0||!o.children,"Cannot specify children on an index route"),hr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),fYe(o)){let l=Co({},o,t(o),{id:s});return r[s]=l,l}else{let l=Co({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=pE(o.children,t,a,r)),l}})}function vh(e,t,n){return n===void 0&&(n="/"),ux(e,t,n,!1)}function ux(e,t,n,r){let o=typeof t=="string"?yd(t):t,i=Uv(o.pathname||"/",n);if(i==null)return null;let a=Qle(e);pYe(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(hr(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=Wu([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(hr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Qle(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:CYe(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Jle(i.path))o(i,a,l)}),t}function Jle(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Jle(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function pYe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wYe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mYe=/^:[\w-]+$/,gYe=3,vYe=2,yYe=1,bYe=10,SYe=-2,WW=e=>e==="*";function CYe(e,t){let n=e.split("/"),r=n.length;return n.some(WW)&&(r+=SYe),t&&(r+=vYe),n.filter(o=>!WW(o)).reduce((o,i)=>o+(mYe.test(i)?gYe:i===""?yYe:bYe),r)}function wYe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function xYe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=s[f]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return p&&!m?c[h]=void 0:c[h]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function EYe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bp(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=[],o="^"+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:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _Ye(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bp(!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 Uv(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 $Ye(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?yd(e):e;return{pathname:n?n.startsWith("/")?n:PYe(n,t):t,search:MYe(r),hash:TYe(o)}}function PYe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function _R(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 and the router will parse it for you.'}function Zle(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xP(e,t){let n=Zle(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function EP(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=yd(e):(o=Co({},e),hr(!o.pathname||!o.pathname.includes("?"),_R("?","pathname","search",o)),hr(!o.pathname||!o.pathname.includes("#"),_R("#","pathname","hash",o)),hr(!o.search||!o.search.includes("#"),_R("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=$Ye(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Wu=e=>e.join("/").replace(/\/\/+/g,"/"),OYe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),MYe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TYe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mE{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function _P(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ece=["post","put","patch","delete"],RYe=new Set(ece),IYe=["get",...ece],kYe=new Set(IYe),NYe=new Set([301,302,303,307,308]),AYe=new Set([307,308]),$R={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},DYe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ZD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jYe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),tce="remix-router-transitions";function nce(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;hr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let Be=e.detectErrorBoundary;o=We=>({hasErrorBoundary:Be(We)})}else o=jYe;let i={},a=pE(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||zYe,u=e.patchRoutesOnNavigation,f=Co({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,g=null,v=null,b=e.hydrationData!=null,y=vh(a,e.history.location,l),S=null;if(y==null&&!u){let Be=Aa(404,{pathname:e.history.location.pathname}),{matches:We,route:je}=nV(a);y=We,S={[je.id]:Be}}y&&!e.hydrationData&&Lt(y,a,e.history.location.pathname).active&&(y=null);let w;if(y)if(y.some(Be=>Be.route.lazy))w=!1;else if(!y.some(Be=>Be.route.loader))w=!0;else if(f.v7_partialHydration){let Be=e.hydrationData?e.hydrationData.loaderData:null,We=e.hydrationData?e.hydrationData.errors:null;if(We){let je=y.findIndex(Xe=>We[Xe.route.id]!==void 0);w=y.slice(0,je+1).every(Xe=>!L6(Xe.route,Be,We))}else w=y.every(je=>!L6(je.route,Be,We))}else w=e.hydrationData!=null;else if(w=!1,y=[],f.v7_partialHydration){let Be=Lt(null,a,e.history.location.pathname);Be.active&&Be.matches&&(y=Be.matches)}let E,C={historyAction:e.history.action,location:e.history.location,matches:y,initialized:w,navigation:$R,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||S,fetchers:new Map,blockers:new Map},x=ni.Pop,_=!1,P,O=!1,I=new Map,M=null,T=!1,D=!1,A=[],j=new Set,k=new Map,F=0,V=-1,W=new Map,K=new Set,L=new Map,Q=new Map,ee=new Set,re=new Map,ie=new Map,G;function X(){if(h=e.history.listen(Be=>{let{action:We,location:je,delta:Xe}=Be;if(G){G(),G=void 0;return}bp(ie.size===0||Xe!=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 pt=Ue({currentLocation:C.location,nextLocation:je,historyAction:We});if(pt&&Xe!=null){let vt=new Promise(Mt=>{G=Mt});e.history.go(Xe*-1),Ke(pt,{state:"blocked",location:je,proceed(){Ke(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),vt.then(()=>e.history.go(Xe))},reset(){let Mt=new Map(C.blockers);Mt.set(pt,H0),ce({blockers:Mt})}});return}return te(We,je)}),n){tXe(t,I);let Be=()=>nXe(t,I);t.addEventListener("pagehide",Be),M=()=>t.removeEventListener("pagehide",Be)}return C.initialized||te(ni.Pop,C.location,{initialHydration:!0}),E}function ne(){h&&h(),M&&M(),p.clear(),P&&P.abort(),C.fetchers.forEach((Be,We)=>Ce(We)),C.blockers.forEach((Be,We)=>Fe(We))}function le(Be){return p.add(Be),()=>p.delete(Be)}function ce(Be,We){We===void 0&&(We={}),C=Co({},C,Be);let je=[],Xe=[];f.v7_fetcherPersist&&C.fetchers.forEach((pt,vt)=>{pt.state==="idle"&&(ee.has(vt)?Xe.push(vt):je.push(vt))}),[...p].forEach(pt=>pt(C,{deletedFetchers:Xe,viewTransitionOpts:We.viewTransitionOpts,flushSync:We.flushSync===!0})),f.v7_fetcherPersist&&(je.forEach(pt=>C.fetchers.delete(pt)),Xe.forEach(pt=>Ce(pt)))}function oe(Be,We,je){var Xe,pt;let{flushSync:vt}=je===void 0?{}:je,Mt=C.actionData!=null&&C.navigation.formMethod!=null&&Nl(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Xe=Be.state)==null?void 0:Xe._isRedirect)!==!0,Et;We.actionData?Object.keys(We.actionData).length>0?Et=We.actionData:Et=null:Mt?Et=C.actionData:Et=null;let ft=We.loaderData?eV(C.loaderData,We.loaderData,We.matches||[],We.errors):C.loaderData,dt=C.blockers;dt.size>0&&(dt=new Map(dt),dt.forEach((Wt,at)=>dt.set(at,H0)));let Rt=_===!0||C.navigation.formMethod!=null&&Nl(C.navigation.formMethod)&&((pt=Be.state)==null?void 0:pt._isRedirect)!==!0;s&&(a=s,s=void 0),T||x===ni.Pop||(x===ni.Push?e.history.push(Be,Be.state):x===ni.Replace&&e.history.replace(Be,Be.state));let Ct;if(x===ni.Pop){let Wt=I.get(C.location.pathname);Wt&&Wt.has(Be.pathname)?Ct={currentLocation:C.location,nextLocation:Be}:I.has(Be.pathname)&&(Ct={currentLocation:Be,nextLocation:C.location})}else if(O){let Wt=I.get(C.location.pathname);Wt?Wt.add(Be.pathname):(Wt=new Set([Be.pathname]),I.set(C.location.pathname,Wt)),Ct={currentLocation:C.location,nextLocation:Be}}ce(Co({},We,{actionData:Et,loaderData:ft,historyAction:x,location:Be,initialized:!0,navigation:$R,revalidation:"idle",restoreScrollPosition:gt(Be,We.matches||C.matches),preventScrollReset:Rt,blockers:dt}),{viewTransitionOpts:Ct,flushSync:vt===!0}),x=ni.Pop,_=!1,O=!1,T=!1,D=!1,A=[]}async function se(Be,We){if(typeof Be=="number"){e.history.go(Be);return}let je=F6(C.location,C.matches,l,f.v7_prependBasename,Be,f.v7_relativeSplatPath,We==null?void 0:We.fromRouteId,We==null?void 0:We.relative),{path:Xe,submission:pt,error:vt}=KW(f.v7_normalizeFormMethod,!1,je,We),Mt=C.location,Et=Qg(C.location,Xe,We&&We.state);Et=Co({},Et,e.history.encodeLocation(Et));let ft=We&&We.replace!=null?We.replace:void 0,dt=ni.Push;ft===!0?dt=ni.Replace:ft===!1||pt!=null&&Nl(pt.formMethod)&&pt.formAction===C.location.pathname+C.location.search&&(dt=ni.Replace);let Rt=We&&"preventScrollReset"in We?We.preventScrollReset===!0:void 0,Ct=(We&&We.flushSync)===!0,Wt=Ue({currentLocation:Mt,nextLocation:Et,historyAction:dt});if(Wt){Ke(Wt,{state:"blocked",location:Et,proceed(){Ke(Wt,{state:"proceeding",proceed:void 0,reset:void 0,location:Et}),se(Be,We)},reset(){let at=new Map(C.blockers);at.set(Wt,H0),ce({blockers:at})}});return}return await te(dt,Et,{submission:pt,pendingError:vt,preventScrollReset:Rt,replace:We&&We.replace,enableViewTransition:We&&We.viewTransition,flushSync:Ct})}function fe(){if(U(),ce({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){te(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}te(x||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:O===!0})}}async function te(Be,We,je){P&&P.abort(),P=null,x=Be,T=(je&&je.startUninterruptedRevalidation)===!0,yt(C.location,C.matches),_=(je&&je.preventScrollReset)===!0,O=(je&&je.enableViewTransition)===!0;let Xe=s||a,pt=je&&je.overrideNavigation,vt=vh(Xe,We,l),Mt=(je&&je.flushSync)===!0,Et=Lt(vt,Xe,We.pathname);if(Et.active&&Et.matches&&(vt=Et.matches),!vt){let{error:$t,notFoundMatches:Bt,route:xt}=Ve(We.pathname);oe(We,{matches:Bt,loaderData:{},errors:{[xt.id]:$t}},{flushSync:Mt});return}if(C.initialized&&!D&&qYe(C.location,We)&&!(je&&je.submission&&Nl(je.submission.formMethod))){oe(We,{matches:vt},{flushSync:Mt});return}P=new AbortController;let ft=bm(e.history,We,P.signal,je&&je.submission),dt;if(je&&je.pendingError)dt=[yh(vt).route.id,{type:Kr.error,error:je.pendingError}];else if(je&&je.submission&&Nl(je.submission.formMethod)){let $t=await he(ft,We,je.submission,vt,Et.active,{replace:je.replace,flushSync:Mt});if($t.shortCircuited)return;if($t.pendingActionResult){let[Bt,xt]=$t.pendingActionResult;if(gs(xt)&&_P(xt.error)&&xt.error.status===404){P=null,oe(We,{matches:$t.matches,loaderData:{},errors:{[Bt]:xt.error}});return}}vt=$t.matches||vt,dt=$t.pendingActionResult,pt=PR(We,je.submission),Mt=!1,Et.active=!1,ft=bm(e.history,ft.url,ft.signal)}let{shortCircuited:Rt,matches:Ct,loaderData:Wt,errors:at}=await pe(ft,We,vt,Et.active,pt,je&&je.submission,je&&je.fetcherSubmission,je&&je.replace,je&&je.initialHydration===!0,Mt,dt);Rt||(P=null,oe(We,Co({matches:Ct||vt},tV(dt),{loaderData:Wt,errors:at})))}async function he(Be,We,je,Xe,pt,vt){vt===void 0&&(vt={}),U();let Mt=ZYe(We,je);if(ce({navigation:Mt},{flushSync:vt.flushSync===!0}),pt){let dt=await St(Xe,We.pathname,Be.signal);if(dt.type==="aborted")return{shortCircuited:!0};if(dt.type==="error"){let Rt=yh(dt.partialMatches).route.id;return{matches:dt.partialMatches,pendingActionResult:[Rt,{type:Kr.error,error:dt.error}]}}else if(dt.matches)Xe=dt.matches;else{let{notFoundMatches:Rt,error:Ct,route:Wt}=Ve(We.pathname);return{matches:Rt,pendingActionResult:[Wt.id,{type:Kr.error,error:Ct}]}}}let Et,ft=by(Xe,We);if(!ft.route.action&&!ft.route.lazy)Et={type:Kr.error,error:Aa(405,{method:Be.method,pathname:We.pathname,routeId:ft.route.id})};else if(Et=(await Pe("action",C,Be,[ft],Xe,null))[ft.route.id],Be.signal.aborted)return{shortCircuited:!0};if(Ih(Et)){let dt;return vt&&vt.replace!=null?dt=vt.replace:dt=QW(Et.response.headers.get("Location"),new URL(Be.url),l)===C.location.pathname+C.location.search,await be(Be,Et,!0,{submission:je,replace:dt}),{shortCircuited:!0}}if(nf(Et))throw Aa(400,{type:"defer-action"});if(gs(Et)){let dt=yh(Xe,ft.route.id);return(vt&&vt.replace)!==!0&&(x=ni.Push),{matches:Xe,pendingActionResult:[dt.route.id,Et]}}return{matches:Xe,pendingActionResult:[ft.route.id,Et]}}async function pe(Be,We,je,Xe,pt,vt,Mt,Et,ft,dt,Rt){let Ct=pt||PR(We,vt),Wt=vt||Mt||oV(Ct),at=!T&&(!f.v7_partialHydration||!ft);if(Xe){if(at){let R=Oe(Rt);ce(Co({navigation:Ct},R!==void 0?{actionData:R}:{}),{flushSync:dt})}let $=await St(je,We.pathname,Be.signal);if($.type==="aborted")return{shortCircuited:!0};if($.type==="error"){let R=yh($.partialMatches).route.id;return{matches:$.partialMatches,loaderData:{},errors:{[R]:$.error}}}else if($.matches)je=$.matches;else{let{error:R,notFoundMatches:J,route:Ee}=Ve(We.pathname);return{matches:J,loaderData:{},errors:{[Ee.id]:R}}}}let $t=s||a,[Bt,xt]=GW(e.history,C,je,Wt,We,f.v7_partialHydration&&ft===!0,f.v7_skipActionErrorRevalidation,D,A,j,ee,L,K,$t,l,Rt);if(Tt($=>!(je&&je.some(R=>R.route.id===$))||Bt&&Bt.some(R=>R.route.id===$)),V=++F,Bt.length===0&&xt.length===0){let $=ge();return oe(We,Co({matches:je,loaderData:{},errors:Rt&&gs(Rt[1])?{[Rt[0]]:Rt[1].error}:null},tV(Rt),$?{fetchers:new Map(C.fetchers)}:{}),{flushSync:dt}),{shortCircuited:!0}}if(at){let $={};if(!Xe){$.navigation=Ct;let R=Oe(Rt);R!==void 0&&($.actionData=R)}xt.length>0&&($.fetchers=Me(xt)),ce($,{flushSync:dt})}xt.forEach($=>{Le($.key),$.controller&&k.set($.key,$.controller)});let bt=()=>xt.forEach($=>Le($.key));P&&P.signal.addEventListener("abort",bt);let{loaderResults:Ft,fetcherResults:Re}=await Ne(C,je,Bt,xt,Be);if(Be.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",bt),xt.forEach($=>k.delete($.key));let It=nw(Ft);if(It)return await be(Be,It.result,!0,{replace:Et}),{shortCircuited:!0};if(It=nw(Re),It)return K.add(It.key),await be(Be,It.result,!0,{replace:Et}),{shortCircuited:!0};let{loaderData:tt,errors:Ot}=ZW(C,je,Ft,Rt,xt,Re,re);re.forEach(($,R)=>{$.subscribe(J=>{(J||$.done)&&re.delete(R)})}),f.v7_partialHydration&&ft&&C.errors&&(Ot=Co({},C.errors,Ot));let Pt=ge(),pn=De(V),Pn=Pt||pn||xt.length>0;return Co({matches:je,loaderData:tt,errors:Ot},Pn?{fetchers:new Map(C.fetchers)}:{})}function Oe(Be){if(Be&&!gs(Be[1]))return{[Be[0]]:Be[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Me(Be){return Be.forEach(We=>{let je=C.fetchers.get(We.key),Xe=U0(void 0,je?je.data:void 0);C.fetchers.set(We.key,Xe)}),new Map(C.fetchers)}function Se(Be,We,je,Xe){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.");Le(Be);let pt=(Xe&&Xe.flushSync)===!0,vt=s||a,Mt=F6(C.location,C.matches,l,f.v7_prependBasename,je,f.v7_relativeSplatPath,We,Xe==null?void 0:Xe.relative),Et=vh(vt,Mt,l),ft=Lt(Et,vt,Mt);if(ft.active&&ft.matches&&(Et=ft.matches),!Et){q(Be,We,Aa(404,{pathname:Mt}),{flushSync:pt});return}let{path:dt,submission:Rt,error:Ct}=KW(f.v7_normalizeFormMethod,!0,Mt,Xe);if(Ct){q(Be,We,Ct,{flushSync:pt});return}let Wt=by(Et,dt),at=(Xe&&Xe.preventScrollReset)===!0;if(Rt&&Nl(Rt.formMethod)){ye(Be,We,dt,Wt,Et,ft.active,pt,at,Rt);return}L.set(Be,{routeId:We,path:dt}),ve(Be,We,dt,Wt,Et,ft.active,pt,at,Rt)}async function ye(Be,We,je,Xe,pt,vt,Mt,Et,ft){U(),L.delete(Be);function dt(ke){if(!ke.route.action&&!ke.route.lazy){let Je=Aa(405,{method:ft.formMethod,pathname:je,routeId:We});return q(Be,We,Je,{flushSync:Mt}),!0}return!1}if(!vt&&dt(Xe))return;let Rt=C.fetchers.get(Be);H(Be,eXe(ft,Rt),{flushSync:Mt});let Ct=new AbortController,Wt=bm(e.history,je,Ct.signal,ft);if(vt){let ke=await St(pt,je,Wt.signal);if(ke.type==="aborted")return;if(ke.type==="error"){q(Be,We,ke.error,{flushSync:Mt});return}else if(ke.matches){if(pt=ke.matches,Xe=by(pt,je),dt(Xe))return}else{q(Be,We,Aa(404,{pathname:je}),{flushSync:Mt});return}}k.set(Be,Ct);let at=F,Bt=(await Pe("action",C,Wt,[Xe],pt,Be))[Xe.route.id];if(Wt.signal.aborted){k.get(Be)===Ct&&k.delete(Be);return}if(f.v7_fetcherPersist&&ee.has(Be)){if(Ih(Bt)||gs(Bt)){H(Be,Dd(void 0));return}}else{if(Ih(Bt))if(k.delete(Be),V>at){H(Be,Dd(void 0));return}else return K.add(Be),H(Be,U0(ft)),be(Wt,Bt,!1,{fetcherSubmission:ft,preventScrollReset:Et});if(gs(Bt)){q(Be,We,Bt.error);return}}if(nf(Bt))throw Aa(400,{type:"defer-action"});let xt=C.navigation.location||C.location,bt=bm(e.history,xt,Ct.signal),Ft=s||a,Re=C.navigation.state!=="idle"?vh(Ft,C.navigation.location,l):C.matches;hr(Re,"Didn't find any matches after fetcher action");let It=++F;W.set(Be,It);let tt=U0(ft,Bt.data);C.fetchers.set(Be,tt);let[Ot,Pt]=GW(e.history,C,Re,ft,xt,!1,f.v7_skipActionErrorRevalidation,D,A,j,ee,L,K,Ft,l,[Xe.route.id,Bt]);Pt.filter(ke=>ke.key!==Be).forEach(ke=>{let Je=ke.key,Dt=C.fetchers.get(Je),an=U0(void 0,Dt?Dt.data:void 0);C.fetchers.set(Je,an),Le(Je),ke.controller&&k.set(Je,ke.controller)}),ce({fetchers:new Map(C.fetchers)});let pn=()=>Pt.forEach(ke=>Le(ke.key));Ct.signal.addEventListener("abort",pn);let{loaderResults:Pn,fetcherResults:$}=await Ne(C,Re,Ot,Pt,bt);if(Ct.signal.aborted)return;Ct.signal.removeEventListener("abort",pn),W.delete(Be),k.delete(Be),Pt.forEach(ke=>k.delete(ke.key));let R=nw(Pn);if(R)return be(bt,R.result,!1,{preventScrollReset:Et});if(R=nw($),R)return K.add(R.key),be(bt,R.result,!1,{preventScrollReset:Et});let{loaderData:J,errors:Ee}=ZW(C,Re,Pn,void 0,Pt,$,re);if(C.fetchers.has(Be)){let ke=Dd(Bt.data);C.fetchers.set(Be,ke)}De(It),C.navigation.state==="loading"&&It>V?(hr(x,"Expected pending action"),P&&P.abort(),oe(C.navigation.location,{matches:Re,loaderData:J,errors:Ee,fetchers:new Map(C.fetchers)})):(ce({errors:Ee,loaderData:eV(C.loaderData,J,Re,Ee),fetchers:new Map(C.fetchers)}),D=!1)}async function ve(Be,We,je,Xe,pt,vt,Mt,Et,ft){let dt=C.fetchers.get(Be);H(Be,U0(ft,dt?dt.data:void 0),{flushSync:Mt});let Rt=new AbortController,Ct=bm(e.history,je,Rt.signal);if(vt){let Bt=await St(pt,je,Ct.signal);if(Bt.type==="aborted")return;if(Bt.type==="error"){q(Be,We,Bt.error,{flushSync:Mt});return}else if(Bt.matches)pt=Bt.matches,Xe=by(pt,je);else{q(Be,We,Aa(404,{pathname:je}),{flushSync:Mt});return}}k.set(Be,Rt);let Wt=F,$t=(await Pe("loader",C,Ct,[Xe],pt,Be))[Xe.route.id];if(nf($t)&&($t=await ej($t,Ct.signal,!0)||$t),k.get(Be)===Rt&&k.delete(Be),!Ct.signal.aborted){if(ee.has(Be)){H(Be,Dd(void 0));return}if(Ih($t))if(V>Wt){H(Be,Dd(void 0));return}else{K.add(Be),await be(Ct,$t,!1,{preventScrollReset:Et});return}if(gs($t)){q(Be,We,$t.error);return}hr(!nf($t),"Unhandled fetcher deferred data"),H(Be,Dd($t.data))}}async function be(Be,We,je,Xe){let{submission:pt,fetcherSubmission:vt,preventScrollReset:Mt,replace:Et}=Xe===void 0?{}:Xe;We.response.headers.has("X-Remix-Revalidate")&&(D=!0);let ft=We.response.headers.get("Location");hr(ft,"Expected a Location header on the redirect Response"),ft=QW(ft,new URL(Be.url),l);let dt=Qg(C.location,ft,{_isRedirect:!0});if(n){let Bt=!1;if(We.response.headers.has("X-Remix-Reload-Document"))Bt=!0;else if(ZD.test(ft)){const xt=e.history.createURL(ft);Bt=xt.origin!==t.location.origin||Uv(xt.pathname,l)==null}if(Bt){Et?t.location.replace(ft):t.location.assign(ft);return}}P=null;let Rt=Et===!0||We.response.headers.has("X-Remix-Replace")?ni.Replace:ni.Push,{formMethod:Ct,formAction:Wt,formEncType:at}=C.navigation;!pt&&!vt&&Ct&&Wt&&at&&(pt=oV(C.navigation));let $t=pt||vt;if(AYe.has(We.response.status)&&$t&&Nl($t.formMethod))await te(Rt,dt,{submission:Co({},$t,{formAction:ft}),preventScrollReset:Mt||_,enableViewTransition:je?O:void 0});else{let Bt=PR(dt,pt);await te(Rt,dt,{overrideNavigation:Bt,fetcherSubmission:vt,preventScrollReset:Mt||_,enableViewTransition:je?O:void 0})}}async function Pe(Be,We,je,Xe,pt,vt){let Mt,Et={};try{Mt=await HYe(c,Be,We,je,Xe,pt,vt,i,o)}catch(ft){return Xe.forEach(dt=>{Et[dt.route.id]={type:Kr.error,error:ft}}),Et}for(let[ft,dt]of Object.entries(Mt))if(GYe(dt)){let Rt=dt.result;Et[ft]={type:Kr.redirect,response:VYe(Rt,je,ft,pt,l,f.v7_relativeSplatPath)}}else Et[ft]=await WYe(dt);return Et}async function Ne(Be,We,je,Xe,pt){let vt=Be.matches,Mt=Pe("loader",Be,pt,je,We,null),Et=Promise.all(Xe.map(async Rt=>{if(Rt.matches&&Rt.match&&Rt.controller){let Wt=(await Pe("loader",Be,bm(e.history,Rt.path,Rt.controller.signal),[Rt.match],Rt.matches,Rt.key))[Rt.match.route.id];return{[Rt.key]:Wt}}else return Promise.resolve({[Rt.key]:{type:Kr.error,error:Aa(404,{pathname:Rt.path})}})})),ft=await Mt,dt=(await Et).reduce((Rt,Ct)=>Object.assign(Rt,Ct),{});return await Promise.all([QYe(We,ft,pt.signal,vt,Be.loaderData),JYe(We,dt,Xe)]),{loaderResults:ft,fetcherResults:dt}}function U(){D=!0,A.push(...Tt()),L.forEach((Be,We)=>{k.has(We)&&j.add(We),Le(We)})}function H(Be,We,je){je===void 0&&(je={}),C.fetchers.set(Be,We),ce({fetchers:new Map(C.fetchers)},{flushSync:(je&&je.flushSync)===!0})}function q(Be,We,je,Xe){Xe===void 0&&(Xe={});let pt=yh(C.matches,We);Ce(Be),ce({errors:{[pt.route.id]:je},fetchers:new Map(C.fetchers)},{flushSync:(Xe&&Xe.flushSync)===!0})}function me(Be){return f.v7_fetcherPersist&&(Q.set(Be,(Q.get(Be)||0)+1),ee.has(Be)&&ee.delete(Be)),C.fetchers.get(Be)||DYe}function Ce(Be){let We=C.fetchers.get(Be);k.has(Be)&&!(We&&We.state==="loading"&&W.has(Be))&&Le(Be),L.delete(Be),W.delete(Be),K.delete(Be),ee.delete(Be),j.delete(Be),C.fetchers.delete(Be)}function ue(Be){if(f.v7_fetcherPersist){let We=(Q.get(Be)||0)-1;We<=0?(Q.delete(Be),ee.add(Be)):Q.set(Be,We)}else Ce(Be);ce({fetchers:new Map(C.fetchers)})}function Le(Be){let We=k.get(Be);We&&(We.abort(),k.delete(Be))}function He(Be){for(let We of Be){let je=me(We),Xe=Dd(je.data);C.fetchers.set(We,Xe)}}function ge(){let Be=[],We=!1;for(let je of K){let Xe=C.fetchers.get(je);hr(Xe,"Expected fetcher: "+je),Xe.state==="loading"&&(K.delete(je),Be.push(je),We=!0)}return He(Be),We}function De(Be){let We=[];for(let[je,Xe]of W)if(Xe0}function qe(Be,We){let je=C.blockers.get(Be)||H0;return ie.get(Be)!==We&&ie.set(Be,We),je}function Fe(Be){C.blockers.delete(Be),ie.delete(Be)}function Ke(Be,We){let je=C.blockers.get(Be)||H0;hr(je.state==="unblocked"&&We.state==="blocked"||je.state==="blocked"&&We.state==="blocked"||je.state==="blocked"&&We.state==="proceeding"||je.state==="blocked"&&We.state==="unblocked"||je.state==="proceeding"&&We.state==="unblocked","Invalid blocker state transition: "+je.state+" -> "+We.state);let Xe=new Map(C.blockers);Xe.set(Be,We),ce({blockers:Xe})}function Ue(Be){let{currentLocation:We,nextLocation:je,historyAction:Xe}=Be;if(ie.size===0)return;ie.size>1&&bp(!1,"A router only supports one blocker at a time");let pt=Array.from(ie.entries()),[vt,Mt]=pt[pt.length-1],Et=C.blockers.get(vt);if(!(Et&&Et.state==="proceeding")&&Mt({currentLocation:We,nextLocation:je,historyAction:Xe}))return vt}function Ve(Be){let We=Aa(404,{pathname:Be}),je=s||a,{matches:Xe,route:pt}=nV(je);return Tt(),{notFoundMatches:Xe,route:pt,error:We}}function Tt(Be){let We=[];return re.forEach((je,Xe)=>{(!Be||Be(Xe))&&(je.cancel(),We.push(Xe),re.delete(Xe))}),We}function et(Be,We,je){if(m=Be,v=We,g=je||null,!b&&C.navigation===$R){b=!0;let Xe=gt(C.location,C.matches);Xe!=null&&ce({restoreScrollPosition:Xe})}return()=>{m=null,v=null,g=null}}function st(Be,We){return g&&g(Be,We.map(Xe=>hYe(Xe,C.loaderData)))||Be.key}function yt(Be,We){if(m&&v){let je=st(Be,We);m[je]=v()}}function gt(Be,We){if(m){let je=st(Be,We),Xe=m[je];if(typeof Xe=="number")return Xe}return null}function Lt(Be,We,je){if(u)if(Be){if(Object.keys(Be[0].params).length>0)return{active:!0,matches:ux(We,je,l,!0)}}else return{active:!0,matches:ux(We,je,l,!0)||[]};return{active:!1,matches:null}}async function St(Be,We,je){if(!u)return{type:"success",matches:Be};let Xe=Be;for(;;){let pt=s==null,vt=s||a,Mt=i;try{await u({path:We,matches:Xe,patch:(dt,Rt)=>{je.aborted||XW(dt,Rt,vt,Mt,o)}})}catch(dt){return{type:"error",error:dt,partialMatches:Xe}}finally{pt&&!je.aborted&&(a=[...a])}if(je.aborted)return{type:"aborted"};let Et=vh(vt,We,l);if(Et)return{type:"success",matches:Et};let ft=ux(vt,We,l,!0);if(!ft||Xe.length===ft.length&&Xe.every((dt,Rt)=>dt.route.id===ft[Rt].route.id))return{type:"success",matches:null};Xe=ft}}function wt(Be){i={},s=pE(Be,o,void 0,i)}function Nt(Be,We){let je=s==null;XW(Be,We,s||a,i,o),je&&(a=[...a],ce({}))}return E={get basename(){return l},get future(){return f},get state(){return C},get routes(){return a},get window(){return t},initialize:X,subscribe:le,enableScrollRestoration:et,navigate:se,fetch:Se,revalidate:fe,createHref:Be=>e.history.createHref(Be),encodeLocation:Be=>e.history.encodeLocation(Be),getFetcher:me,deleteFetcher:ue,dispose:ne,getBlocker:qe,deleteBlocker:Fe,patchRoutes:Nt,_internalFetchControllers:k,_internalActiveDeferreds:re,_internalSetRoutes:wt},E}function FYe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function F6(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let u=EP(o||".",xP(l,i),Uv(e.pathname,n)||e.pathname,s==="path");if(o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c){let f=tj(u.search);if(c.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let h=new URLSearchParams(u.search),p=h.getAll("index");h.delete("index"),p.filter(g=>g).forEach(g=>h.append("index",g));let m=h.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Wu([n,u.pathname])),Of(u)}function KW(e,t,n,r){if(!r||!FYe(r))return{path:n};if(r.formMethod&&!XYe(r.formMethod))return{path:n,error:Aa(405,{method:r.formMethod})};let o=()=>({path:n,error:Aa(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=ice(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Nl(a))return o();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[g,v]=m;return""+p+g+"="+v+` +`},""):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(!Nl(a))return o();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 o()}}}hr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=B6(r.formData),c=r.formData;else if(r.body instanceof FormData)l=B6(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=JW(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=JW(l)}catch{return o()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Nl(u.formMethod))return{path:n,submission:u};let f=yd(n);return t&&f.search&&tj(f.search)&&l.append("index",""),f.search="?"+l,{path:Of(f),submission:u}}function qW(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function GW(e,t,n,r,o,i,a,s,l,c,u,f,h,p,m,g){let v=g?gs(g[1])?g[1].error:g[1].data:void 0,b=e.createURL(t.location),y=e.createURL(o),S=n;i&&t.errors?S=qW(n,Object.keys(t.errors)[0],!0):g&&gs(g[1])&&(S=qW(n,g[0]));let w=g?g[1].statusCode:void 0,E=a&&w&&w>=400,C=S.filter((_,P)=>{let{route:O}=_;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return L6(O,t.loaderData,t.errors);if(LYe(t.loaderData,t.matches[P],_)||l.some(T=>T===_.route.id))return!0;let I=t.matches[P],M=_;return YW(_,Co({currentUrl:b,currentParams:I.params,nextUrl:y,nextParams:M.params},r,{actionResult:v,actionStatus:w,defaultShouldRevalidate:E?!1:s||b.pathname+b.search===y.pathname+y.search||b.search!==y.search||rce(I,M)}))}),x=[];return f.forEach((_,P)=>{if(i||!n.some(D=>D.route.id===_.routeId)||u.has(P))return;let O=vh(p,_.path,m);if(!O){x.push({key:P,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(P),M=by(O,_.path),T=!1;h.has(P)?T=!1:c.has(P)?(c.delete(P),T=!0):I&&I.state!=="idle"&&I.data===void 0?T=s:T=YW(M,Co({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:w,defaultShouldRevalidate:E?!1:s})),T&&x.push({key:P,routeId:_.routeId,path:_.path,matches:O,match:M,controller:new AbortController})}),[C,x]}function L6(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function LYe(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function rce(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function YW(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function XW(e,t,n,r,o){var i;let a;if(e){let c=r[e];hr(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=>oce(c,u))),l=pE(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function oce(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 o;return(o=t.children)==null?void 0:o.some(i=>oce(n,i))}):!1}async function BYe(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];hr(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";bp(!l,'Route "'+o.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&&!dYe.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Co({},t(o),{lazy:void 0}))}async function zYe(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function HYe(e,t,n,r,o,i,a,s,l,c){let u=i.map(p=>p.route.lazy?BYe(p.route,l,s):void 0),f=i.map((p,m)=>{let g=u[m],v=o.some(y=>y.route.id===p.route.id);return Co({},p,{shouldLoad:v,resolve:async y=>(y&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(v=!0),v?UYe(t,r,p,g,y,c):Promise.resolve({type:Kr.data,result:void 0}))})}),h=await e({matches:f,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return h}async function UYe(e,t,n,r,o,i){let a,s,l=c=>{let u,f=new Promise((m,g)=>u=g);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:i},...m!==void 0?[m]:[]),p=(async()=>{try{return{type:"data",result:await(o?o(g=>h(g)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([p,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(h=>{u=h}),r]);if(u!==void 0)throw u;a=f}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Aa(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Kr.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Aa(404,{pathname:f})}hr(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:Kr.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function WYe(e){let{result:t,type:n}=e;if(ace(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:Kr.error,error:u}}return n===Kr.error?{type:Kr.error,error:new mE(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Kr.data,data:c,statusCode:t.status,headers:t.headers}}if(n===Kr.error){if(rV(t)){var r;if(t.data instanceof Error){var o;return{type:Kr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new mE(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Kr.error,error:t,statusCode:_P(t)?t.status:void 0}}if(YYe(t)){var i,a;return{type:Kr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(rV(t)){var s,l;return{type:Kr.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:Kr.data,data:t}}function VYe(e,t,n,r,o,i){let a=e.headers.get("Location");if(hr(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ZD.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=F6(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function QW(e,t,n){if(ZD.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Uv(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function bm(e,t,n,r){let o=e.createURL(ice(t)).toString(),i={signal:n};if(r&&Nl(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=B6(r.formData):i.body=r.formData}return new Request(o,i)}function B6(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function JW(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function KYe(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&gs(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let h=f.route.id,p=t[h];if(hr(!Ih(p),"Cannot handle redirect results in processLoaderData"),gs(p)){let m=p.error;u!==void 0&&(m=u,u=void 0),a=a||{};{let g=yh(e,h);a[g.route.id]==null&&(a[g.route.id]=m)}i[h]=void 0,l||(l=!0,s=_P(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else nf(p)?(r.set(h,p.deferredData),i[h]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers)):(i[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},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function ZW(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=KYe(t,n,r,a);return o.forEach(c=>{let{key:u,match:f,controller:h}=c,p=i[u];if(hr(p,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(gs(p)){let m=yh(e.matches,f==null?void 0:f.route.id);l&&l[m.route.id]||(l=Co({},l,{[m.route.id]:p.error})),e.fetchers.delete(u)}else if(Ih(p))hr(!1,"Unhandled fetcher revalidation redirect");else if(nf(p))hr(!1,"Unhandled fetcher deferred data");else{let m=Dd(p.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function eV(e,t,n,r){let o=Co({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function tV(e){return e?gs(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function yh(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 nV(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 Aa(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="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",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new mE(e||500,s,new Error(l),!0)}function nw(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Ih(o))return{key:r,result:o}}}function ice(e){let t=typeof e=="string"?yd(e):e;return Of(Co({},t,{hash:""}))}function qYe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function GYe(e){return ace(e.result)&&NYe.has(e.result.status)}function nf(e){return e.type===Kr.deferred}function gs(e){return e.type===Kr.error}function Ih(e){return(e&&e.type)===Kr.redirect}function rV(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function YYe(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 ace(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XYe(e){return kYe.has(e.toLowerCase())}function Nl(e){return RYe.has(e.toLowerCase())}async function QYe(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(h==null?void 0:h.route.id)===s);if(!c)continue;let u=r.find(h=>h.route.id===c.route.id),f=u!=null&&!rce(u,c)&&(o&&o[c.route.id])!==void 0;nf(l)&&f&&await ej(l,n,!1).then(h=>{h&&(t[s]=h)})}}async function JYe(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&nf(s)&&(hr(a,"Expected an AbortController for revalidating fetcher deferred result"),await ej(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function ej(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Kr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Kr.error,error:o}}return{type:Kr.data,data:e.deferredData.data}}}function tj(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function by(e,t){let n=typeof t=="string"?yd(t).search:t.search;if(e[e.length-1].route.index&&tj(n||""))return e[e.length-1];let r=Zle(e);return r[r.length-1]}function oV(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,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 PR(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 ZYe(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 U0(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 eXe(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 Dd(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 tXe(e,t){try{let n=e.sessionStorage.getItem(tce);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function nXe(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(tce,JSON.stringify(n))}catch(r){bp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.28.0 * * Copyright (c) Remix Software Inc. @@ -538,7 +538,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function mE(){return mE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=EP(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Vu([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}const aXe=d.createContext(null);function sXe(e){let t=d.useContext(lu).outlet;return t&&d.createElement(aXe.Provider,{value:e},t)}function lXe(){let{matches:e}=d.useContext(lu),t=e[e.length-1];return t?t.params:{}}function dce(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(Lf),{matches:o}=d.useContext(lu),{pathname:i}=Vv(),a=JSON.stringify(xP(o,r.v7_relativeSplatPath));return d.useMemo(()=>EP(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function cXe(e,t,n,r){Wv()||hr(!1);let{navigator:o}=d.useContext(Lf),{matches:i}=d.useContext(lu),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Vv(),u;u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=vh(e,{pathname:h});return pXe(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Vu([l,o.encodeLocation?o.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Vu([l,o.encodeLocation?o.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n,r)}function uXe(){let e=yXe(),t=_P(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:o},n):null,null)}const dXe=d.createElement(uXe,null);class fXe extends d.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?d.createElement(lu.Provider,{value:this.props.routeContext},d.createElement(cce.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hXe(e){let{routeContext:t,match:n,children:r}=e,o=d.useContext($P);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(lu.Provider,{value:t},r)}function pXe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||hr(!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=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,h)=>{let p,m=!1,g=null,v=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||dXe,l&&(c<0&&h===0?(m=!0,v=null):c===h&&(m=!0,v=f.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,h+1)),y=()=>{let S;return p?S=g:m?S=v:f.route.Component?S=d.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=u,d.createElement(hXe,{match:f,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?d.createElement(fXe,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:y(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):y()},null)}var fce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fce||{}),gE=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}(gE||{});function mXe(e){let t=d.useContext($P);return t||hr(!1),t}function gXe(e){let t=d.useContext(lce);return t||hr(!1),t}function vXe(e){let t=d.useContext(lu);return t||hr(!1),t}function hce(e){let t=vXe(),n=t.matches[t.matches.length-1];return n.route.id||hr(!1),n.route.id}function yXe(){var e;let t=d.useContext(cce),n=gXe(gE.UseRouteError),r=hce(gE.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function bXe(){let{router:e}=mXe(fce.UseNavigateStable),t=hce(gE.UseNavigateStable),n=d.useRef(!1);return uce(()=>{n.current=!0}),d.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,mE({fromRouteId:t},i)))},[e,t])}const sV={};function SXe(e,t){sV[t]||(sV[t]=!0,console.warn(t))}const Sm=(e,t,n)=>SXe(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function CXe(e,t){e!=null&&e.v7_startTransition||Sm("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)&&Sm("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||Sm("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||Sm("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||Sm("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||Sm("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function wXe(e){let{to:t,replace:n,state:r,relative:o}=e;Wv()||hr(!1);let{future:i,static:a}=d.useContext(Lf),{matches:s}=d.useContext(lu),{pathname:l}=Vv(),c=Ya(),u=EP(t,xP(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function PP(e){return sXe(e.context)}function xXe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ni.Pop,navigator:i,static:a=!1,future:s}=e;Wv()&&hr(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:i,static:a,future:mE({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=yd(r));let{pathname:u="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,g=d.useMemo(()=>{let v=Uv(u,l);return v==null?null:{location:{pathname:v,search:f,hash:h,state:p,key:m},navigationType:o}},[l,u,f,h,p,m,o]);return g==null?null:d.createElement(Lf.Provider,{value:c},d.createElement(oj.Provider,{children:n,value:g}))}new Promise(()=>{});function pce(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=EP(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Wu([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}const iXe=d.createContext(null);function aXe(e){let t=d.useContext(su).outlet;return t&&d.createElement(iXe.Provider,{value:e},t)}function sXe(){let{matches:e}=d.useContext(su),t=e[e.length-1];return t?t.params:{}}function uce(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(Lf),{matches:o}=d.useContext(su),{pathname:i}=Vv(),a=JSON.stringify(xP(o,r.v7_relativeSplatPath));return d.useMemo(()=>EP(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function lXe(e,t,n,r){Wv()||hr(!1);let{navigator:o}=d.useContext(Lf),{matches:i}=d.useContext(su),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Vv(),u;u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=vh(e,{pathname:h});return hXe(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Wu([l,o.encodeLocation?o.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Wu([l,o.encodeLocation?o.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n,r)}function cXe(){let e=vXe(),t=_P(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:o},n):null,null)}const uXe=d.createElement(cXe,null);class dXe extends d.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?d.createElement(su.Provider,{value:this.props.routeContext},d.createElement(lce.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fXe(e){let{routeContext:t,match:n,children:r}=e,o=d.useContext($P);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(su.Provider,{value:t},r)}function hXe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||hr(!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=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,h)=>{let p,m=!1,g=null,v=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||uXe,l&&(c<0&&h===0?(m=!0,v=null):c===h&&(m=!0,v=f.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,h+1)),y=()=>{let S;return p?S=g:m?S=v:f.route.Component?S=d.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=u,d.createElement(fXe,{match:f,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?d.createElement(dXe,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:y(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):y()},null)}var dce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dce||{}),vE=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}(vE||{});function pXe(e){let t=d.useContext($P);return t||hr(!1),t}function mXe(e){let t=d.useContext(sce);return t||hr(!1),t}function gXe(e){let t=d.useContext(su);return t||hr(!1),t}function fce(e){let t=gXe(),n=t.matches[t.matches.length-1];return n.route.id||hr(!1),n.route.id}function vXe(){var e;let t=d.useContext(lce),n=mXe(vE.UseRouteError),r=fce(vE.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yXe(){let{router:e}=pXe(dce.UseNavigateStable),t=fce(vE.UseNavigateStable),n=d.useRef(!1);return cce(()=>{n.current=!0}),d.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,gE({fromRouteId:t},i)))},[e,t])}const iV={};function bXe(e,t){iV[t]||(iV[t]=!0,console.warn(t))}const Sm=(e,t,n)=>bXe(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function SXe(e,t){e!=null&&e.v7_startTransition||Sm("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)&&Sm("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||Sm("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||Sm("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||Sm("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||Sm("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function CXe(e){let{to:t,replace:n,state:r,relative:o}=e;Wv()||hr(!1);let{future:i,static:a}=d.useContext(Lf),{matches:s}=d.useContext(su),{pathname:l}=Vv(),c=Ya(),u=EP(t,xP(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function PP(e){return aXe(e.context)}function wXe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ni.Pop,navigator:i,static:a=!1,future:s}=e;Wv()&&hr(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:i,static:a,future:gE({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=yd(r));let{pathname:u="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,g=d.useMemo(()=>{let v=Uv(u,l);return v==null?null:{location:{pathname:v,search:f,hash:h,state:p,key:m},navigationType:o}},[l,u,f,h,p,m,o]);return g==null?null:d.createElement(Lf.Provider,{value:c},d.createElement(nj.Provider,{children:n,value:g}))}new Promise(()=>{});function hce(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.28.0 * * Copyright (c) Remix Software Inc. @@ -547,7 +547,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function _Xe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $Xe(e,t){return e.button===0&&(!t||t==="_self")&&!_Xe(e)}const PXe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],OXe="6";try{window.__reactRouterVersion=OXe}catch{}function MXe(e,t){return rce({basename:t==null?void 0:t.basename,future:Jg({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:cYe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||mce(),routes:e,mapRouteProperties:pce,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function TXe(e,t){return rce({basename:t==null?void 0:t.basename,future:Jg({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:uYe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||mce(),routes:e,mapRouteProperties:pce,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function mce(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Jg({},t,{errors:RXe(t.errors)})),t}function RXe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new pE(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const IXe=d.createContext({isTransitioning:!1}),kXe=d.createContext(new Map),NXe="startTransition",lV=b1[NXe],AXe="flushSync",cV=lQ[AXe];function DXe(e){lV?lV(e):e()}function W0(e){cV?cV(e):e()}class jXe{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 FXe(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=d.useState(n.state),[a,s]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,f]=d.useState(),[h,p]=d.useState(),[m,g]=d.useState(),v=d.useRef(new Map),{v7_startTransition:b}=r||{},y=d.useCallback(_=>{b?DXe(_):_()},[b]),S=d.useCallback((_,P)=>{let{deletedFetchers:O,flushSync:I,viewTransitionOpts:M}=P;O.forEach(D=>v.current.delete(D)),_.fetchers.forEach((D,A)=>{D.data!==void 0&&v.current.set(A,D.data)});let T=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!M||T){I?W0(()=>i(_)):y(()=>i(_));return}if(I){W0(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let D=n.window.document.startViewTransition(()=>{W0(()=>i(_))});D.finished.finally(()=>{W0(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),W0(()=>p(D));return}h?(u&&u.resolve(),h.skipTransition(),g({state:_,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(s(_),c({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,h,u,v,y]);d.useLayoutEffect(()=>n.subscribe(S),[n,S]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new jXe)},[l]),d.useEffect(()=>{if(u&&a&&n.window){let _=a,P=u.promise,O=n.window.document.startViewTransition(async()=>{y(()=>i(_)),await P});O.finished.finally(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(O)}},[y,a,u,n.window]),d.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,h,o.location,a]),d.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),d.useEffect(()=>{},[]);let w=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,P,O)=>n.navigate(_,{state:P,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(_,P,O)=>n.navigate(_,{replace:!0,state:P,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),E=n.basename||"/",C=d.useMemo(()=>({router:n,navigator:w,static:!1,basename:E}),[n,w,E]),x=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>CXe(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement($P.Provider,{value:C},d.createElement(lce.Provider,{value:o},d.createElement(kXe.Provider,{value:v.current},d.createElement(IXe.Provider,{value:l},d.createElement(xXe,{basename:E,location:o.location,navigationType:o.historyAction,navigator:w,future:x},o.initialized||n.future.v7_partialHydration?d.createElement(LXe,{routes:n.routes,future:n.future,state:o}):t))))),null)}const LXe=d.memo(BXe);function BXe(e){let{routes:t,future:n,state:r}=e;return cXe(t,void 0,r,n)}const zXe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HXe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,UXe=d.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,h=EXe(t,PXe),{basename:p}=d.useContext(Lf),m,g=!1;if(typeof c=="string"&&HXe.test(c)&&(m=c,zXe))try{let S=new URL(window.location.href),w=c.startsWith("//")?new URL(S.protocol+c):new URL(c),E=Uv(w.pathname,p);w.origin===S.origin&&E!=null?c=E+w.search+w.hash:g=!0}catch{}let v=oXe(c,{relative:o}),b=WXe(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:f});function y(S){r&&r(S),S.defaultPrevented||b(S)}return d.createElement("a",Jg({},h,{href:m||v,onClick:g||i?r:y,ref:n,target:l}))});var uV;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uV||(uV={}));var dV;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dV||(dV={}));function WXe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=Ya(),c=Vv(),u=dce(e,{relative:a});return d.useCallback(f=>{if($Xe(f,n)){f.preventDefault();let h=r!==void 0?r:Of(c)===Of(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var VXe=z(z({},Hte),{},{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 gce={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},H6={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},VXe),timePickerLocale:Object.assign({},gce)};H6.lang.ok="确定";const ss="${label}不是一个有效的${type}",KXe={locale:"zh-cn",Pagination:Sse,DatePicker:H6,TimePicker:gce,Calendar:H6,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:ss,method:ss,array:ss,object:ss,number:ss,date:ss,boolean:ss,integer:ss,float:ss,regexp:ss,email:ss,url:ss,hex:ss},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:"渐变色"}},rf=()=>{},vs=rf(),ux=Object,Tr=e=>e===vs,Bc=e=>typeof e=="function",ad=(e,t)=>({...e,...t}),qXe=e=>Bc(e.then),nw=new WeakMap;let GXe=0;const e1=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(ux(e)===e&&!r&&n!=RegExp){if(o=nw.get(e),o)return o;if(o=++GXe+"~",nw.set(e,o),n==Array){for(o="@",i=0;iOP&&typeof window.requestAnimationFrame!=ij,vce=(e,t)=>{const n=Iu.get(e);return[()=>!Tr(t)&&e.get(t)||OR,r=>{if(!Tr(t)){const o=e.get(t);t in rw||(rw[t]=o),n[5](t,ad(o,r),o||OR)}},n[6],()=>!Tr(t)&&t in rw?rw[t]:!Tr(t)&&e.get(t)||OR]};let W6=!0;const XXe=()=>W6,[V6,K6]=OP&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[rf,rf],QXe=()=>{const e=U6&&document.visibilityState;return Tr(e)||e!=="hidden"},JXe=e=>(U6&&document.addEventListener("visibilitychange",e),V6("focus",e),()=>{U6&&document.removeEventListener("visibilitychange",e),K6("focus",e)}),ZXe=e=>{const t=()=>{W6=!0,e()},n=()=>{W6=!1};return V6("online",t),V6("offline",n),()=>{K6("online",t),K6("offline",n)}},eQe={isOnline:XXe,isVisible:QXe},tQe={initFocus:JXe,initReconnect:ZXe},fV=!de.useId,t1=!OP||"Deno"in window,nQe=e=>YXe()?window.requestAnimationFrame(e):setTimeout(e,1),dx=t1?d.useEffect:d.useLayoutEffect,MR=typeof navigator<"u"&&navigator.connection,hV=!t1&&MR&&(["slow-2g","2g"].includes(MR.effectiveType)||MR.saveData),aj=e=>{if(Bc(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?e1(e):"",[e,t]};let rQe=0;const q6=()=>++rQe,yce=0,bce=1,Sce=2,oQe=3;var V0={__proto__:null,ERROR_REVALIDATE_EVENT:oQe,FOCUS_EVENT:yce,MUTATE_EVENT:Sce,RECONNECT_EVENT:bce};async function Cce(...e){const[t,n,r,o]=e,i=ad({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=p=>typeof s=="function"?s(p):s!==!1,f=i.throwOnError;if(Bc(n)){const p=n,m=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&p(t.get(v)._k)&&m.push(v);return Promise.all(m.map(h))}return h(n);async function h(p){const[m]=aj(p);if(!m)return;const[g,v]=vce(t,m),[b,y,S,w]=Iu.get(t),E=b[m],C=()=>c&&(delete S[m],delete w[m],E&&E[0])?E[0](Sce).then(()=>g().data):g().data;if(e.length<3)return C();let x=r,_;const P=q6();y[m]=[P,0];const O=!Tr(l),I=g(),M=I.data,T=I._c,D=Tr(T)?M:T;if(O&&(l=Bc(l)?l(D,M):l,v({data:l,_c:D})),Bc(x))try{x=x(D)}catch(j){_=j}if(x&&qXe(x))if(x=await x.catch(j=>{_=j}),P!==y[m][0]){if(_)throw _;return x}else _&&O&&u(_)&&(a=!0,x=D,v({data:x,_c:vs}));a&&(_||(Bc(a)&&(x=a(x,D)),v({data:x,error:vs,_c:vs}))),y[m][1]=q6();const A=await C();if(v({_c:vs}),_){if(f)throw _;return}return a?A:x}}const pV=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},wce=(e,t)=>{if(!Iu.has(e)){const n=ad(tQe,t),r={},o=Cce.bind(vs,e);let i=rf;const a={},s=(u,f)=>{const h=a[u]||[];return a[u]=h,h.push(f),()=>h.splice(h.indexOf(f),1)},l=(u,f,h)=>{e.set(u,f);const p=a[u];if(p)for(const m of p)m(f,h)},c=()=>{if(!Iu.has(e)&&(Iu.set(e,[r,{},{},{},o,l,s]),!t1)){const u=n.initFocus(setTimeout.bind(vs,pV.bind(vs,r,yce))),f=n.initReconnect(setTimeout.bind(vs,pV.bind(vs,r,bce)));i=()=>{u&&u(),f&&f(),Iu.delete(e)}}};return c(),[e,o,c,i]}return[e,Iu.get(e)[4]]},iQe=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Tr(i)&&a>i||setTimeout(r,s,o)},aQe=(e,t)=>e1(e)==e1(t),[sj,sQe]=wce(new Map),xce=ad({onLoadingSlow:rf,onSuccess:rf,onError:rf,onErrorRetry:iQe,onDiscarded:rf,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:hV?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:hV?5e3:3e3,compare:aQe,isPaused:()=>!1,cache:sj,mutate:sQe,fallback:{}},eQe),Ece=(e,t)=>{const n=ad(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=ad(o,a))}return n},G6=d.createContext({}),lQe=e=>{const{value:t}=e,n=d.useContext(G6),r=Bc(t),o=d.useMemo(()=>r?t(n):t,[r,n,t]),i=d.useMemo(()=>r?o:Ece(n,o),[r,n,o]),a=o&&o.provider,s=d.useRef(vs);a&&!s.current&&(s.current=wce(a(i.cache||sj),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),dx(()=>{if(l)return l[2]&&l[2](),l[3]},[]),d.createElement(G6.Provider,ad(e,{value:i}))},_ce=OP&&window.__SWR_DEVTOOLS_USE__,cQe=_ce?window.__SWR_DEVTOOLS_USE__:[],uQe=()=>{_ce&&(window.__SWR_DEVTOOLS_REACT__=de)},dQe=e=>Bc(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],lj=()=>ad(xce,d.useContext(G6)),fQe=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=aj(t),[,,,s]=Iu.get(sj),l=s[a];return Tr(l)?n(...i):(delete s[a],l)}),r),hQe=cQe.concat(fQe),pQe=e=>function(...n){const r=lj(),[o,i,a]=dQe(n),s=Ece(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(hQe);for(let f=u.length;f--;)l=u[f](l);return l(o,i||s.fetcher||null,s)},mQe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};uQe();const mV=de.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)}),TR={dedupe:!0},gQe=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:h}=n,[p,m,g,v]=Iu.get(r),[b,y]=aj(e),S=d.useRef(!1),w=d.useRef(!1),E=d.useRef(b),C=d.useRef(t),x=d.useRef(n),_=()=>x.current,P=()=>_().isVisible()&&_().isOnline(),[O,I,M,T]=vce(r,b),D=d.useRef({}).current,A=Tr(a)?n.fallback[b]:a,j=(oe,se)=>{for(const fe in D){const te=fe;if(te==="data"){if(!o(oe[te],se[te])&&(!Tr(oe[te])||!o(re,se[te])))return!1}else if(se[te]!==oe[te])return!1}return!0},k=d.useMemo(()=>{const oe=!b||!t?!1:Tr(s)?_().isPaused()||i?!1:Tr(l)?!0:l:s,se=Me=>{const Se=ad(Me);return delete Se._k,oe?{isValidating:!0,isLoading:!0,...Se}:Se},fe=O(),te=T(),he=se(fe),pe=fe===te?he:se(te);let Oe=he;return[()=>{const Me=se(O());return j(Me,Oe)?(Oe.data=Me.data,Oe.isLoading=Me.isLoading,Oe.isValidating=Me.isValidating,Oe.error=Me.error,Oe):(Oe=Me,Me)},()=>pe]},[r,b]),F=hQ.useSyncExternalStore(d.useCallback(oe=>M(b,(se,fe)=>{j(fe,se)||oe()}),[r,b]),k[0],k[1]),V=!S.current,W=p[b]&&p[b].length>0,K=F.data,L=Tr(K)?A:K,Q=F.error,ee=d.useRef(L),re=h?Tr(K)?ee.current:K:L,ie=W&&!Tr(Q)?!1:V&&!Tr(s)?s:_().isPaused()?!1:i?Tr(L)?!1:l:Tr(L)||l,G=!!(b&&t&&V&&ie),X=Tr(F.isValidating)?G:F.isValidating,ne=Tr(F.isLoading)?G:F.isLoading,le=d.useCallback(async oe=>{const se=C.current;if(!b||!se||w.current||_().isPaused())return!1;let fe,te,he=!0;const pe=oe||{},Oe=!g[b]||!pe.dedupe,Me=()=>fV?!w.current&&b===E.current&&S.current:b===E.current,Se={isValidating:!1,isLoading:!1},ye=()=>{I(Se)},ve=()=>{const Pe=g[b];Pe&&Pe[1]===te&&delete g[b]},be={isValidating:!0};Tr(O().data)&&(be.isLoading=!0);try{if(Oe&&(I(be),n.loadingTimeout&&Tr(O().data)&&setTimeout(()=>{he&&Me()&&_().onLoadingSlow(b,n)},n.loadingTimeout),g[b]=[se(y),q6()]),[fe,te]=g[b],fe=await fe,Oe&&setTimeout(ve,n.dedupingInterval),!g[b]||g[b][1]!==te)return Oe&&Me()&&_().onDiscarded(b),!1;Se.error=vs;const Pe=m[b];if(!Tr(Pe)&&(te<=Pe[0]||te<=Pe[1]||Pe[1]===0))return ye(),Oe&&Me()&&_().onDiscarded(b),!1;const Ne=O().data;Se.data=o(Ne,fe)?Ne:fe,Oe&&Me()&&_().onSuccess(fe,b,n)}catch(Pe){ve();const Ne=_(),{shouldRetryOnError:U}=Ne;Ne.isPaused()||(Se.error=Pe,Oe&&Me()&&(Ne.onError(Pe,b,Ne),(U===!0||Bc(U)&&U(Pe))&&P()&&Ne.onErrorRetry(Pe,b,Ne,H=>{const q=p[b];q&&q[0]&&q[0](V0.ERROR_REVALIDATE_EVENT,H)},{retryCount:(pe.retryCount||0)+1,dedupe:!0})))}return he=!1,ye(),!0},[b,r]),ce=d.useCallback((...oe)=>Cce(r,E.current,...oe),[]);if(dx(()=>{C.current=t,x.current=n,Tr(K)||(ee.current=K)}),dx(()=>{if(!b)return;const oe=le.bind(vs,TR);let se=0;const te=mQe(b,p,(he,pe={})=>{if(he==V0.FOCUS_EVENT){const Oe=Date.now();_().revalidateOnFocus&&Oe>se&&P()&&(se=Oe+_().focusThrottleInterval,oe())}else if(he==V0.RECONNECT_EVENT)_().revalidateOnReconnect&&P()&&oe();else{if(he==V0.MUTATE_EVENT)return le();if(he==V0.ERROR_REVALIDATE_EVENT)return le(pe)}});return w.current=!1,E.current=b,S.current=!0,I({_k:y}),ie&&(Tr(L)||t1?oe():nQe(oe)),()=>{w.current=!0,te()}},[b]),dx(()=>{let oe;function se(){const te=Bc(c)?c(O().data):c;te&&oe!==-1&&(oe=setTimeout(fe,te))}function fe(){!O().error&&(u||_().isVisible())&&(f||_().isOnline())?le(TR).then(se):se()}return se(),()=>{oe&&(clearTimeout(oe),oe=-1)}},[c,u,f,b]),d.useDebugValue(re),i&&Tr(L)&&b){if(!fV&&t1)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,x.current=n,w.current=!1;const oe=v[b];if(!Tr(oe)){const se=ce(oe);mV(se)}if(Tr(Q)){const se=le(TR);Tr(re)||(se.status="fulfilled",se.value=!0),mV(se)}else throw Q}return{mutate:ce,get data(){return D.data=!0,re},get error(){return D.error=!0,Q},get isValidating(){return D.isValidating=!0,X},get isLoading(){return D.isLoading=!0,ne}}},vQe=ux.defineProperty(lQe,"defaultValue",{value:xce}),cj=pQe(gQe),yQe={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:"غلق"}},bQe={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"}},SQe={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"}},CQe={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"}},wQe={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"}},xQe={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"}},EQe={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"}},_Qe={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:"نزدیک"}},$Qe={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"}},PQe={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:"סגור"}},OQe={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"}},MQe={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"}},TQe={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"}},RQe={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:"閉じる"}},IQe={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:"가까 운"}},kQe={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:"Хаах"}},NQe={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"}},AQe={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"}},DQe={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ć"}},jQe={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"}},FQe={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"}},LQe={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:"По адресу:"}},BQe={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ť"}},zQe={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:"Затворите"}},HQe={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"}},UQe={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:"ปิด"}},WQe={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"}},VQe={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:"Закрито"}},KQe={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"}},qQe={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"}},GQe={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:"关闭"}},YQe={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 kr=function(t,n){return{getMessage:function(o,i){var a=Mo(n,o.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(a)return a;var s=t.replace("_","-");if(s==="zh-CN")return i;var l=Sp["zh-CN"];return l?l.getMessage(o,i):i},locale:t}},XQe=kr("mn_MN",kQe),QQe=kr("ar_EG",yQe),ug=kr("zh_CN",GQe),JQe=kr("en_US",xQe),ZQe=kr("en_GB",wQe),eJe=kr("vi_VN",qQe),tJe=kr("it_IT",TQe),nJe=kr("ja_JP",RQe),rJe=kr("es_ES",EQe),oJe=kr("ca_ES",bQe),iJe=kr("ru_RU",LQe),aJe=kr("sr_RS",zQe),sJe=kr("ms_MY",NQe),lJe=kr("zh_TW",YQe),cJe=kr("fr_FR",$Qe),uJe=kr("pt_BR",jQe),dJe=kr("ko_KR",IQe),fJe=kr("id_ID",MQe),hJe=kr("de_DE",CQe),pJe=kr("fa_IR",_Qe),mJe=kr("tr_TR",WQe),gJe=kr("pl_PL",DQe),vJe=kr("hr_",OQe),yJe=kr("th_TH",UQe),bJe=kr("cs_cz",SQe),SJe=kr("sk_SK",BQe),CJe=kr("he_IL",PQe),wJe=kr("uk_UA",VQe),xJe=kr("uz_UZ",KQe),EJe=kr("nl_NL",AQe),_Je=kr("ro_RO",FQe),$Je=kr("sv_SE",HQe),Sp={"mn-MN":XQe,"ar-EG":QQe,"zh-CN":ug,"en-US":JQe,"en-GB":ZQe,"vi-VN":eJe,"it-IT":tJe,"ja-JP":nJe,"es-ES":rJe,"ca-ES":oJe,"ru-RU":iJe,"sr-RS":aJe,"ms-MY":sJe,"zh-TW":lJe,"fr-FR":cJe,"pt-BR":uJe,"ko-KR":dJe,"id-ID":fJe,"de-DE":hJe,"fa-IR":pJe,"tr-TR":mJe,"pl-PL":gJe,"hr-HR":vJe,"th-TH":yJe,"cs-CZ":bJe,"sk-SK":SJe,"he-IL":CJe,"uk-UA":wJe,"uz-UZ":xJe,"nl-NL":EJe,"ro-RO":_Je,"sv-SE":$Je},PJe=Object.keys(Sp),$ce=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return PJe.find(function(r){var o=r.toLocaleLowerCase();return o.includes(n)})};function Ai(e,t){OJe(e)&&(e="100%");var n=MJe(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 ow(e){return Math.min(1,Math.max(0,e))}function OJe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function MJe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Pce(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function iw(e){return e<=1?"".concat(Number(e)*100,"%"):e}function kh(e){return e.length===1?"0"+e:String(e)}function TJe(e,t,n){return{r:Ai(e,255)*255,g:Ai(t,255)*255,b:Ai(n,255)*255}}function gV(e,t,n){e=Ai(e,255),t=Ai(t,255),n=Ai(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(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 RJe(e,t,n){var r,o,i;if(e=Ai(e,360),t=Ai(t,100),n=Ai(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=RR(s,a,e+1/3),o=RR(s,a,e),i=RR(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function vV(e,t,n){e=Ai(e,255),t=Ai(t,255),n=Ai(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Y6={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 DJe(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=LJe(e)),typeof e=="object"&&(yu(e.r)&&yu(e.g)&&yu(e.b)?(t=TJe(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):yu(e.h)&&yu(e.s)&&yu(e.v)?(r=iw(e.s),o=iw(e.v),t=IJe(e.h,r,o),a=!0,s="hsv"):yu(e.h)&&yu(e.s)&&yu(e.l)&&(r=iw(e.s),i=iw(e.l),t=RJe(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Pce(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 jJe="[-\\+]?\\d+%?",FJe="[-\\+]?\\d*\\.\\d+%?",of="(?:".concat(FJe,")|(?:").concat(jJe,")"),IR="[\\s|\\(]+(".concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")\\s*\\)?"),kR="[\\s|\\(]+(".concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")\\s*\\)?"),_l={CSS_UNIT:new RegExp(of),rgb:new RegExp("rgb"+IR),rgba:new RegExp("rgba"+kR),hsl:new RegExp("hsl"+IR),hsla:new RegExp("hsla"+kR),hsv:new RegExp("hsv"+IR),hsva:new RegExp("hsva"+kR),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 LJe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Y6[e])e=Y6[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_l.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_l.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_l.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_l.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_l.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_l.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_l.hex8.exec(e),n?{r:ls(n[1]),g:ls(n[2]),b:ls(n[3]),a:bV(n[4]),format:t?"name":"hex8"}:(n=_l.hex6.exec(e),n?{r:ls(n[1]),g:ls(n[2]),b:ls(n[3]),format:t?"name":"hex"}:(n=_l.hex4.exec(e),n?{r:ls(n[1]+n[1]),g:ls(n[2]+n[2]),b:ls(n[3]+n[3]),a:bV(n[4]+n[4]),format:t?"name":"hex8"}:(n=_l.hex3.exec(e),n?{r:ls(n[1]+n[1]),g:ls(n[2]+n[2]),b:ls(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function yu(e){return!!_l.CSS_UNIT.exec(String(e))}var BJe=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=AJe(t)),this.originalInput=t;var o=DJe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Pce(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=vV(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=vV(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=gV(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=gV(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),yV(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),kJe(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(Ai(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(Ai(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="#"+yV(this.r,this.g,this.b,!1),n=0,r=Object.entries(Y6);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?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=ow(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=ow(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=ow(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=ow(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(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+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(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},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,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+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(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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,o=[this],i=360/t,a=1;a1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,o=1103547991^n,i=0,a;i>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&o)+(r>>>0)},uj=up(function(e){return e}),Mce={theme:uj,token:z(z({},n1),pa==null||(NR=pa.defaultAlgorithm)===null||NR===void 0?void 0:NR.call(pa,pa==null?void 0:pa.defaultSeed)),hashId:"pro-".concat(Oce(JSON.stringify(n1)))},zJe=function(){return Mce};const HJe=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:n1,emptyTheme:uj,hashCode:Oce,token:Mce,useToken:zJe},Symbol.toStringTag,{value:"Module"}));var cs=function(t,n){return new BJe(t).setAlpha(n).toRgbString()},UJe=function(){return typeof pa>"u"||!pa?HJe:pa},Qc=UJe(),fx=Qc.useToken,AR=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Zr(e,t){var n,r=d.useContext(Yl),o=r.token,i=o===void 0?{}:o,a=d.useContext(Yl),s=a.hashed,l=fx(),c=l.token,u=l.hashId,f=d.useContext(Yl),h=f.theme,p=d.useContext(Mn.ConfigContext),m=p.getPrefixCls,g=p.csp;return i.layout||(i=z({},c)),i.proComponentsCls=(n=i.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),i.antCls=".".concat(m()),{wrapSSR:Bb({theme:h,token:i,path:[e],nonce:g==null?void 0:g.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return t(i)}),hashId:s?u:""}}var WJe=function(t,n){var r,o,i,a,s,l=z({},t);return z(z({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:cs(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:z({colorBgHeader:cs(n.colorBgElevated,.6),colorBgScrollHeader:cs(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:cs(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(o=l.header)===null||o===void 0?void 0:o.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(i=l.header)===null||i===void 0?void 0:i.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:cs(n.colorTextBase,.95),colorBgRightActionsItemHover:cs(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:z({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:cs(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:cs(n.colorTextBase,.06),colorBgMenuItemHover:cs(n.colorTextBase,.03),colorBgMenuItemSelected:cs(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:cs(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:cs(n.colorTextBase,.95)},l.sider),pageContainer:z({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)})},VJe=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o1,oe=A.getMessage("form.lightFilter.itemUnit","项");return typeof G=="string"&&G.length>E&&ce?"...".concat(Q.length).concat(oe):""},ne=X();return N.jsxs("span",{title:typeof G=="string"?G:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ie,N.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof G=="string"?G==null||(ee=G.toString())===null||ee===void 0||(re=ee.slice)===null||re===void 0?void 0:re.call(ee,0,E):G}),ne]})}return L||h};return T(N.jsxs("span",{className:xe(I,D,"".concat(I,"-").concat((o=(i=t.size)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:"middle"),Z(Z(Z(Z({},"".concat(I,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(I,"-disabled"),c),"".concat(I,"-bordered"),g),"".concat(I,"-allow-clear"),S),p),style:v,ref:k,onClick:function(){var L;t==null||(L=t.onClick)===null||L===void 0||L.call(t)},children:[W(a,l),(l||l===0)&&S&&N.jsx(ou,{role:"button",title:A.getMessage("form.lightFilter.clear","清除"),className:xe("".concat(I,"-icon"),D,"".concat(I,"-close")),onClick:function(L){c||s==null||s(),L.stopPropagation()},ref:j}),b!==!1?b??N.jsx(z$,{className:xe("".concat(I,"-icon"),D,"".concat(I,"-arrow"))}):null]}))},bd=de.forwardRef(oZe),Js=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},iZe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,SV=function(t){return t==="*"||t==="x"||t==="X"},CV=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},aZe=function(t,n){return Ht(t)!==Ht(n)?[String(t),String(n)]:[t,n]},sZe=function(t,n){if(SV(t)||SV(n))return 0;var r=aZe(CV(t),CV(n)),o=$e(r,2),i=o[0],a=o[1];return i>a?1:i"u"?nd:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||nd},TP=function(t,n){var r=fS(Tce(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return Js(r)},cZe=function(t){return Z(Z(Z({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function uZe(e){return Zr("FilterDropdown",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[cZe(n)]})}var dZe=function(t){var n=t.children,r=t.label,o=t.footer,i=t.open,a=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,f=t.placement,h=d.useContext(Mn.ConfigContext),p=h.getPrefixCls,m=p("pro-core-field-dropdown"),g=uZe(m),v=g.wrapSSR,b=g.hashId,y=TP(i||c||!1,a||l),S=d.useRef(null);return v(N.jsx(fl,z(z({placement:f,trigger:["click"]},y),{},{overlayInnerStyle:{padding:0},content:N.jsxs("div",{ref:S,className:xe("".concat(m,"-overlay"),Z(Z({},"".concat(m,"-overlay-").concat(f),f),"hashId",b)),children:[N.jsx(Mn,{getPopupContainer:function(){return S.current||document.body},children:N.jsx("div",{className:"".concat(m,"-content ").concat(b).trim(),children:n})}),o&&N.jsx(eZe,z({disabled:s,footerRender:u},o))]}),children:N.jsx("span",{className:"".concat(m,"-label ").concat(b).trim(),children:r})})))},fZe=function(t){return Z({},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 hZe(e){return Zr("LabelIconTip",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[fZe(n)]})}var pZe=de.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,o=e.subTitle,i=d.useContext(Mn.ConfigContext),a=i.getPrefixCls,s=a("pro-core-label-tip"),l=hZe(s),c=l.wrapSSR,u=l.hashId;if(!n&&!o)return N.jsx(N.Fragment,{children:t});var f=typeof n=="string"||de.isValidElement(n)?{title:n}:n,h=(f==null?void 0:f.icon)||N.jsx(XHe,{});return c(N.jsxs("div",{className:xe(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[N.jsx("div",{className:xe("".concat(s,"-title"),u,Z({},"".concat(s,"-title-ellipsis"),r)),children:t}),o&&N.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:o}),n&&N.jsx(xa,z(z({},f),{},{children:N.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:h})}))]}))}),Rce=de.createContext({}),Ice={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n="month",r="quarter";return function(o,i){var a=i.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 f=this.$utils(),h=!!f.u(u)||u;if(f.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)}}})})(Ice);var mZe=Ice.exports;const gZe=Fr(mZe);var Cp=function(t){return t==null};qn.extend(gZe);var kce={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 xV(e){return Object.prototype.toString.call(e)==="[object Object]"}function vZe(e){if(xV(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(xV(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var X6=function(t){return!!(t!=null&&t._isAMomentObject)},EV=function(t,n,r){if(!n)return t;if(qn.isDayjs(t)||X6(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(kce[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},yZe=function e(t,n,r,o,i){var a={};return typeof window>"u"||Ht(t)!=="object"||Cp(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=i?[i,s].flat(1):[s],c=Mo(r,l)||"text",u="text",f;typeof c=="string"?u=c:c&&(u=c.valueType,f=c.dateFormat);var h=t[s];if(!(Cp(h)&&o)){if(vZe(h)&&!Array.isArray(h)&&!qn.isDayjs(h)&&!X6(h)){a[s]=e(h,n,r,o,l);return}if(Array.isArray(h)){a[s]=h.map(function(p,m){return qn.isDayjs(p)||X6(p)?EV(p,f||n,u):e(p,n,r,o,[s,"".concat(m)].flat(1))});return}a[s]=EV(h,f||n,u)}}),a)},_V=function(t,n){return typeof n=="function"?n(qn(t)):qn(t).format(n)},bZe=function(t,n){var r=Array.isArray(t)?t:[],o=$e(r,2),i=o[0],a=o[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):Ht(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=i?_V(i,s):"",u=a?_V(a,l):"",f=c&&u?"".concat(c," ~ ").concat(u):"";return f};function Zg(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=d.useState(e),o=$e(r,2),i=o[0],a=o[1],s=CZe(e);return d.useEffect(function(){var l=setTimeout(function(){a(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(Ze(n)):void 0),i}function Jh(e,t,n,r){if(e===t)return!0;if(e&&t&&Ht(e)==="object"&&Ht(t)==="object"){if(e.constructor!==t.constructor)return!1;var o,i,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!Jh(e[i],t[i],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=Fc(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(i=l.value,!t.has(i[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=Fc(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(i=u.value,!Jh(i[1],t.get(i[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 f=Fc(e.entries()),h;try{for(f.s();!(h=f.n()).done;)if(i=h.value,!t.has(i[0]))return!1}catch(m){f.e(m)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(e[i]!==t[i])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),o=a.length,o!==Object.keys(t).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;for(i=o;i--!==0;){var p=a[i];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!Jh(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var xZe=function(t,n,r){return Jh(t,n,r)};function Ace(e,t){var n=d.useRef();return xZe(e,n.current,t)||(n.current=e),n.current}function EZe(e,t,n){d.useEffect(e,Ace(t||[],n))}function Na(e,t){return de.useMemo(e,Ace(t))}var _Ze=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,dj=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!_Ze};function $Ze(e,t){var n=typeof e.pageName=="string"?e.title:t;d.useEffect(function(){dj()&&n&&(document.title=n)},[e.title,n])}var DR=0;function PZe(e){var t=d.useRef(null),n=d.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(DR+=1,DR.toString())}),r=$e(n,1),o=r[0],i=d.useRef(o),a=function(){var u=Bo(nr().mark(function f(){var h,p,m,g;return nr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return(h=t.current)===null||h===void 0||h.abort(),m=new AbortController,t.current=m,b.next=5,Promise.race([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(y,S){var w;(w=t.current)===null||w===void 0||(w=w.signal)===null||w===void 0||w.addEventListener("abort",function(){S(new Error("aborted"))})})]);case 5:return g=b.sent,b.abrupt("return",g);case 7:case"end":return b.stop()}},f)}));return function(){return u.apply(this,arguments)}}();d.useEffect(function(){return function(){DR+=1}},[]);var s=cj([i.current,e.params],a,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var OZe=function(t){var n=d.useRef();return d.useEffect(function(){n.current=t}),n.current},MZe=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function TZe(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var fj=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},Dce=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return($V+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var o=63&r[t];n+=o<36?o.toString(36):o<62?(o-26).toString(36).toUpperCase():o<63?"_":"-"}return n},vE=function(){return typeof window>"u"?PV():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():PV()};qn.extend(eie);var OV=function(t){return!!(t!=null&&t._isAMomentObject)},hS=function e(t,n){return Cp(t)||qn.isDayjs(t)||OV(t)?OV(t)?qn(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?qn(t):qn(t,n)},RZe=["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 IZe(e){var t={};return RZe.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var kZe="valueType request plain renderFormItem render text formItemProps valueEnum",NZe="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function jce(e){var t="".concat(kZe," ").concat(NZe).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function AZe(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&Ht(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var DZe=function(t){var n=t.color,r=t.children;return N.jsx(Xi,{color:n,text:r})},Sd=function(t){return AZe(t)==="map"?t:new Map(Object.entries(t||{}))},jZe={Success:function(t){var n=t.children;return N.jsx(Xi,{status:"success",text:n})},Error:function(t){var n=t.children;return N.jsx(Xi,{status:"error",text:n})},Default:function(t){var n=t.children;return N.jsx(Xi,{status:"default",text:n})},Processing:function(t){var n=t.children;return N.jsx(Xi,{status:"processing",text:n})},Warning:function(t){var n=t.children;return N.jsx(Xi,{status:"warning",text:n})},success:function(t){var n=t.children;return N.jsx(Xi,{status:"success",text:n})},error:function(t){var n=t.children;return N.jsx(Xi,{status:"error",text:n})},default:function(t){var n=t.children;return N.jsx(Xi,{status:"default",text:n})},processing:function(t){var n=t.children;return N.jsx(Xi,{status:"processing",text:n})},warning:function(t){var n=t.children;return N.jsx(Xi,{status:"warning",text:n})}},Kv=function e(t,n,r){if(Array.isArray(t))return N.jsx(oo,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var o=Sd(n);if(!o.has(t)&&!o.has("".concat(t)))return(t==null?void 0:t.label)||t;var i=o.get(t)||o.get("".concat(t));if(!i)return N.jsx(de.Fragment,{children:(t==null?void 0:t.label)||t},r);var a=i.status,s=i.color,l=jZe[a||"Init"];return l?N.jsx(l,{children:i.text},r):s?N.jsx(DZe,{color:s,children:i.text},r):N.jsx(de.Fragment,{children:i.text||i},r)},Q6={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=b();r.configure=b,r.stringify=r,r.default=r,t.stringify=r,t.configure=b,e.exports=r;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function i(y){return y.length<5e3&&!o.test(y)?`"${y}"`:JSON.stringify(y)}function a(y,S){if(y.length>200||S)return y.sort(S);for(let w=1;wE;)y[C]=y[C-1],C--;y[C]=E}return y}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(y){return s.call(y)!==void 0&&y.length!==0}function c(y,S,w){y.length= 1`)}return w===void 0?1/0:w}function m(y){return y===1?"1 item":`${y} items`}function g(y){const S=new Set;for(const w of y)(typeof w=="string"||typeof w=="number")&&S.add(String(w));return S}function v(y){if(n.call(y,"strict")){const S=y.strict;if(typeof S!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(S)return w=>{let E=`Object can not safely be stringified. Received type ${typeof w}`;throw typeof w!="function"&&(E+=` (${w.toString()})`),new Error(E)}}}function b(y){y={...y};const S=v(y);S&&(y.bigint===void 0&&(y.bigint=!1),"circularValue"in y||(y.circularValue=Error));const w=u(y),E=h(y,"bigint"),C=f(y),x=typeof C=="function"?C:void 0,_=p(y,"maximumDepth"),P=p(y,"maximumBreadth");function O(A,j,k,F,V,W){let K=j[A];switch(typeof K=="object"&&K!==null&&typeof K.toJSON=="function"&&(K=K.toJSON(A)),K=F.call(j,A,K),typeof K){case"string":return i(K);case"object":{if(K===null)return"null";if(k.indexOf(K)!==-1)return w;let L="",Q=",";const ee=W;if(Array.isArray(K)){if(K.length===0)return"[]";if(_=0)&&(n[o]=e[o]);return n}function EXe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _Xe(e,t){return e.button===0&&(!t||t==="_self")&&!EXe(e)}const $Xe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],PXe="6";try{window.__reactRouterVersion=PXe}catch{}function OXe(e,t){return nce({basename:t==null?void 0:t.basename,future:Jg({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:lYe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||pce(),routes:e,mapRouteProperties:hce,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function MXe(e,t){return nce({basename:t==null?void 0:t.basename,future:Jg({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:cYe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||pce(),routes:e,mapRouteProperties:hce,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function pce(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Jg({},t,{errors:TXe(t.errors)})),t}function TXe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new mE(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const RXe=d.createContext({isTransitioning:!1}),IXe=d.createContext(new Map),kXe="startTransition",aV=S1[kXe],NXe="flushSync",sV=sQ[NXe];function AXe(e){aV?aV(e):e()}function W0(e){sV?sV(e):e()}class DXe{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 jXe(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=d.useState(n.state),[a,s]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,f]=d.useState(),[h,p]=d.useState(),[m,g]=d.useState(),v=d.useRef(new Map),{v7_startTransition:b}=r||{},y=d.useCallback(_=>{b?AXe(_):_()},[b]),S=d.useCallback((_,P)=>{let{deletedFetchers:O,flushSync:I,viewTransitionOpts:M}=P;O.forEach(D=>v.current.delete(D)),_.fetchers.forEach((D,A)=>{D.data!==void 0&&v.current.set(A,D.data)});let T=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!M||T){I?W0(()=>i(_)):y(()=>i(_));return}if(I){W0(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let D=n.window.document.startViewTransition(()=>{W0(()=>i(_))});D.finished.finally(()=>{W0(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),W0(()=>p(D));return}h?(u&&u.resolve(),h.skipTransition(),g({state:_,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(s(_),c({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,h,u,v,y]);d.useLayoutEffect(()=>n.subscribe(S),[n,S]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new DXe)},[l]),d.useEffect(()=>{if(u&&a&&n.window){let _=a,P=u.promise,O=n.window.document.startViewTransition(async()=>{y(()=>i(_)),await P});O.finished.finally(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(O)}},[y,a,u,n.window]),d.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,h,o.location,a]),d.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),d.useEffect(()=>{},[]);let w=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,P,O)=>n.navigate(_,{state:P,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(_,P,O)=>n.navigate(_,{replace:!0,state:P,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),E=n.basename||"/",C=d.useMemo(()=>({router:n,navigator:w,static:!1,basename:E}),[n,w,E]),x=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>SXe(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement($P.Provider,{value:C},d.createElement(sce.Provider,{value:o},d.createElement(IXe.Provider,{value:v.current},d.createElement(RXe.Provider,{value:l},d.createElement(wXe,{basename:E,location:o.location,navigationType:o.historyAction,navigator:w,future:x},o.initialized||n.future.v7_partialHydration?d.createElement(FXe,{routes:n.routes,future:n.future,state:o}):t))))),null)}const FXe=d.memo(LXe);function LXe(e){let{routes:t,future:n,state:r}=e;return lXe(t,void 0,r,n)}const BXe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zXe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HXe=d.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,h=xXe(t,$Xe),{basename:p}=d.useContext(Lf),m,g=!1;if(typeof c=="string"&&zXe.test(c)&&(m=c,BXe))try{let S=new URL(window.location.href),w=c.startsWith("//")?new URL(S.protocol+c):new URL(c),E=Uv(w.pathname,p);w.origin===S.origin&&E!=null?c=E+w.search+w.hash:g=!0}catch{}let v=rXe(c,{relative:o}),b=UXe(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:f});function y(S){r&&r(S),S.defaultPrevented||b(S)}return d.createElement("a",Jg({},h,{href:m||v,onClick:g||i?r:y,ref:n,target:l}))});var lV;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(lV||(lV={}));var cV;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cV||(cV={}));function UXe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=Ya(),c=Vv(),u=uce(e,{relative:a});return d.useCallback(f=>{if(_Xe(f,n)){f.preventDefault();let h=r!==void 0?r:Of(c)===Of(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var WXe=z(z({},zte),{},{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 mce={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},z6={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},WXe),timePickerLocale:Object.assign({},mce)};z6.lang.ok="确定";const ss="${label}不是一个有效的${type}",VXe={locale:"zh-cn",Pagination:bse,DatePicker:z6,TimePicker:mce,Calendar:z6,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:ss,method:ss,array:ss,object:ss,number:ss,date:ss,boolean:ss,integer:ss,float:ss,regexp:ss,email:ss,url:ss,hex:ss},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:"渐变色"}},rf=()=>{},vs=rf(),dx=Object,Tr=e=>e===vs,Bc=e=>typeof e=="function",id=(e,t)=>({...e,...t}),KXe=e=>Bc(e.then),rw=new WeakMap;let qXe=0;const e1=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(dx(e)===e&&!r&&n!=RegExp){if(o=rw.get(e),o)return o;if(o=++qXe+"~",rw.set(e,o),n==Array){for(o="@",i=0;iOP&&typeof window.requestAnimationFrame!=rj,gce=(e,t)=>{const n=Ru.get(e);return[()=>!Tr(t)&&e.get(t)||OR,r=>{if(!Tr(t)){const o=e.get(t);t in ow||(ow[t]=o),n[5](t,id(o,r),o||OR)}},n[6],()=>!Tr(t)&&t in ow?ow[t]:!Tr(t)&&e.get(t)||OR]};let U6=!0;const YXe=()=>U6,[W6,V6]=OP&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[rf,rf],XXe=()=>{const e=H6&&document.visibilityState;return Tr(e)||e!=="hidden"},QXe=e=>(H6&&document.addEventListener("visibilitychange",e),W6("focus",e),()=>{H6&&document.removeEventListener("visibilitychange",e),V6("focus",e)}),JXe=e=>{const t=()=>{U6=!0,e()},n=()=>{U6=!1};return W6("online",t),W6("offline",n),()=>{V6("online",t),V6("offline",n)}},ZXe={isOnline:YXe,isVisible:XXe},eQe={initFocus:QXe,initReconnect:JXe},uV=!de.useId,t1=!OP||"Deno"in window,tQe=e=>GXe()?window.requestAnimationFrame(e):setTimeout(e,1),fx=t1?d.useEffect:d.useLayoutEffect,MR=typeof navigator<"u"&&navigator.connection,dV=!t1&&MR&&(["slow-2g","2g"].includes(MR.effectiveType)||MR.saveData),oj=e=>{if(Bc(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?e1(e):"",[e,t]};let nQe=0;const K6=()=>++nQe,vce=0,yce=1,bce=2,rQe=3;var V0={__proto__:null,ERROR_REVALIDATE_EVENT:rQe,FOCUS_EVENT:vce,MUTATE_EVENT:bce,RECONNECT_EVENT:yce};async function Sce(...e){const[t,n,r,o]=e,i=id({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=p=>typeof s=="function"?s(p):s!==!1,f=i.throwOnError;if(Bc(n)){const p=n,m=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&p(t.get(v)._k)&&m.push(v);return Promise.all(m.map(h))}return h(n);async function h(p){const[m]=oj(p);if(!m)return;const[g,v]=gce(t,m),[b,y,S,w]=Ru.get(t),E=b[m],C=()=>c&&(delete S[m],delete w[m],E&&E[0])?E[0](bce).then(()=>g().data):g().data;if(e.length<3)return C();let x=r,_;const P=K6();y[m]=[P,0];const O=!Tr(l),I=g(),M=I.data,T=I._c,D=Tr(T)?M:T;if(O&&(l=Bc(l)?l(D,M):l,v({data:l,_c:D})),Bc(x))try{x=x(D)}catch(j){_=j}if(x&&KXe(x))if(x=await x.catch(j=>{_=j}),P!==y[m][0]){if(_)throw _;return x}else _&&O&&u(_)&&(a=!0,x=D,v({data:x,_c:vs}));a&&(_||(Bc(a)&&(x=a(x,D)),v({data:x,error:vs,_c:vs}))),y[m][1]=K6();const A=await C();if(v({_c:vs}),_){if(f)throw _;return}return a?A:x}}const fV=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Cce=(e,t)=>{if(!Ru.has(e)){const n=id(eQe,t),r={},o=Sce.bind(vs,e);let i=rf;const a={},s=(u,f)=>{const h=a[u]||[];return a[u]=h,h.push(f),()=>h.splice(h.indexOf(f),1)},l=(u,f,h)=>{e.set(u,f);const p=a[u];if(p)for(const m of p)m(f,h)},c=()=>{if(!Ru.has(e)&&(Ru.set(e,[r,{},{},{},o,l,s]),!t1)){const u=n.initFocus(setTimeout.bind(vs,fV.bind(vs,r,vce))),f=n.initReconnect(setTimeout.bind(vs,fV.bind(vs,r,yce)));i=()=>{u&&u(),f&&f(),Ru.delete(e)}}};return c(),[e,o,c,i]}return[e,Ru.get(e)[4]]},oQe=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Tr(i)&&a>i||setTimeout(r,s,o)},iQe=(e,t)=>e1(e)==e1(t),[ij,aQe]=Cce(new Map),wce=id({onLoadingSlow:rf,onSuccess:rf,onError:rf,onErrorRetry:oQe,onDiscarded:rf,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:dV?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:dV?5e3:3e3,compare:iQe,isPaused:()=>!1,cache:ij,mutate:aQe,fallback:{}},ZXe),xce=(e,t)=>{const n=id(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=id(o,a))}return n},q6=d.createContext({}),sQe=e=>{const{value:t}=e,n=d.useContext(q6),r=Bc(t),o=d.useMemo(()=>r?t(n):t,[r,n,t]),i=d.useMemo(()=>r?o:xce(n,o),[r,n,o]),a=o&&o.provider,s=d.useRef(vs);a&&!s.current&&(s.current=Cce(a(i.cache||ij),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),fx(()=>{if(l)return l[2]&&l[2](),l[3]},[]),d.createElement(q6.Provider,id(e,{value:i}))},Ece=OP&&window.__SWR_DEVTOOLS_USE__,lQe=Ece?window.__SWR_DEVTOOLS_USE__:[],cQe=()=>{Ece&&(window.__SWR_DEVTOOLS_REACT__=de)},uQe=e=>Bc(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],aj=()=>id(wce,d.useContext(q6)),dQe=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=oj(t),[,,,s]=Ru.get(ij),l=s[a];return Tr(l)?n(...i):(delete s[a],l)}),r),fQe=lQe.concat(dQe),hQe=e=>function(...n){const r=aj(),[o,i,a]=uQe(n),s=xce(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(fQe);for(let f=u.length;f--;)l=u[f](l);return l(o,i||s.fetcher||null,s)},pQe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};cQe();const hV=de.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)}),TR={dedupe:!0},mQe=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:h}=n,[p,m,g,v]=Ru.get(r),[b,y]=oj(e),S=d.useRef(!1),w=d.useRef(!1),E=d.useRef(b),C=d.useRef(t),x=d.useRef(n),_=()=>x.current,P=()=>_().isVisible()&&_().isOnline(),[O,I,M,T]=gce(r,b),D=d.useRef({}).current,A=Tr(a)?n.fallback[b]:a,j=(oe,se)=>{for(const fe in D){const te=fe;if(te==="data"){if(!o(oe[te],se[te])&&(!Tr(oe[te])||!o(re,se[te])))return!1}else if(se[te]!==oe[te])return!1}return!0},k=d.useMemo(()=>{const oe=!b||!t?!1:Tr(s)?_().isPaused()||i?!1:Tr(l)?!0:l:s,se=Me=>{const Se=id(Me);return delete Se._k,oe?{isValidating:!0,isLoading:!0,...Se}:Se},fe=O(),te=T(),he=se(fe),pe=fe===te?he:se(te);let Oe=he;return[()=>{const Me=se(O());return j(Me,Oe)?(Oe.data=Me.data,Oe.isLoading=Me.isLoading,Oe.isValidating=Me.isValidating,Oe.error=Me.error,Oe):(Oe=Me,Me)},()=>pe]},[r,b]),F=fQ.useSyncExternalStore(d.useCallback(oe=>M(b,(se,fe)=>{j(fe,se)||oe()}),[r,b]),k[0],k[1]),V=!S.current,W=p[b]&&p[b].length>0,K=F.data,L=Tr(K)?A:K,Q=F.error,ee=d.useRef(L),re=h?Tr(K)?ee.current:K:L,ie=W&&!Tr(Q)?!1:V&&!Tr(s)?s:_().isPaused()?!1:i?Tr(L)?!1:l:Tr(L)||l,G=!!(b&&t&&V&&ie),X=Tr(F.isValidating)?G:F.isValidating,ne=Tr(F.isLoading)?G:F.isLoading,le=d.useCallback(async oe=>{const se=C.current;if(!b||!se||w.current||_().isPaused())return!1;let fe,te,he=!0;const pe=oe||{},Oe=!g[b]||!pe.dedupe,Me=()=>uV?!w.current&&b===E.current&&S.current:b===E.current,Se={isValidating:!1,isLoading:!1},ye=()=>{I(Se)},ve=()=>{const Pe=g[b];Pe&&Pe[1]===te&&delete g[b]},be={isValidating:!0};Tr(O().data)&&(be.isLoading=!0);try{if(Oe&&(I(be),n.loadingTimeout&&Tr(O().data)&&setTimeout(()=>{he&&Me()&&_().onLoadingSlow(b,n)},n.loadingTimeout),g[b]=[se(y),K6()]),[fe,te]=g[b],fe=await fe,Oe&&setTimeout(ve,n.dedupingInterval),!g[b]||g[b][1]!==te)return Oe&&Me()&&_().onDiscarded(b),!1;Se.error=vs;const Pe=m[b];if(!Tr(Pe)&&(te<=Pe[0]||te<=Pe[1]||Pe[1]===0))return ye(),Oe&&Me()&&_().onDiscarded(b),!1;const Ne=O().data;Se.data=o(Ne,fe)?Ne:fe,Oe&&Me()&&_().onSuccess(fe,b,n)}catch(Pe){ve();const Ne=_(),{shouldRetryOnError:U}=Ne;Ne.isPaused()||(Se.error=Pe,Oe&&Me()&&(Ne.onError(Pe,b,Ne),(U===!0||Bc(U)&&U(Pe))&&P()&&Ne.onErrorRetry(Pe,b,Ne,H=>{const q=p[b];q&&q[0]&&q[0](V0.ERROR_REVALIDATE_EVENT,H)},{retryCount:(pe.retryCount||0)+1,dedupe:!0})))}return he=!1,ye(),!0},[b,r]),ce=d.useCallback((...oe)=>Sce(r,E.current,...oe),[]);if(fx(()=>{C.current=t,x.current=n,Tr(K)||(ee.current=K)}),fx(()=>{if(!b)return;const oe=le.bind(vs,TR);let se=0;const te=pQe(b,p,(he,pe={})=>{if(he==V0.FOCUS_EVENT){const Oe=Date.now();_().revalidateOnFocus&&Oe>se&&P()&&(se=Oe+_().focusThrottleInterval,oe())}else if(he==V0.RECONNECT_EVENT)_().revalidateOnReconnect&&P()&&oe();else{if(he==V0.MUTATE_EVENT)return le();if(he==V0.ERROR_REVALIDATE_EVENT)return le(pe)}});return w.current=!1,E.current=b,S.current=!0,I({_k:y}),ie&&(Tr(L)||t1?oe():tQe(oe)),()=>{w.current=!0,te()}},[b]),fx(()=>{let oe;function se(){const te=Bc(c)?c(O().data):c;te&&oe!==-1&&(oe=setTimeout(fe,te))}function fe(){!O().error&&(u||_().isVisible())&&(f||_().isOnline())?le(TR).then(se):se()}return se(),()=>{oe&&(clearTimeout(oe),oe=-1)}},[c,u,f,b]),d.useDebugValue(re),i&&Tr(L)&&b){if(!uV&&t1)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,x.current=n,w.current=!1;const oe=v[b];if(!Tr(oe)){const se=ce(oe);hV(se)}if(Tr(Q)){const se=le(TR);Tr(re)||(se.status="fulfilled",se.value=!0),hV(se)}else throw Q}return{mutate:ce,get data(){return D.data=!0,re},get error(){return D.error=!0,Q},get isValidating(){return D.isValidating=!0,X},get isLoading(){return D.isLoading=!0,ne}}},gQe=dx.defineProperty(sQe,"defaultValue",{value:wce}),sj=hQe(mQe),vQe={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:"غلق"}},yQe={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"}},bQe={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"}},SQe={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"}},CQe={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"}},wQe={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"}},xQe={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"}},EQe={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:"نزدیک"}},_Qe={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"}},$Qe={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:"סגור"}},PQe={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"}},OQe={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"}},MQe={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"}},TQe={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:"閉じる"}},RQe={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:"가까 운"}},IQe={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:"Хаах"}},kQe={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"}},NQe={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"}},AQe={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ć"}},DQe={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"}},jQe={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"}},FQe={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:"По адресу:"}},LQe={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ť"}},BQe={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:"Затворите"}},zQe={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"}},HQe={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:"ปิด"}},UQe={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"}},WQe={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:"Закрито"}},VQe={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"}},KQe={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"}},qQe={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:"关闭"}},GQe={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 kr=function(t,n){return{getMessage:function(o,i){var a=Mo(n,o.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(a)return a;var s=t.replace("_","-");if(s==="zh-CN")return i;var l=Sp["zh-CN"];return l?l.getMessage(o,i):i},locale:t}},YQe=kr("mn_MN",IQe),XQe=kr("ar_EG",vQe),ug=kr("zh_CN",qQe),QQe=kr("en_US",wQe),JQe=kr("en_GB",CQe),ZQe=kr("vi_VN",KQe),eJe=kr("it_IT",MQe),tJe=kr("ja_JP",TQe),nJe=kr("es_ES",xQe),rJe=kr("ca_ES",yQe),oJe=kr("ru_RU",FQe),iJe=kr("sr_RS",BQe),aJe=kr("ms_MY",kQe),sJe=kr("zh_TW",GQe),lJe=kr("fr_FR",_Qe),cJe=kr("pt_BR",DQe),uJe=kr("ko_KR",RQe),dJe=kr("id_ID",OQe),fJe=kr("de_DE",SQe),hJe=kr("fa_IR",EQe),pJe=kr("tr_TR",UQe),mJe=kr("pl_PL",AQe),gJe=kr("hr_",PQe),vJe=kr("th_TH",HQe),yJe=kr("cs_cz",bQe),bJe=kr("sk_SK",LQe),SJe=kr("he_IL",$Qe),CJe=kr("uk_UA",WQe),wJe=kr("uz_UZ",VQe),xJe=kr("nl_NL",NQe),EJe=kr("ro_RO",jQe),_Je=kr("sv_SE",zQe),Sp={"mn-MN":YQe,"ar-EG":XQe,"zh-CN":ug,"en-US":QQe,"en-GB":JQe,"vi-VN":ZQe,"it-IT":eJe,"ja-JP":tJe,"es-ES":nJe,"ca-ES":rJe,"ru-RU":oJe,"sr-RS":iJe,"ms-MY":aJe,"zh-TW":sJe,"fr-FR":lJe,"pt-BR":cJe,"ko-KR":uJe,"id-ID":dJe,"de-DE":fJe,"fa-IR":hJe,"tr-TR":pJe,"pl-PL":mJe,"hr-HR":gJe,"th-TH":vJe,"cs-CZ":yJe,"sk-SK":bJe,"he-IL":SJe,"uk-UA":CJe,"uz-UZ":wJe,"nl-NL":xJe,"ro-RO":EJe,"sv-SE":_Je},$Je=Object.keys(Sp),_ce=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return $Je.find(function(r){var o=r.toLocaleLowerCase();return o.includes(n)})};function Ai(e,t){PJe(e)&&(e="100%");var n=OJe(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 iw(e){return Math.min(1,Math.max(0,e))}function PJe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function OJe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $ce(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function aw(e){return e<=1?"".concat(Number(e)*100,"%"):e}function kh(e){return e.length===1?"0"+e:String(e)}function MJe(e,t,n){return{r:Ai(e,255)*255,g:Ai(t,255)*255,b:Ai(n,255)*255}}function pV(e,t,n){e=Ai(e,255),t=Ai(t,255),n=Ai(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(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 TJe(e,t,n){var r,o,i;if(e=Ai(e,360),t=Ai(t,100),n=Ai(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=RR(s,a,e+1/3),o=RR(s,a,e),i=RR(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function mV(e,t,n){e=Ai(e,255),t=Ai(t,255),n=Ai(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var G6={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 AJe(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=FJe(e)),typeof e=="object"&&(vu(e.r)&&vu(e.g)&&vu(e.b)?(t=MJe(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vu(e.h)&&vu(e.s)&&vu(e.v)?(r=aw(e.s),o=aw(e.v),t=RJe(e.h,r,o),a=!0,s="hsv"):vu(e.h)&&vu(e.s)&&vu(e.l)&&(r=aw(e.s),i=aw(e.l),t=TJe(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=$ce(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 DJe="[-\\+]?\\d+%?",jJe="[-\\+]?\\d*\\.\\d+%?",of="(?:".concat(jJe,")|(?:").concat(DJe,")"),IR="[\\s|\\(]+(".concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")\\s*\\)?"),kR="[\\s|\\(]+(".concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")\\s*\\)?"),_l={CSS_UNIT:new RegExp(of),rgb:new RegExp("rgb"+IR),rgba:new RegExp("rgba"+kR),hsl:new RegExp("hsl"+IR),hsla:new RegExp("hsla"+kR),hsv:new RegExp("hsv"+IR),hsva:new RegExp("hsva"+kR),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 FJe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(G6[e])e=G6[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_l.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_l.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_l.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_l.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_l.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_l.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_l.hex8.exec(e),n?{r:ls(n[1]),g:ls(n[2]),b:ls(n[3]),a:vV(n[4]),format:t?"name":"hex8"}:(n=_l.hex6.exec(e),n?{r:ls(n[1]),g:ls(n[2]),b:ls(n[3]),format:t?"name":"hex"}:(n=_l.hex4.exec(e),n?{r:ls(n[1]+n[1]),g:ls(n[2]+n[2]),b:ls(n[3]+n[3]),a:vV(n[4]+n[4]),format:t?"name":"hex8"}:(n=_l.hex3.exec(e),n?{r:ls(n[1]+n[1]),g:ls(n[2]+n[2]),b:ls(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function vu(e){return!!_l.CSS_UNIT.exec(String(e))}var LJe=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=NJe(t)),this.originalInput=t;var o=AJe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=$ce(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=mV(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=mV(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=pV(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=pV(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),gV(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),IJe(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(Ai(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(Ai(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="#"+gV(this.r,this.g,this.b,!1),n=0,r=Object.entries(G6);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?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=iw(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=iw(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=iw(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=iw(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(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+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(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},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,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+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(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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,o=[this],i=360/t,a=1;a1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,o=1103547991^n,i=0,a;i>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&o)+(r>>>0)},lj=up(function(e){return e}),Oce={theme:lj,token:z(z({},n1),pa==null||(NR=pa.defaultAlgorithm)===null||NR===void 0?void 0:NR.call(pa,pa==null?void 0:pa.defaultSeed)),hashId:"pro-".concat(Pce(JSON.stringify(n1)))},BJe=function(){return Oce};const zJe=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:n1,emptyTheme:lj,hashCode:Pce,token:Oce,useToken:BJe},Symbol.toStringTag,{value:"Module"}));var cs=function(t,n){return new LJe(t).setAlpha(n).toRgbString()},HJe=function(){return typeof pa>"u"||!pa?zJe:pa},Qc=HJe(),hx=Qc.useToken,AR=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Zr(e,t){var n,r=d.useContext(Yl),o=r.token,i=o===void 0?{}:o,a=d.useContext(Yl),s=a.hashed,l=hx(),c=l.token,u=l.hashId,f=d.useContext(Yl),h=f.theme,p=d.useContext(Mn.ConfigContext),m=p.getPrefixCls,g=p.csp;return i.layout||(i=z({},c)),i.proComponentsCls=(n=i.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),i.antCls=".".concat(m()),{wrapSSR:Bb({theme:h,token:i,path:[e],nonce:g==null?void 0:g.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return t(i)}),hashId:s?u:""}}var UJe=function(t,n){var r,o,i,a,s,l=z({},t);return z(z({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:cs(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:z({colorBgHeader:cs(n.colorBgElevated,.6),colorBgScrollHeader:cs(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:cs(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(o=l.header)===null||o===void 0?void 0:o.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(i=l.header)===null||i===void 0?void 0:i.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:cs(n.colorTextBase,.95),colorBgRightActionsItemHover:cs(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:z({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:cs(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:cs(n.colorTextBase,.06),colorBgMenuItemHover:cs(n.colorTextBase,.03),colorBgMenuItemSelected:cs(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:cs(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:cs(n.colorTextBase,.95)},l.sider),pageContainer:z({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)})},WJe=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o1,oe=A.getMessage("form.lightFilter.itemUnit","项");return typeof G=="string"&&G.length>E&&ce?"...".concat(Q.length).concat(oe):""},ne=X();return N.jsxs("span",{title:typeof G=="string"?G:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ie,N.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof G=="string"?G==null||(ee=G.toString())===null||ee===void 0||(re=ee.slice)===null||re===void 0?void 0:re.call(ee,0,E):G}),ne]})}return L||h};return T(N.jsxs("span",{className:xe(I,D,"".concat(I,"-").concat((o=(i=t.size)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:"middle"),Z(Z(Z(Z({},"".concat(I,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(I,"-disabled"),c),"".concat(I,"-bordered"),g),"".concat(I,"-allow-clear"),S),p),style:v,ref:k,onClick:function(){var L;t==null||(L=t.onClick)===null||L===void 0||L.call(t)},children:[W(a,l),(l||l===0)&&S&&N.jsx(ru,{role:"button",title:A.getMessage("form.lightFilter.clear","清除"),className:xe("".concat(I,"-icon"),D,"".concat(I,"-close")),onClick:function(L){c||s==null||s(),L.stopPropagation()},ref:j}),b!==!1?b??N.jsx(z$,{className:xe("".concat(I,"-icon"),D,"".concat(I,"-arrow"))}):null]}))},bd=de.forwardRef(rZe),Js=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},oZe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,yV=function(t){return t==="*"||t==="x"||t==="X"},bV=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},iZe=function(t,n){return Ht(t)!==Ht(n)?[String(t),String(n)]:[t,n]},aZe=function(t,n){if(yV(t)||yV(n))return 0;var r=iZe(bV(t),bV(n)),o=$e(r,2),i=o[0],a=o[1];return i>a?1:i"u"?td:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||td},TP=function(t,n){var r=hS(Mce(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return Js(r)},lZe=function(t){return Z(Z(Z({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function cZe(e){return Zr("FilterDropdown",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[lZe(n)]})}var uZe=function(t){var n=t.children,r=t.label,o=t.footer,i=t.open,a=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,f=t.placement,h=d.useContext(Mn.ConfigContext),p=h.getPrefixCls,m=p("pro-core-field-dropdown"),g=cZe(m),v=g.wrapSSR,b=g.hashId,y=TP(i||c||!1,a||l),S=d.useRef(null);return v(N.jsx(fl,z(z({placement:f,trigger:["click"]},y),{},{overlayInnerStyle:{padding:0},content:N.jsxs("div",{ref:S,className:xe("".concat(m,"-overlay"),Z(Z({},"".concat(m,"-overlay-").concat(f),f),"hashId",b)),children:[N.jsx(Mn,{getPopupContainer:function(){return S.current||document.body},children:N.jsx("div",{className:"".concat(m,"-content ").concat(b).trim(),children:n})}),o&&N.jsx(ZJe,z({disabled:s,footerRender:u},o))]}),children:N.jsx("span",{className:"".concat(m,"-label ").concat(b).trim(),children:r})})))},dZe=function(t){return Z({},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 fZe(e){return Zr("LabelIconTip",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[dZe(n)]})}var hZe=de.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,o=e.subTitle,i=d.useContext(Mn.ConfigContext),a=i.getPrefixCls,s=a("pro-core-label-tip"),l=fZe(s),c=l.wrapSSR,u=l.hashId;if(!n&&!o)return N.jsx(N.Fragment,{children:t});var f=typeof n=="string"||de.isValidElement(n)?{title:n}:n,h=(f==null?void 0:f.icon)||N.jsx(YHe,{});return c(N.jsxs("div",{className:xe(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[N.jsx("div",{className:xe("".concat(s,"-title"),u,Z({},"".concat(s,"-title-ellipsis"),r)),children:t}),o&&N.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:o}),n&&N.jsx(xa,z(z({},f),{},{children:N.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:h})}))]}))}),Tce=de.createContext({}),Rce={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n="month",r="quarter";return function(o,i){var a=i.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 f=this.$utils(),h=!!f.u(u)||u;if(f.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)}}})})(Rce);var pZe=Rce.exports;const mZe=Fr(pZe);var Cp=function(t){return t==null};qn.extend(mZe);var Ice={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 CV(e){return Object.prototype.toString.call(e)==="[object Object]"}function gZe(e){if(CV(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(CV(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var Y6=function(t){return!!(t!=null&&t._isAMomentObject)},wV=function(t,n,r){if(!n)return t;if(qn.isDayjs(t)||Y6(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(Ice[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},vZe=function e(t,n,r,o,i){var a={};return typeof window>"u"||Ht(t)!=="object"||Cp(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=i?[i,s].flat(1):[s],c=Mo(r,l)||"text",u="text",f;typeof c=="string"?u=c:c&&(u=c.valueType,f=c.dateFormat);var h=t[s];if(!(Cp(h)&&o)){if(gZe(h)&&!Array.isArray(h)&&!qn.isDayjs(h)&&!Y6(h)){a[s]=e(h,n,r,o,l);return}if(Array.isArray(h)){a[s]=h.map(function(p,m){return qn.isDayjs(p)||Y6(p)?wV(p,f||n,u):e(p,n,r,o,[s,"".concat(m)].flat(1))});return}a[s]=wV(h,f||n,u)}}),a)},xV=function(t,n){return typeof n=="function"?n(qn(t)):qn(t).format(n)},yZe=function(t,n){var r=Array.isArray(t)?t:[],o=$e(r,2),i=o[0],a=o[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):Ht(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=i?xV(i,s):"",u=a?xV(a,l):"",f=c&&u?"".concat(c," ~ ").concat(u):"";return f};function Zg(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=d.useState(e),o=$e(r,2),i=o[0],a=o[1],s=SZe(e);return d.useEffect(function(){var l=setTimeout(function(){a(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(Ze(n)):void 0),i}function Jh(e,t,n,r){if(e===t)return!0;if(e&&t&&Ht(e)==="object"&&Ht(t)==="object"){if(e.constructor!==t.constructor)return!1;var o,i,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!Jh(e[i],t[i],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=Fc(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(i=l.value,!t.has(i[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=Fc(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(i=u.value,!Jh(i[1],t.get(i[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 f=Fc(e.entries()),h;try{for(f.s();!(h=f.n()).done;)if(i=h.value,!t.has(i[0]))return!1}catch(m){f.e(m)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(e[i]!==t[i])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),o=a.length,o!==Object.keys(t).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;for(i=o;i--!==0;){var p=a[i];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!Jh(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var wZe=function(t,n,r){return Jh(t,n,r)};function Nce(e,t){var n=d.useRef();return wZe(e,n.current,t)||(n.current=e),n.current}function xZe(e,t,n){d.useEffect(e,Nce(t||[],n))}function Na(e,t){return de.useMemo(e,Nce(t))}var EZe=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,cj=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!EZe};function _Ze(e,t){var n=typeof e.pageName=="string"?e.title:t;d.useEffect(function(){cj()&&n&&(document.title=n)},[e.title,n])}var DR=0;function $Ze(e){var t=d.useRef(null),n=d.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(DR+=1,DR.toString())}),r=$e(n,1),o=r[0],i=d.useRef(o),a=function(){var u=Bo(nr().mark(function f(){var h,p,m,g;return nr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return(h=t.current)===null||h===void 0||h.abort(),m=new AbortController,t.current=m,b.next=5,Promise.race([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(y,S){var w;(w=t.current)===null||w===void 0||(w=w.signal)===null||w===void 0||w.addEventListener("abort",function(){S(new Error("aborted"))})})]);case 5:return g=b.sent,b.abrupt("return",g);case 7:case"end":return b.stop()}},f)}));return function(){return u.apply(this,arguments)}}();d.useEffect(function(){return function(){DR+=1}},[]);var s=sj([i.current,e.params],a,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var PZe=function(t){var n=d.useRef();return d.useEffect(function(){n.current=t}),n.current},OZe=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function MZe(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var uj=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},Ace=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(EV+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var o=63&r[t];n+=o<36?o.toString(36):o<62?(o-26).toString(36).toUpperCase():o<63?"_":"-"}return n},yE=function(){return typeof window>"u"?_V():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():_V()};qn.extend(Zoe);var $V=function(t){return!!(t!=null&&t._isAMomentObject)},pS=function e(t,n){return Cp(t)||qn.isDayjs(t)||$V(t)?$V(t)?qn(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?qn(t):qn(t,n)},TZe=["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 RZe(e){var t={};return TZe.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var IZe="valueType request plain renderFormItem render text formItemProps valueEnum",kZe="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function Dce(e){var t="".concat(IZe," ").concat(kZe).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function NZe(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&Ht(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var AZe=function(t){var n=t.color,r=t.children;return N.jsx(Xi,{color:n,text:r})},Sd=function(t){return NZe(t)==="map"?t:new Map(Object.entries(t||{}))},DZe={Success:function(t){var n=t.children;return N.jsx(Xi,{status:"success",text:n})},Error:function(t){var n=t.children;return N.jsx(Xi,{status:"error",text:n})},Default:function(t){var n=t.children;return N.jsx(Xi,{status:"default",text:n})},Processing:function(t){var n=t.children;return N.jsx(Xi,{status:"processing",text:n})},Warning:function(t){var n=t.children;return N.jsx(Xi,{status:"warning",text:n})},success:function(t){var n=t.children;return N.jsx(Xi,{status:"success",text:n})},error:function(t){var n=t.children;return N.jsx(Xi,{status:"error",text:n})},default:function(t){var n=t.children;return N.jsx(Xi,{status:"default",text:n})},processing:function(t){var n=t.children;return N.jsx(Xi,{status:"processing",text:n})},warning:function(t){var n=t.children;return N.jsx(Xi,{status:"warning",text:n})}},Kv=function e(t,n,r){if(Array.isArray(t))return N.jsx(oo,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var o=Sd(n);if(!o.has(t)&&!o.has("".concat(t)))return(t==null?void 0:t.label)||t;var i=o.get(t)||o.get("".concat(t));if(!i)return N.jsx(de.Fragment,{children:(t==null?void 0:t.label)||t},r);var a=i.status,s=i.color,l=DZe[a||"Init"];return l?N.jsx(l,{children:i.text},r):s?N.jsx(AZe,{color:s,children:i.text},r):N.jsx(de.Fragment,{children:i.text||i},r)},X6={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=b();r.configure=b,r.stringify=r,r.default=r,t.stringify=r,t.configure=b,e.exports=r;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function i(y){return y.length<5e3&&!o.test(y)?`"${y}"`:JSON.stringify(y)}function a(y,S){if(y.length>200||S)return y.sort(S);for(let w=1;wE;)y[C]=y[C-1],C--;y[C]=E}return y}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(y){return s.call(y)!==void 0&&y.length!==0}function c(y,S,w){y.length= 1`)}return w===void 0?1/0:w}function m(y){return y===1?"1 item":`${y} items`}function g(y){const S=new Set;for(const w of y)(typeof w=="string"||typeof w=="number")&&S.add(String(w));return S}function v(y){if(n.call(y,"strict")){const S=y.strict;if(typeof S!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(S)return w=>{let E=`Object can not safely be stringified. Received type ${typeof w}`;throw typeof w!="function"&&(E+=` (${w.toString()})`),new Error(E)}}}function b(y){y={...y};const S=v(y);S&&(y.bigint===void 0&&(y.bigint=!1),"circularValue"in y||(y.circularValue=Error));const w=u(y),E=h(y,"bigint"),C=f(y),x=typeof C=="function"?C:void 0,_=p(y,"maximumDepth"),P=p(y,"maximumBreadth");function O(A,j,k,F,V,W){let K=j[A];switch(typeof K=="object"&&K!==null&&typeof K.toJSON=="function"&&(K=K.toJSON(A)),K=F.call(j,A,K),typeof K){case"string":return i(K);case"object":{if(K===null)return"null";if(k.indexOf(K)!==-1)return w;let L="",Q=",";const ee=W;if(Array.isArray(K)){if(K.length===0)return"[]";if(_P){const se=K.length-P-1;L+=`${Q}"... ${m(se)} not stringified"`}return V!==""&&(L+=` ${ee}`),k.pop(),`[${L}]`}let re=Object.keys(K);const ie=re.length;if(ie===0)return"{}";if(_P){const G=L-P;ee+=`${re}"...": "${m(G)} not stringified"`,re=Q}return re!==""&&(ee=` ${V}${ee} -${W}`),k.pop(),`{${ee}}`}case"number":return isFinite(j)?String(j):S?S(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(E)return String(j);default:return S?S(j):void 0}}function T(A,j,k){switch(typeof j){case"string":return i(j);case"object":{if(j===null)return"null";if(typeof j.toJSON=="function"){if(j=j.toJSON(A),typeof j!="object")return T(A,j,k);if(j===null)return"null"}if(k.indexOf(j)!==-1)return w;let F="";const V=j.length!==void 0;if(V&&Array.isArray(j)){if(j.length===0)return"[]";if(_P){const G=j.length-P-1;F+=`,"... ${m(G)} not stringified"`}return k.pop(),`[${F}]`}let W=Object.keys(j);const K=W.length;if(K===0)return"{}";if(_P){const ee=K-P;F+=`${L}"...":"${m(ee)} not stringified"`}return k.pop(),`{${F}}`}case"number":return isFinite(j)?String(j):S?S(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(E)return String(j);default:return S?S(j):void 0}}function D(A,j,k){if(arguments.length>1){let F="";if(typeof k=="number"?F=" ".repeat(Math.min(k,10)):typeof k=="string"&&(F=k.slice(0,10)),j!=null){if(typeof j=="function")return O("",{"":A},[],j,F,"");if(Array.isArray(j))return I("",A,[],g(j),F,"")}if(F.length!==0)return M("",A,[],F,"")}return T("",A,[])}return D}})(Q6,Q6.exports);var FZe=Q6.exports;const LZe=Fr(FZe),BZe=LZe.configure;var MV=BZe({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function zZe(){this.__data__=[],this.size=0}function RP(e,t){return e===t||e!==e&&t!==t}function IP(e,t){for(var n=e.length;n--;)if(RP(e[n][0],t))return n;return-1}var HZe=Array.prototype,UZe=HZe.splice;function WZe(e){var t=this.__data__,n=IP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():UZe.call(t,n,1),--this.size,!0}function VZe(e){var t=this.__data__,n=IP(t,e);return n<0?void 0:t[n][1]}function KZe(e){return IP(this.__data__,e)>-1}function qZe(e,t){var n=this.__data__,r=IP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Cd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=itt}function gj(e){return e!=null&&Vce(e.length)&&!hj(e)}function att(e){return pS(e)&&gj(e)}function stt(){return!1}var Kce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jV=Kce&&typeof module=="object"&&module&&!module.nodeType&&module,ltt=jV&&jV.exports===Kce,FV=ltt?qv.Buffer:void 0,ctt=FV?FV.isBuffer:void 0,qce=ctt||stt,utt="[object Object]",dtt=Function.prototype,ftt=Object.prototype,Gce=dtt.toString,htt=ftt.hasOwnProperty,ptt=Gce.call(Object);function mtt(e){if(!pS(e)||kP(e)!=utt)return!1;var t=Hce(e);if(t===null)return!0;var n=htt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Gce.call(n)==ptt}var gtt="[object Arguments]",vtt="[object Array]",ytt="[object Boolean]",btt="[object Date]",Stt="[object Error]",Ctt="[object Function]",wtt="[object Map]",xtt="[object Number]",Ett="[object Object]",_tt="[object RegExp]",$tt="[object Set]",Ptt="[object String]",Ott="[object WeakMap]",Mtt="[object ArrayBuffer]",Ttt="[object DataView]",Rtt="[object Float32Array]",Itt="[object Float64Array]",ktt="[object Int8Array]",Ntt="[object Int16Array]",Att="[object Int32Array]",Dtt="[object Uint8Array]",jtt="[object Uint8ClampedArray]",Ftt="[object Uint16Array]",Ltt="[object Uint32Array]",co={};co[Rtt]=co[Itt]=co[ktt]=co[Ntt]=co[Att]=co[Dtt]=co[jtt]=co[Ftt]=co[Ltt]=!0;co[gtt]=co[vtt]=co[Mtt]=co[ytt]=co[Ttt]=co[btt]=co[Stt]=co[Ctt]=co[wtt]=co[xtt]=co[Ett]=co[_tt]=co[$tt]=co[Ptt]=co[Ott]=!1;function Btt(e){return pS(e)&&Vce(e.length)&&!!co[kP(e)]}function ztt(e){return function(t){return e(t)}}var Yce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qy=Yce&&typeof module=="object"&&module&&!module.nodeType&&module,Htt=qy&&qy.exports===Yce,FR=Htt&&Fce.process,LV=function(){try{var e=qy&&qy.require&&qy.require("util").types;return e||FR&&FR.binding&&FR.binding("util")}catch{}}(),BV=LV&&LV.isTypedArray,Xce=BV?ztt(BV):Btt;function t8(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Utt=Object.prototype,Wtt=Utt.hasOwnProperty;function Vtt(e,t,n){var r=e[t];(!(Wtt.call(e,t)&&RP(r,n))||n===void 0&&!(t in e))&&mj(e,t,n)}function Ktt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=snt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dnt=unt(ant);function fnt(e,t){return dnt(ont(e,t,eue),e+"")}function hnt(e,t,n){if(!Kp(n))return!1;var r=typeof t;return(r=="number"?gj(n)&&Qce(t,n.length):r=="string"&&t in n)?RP(n[t],e):!1}function pnt(e){return fnt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&hnt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,o=Object.keys(n).reduce(function(s,l){var c=n[l];return Cp(c)||(s[l]=c),s},{});if(Object.keys(o).length<1||typeof window>"u"||Ht(t)!=="object"||Cp(t)||t instanceof Blob)return t;var i=Array.isArray(t)?[]:{},a=function s(l,c){var u=Array.isArray(l),f=u?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(h){var p=function S(w,E){return Array.isArray(w)&&w.forEach(function(C,x){if(C){var _=E==null?void 0:E[x];typeof C=="function"&&(E[x]=C(E,h,l)),Ht(C)==="object"&&!Array.isArray(C)&&Object.keys(C).forEach(function(P){var O=_==null?void 0:_[P];if(typeof C[P]=="function"&&O){var I=C[P](_[P],h,l);_[P]=Ht(I)==="object"?I[P]:I}else Ht(C[P])==="object"&&Array.isArray(C[P])&&O&&S(C[P],O)}),Ht(C)==="object"&&Array.isArray(C)&&_&&S(C,_)}}),h},m=c?[c,h].flat(1):[h].flat(1),g=l[h],v=Mo(o,m),b=function(){var w,E,C=!1;if(typeof v=="function"){E=v==null?void 0:v(g,h,l);var x=Ht(E);x!=="object"&&x!=="undefined"?(w=h,C=!0):w=E}else w=p(v,g);if(Array.isArray(w)){f=Yo(f,w,g);return}Ht(w)==="object"&&!Array.isArray(i)?i=mnt(i,w):Ht(w)==="object"&&Array.isArray(i)?f=z(z({},f),w):(w!==null||w!==void 0)&&(f=Yo(f,[w],C?E:g))};if(v&&typeof v=="function"&&b(),!(typeof window>"u")){if(gnt(g)){var y=s(g,m);if(Object.keys(y).length<1)return;f=Yo(f,[h],y);return}b()}}),r?f:l)};return i=Array.isArray(t)&&Array.isArray(i)?Ze(a(t)):Dce({},a(t),i),i},Ms=function(t){return t===void 0?{}:fS(nd,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function Cm(e){var t=typeof window>"u",n=d.useState(function(){return t?!1:window.matchMedia(e).matches}),r=$e(n,2),o=r[0],i=r[1];return d.useLayoutEffect(function(){if(!t){var a=window.matchMedia(e),s=function(c){return i(c.matches)};return a.addListener(s),function(){return a.removeListener(s)}}},[e]),o}var Bd={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)"}},ynt=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Bd).find(function(r){var o=Bd[r].matchMedia;return!!window.matchMedia(o).matches});return t=n,t},bnt=function(){var t=Cm(Bd.md.matchMedia),n=Cm(Bd.lg.matchMedia),r=Cm(Bd.xxl.matchMedia),o=Cm(Bd.xl.matchMedia),i=Cm(Bd.sm.matchMedia),a=Cm(Bd.xs.matchMedia),s=d.useState(ynt()),l=$e(s,2),c=l[0],u=l[1];return d.useEffect(function(){if(r){u("xxl");return}if(o){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(i){u("sm");return}if(a){u("xs");return}u("md")},[t,n,r,o,i,a]),c},Gy=function(){return Gy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"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 g=m.value;return g})]});var f=Gy({},e);return u.forEach(function(h){var p=h[0],m=h[1];f[p]=xnt(p,m,{},e)}),f},[t.disabled,e,a]);function l(u){if(!(typeof window>"u"||!window.URL)){var f=Snt(u);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),a.toString()!==f.searchParams.toString()&&o({})}}d.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(Gy(Gy({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return d.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){o({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var wnt={true:!0,false:!1};function xnt(e,t,n,r){if(!n)return t;var o=n[e],i=t===void 0?r[e]:t;return o===Number?Number(i):o===Boolean||t==="true"||t==="false"?wnt[i]:Array.isArray(o)?o.find(function(a){return a==i})||r[e]:i}var Xv=de.createContext({}),Ent=["children","Wrapper"],_nt=["children","Wrapper"],tue=d.createContext({grid:!1,colProps:void 0,rowProps:void 0}),$nt=function(t){var n=t.grid,r=t.rowProps,o=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=At(a,Ent);return n?N.jsx(sP,z(z(z({gutter:8},r),c),{},{children:s})):l?N.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=At(a,_nt),u=d.useMemo(function(){var f=z(z({},o),c);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[c]);return n?N.jsx(gp,z(z({},u),{},{children:s})):l?N.jsx(l,{children:s}):s}}},vj=function(t){var n=d.useMemo(function(){return Ht(t)==="object"?t:{grid:t}},[t]),r=d.useContext(tue),o=r.grid,i=r.colProps;return d.useMemo(function(){return $nt({grid:!!(o||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||i,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,o,JSON.stringify([i,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},Pnt=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],Ont=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],HV={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},Mnt=["switch","radioButton","radio","rate"];function yj(e,t){e.displayName="ProFormComponent";var n=function(i){var a=z(z({},i==null?void 0:i.filedConfig),t),s=a.valueType,l=a.customLightMode,c=a.lightFilterLabelFormatter,u=a.valuePropName,f=u===void 0?"value":u,h=a.ignoreWidth,p=a.defaultProps,m=At(a,Pnt),g=z(z({},p),i),v=g.label,b=g.tooltip,y=g.placeholder,S=g.width,w=g.bordered,E=g.messageVariables,C=g.ignoreFormItem,x=g.transform,_=g.convertValue,P=g.readonly,O=g.allowClear;g.colSize;var I=g.getFormItemProps,M=g.getFieldProps;g.filedConfig;var T=g.cacheForSwr,D=g.proFieldProps,A=At(g,Ont),j=s||A.valueType,k=d.useMemo(function(){return h||Mnt.includes(j)},[h,j]),F=d.useState(),V=$e(F,2),W=V[1],K=d.useState(),L=$e(K,2),Q=L[0],ee=L[1],re=de.useContext(Xv),ie=Na(function(){return{formItemProps:I==null?void 0:I(),fieldProps:M==null?void 0:M()}},[M,I,A.dependenciesValues,Q]),G=Na(function(){var be=z(z(z(z({},C?Js({value:A.value}):{}),{},{placeholder:y,disabled:i.disabled},re.fieldProps),ie.fieldProps),A.fieldProps);return be.style=Js(be==null?void 0:be.style),be},[C,A.value,A.fieldProps,y,i.disabled,re.fieldProps,ie.fieldProps]),X=IZe(A),ne=Na(function(){return z(z(z(z({},re.formItemProps),X),ie.formItemProps),A.formItemProps)},[ie.formItemProps,re.formItemProps,A.formItemProps,X]),le=Na(function(){return z(z({messageVariables:E},m),ne)},[m,ne,E]);y2(!A.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var ce=d.useContext(_f),oe=ce.prefixName,se=Na(function(){var be,Pe=le==null?void 0:le.name;Array.isArray(Pe)&&(Pe=Pe.join("_")),Array.isArray(oe)&&Pe&&(Pe="".concat(oe.join("."),".").concat(Pe));var Ne=Pe&&"form-".concat((be=re.formKey)!==null&&be!==void 0?be:"","-field-").concat(Pe);return Ne},[MV(le==null?void 0:le.name),oe,re.formKey]),fe=Xl(function(){var be;I||M?ee([]):A.renderFormItem&&W([]);for(var Pe=arguments.length,Ne=new Array(Pe),U=0;U0?pe.map(function(Me,Se){var ye=Oe==null?void 0:Oe[Se],ve=(ye==null?void 0:ye["data-item"])||{};return z(z(z({},ve),Me),{},{label:j?ve.label:Me.label})}):[]},te=function he(pe){return pe.map(function(Oe,Me){var Se,ye=Oe,ve=ye.className,be=ye.optionType,Pe=At(ye,Dnt),Ne=Oe[W],U=Oe[L],H=(Se=Oe[ee])!==null&&Se!==void 0?Se:[];return be==="optGroup"||Oe.options?z(z({label:Ne},Pe),{},{data_title:Ne,title:Ne,key:U??"".concat(Ne==null?void 0:Ne.toString(),"-").concat(Me,"-").concat(vE()),children:he(H)}):z(z({title:Ne},Pe),{},{data_title:Ne,value:U??Me,key:U??"".concat(Ne==null?void 0:Ne.toString(),"-").concat(Me,"-").concat(vE()),"data-item":Oe,className:"".concat(oe,"-option ").concat(ve||"").trim(),label:(r==null?void 0:r(Oe))||Ne})})};return N.jsx(Va,z(z({ref:ne,className:se,allowClear:!0,autoClearSearchValue:c,disabled:E,mode:o,showSearch:M,searchValue:G,optionFilterProp:b,optionLabelProp:S,onClear:function(){O==null||O(),x(void 0),M&&X(void 0)}},k),{},{filterOption:k.filterOption==!1?!1:function(he,pe){var Oe,Me,Se;return k.filterOption&&typeof k.filterOption=="function"?k.filterOption(he,z(z({},pe),{},{label:pe==null?void 0:pe.data_title})):!!(pe!=null&&(Oe=pe.data_title)!==null&&Oe!==void 0&&Oe.toString().toLowerCase().includes(he.toLowerCase())||pe!=null&&(Me=pe.label)!==null&&Me!==void 0&&Me.toString().toLowerCase().includes(he.toLowerCase())||pe!=null&&(Se=pe.value)!==null&&Se!==void 0&&Se.toString().toLowerCase().includes(he.toLowerCase()))},onSearch:M?function(he){g&&x(he),i==null||i(he),X(he)}:void 0,onChange:function(pe,Oe){M&&c&&(x(void 0),i==null||i(""),X(void 0));for(var Me=arguments.length,Se=new Array(Me>2?Me-2:0),ye=2;ye-1&&e%1==0&&e-1&&e%1==0&&e<=qrt}var Cj=Grt,Yrt=qp,Xrt=Cj,Qrt=cu,Jrt="[object Arguments]",Zrt="[object Array]",eot="[object Boolean]",tot="[object Date]",not="[object Error]",rot="[object Function]",oot="[object Map]",iot="[object Number]",aot="[object Object]",sot="[object RegExp]",lot="[object Set]",cot="[object String]",uot="[object WeakMap]",dot="[object ArrayBuffer]",fot="[object DataView]",hot="[object Float32Array]",pot="[object Float64Array]",mot="[object Int8Array]",got="[object Int16Array]",vot="[object Int32Array]",yot="[object Uint8Array]",bot="[object Uint8ClampedArray]",Sot="[object Uint16Array]",Cot="[object Uint32Array]",uo={};uo[hot]=uo[pot]=uo[mot]=uo[got]=uo[vot]=uo[yot]=uo[bot]=uo[Sot]=uo[Cot]=!0;uo[Jrt]=uo[Zrt]=uo[dot]=uo[eot]=uo[fot]=uo[tot]=uo[not]=uo[rot]=uo[oot]=uo[iot]=uo[aot]=uo[sot]=uo[lot]=uo[cot]=uo[uot]=!1;function wot(e){return Qrt(e)&&Xrt(e.length)&&!!uo[Yrt(e)]}var xot=wot;function Eot(e){return function(t){return e(t)}}var wj=Eot,CE={exports:{}};CE.exports;(function(e,t){var n=nue,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(CE,CE.exports);var xj=CE.exports,_ot=xot,$ot=wj,YV=xj,XV=YV&&YV.isTypedArray,Pot=XV?$ot(XV):_ot,Ej=Pot,Oot=Irt,Mot=bj,Tot=ks,Rot=AP,Iot=Sj,kot=Ej,Not=Object.prototype,Aot=Not.hasOwnProperty;function Dot(e,t){var n=Tot(e),r=!n&&Mot(e),o=!n&&!r&&Rot(e),i=!n&&!r&&!o&&kot(e),a=n||r||o||i,s=a?Oot(e.length,String):[],l=s.length;for(var c in e)(t||Aot.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Iot(c,l)))&&s.push(c);return s}var aue=Dot,jot=Object.prototype;function Fot(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jot;return e===n}var _j=Fot;function Lot(e,t){return function(n){return e(t(n))}}var sue=Lot,Bot=sue,zot=Bot(Object.keys,Object),Hot=zot,Uot=_j,Wot=Hot,Vot=Object.prototype,Kot=Vot.hasOwnProperty;function qot(e){if(!Uot(e))return Wot(e);var t=[];for(var n in Object(e))Kot.call(e,n)&&n!="constructor"&&t.push(n);return t}var Got=qot;function Yot(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=Yot,Xot=qp,Qot=yl,Jot="[object AsyncFunction]",Zot="[object Function]",eit="[object GeneratorFunction]",tit="[object Proxy]";function nit(e){if(!Qot(e))return!1;var t=Xot(e);return t==Zot||t==eit||t==Jot||t==tit}var $j=nit,rit=$j,oit=Cj;function iit(e){return e!=null&&oit(e.length)&&!rit(e)}var Jv=iit,ait=aue,sit=Got,lit=Jv;function cit(e){return lit(e)?ait(e):sit(e)}var yS=cit,uit=oue,dit=yS;function fit(e,t){return e&&uit(e,t,dit)}var lue=fit;function hit(e){return e}var DP=hit,pit=DP;function mit(e){return typeof e=="function"?e:pit}var cue=mit,git=lue,vit=cue;function yit(e,t){return e&&git(e,vit(t))}var Pj=yit,bit=sue,Sit=bit(Object.getPrototypeOf,Object),Oj=Sit,Cit=qp,wit=Oj,xit=cu,Eit="[object Object]",_it=Function.prototype,$it=Object.prototype,uue=_it.toString,Pit=$it.hasOwnProperty,Oit=uue.call(Object);function Mit(e){if(!xit(e)||Cit(e)!=Eit)return!1;var t=wit(e);if(t===null)return!0;var n=Pit.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&uue.call(n)==Oit}var due=Mit;function Tit(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n-1}var Kit=Vit,qit=jP;function Git(e,t){var n=this.__data__,r=qit(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Yit=Git,Xit=Iit,Qit=Bit,Jit=Uit,Zit=Kit,eat=Yit;function Zv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,p=n&flt?new llt:void 0;for(i.set(e,t),i.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,tft.default)(t,function(r){Array.isArray(r)?e(r).map(function(o){return n.push(o)}):(0,Zdt.default)(r)?(0,Qdt.default)(r,function(o,i){o===!0&&n.push(i),n.push(i+"-"+o)}):(0,Ydt.default)(r)&&n.push(r)}),n};gS.default=nft;var SS={};function rft(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,vmt.default)(t.default)||{};return n.map(function(o){var i=t[o];return i&&(0,mmt.default)(i,function(a,s){r[s]||(r[s]={}),r[s]=ymt({},r[s],i[s])}),o}),r};SS.default=bmt;var xS={};Object.defineProperty(xS,"__esModule",{value:!0});xS.autoprefix=void 0;var Smt=Pj,TK=wmt(Smt),Cmt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Mmt(o,r);function o(){var i,a,s,l;Omt(this,o);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Amt(o,r);function o(){var i,a,s,l;Nmt(this,o);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[a]=s};return t===0&&o("first-child"),t===n-1&&o("last-child"),(t===0||t%2===0)&&o("even"),Math.abs(t%2)===1&&o("odd"),o("nth-child",t),r};Dj.default=jmt;Object.defineProperty(Zs,"__esModule",{value:!0});Zs.ReactCSS=Zs.loop=Zs.handleActive=Zs.handleHover=Zs.hover=void 0;var Fmt=gS,Lmt=o0(Fmt),Bmt=SS,zmt=o0(Bmt),Hmt=xS,Umt=o0(Hmt),Wmt=ES,Hue=o0(Wmt),Vmt=_S,Kmt=o0(Vmt),qmt=Dj,Gmt=o0(qmt);function o0(e){return e&&e.__esModule?e:{default:e}}Zs.hover=Hue.default;Zs.handleHover=Hue.default;Zs.handleActive=Kmt.default;Zs.loop=Gmt.default;var Ymt=Zs.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o0){if(++t>=Bgt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Wgt=Ugt,Vgt=Lgt,Kgt=Wgt,qgt=Kgt(Vgt),Ggt=qgt,Ygt=DP,Xgt=kgt,Qgt=Ggt;function Jgt(e,t){return Qgt(Xgt(e,t,Ygt),e+"")}var Zgt=Jgt,evt=bS,tvt=Jv,nvt=Sj,rvt=yl;function ovt(e,t,n){if(!rvt(n))return!1;var r=typeof t;return(r=="number"?tvt(n)&&nvt(t,n.length):r=="string"&&t in n)?evt(n[t],e):!1}var ivt=ovt,avt=Zgt,svt=ivt;function lvt(e){return avt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&svt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++rs?h=1:h=Math.round(f*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,o!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},WR={},gvt=function(t,n,r,o){if(typeof document>"u"&&!o)return null;var i=o?new o:document.createElement("canvas");i.width=r*2,i.height=r*2;var a=i.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,i.width,i.height),a.fillStyle=n,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),i.toDataURL()):null},vvt=function(t,n,r,o){var i="".concat(t,"-").concat(n,"-").concat(r).concat(o?"-server":"");if(WR[i])return WR[i];var a=gvt(t,n,r,o);return WR[i]=a,a};function o1(e){"@babel/helpers - typeof";return o1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o1(e)}function LK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function EE(e){return EE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},EE(e)}var Ivt=function(e){Pvt(n,e);var t=Ovt(n);function n(){var r;xvt(this,n);for(var o=arguments.length,i=new Array(o),a=0;aP){const G=j.length-P-1;F+=`,"... ${m(G)} not stringified"`}return k.pop(),`[${F}]`}let W=Object.keys(j);const K=W.length;if(K===0)return"{}";if(_P){const ee=K-P;F+=`${L}"...":"${m(ee)} not stringified"`}return k.pop(),`{${F}}`}case"number":return isFinite(j)?String(j):S?S(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(E)return String(j);default:return S?S(j):void 0}}function D(A,j,k){if(arguments.length>1){let F="";if(typeof k=="number"?F=" ".repeat(Math.min(k,10)):typeof k=="string"&&(F=k.slice(0,10)),j!=null){if(typeof j=="function")return O("",{"":A},[],j,F,"");if(Array.isArray(j))return I("",A,[],g(j),F,"")}if(F.length!==0)return M("",A,[],F,"")}return T("",A,[])}return D}})(X6,X6.exports);var jZe=X6.exports;const FZe=Fr(jZe),LZe=FZe.configure;var PV=LZe({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function BZe(){this.__data__=[],this.size=0}function RP(e,t){return e===t||e!==e&&t!==t}function IP(e,t){for(var n=e.length;n--;)if(RP(e[n][0],t))return n;return-1}var zZe=Array.prototype,HZe=zZe.splice;function UZe(e){var t=this.__data__,n=IP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():HZe.call(t,n,1),--this.size,!0}function WZe(e){var t=this.__data__,n=IP(t,e);return n<0?void 0:t[n][1]}function VZe(e){return IP(this.__data__,e)>-1}function KZe(e,t){var n=this.__data__,r=IP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Cd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=ott}function pj(e){return e!=null&&Wce(e.length)&&!dj(e)}function itt(e){return mS(e)&&pj(e)}function att(){return!1}var Vce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,AV=Vce&&typeof module=="object"&&module&&!module.nodeType&&module,stt=AV&&AV.exports===Vce,DV=stt?qv.Buffer:void 0,ltt=DV?DV.isBuffer:void 0,Kce=ltt||att,ctt="[object Object]",utt=Function.prototype,dtt=Object.prototype,qce=utt.toString,ftt=dtt.hasOwnProperty,htt=qce.call(Object);function ptt(e){if(!mS(e)||kP(e)!=ctt)return!1;var t=zce(e);if(t===null)return!0;var n=ftt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&qce.call(n)==htt}var mtt="[object Arguments]",gtt="[object Array]",vtt="[object Boolean]",ytt="[object Date]",btt="[object Error]",Stt="[object Function]",Ctt="[object Map]",wtt="[object Number]",xtt="[object Object]",Ett="[object RegExp]",_tt="[object Set]",$tt="[object String]",Ptt="[object WeakMap]",Ott="[object ArrayBuffer]",Mtt="[object DataView]",Ttt="[object Float32Array]",Rtt="[object Float64Array]",Itt="[object Int8Array]",ktt="[object Int16Array]",Ntt="[object Int32Array]",Att="[object Uint8Array]",Dtt="[object Uint8ClampedArray]",jtt="[object Uint16Array]",Ftt="[object Uint32Array]",co={};co[Ttt]=co[Rtt]=co[Itt]=co[ktt]=co[Ntt]=co[Att]=co[Dtt]=co[jtt]=co[Ftt]=!0;co[mtt]=co[gtt]=co[Ott]=co[vtt]=co[Mtt]=co[ytt]=co[btt]=co[Stt]=co[Ctt]=co[wtt]=co[xtt]=co[Ett]=co[_tt]=co[$tt]=co[Ptt]=!1;function Ltt(e){return mS(e)&&Wce(e.length)&&!!co[kP(e)]}function Btt(e){return function(t){return e(t)}}var Gce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qy=Gce&&typeof module=="object"&&module&&!module.nodeType&&module,ztt=qy&&qy.exports===Gce,FR=ztt&&jce.process,jV=function(){try{var e=qy&&qy.require&&qy.require("util").types;return e||FR&&FR.binding&&FR.binding("util")}catch{}}(),FV=jV&&jV.isTypedArray,Yce=FV?Btt(FV):Ltt;function e8(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Htt=Object.prototype,Utt=Htt.hasOwnProperty;function Wtt(e,t,n){var r=e[t];(!(Utt.call(e,t)&&RP(r,n))||n===void 0&&!(t in e))&&hj(e,t,n)}function Vtt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=ant)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var unt=cnt(int);function dnt(e,t){return unt(rnt(e,t,Zce),e+"")}function fnt(e,t,n){if(!Kp(n))return!1;var r=typeof t;return(r=="number"?pj(n)&&Xce(t,n.length):r=="string"&&t in n)?RP(n[t],e):!1}function hnt(e){return dnt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&fnt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,o=Object.keys(n).reduce(function(s,l){var c=n[l];return Cp(c)||(s[l]=c),s},{});if(Object.keys(o).length<1||typeof window>"u"||Ht(t)!=="object"||Cp(t)||t instanceof Blob)return t;var i=Array.isArray(t)?[]:{},a=function s(l,c){var u=Array.isArray(l),f=u?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(h){var p=function S(w,E){return Array.isArray(w)&&w.forEach(function(C,x){if(C){var _=E==null?void 0:E[x];typeof C=="function"&&(E[x]=C(E,h,l)),Ht(C)==="object"&&!Array.isArray(C)&&Object.keys(C).forEach(function(P){var O=_==null?void 0:_[P];if(typeof C[P]=="function"&&O){var I=C[P](_[P],h,l);_[P]=Ht(I)==="object"?I[P]:I}else Ht(C[P])==="object"&&Array.isArray(C[P])&&O&&S(C[P],O)}),Ht(C)==="object"&&Array.isArray(C)&&_&&S(C,_)}}),h},m=c?[c,h].flat(1):[h].flat(1),g=l[h],v=Mo(o,m),b=function(){var w,E,C=!1;if(typeof v=="function"){E=v==null?void 0:v(g,h,l);var x=Ht(E);x!=="object"&&x!=="undefined"?(w=h,C=!0):w=E}else w=p(v,g);if(Array.isArray(w)){f=Yo(f,w,g);return}Ht(w)==="object"&&!Array.isArray(i)?i=pnt(i,w):Ht(w)==="object"&&Array.isArray(i)?f=z(z({},f),w):(w!==null||w!==void 0)&&(f=Yo(f,[w],C?E:g))};if(v&&typeof v=="function"&&b(),!(typeof window>"u")){if(mnt(g)){var y=s(g,m);if(Object.keys(y).length<1)return;f=Yo(f,[h],y);return}b()}}),r?f:l)};return i=Array.isArray(t)&&Array.isArray(i)?Ze(a(t)):Ace({},a(t),i),i},Ms=function(t){return t===void 0?{}:hS(td,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function Cm(e){var t=typeof window>"u",n=d.useState(function(){return t?!1:window.matchMedia(e).matches}),r=$e(n,2),o=r[0],i=r[1];return d.useLayoutEffect(function(){if(!t){var a=window.matchMedia(e),s=function(c){return i(c.matches)};return a.addListener(s),function(){return a.removeListener(s)}}},[e]),o}var Bd={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)"}},vnt=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Bd).find(function(r){var o=Bd[r].matchMedia;return!!window.matchMedia(o).matches});return t=n,t},ynt=function(){var t=Cm(Bd.md.matchMedia),n=Cm(Bd.lg.matchMedia),r=Cm(Bd.xxl.matchMedia),o=Cm(Bd.xl.matchMedia),i=Cm(Bd.sm.matchMedia),a=Cm(Bd.xs.matchMedia),s=d.useState(vnt()),l=$e(s,2),c=l[0],u=l[1];return d.useEffect(function(){if(r){u("xxl");return}if(o){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(i){u("sm");return}if(a){u("xs");return}u("md")},[t,n,r,o,i,a]),c},Gy=function(){return Gy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"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 g=m.value;return g})]});var f=Gy({},e);return u.forEach(function(h){var p=h[0],m=h[1];f[p]=wnt(p,m,{},e)}),f},[t.disabled,e,a]);function l(u){if(!(typeof window>"u"||!window.URL)){var f=bnt(u);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),a.toString()!==f.searchParams.toString()&&o({})}}d.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(Gy(Gy({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return d.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){o({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var Cnt={true:!0,false:!1};function wnt(e,t,n,r){if(!n)return t;var o=n[e],i=t===void 0?r[e]:t;return o===Number?Number(i):o===Boolean||t==="true"||t==="false"?Cnt[i]:Array.isArray(o)?o.find(function(a){return a==i})||r[e]:i}var Xv=de.createContext({}),xnt=["children","Wrapper"],Ent=["children","Wrapper"],eue=d.createContext({grid:!1,colProps:void 0,rowProps:void 0}),_nt=function(t){var n=t.grid,r=t.rowProps,o=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=At(a,xnt);return n?N.jsx(sP,z(z(z({gutter:8},r),c),{},{children:s})):l?N.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=At(a,Ent),u=d.useMemo(function(){var f=z(z({},o),c);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[c]);return n?N.jsx(gp,z(z({},u),{},{children:s})):l?N.jsx(l,{children:s}):s}}},mj=function(t){var n=d.useMemo(function(){return Ht(t)==="object"?t:{grid:t}},[t]),r=d.useContext(eue),o=r.grid,i=r.colProps;return d.useMemo(function(){return _nt({grid:!!(o||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||i,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,o,JSON.stringify([i,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},$nt=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],Pnt=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],BV={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},Ont=["switch","radioButton","radio","rate"];function gj(e,t){e.displayName="ProFormComponent";var n=function(i){var a=z(z({},i==null?void 0:i.filedConfig),t),s=a.valueType,l=a.customLightMode,c=a.lightFilterLabelFormatter,u=a.valuePropName,f=u===void 0?"value":u,h=a.ignoreWidth,p=a.defaultProps,m=At(a,$nt),g=z(z({},p),i),v=g.label,b=g.tooltip,y=g.placeholder,S=g.width,w=g.bordered,E=g.messageVariables,C=g.ignoreFormItem,x=g.transform,_=g.convertValue,P=g.readonly,O=g.allowClear;g.colSize;var I=g.getFormItemProps,M=g.getFieldProps;g.filedConfig;var T=g.cacheForSwr,D=g.proFieldProps,A=At(g,Pnt),j=s||A.valueType,k=d.useMemo(function(){return h||Ont.includes(j)},[h,j]),F=d.useState(),V=$e(F,2),W=V[1],K=d.useState(),L=$e(K,2),Q=L[0],ee=L[1],re=de.useContext(Xv),ie=Na(function(){return{formItemProps:I==null?void 0:I(),fieldProps:M==null?void 0:M()}},[M,I,A.dependenciesValues,Q]),G=Na(function(){var be=z(z(z(z({},C?Js({value:A.value}):{}),{},{placeholder:y,disabled:i.disabled},re.fieldProps),ie.fieldProps),A.fieldProps);return be.style=Js(be==null?void 0:be.style),be},[C,A.value,A.fieldProps,y,i.disabled,re.fieldProps,ie.fieldProps]),X=RZe(A),ne=Na(function(){return z(z(z(z({},re.formItemProps),X),ie.formItemProps),A.formItemProps)},[ie.formItemProps,re.formItemProps,A.formItemProps,X]),le=Na(function(){return z(z({messageVariables:E},m),ne)},[m,ne,E]);b2(!A.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var ce=d.useContext(_f),oe=ce.prefixName,se=Na(function(){var be,Pe=le==null?void 0:le.name;Array.isArray(Pe)&&(Pe=Pe.join("_")),Array.isArray(oe)&&Pe&&(Pe="".concat(oe.join("."),".").concat(Pe));var Ne=Pe&&"form-".concat((be=re.formKey)!==null&&be!==void 0?be:"","-field-").concat(Pe);return Ne},[PV(le==null?void 0:le.name),oe,re.formKey]),fe=Xl(function(){var be;I||M?ee([]):A.renderFormItem&&W([]);for(var Pe=arguments.length,Ne=new Array(Pe),U=0;U0?pe.map(function(Me,Se){var ye=Oe==null?void 0:Oe[Se],ve=(ye==null?void 0:ye["data-item"])||{};return z(z(z({},ve),Me),{},{label:j?ve.label:Me.label})}):[]},te=function he(pe){return pe.map(function(Oe,Me){var Se,ye=Oe,ve=ye.className,be=ye.optionType,Pe=At(ye,Ant),Ne=Oe[W],U=Oe[L],H=(Se=Oe[ee])!==null&&Se!==void 0?Se:[];return be==="optGroup"||Oe.options?z(z({label:Ne},Pe),{},{data_title:Ne,title:Ne,key:U??"".concat(Ne==null?void 0:Ne.toString(),"-").concat(Me,"-").concat(yE()),children:he(H)}):z(z({title:Ne},Pe),{},{data_title:Ne,value:U??Me,key:U??"".concat(Ne==null?void 0:Ne.toString(),"-").concat(Me,"-").concat(yE()),"data-item":Oe,className:"".concat(oe,"-option ").concat(ve||"").trim(),label:(r==null?void 0:r(Oe))||Ne})})};return N.jsx(Va,z(z({ref:ne,className:se,allowClear:!0,autoClearSearchValue:c,disabled:E,mode:o,showSearch:M,searchValue:G,optionFilterProp:b,optionLabelProp:S,onClear:function(){O==null||O(),x(void 0),M&&X(void 0)}},k),{},{filterOption:k.filterOption==!1?!1:function(he,pe){var Oe,Me,Se;return k.filterOption&&typeof k.filterOption=="function"?k.filterOption(he,z(z({},pe),{},{label:pe==null?void 0:pe.data_title})):!!(pe!=null&&(Oe=pe.data_title)!==null&&Oe!==void 0&&Oe.toString().toLowerCase().includes(he.toLowerCase())||pe!=null&&(Me=pe.label)!==null&&Me!==void 0&&Me.toString().toLowerCase().includes(he.toLowerCase())||pe!=null&&(Se=pe.value)!==null&&Se!==void 0&&Se.toString().toLowerCase().includes(he.toLowerCase()))},onSearch:M?function(he){g&&x(he),i==null||i(he),X(he)}:void 0,onChange:function(pe,Oe){M&&c&&(x(void 0),i==null||i(""),X(void 0));for(var Me=arguments.length,Se=new Array(Me>2?Me-2:0),ye=2;ye-1&&e%1==0&&e-1&&e%1==0&&e<=Krt}var bj=qrt,Grt=qp,Yrt=bj,Xrt=lu,Qrt="[object Arguments]",Jrt="[object Array]",Zrt="[object Boolean]",eot="[object Date]",tot="[object Error]",not="[object Function]",rot="[object Map]",oot="[object Number]",iot="[object Object]",aot="[object RegExp]",sot="[object Set]",lot="[object String]",cot="[object WeakMap]",uot="[object ArrayBuffer]",dot="[object DataView]",fot="[object Float32Array]",hot="[object Float64Array]",pot="[object Int8Array]",mot="[object Int16Array]",got="[object Int32Array]",vot="[object Uint8Array]",yot="[object Uint8ClampedArray]",bot="[object Uint16Array]",Sot="[object Uint32Array]",uo={};uo[fot]=uo[hot]=uo[pot]=uo[mot]=uo[got]=uo[vot]=uo[yot]=uo[bot]=uo[Sot]=!0;uo[Qrt]=uo[Jrt]=uo[uot]=uo[Zrt]=uo[dot]=uo[eot]=uo[tot]=uo[not]=uo[rot]=uo[oot]=uo[iot]=uo[aot]=uo[sot]=uo[lot]=uo[cot]=!1;function Cot(e){return Xrt(e)&&Yrt(e.length)&&!!uo[Grt(e)]}var wot=Cot;function xot(e){return function(t){return e(t)}}var Sj=xot,wE={exports:{}};wE.exports;(function(e,t){var n=tue,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(wE,wE.exports);var Cj=wE.exports,Eot=wot,_ot=Sj,qV=Cj,GV=qV&&qV.isTypedArray,$ot=GV?_ot(GV):Eot,wj=$ot,Pot=Rrt,Oot=vj,Mot=ks,Tot=AP,Rot=yj,Iot=wj,kot=Object.prototype,Not=kot.hasOwnProperty;function Aot(e,t){var n=Mot(e),r=!n&&Oot(e),o=!n&&!r&&Tot(e),i=!n&&!r&&!o&&Iot(e),a=n||r||o||i,s=a?Pot(e.length,String):[],l=s.length;for(var c in e)(t||Not.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Rot(c,l)))&&s.push(c);return s}var iue=Aot,Dot=Object.prototype;function jot(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Dot;return e===n}var xj=jot;function Fot(e,t){return function(n){return e(t(n))}}var aue=Fot,Lot=aue,Bot=Lot(Object.keys,Object),zot=Bot,Hot=xj,Uot=zot,Wot=Object.prototype,Vot=Wot.hasOwnProperty;function Kot(e){if(!Hot(e))return Uot(e);var t=[];for(var n in Object(e))Vot.call(e,n)&&n!="constructor"&&t.push(n);return t}var qot=Kot;function Got(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=Got,Yot=qp,Xot=yl,Qot="[object AsyncFunction]",Jot="[object Function]",Zot="[object GeneratorFunction]",eit="[object Proxy]";function tit(e){if(!Xot(e))return!1;var t=Yot(e);return t==Jot||t==Zot||t==Qot||t==eit}var Ej=tit,nit=Ej,rit=bj;function oit(e){return e!=null&&rit(e.length)&&!nit(e)}var Jv=oit,iit=iue,ait=qot,sit=Jv;function lit(e){return sit(e)?iit(e):ait(e)}var bS=lit,cit=rue,uit=bS;function dit(e,t){return e&&cit(e,t,uit)}var sue=dit;function fit(e){return e}var DP=fit,hit=DP;function pit(e){return typeof e=="function"?e:hit}var lue=pit,mit=sue,git=lue;function vit(e,t){return e&&mit(e,git(t))}var _j=vit,yit=aue,bit=yit(Object.getPrototypeOf,Object),$j=bit,Sit=qp,Cit=$j,wit=lu,xit="[object Object]",Eit=Function.prototype,_it=Object.prototype,cue=Eit.toString,$it=_it.hasOwnProperty,Pit=cue.call(Object);function Oit(e){if(!wit(e)||Sit(e)!=xit)return!1;var t=Cit(e);if(t===null)return!0;var n=$it.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&cue.call(n)==Pit}var uue=Oit;function Mit(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n-1}var Vit=Wit,Kit=jP;function qit(e,t){var n=this.__data__,r=Kit(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Git=qit,Yit=Rit,Xit=Lit,Qit=Hit,Jit=Vit,Zit=Git;function Zv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,p=n&dlt?new slt:void 0;for(i.set(e,t),i.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,eft.default)(t,function(r){Array.isArray(r)?e(r).map(function(o){return n.push(o)}):(0,Jdt.default)(r)?(0,Xdt.default)(r,function(o,i){o===!0&&n.push(i),n.push(i+"-"+o)}):(0,Gdt.default)(r)&&n.push(r)}),n};vS.default=tft;var CS={};function nft(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,gmt.default)(t.default)||{};return n.map(function(o){var i=t[o];return i&&(0,pmt.default)(i,function(a,s){r[s]||(r[s]={}),r[s]=vmt({},r[s],i[s])}),o}),r};CS.default=ymt;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});ES.autoprefix=void 0;var bmt=_j,OK=Cmt(bmt),Smt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Omt(o,r);function o(){var i,a,s,l;Pmt(this,o);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Nmt(o,r);function o(){var i,a,s,l;kmt(this,o);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[a]=s};return t===0&&o("first-child"),t===n-1&&o("last-child"),(t===0||t%2===0)&&o("even"),Math.abs(t%2)===1&&o("odd"),o("nth-child",t),r};Nj.default=Dmt;Object.defineProperty(Zs,"__esModule",{value:!0});Zs.ReactCSS=Zs.loop=Zs.handleActive=Zs.handleHover=Zs.hover=void 0;var jmt=vS,Fmt=o0(jmt),Lmt=CS,Bmt=o0(Lmt),zmt=ES,Hmt=o0(zmt),Umt=_S,zue=o0(Umt),Wmt=$S,Vmt=o0(Wmt),Kmt=Nj,qmt=o0(Kmt);function o0(e){return e&&e.__esModule?e:{default:e}}Zs.hover=zue.default;Zs.handleHover=zue.default;Zs.handleActive=Vmt.default;Zs.loop=qmt.default;var Gmt=Zs.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o0){if(++t>=Lgt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ugt=Hgt,Wgt=Fgt,Vgt=Ugt,Kgt=Vgt(Wgt),qgt=Kgt,Ggt=DP,Ygt=Igt,Xgt=qgt;function Qgt(e,t){return Xgt(Ygt(e,t,Ggt),e+"")}var Jgt=Qgt,Zgt=SS,evt=Jv,tvt=yj,nvt=yl;function rvt(e,t,n){if(!nvt(n))return!1;var r=typeof t;return(r=="number"?evt(n)&&tvt(t,n.length):r=="string"&&t in n)?Zgt(n[t],e):!1}var ovt=rvt,ivt=Jgt,avt=ovt;function svt(e){return ivt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&avt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++rs?h=1:h=Math.round(f*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,o!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},WR={},mvt=function(t,n,r,o){if(typeof document>"u"&&!o)return null;var i=o?new o:document.createElement("canvas");i.width=r*2,i.height=r*2;var a=i.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,i.width,i.height),a.fillStyle=n,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),i.toDataURL()):null},gvt=function(t,n,r,o){var i="".concat(t,"-").concat(n,"-").concat(r).concat(o?"-server":"");if(WR[i])return WR[i];var a=mvt(t,n,r,o);return WR[i]=a,a};function o1(e){"@babel/helpers - typeof";return o1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o1(e)}function jK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t"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 _E(e){return _E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_E(e)}var Rvt=function(e){$vt(n,e);var t=Pvt(n);function n(){var r;wvt(this,n);for(var o=arguments.length,i=new Array(o),a=0;aa)f=0;else{var h=-(u*100/a)+100;f=360*h/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p;if(c<0)p=0;else if(c>i)p=359;else{var m=c*100/i;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 tv(e){"@babel/helpers - typeof";return tv=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},tv(e)}function Nvt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Avt(e,t){for(var n=0;n"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 _E(e){return _E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_E(e)}var Wvt=function(e){Lvt(n,e);var t=Bvt(n);function n(){var r;Nvt(this,n);for(var o=arguments.length,i=new Array(o),a=0;aa)f=0;else{var h=-(u*100/a)+100;f=360*h/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p;if(c<0)p=0;else if(c>i)p=359;else{var m=c*100/i;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 tv(e){"@babel/helpers - typeof";return tv=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},tv(e)}function kvt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nvt(e,t){for(var n=0;n"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 $E(e){return $E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$E(e)}var Uvt=function(e){Fvt(n,e);var t=Lvt(n);function n(){var r;kvt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=t||x<0||f&&_>=i}function b(){var C=VR();if(v(C))return y(C);s=setTimeout(b,g(C))}function y(C){return s=void 0,h&&r?p(C):(r=o=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function w(){return s===void 0?a:y(VR())}function E(){var C=VR(),x=v(C);if(r=arguments,o=this,l=C,x){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(b,t),p(l)}return s===void 0&&(s=setTimeout(b,t)),a}return E.cancel=S,E.flush=w,E}var que=h0t;const p0t=Fr(que);var m0t=que,g0t=yl,v0t="Expected a function";function y0t(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(v0t);return g0t(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),m0t(e,t,{leading:r,maxWait:t,trailing:o})}var b0t=y0t;const S0t=Fr(b0t);var C0t=function(t,n,r){var o=r.getBoundingClientRect(),i=o.width,a=o.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>i&&(c=i),u<0?u=0:u>a&&(u=a);var f=c/i,h=1-u/a;return{h:n.h,s:f,v:h,a:n.a,source:"hsv"}};function nv(e){"@babel/helpers - typeof";return nv=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},nv(e)}function w0t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x0t(e,t){for(var n=0;n"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 $E(e){return $E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$E(e)}var I0t=function(e){P0t(n,e);var t=O0t(n);function n(r){var o;return w0t(this,n),o=t.call(this,r),o.handleChange=function(i){typeof o.props.onChange=="function"&&o.throttle(o.props.onChange,C0t(i,o.props.hsl,o.container),i)},o.handleMouseDown=function(i){o.handleChange(i);var a=o.getContainerRenderWindow();a.addEventListener("mousemove",o.handleChange),a.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.throttle=S0t(function(i,a,s){i(a,s)},50),o}return E0t(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var o=this.container,i=window;!i.document.contains(o)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var o=this.getContainerRenderWindow();o.removeEventListener("mousemove",this.handleChange),o.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var o=this,i=this.props.style||{},a=i.color,s=i.white,l=i.black,c=i.pointer,u=i.circle,f=Bf({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), + `),de.createElement("div",{style:s.pointer},this.props.pointer?de.createElement(this.props.pointer,this.props):de.createElement("div",{style:s.slider}))))}}]),n}(d.PureComponent||d.Component),Wvt=bc,Vvt=function(){return Wvt.Date.now()},Kvt=Vvt,qvt=/\s/;function Gvt(e){for(var t=e.length;t--&&qvt.test(e.charAt(t)););return t}var Yvt=Gvt,Xvt=Yvt,Qvt=/^\s+/;function Jvt(e){return e&&e.slice(0,Xvt(e)+1).replace(Qvt,"")}var Zvt=Jvt,e0t=Zvt,LK=yl,t0t=UP,BK=NaN,n0t=/^[-+]0x[0-9a-f]+$/i,r0t=/^0b[01]+$/i,o0t=/^0o[0-7]+$/i,i0t=parseInt;function a0t(e){if(typeof e=="number")return e;if(t0t(e))return BK;if(LK(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=LK(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e0t(e);var n=r0t.test(e);return n||o0t.test(e)?i0t(e.slice(2),n?2:8):n0t.test(e)?BK:+e}var s0t=a0t,l0t=yl,VR=Kvt,zK=s0t,c0t="Expected a function",u0t=Math.max,d0t=Math.min;function f0t(e,t,n){var r,o,i,a,s,l,c=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(c0t);t=zK(t)||0,l0t(n)&&(u=!!n.leading,f="maxWait"in n,i=f?u0t(zK(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(C){var x=r,_=o;return r=o=void 0,c=C,a=e.apply(_,x),a}function m(C){return c=C,s=setTimeout(b,t),u?p(C):a}function g(C){var x=C-l,_=C-c,P=t-x;return f?d0t(P,i-_):P}function v(C){var x=C-l,_=C-c;return l===void 0||x>=t||x<0||f&&_>=i}function b(){var C=VR();if(v(C))return y(C);s=setTimeout(b,g(C))}function y(C){return s=void 0,h&&r?p(C):(r=o=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function w(){return s===void 0?a:y(VR())}function E(){var C=VR(),x=v(C);if(r=arguments,o=this,l=C,x){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(b,t),p(l)}return s===void 0&&(s=setTimeout(b,t)),a}return E.cancel=S,E.flush=w,E}var Kue=f0t;const h0t=Fr(Kue);var p0t=Kue,m0t=yl,g0t="Expected a function";function v0t(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(g0t);return m0t(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),p0t(e,t,{leading:r,maxWait:t,trailing:o})}var y0t=v0t;const b0t=Fr(y0t);var S0t=function(t,n,r){var o=r.getBoundingClientRect(),i=o.width,a=o.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>i&&(c=i),u<0?u=0:u>a&&(u=a);var f=c/i,h=1-u/a;return{h:n.h,s:f,v:h,a:n.a,source:"hsv"}};function nv(e){"@babel/helpers - typeof";return nv=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},nv(e)}function C0t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w0t(e,t){for(var n=0;n"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 PE(e){return PE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},PE(e)}var R0t=function(e){$0t(n,e);var t=P0t(n);function n(r){var o;return C0t(this,n),o=t.call(this,r),o.handleChange=function(i){typeof o.props.onChange=="function"&&o.throttle(o.props.onChange,S0t(i,o.props.hsl,o.container),i)},o.handleMouseDown=function(i){o.handleChange(i);var a=o.getContainerRenderWindow();a.addEventListener("mousemove",o.handleChange),a.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.throttle=b0t(function(i,a,s){i(a,s)},50),o}return x0t(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var o=this.container,i=window;!i.document.contains(o)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var o=this.getContainerRenderWindow();o.removeEventListener("mousemove",this.handleChange),o.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var o=this,i=this.props.style||{},a=i.color,s=i.white,l=i.black,c=i.pointer,u=i.circle,f=Bf({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 de.createElement("div",{style:f.color,ref:function(p){return o.container=p},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},de.createElement("style",null,` .saturation-white { background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); @@ -591,8 +591,8 @@ ${W}`),k.pop(),`{${ee}}`}case"number":return isFinite(j)?String(j):S?S(j):"null" background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); background: linear-gradient(to top, #000, rgba(0,0,0,0)); } - `),de.createElement("div",{style:f.white,className:"saturation-white"},de.createElement("div",{style:f.black,className:"saturation-black"}),de.createElement("div",{style:f.pointer},this.props.pointer?de.createElement(this.props.pointer,this.props):de.createElement("div",{style:f.circle}))))}}]),n}(d.PureComponent||d.Component),k0t=Tue,N0t=Mue,A0t=cue,D0t=ks;function j0t(e,t){var n=D0t(e)?k0t:N0t;return n(e,A0t(t))}var F0t=j0t,L0t=F0t;const B0t=Fr(L0t);function PE(e){"@babel/helpers - typeof";return PE=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},PE(e)}var z0t=/^\s+/,H0t=/\s+$/;function Ln(e,t){if(e=e||"",t=t||{},e instanceof Ln)return e;if(!(this instanceof Ln))return new Ln(e,t);var n=U0t(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}Ln.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,o,i,a,s;return n=t.r/255,r=t.g/255,o=t.b/255,n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(t){return this._a=Gue(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=VK(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=VK(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+o+"%)":"hsva("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=WK(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=WK(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+o+"%)":"hsla("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return KK(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return q0t(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(wo(this._r,255)*100)+"%",g:Math.round(wo(this._g,255)*100)+"%",b:Math.round(wo(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(wo(this._r,255)*100)+"%, "+Math.round(wo(this._g,255)*100)+"%, "+Math.round(wo(this._b,255)*100)+"%)":"rgba("+Math.round(wo(this._r,255)*100)+"%, "+Math.round(wo(this._g,255)*100)+"%, "+Math.round(wo(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:iyt[KK(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+qK(this._r,this._g,this._b,this._a),r=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=Ln(t);r="#"+qK(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?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 Ln(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(Q0t,arguments)},brighten:function(){return this._applyModification(J0t,arguments)},darken:function(){return this._applyModification(Z0t,arguments)},desaturate:function(){return this._applyModification(G0t,arguments)},saturate:function(){return this._applyModification(Y0t,arguments)},greyscale:function(){return this._applyModification(X0t,arguments)},spin:function(){return this._applyModification(eyt,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(ryt,arguments)},complement:function(){return this._applyCombination(tyt,arguments)},monochromatic:function(){return this._applyCombination(oyt,arguments)},splitcomplement:function(){return this._applyCombination(nyt,arguments)},triad:function(){return this._applyCombination(GK,[3])},tetrad:function(){return this._applyCombination(GK,[4])}};Ln.fromRatio=function(e,t){if(PE(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Sy(e[r]));e=n}return Ln(e,t)};function U0t(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=cyt(e)),PE(e)=="object"&&(bu(e.r)&&bu(e.g)&&bu(e.b)?(t=W0t(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):bu(e.h)&&bu(e.s)&&bu(e.v)?(r=Sy(e.s),o=Sy(e.v),t=K0t(e.h,r,o),a=!0,s="hsv"):bu(e.h)&&bu(e.s)&&bu(e.l)&&(r=Sy(e.s),i=Sy(e.l),t=V0t(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Gue(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 W0t(e,t,n){return{r:wo(e,255)*255,g:wo(t,255)*255,b:wo(n,255)*255}}function WK(e,t,n){e=wo(e,255),t=wo(t,255),n=wo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,s=(r+o)/2;if(r==o)i=a=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function VK(e,t,n){e=wo(e,255),t=wo(t,255),n=wo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,s=r,l=r-o;if(a=r===0?0:l/r,r==o)i=0;else{switch(r){case e:i=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(Ln(r));return i}function oyt(e,t){t=t||6;for(var n=Ln(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(Ln({h:r,s:o,v:i})),i=(i+s)%1;return a}Ln.mix=function(e,t,n){n=n===0?0:n||50;var r=Ln(e).toRgb(),o=Ln(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return Ln(a)};Ln.readability=function(e,t){var n=Ln(e),r=Ln(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Ln.isReadable=function(e,t,n){var r=Ln.readability(e,t),o,i;switch(i=!1,o=uyt(n),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i};Ln.mostReadable=function(e,t,n){var r=null,o=0,i,a,s,l;n=n||{},a=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;co&&(o=i,r=Ln(t[c]));return Ln.isReadable(e,r,{level:s,size:l})||!a?r:(n.includeFallbackColors=!1,Ln.mostReadable(e,["#fff","#000"],n))};var d8=Ln.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"},iyt=Ln.hexNames=ayt(d8);function ayt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Gue(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wo(e,t){syt(e)&&(e="100%");var n=lyt(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 qP(e){return Math.min(1,Math.max(0,e))}function us(e){return parseInt(e,16)}function syt(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function lyt(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Bl(e){return e.length==1?"0"+e:""+e}function Sy(e){return e<=1&&(e=e*100+"%"),e}function Yue(e){return Math.round(parseFloat(e)*255).toString(16)}function YK(e){return us(e)/255}var $l=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),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 bu(e){return!!$l.CSS_UNIT.exec(e)}function cyt(e){e=e.replace(z0t,"").replace(H0t,"").toLowerCase();var t=!1;if(d8[e])e=d8[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=$l.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=$l.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$l.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=$l.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$l.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=$l.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$l.hex8.exec(e))?{r:us(n[1]),g:us(n[2]),b:us(n[3]),a:YK(n[4]),format:t?"name":"hex8"}:(n=$l.hex6.exec(e))?{r:us(n[1]),g:us(n[2]),b:us(n[3]),format:t?"name":"hex"}:(n=$l.hex4.exec(e))?{r:us(n[1]+""+n[1]),g:us(n[2]+""+n[2]),b:us(n[3]+""+n[3]),a:YK(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=$l.hex3.exec(e))?{r:us(n[1]+""+n[1]),g:us(n[2]+""+n[2]),b:us(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function uyt(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 XK=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,o=0;return B0t(n,function(i){if(t[i]&&(r+=1,isNaN(t[i])||(o+=1),i==="s"||i==="l")){var a=/^\d+%$/;a.test(t[i])&&(o+=1)}}),r===o?t:!1},lw=function(t,n){var r=t.hex?Ln(t.hex):Ln(t),o=r.toHsl(),i=r.toHsv(),a=r.toRgb(),s=r.toHex();o.s===0&&(o.h=n||0,i.h=n||0);var l=s==="000000"&&a.a===0;return{hsl:o,hex:l?"transparent":"#".concat(s),rgb:a,hsv:i,oldHue:t.h||n||o.h,source:t.source}},dyt=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Ln(t).isValid()};function rv(e){"@babel/helpers - typeof";return rv=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},rv(e)}function f8(){return f8=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 OE(e){return OE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},OE(e)}var Cyt=function(t){var n=function(r){gyt(i,r);var o=vyt(i);function i(a){var s;return hyt(this,i),s=o.call(this),s.handleChange=function(l,c){var u=XK(l);if(u){var f=lw(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,c),s.props.onChange&&s.props.onChange(f,c)}},s.handleSwatchHover=function(l,c){var u=XK(l);if(u){var f=lw(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,c)}},s.state=G0({},lw(a.color,0)),s.debounce=p0t(function(l,c,u){l(c,u)},100),s}return pyt(i,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),de.createElement(t,f8({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return G0({},lw(s.color,l.oldHue))}}]),i}(d.PureComponent||d.Component);return n.propTypes=G0({},t.propTypes),n.defaultProps=G0(G0({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function ov(e){"@babel/helpers - typeof";return ov=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},ov(e)}function wyt(e,t,n){return t=Que(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xyt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eyt(e,t){for(var n=0;n"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 ME(e){return ME=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ME(e)}var Iyt=1,Jue=38,kyt=40,Nyt=[Jue,kyt],Ayt=function(t){return Nyt.indexOf(t)>-1},Dyt=function(t){return Number(String(t).replace(/%/g,""))},jyt=1,Y0=function(e){Pyt(n,e);var t=Oyt(n);function n(r){var o;return xyt(this,n),o=t.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(i){o.setUpdatedValue(i.target.value,i)},o.handleKeyDown=function(i){var a=Dyt(i.target.value);if(!isNaN(a)&&Ayt(i.keyCode)){var s=o.getArrowOffset(),l=i.keyCode===Jue?a+s:a-s;o.setUpdatedValue(l,i)}},o.handleDrag=function(i){if(o.props.dragLabel){var a=Math.round(o.props.value+i.movementX);a>=0&&a<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(a),i)}},o.handleMouseDown=function(i){o.props.dragLabel&&(i.preventDefault(),o.handleDrag(i),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},o.inputId="rc-editable-input-".concat(jyt++),o}return _yt(n,[{key:"componentDidUpdate",value:function(o,i){this.props.value!==this.state.value&&(o.value!==this.props.value||i.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(o){return wyt({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Iyt}},{key:"setUpdatedValue",value:function(o,i){var a=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(a,i),this.setState({value:o})}},{key:"render",value:function(){var o=this,i=Bf({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 de.createElement("div",{style:i.wrap},de.createElement("input",{id:this.inputId,style:i.input,ref:function(s){return o.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?de.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(d.PureComponent||d.Component);function iv(e){"@babel/helpers - typeof";return iv=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},iv(e)}function m8(){return m8=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 TE(e){return TE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},TE(e)}var Gyt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Uyt(i,r);var o=Wyt(i);function i(){var a;Fyt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c100&&(u.a=100),u.a/=100,n==null||n({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:u.a,source:"rgb"},f))};return de.createElement("div",{style:s.fields,className:"flexbox-fix"},de.createElement("div",{style:s.double},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"hex",value:i==null?void 0:i.replace("#",""),onChange:l})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.alpha},de.createElement(Y0,{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 a1(e){"@babel/helpers - typeof";return a1=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},a1(e)}function tq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nq(e){for(var t=1;t-1}function mbt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&ede()?TD:hbt}var gbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.old,c=d.useContext(Mn.ConfigContext),u=c.getPrefixCls,f=de.useMemo(function(){return mbt(l)},[l]),h=u("pro-field-color-picker"),p=d.useMemo(function(){return l?"":xe(Z({},h,ede()))},[h,l]);if(o==="read"){var m=N.jsx(f,{value:r,mode:"read",ref:n,className:p,open:!1});return i?i(r,z({mode:o},s),m):m}if(o==="edit"||o==="update"){var g=z({display:"table-cell"},s.style),v=N.jsx(f,z(z({ref:n,presets:[pbt]},s),{},{style:g,className:p}));return a?a(r,z(z({mode:o},s),{},{style:g}),v):v}return null};const vbt=de.forwardRef(gbt);qn.extend(cD);var ybt=function(t,n){return t?typeof n=="function"?n(qn(t)):qn(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},bbt=function(t,n){var r=t.text,o=t.mode,i=t.format,a=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,f=t.showTime,h=t.fieldProps,p=t.picker,m=t.bordered,g=t.lightLabel,v=No(),b=d.useState(!1),y=$e(b,2),S=y[0],w=y[1];if(o==="read"){var E=ybt(r,h.format||i);return l?l(r,z({mode:o},h),N.jsx(N.Fragment,{children:E})):N.jsx(N.Fragment,{children:E})}if(o==="edit"||o==="update"){var C,x=h.disabled,_=h.value,P=h.placeholder,O=P===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):P,I=hS(_);return s?C=N.jsx(bd,{label:a,onClick:function(){var T;h==null||(T=h.onOpenChange)===null||T===void 0||T.call(h,!0),w(!0)},style:I?{paddingInlineEnd:0}:void 0,disabled:x,value:I||S?N.jsx(qa,z(z(z({picker:p,showTime:f,format:i,ref:n},h),{},{value:I,onOpenChange:function(T){var D;w(T),h==null||(D=h.onOpenChange)===null||D===void 0||D.call(h,T)}},Ms(!1)),{},{open:S})):void 0,allowClear:!1,downIcon:I||S?!1:void 0,bordered:m,ref:g}):C=N.jsx(qa,z(z(z({picker:p,showTime:f,format:i,placeholder:O},Ms(u===void 0?!0:!u)),{},{ref:n},h),{},{value:I})),c?c(r,z({mode:o},h),C):C}return null};const wm=de.forwardRef(bbt);var Sbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=No(),u=a||c.getMessage("tableForm.inputPlaceholder","请输入"),f=d.useCallback(function(b){var y=b??void 0;return!l.stringMode&&typeof y=="string"&&(y=Number(y)),typeof y=="number"&&!Cp(y)&&!Cp(l.precision)&&(y=Number(y.toFixed(l.precision))),y},[l]);if(o==="read"){var h,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,z(z({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?N.jsx("span",{children:r}):N.jsx("span",{ref:n,children:(l==null||(h=l.formatter)===null||h===void 0?void 0:h.call(l,m))||m});return i?i(r,z({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=N.jsx(lc,z(z({ref:n,min:0,placeholder:u},Yn(l,["onChange","onBlur"])),{},{onChange:function(y){var S;return l==null||(S=l.onChange)===null||S===void 0?void 0:S.call(l,f(y))},onBlur:function(y){var S;return l==null||(S=l.onBlur)===null||S===void 0?void 0:S.call(l,f(y.target.value))}}));return s?s(r,z({mode:o},l),v):v}return null};const Cbt=de.forwardRef(Sbt);var wbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,f=t.separatorWidth,h=f===void 0?30:f,p=l.value,m=l.defaultValue,g=l.onChange,v=l.id,b=No(),y=Qc.useToken(),S=y.token,w=xn(function(){return m},{value:p,onChange:g}),E=$e(w,2),C=E[0],x=E[1];if(o==="read"){var _=function(F){var V,W=new Intl.NumberFormat(void 0,z({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(F));return(l==null||(V=l.formatter)===null||V===void 0?void 0:V.call(l,W))||W},P=N.jsxs("span",{ref:n,children:[_(r[0])," ",u," ",_(r[1])]});return i?i(r,z({mode:o},l),P):P}if(o==="edit"||o==="update"){var O=function(){if(Array.isArray(C)){var F=$e(C,2),V=F[0],W=F[1];typeof V=="number"&&typeof W=="number"&&V>W?x([W,V]):V===void 0&&W===void 0&&x(void 0)}},I=function(F,V){var W=Ze(C||[]);W[F]=V===null?void 0:V,x(W)},M=(l==null?void 0:l.placeholder)||a||[b.getMessage("tableForm.inputPlaceholder","请输入"),b.getMessage("tableForm.inputPlaceholder","请输入")],T=function(F){return Array.isArray(M)?M[F]:M},D=oo.Compact||qr.Group,A=oo.Compact?{}:{compact:!0},j=N.jsxs(D,z(z({},A),{},{onBlur:O,children:[N.jsx(lc,z(z({},l),{},{placeholder:T(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(h,"px) / 2)")},value:C==null?void 0:C[0],defaultValue:m==null?void 0:m[0],onChange:function(F){return I(0,F)}})),N.jsx(qr,{style:{width:h,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:S==null?void 0:S.colorBgContainer},placeholder:u,disabled:!0}),N.jsx(lc,z(z({},l),{},{placeholder:T(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(h,"px) / 2)"),borderInlineStart:0},value:C==null?void 0:C[1],defaultValue:m==null?void 0:m[1],onChange:function(F){return I(1,F)}}))]}));return s?s(r,z({mode:o},l),j):j}return null};const xbt=de.forwardRef(wbt);var tde={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r,o){n=n||{};var i=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,f,h){return i.fromToBase(c,u,f,h)}o.en.relativeTime=a,i.fromToBase=function(c,u,f,h,p){for(var m,g,v,b=f.$locale().relativeTime||a,y=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"}],S=y.length,w=0;w0,C<=E.r||!E.r){C<=1&&w>0&&(E=y[w-1]);var x=b[E.l];p&&(C=p(""+C)),g=typeof x=="string"?x.replace("%d",C):x(C,u,E.l,v);break}}if(u)return g;var _=v?b.future:b.past;return typeof _=="function"?_(g):_.replace("%s",g)},i.to=function(c,u){return s(c,u,this,!0)},i.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};i.toNow=function(c){return this.to(l(this),c)},i.fromNow=function(c){return this.from(l(this),c)}}})})(tde);var Ebt=tde.exports;const _bt=Fr(Ebt);qn.extend(_bt);var $bt=function(t,n){var r=t.text,o=t.mode,i=t.plain,a=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=No();if(o==="read"){var f=N.jsx(xa,{title:qn(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:qn(r).fromNow()});return a?a(r,z({mode:o},c),N.jsx(N.Fragment,{children:f})):N.jsx(N.Fragment,{children:f})}if(o==="edit"||o==="update"){var h=u.getMessage("tableForm.selectPlaceholder","请选择"),p=hS(c.value),m=N.jsx(qa,z(z(z({ref:n,placeholder:h,showTime:!0},Ms(i===void 0?!0:!i)),c),{},{value:p}));return s?s(r,z({mode:o},c),m):m}return null};const Pbt=de.forwardRef($bt);var nde=de.forwardRef(function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=e.width,c=No(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=N.jsx(vse,z({ref:t,width:l||32,src:n},a));return o?o(n,z({mode:r},a),f):f}if(r==="edit"||r==="update"){var h=N.jsx(qr,z({ref:t,placeholder:u},a));return i?i(n,z({mode:r},a),h):h}return null}),Obt=function(t,n){var r=t.border,o=r===void 0?!1:r,i=t.children,a=d.useContext(Mn.ConfigContext),s=a.getPrefixCls,l=s("pro-field-index-column"),c=Zr("IndexColumn",function(){return Z({},".".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,f=c.hashId;return u(N.jsx("div",{ref:n,className:xe(l,f,Z(Z({},"".concat(l,"-border"),o),"top-three",i>3)),children:i}))};const oq=de.forwardRef(Obt);var Mbt=["contentRender","numberFormatOptions","numberPopoverRender","open"],Tbt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],rde=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Rbt={style:"currency",currency:"USD"},Ibt={style:"currency",currency:"RUB"},kbt={style:"currency",currency:"RSD"},Nbt={style:"currency",currency:"MYR"},Abt={style:"currency",currency:"BRL"},Dbt={default:rde,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Rbt,"ru-RU":Ibt,"ms-MY":Nbt,"sr-RS":kbt,"pt-BR":Abt},iq=function(t,n,r,o){var i=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",z(z({},Dbt[t||"zh-Hans-CN"]||rde),{},{maximumFractionDigits:r},o)),u=c.format(a),f=function(b){var y=b.match(/\d+/);if(y){var S=y[0];return b.slice(b.indexOf(S))}else return b},h=f(u),p=u||"",m=$e(p,1),g=m[0];return["+","-"].includes(g)?"".concat(i||"").concat(g).concat(h):"".concat(i||"").concat(h)}catch{return a}},KR=2,jbt=de.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,o=At(e,Mbt),i=xn(function(){return o.defaultValue},{value:o.value,onChange:o.onChange}),a=$e(i,2),s=a[0],l=a[1],c=n==null?void 0:n(z(z({},o),{},{value:s})),u=TP(c?r:!1);return N.jsx(fl,z(z({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(h){return(h==null?void 0:h.parentElement)||document.body},children:N.jsx(lc,z(z({ref:t},o),{},{value:s,onChange:l}))}))}),Fbt=function(t,n){var r,o=t.text,i=t.mode,a=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,f=t.customSymbol,h=f===void 0?l.customSymbol:f,p=t.numberFormatOptions,m=p===void 0?l==null?void 0:l.numberFormatOptions:p,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,b=At(t,Tbt),y=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:KR,S=No();u&&Sp[u]&&(S=Sp[u]);var w=c||S.getMessage("tableForm.inputPlaceholder","请输入"),E=d.useMemo(function(){if(h)return h;if(!(b.moneySymbol===!1||l.moneySymbol===!1))return S.getMessage("moneySymbol","¥")},[h,l.moneySymbol,S,b.moneySymbol]),C=d.useCallback(function(P){var O=new RegExp("\\B(?=(\\d{".concat(3+Math.max(y-KR,0),"})+(?!\\d))"),"g"),I=String(P).split("."),M=$e(I,2),T=M[0],D=M[1],A=T.replace(O,","),j="";return D&&y>0&&(j=".".concat(D.slice(0,y===void 0?KR:y))),"".concat(A).concat(j)},[y]);if(i==="read"){var x=N.jsx("span",{ref:n,children:iq(u||!1,o,y,m??l.numberFormatOptions,E)});return a?a(o,z({mode:i},l),x):x}if(i==="edit"||i==="update"){var _=N.jsx(jbt,z(z({contentRender:function(O){if(v===!1||!O.value)return null;var I=iq(E||u||!1,"".concat(C(O.value)),y,z(z({},m),{},{notation:"compact"}),E);return typeof v=="function"?v==null?void 0:v(O,I):I},ref:n,precision:y,formatter:function(O){return O&&E?"".concat(E," ").concat(C(O)):O==null?void 0:O.toString()},parser:function(O){return E&&O?O.replace(new RegExp("\\".concat(E,"\\s?|(,*)"),"g"),""):O},placeholder:w},Yn(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(P){var O,I=P.target.value;E&&I&&(I=I.replace(new RegExp("\\".concat(E,"\\s?|(,*)"),"g"),"")),(O=l.onBlur)===null||O===void 0||O.call(l,I)}:void 0}));return s?s(o,z({mode:i},l),_):_}return null};const ode=de.forwardRef(Fbt);var aq=function(t){return t.map(function(n,r){var o;return de.isValidElement(n)?de.cloneElement(n,z(z({key:r},n==null?void 0:n.props),{},{style:z({},n==null||(o=n.props)===null||o===void 0?void 0:o.style)})):N.jsx(de.Fragment,{children:n},r)})},Lbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.fieldProps,s=d.useContext(Mn.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=Qc.useToken(),f=u.token;if(d.useImperativeHandle(n,function(){return{}}),i){var h=i(r,z({mode:o},a),N.jsx(N.Fragment,{}));return!h||(h==null?void 0:h.length)<1||!Array.isArray(h)?null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:aq(h)})}return!r||!Array.isArray(r)?de.isValidElement(r)?r:null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:aq(r)})};const Bbt=de.forwardRef(Lbt);var zbt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],Hbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=At(t,zbt),c=No(),u=xn(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=$e(u,2),h=f[0],p=f[1];if(o==="read"){var m=N.jsx(N.Fragment,{children:"-"});return r&&(m=N.jsxs(oo,{children:[N.jsx("span",{ref:n,children:h?r:"********"}),N.jsx("a",{onClick:function(){return p(!h)},children:h?N.jsx(uP,{}):N.jsx(Dae,{})})]})),i?i(r,z({mode:o},s),m):m}if(o==="edit"||o==="update"){var g=N.jsx(qr.Password,z({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return a?a(r,z({mode:o},s),g):g}return null};const Ubt=de.forwardRef(Hbt);function Wbt(e){return e===0?null:e>0?"+":"-"}function Vbt(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function Kbt(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 RE(e){return Ht(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var qbt=function(t,n){var r=t.text,o=t.prefix,i=t.precision,a=t.suffix,s=a===void 0?"%":a,l=t.mode,c=t.showColor,u=c===void 0?!1:c,f=t.render,h=t.renderFormItem,p=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=No(),b=m||v.getMessage("tableForm.inputPlaceholder","请输入"),y=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?RE(r.replace("%","")):RE(r)},[r]),S=d.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var w=u?{color:Vbt(y)}:{},E=N.jsxs("span",{style:w,ref:n,children:[o&&N.jsx("span",{children:o}),S&&N.jsxs(d.Fragment,{children:[Wbt(y)," "]}),Kbt(Math.abs(y),i),s&&s]});return f?f(r,z(z({mode:l},p),{},{prefix:o,precision:i,showSymbol:S,suffix:s}),E):E}if(l==="edit"||l==="update"){var C=N.jsx(lc,z({ref:n,formatter:function(_){return _&&o?"".concat(o," ").concat(_).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):_},parser:function(_){return _?_.replace(/.*\s|,/g,""):""},placeholder:b},p));return h?h(r,z({mode:l},p),C):C}return null};const ide=de.forwardRef(qbt);function Gbt(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var Ybt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=No(),f=c||u.getMessage("tableForm.inputPlaceholder","请输入"),h=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?RE(r.replace("%","")):RE(r)},[r]);if(o==="read"){var p=N.jsx(jD,z({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:a?10:void 0,status:Gbt(h)},l));return i?i(h,z({mode:o},l),p):p}if(o==="edit"||o==="update"){var m=N.jsx(lc,z({ref:n,placeholder:f},l));return s?s(r,z({mode:o},l),m):m}return null};const ade=de.forwardRef(Ybt);var Xbt=["radioType","renderFormItem","mode","render"],Qbt=function(t,n){var r,o,i=t.radioType,a=t.renderFormItem,s=t.mode,l=t.render,c=At(t,Xbt),u=d.useContext(Mn.ConfigContext),f=u.getPrefixCls,h=f("pro-field-radio"),p=Qv(c),m=$e(p,3),g=m[0],v=m[1],b=m[2],y=d.useRef(),S=(r=Vn.Item)===null||r===void 0||(o=r.useStatus)===null||o===void 0?void 0:o.call(r);d.useImperativeHandle(n,function(){return z(z({},y.current||{}),{},{fetchData:function(D){return b(D)}})},[b]);var w=Zr("FieldRadioRadio",function(T){return Z(Z(Z({},".".concat(h,"-error"),{span:{color:T.colorError}}),".".concat(h,"-warning"),{span:{color:T.colorWarning}}),".".concat(h,"-vertical"),Z({},"".concat(T.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),E=w.wrapSSR,C=w.hashId;if(g)return N.jsx(au,{size:"small"});if(s==="read"){var x=v!=null&&v.length?v==null?void 0:v.reduce(function(T,D){var A;return z(z({},T),{},Z({},(A=D.value)!==null&&A!==void 0?A:"",D.label))},{}):void 0,_=N.jsx(N.Fragment,{children:Kv(c.text,Sd(c.valueEnum||x))});if(l){var P;return(P=l(c.text,z({mode:s},c.fieldProps),_))!==null&&P!==void 0?P:null}return _}if(s==="edit"){var O,I=E(N.jsx(qo.Group,z(z({ref:y,optionType:i},c.fieldProps),{},{className:xe((O=c.fieldProps)===null||O===void 0?void 0:O.className,Z(Z({},"".concat(h,"-error"),(S==null?void 0:S.status)==="error"),"".concat(h,"-warning"),(S==null?void 0:S.status)==="warning"),C,"".concat(h,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(a){var M;return(M=a(c.text,z(z({mode:s},c.fieldProps),{},{options:v,loading:g}),I))!==null&&M!==void 0?M:null}return I}return null};const sq=de.forwardRef(Qbt);var Jbt=function(t,n){var r=t.text,o=t.mode,i=t.light,a=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,f=t.plain,h=t.showTime,p=t.lightLabel,m=t.bordered,g=t.fieldProps,v=No(),b=Array.isArray(r)?r:[],y=$e(b,2),S=y[0],w=y[1],E=de.useState(!1),C=$e(E,2),x=C[0],_=C[1],P=d.useCallback(function(j){if(typeof(g==null?void 0:g.format)=="function"){var k;return g==null||(k=g.format)===null||k===void 0?void 0:k.call(g,j)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),O=S?qn(S).format(P(qn(S))):"",I=w?qn(w).format(P(qn(w))):"";if(o==="read"){var M=N.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[N.jsx("div",{children:O||"-"}),N.jsx("div",{children:I||"-"})]});return l?l(r,z({mode:o},g),N.jsx("span",{children:M})):M}if(o==="edit"||o==="update"){var T=hS(g.value),D;if(i){var A;D=N.jsx(bd,{label:a,onClick:function(){var k;g==null||(k=g.onOpenChange)===null||k===void 0||k.call(g,!0),_(!0)},style:T?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:T||x?N.jsx(qa.RangePicker,z(z(z({picker:c,showTime:h,format:s},Ms(!1)),g),{},{placeholder:(A=g.placeholder)!==null&&A!==void 0?A:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var k;_(!1),g==null||(k=g.onClear)===null||k===void 0||k.call(g)},value:T,onOpenChange:function(k){var F;T&&_(k),g==null||(F=g.onOpenChange)===null||F===void 0||F.call(g,k)}})):null,allowClear:!1,bordered:m,ref:p,downIcon:T||x?!1:void 0})}else D=N.jsx(qa.RangePicker,z(z(z({ref:n,format:s,showTime:h,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},Ms(f===void 0?!0:!f)),g),{},{value:T}));return u?u(r,z({mode:o},g),D):D}return null};const xm=de.forwardRef(Jbt);var Zbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;if(o==="read"){var l=N.jsx(YU,z(z({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return i?i(r,z({mode:o},s),N.jsx(N.Fragment,{children:l})):l}if(o==="edit"||o==="update"){var c=N.jsx(YU,z({allowHalf:!0,ref:n},s));return a?a(r,z({mode:o},s),c):c}return null};const e1t=de.forwardRef(Zbt);function t1t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var o=Math.floor(t/(3600*24)),i=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)),i>0&&(n="".concat(i,"小时").concat(n)),o>0&&(n="".concat(o,"天").concat(n)),r&&(n+="前"),n}var n1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=No(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(o==="read"){var f=t1t(Number(r)),h=N.jsx("span",{ref:n,children:f});return i?i(r,z({mode:o},s),h):h}if(o==="edit"||o==="update"){var p=N.jsx(lc,z({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return a?a(r,z({mode:o},s),p):p}return null};const r1t=de.forwardRef(n1t);var o1t=["mode","render","renderFormItem","fieldProps","emptyText"],i1t=function(t,n){var r=t.mode,o=t.render,i=t.renderFormItem,a=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=At(t,o1t),u=d.useRef(),f=Qv(t),h=$e(f,3),p=h[0],m=h[1],g=h[2];if(d.useImperativeHandle(n,function(){return z(z({},u.current||{}),{},{fetchData:function(E){return g(E)}})},[g]),p)return N.jsx(au,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(w,E){var C;return z(z({},w),{},Z({},(C=E.value)!==null&&C!==void 0?C:"",E.label))},{}):void 0,b=N.jsx(N.Fragment,{children:Kv(c.text,Sd(c.valueEnum||v))});if(o){var y;return(y=o(c.text,z({mode:r},a),N.jsx(N.Fragment,{children:b})))!==null&&y!==void 0?y:l}return b}if(r==="edit"||r==="update"){var S=N.jsx(Pae,z(z({ref:u},Yn(a||{},["allowClear"])),{},{options:m}));return i?i(c.text,z(z({mode:r},a),{},{options:m,loading:p}),S):S}return null};const a1t=de.forwardRef(i1t);var s1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;if(o==="read"){var l=r;return i?i(r,z({mode:o},s),N.jsx(N.Fragment,{children:l})):N.jsx(N.Fragment,{children:l})}if(o==="edit"||o==="update"){var c=N.jsx(Bae,z(z({ref:n},s),{},{style:z({minWidth:120},s==null?void 0:s.style)}));return a?a(r,z({mode:o},s),c):c}return null};const l1t=de.forwardRef(s1t);var c1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=No(),f=d.useMemo(function(){var v,b;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(b=c==null?void 0:c.unCheckedChildren)!==null&&b!==void 0?b:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(o==="read")return i?i(r,z({mode:o},c),N.jsx(N.Fragment,{children:f})):f??"-";if(o==="edit"||o==="update"){var h,p=N.jsx(cE,z(z({ref:n,size:a?"small":void 0},Yn(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,g=c.bordered;return N.jsx(bd,{label:s,disabled:m,bordered:g,downIcon:!1,value:N.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,z({mode:o},c),p):p}return null};const u1t=de.forwardRef(c1t);var d1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},f=u.autoFocus,h=u.prefix,p=h===void 0?"":h,m=u.suffix,g=m===void 0?"":m,v=No(),b=d.useRef();if(d.useImperativeHandle(n,function(){return b.current},[]),d.useEffect(function(){if(f){var C;(C=b.current)===null||C===void 0||C.focus()}},[f]),o==="read"){var y=N.jsxs(N.Fragment,{children:[p,r??c,g]});if(i){var S;return(S=i(r,z({mode:o},s),y))!==null&&S!==void 0?S:c}return y}if(o==="edit"||o==="update"){var w=v.getMessage("tableForm.inputPlaceholder","请输入"),E=N.jsx(qr,z({ref:b,placeholder:w,allowClear:!0},s));return a?a(r,z({mode:o},s),E):E}return null};const f1t=de.forwardRef(d1t);var h1t=function(t,n){var r=t.text,o=t.fieldProps,i=d.useContext(Mn.ConfigContext),a=i.getPrefixCls,s=a("pro-field-readonly"),l="".concat(s,"-textarea"),c=Zr("TextArea",function(){return Z({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,f=c.hashId;return u(N.jsx("span",z(z({ref:n,className:xe(f,s,l)},Yn(o,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const p1t=de.forwardRef(h1t);var m1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=No();if(o==="read"){var c=N.jsx(p1t,z(z({},t),{},{ref:n}));return i?i(r,z({mode:o},Yn(s,["showCount"])),c):c}if(o==="edit"||o==="update"){var u=N.jsx(qr.TextArea,z({ref:n,rows:3,onKeyPress:function(h){h.key==="Enter"&&h.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return a?a(r,z({mode:o},s),u):u}return null};const g1t=de.forwardRef(m1t);var v1t=function(t,n){var r=t.text,o=t.mode,i=t.light,a=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,f=t.fieldProps,h=t.lightLabel,p=d.useState(!1),m=$e(p,2),g=m[0],v=m[1],b=No(),y=(f==null?void 0:f.format)||s||"HH:mm:ss",S=qn.isDayjs(r)||typeof r=="number";if(o==="read"){var w=N.jsx("span",{ref:n,children:r?qn(r,S?void 0:y).format(y):"-"});return l?l(r,z({mode:o},f),N.jsx("span",{children:w})):w}if(o==="edit"||o==="update"){var E,C=f.disabled,x=f.value,_=hS(x,y);if(i){var P;E=N.jsx(bd,{onClick:function(){var I;f==null||(I=f.onOpenChange)===null||I===void 0||I.call(f,!0),v(!0)},style:_?{paddingInlineEnd:0}:void 0,label:a,disabled:C,value:_||g?N.jsx(yp,z(z(z({},Ms(!1)),{},{format:s,ref:n},f),{},{placeholder:(P=f.placeholder)!==null&&P!==void 0?P:b.getMessage("tableForm.selectPlaceholder","请选择"),value:_,onOpenChange:function(I){var M;v(I),f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,I)},open:g})):null,downIcon:_||g?!1:void 0,allowClear:!1,ref:h})}else E=N.jsx(qa.TimePicker,z(z(z({ref:n,format:s},Ms(u===void 0?!0:!u)),f),{},{value:_}));return c?c(r,z({mode:o},f),E):E}return null},y1t=function(t,n){var r=t.text,o=t.light,i=t.label,a=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,f=t.plain,h=t.fieldProps,p=No(),m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=(h==null?void 0:h.format)||l||"HH:mm:ss",S=Array.isArray(r)?r:[],w=$e(S,2),E=w[0],C=w[1],x=qn.isDayjs(E)||typeof E=="number",_=qn.isDayjs(C)||typeof C=="number",P=E?qn(E,x?void 0:y).format(y):"",O=C?qn(C,_?void 0:y).format(y):"";if(a==="read"){var I=N.jsxs("div",{ref:n,children:[N.jsx("div",{children:P||"-"}),N.jsx("div",{children:O||"-"})]});return c?c(r,z({mode:a},h),N.jsx("span",{children:I})):I}if(a==="edit"||a==="update"){var M=hS(h.value,y),T;if(o){var D=h.disabled,A=h.placeholder,j=A===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:A;T=N.jsx(bd,{onClick:function(){var F;h==null||(F=h.onOpenChange)===null||F===void 0||F.call(h,!0),b(!0)},style:M?{paddingInlineEnd:0}:void 0,label:i,disabled:D,placeholder:j,value:M||v?N.jsx(yp.RangePicker,z(z(z({},Ms(!1)),{},{format:l,ref:n},h),{},{placeholder:j,value:M,onOpenChange:function(F){var V;b(F),h==null||(V=h.onOpenChange)===null||V===void 0||V.call(h,F)},open:v})):null,downIcon:M||v?!1:void 0,allowClear:!1,ref:s})}else T=N.jsx(yp.RangePicker,z(z(z({ref:n,format:l},Ms(f===void 0?!0:!f)),h),{},{value:M}));return u?u(r,z({mode:a},h),T):T}return null},b1t=de.forwardRef(y1t);const S1t=de.forwardRef(v1t);var C1t=["radioType","renderFormItem","mode","light","label","render"],w1t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],x1t=function(t,n){t.radioType;var r=t.renderFormItem,o=t.mode,i=t.light,a=t.label,s=t.render,l=At(t,C1t),c=d.useContext(Mn.ConfigContext),u=c.getPrefixCls,f=u("pro-field-tree-select"),h=d.useRef(null),p=d.useState(!1),m=$e(p,2),g=m[0],v=m[1],b=l.fieldProps,y=b.onSearch,S=b.onClear,w=b.onChange,E=b.onBlur,C=b.showSearch,x=b.autoClearSearchValue;b.treeData;var _=b.fetchDataOnSearch,P=b.searchValue,O=At(b,w1t),I=No(),M=Qv(z(z({},l),{},{defaultKeyWords:P})),T=$e(M,3),D=T[0],A=T[1],j=T[2],k=xn(void 0,{onChange:y,value:P}),F=$e(k,2),V=F[0],W=F[1];d.useImperativeHandle(n,function(){return z(z({},h.current||{}),{},{fetchData:function(fe){return j(fe)}})});var K=d.useMemo(function(){if(o==="read"){var se=(O==null?void 0:O.fieldNames)||{},fe=se.value,te=fe===void 0?"value":fe,he=se.label,pe=he===void 0?"label":he,Oe=se.children,Me=Oe===void 0?"children":Oe,Se=new Map,ye=function ve(be){if(!(be!=null&&be.length))return Se;for(var Pe=be.length,Ne=0;Ne4&&(p+=7),h.add(p,n));return m.diff(g,"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 f=this.$utils(),h=!!f.u(u)||u;return f.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)}}})})(sde);var _1t=sde.exports;const $1t=Fr(_1t);var lde={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,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,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,m,g){var v=g&&g.toUpperCase();return m||h[g]||n[g]||h[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,S){return y||S.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(lde);var P1t=lde.exports;const O1t=Fr(P1t);var M1t=["fieldProps"],T1t=["fieldProps"],R1t=["fieldProps"],I1t=["fieldProps"],k1t=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],N1t=["placeholder"];qn.extend(Goe);qn.extend(Joe);qn.extend($1t);qn.extend(cD);qn.extend(Koe);qn.extend(O1t);var A1t=function(t,n,r){var o=jce(r.fieldProps);return n.type==="progress"?N.jsx(ade,z(z({},r),{},{text:t,fieldProps:z({status:n.status?n.status:void 0},o)})):n.type==="money"?N.jsx(ode,z(z({locale:n.locale},r),{},{fieldProps:o,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?N.jsx(ide,z(z({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:o,showColor:n.showColor})):n.type==="image"?N.jsx(nde,z(z({},r),{},{text:t,width:n.width})):t},D1t=function(t,n,r,o){var i=r.mode,a=i===void 0?"read":i,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,z({mode:a},c),N.jsx(N.Fragment,{children:l})):N.jsx(N.Fragment,{children:l})}if(delete r.emptyText,Ht(n)==="object")return A1t(t,n,r);var f=o&&o[n];if(f){if(delete r.ref,a==="read"){var h;return(h=f.render)===null||h===void 0?void 0:h.call(f,t,z(z({text:t},r),{},{mode:a||"read"}),N.jsx(N.Fragment,{children:t}))}if(a==="update"||a==="edit"){var p;return(p=f.renderFormItem)===null||p===void 0?void 0:p.call(f,t,z({text:t},r),N.jsx(N.Fragment,{children:t}))}}if(n==="money")return N.jsx(ode,z(z({},r),{},{text:t}));if(n==="date")return N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=At(r,M1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-W",showTime:!0,fieldProps:z({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,b=At(r,T1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-MM",showTime:!0,fieldProps:z({picker:"month"},v)},b))})}if(n==="dateQuarterRange"){var y=r.fieldProps,S=At(r,R1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-Q",showTime:!0,fieldProps:z({picker:"quarter"},y)},S))})}if(n==="dateYearRange"){var w=r.fieldProps,E=At(r,I1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY",showTime:!0,fieldProps:z({picker:"year"},w)},E))})}return n==="dateMonth"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?N.jsx(xm,z({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?N.jsx(Ta,{isLight:r.light,children:N.jsx(S1t,z({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?N.jsx(Ta,{isLight:r.light,children:N.jsx(b1t,z({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?N.jsx(Pbt,z({text:t},r)):n==="index"?N.jsx(oq,{children:t+1}):n==="indexBorder"?N.jsx(oq,{border:!0,children:t+1}):n==="progress"?N.jsx(ade,z(z({},r),{},{text:t})):n==="percent"?N.jsx(ide,z({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?N.jsx(Xc,{src:t,size:22,shape:"circle"}):n==="code"?N.jsx(WV,z({text:t},r)):n==="jsonCode"?N.jsx(WV,z({text:t,language:"json"},r)):n==="textarea"?N.jsx(g1t,z({text:t},r)):n==="digit"?N.jsx(Cbt,z({text:t},r)):n==="digitRange"?N.jsx(xbt,z({text:t},r)):n==="second"?N.jsx(r1t,z({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?N.jsx(Ta,{isLight:r.light,children:N.jsx(Wnt,z({text:t},r))}):n==="checkbox"?N.jsx(Qnt,z({text:t},r)):n==="radio"?N.jsx(sq,z({text:t},r)):n==="radioButton"?N.jsx(sq,z({radioType:"button",text:t},r)):n==="rate"?N.jsx(e1t,z({text:t},r)):n==="slider"?N.jsx(l1t,z({text:t},r)):n==="switch"?N.jsx(u1t,z({text:t},r)):n==="option"?N.jsx(Bbt,z({text:t},r)):n==="password"?N.jsx(Ubt,z({text:t},r)):n==="image"?N.jsx(nde,z({text:t},r)):n==="cascader"?N.jsx(qnt,z({text:t},r)):n==="treeSelect"?N.jsx(E1t,z({text:t},r)):n==="color"?N.jsx(vbt,z({text:t},r)):n==="segmented"?N.jsx(a1t,z({text:t},r)):N.jsx(f1t,z({text:t},r))},j1t=function(t,n){var r,o,i,a,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,f=t.mode,h=f===void 0?"read":f,p=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,b=t.fieldProps,y=At(t,k1t),S=d.useContext(Mf),w=Xl(function(){for(var x,_=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];b==null||(x=b.onChange)===null||x===void 0||x.call.apply(x,[b].concat(P)),p==null||p.apply(void 0,P)}),E=Na(function(){return(g!==void 0||b)&&z(z({value:g},Js(b)),{},{onChange:w})},[g,b,w]),C=D1t(h==="edit"?(r=(o=E==null?void 0:E.value)!==null&&o!==void 0?o:l)!==null&&r!==void 0?r:"":(i=l??(E==null?void 0:E.value))!==null&&i!==void 0?i:"",u||"text",Js(z(z({ref:n},y),{},{mode:v?"read":h,renderFormItem:m?function(x,_,P){_.placeholder;var O=At(_,N1t),I=m(x,O,P);return de.isValidElement(I)?de.cloneElement(I,z(z({},E),I.props||{})):I}:void 0,placeholder:m?void 0:(a=y==null?void 0:y.placeholder)!==null&&a!==void 0?a:E==null?void 0:E.placeholder,fieldProps:jce(Js(z(z({},E),{},{placeholder:m?void 0:(s=y==null?void 0:y.placeholder)!==null&&s!==void 0?s:E==null?void 0:E.placeholder})))})),S.valueTypeMap||{});return N.jsx(de.Fragment,{children:C})},F1t=de.forwardRef(j1t),jj=de.createContext({mode:"edit"}),L1t=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],B1t=function(t){var n=t.fieldProps,r=t.children;t.labelCol,t.label;var o=t.autoFocus;t.isDefaultDom;var i=t.render,a=t.proFieldProps,s=t.renderFormItem,l=t.valueType;t.initialValue;var c=t.onChange,u=t.valueEnum,f=t.params;t.name;var h=t.dependenciesValues,p=t.cacheForSwr,m=p===void 0?!1:p,g=t.valuePropName,v=g===void 0?"value":g,b=At(t,L1t),y=d.useContext(jj),S=d.useMemo(function(){return h&&b.request?z(z({},f),h||{}):f},[h,f,b.request]),w=Xl(function(){if(n!=null&&n.onChange){for(var x,_=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];n==null||(x=n.onChange)===null||x===void 0||x.call.apply(x,[n].concat(P));return}}),E=d.useMemo(function(){return z(z({autoFocus:o},n),{},{onChange:w})},[o,n,w]),C=d.useMemo(function(){if(r)return de.isValidElement(r)?de.cloneElement(r,z(z({},b),{},{onChange:function(){for(var _=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];if(n!=null&&n.onChange){var I;n==null||(I=n.onChange)===null||I===void 0||I.call.apply(I,[n].concat(P));return}c==null||c.apply(void 0,P)}},(r==null?void 0:r.props)||{})):N.jsx(N.Fragment,{children:r})},[r,n==null?void 0:n.onChange,c,b]);return C||N.jsx(F1t,z(z(z({text:n==null?void 0:n[v],render:i,renderFormItem:s,valueType:l||"text",cacheForSwr:m,fieldProps:E,valueEnum:Zg(u)},a),b),{},{mode:(a==null?void 0:a.mode)||y.mode||"edit",params:S}))},Tf=yj(d.memo(B1t,function(e,t){return Jh(t,e,["onChange","onBlur"])})),z1t=["options","fieldProps","proFieldProps","valueEnum"],H1t=de.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,o=e.proFieldProps,i=e.valueEnum,a=At(e,z1t);return N.jsx(Tf,z({ref:t,valueType:"checkbox",valueEnum:Zg(i,void 0),fieldProps:z({options:n},r),lightProps:z({labelFormatter:function(){return N.jsx(Tf,z({ref:t,valueType:"checkbox",mode:"read",valueEnum:Zg(i,void 0),filedConfig:{customLightMode:!0},fieldProps:z({options:n},r),proFieldProps:o},a))}},a.lightProps),proFieldProps:o},a))}),U1t=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return N.jsx(id,z(z({ref:t},n),{},{children:r}))}),W1t=yj(U1t,{valuePropName:"checked"}),Fj=W1t;Fj.Group=H1t;var Lj=de.createContext({}),V1t=["name","originDependencies","children","ignoreFormListField"],cde=function(t){var n=t.name,r=t.originDependencies,o=r===void 0?n:r,i=t.children,a=t.ignoreFormListField,s=At(t,V1t),l=d.useContext(Rce),c=d.useContext(Lj),u=d.useMemo(function(){return n.map(function(f){var h,p=[f];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 N.jsx(Vn.Item,z(z({},s),{},{noStyle:!0,shouldUpdate:function(h,p,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,h,p,m)}return u.some(function(v){return!Jh(Mo(h,v),Mo(p,v))})},children:function(h){for(var p={},m=0;m div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":Z(Z(Z(Z({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 J1t(e){return Zr("ProFormGroup",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[Q1t(n)]})}var dde=de.forwardRef(function(e,t){var n=de.useContext(Xv),r=n.groupProps,o=z(z({},r),e),i=o.children,a=o.collapsible,s=o.defaultCollapsed,l=o.style,c=o.labelLayout,u=o.title,f=u===void 0?e.label:u,h=o.tooltip,p=o.align,m=p===void 0?"start":p,g=o.direction,v=o.size,b=v===void 0?32:v,y=o.titleStyle,S=o.titleRender,w=o.spaceProps,E=o.extra,C=o.autoFocus,x=xn(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),_=$e(x,2),P=_[0],O=_[1],I=d.useContext(Mn.ConfigContext),M=I.getPrefixCls,T=vj(e),D=T.ColWrapper,A=T.RowWrapper,j=M("pro-form-group"),k=J1t(j),F=k.wrapSSR,V=k.hashId,W=a&&N.jsx(rd,{style:{marginInlineEnd:8},rotate:P?void 0:90}),K=N.jsx(pZe,{label:W?N.jsxs("div",{children:[W,f]}):f,tooltip:h}),L=d.useCallback(function(X){var ne=X.children;return N.jsx(oo,z(z({},w),{},{className:xe("".concat(j,"-container ").concat(V),w==null?void 0:w.className),size:b,align:m,direction:g,style:z({rowGap:0},w==null?void 0:w.style),children:ne}))},[m,j,g,V,b,w]),Q=S?S(K,e):K,ee=d.useMemo(function(){var X=[],ne=de.Children.toArray(i).map(function(le,ce){var oe;return de.isValidElement(le)&&le!==null&&le!==void 0&&(oe=le.props)!==null&&oe!==void 0&&oe.hidden?(X.push(le),null):ce===0&&de.isValidElement(le)&&C?de.cloneElement(le,z(z({},le.props),{},{autoFocus:C})):le});return[N.jsx(A,{Wrapper:L,children:ne},"children"),X.length>0?N.jsx("div",{style:{display:"none"},children:X}):null]},[i,A,L,C]),re=$e(ee,2),ie=re[0],G=re[1];return F(N.jsx(D,{children:N.jsxs("div",{className:xe(j,V,Z({},"".concat(j,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[G,(f||h||E)&&N.jsx("div",{className:"".concat(j,"-title ").concat(V).trim(),style:y,onClick:function(){O(!P)},children:E?N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Q,N.jsx("span",{onClick:function(ne){return ne.stopPropagation()},children:E})]}):Q}),N.jsx("div",{style:{display:a&&P?"none":void 0},children:ie})]})}))});dde.displayName="ProForm-Group";var Z1t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],eSt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],tSt=function(t,n){var r=t.fieldProps,o=t.children,i=t.params,a=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,f=t.options,h=At(t,Z1t),p=d.useContext(Xv);return N.jsx(Tf,z(z({valueEnum:Zg(l),request:c,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:z({options:f,mode:s,showSearch:u,getPopupContainer:p.getPopupContainer},r),ref:n,proFieldProps:a},h),{},{children:o}))},nSt=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,o=e.params,i=e.proFieldProps,a=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=At(e,eSt),f=z({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),h=d.useContext(Xv);return N.jsx(Tf,z(z({valueEnum:Zg(s),request:l,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:z({getPopupContainer:h.getPopupContainer},f),ref:t,proFieldProps:i},u),{},{children:r}))}),rSt=de.forwardRef(tSt),oSt=nSt,Bj=rSt;Bj.SearchSelect=oSt;Bj.displayName="ProFormComponent";var iSt=function(t){var n=No(),r=Vn.useFormInstance();if(t.render===!1)return null;var o=t.onSubmit,i=t.render,a=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,f=Qc.useToken(),h=f.token,p=function(){r.submit(),o==null||o()},m=function(){r.resetFields(),a==null||a()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,b=l.resetText,y=b===void 0?n.getMessage("tableForm.reset","重置"):b,S=[];u!==!1&&S.push(d.createElement(Hn,z(z({},Yn(u??{},["preventDefault"])),{},{key:"rest",onClick:function(C){var x;u!=null&&u.preventDefault||m(),u==null||(x=u.onClick)===null||x===void 0||x.call(u,C)}}),y)),c!==!1&&S.push(d.createElement(Hn,z(z({type:"primary"},Yn(c||{},["preventDefault"])),{},{key:"submit",onClick:function(C){var x;c!=null&&c.preventDefault||p(),c==null||(x=c.onClick)===null||x===void 0||x.call(c,C)}}),v));var w=i?i(z(z({},t),{},{form:r,submit:p,reset:m}),S):S;return w?Array.isArray(w)?(w==null?void 0:w.length)<1?null:(w==null?void 0:w.length)===1?w[0]:N.jsx("div",{style:{display:"flex",gap:h.marginXS,alignItems:"center"},children:w}):w:null},aSt=["fieldProps","proFieldProps"],sSt=["fieldProps","proFieldProps"],IE="text",lSt=function(t){var n=t.fieldProps,r=t.proFieldProps,o=At(t,aSt);return N.jsx(Tf,z({valueType:IE,fieldProps:n,filedConfig:{valueType:IE},proFieldProps:r},o))},cSt=function(t){var n=xn(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=$e(n,2),o=r[0],i=r[1];return N.jsx(Vn.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return N.jsx(fl,z(z({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return i(f)},content:N.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?N.jsx("div",{style:{marginTop:10},children:N.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:o,children:t.children}))}})},uSt=function(t){var n=t.fieldProps,r=t.proFieldProps,o=At(t,sSt),i=d.useState(!1),a=$e(i,2),s=a[0],l=a[1];return n!=null&&n.statusRender&&o.name?N.jsx(cSt,{name:o.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:N.jsx("div",{children:N.jsx(Tf,z({valueType:"password",fieldProps:z(z({},Yn(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,u),l(!1)},onClick:function(u){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:IE}},o))})}):N.jsx(Tf,z({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:IE}},o))},Lr=lSt;Lr.Password=uSt;Lr.displayName="ProFormComponent";var dSt=["fieldProps","proFieldProps"],fSt=function(t,n){var r=t.fieldProps,o=t.proFieldProps,i=At(t,dSt);return N.jsx(Tf,z({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:o},i))};const zj=de.forwardRef(fSt);var hSt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],pSt=["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"],px=function(t,n,r){return t===!0?n:Zg(t,n,r)},cq=function(t){return!t||Array.isArray(t)?t:[t]};function mSt(e){var t,n=e.children,r=e.contentRender,o=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var i=e.transformKey,a=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,f=u===void 0?{}:u,h=e.syncToUrl,p=e.onUrlSearchChange,m=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var b=e.autoFocusFirstInput,y=b===void 0?!0:b,S=e.grid,w=e.rowProps,E=e.colProps,C=At(e,hSt),x=Vn.useFormInstance(),_=(Mn==null||(t=Mn.useConfig)===null||t===void 0?void 0:t.call(Mn))||{componentSize:"middle"},P=_.componentSize,O=d.useRef(l||x),I=vj({grid:S,rowProps:w}),M=I.RowWrapper,T=Xl(function(){return x}),D=d.useMemo(function(){return{getFieldsFormatValue:function(K){var L;return i((L=T())===null||L===void 0?void 0:L.getFieldsValue(K),v)},getFieldFormatValue:function(){var K,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Q=cq(L);if(!Q)throw new Error("nameList is require");var ee=(K=T())===null||K===void 0?void 0:K.getFieldValue(Q),re=Q?Yo({},Q,ee):ee,ie=Ze(Q);return ie.shift(),Mo(i(re,v,ie),Q)},getFieldFormatValueObject:function(K){var L,Q=cq(K),ee=(L=T())===null||L===void 0?void 0:L.getFieldValue(Q),re=Q?Yo({},Q,ee):ee;return i(re,v,Q)},validateFieldsReturnFormatValue:function(){var W=Bo(nr().mark(function L(Q){var ee,re,ie;return nr().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(!Array.isArray(Q)&&Q)){X.next=2;break}throw new Error("nameList must be array");case 2:return X.next=4,(ee=T())===null||ee===void 0?void 0:ee.validateFields(Q);case 4:return re=X.sent,ie=i(re,v),X.abrupt("return",ie||{});case 7:case"end":return X.stop()}},L)}));function K(L){return W.apply(this,arguments)}return K}()}},[v,i]),A=d.useMemo(function(){return de.Children.toArray(n).map(function(W,K){return K===0&&de.isValidElement(W)&&y?de.cloneElement(W,z(z({},W.props),{},{autoFocus:y})):W})},[y,n]),j=d.useMemo(function(){return typeof o=="boolean"||!o?{}:o},[o]),k=d.useMemo(function(){if(o!==!1)return N.jsx(iSt,z(z({},j),{},{onReset:function(){var K,L,Q=i((K=O.current)===null||K===void 0?void 0:K.getFieldsValue(),v);if(j==null||(L=j.onReset)===null||L===void 0||L.call(j,Q),m==null||m(Q),h){var ee,re=Object.keys(i((ee=O.current)===null||ee===void 0?void 0:ee.getFieldsValue(),!1)).reduce(function(ie,G){return z(z({},ie),{},Z({},G,Q[G]||void 0))},f);p(px(h,re||{},"set"))}},submitButtonProps:z({loading:c},j.submitButtonProps)}),"submitter")},[o,j,c,i,v,m,h,f,p]),F=d.useMemo(function(){var W=S?N.jsx(M,{children:A}):A;return r?r(W,k,O.current):W},[S,M,A,r,k]),V=OZe(e.initialValues);return d.useEffect(function(){if(!(h||!e.initialValues||!V||C.request)){var W=Jh(e.initialValues,V);y2(W,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
: null "),y2(W,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),d.useImperativeHandle(a,function(){return z(z({},O.current),D)},[D,O.current]),d.useEffect(function(){var W,K,L=i((W=O.current)===null||W===void 0||(K=W.getFieldsValue)===null||K===void 0?void 0:K.call(W,!0),v);s==null||s(L,z(z({},O.current),D))},[]),N.jsx(Rce.Provider,{value:z(z({},D),{},{formRef:O}),children:N.jsx(Mn,{componentSize:C.size||P,children:N.jsxs(tue.Provider,{value:{grid:S,colProps:E},children:[C.component!==!1&&N.jsx("input",{type:"text",style:{display:"none"}}),F]})})})}var uq=0;function gSt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,o=e.isKeyPressSubmit,i=e.syncToUrlAsImportant,a=i===void 0?!1:i,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,f=e.formItemProps,h=e.groupProps,p=e.dateFormatter,m=p===void 0?"string":p,g=e.formRef;e.onInit;var v=e.form,b=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var y=e.omitNil,S=y===void 0?!0:y,w=e.request,E=e.params,C=e.initialValues,x=e.formKey,_=x===void 0?uq:x;e.readonly;var P=e.onLoadingChange,O=e.loading,I=At(e,pSt),M=d.useRef({}),T=xn(!1,{onChange:P,value:O}),D=$e(T,2),A=D[0],j=D[1],k=Cnt({},{disabled:!r}),F=$e(k,2),V=F[0],W=F[1],K=d.useRef(vE());d.useEffect(function(){uq+=0},[]);var L=PZe({request:w,params:E,proFieldKey:_}),Q=$e(L,1),ee=Q[0],re=d.useContext(Mn.ConfigContext),ie=re.getPrefixCls,G=ie("pro-form"),X=Zr("ProForm",function(ye){return Z({},".".concat(G),Z({},"> div:not(".concat(ye.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}}}))}),ne=X.wrapSSR,le=X.hashId,ce=d.useState(function(){return r?px(r,V,"get"):{}}),oe=$e(ce,2),se=oe[0],fe=oe[1],te=d.useRef({}),he=d.useRef({}),pe=Xl(function(ye,ve,be){return vnt(yZe(ye,m,he.current,ve,be),te.current,ve)});d.useEffect(function(){l||fe({})},[l]);var Oe=Xl(function(){return z(z({},V),n)});d.useEffect(function(){r&&W(px(r,Oe(),"set"))},[n,Oe,r]);var Me=d.useMemo(function(){if(!(typeof window>"u")&&b&&["DrawerForm"].includes(b))return function(ye){return ye.parentNode||document.body}},[b]),Se=Xl(Bo(nr().mark(function ye(){var ve,be,Pe,Ne,U,H,q;return nr().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(I.onFinish){Ce.next=2;break}return Ce.abrupt("return");case 2:if(!A){Ce.next=4;break}return Ce.abrupt("return");case 4:return Ce.prev=4,Pe=M==null||(ve=M.current)===null||ve===void 0||(be=ve.getFieldsFormatValue)===null||be===void 0?void 0:be.call(ve),Ne=I.onFinish(Pe),Ne instanceof Promise&&j(!0),Ce.next=10,Ne;case 10:r&&(q=Object.keys(M==null||(U=M.current)===null||U===void 0||(H=U.getFieldsFormatValue)===null||H===void 0?void 0:H.call(U,void 0,!1)).reduce(function(ue,Le){var He;return z(z({},ue),{},Z({},Le,(He=Pe[Le])!==null&&He!==void 0?He:void 0))},n),Object.keys(V).forEach(function(ue){q[ue]!==!1&&q[ue]!==0&&!q[ue]&&(q[ue]=void 0)}),W(px(r,q,"set"))),j(!1),Ce.next=18;break;case 14:Ce.prev=14,Ce.t0=Ce.catch(4),console.log(Ce.t0),j(!1);case 18:case"end":return Ce.stop()}},ye,null,[[4,14]])})));return d.useImperativeHandle(g,function(){return M.current},[!ee]),!ee&&e.request?N.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:N.jsx(au,{})}):ne(N.jsx(jj.Provider,{value:{mode:e.readonly?"read":"edit"},children:N.jsx(MP,{needDeps:!0,children:N.jsx(Xv.Provider,{value:{formRef:M,fieldProps:c,proFieldProps:u,formItemProps:f,groupProps:h,formComponentType:b,getPopupContainer:Me,formKey:K.current,setFieldValueType:function(ve,be){var Pe=be.valueType,Ne=Pe===void 0?"text":Pe,U=be.dateFormat,H=be.transform;Array.isArray(ve)&&(te.current=Yo(te.current,ve,H),he.current=Yo(he.current,ve,{valueType:Ne,dateFormat:U}))}},children:N.jsx(Lj.Provider,{value:{},children:N.jsx(Vn,z(z({onKeyPress:function(ve){if(o&&ve.key==="Enter"){var be;(be=M.current)===null||be===void 0||be.submit()}},autoComplete:"off",form:v},Yn(I,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(ve){M.current&&(M.current.nativeElement=ve==null?void 0:ve.nativeElement)},initialValues:a?z(z(z({},C),ee),se):z(z(z({},se),C),ee),onValuesChange:function(ve,be){var Pe;I==null||(Pe=I.onValuesChange)===null||Pe===void 0||Pe.call(I,pe(ve,!!S),pe(be,!!S))},className:xe(e.className,G,le),onFinish:Se,children:N.jsx(mSt,z(z({transformKey:pe,autoComplete:"off",loading:A,onUrlSearchChange:W},e),{},{formRef:M,initialValues:z(z({},C),ee)}))}))})})})}))}var vSt=function(t){return Z(Z({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),Z({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function ySt(e){return Zr("LightWrapper",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[vSt(n)]})}var bSt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],SSt=function(t){var n=t.label,r=t.size,o=t.disabled,i=t.onChange,a=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,f=t.labelFormatter,h=t.bordered,p=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,b=t.placement,y=At(t,bSt),S=d.useContext(Mn.ConfigContext),w=S.getPrefixCls,E=w("pro-field-light-wrapper"),C=ySt(E),x=C.wrapSSR,_=C.hashId,P=d.useState(t[c]),O=$e(P,2),I=O[0],M=O[1],T=xn(!1),D=$e(T,2),A=D[0],j=D[1],k=function(){for(var K,L=arguments.length,Q=new Array(L),ee=0;een.length)&&(r=n.length);for(var o=0,i=Array(r);o0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):ISt}function XP(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function kSt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Vj(e){return Array.from((kE.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Kj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,TSt.default)())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=kSt(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(hq,a),s&&i&&l.setAttribute(pq,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=XP(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Vj(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(hq)))return!1;var p=Number(h.getAttribute(pq)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Mde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=XP(t);return(t.styles||Vj(n)).find(function(r){return r.getAttribute(Ode(t))===e})}function NSt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Mde(e,t);if(n){var r=XP(t);r.removeChild(n)}}function ASt(e,t){var n=kE.get(e);if(!n||!(0,RSt.default)(document,n)){var r=Kj("",t),o=r.parentNode;kE.set(e,o),e.removeChild(r)}}function DSt(){kE.clear()}function jSt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=XP(n),o=Vj(r),i=(0,fq.default)((0,fq.default)({},n),{},{styles:o});ASt(r,i);var a=Mde(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Kj(e,i);return u.setAttribute(Ode(i),t),u}var QP={};Object.defineProperty(QP,"__esModule",{value:!0});QP.getShadowRoot=FSt;QP.inShadow=Rde;function Tde(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Rde(e){return Tde(e)instanceof ShadowRoot}function FSt(e){return Rde(e)?Tde(e):null}var Xa={};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.call=qj;Xa.default=void 0;Xa.note=kde;Xa.noteOnce=Ade;Xa.preMessage=void 0;Xa.resetWarned=Nde;Xa.warning=Ide;Xa.warningOnce=OS;var y8={},LSt=Xa.preMessage=function(t){};function Ide(e,t){}function kde(e,t){}function Nde(){y8={}}function qj(e,t,n){!t&&!y8[n]&&(e(!1,n),y8[n]=!0)}function OS(e,t){qj(Ide,e,t)}function Ade(e,t){qj(kde,e,t)}OS.preMessage=LSt;OS.resetWarned=Nde;OS.noteOnce=Ade;Xa.default=OS;var BSt=ti.default,JP=ir.default;Object.defineProperty(aa,"__esModule",{value:!0});aa.generate=S8;aa.getSecondaryColor=YSt;aa.iconStyles=void 0;aa.isIconDefinition=GSt;aa.normalizeAttrs=b8;aa.normalizeTwoToneColors=XSt;aa.useInsertStyles=aa.svgBaseProps=void 0;aa.warning=qSt;var qR=JP(Tp),mq=JP(Mp),zSt=$S,HSt=Yp,USt=QP,WSt=JP(Xa),NE=BSt(d),VSt=JP(a0);function KSt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function qSt(e,t){(0,WSt.default)(e,"[@ant-design/icons] ".concat(t))}function GSt(e){return(0,mq.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,mq.default)(e.icon)==="object"||typeof e.icon=="function")}function b8(){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[KSt(n)]=r}return t},{})}function S8(e,t,n){return n?NE.default.createElement(e.tag,(0,qR.default)((0,qR.default)({key:t},b8(e.attrs)),n),(e.children||[]).map(function(r,o){return S8(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):NE.default.createElement(e.tag,(0,qR.default)({key:t},b8(e.attrs)),(e.children||[]).map(function(r,o){return S8(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function YSt(e){return(0,zSt.generate)(e)[0]}function XSt(e){return e?Array.isArray(e)?e:[e]:[]}aa.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var QSt=aa.iconStyles=` + `),de.createElement("div",{style:f.white,className:"saturation-white"},de.createElement("div",{style:f.black,className:"saturation-black"}),de.createElement("div",{style:f.pointer},this.props.pointer?de.createElement(this.props.pointer,this.props):de.createElement("div",{style:f.circle}))))}}]),n}(d.PureComponent||d.Component),I0t=Mue,k0t=Oue,N0t=lue,A0t=ks;function D0t(e,t){var n=A0t(e)?I0t:k0t;return n(e,N0t(t))}var j0t=D0t,F0t=j0t;const L0t=Fr(F0t);function OE(e){"@babel/helpers - typeof";return OE=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},OE(e)}var B0t=/^\s+/,z0t=/\s+$/;function Ln(e,t){if(e=e||"",t=t||{},e instanceof Ln)return e;if(!(this instanceof Ln))return new Ln(e,t);var n=H0t(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}Ln.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,o,i,a,s;return n=t.r/255,r=t.g/255,o=t.b/255,n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(t){return this._a=que(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=UK(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=UK(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+o+"%)":"hsva("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=HK(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=HK(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+o+"%)":"hsla("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return WK(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return K0t(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(wo(this._r,255)*100)+"%",g:Math.round(wo(this._g,255)*100)+"%",b:Math.round(wo(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(wo(this._r,255)*100)+"%, "+Math.round(wo(this._g,255)*100)+"%, "+Math.round(wo(this._b,255)*100)+"%)":"rgba("+Math.round(wo(this._r,255)*100)+"%, "+Math.round(wo(this._g,255)*100)+"%, "+Math.round(wo(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:oyt[WK(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+VK(this._r,this._g,this._b,this._a),r=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=Ln(t);r="#"+VK(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?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 Ln(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(X0t,arguments)},brighten:function(){return this._applyModification(Q0t,arguments)},darken:function(){return this._applyModification(J0t,arguments)},desaturate:function(){return this._applyModification(q0t,arguments)},saturate:function(){return this._applyModification(G0t,arguments)},greyscale:function(){return this._applyModification(Y0t,arguments)},spin:function(){return this._applyModification(Z0t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(nyt,arguments)},complement:function(){return this._applyCombination(eyt,arguments)},monochromatic:function(){return this._applyCombination(ryt,arguments)},splitcomplement:function(){return this._applyCombination(tyt,arguments)},triad:function(){return this._applyCombination(KK,[3])},tetrad:function(){return this._applyCombination(KK,[4])}};Ln.fromRatio=function(e,t){if(OE(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Sy(e[r]));e=n}return Ln(e,t)};function H0t(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=lyt(e)),OE(e)=="object"&&(yu(e.r)&&yu(e.g)&&yu(e.b)?(t=U0t(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):yu(e.h)&&yu(e.s)&&yu(e.v)?(r=Sy(e.s),o=Sy(e.v),t=V0t(e.h,r,o),a=!0,s="hsv"):yu(e.h)&&yu(e.s)&&yu(e.l)&&(r=Sy(e.s),i=Sy(e.l),t=W0t(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=que(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 U0t(e,t,n){return{r:wo(e,255)*255,g:wo(t,255)*255,b:wo(n,255)*255}}function HK(e,t,n){e=wo(e,255),t=wo(t,255),n=wo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,s=(r+o)/2;if(r==o)i=a=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function UK(e,t,n){e=wo(e,255),t=wo(t,255),n=wo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,s=r,l=r-o;if(a=r===0?0:l/r,r==o)i=0;else{switch(r){case e:i=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(Ln(r));return i}function ryt(e,t){t=t||6;for(var n=Ln(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(Ln({h:r,s:o,v:i})),i=(i+s)%1;return a}Ln.mix=function(e,t,n){n=n===0?0:n||50;var r=Ln(e).toRgb(),o=Ln(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return Ln(a)};Ln.readability=function(e,t){var n=Ln(e),r=Ln(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Ln.isReadable=function(e,t,n){var r=Ln.readability(e,t),o,i;switch(i=!1,o=cyt(n),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i};Ln.mostReadable=function(e,t,n){var r=null,o=0,i,a,s,l;n=n||{},a=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;co&&(o=i,r=Ln(t[c]));return Ln.isReadable(e,r,{level:s,size:l})||!a?r:(n.includeFallbackColors=!1,Ln.mostReadable(e,["#fff","#000"],n))};var u8=Ln.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"},oyt=Ln.hexNames=iyt(u8);function iyt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function que(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wo(e,t){ayt(e)&&(e="100%");var n=syt(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 qP(e){return Math.min(1,Math.max(0,e))}function us(e){return parseInt(e,16)}function ayt(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function syt(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Bl(e){return e.length==1?"0"+e:""+e}function Sy(e){return e<=1&&(e=e*100+"%"),e}function Gue(e){return Math.round(parseFloat(e)*255).toString(16)}function qK(e){return us(e)/255}var $l=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),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 yu(e){return!!$l.CSS_UNIT.exec(e)}function lyt(e){e=e.replace(B0t,"").replace(z0t,"").toLowerCase();var t=!1;if(u8[e])e=u8[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=$l.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=$l.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$l.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=$l.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$l.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=$l.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$l.hex8.exec(e))?{r:us(n[1]),g:us(n[2]),b:us(n[3]),a:qK(n[4]),format:t?"name":"hex8"}:(n=$l.hex6.exec(e))?{r:us(n[1]),g:us(n[2]),b:us(n[3]),format:t?"name":"hex"}:(n=$l.hex4.exec(e))?{r:us(n[1]+""+n[1]),g:us(n[2]+""+n[2]),b:us(n[3]+""+n[3]),a:qK(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=$l.hex3.exec(e))?{r:us(n[1]+""+n[1]),g:us(n[2]+""+n[2]),b:us(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function cyt(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 GK=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,o=0;return L0t(n,function(i){if(t[i]&&(r+=1,isNaN(t[i])||(o+=1),i==="s"||i==="l")){var a=/^\d+%$/;a.test(t[i])&&(o+=1)}}),r===o?t:!1},cw=function(t,n){var r=t.hex?Ln(t.hex):Ln(t),o=r.toHsl(),i=r.toHsv(),a=r.toRgb(),s=r.toHex();o.s===0&&(o.h=n||0,i.h=n||0);var l=s==="000000"&&a.a===0;return{hsl:o,hex:l?"transparent":"#".concat(s),rgb:a,hsv:i,oldHue:t.h||n||o.h,source:t.source}},uyt=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Ln(t).isValid()};function rv(e){"@babel/helpers - typeof";return rv=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},rv(e)}function d8(){return d8=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 ME(e){return ME=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ME(e)}var Syt=function(t){var n=function(r){myt(i,r);var o=gyt(i);function i(a){var s;return fyt(this,i),s=o.call(this),s.handleChange=function(l,c){var u=GK(l);if(u){var f=cw(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,c),s.props.onChange&&s.props.onChange(f,c)}},s.handleSwatchHover=function(l,c){var u=GK(l);if(u){var f=cw(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,c)}},s.state=G0({},cw(a.color,0)),s.debounce=h0t(function(l,c,u){l(c,u)},100),s}return hyt(i,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),de.createElement(t,d8({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return G0({},cw(s.color,l.oldHue))}}]),i}(d.PureComponent||d.Component);return n.propTypes=G0({},t.propTypes),n.defaultProps=G0(G0({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function ov(e){"@babel/helpers - typeof";return ov=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},ov(e)}function Cyt(e,t,n){return t=Xue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wyt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xyt(e,t){for(var n=0;n"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 TE(e){return TE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},TE(e)}var Ryt=1,Que=38,Iyt=40,kyt=[Que,Iyt],Nyt=function(t){return kyt.indexOf(t)>-1},Ayt=function(t){return Number(String(t).replace(/%/g,""))},Dyt=1,Y0=function(e){$yt(n,e);var t=Pyt(n);function n(r){var o;return wyt(this,n),o=t.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(i){o.setUpdatedValue(i.target.value,i)},o.handleKeyDown=function(i){var a=Ayt(i.target.value);if(!isNaN(a)&&Nyt(i.keyCode)){var s=o.getArrowOffset(),l=i.keyCode===Que?a+s:a-s;o.setUpdatedValue(l,i)}},o.handleDrag=function(i){if(o.props.dragLabel){var a=Math.round(o.props.value+i.movementX);a>=0&&a<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(a),i)}},o.handleMouseDown=function(i){o.props.dragLabel&&(i.preventDefault(),o.handleDrag(i),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},o.inputId="rc-editable-input-".concat(Dyt++),o}return Eyt(n,[{key:"componentDidUpdate",value:function(o,i){this.props.value!==this.state.value&&(o.value!==this.props.value||i.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(o){return Cyt({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Ryt}},{key:"setUpdatedValue",value:function(o,i){var a=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(a,i),this.setState({value:o})}},{key:"render",value:function(){var o=this,i=Bf({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 de.createElement("div",{style:i.wrap},de.createElement("input",{id:this.inputId,style:i.input,ref:function(s){return o.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?de.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(d.PureComponent||d.Component);function iv(e){"@babel/helpers - typeof";return iv=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},iv(e)}function p8(){return p8=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 RE(e){return RE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},RE(e)}var qyt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Hyt(i,r);var o=Uyt(i);function i(){var a;jyt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c100&&(u.a=100),u.a/=100,n==null||n({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:u.a,source:"rgb"},f))};return de.createElement("div",{style:s.fields,className:"flexbox-fix"},de.createElement("div",{style:s.double},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"hex",value:i==null?void 0:i.replace("#",""),onChange:l})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.alpha},de.createElement(Y0,{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 a1(e){"@babel/helpers - typeof";return a1=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},a1(e)}function ZK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function eq(e){for(var t=1;t-1}function pbt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&Zue()?OD:fbt}var mbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.old,c=d.useContext(Mn.ConfigContext),u=c.getPrefixCls,f=de.useMemo(function(){return pbt(l)},[l]),h=u("pro-field-color-picker"),p=d.useMemo(function(){return l?"":xe(Z({},h,Zue()))},[h,l]);if(o==="read"){var m=N.jsx(f,{value:r,mode:"read",ref:n,className:p,open:!1});return i?i(r,z({mode:o},s),m):m}if(o==="edit"||o==="update"){var g=z({display:"table-cell"},s.style),v=N.jsx(f,z(z({ref:n,presets:[hbt]},s),{},{style:g,className:p}));return a?a(r,z(z({mode:o},s),{},{style:g}),v):v}return null};const gbt=de.forwardRef(mbt);qn.extend(sD);var vbt=function(t,n){return t?typeof n=="function"?n(qn(t)):qn(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},ybt=function(t,n){var r=t.text,o=t.mode,i=t.format,a=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,f=t.showTime,h=t.fieldProps,p=t.picker,m=t.bordered,g=t.lightLabel,v=No(),b=d.useState(!1),y=$e(b,2),S=y[0],w=y[1];if(o==="read"){var E=vbt(r,h.format||i);return l?l(r,z({mode:o},h),N.jsx(N.Fragment,{children:E})):N.jsx(N.Fragment,{children:E})}if(o==="edit"||o==="update"){var C,x=h.disabled,_=h.value,P=h.placeholder,O=P===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):P,I=pS(_);return s?C=N.jsx(bd,{label:a,onClick:function(){var T;h==null||(T=h.onOpenChange)===null||T===void 0||T.call(h,!0),w(!0)},style:I?{paddingInlineEnd:0}:void 0,disabled:x,value:I||S?N.jsx(qa,z(z(z({picker:p,showTime:f,format:i,ref:n},h),{},{value:I,onOpenChange:function(T){var D;w(T),h==null||(D=h.onOpenChange)===null||D===void 0||D.call(h,T)}},Ms(!1)),{},{open:S})):void 0,allowClear:!1,downIcon:I||S?!1:void 0,bordered:m,ref:g}):C=N.jsx(qa,z(z(z({picker:p,showTime:f,format:i,placeholder:O},Ms(u===void 0?!0:!u)),{},{ref:n},h),{},{value:I})),c?c(r,z({mode:o},h),C):C}return null};const wm=de.forwardRef(ybt);var bbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=No(),u=a||c.getMessage("tableForm.inputPlaceholder","请输入"),f=d.useCallback(function(b){var y=b??void 0;return!l.stringMode&&typeof y=="string"&&(y=Number(y)),typeof y=="number"&&!Cp(y)&&!Cp(l.precision)&&(y=Number(y.toFixed(l.precision))),y},[l]);if(o==="read"){var h,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,z(z({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?N.jsx("span",{children:r}):N.jsx("span",{ref:n,children:(l==null||(h=l.formatter)===null||h===void 0?void 0:h.call(l,m))||m});return i?i(r,z({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=N.jsx(lc,z(z({ref:n,min:0,placeholder:u},Yn(l,["onChange","onBlur"])),{},{onChange:function(y){var S;return l==null||(S=l.onChange)===null||S===void 0?void 0:S.call(l,f(y))},onBlur:function(y){var S;return l==null||(S=l.onBlur)===null||S===void 0?void 0:S.call(l,f(y.target.value))}}));return s?s(r,z({mode:o},l),v):v}return null};const Sbt=de.forwardRef(bbt);var Cbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,f=t.separatorWidth,h=f===void 0?30:f,p=l.value,m=l.defaultValue,g=l.onChange,v=l.id,b=No(),y=Qc.useToken(),S=y.token,w=xn(function(){return m},{value:p,onChange:g}),E=$e(w,2),C=E[0],x=E[1];if(o==="read"){var _=function(F){var V,W=new Intl.NumberFormat(void 0,z({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(F));return(l==null||(V=l.formatter)===null||V===void 0?void 0:V.call(l,W))||W},P=N.jsxs("span",{ref:n,children:[_(r[0])," ",u," ",_(r[1])]});return i?i(r,z({mode:o},l),P):P}if(o==="edit"||o==="update"){var O=function(){if(Array.isArray(C)){var F=$e(C,2),V=F[0],W=F[1];typeof V=="number"&&typeof W=="number"&&V>W?x([W,V]):V===void 0&&W===void 0&&x(void 0)}},I=function(F,V){var W=Ze(C||[]);W[F]=V===null?void 0:V,x(W)},M=(l==null?void 0:l.placeholder)||a||[b.getMessage("tableForm.inputPlaceholder","请输入"),b.getMessage("tableForm.inputPlaceholder","请输入")],T=function(F){return Array.isArray(M)?M[F]:M},D=oo.Compact||qr.Group,A=oo.Compact?{}:{compact:!0},j=N.jsxs(D,z(z({},A),{},{onBlur:O,children:[N.jsx(lc,z(z({},l),{},{placeholder:T(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(h,"px) / 2)")},value:C==null?void 0:C[0],defaultValue:m==null?void 0:m[0],onChange:function(F){return I(0,F)}})),N.jsx(qr,{style:{width:h,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:S==null?void 0:S.colorBgContainer},placeholder:u,disabled:!0}),N.jsx(lc,z(z({},l),{},{placeholder:T(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(h,"px) / 2)"),borderInlineStart:0},value:C==null?void 0:C[1],defaultValue:m==null?void 0:m[1],onChange:function(F){return I(1,F)}}))]}));return s?s(r,z({mode:o},l),j):j}return null};const wbt=de.forwardRef(Cbt);var ede={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r,o){n=n||{};var i=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,f,h){return i.fromToBase(c,u,f,h)}o.en.relativeTime=a,i.fromToBase=function(c,u,f,h,p){for(var m,g,v,b=f.$locale().relativeTime||a,y=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"}],S=y.length,w=0;w0,C<=E.r||!E.r){C<=1&&w>0&&(E=y[w-1]);var x=b[E.l];p&&(C=p(""+C)),g=typeof x=="string"?x.replace("%d",C):x(C,u,E.l,v);break}}if(u)return g;var _=v?b.future:b.past;return typeof _=="function"?_(g):_.replace("%s",g)},i.to=function(c,u){return s(c,u,this,!0)},i.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};i.toNow=function(c){return this.to(l(this),c)},i.fromNow=function(c){return this.from(l(this),c)}}})})(ede);var xbt=ede.exports;const Ebt=Fr(xbt);qn.extend(Ebt);var _bt=function(t,n){var r=t.text,o=t.mode,i=t.plain,a=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=No();if(o==="read"){var f=N.jsx(xa,{title:qn(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:qn(r).fromNow()});return a?a(r,z({mode:o},c),N.jsx(N.Fragment,{children:f})):N.jsx(N.Fragment,{children:f})}if(o==="edit"||o==="update"){var h=u.getMessage("tableForm.selectPlaceholder","请选择"),p=pS(c.value),m=N.jsx(qa,z(z(z({ref:n,placeholder:h,showTime:!0},Ms(i===void 0?!0:!i)),c),{},{value:p}));return s?s(r,z({mode:o},c),m):m}return null};const $bt=de.forwardRef(_bt);var tde=de.forwardRef(function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=e.width,c=No(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=N.jsx(gse,z({ref:t,width:l||32,src:n},a));return o?o(n,z({mode:r},a),f):f}if(r==="edit"||r==="update"){var h=N.jsx(qr,z({ref:t,placeholder:u},a));return i?i(n,z({mode:r},a),h):h}return null}),Pbt=function(t,n){var r=t.border,o=r===void 0?!1:r,i=t.children,a=d.useContext(Mn.ConfigContext),s=a.getPrefixCls,l=s("pro-field-index-column"),c=Zr("IndexColumn",function(){return Z({},".".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,f=c.hashId;return u(N.jsx("div",{ref:n,className:xe(l,f,Z(Z({},"".concat(l,"-border"),o),"top-three",i>3)),children:i}))};const nq=de.forwardRef(Pbt);var Obt=["contentRender","numberFormatOptions","numberPopoverRender","open"],Mbt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],nde=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Tbt={style:"currency",currency:"USD"},Rbt={style:"currency",currency:"RUB"},Ibt={style:"currency",currency:"RSD"},kbt={style:"currency",currency:"MYR"},Nbt={style:"currency",currency:"BRL"},Abt={default:nde,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Tbt,"ru-RU":Rbt,"ms-MY":kbt,"sr-RS":Ibt,"pt-BR":Nbt},rq=function(t,n,r,o){var i=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",z(z({},Abt[t||"zh-Hans-CN"]||nde),{},{maximumFractionDigits:r},o)),u=c.format(a),f=function(b){var y=b.match(/\d+/);if(y){var S=y[0];return b.slice(b.indexOf(S))}else return b},h=f(u),p=u||"",m=$e(p,1),g=m[0];return["+","-"].includes(g)?"".concat(i||"").concat(g).concat(h):"".concat(i||"").concat(h)}catch{return a}},KR=2,Dbt=de.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,o=At(e,Obt),i=xn(function(){return o.defaultValue},{value:o.value,onChange:o.onChange}),a=$e(i,2),s=a[0],l=a[1],c=n==null?void 0:n(z(z({},o),{},{value:s})),u=TP(c?r:!1);return N.jsx(fl,z(z({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(h){return(h==null?void 0:h.parentElement)||document.body},children:N.jsx(lc,z(z({ref:t},o),{},{value:s,onChange:l}))}))}),jbt=function(t,n){var r,o=t.text,i=t.mode,a=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,f=t.customSymbol,h=f===void 0?l.customSymbol:f,p=t.numberFormatOptions,m=p===void 0?l==null?void 0:l.numberFormatOptions:p,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,b=At(t,Mbt),y=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:KR,S=No();u&&Sp[u]&&(S=Sp[u]);var w=c||S.getMessage("tableForm.inputPlaceholder","请输入"),E=d.useMemo(function(){if(h)return h;if(!(b.moneySymbol===!1||l.moneySymbol===!1))return S.getMessage("moneySymbol","¥")},[h,l.moneySymbol,S,b.moneySymbol]),C=d.useCallback(function(P){var O=new RegExp("\\B(?=(\\d{".concat(3+Math.max(y-KR,0),"})+(?!\\d))"),"g"),I=String(P).split("."),M=$e(I,2),T=M[0],D=M[1],A=T.replace(O,","),j="";return D&&y>0&&(j=".".concat(D.slice(0,y===void 0?KR:y))),"".concat(A).concat(j)},[y]);if(i==="read"){var x=N.jsx("span",{ref:n,children:rq(u||!1,o,y,m??l.numberFormatOptions,E)});return a?a(o,z({mode:i},l),x):x}if(i==="edit"||i==="update"){var _=N.jsx(Dbt,z(z({contentRender:function(O){if(v===!1||!O.value)return null;var I=rq(E||u||!1,"".concat(C(O.value)),y,z(z({},m),{},{notation:"compact"}),E);return typeof v=="function"?v==null?void 0:v(O,I):I},ref:n,precision:y,formatter:function(O){return O&&E?"".concat(E," ").concat(C(O)):O==null?void 0:O.toString()},parser:function(O){return E&&O?O.replace(new RegExp("\\".concat(E,"\\s?|(,*)"),"g"),""):O},placeholder:w},Yn(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(P){var O,I=P.target.value;E&&I&&(I=I.replace(new RegExp("\\".concat(E,"\\s?|(,*)"),"g"),"")),(O=l.onBlur)===null||O===void 0||O.call(l,I)}:void 0}));return s?s(o,z({mode:i},l),_):_}return null};const rde=de.forwardRef(jbt);var oq=function(t){return t.map(function(n,r){var o;return de.isValidElement(n)?de.cloneElement(n,z(z({key:r},n==null?void 0:n.props),{},{style:z({},n==null||(o=n.props)===null||o===void 0?void 0:o.style)})):N.jsx(de.Fragment,{children:n},r)})},Fbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.fieldProps,s=d.useContext(Mn.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=Qc.useToken(),f=u.token;if(d.useImperativeHandle(n,function(){return{}}),i){var h=i(r,z({mode:o},a),N.jsx(N.Fragment,{}));return!h||(h==null?void 0:h.length)<1||!Array.isArray(h)?null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:oq(h)})}return!r||!Array.isArray(r)?de.isValidElement(r)?r:null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:oq(r)})};const Lbt=de.forwardRef(Fbt);var Bbt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],zbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=At(t,Bbt),c=No(),u=xn(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=$e(u,2),h=f[0],p=f[1];if(o==="read"){var m=N.jsx(N.Fragment,{children:"-"});return r&&(m=N.jsxs(oo,{children:[N.jsx("span",{ref:n,children:h?r:"********"}),N.jsx("a",{onClick:function(){return p(!h)},children:h?N.jsx(uP,{}):N.jsx(Aae,{})})]})),i?i(r,z({mode:o},s),m):m}if(o==="edit"||o==="update"){var g=N.jsx(qr.Password,z({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return a?a(r,z({mode:o},s),g):g}return null};const Hbt=de.forwardRef(zbt);function Ubt(e){return e===0?null:e>0?"+":"-"}function Wbt(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function Vbt(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 IE(e){return Ht(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var Kbt=function(t,n){var r=t.text,o=t.prefix,i=t.precision,a=t.suffix,s=a===void 0?"%":a,l=t.mode,c=t.showColor,u=c===void 0?!1:c,f=t.render,h=t.renderFormItem,p=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=No(),b=m||v.getMessage("tableForm.inputPlaceholder","请输入"),y=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?IE(r.replace("%","")):IE(r)},[r]),S=d.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var w=u?{color:Wbt(y)}:{},E=N.jsxs("span",{style:w,ref:n,children:[o&&N.jsx("span",{children:o}),S&&N.jsxs(d.Fragment,{children:[Ubt(y)," "]}),Vbt(Math.abs(y),i),s&&s]});return f?f(r,z(z({mode:l},p),{},{prefix:o,precision:i,showSymbol:S,suffix:s}),E):E}if(l==="edit"||l==="update"){var C=N.jsx(lc,z({ref:n,formatter:function(_){return _&&o?"".concat(o," ").concat(_).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):_},parser:function(_){return _?_.replace(/.*\s|,/g,""):""},placeholder:b},p));return h?h(r,z({mode:l},p),C):C}return null};const ode=de.forwardRef(Kbt);function qbt(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var Gbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=No(),f=c||u.getMessage("tableForm.inputPlaceholder","请输入"),h=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?IE(r.replace("%","")):IE(r)},[r]);if(o==="read"){var p=N.jsx(AD,z({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:a?10:void 0,status:qbt(h)},l));return i?i(h,z({mode:o},l),p):p}if(o==="edit"||o==="update"){var m=N.jsx(lc,z({ref:n,placeholder:f},l));return s?s(r,z({mode:o},l),m):m}return null};const ide=de.forwardRef(Gbt);var Ybt=["radioType","renderFormItem","mode","render"],Xbt=function(t,n){var r,o,i=t.radioType,a=t.renderFormItem,s=t.mode,l=t.render,c=At(t,Ybt),u=d.useContext(Mn.ConfigContext),f=u.getPrefixCls,h=f("pro-field-radio"),p=Qv(c),m=$e(p,3),g=m[0],v=m[1],b=m[2],y=d.useRef(),S=(r=Vn.Item)===null||r===void 0||(o=r.useStatus)===null||o===void 0?void 0:o.call(r);d.useImperativeHandle(n,function(){return z(z({},y.current||{}),{},{fetchData:function(D){return b(D)}})},[b]);var w=Zr("FieldRadioRadio",function(T){return Z(Z(Z({},".".concat(h,"-error"),{span:{color:T.colorError}}),".".concat(h,"-warning"),{span:{color:T.colorWarning}}),".".concat(h,"-vertical"),Z({},"".concat(T.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),E=w.wrapSSR,C=w.hashId;if(g)return N.jsx(iu,{size:"small"});if(s==="read"){var x=v!=null&&v.length?v==null?void 0:v.reduce(function(T,D){var A;return z(z({},T),{},Z({},(A=D.value)!==null&&A!==void 0?A:"",D.label))},{}):void 0,_=N.jsx(N.Fragment,{children:Kv(c.text,Sd(c.valueEnum||x))});if(l){var P;return(P=l(c.text,z({mode:s},c.fieldProps),_))!==null&&P!==void 0?P:null}return _}if(s==="edit"){var O,I=E(N.jsx(qo.Group,z(z({ref:y,optionType:i},c.fieldProps),{},{className:xe((O=c.fieldProps)===null||O===void 0?void 0:O.className,Z(Z({},"".concat(h,"-error"),(S==null?void 0:S.status)==="error"),"".concat(h,"-warning"),(S==null?void 0:S.status)==="warning"),C,"".concat(h,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(a){var M;return(M=a(c.text,z(z({mode:s},c.fieldProps),{},{options:v,loading:g}),I))!==null&&M!==void 0?M:null}return I}return null};const iq=de.forwardRef(Xbt);var Qbt=function(t,n){var r=t.text,o=t.mode,i=t.light,a=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,f=t.plain,h=t.showTime,p=t.lightLabel,m=t.bordered,g=t.fieldProps,v=No(),b=Array.isArray(r)?r:[],y=$e(b,2),S=y[0],w=y[1],E=de.useState(!1),C=$e(E,2),x=C[0],_=C[1],P=d.useCallback(function(j){if(typeof(g==null?void 0:g.format)=="function"){var k;return g==null||(k=g.format)===null||k===void 0?void 0:k.call(g,j)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),O=S?qn(S).format(P(qn(S))):"",I=w?qn(w).format(P(qn(w))):"";if(o==="read"){var M=N.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[N.jsx("div",{children:O||"-"}),N.jsx("div",{children:I||"-"})]});return l?l(r,z({mode:o},g),N.jsx("span",{children:M})):M}if(o==="edit"||o==="update"){var T=pS(g.value),D;if(i){var A;D=N.jsx(bd,{label:a,onClick:function(){var k;g==null||(k=g.onOpenChange)===null||k===void 0||k.call(g,!0),_(!0)},style:T?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:T||x?N.jsx(qa.RangePicker,z(z(z({picker:c,showTime:h,format:s},Ms(!1)),g),{},{placeholder:(A=g.placeholder)!==null&&A!==void 0?A:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var k;_(!1),g==null||(k=g.onClear)===null||k===void 0||k.call(g)},value:T,onOpenChange:function(k){var F;T&&_(k),g==null||(F=g.onOpenChange)===null||F===void 0||F.call(g,k)}})):null,allowClear:!1,bordered:m,ref:p,downIcon:T||x?!1:void 0})}else D=N.jsx(qa.RangePicker,z(z(z({ref:n,format:s,showTime:h,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},Ms(f===void 0?!0:!f)),g),{},{value:T}));return u?u(r,z({mode:o},g),D):D}return null};const xm=de.forwardRef(Qbt);var Jbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;if(o==="read"){var l=N.jsx(qU,z(z({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return i?i(r,z({mode:o},s),N.jsx(N.Fragment,{children:l})):l}if(o==="edit"||o==="update"){var c=N.jsx(qU,z({allowHalf:!0,ref:n},s));return a?a(r,z({mode:o},s),c):c}return null};const Zbt=de.forwardRef(Jbt);function e1t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var o=Math.floor(t/(3600*24)),i=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)),i>0&&(n="".concat(i,"小时").concat(n)),o>0&&(n="".concat(o,"天").concat(n)),r&&(n+="前"),n}var t1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=No(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(o==="read"){var f=e1t(Number(r)),h=N.jsx("span",{ref:n,children:f});return i?i(r,z({mode:o},s),h):h}if(o==="edit"||o==="update"){var p=N.jsx(lc,z({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return a?a(r,z({mode:o},s),p):p}return null};const n1t=de.forwardRef(t1t);var r1t=["mode","render","renderFormItem","fieldProps","emptyText"],o1t=function(t,n){var r=t.mode,o=t.render,i=t.renderFormItem,a=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=At(t,r1t),u=d.useRef(),f=Qv(t),h=$e(f,3),p=h[0],m=h[1],g=h[2];if(d.useImperativeHandle(n,function(){return z(z({},u.current||{}),{},{fetchData:function(E){return g(E)}})},[g]),p)return N.jsx(iu,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(w,E){var C;return z(z({},w),{},Z({},(C=E.value)!==null&&C!==void 0?C:"",E.label))},{}):void 0,b=N.jsx(N.Fragment,{children:Kv(c.text,Sd(c.valueEnum||v))});if(o){var y;return(y=o(c.text,z({mode:r},a),N.jsx(N.Fragment,{children:b})))!==null&&y!==void 0?y:l}return b}if(r==="edit"||r==="update"){var S=N.jsx($ae,z(z({ref:u},Yn(a||{},["allowClear"])),{},{options:m}));return i?i(c.text,z(z({mode:r},a),{},{options:m,loading:p}),S):S}return null};const i1t=de.forwardRef(o1t);var a1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;if(o==="read"){var l=r;return i?i(r,z({mode:o},s),N.jsx(N.Fragment,{children:l})):N.jsx(N.Fragment,{children:l})}if(o==="edit"||o==="update"){var c=N.jsx(Lae,z(z({ref:n},s),{},{style:z({minWidth:120},s==null?void 0:s.style)}));return a?a(r,z({mode:o},s),c):c}return null};const s1t=de.forwardRef(a1t);var l1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=No(),f=d.useMemo(function(){var v,b;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(b=c==null?void 0:c.unCheckedChildren)!==null&&b!==void 0?b:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(o==="read")return i?i(r,z({mode:o},c),N.jsx(N.Fragment,{children:f})):f??"-";if(o==="edit"||o==="update"){var h,p=N.jsx(uE,z(z({ref:n,size:a?"small":void 0},Yn(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,g=c.bordered;return N.jsx(bd,{label:s,disabled:m,bordered:g,downIcon:!1,value:N.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,z({mode:o},c),p):p}return null};const c1t=de.forwardRef(l1t);var u1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},f=u.autoFocus,h=u.prefix,p=h===void 0?"":h,m=u.suffix,g=m===void 0?"":m,v=No(),b=d.useRef();if(d.useImperativeHandle(n,function(){return b.current},[]),d.useEffect(function(){if(f){var C;(C=b.current)===null||C===void 0||C.focus()}},[f]),o==="read"){var y=N.jsxs(N.Fragment,{children:[p,r??c,g]});if(i){var S;return(S=i(r,z({mode:o},s),y))!==null&&S!==void 0?S:c}return y}if(o==="edit"||o==="update"){var w=v.getMessage("tableForm.inputPlaceholder","请输入"),E=N.jsx(qr,z({ref:b,placeholder:w,allowClear:!0},s));return a?a(r,z({mode:o},s),E):E}return null};const d1t=de.forwardRef(u1t);var f1t=function(t,n){var r=t.text,o=t.fieldProps,i=d.useContext(Mn.ConfigContext),a=i.getPrefixCls,s=a("pro-field-readonly"),l="".concat(s,"-textarea"),c=Zr("TextArea",function(){return Z({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,f=c.hashId;return u(N.jsx("span",z(z({ref:n,className:xe(f,s,l)},Yn(o,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const h1t=de.forwardRef(f1t);var p1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=No();if(o==="read"){var c=N.jsx(h1t,z(z({},t),{},{ref:n}));return i?i(r,z({mode:o},Yn(s,["showCount"])),c):c}if(o==="edit"||o==="update"){var u=N.jsx(qr.TextArea,z({ref:n,rows:3,onKeyPress:function(h){h.key==="Enter"&&h.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return a?a(r,z({mode:o},s),u):u}return null};const m1t=de.forwardRef(p1t);var g1t=function(t,n){var r=t.text,o=t.mode,i=t.light,a=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,f=t.fieldProps,h=t.lightLabel,p=d.useState(!1),m=$e(p,2),g=m[0],v=m[1],b=No(),y=(f==null?void 0:f.format)||s||"HH:mm:ss",S=qn.isDayjs(r)||typeof r=="number";if(o==="read"){var w=N.jsx("span",{ref:n,children:r?qn(r,S?void 0:y).format(y):"-"});return l?l(r,z({mode:o},f),N.jsx("span",{children:w})):w}if(o==="edit"||o==="update"){var E,C=f.disabled,x=f.value,_=pS(x,y);if(i){var P;E=N.jsx(bd,{onClick:function(){var I;f==null||(I=f.onOpenChange)===null||I===void 0||I.call(f,!0),v(!0)},style:_?{paddingInlineEnd:0}:void 0,label:a,disabled:C,value:_||g?N.jsx(yp,z(z(z({},Ms(!1)),{},{format:s,ref:n},f),{},{placeholder:(P=f.placeholder)!==null&&P!==void 0?P:b.getMessage("tableForm.selectPlaceholder","请选择"),value:_,onOpenChange:function(I){var M;v(I),f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,I)},open:g})):null,downIcon:_||g?!1:void 0,allowClear:!1,ref:h})}else E=N.jsx(qa.TimePicker,z(z(z({ref:n,format:s},Ms(u===void 0?!0:!u)),f),{},{value:_}));return c?c(r,z({mode:o},f),E):E}return null},v1t=function(t,n){var r=t.text,o=t.light,i=t.label,a=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,f=t.plain,h=t.fieldProps,p=No(),m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=(h==null?void 0:h.format)||l||"HH:mm:ss",S=Array.isArray(r)?r:[],w=$e(S,2),E=w[0],C=w[1],x=qn.isDayjs(E)||typeof E=="number",_=qn.isDayjs(C)||typeof C=="number",P=E?qn(E,x?void 0:y).format(y):"",O=C?qn(C,_?void 0:y).format(y):"";if(a==="read"){var I=N.jsxs("div",{ref:n,children:[N.jsx("div",{children:P||"-"}),N.jsx("div",{children:O||"-"})]});return c?c(r,z({mode:a},h),N.jsx("span",{children:I})):I}if(a==="edit"||a==="update"){var M=pS(h.value,y),T;if(o){var D=h.disabled,A=h.placeholder,j=A===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:A;T=N.jsx(bd,{onClick:function(){var F;h==null||(F=h.onOpenChange)===null||F===void 0||F.call(h,!0),b(!0)},style:M?{paddingInlineEnd:0}:void 0,label:i,disabled:D,placeholder:j,value:M||v?N.jsx(yp.RangePicker,z(z(z({},Ms(!1)),{},{format:l,ref:n},h),{},{placeholder:j,value:M,onOpenChange:function(F){var V;b(F),h==null||(V=h.onOpenChange)===null||V===void 0||V.call(h,F)},open:v})):null,downIcon:M||v?!1:void 0,allowClear:!1,ref:s})}else T=N.jsx(yp.RangePicker,z(z(z({ref:n,format:l},Ms(f===void 0?!0:!f)),h),{},{value:M}));return u?u(r,z({mode:a},h),T):T}return null},y1t=de.forwardRef(v1t);const b1t=de.forwardRef(g1t);var S1t=["radioType","renderFormItem","mode","light","label","render"],C1t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],w1t=function(t,n){t.radioType;var r=t.renderFormItem,o=t.mode,i=t.light,a=t.label,s=t.render,l=At(t,S1t),c=d.useContext(Mn.ConfigContext),u=c.getPrefixCls,f=u("pro-field-tree-select"),h=d.useRef(null),p=d.useState(!1),m=$e(p,2),g=m[0],v=m[1],b=l.fieldProps,y=b.onSearch,S=b.onClear,w=b.onChange,E=b.onBlur,C=b.showSearch,x=b.autoClearSearchValue;b.treeData;var _=b.fetchDataOnSearch,P=b.searchValue,O=At(b,C1t),I=No(),M=Qv(z(z({},l),{},{defaultKeyWords:P})),T=$e(M,3),D=T[0],A=T[1],j=T[2],k=xn(void 0,{onChange:y,value:P}),F=$e(k,2),V=F[0],W=F[1];d.useImperativeHandle(n,function(){return z(z({},h.current||{}),{},{fetchData:function(fe){return j(fe)}})});var K=d.useMemo(function(){if(o==="read"){var se=(O==null?void 0:O.fieldNames)||{},fe=se.value,te=fe===void 0?"value":fe,he=se.label,pe=he===void 0?"label":he,Oe=se.children,Me=Oe===void 0?"children":Oe,Se=new Map,ye=function ve(be){if(!(be!=null&&be.length))return Se;for(var Pe=be.length,Ne=0;Ne4&&(p+=7),h.add(p,n));return m.diff(g,"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 f=this.$utils(),h=!!f.u(u)||u;return f.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)}}})})(ade);var E1t=ade.exports;const _1t=Fr(E1t);var sde={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,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,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,m,g){var v=g&&g.toUpperCase();return m||h[g]||n[g]||h[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,S){return y||S.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(sde);var $1t=sde.exports;const P1t=Fr($1t);var O1t=["fieldProps"],M1t=["fieldProps"],T1t=["fieldProps"],R1t=["fieldProps"],I1t=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],k1t=["placeholder"];qn.extend(qoe);qn.extend(Qoe);qn.extend(_1t);qn.extend(sD);qn.extend(Voe);qn.extend(P1t);var N1t=function(t,n,r){var o=Dce(r.fieldProps);return n.type==="progress"?N.jsx(ide,z(z({},r),{},{text:t,fieldProps:z({status:n.status?n.status:void 0},o)})):n.type==="money"?N.jsx(rde,z(z({locale:n.locale},r),{},{fieldProps:o,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?N.jsx(ode,z(z({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:o,showColor:n.showColor})):n.type==="image"?N.jsx(tde,z(z({},r),{},{text:t,width:n.width})):t},A1t=function(t,n,r,o){var i=r.mode,a=i===void 0?"read":i,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,z({mode:a},c),N.jsx(N.Fragment,{children:l})):N.jsx(N.Fragment,{children:l})}if(delete r.emptyText,Ht(n)==="object")return N1t(t,n,r);var f=o&&o[n];if(f){if(delete r.ref,a==="read"){var h;return(h=f.render)===null||h===void 0?void 0:h.call(f,t,z(z({text:t},r),{},{mode:a||"read"}),N.jsx(N.Fragment,{children:t}))}if(a==="update"||a==="edit"){var p;return(p=f.renderFormItem)===null||p===void 0?void 0:p.call(f,t,z({text:t},r),N.jsx(N.Fragment,{children:t}))}}if(n==="money")return N.jsx(rde,z(z({},r),{},{text:t}));if(n==="date")return N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=At(r,O1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-W",showTime:!0,fieldProps:z({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,b=At(r,M1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-MM",showTime:!0,fieldProps:z({picker:"month"},v)},b))})}if(n==="dateQuarterRange"){var y=r.fieldProps,S=At(r,T1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-Q",showTime:!0,fieldProps:z({picker:"quarter"},y)},S))})}if(n==="dateYearRange"){var w=r.fieldProps,E=At(r,R1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY",showTime:!0,fieldProps:z({picker:"year"},w)},E))})}return n==="dateMonth"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?N.jsx(xm,z({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?N.jsx(Ta,{isLight:r.light,children:N.jsx(b1t,z({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?N.jsx(Ta,{isLight:r.light,children:N.jsx(y1t,z({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?N.jsx($bt,z({text:t},r)):n==="index"?N.jsx(nq,{children:t+1}):n==="indexBorder"?N.jsx(nq,{border:!0,children:t+1}):n==="progress"?N.jsx(ide,z(z({},r),{},{text:t})):n==="percent"?N.jsx(ode,z({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?N.jsx(Xc,{src:t,size:22,shape:"circle"}):n==="code"?N.jsx(HV,z({text:t},r)):n==="jsonCode"?N.jsx(HV,z({text:t,language:"json"},r)):n==="textarea"?N.jsx(m1t,z({text:t},r)):n==="digit"?N.jsx(Sbt,z({text:t},r)):n==="digitRange"?N.jsx(wbt,z({text:t},r)):n==="second"?N.jsx(n1t,z({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?N.jsx(Ta,{isLight:r.light,children:N.jsx(Unt,z({text:t},r))}):n==="checkbox"?N.jsx(Xnt,z({text:t},r)):n==="radio"?N.jsx(iq,z({text:t},r)):n==="radioButton"?N.jsx(iq,z({radioType:"button",text:t},r)):n==="rate"?N.jsx(Zbt,z({text:t},r)):n==="slider"?N.jsx(s1t,z({text:t},r)):n==="switch"?N.jsx(c1t,z({text:t},r)):n==="option"?N.jsx(Lbt,z({text:t},r)):n==="password"?N.jsx(Hbt,z({text:t},r)):n==="image"?N.jsx(tde,z({text:t},r)):n==="cascader"?N.jsx(Knt,z({text:t},r)):n==="treeSelect"?N.jsx(x1t,z({text:t},r)):n==="color"?N.jsx(gbt,z({text:t},r)):n==="segmented"?N.jsx(i1t,z({text:t},r)):N.jsx(d1t,z({text:t},r))},D1t=function(t,n){var r,o,i,a,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,f=t.mode,h=f===void 0?"read":f,p=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,b=t.fieldProps,y=At(t,I1t),S=d.useContext(Mf),w=Xl(function(){for(var x,_=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];b==null||(x=b.onChange)===null||x===void 0||x.call.apply(x,[b].concat(P)),p==null||p.apply(void 0,P)}),E=Na(function(){return(g!==void 0||b)&&z(z({value:g},Js(b)),{},{onChange:w})},[g,b,w]),C=A1t(h==="edit"?(r=(o=E==null?void 0:E.value)!==null&&o!==void 0?o:l)!==null&&r!==void 0?r:"":(i=l??(E==null?void 0:E.value))!==null&&i!==void 0?i:"",u||"text",Js(z(z({ref:n},y),{},{mode:v?"read":h,renderFormItem:m?function(x,_,P){_.placeholder;var O=At(_,k1t),I=m(x,O,P);return de.isValidElement(I)?de.cloneElement(I,z(z({},E),I.props||{})):I}:void 0,placeholder:m?void 0:(a=y==null?void 0:y.placeholder)!==null&&a!==void 0?a:E==null?void 0:E.placeholder,fieldProps:Dce(Js(z(z({},E),{},{placeholder:m?void 0:(s=y==null?void 0:y.placeholder)!==null&&s!==void 0?s:E==null?void 0:E.placeholder})))})),S.valueTypeMap||{});return N.jsx(de.Fragment,{children:C})},j1t=de.forwardRef(D1t),Aj=de.createContext({mode:"edit"}),F1t=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],L1t=function(t){var n=t.fieldProps,r=t.children;t.labelCol,t.label;var o=t.autoFocus;t.isDefaultDom;var i=t.render,a=t.proFieldProps,s=t.renderFormItem,l=t.valueType;t.initialValue;var c=t.onChange,u=t.valueEnum,f=t.params;t.name;var h=t.dependenciesValues,p=t.cacheForSwr,m=p===void 0?!1:p,g=t.valuePropName,v=g===void 0?"value":g,b=At(t,F1t),y=d.useContext(Aj),S=d.useMemo(function(){return h&&b.request?z(z({},f),h||{}):f},[h,f,b.request]),w=Xl(function(){if(n!=null&&n.onChange){for(var x,_=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];n==null||(x=n.onChange)===null||x===void 0||x.call.apply(x,[n].concat(P));return}}),E=d.useMemo(function(){return z(z({autoFocus:o},n),{},{onChange:w})},[o,n,w]),C=d.useMemo(function(){if(r)return de.isValidElement(r)?de.cloneElement(r,z(z({},b),{},{onChange:function(){for(var _=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];if(n!=null&&n.onChange){var I;n==null||(I=n.onChange)===null||I===void 0||I.call.apply(I,[n].concat(P));return}c==null||c.apply(void 0,P)}},(r==null?void 0:r.props)||{})):N.jsx(N.Fragment,{children:r})},[r,n==null?void 0:n.onChange,c,b]);return C||N.jsx(j1t,z(z(z({text:n==null?void 0:n[v],render:i,renderFormItem:s,valueType:l||"text",cacheForSwr:m,fieldProps:E,valueEnum:Zg(u)},a),b),{},{mode:(a==null?void 0:a.mode)||y.mode||"edit",params:S}))},Tf=gj(d.memo(L1t,function(e,t){return Jh(t,e,["onChange","onBlur"])})),B1t=["options","fieldProps","proFieldProps","valueEnum"],z1t=de.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,o=e.proFieldProps,i=e.valueEnum,a=At(e,B1t);return N.jsx(Tf,z({ref:t,valueType:"checkbox",valueEnum:Zg(i,void 0),fieldProps:z({options:n},r),lightProps:z({labelFormatter:function(){return N.jsx(Tf,z({ref:t,valueType:"checkbox",mode:"read",valueEnum:Zg(i,void 0),filedConfig:{customLightMode:!0},fieldProps:z({options:n},r),proFieldProps:o},a))}},a.lightProps),proFieldProps:o},a))}),H1t=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return N.jsx(od,z(z({ref:t},n),{},{children:r}))}),U1t=gj(H1t,{valuePropName:"checked"}),Dj=U1t;Dj.Group=z1t;var jj=de.createContext({}),W1t=["name","originDependencies","children","ignoreFormListField"],lde=function(t){var n=t.name,r=t.originDependencies,o=r===void 0?n:r,i=t.children,a=t.ignoreFormListField,s=At(t,W1t),l=d.useContext(Tce),c=d.useContext(jj),u=d.useMemo(function(){return n.map(function(f){var h,p=[f];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 N.jsx(Vn.Item,z(z({},s),{},{noStyle:!0,shouldUpdate:function(h,p,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,h,p,m)}return u.some(function(v){return!Jh(Mo(h,v),Mo(p,v))})},children:function(h){for(var p={},m=0;m div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":Z(Z(Z(Z({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 Q1t(e){return Zr("ProFormGroup",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[X1t(n)]})}var ude=de.forwardRef(function(e,t){var n=de.useContext(Xv),r=n.groupProps,o=z(z({},r),e),i=o.children,a=o.collapsible,s=o.defaultCollapsed,l=o.style,c=o.labelLayout,u=o.title,f=u===void 0?e.label:u,h=o.tooltip,p=o.align,m=p===void 0?"start":p,g=o.direction,v=o.size,b=v===void 0?32:v,y=o.titleStyle,S=o.titleRender,w=o.spaceProps,E=o.extra,C=o.autoFocus,x=xn(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),_=$e(x,2),P=_[0],O=_[1],I=d.useContext(Mn.ConfigContext),M=I.getPrefixCls,T=mj(e),D=T.ColWrapper,A=T.RowWrapper,j=M("pro-form-group"),k=Q1t(j),F=k.wrapSSR,V=k.hashId,W=a&&N.jsx(nd,{style:{marginInlineEnd:8},rotate:P?void 0:90}),K=N.jsx(hZe,{label:W?N.jsxs("div",{children:[W,f]}):f,tooltip:h}),L=d.useCallback(function(X){var ne=X.children;return N.jsx(oo,z(z({},w),{},{className:xe("".concat(j,"-container ").concat(V),w==null?void 0:w.className),size:b,align:m,direction:g,style:z({rowGap:0},w==null?void 0:w.style),children:ne}))},[m,j,g,V,b,w]),Q=S?S(K,e):K,ee=d.useMemo(function(){var X=[],ne=de.Children.toArray(i).map(function(le,ce){var oe;return de.isValidElement(le)&&le!==null&&le!==void 0&&(oe=le.props)!==null&&oe!==void 0&&oe.hidden?(X.push(le),null):ce===0&&de.isValidElement(le)&&C?de.cloneElement(le,z(z({},le.props),{},{autoFocus:C})):le});return[N.jsx(A,{Wrapper:L,children:ne},"children"),X.length>0?N.jsx("div",{style:{display:"none"},children:X}):null]},[i,A,L,C]),re=$e(ee,2),ie=re[0],G=re[1];return F(N.jsx(D,{children:N.jsxs("div",{className:xe(j,V,Z({},"".concat(j,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[G,(f||h||E)&&N.jsx("div",{className:"".concat(j,"-title ").concat(V).trim(),style:y,onClick:function(){O(!P)},children:E?N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Q,N.jsx("span",{onClick:function(ne){return ne.stopPropagation()},children:E})]}):Q}),N.jsx("div",{style:{display:a&&P?"none":void 0},children:ie})]})}))});ude.displayName="ProForm-Group";var J1t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],Z1t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],eSt=function(t,n){var r=t.fieldProps,o=t.children,i=t.params,a=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,f=t.options,h=At(t,J1t),p=d.useContext(Xv);return N.jsx(Tf,z(z({valueEnum:Zg(l),request:c,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:z({options:f,mode:s,showSearch:u,getPopupContainer:p.getPopupContainer},r),ref:n,proFieldProps:a},h),{},{children:o}))},tSt=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,o=e.params,i=e.proFieldProps,a=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=At(e,Z1t),f=z({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),h=d.useContext(Xv);return N.jsx(Tf,z(z({valueEnum:Zg(s),request:l,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:z({getPopupContainer:h.getPopupContainer},f),ref:t,proFieldProps:i},u),{},{children:r}))}),nSt=de.forwardRef(eSt),rSt=tSt,Fj=nSt;Fj.SearchSelect=rSt;Fj.displayName="ProFormComponent";var oSt=function(t){var n=No(),r=Vn.useFormInstance();if(t.render===!1)return null;var o=t.onSubmit,i=t.render,a=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,f=Qc.useToken(),h=f.token,p=function(){r.submit(),o==null||o()},m=function(){r.resetFields(),a==null||a()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,b=l.resetText,y=b===void 0?n.getMessage("tableForm.reset","重置"):b,S=[];u!==!1&&S.push(d.createElement(Hn,z(z({},Yn(u??{},["preventDefault"])),{},{key:"rest",onClick:function(C){var x;u!=null&&u.preventDefault||m(),u==null||(x=u.onClick)===null||x===void 0||x.call(u,C)}}),y)),c!==!1&&S.push(d.createElement(Hn,z(z({type:"primary"},Yn(c||{},["preventDefault"])),{},{key:"submit",onClick:function(C){var x;c!=null&&c.preventDefault||p(),c==null||(x=c.onClick)===null||x===void 0||x.call(c,C)}}),v));var w=i?i(z(z({},t),{},{form:r,submit:p,reset:m}),S):S;return w?Array.isArray(w)?(w==null?void 0:w.length)<1?null:(w==null?void 0:w.length)===1?w[0]:N.jsx("div",{style:{display:"flex",gap:h.marginXS,alignItems:"center"},children:w}):w:null},iSt=["fieldProps","proFieldProps"],aSt=["fieldProps","proFieldProps"],kE="text",sSt=function(t){var n=t.fieldProps,r=t.proFieldProps,o=At(t,iSt);return N.jsx(Tf,z({valueType:kE,fieldProps:n,filedConfig:{valueType:kE},proFieldProps:r},o))},lSt=function(t){var n=xn(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=$e(n,2),o=r[0],i=r[1];return N.jsx(Vn.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return N.jsx(fl,z(z({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return i(f)},content:N.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?N.jsx("div",{style:{marginTop:10},children:N.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:o,children:t.children}))}})},cSt=function(t){var n=t.fieldProps,r=t.proFieldProps,o=At(t,aSt),i=d.useState(!1),a=$e(i,2),s=a[0],l=a[1];return n!=null&&n.statusRender&&o.name?N.jsx(lSt,{name:o.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:N.jsx("div",{children:N.jsx(Tf,z({valueType:"password",fieldProps:z(z({},Yn(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,u),l(!1)},onClick:function(u){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:kE}},o))})}):N.jsx(Tf,z({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:kE}},o))},Lr=sSt;Lr.Password=cSt;Lr.displayName="ProFormComponent";var uSt=["fieldProps","proFieldProps"],dSt=function(t,n){var r=t.fieldProps,o=t.proFieldProps,i=At(t,uSt);return N.jsx(Tf,z({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:o},i))};const Lj=de.forwardRef(dSt);var fSt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],hSt=["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"],mx=function(t,n,r){return t===!0?n:Zg(t,n,r)},sq=function(t){return!t||Array.isArray(t)?t:[t]};function pSt(e){var t,n=e.children,r=e.contentRender,o=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var i=e.transformKey,a=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,f=u===void 0?{}:u,h=e.syncToUrl,p=e.onUrlSearchChange,m=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var b=e.autoFocusFirstInput,y=b===void 0?!0:b,S=e.grid,w=e.rowProps,E=e.colProps,C=At(e,fSt),x=Vn.useFormInstance(),_=(Mn==null||(t=Mn.useConfig)===null||t===void 0?void 0:t.call(Mn))||{componentSize:"middle"},P=_.componentSize,O=d.useRef(l||x),I=mj({grid:S,rowProps:w}),M=I.RowWrapper,T=Xl(function(){return x}),D=d.useMemo(function(){return{getFieldsFormatValue:function(K){var L;return i((L=T())===null||L===void 0?void 0:L.getFieldsValue(K),v)},getFieldFormatValue:function(){var K,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Q=sq(L);if(!Q)throw new Error("nameList is require");var ee=(K=T())===null||K===void 0?void 0:K.getFieldValue(Q),re=Q?Yo({},Q,ee):ee,ie=Ze(Q);return ie.shift(),Mo(i(re,v,ie),Q)},getFieldFormatValueObject:function(K){var L,Q=sq(K),ee=(L=T())===null||L===void 0?void 0:L.getFieldValue(Q),re=Q?Yo({},Q,ee):ee;return i(re,v,Q)},validateFieldsReturnFormatValue:function(){var W=Bo(nr().mark(function L(Q){var ee,re,ie;return nr().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(!Array.isArray(Q)&&Q)){X.next=2;break}throw new Error("nameList must be array");case 2:return X.next=4,(ee=T())===null||ee===void 0?void 0:ee.validateFields(Q);case 4:return re=X.sent,ie=i(re,v),X.abrupt("return",ie||{});case 7:case"end":return X.stop()}},L)}));function K(L){return W.apply(this,arguments)}return K}()}},[v,i]),A=d.useMemo(function(){return de.Children.toArray(n).map(function(W,K){return K===0&&de.isValidElement(W)&&y?de.cloneElement(W,z(z({},W.props),{},{autoFocus:y})):W})},[y,n]),j=d.useMemo(function(){return typeof o=="boolean"||!o?{}:o},[o]),k=d.useMemo(function(){if(o!==!1)return N.jsx(oSt,z(z({},j),{},{onReset:function(){var K,L,Q=i((K=O.current)===null||K===void 0?void 0:K.getFieldsValue(),v);if(j==null||(L=j.onReset)===null||L===void 0||L.call(j,Q),m==null||m(Q),h){var ee,re=Object.keys(i((ee=O.current)===null||ee===void 0?void 0:ee.getFieldsValue(),!1)).reduce(function(ie,G){return z(z({},ie),{},Z({},G,Q[G]||void 0))},f);p(mx(h,re||{},"set"))}},submitButtonProps:z({loading:c},j.submitButtonProps)}),"submitter")},[o,j,c,i,v,m,h,f,p]),F=d.useMemo(function(){var W=S?N.jsx(M,{children:A}):A;return r?r(W,k,O.current):W},[S,M,A,r,k]),V=PZe(e.initialValues);return d.useEffect(function(){if(!(h||!e.initialValues||!V||C.request)){var W=Jh(e.initialValues,V);b2(W,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),b2(W,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),d.useImperativeHandle(a,function(){return z(z({},O.current),D)},[D,O.current]),d.useEffect(function(){var W,K,L=i((W=O.current)===null||W===void 0||(K=W.getFieldsValue)===null||K===void 0?void 0:K.call(W,!0),v);s==null||s(L,z(z({},O.current),D))},[]),N.jsx(Tce.Provider,{value:z(z({},D),{},{formRef:O}),children:N.jsx(Mn,{componentSize:C.size||P,children:N.jsxs(eue.Provider,{value:{grid:S,colProps:E},children:[C.component!==!1&&N.jsx("input",{type:"text",style:{display:"none"}}),F]})})})}var lq=0;function mSt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,o=e.isKeyPressSubmit,i=e.syncToUrlAsImportant,a=i===void 0?!1:i,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,f=e.formItemProps,h=e.groupProps,p=e.dateFormatter,m=p===void 0?"string":p,g=e.formRef;e.onInit;var v=e.form,b=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var y=e.omitNil,S=y===void 0?!0:y,w=e.request,E=e.params,C=e.initialValues,x=e.formKey,_=x===void 0?lq:x;e.readonly;var P=e.onLoadingChange,O=e.loading,I=At(e,hSt),M=d.useRef({}),T=xn(!1,{onChange:P,value:O}),D=$e(T,2),A=D[0],j=D[1],k=Snt({},{disabled:!r}),F=$e(k,2),V=F[0],W=F[1],K=d.useRef(yE());d.useEffect(function(){lq+=0},[]);var L=$Ze({request:w,params:E,proFieldKey:_}),Q=$e(L,1),ee=Q[0],re=d.useContext(Mn.ConfigContext),ie=re.getPrefixCls,G=ie("pro-form"),X=Zr("ProForm",function(ye){return Z({},".".concat(G),Z({},"> div:not(".concat(ye.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}}}))}),ne=X.wrapSSR,le=X.hashId,ce=d.useState(function(){return r?mx(r,V,"get"):{}}),oe=$e(ce,2),se=oe[0],fe=oe[1],te=d.useRef({}),he=d.useRef({}),pe=Xl(function(ye,ve,be){return gnt(vZe(ye,m,he.current,ve,be),te.current,ve)});d.useEffect(function(){l||fe({})},[l]);var Oe=Xl(function(){return z(z({},V),n)});d.useEffect(function(){r&&W(mx(r,Oe(),"set"))},[n,Oe,r]);var Me=d.useMemo(function(){if(!(typeof window>"u")&&b&&["DrawerForm"].includes(b))return function(ye){return ye.parentNode||document.body}},[b]),Se=Xl(Bo(nr().mark(function ye(){var ve,be,Pe,Ne,U,H,q;return nr().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(I.onFinish){Ce.next=2;break}return Ce.abrupt("return");case 2:if(!A){Ce.next=4;break}return Ce.abrupt("return");case 4:return Ce.prev=4,Pe=M==null||(ve=M.current)===null||ve===void 0||(be=ve.getFieldsFormatValue)===null||be===void 0?void 0:be.call(ve),Ne=I.onFinish(Pe),Ne instanceof Promise&&j(!0),Ce.next=10,Ne;case 10:r&&(q=Object.keys(M==null||(U=M.current)===null||U===void 0||(H=U.getFieldsFormatValue)===null||H===void 0?void 0:H.call(U,void 0,!1)).reduce(function(ue,Le){var He;return z(z({},ue),{},Z({},Le,(He=Pe[Le])!==null&&He!==void 0?He:void 0))},n),Object.keys(V).forEach(function(ue){q[ue]!==!1&&q[ue]!==0&&!q[ue]&&(q[ue]=void 0)}),W(mx(r,q,"set"))),j(!1),Ce.next=18;break;case 14:Ce.prev=14,Ce.t0=Ce.catch(4),console.log(Ce.t0),j(!1);case 18:case"end":return Ce.stop()}},ye,null,[[4,14]])})));return d.useImperativeHandle(g,function(){return M.current},[!ee]),!ee&&e.request?N.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:N.jsx(iu,{})}):ne(N.jsx(Aj.Provider,{value:{mode:e.readonly?"read":"edit"},children:N.jsx(MP,{needDeps:!0,children:N.jsx(Xv.Provider,{value:{formRef:M,fieldProps:c,proFieldProps:u,formItemProps:f,groupProps:h,formComponentType:b,getPopupContainer:Me,formKey:K.current,setFieldValueType:function(ve,be){var Pe=be.valueType,Ne=Pe===void 0?"text":Pe,U=be.dateFormat,H=be.transform;Array.isArray(ve)&&(te.current=Yo(te.current,ve,H),he.current=Yo(he.current,ve,{valueType:Ne,dateFormat:U}))}},children:N.jsx(jj.Provider,{value:{},children:N.jsx(Vn,z(z({onKeyPress:function(ve){if(o&&ve.key==="Enter"){var be;(be=M.current)===null||be===void 0||be.submit()}},autoComplete:"off",form:v},Yn(I,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(ve){M.current&&(M.current.nativeElement=ve==null?void 0:ve.nativeElement)},initialValues:a?z(z(z({},C),ee),se):z(z(z({},se),C),ee),onValuesChange:function(ve,be){var Pe;I==null||(Pe=I.onValuesChange)===null||Pe===void 0||Pe.call(I,pe(ve,!!S),pe(be,!!S))},className:xe(e.className,G,le),onFinish:Se,children:N.jsx(pSt,z(z({transformKey:pe,autoComplete:"off",loading:A,onUrlSearchChange:W},e),{},{formRef:M,initialValues:z(z({},C),ee)}))}))})})})}))}var gSt=function(t){return Z(Z({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),Z({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function vSt(e){return Zr("LightWrapper",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[gSt(n)]})}var ySt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],bSt=function(t){var n=t.label,r=t.size,o=t.disabled,i=t.onChange,a=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,f=t.labelFormatter,h=t.bordered,p=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,b=t.placement,y=At(t,ySt),S=d.useContext(Mn.ConfigContext),w=S.getPrefixCls,E=w("pro-field-light-wrapper"),C=vSt(E),x=C.wrapSSR,_=C.hashId,P=d.useState(t[c]),O=$e(P,2),I=O[0],M=O[1],T=xn(!1),D=$e(T,2),A=D[0],j=D[1],k=function(){for(var K,L=arguments.length,Q=new Array(L),ee=0;een.length)&&(r=n.length);for(var o=0,i=Array(r);o0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):RSt}function XP(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ISt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Uj(e){return Array.from((NE.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Wj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,MSt.default)())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=ISt(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(dq,a),s&&i&&l.setAttribute(fq,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=XP(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Uj(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(dq)))return!1;var p=Number(h.getAttribute(fq)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ode(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=XP(t);return(t.styles||Uj(n)).find(function(r){return r.getAttribute(Pde(t))===e})}function kSt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ode(e,t);if(n){var r=XP(t);r.removeChild(n)}}function NSt(e,t){var n=NE.get(e);if(!n||!(0,TSt.default)(document,n)){var r=Wj("",t),o=r.parentNode;NE.set(e,o),e.removeChild(r)}}function ASt(){NE.clear()}function DSt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=XP(n),o=Uj(r),i=(0,uq.default)((0,uq.default)({},n),{},{styles:o});NSt(r,i);var a=Ode(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Wj(e,i);return u.setAttribute(Pde(i),t),u}var QP={};Object.defineProperty(QP,"__esModule",{value:!0});QP.getShadowRoot=jSt;QP.inShadow=Tde;function Mde(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Tde(e){return Mde(e)instanceof ShadowRoot}function jSt(e){return Tde(e)?Mde(e):null}var Xa={};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.call=Vj;Xa.default=void 0;Xa.note=Ide;Xa.noteOnce=Nde;Xa.preMessage=void 0;Xa.resetWarned=kde;Xa.warning=Rde;Xa.warningOnce=MS;var v8={},FSt=Xa.preMessage=function(t){};function Rde(e,t){}function Ide(e,t){}function kde(){v8={}}function Vj(e,t,n){!t&&!v8[n]&&(e(!1,n),v8[n]=!0)}function MS(e,t){Vj(Rde,e,t)}function Nde(e,t){Vj(Ide,e,t)}MS.preMessage=FSt;MS.resetWarned=kde;MS.noteOnce=Nde;Xa.default=MS;var LSt=ti.default,JP=ir.default;Object.defineProperty(aa,"__esModule",{value:!0});aa.generate=b8;aa.getSecondaryColor=GSt;aa.iconStyles=void 0;aa.isIconDefinition=qSt;aa.normalizeAttrs=y8;aa.normalizeTwoToneColors=YSt;aa.useInsertStyles=aa.svgBaseProps=void 0;aa.warning=KSt;var qR=JP(Tp),hq=JP(Mp),BSt=PS,zSt=Yp,HSt=QP,USt=JP(Xa),AE=LSt(d),WSt=JP(a0);function VSt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function KSt(e,t){(0,USt.default)(e,"[@ant-design/icons] ".concat(t))}function qSt(e){return(0,hq.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,hq.default)(e.icon)==="object"||typeof e.icon=="function")}function y8(){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[VSt(n)]=r}return t},{})}function b8(e,t,n){return n?AE.default.createElement(e.tag,(0,qR.default)((0,qR.default)({key:t},y8(e.attrs)),n),(e.children||[]).map(function(r,o){return b8(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):AE.default.createElement(e.tag,(0,qR.default)({key:t},y8(e.attrs)),(e.children||[]).map(function(r,o){return b8(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function GSt(e){return(0,BSt.generate)(e)[0]}function YSt(e){return e?Array.isArray(e)?e:[e]:[]}aa.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var XSt=aa.iconStyles=` .anticon { display: inline-flex; align-items: center; @@ -647,16 +647,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`;aa.useInsertStyles=function(t){var n=(0,NE.useContext)(VSt.default),r=n.csp,o=n.prefixCls,i=n.layer,a=QSt;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { +`;aa.useInsertStyles=function(t){var n=(0,AE.useContext)(WSt.default),r=n.csp,o=n.prefixCls,i=n.layer,a=XSt;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` -}`)),(0,NE.useEffect)(function(){var s=t.current,l=(0,USt.getShadowRoot)(s);(0,HSt.updateCSS)(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])};var Dde=ir.default,JSt=ti.default;Object.defineProperty(PS,"__esModule",{value:!0});PS.default=void 0;var ZSt=Dde(Pde),Cy=Dde(Tp),eCt=JSt(d),hh=aa,tCt=["icon","className","onClick","style","primaryColor","secondaryColor"],Yy={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function nCt(e){var t=e.primaryColor,n=e.secondaryColor;Yy.primaryColor=t,Yy.secondaryColor=n||(0,hh.getSecondaryColor)(t),Yy.calculated=!!n}function rCt(){return(0,Cy.default)({},Yy)}var ZP=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=(0,ZSt.default)(t,tCt),c=eCt.useRef(),u=Yy;if(a&&(u={primaryColor:a,secondaryColor:s||(0,hh.getSecondaryColor)(a)}),(0,hh.useInsertStyles)(c),(0,hh.warning)((0,hh.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,hh.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,Cy.default)((0,Cy.default)({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),(0,hh.generate)(f.icon,"svg-".concat(f.name),(0,Cy.default)((0,Cy.default)({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};ZP.displayName="IconReact";ZP.getTwoToneColors=rCt;ZP.setTwoToneColors=nCt;PS.default=ZP;var eO={},jde=ir.default;Object.defineProperty(eO,"__esModule",{value:!0});eO.getTwoToneColor=sCt;eO.setTwoToneColor=aCt;var oCt=jde(Ede),Fde=jde(PS),iCt=aa;function aCt(e){var t=(0,iCt.normalizeTwoToneColors)(e),n=(0,oCt.default)(t,2),r=n[0],o=n[1];return Fde.default.setTwoToneColors({primaryColor:r,secondaryColor:o})}function sCt(){var e=Fde.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Xp=ir.default,lCt=ti.default;Object.defineProperty(i0,"__esModule",{value:!0});i0.default=void 0;var cCt=Xp(GP),uCt=Xp(Ede),gq=Xp(kQ),dCt=Xp(Pde),cw=lCt(d),fCt=Xp(X_),hCt=$S,pCt=Xp(a0),mCt=Xp(PS),Gj=eO,gCt=aa,vCt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,Gj.setTwoToneColor)(hCt.blue.primary);var tO=cw.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,dCt.default)(e,vCt),u=cw.useContext(pCt.default),f=u.prefixCls,h=f===void 0?"anticon":f,p=u.rootClassName,m=(0,fCt.default)(p,h,(0,gq.default)((0,gq.default)({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=(0,gCt.normalizeTwoToneColors)(l),y=(0,uCt.default)(b,2),S=y[0],w=y[1];return cw.createElement("span",(0,cCt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),cw.createElement(mCt.default,{icon:r,primaryColor:S,secondaryColor:w,style:v}))});tO.displayName="AntdIcon";tO.getTwoToneColor=Gj.getTwoToneColor;tO.setTwoToneColor=Gj.setTwoToneColor;i0.default=tO;var yCt=["isLoading","pastDelay","timedOut","error","retry"],bCt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=At(t,yCt);return N.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:N.jsx(au,z({size:"large"},n))})},SCt=function(t){return Z({},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 CCt(e){return Zr("ProLayoutFooter",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[SCt(n)]})}var wCt=function(t){var n=t.className,r=t.prefixCls,o=t.links,i=t.copyright,a=t.style,s=d.useContext(Mn.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=CCt(l),u=c.wrapSSR,f=c.hashId;return(o==null||o===!1||Array.isArray(o)&&o.length===0)&&(i==null||i===!1)?null:u(N.jsxs("div",{className:xe(l,f,n),style:a,children:[o&&N.jsx("div",{className:"".concat(l,"-list ").concat(f).trim(),children:o.map(function(h){return N.jsx("a",{className:"".concat(l,"-list-link ").concat(f).trim(),title:h.key,target:h.blankTarget?"_blank":"_self",href:h.href,rel:"noreferrer",children:h.title},h.key)})}),i&&N.jsx("div",{className:"".concat(l,"-copyright ").concat(f).trim(),children:i})]}))},xCt=ei.Footer,ECt=function(t){var n=t.links,r=t.copyright,o=t.style,i=t.className,a=t.prefixCls;return N.jsx(xCt,{className:i,style:z({padding:0},o),children:N.jsx(wCt,{links:n,prefixCls:a,copyright:r===!1?null:N.jsxs(d.Fragment,{children:[N.jsx(CHe,{})," ",r]})})})},vq=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var o=n.concat(e(r.children||r.routes)||[]);return o}return n},[])};function nO(e){return e.map(function(t){var n=t.children||[],r=z({},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(o){return o&&o.name&&!o.hideInMenu}))return z(z({},t),{},{children:nO(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var _Ct=function(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},$Ct=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,i=t.itemClick;return N.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).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?N.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:a.title}),N.jsx(e,{hashId:o,itemClick:i,appList:a==null?void 0:a.children,baseClassName:r})]},s):N.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(u){u.stopPropagation(),i==null||i(a)},children:N.jsxs("a",{href:i?void 0:a.url,target:a.target,rel:"noreferrer",children:[Yj(a.icon),N.jsxs("div",{children:[N.jsx("div",{children:a.title}),a.desc?N.jsx("span",{children:a.desc}):null]})]})},s)})})})},PCt=function(t,n){if(t&&typeof t=="string"&&fj(t))return N.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return N.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return N.jsx("div",{id:"avatarLogo",children:r})}return t},OCt=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,i=t.itemClick;return N.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).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?N.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:a.title}),N.jsx(e,{hashId:o,itemClick:i,appList:a==null?void 0:a.children,baseClassName:r})]},s):N.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(u){u.stopPropagation(),i==null||i(a)},children:N.jsxs("a",{href:i?"javascript:;":a.url,target:a.target,rel:"noreferrer",children:[PCt(a.icon,a.title),N.jsx("div",{children:N.jsx("div",{children:a.title})})]})},s)})})})},MCt=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":AR==null?void 0:AR(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"}}}}}}},TCt=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"}}}}}}},RCt=function(t){var n,r,o,i,a;return Z({},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:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover},"&-active":{color:(i=t.layout)===null||i===void 0?void 0:i.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":Z({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":TCt(t),"&-default":MCt(t)})};function ICt(e){return Zr("AppsLogoComponents",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[RCt(n)]})}var Yj=function(t){return typeof t=="string"?N.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},Xj=function(t){var n,r=t.appList,o=t.appListRender,i=t.prefixCls,a=i===void 0?"ant-pro":i,s=t.onItemClick,l=de.useRef(null),c=de.useRef(null),u="".concat(a,"-layout-apps"),f=ICt(u),h=f.wrapSSR,p=f.hashId,m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=function(x){s==null||s(x,c)},S=d.useMemo(function(){var C=r==null?void 0:r.some(function(x){return!(x!=null&&x.desc)});return C?N.jsx(OCt,{hashId:p,appList:r,itemClick:s?y:void 0,baseClassName:"".concat(u,"-simple")}):N.jsx($Ct,{hashId:p,appList:r,itemClick:s?y:void 0,baseClassName:"".concat(u,"-default")})},[r,u,p]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var w=o?o(t==null?void 0:t.appList,S):S,E=TP(void 0,function(C){return b(C)});return h(N.jsxs(N.Fragment,{children:[N.jsx("div",{ref:l,onClick:function(x){x.stopPropagation(),x.preventDefault()}}),N.jsx(fl,z(z({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},E),{},{overlayClassName:"".concat(u,"-popover ").concat(p).trim(),content:w,getPopupContainer:function(){return l.current||document.body},children:N.jsx("span",{ref:c,onClick:function(x){x.stopPropagation()},className:xe("".concat(u,"-icon"),p,Z({},"".concat(u,"-icon-active"),v)),children:N.jsx(_Ct,{})})}))]}))};function kCt(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.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 NCt=function(t){var n,r,o;return Z({},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:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.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 ACt(e){return Zr("SiderMenuCollapsedIcon",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[NCt(n)]})}var DCt=["isMobile","collapsed"],jCt=function(t){var n=t.isMobile,r=t.collapsed,o=At(t,DCt),i=ACt(t.className),a=i.wrapSSR,s=i.hashId;return n&&r?null:a(N.jsx("div",z(z({},o),{},{className:xe(t.className,s,Z(Z({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:N.jsx(kCt,{})})))},Lde={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},FCt=function(t,n){var r,o,i=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(o=t.layout)===null||o===void 0?void 0:o.sider;return z(z(Z({},"".concat(t.componentCls),Z(Z(Z(Z(Z(Z(Z(Z(Z({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),Z({},"> ".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",Z(Z(Z({},"".concat(t.antCls,`-menu-item, +}`)),(0,AE.useEffect)(function(){var s=t.current,l=(0,HSt.getShadowRoot)(s);(0,zSt.updateCSS)(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])};var Ade=ir.default,QSt=ti.default;Object.defineProperty(OS,"__esModule",{value:!0});OS.default=void 0;var JSt=Ade($de),Cy=Ade(Tp),ZSt=QSt(d),hh=aa,eCt=["icon","className","onClick","style","primaryColor","secondaryColor"],Yy={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function tCt(e){var t=e.primaryColor,n=e.secondaryColor;Yy.primaryColor=t,Yy.secondaryColor=n||(0,hh.getSecondaryColor)(t),Yy.calculated=!!n}function nCt(){return(0,Cy.default)({},Yy)}var ZP=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=(0,JSt.default)(t,eCt),c=ZSt.useRef(),u=Yy;if(a&&(u={primaryColor:a,secondaryColor:s||(0,hh.getSecondaryColor)(a)}),(0,hh.useInsertStyles)(c),(0,hh.warning)((0,hh.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,hh.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,Cy.default)((0,Cy.default)({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),(0,hh.generate)(f.icon,"svg-".concat(f.name),(0,Cy.default)((0,Cy.default)({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};ZP.displayName="IconReact";ZP.getTwoToneColors=nCt;ZP.setTwoToneColors=tCt;OS.default=ZP;var eO={},Dde=ir.default;Object.defineProperty(eO,"__esModule",{value:!0});eO.getTwoToneColor=aCt;eO.setTwoToneColor=iCt;var rCt=Dde(xde),jde=Dde(OS),oCt=aa;function iCt(e){var t=(0,oCt.normalizeTwoToneColors)(e),n=(0,rCt.default)(t,2),r=n[0],o=n[1];return jde.default.setTwoToneColors({primaryColor:r,secondaryColor:o})}function aCt(){var e=jde.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Xp=ir.default,sCt=ti.default;Object.defineProperty(i0,"__esModule",{value:!0});i0.default=void 0;var lCt=Xp(GP),cCt=Xp(xde),pq=Xp(IQ),uCt=Xp($de),uw=sCt(d),dCt=Xp(X_),fCt=PS,hCt=Xp(a0),pCt=Xp(OS),Kj=eO,mCt=aa,gCt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,Kj.setTwoToneColor)(fCt.blue.primary);var tO=uw.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,uCt.default)(e,gCt),u=uw.useContext(hCt.default),f=u.prefixCls,h=f===void 0?"anticon":f,p=u.rootClassName,m=(0,dCt.default)(p,h,(0,pq.default)((0,pq.default)({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=(0,mCt.normalizeTwoToneColors)(l),y=(0,cCt.default)(b,2),S=y[0],w=y[1];return uw.createElement("span",(0,lCt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),uw.createElement(pCt.default,{icon:r,primaryColor:S,secondaryColor:w,style:v}))});tO.displayName="AntdIcon";tO.getTwoToneColor=Kj.getTwoToneColor;tO.setTwoToneColor=Kj.setTwoToneColor;i0.default=tO;var vCt=["isLoading","pastDelay","timedOut","error","retry"],yCt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=At(t,vCt);return N.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:N.jsx(iu,z({size:"large"},n))})},bCt=function(t){return Z({},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 SCt(e){return Zr("ProLayoutFooter",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[bCt(n)]})}var CCt=function(t){var n=t.className,r=t.prefixCls,o=t.links,i=t.copyright,a=t.style,s=d.useContext(Mn.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=SCt(l),u=c.wrapSSR,f=c.hashId;return(o==null||o===!1||Array.isArray(o)&&o.length===0)&&(i==null||i===!1)?null:u(N.jsxs("div",{className:xe(l,f,n),style:a,children:[o&&N.jsx("div",{className:"".concat(l,"-list ").concat(f).trim(),children:o.map(function(h){return N.jsx("a",{className:"".concat(l,"-list-link ").concat(f).trim(),title:h.key,target:h.blankTarget?"_blank":"_self",href:h.href,rel:"noreferrer",children:h.title},h.key)})}),i&&N.jsx("div",{className:"".concat(l,"-copyright ").concat(f).trim(),children:i})]}))},wCt=ei.Footer,xCt=function(t){var n=t.links,r=t.copyright,o=t.style,i=t.className,a=t.prefixCls;return N.jsx(wCt,{className:i,style:z({padding:0},o),children:N.jsx(CCt,{links:n,prefixCls:a,copyright:r===!1?null:N.jsxs(d.Fragment,{children:[N.jsx(SHe,{})," ",r]})})})},mq=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var o=n.concat(e(r.children||r.routes)||[]);return o}return n},[])};function nO(e){return e.map(function(t){var n=t.children||[],r=z({},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(o){return o&&o.name&&!o.hideInMenu}))return z(z({},t),{},{children:nO(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var ECt=function(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},_Ct=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,i=t.itemClick;return N.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).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?N.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:a.title}),N.jsx(e,{hashId:o,itemClick:i,appList:a==null?void 0:a.children,baseClassName:r})]},s):N.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(u){u.stopPropagation(),i==null||i(a)},children:N.jsxs("a",{href:i?void 0:a.url,target:a.target,rel:"noreferrer",children:[qj(a.icon),N.jsxs("div",{children:[N.jsx("div",{children:a.title}),a.desc?N.jsx("span",{children:a.desc}):null]})]})},s)})})})},$Ct=function(t,n){if(t&&typeof t=="string"&&uj(t))return N.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return N.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return N.jsx("div",{id:"avatarLogo",children:r})}return t},PCt=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,i=t.itemClick;return N.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).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?N.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:a.title}),N.jsx(e,{hashId:o,itemClick:i,appList:a==null?void 0:a.children,baseClassName:r})]},s):N.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(u){u.stopPropagation(),i==null||i(a)},children:N.jsxs("a",{href:i?"javascript:;":a.url,target:a.target,rel:"noreferrer",children:[$Ct(a.icon,a.title),N.jsx("div",{children:N.jsx("div",{children:a.title})})]})},s)})})})},OCt=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":AR==null?void 0:AR(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"}}}}}}},MCt=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"}}}}}}},TCt=function(t){var n,r,o,i,a;return Z({},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:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover},"&-active":{color:(i=t.layout)===null||i===void 0?void 0:i.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":Z({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":MCt(t),"&-default":OCt(t)})};function RCt(e){return Zr("AppsLogoComponents",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[TCt(n)]})}var qj=function(t){return typeof t=="string"?N.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},Gj=function(t){var n,r=t.appList,o=t.appListRender,i=t.prefixCls,a=i===void 0?"ant-pro":i,s=t.onItemClick,l=de.useRef(null),c=de.useRef(null),u="".concat(a,"-layout-apps"),f=RCt(u),h=f.wrapSSR,p=f.hashId,m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=function(x){s==null||s(x,c)},S=d.useMemo(function(){var C=r==null?void 0:r.some(function(x){return!(x!=null&&x.desc)});return C?N.jsx(PCt,{hashId:p,appList:r,itemClick:s?y:void 0,baseClassName:"".concat(u,"-simple")}):N.jsx(_Ct,{hashId:p,appList:r,itemClick:s?y:void 0,baseClassName:"".concat(u,"-default")})},[r,u,p]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var w=o?o(t==null?void 0:t.appList,S):S,E=TP(void 0,function(C){return b(C)});return h(N.jsxs(N.Fragment,{children:[N.jsx("div",{ref:l,onClick:function(x){x.stopPropagation(),x.preventDefault()}}),N.jsx(fl,z(z({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},E),{},{overlayClassName:"".concat(u,"-popover ").concat(p).trim(),content:w,getPopupContainer:function(){return l.current||document.body},children:N.jsx("span",{ref:c,onClick:function(x){x.stopPropagation()},className:xe("".concat(u,"-icon"),p,Z({},"".concat(u,"-icon-active"),v)),children:N.jsx(ECt,{})})}))]}))};function ICt(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.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 kCt=function(t){var n,r,o;return Z({},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:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.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 NCt(e){return Zr("SiderMenuCollapsedIcon",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[kCt(n)]})}var ACt=["isMobile","collapsed"],DCt=function(t){var n=t.isMobile,r=t.collapsed,o=At(t,ACt),i=NCt(t.className),a=i.wrapSSR,s=i.hashId;return n&&r?null:a(N.jsx("div",z(z({},o),{},{className:xe(t.className,s,Z(Z({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:N.jsx(ICt,{})})))},Fde={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},jCt=function(t,n){var r,o,i=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(o=t.layout)===null||o===void 0?void 0:o.sider;return z(z(Z({},"".concat(t.componentCls),Z(Z(Z(Z(Z(Z(Z(Z(Z({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),Z({},"> ".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",Z(Z(Z({},"".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:i==null?void 0:i.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),Z({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",Z(Z(Z(Z(Z({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",Z(Z({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"),Z({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),Z(Z({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",Z({},"".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")?{}:Z({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),Z({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},Z({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function LCt(e,t){return Zr("ProLayoutBaseMenu"+t,function(n){var r=z(z({},n),{},{componentCls:".".concat(e)});return[FCt(r,t||"inline")]})}var yq=function(t){var n=d.useState(t.collapsed),r=$e(n,2),o=r[0],i=r[1],a=d.useState(!1),s=$e(a,2),l=s[0],c=s[1];return d.useEffect(function(){c(!1),setTimeout(function(){i(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:N.jsx(xa,{title:t.title,open:o&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},Bde=Yse({scriptUrl:Lde.iconfontUrl}),bq=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(fj(t)||TZe(t))return N.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return N.jsx(Bde,{type:t})}return t},Sq=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},BCt=Sr(function e(t){var n=this;br(this,e),Z(this,"props",void 0),Z(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return r.map(function(a){return n.getSubMenuOrItem(a,o,i)}).filter(function(a){return a}).flat(1)}),Z(this,"getSubMenuOrItem",function(r,o,i){var a=n.props,s=a.subMenuItemRender,l=a.baseClassName,c=a.prefixCls,u=a.collapsed,f=a.menu,h=a.iconPrefixes,p=a.layout,m=(f==null?void 0:f.type)==="group"&&p!=="top",g=n.props.token,v=n.getIntlName(r),b=(r==null?void 0:r.children)||(r==null?void 0:r.routes),y=m&&o===0?"group":void 0;if(Array.isArray(b)&&b.length>0){var S,w,E,C,x,_=o===0||m&&o===1,P=bq(r.icon,h,"".concat(l,"-icon ").concat((S=n.props)===null||S===void 0?void 0:S.hashId)),O=u&&_?Sq(v):null,I=N.jsxs("div",{className:xe("".concat(l,"-item-title"),(w=n.props)===null||w===void 0?void 0:w.hashId,Z(Z(Z(Z({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(i),u),"".concat(l,"-group-item-title"),y==="group"),"".concat(l,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&u)),children:[y==="group"&&u?null:_&&P?N.jsx("span",{className:"".concat(l,"-item-icon ").concat((E=n.props)===null||E===void 0?void 0:E.hashId).trim(),children:P}):O,N.jsx("span",{className:xe("".concat(l,"-item-text"),(C=n.props)===null||C===void 0?void 0:C.hashId,Z({},"".concat(l,"-item-text-has-icon"),y!=="group"&&_&&(P||O))),children:v})]}),M=s?s(z(z({},r),{},{isUrl:!1}),I,n.props):I;if(m&&o===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(b,o+1,o);var T=n.getNavMenuItems(b,o+1,m&&o===0&&n.props.collapsed?o:o+1);return[{type:y,key:r.key||r.path,label:M,onClick:m?void 0:r.onTitleClick,children:T,className:xe(Z(Z(Z({},"".concat(l,"-group"),y==="group"),"".concat(l,"-submenu"),y!=="group"),"".concat(l,"-submenu-has-icon"),y!=="group"&&_&&P))},m&&o===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:g==null||(x=g.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.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,o,i)}}),Z(this,"getIntlName",function(r){var o=r.name,i=r.locale,a=n.props,s=a.menu,l=a.formatMessage,c=o;return i&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:i,defaultMessage:o})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),Z(this,"getMenuItemPath",function(r,o,i){var a,s,l,c,u=n.conversionPath(r.path||"/"),f=n.props,h=f.location,p=h===void 0?{pathname:"/"}:h,m=f.isMobile,g=f.onCollapse,v=f.menuItemRender,b=f.iconPrefixes,y=n.getIntlName(r),S=n.props,w=S.baseClassName,E=S.menu,C=S.collapsed,x=(E==null?void 0:E.type)==="group",_=o===0||x&&o===1,P=_?bq(r.icon,b,"".concat(w,"-icon ").concat((a=n.props)===null||a===void 0?void 0:a.hashId)):null,O=C&&_?Sq(y):null,I=N.jsxs("div",{className:xe("".concat(w,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,Z(Z(Z({},"".concat(w,"-item-title-collapsed"),C),"".concat(w,"-item-title-collapsed-level-").concat(i),C),"".concat(w,"-item-collapsed-show-title"),(E==null?void 0:E.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(w,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:O===null&&!P?"none":""},children:P||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:xe("".concat(w,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,Z({},"".concat(w,"-item-text-has-icon"),_&&(P||O))),children:y})]},u),M=fj(u);if(M){var T,D,A;I=N.jsxs("span",{onClick:function(){var F,V;(F=window)===null||F===void 0||(V=F.open)===null||V===void 0||V.call(F,u,"_blank")},className:xe("".concat(w,"-item-title"),(T=n.props)===null||T===void 0?void 0:T.hashId,Z(Z(Z(Z({},"".concat(w,"-item-title-collapsed"),C),"".concat(w,"-item-title-collapsed-level-").concat(i),C),"".concat(w,"-item-link"),!0),"".concat(w,"-item-collapsed-show-title"),(E==null?void 0:E.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(w,"-item-icon ").concat((D=n.props)===null||D===void 0?void 0:D.hashId).trim(),style:{display:O===null&&!P?"none":""},children:P||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:xe("".concat(w,"-item-text"),(A=n.props)===null||A===void 0?void 0:A.hashId,Z({},"".concat(w,"-item-text-has-icon"),_&&(P||O))),children:y})]},u)}if(v){var j=z(z({},r),{},{isUrl:M,itemPath:u,isMobile:m,replace:u===p.pathname,onClick:function(){return g&&g(!0)},children:void 0});return o===0?N.jsx(yq,{collapsed:C,title:y,disable:r.disabledTooltip,children:v(j,I,n.props)}):v(j,I,n.props)}return o===0?N.jsx(yq,{collapsed:C,title:y,disable:r.disabledTooltip,children:I}):I}),Z(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),zCt=function(t,n){var r=n.layout,o=n.collapsed,i={};return t&&!o&&["side","mix"].includes(r||"mix")&&(i={openKeys:t}),i},zde=function(t){var n=t.mode,r=t.className,o=t.handleOpenChange,i=t.style,a=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,f=t.selectedKeys,h=t.onSelect,p=t.menuRenderType,m=t.openKeys,g=d.useContext(Yl),v=g.dark,b=g.token,y="".concat(s,"-base-menu-").concat(n),S=d.useRef([]),w=xn(l==null?void 0:l.defaultOpenAll),E=$e(w,2),C=E[0],x=E[1],_=xn(function(){return l!=null&&l.defaultOpenAll?vq(a)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:o}),P=$e(_,2),O=P[0],I=P[1],M=xn([],{value:f,onChange:h?function(L){h&&L&&h(L)}:void 0}),T=$e(M,2),D=T[0],A=T[1];d.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(I(c),A(c))},[c.join("-")]),d.useEffect(function(){u&&(Bde=Yse({scriptUrl:u}))},[u]),d.useEffect(function(){if(c.join("-")!==(D||[]).join("-")&&A(c),!C&&m!==!1&&c.join("-")!==(O||[]).join("-")){var L=c;(l==null?void 0:l.autoClose)===!1&&(L=Array.from(new Set([].concat(Ze(c),Ze(O||[]))))),I(L)}else l!=null&&l.ignoreFlatMenu&&C?I(vq(a)):x(!1)},[c.join("-")]);var j=d.useMemo(function(){return zCt(O,t)},[O&&O.join(","),t.layout,t.collapsed]),k=LCt(y,n),F=k.wrapSSR,V=k.hashId,W=d.useMemo(function(){return new BCt(z(z({},t),{},{token:b,menuRenderType:p,baseClassName:y,hashId:V}))},[t,b,p,y,V]);if(l!=null&&l.loading)return N.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:N.jsx(pd,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(S.current=c);var K=t.postMenuData?t.postMenuData(a):a;return K&&(K==null?void 0:K.length)<1?null:F(d.createElement(vc,z(z({},j),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:S.current,theme:v?"dark":"light",selectedKeys:D,style:z({backgroundColor:"transparent",border:"none"},i),className:xe(r,V,y,Z(Z({},"".concat(y,"-horizontal"),n==="horizontal"),"".concat(y,"-collapsed"),t.collapsed)),items:W.getNavMenuItems(K,0,0),onOpenChange:function(Q){t.collapsed||I(Q)}},t.menuProps)))};function HCt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Zr("ProLayoutSiderMenuStylish",function(o){var i=z(z({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[Z({},"div".concat(o.proComponentsCls,"-layout"),Z({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var UCt=["title","render"],WCt=de.memo(function(e){return N.jsx(N.Fragment,{children:e.children})}),VCt=ei.Sider,Cq=ei._InternalSiderContext,KCt=Cq===void 0?{Provider:WCt}:Cq,Qj=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,o=t.title,i=t.layout,a=t[n];if(a===!1)return null;var s=Yj(r),l=N.jsx("h1",{children:o??"Ant Design Pro"});return a?a(s,t.collapsed?null:l,t):t.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?N.jsx("a",{children:s},"title"):N.jsxs("a",{children:[s,l]},"title")},wq=function(t){var n,r=t.collapsed,o=t.originCollapsed,i=t.fixSiderbar,a=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,f=t.onMenuHeaderClick,h=t.breakpoint,p=h===void 0?"lg":h,m=t.style,g=t.layout,v=t.menuExtraRender,b=v===void 0?!1:v,y=t.links,S=t.menuContentRender,w=t.collapsedButtonRender,E=t.prefixCls,C=t.avatarProps,x=t.rightContentRender,_=t.actionsRender,P=t.onOpenChange,O=t.stylish,I=t.logoStyle,M=d.useContext(Yl),T=M.hashId,D=d.useMemo(function(){return!(u||g==="mix")},[u,g]),A="".concat(E,"-sider"),j=64,k=HCt("".concat(A,".").concat(A,"-stylish"),{stylish:O,proLayoutCollapsedWidth:j}),F=xe("".concat(A),T,Z(Z(Z(Z(Z(Z(Z({},"".concat(A,"-fixed"),i),"".concat(A,"-fixed-mix"),g==="mix"&&!u&&i),"".concat(A,"-collapsed"),t.collapsed),"".concat(A,"-layout-").concat(g),g&&!u),"".concat(A,"-light"),l!=="dark"),"".concat(A,"-mix"),g==="mix"&&!u),"".concat(A,"-stylish"),!!O)),V=Qj(t),W=b&&b(t),K=d.useMemo(function(){return S!==!1&&d.createElement(zde,z(z({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:P,style:{width:"100%"},className:"".concat(A,"-menu ").concat(T).trim()}))},[A,T,S,P,t]),L=(y||[]).map(function(oe,se){return{className:"".concat(A,"-link"),label:oe,key:se}}),Q=d.useMemo(function(){return S?S(t,K):K},[S,K,t]),ee=d.useMemo(function(){if(!C)return null;var oe=C.title,se=C.render,fe=At(C,UCt),te=N.jsxs("div",{className:"".concat(A,"-actions-avatar"),children:[fe!=null&&fe.src||fe!=null&&fe.srcSet||fe.icon||fe.children?N.jsx(Xc,z({size:28},fe)):null,C.title&&!r&&N.jsx("span",{children:oe})]});return se?se(C,te,t):te},[C,A,r]),re=d.useMemo(function(){return _?N.jsx(oo,{align:"center",size:4,direction:r?"vertical":"horizontal",className:xe(["".concat(A,"-actions-list"),r&&"".concat(A,"-actions-list-collapsed"),T]),children:[_==null?void 0:_(t)].flat(1).map(function(oe,se){return N.jsx("div",{className:"".concat(A,"-actions-list-item ").concat(T).trim(),children:oe},se)})}):null},[_,A,r]),ie=d.useMemo(function(){return N.jsx(Xj,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),G=d.useMemo(function(){if(w===!1)return null;var oe=N.jsx(jCt,{isMobile:u,collapsed:o,className:"".concat(A,"-collapsed-button"),onClick:function(){s==null||s(!o)}});return w?w(r,oe):oe},[w,u,o,A,r,s]),X=d.useMemo(function(){return!ee&&!re?null:N.jsxs("div",{className:xe("".concat(A,"-actions"),T,r&&"".concat(A,"-actions-collapsed")),children:[ee,re]})},[re,ee,A,r,T]),ne=d.useMemo(function(){var oe;return t!=null&&(oe=t.menu)!==null&&oe!==void 0&&oe.hideMenuWhenCollapsed&&r?"".concat(A,"-hide-menu-collapsed"):null},[A,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),le=a&&(a==null?void 0:a(t)),ce=N.jsxs(N.Fragment,{children:[V&&N.jsxs("div",{className:xe([xe("".concat(A,"-logo"),T,Z({},"".concat(A,"-logo-collapsed"),r))]),onClick:D?f:void 0,id:"logo",style:I,children:[V,ie]}),W&&N.jsx("div",{className:xe(["".concat(A,"-extra"),!V&&"".concat(A,"-extra-no-logo"),T]),children:W}),N.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Q}),N.jsxs(KCt.Provider,{value:{},children:[y?N.jsx("div",{className:"".concat(A,"-links ").concat(T).trim(),children:N.jsx(vc,{inlineIndent:16,className:"".concat(A,"-link-menu ").concat(T).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:L})}):null,D&&N.jsxs(N.Fragment,{children:[X,!re&&x?N.jsx("div",{className:xe("".concat(A,"-actions"),T,Z({},"".concat(A,"-actions-collapsed"),r)),children:x==null?void 0:x(t)}):null]}),le&&N.jsx("div",{className:xe(["".concat(A,"-footer"),T,Z({},"".concat(A,"-footer-collapsed"),r)]),children:le})]})]});return k.wrapSSR(N.jsxs(N.Fragment,{children:[i&&!u&&!ne&&N.jsx("div",{style:z({width:r?j:c,overflow:"hidden",flex:"0 0 ".concat(r?j:c,"px"),maxWidth:r?j:c,minWidth:r?j:c,transition:"all 0.2s ease 0s"},m)}),N.jsxs(VCt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:p===!1?void 0:p,onCollapse:function(se){u||s==null||s(se)},collapsedWidth:j,style:m,theme:l,width:c,className:xe(F,T,ne),children:[ne?N.jsx("div",{className:"".concat(A,"-hide-when-collapsed ").concat(T).trim(),style:{height:"100%",width:"100%",opacity:ne?0:1},children:ce}):ce,G]})]}))},qCt=function(t){var n,r,o,i,a;return Z({},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:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,"> div":{height:"44px",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.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 GCt(e){return Zr("ProLayoutRightContent",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[qCt(n)]})}var YCt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],XCt=["title","render"],Hde=function(t){var n=t.rightContentRender,r=t.avatarProps,o=t.actionsRender;t.headerContentRender;var i=At(t,YCt),a=d.useContext(Mn.ConfigContext),s=a.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=GCt(l),u=c.wrapSSR,f=c.hashId,h=d.useState("auto"),p=$e(h,2),m=p[0],g=p[1],v=d.useMemo(function(){if(!r)return null;var w=r.title,E=r.render,C=At(r,XCt),x=[C!=null&&C.src||C!=null&&C.srcSet||C.icon||C.children?d.createElement(Xc,z(z({},C),{},{size:28,key:"avatar"})):null,w?N.jsx("span",{style:{marginInlineStart:8},children:w},"name"):void 0];return E?E(r,N.jsx("div",{children:x}),i):N.jsx("div",{children:x})},[r]),b=o||v?function(w){var E=o&&(o==null?void 0:o(w));return!E&&!v?null:Array.isArray(E)?u(N.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[E.filter(Boolean).map(function(C,x){var _=!1;if(de.isValidElement(C)){var P;_=!!(C!=null&&(P=C.props)!==null&&P!==void 0&&P["aria-hidden"])}return N.jsx("div",{className:xe("".concat(l,"-header-actions-item ").concat(f),Z({},"".concat(l,"-header-actions-hover"),!_)),children:C},x)}),v&&N.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]})):u(N.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[E,v&&N.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]}))}:void 0,y=SZe(function(){var w=Bo(nr().mark(function E(C){return nr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:g(C);case 1:case"end":return _.stop()}},E)}));return function(E){return w.apply(this,arguments)}}(),160),S=b||n;return N.jsx("div",{className:"".concat(l,"-right-content ").concat(f).trim(),style:{minWidth:m,height:"100%"},children:N.jsx("div",{style:{height:"100%"},children:N.jsx(Oi,{onResize:function(E){var C=E.width;y.run(C)},children:S?N.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:S(z(z({},i),{},{rightContentSize:m}))}):null})})})},QCt=function(t){var n,r;return Z({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":Z({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 JCt(e){return Zr("ProLayoutTopNavHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[QCt(n)]})}var Ude=function(t){var n,r,o,i,a,s,l,c=d.useRef(null),u=t.onMenuHeaderClick,f=t.contentWidth,h=t.rightContentRender,p=t.className,m=t.style,g=t.headerContentRender,v=t.layout,b=t.actionsRender,y=d.useContext(Mn.ConfigContext),S=y.getPrefixCls,w=d.useContext(Yl),E=w.dark,C="".concat(t.prefixCls||S("pro"),"-top-nav-header"),x=JCt(C),_=x.wrapSSR,P=x.hashId,O=void 0;t.menuHeaderRender!==void 0?O="menuHeaderRender":(v==="mix"||v==="top")&&(O="headerTitleRender");var I=Qj(z(z({},t),{},{collapsed:!1}),O),M=d.useContext(Yl),T=M.token,D=d.useMemo(function(){var A,j,k,F,V,W,K,L,Q,ee,re,ie,G,X=N.jsx(Mn,{theme:{hashed:dg(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:z({},Nce({colorItemBg:((A=T.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgHeader)||"transparent",colorSubItemBg:((j=T.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.colorBgHeader)||"transparent",radiusItem:T.borderRadius,colorItemBgSelected:((k=T.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorBgMenuItemSelected)||(T==null?void 0:T.colorBgTextHover),itemHoverBg:((F=T.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgMenuItemHover)||(T==null?void 0:T.colorBgTextHover),colorItemBgSelectedHorizontal:((V=T.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorBgMenuItemSelected)||(T==null?void 0:T.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((W=T.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorTextMenu)||(T==null?void 0:T.colorTextSecondary),colorItemTextHoverHorizontal:((K=T.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuActive)||(T==null?void 0:T.colorText),colorItemTextSelectedHorizontal:((L=T.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenuSelected)||(T==null?void 0:T.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Q=T.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((ee=T.layout)===null||ee===void 0||(ee=ee.header)===null||ee===void 0?void 0:ee.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((re=T.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:T==null?void 0:T.colorBgElevated,subMenuItemBg:T==null?void 0:T.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:T==null?void 0:T.colorBgElevated}))},token:{colorBgElevated:((ie=T.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgHeader)||"transparent"}},children:N.jsx(zde,z(z(z({theme:E?"dark":"light"},t),{},{className:"".concat(C,"-base-menu ").concat(P).trim()},t.menuProps),{},{style:z({width:"100%"},(G=t.menuProps)===null||G===void 0?void 0:G.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,X):X},[(n=T.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=T.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(o=T.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgMenuItemHover,(i=T.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(a=T.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenuActive,(s=T.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=T.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,T.borderRadius,T==null?void 0:T.colorBgTextHover,T==null?void 0:T.colorTextSecondary,T==null?void 0:T.colorText,T==null?void 0:T.colorTextBase,T.colorBgElevated,E,t,C,P,g]);return _(N.jsx("div",{className:xe(C,P,p,Z({},"".concat(C,"-light"),!0)),style:m,children:N.jsxs("div",{ref:c,className:xe("".concat(C,"-main"),P,Z({},"".concat(C,"-wide"),f==="Fixed"&&v==="top")),children:[I&&N.jsxs("div",{className:xe("".concat(C,"-main-left ").concat(P)),onClick:u,children:[N.jsx(Xj,z({},t)),N.jsx("div",{className:"".concat(C,"-logo ").concat(P).trim(),id:"logo",children:I},"logo")]}),N.jsx("div",{style:{flex:1},className:"".concat(C,"-menu ").concat(P).trim(),children:D}),(h||b||t.avatarProps)&&N.jsx(Hde,z(z({rightContentRender:h},t),{},{prefixCls:C}))]})}))},ZCt=function(t){var n,r,o;return Z({},t.componentCls,Z(Z(Z(Z({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:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function ewt(e){return Zr("ProLayoutGlobalHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[ZCt(n)]})}var twt=function(t,n){return t===!1?null:t?t(n,null):n},nwt=function(t){var n=t.isMobile,r=t.logo,o=t.collapsed,i=t.onCollapse,a=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,f=t.layout,h=t.children,p=t.splitMenus,m=t.menuData,g=t.prefixCls,v=d.useContext(Mn.ConfigContext),b=v.getPrefixCls,y=v.direction,S="".concat(g||b("pro"),"-global-header"),w=ewt(S),E=w.wrapSSR,C=w.hashId,x=xe(c,S,C);if(f==="mix"&&!n&&p){var _=(m||[]).map(function(M){return z(z({},M),{},{children:void 0,routes:void 0})}),P=nO(_);return N.jsx(Ude,z(z({mode:"horizontal"},t),{},{splitMenus:!1,menuData:P}))}var O=xe("".concat(S,"-logo"),C,Z(Z(Z({},"".concat(S,"-logo-rtl"),y==="rtl"),"".concat(S,"-logo-mix"),f==="mix"),"".concat(S,"-logo-mobile"),n)),I=N.jsx("span",{className:O,children:N.jsx("a",{children:Yj(r)})},"logo");return E(N.jsxs("div",{className:x,style:z({},u),children:[n&&N.jsx("span",{className:"".concat(S,"-collapsed-button ").concat(C).trim(),onClick:function(){i==null||i(!o)},children:N.jsx(tUe,{})}),n&&twt(s,I),f==="mix"&&!n&&N.jsxs(N.Fragment,{children:[N.jsx(Xj,z({},t)),N.jsx("div",{className:O,onClick:l,children:Qj(z(z({},t),{},{collapsed:!1}),"headerTitleRender")})]}),N.jsx("div",{style:{flex:1},children:h}),(a||t.actionsRender||t.avatarProps)&&N.jsx(Hde,z({rightContentRender:a},t))]}))},rwt=function(t){var n,r,o,i;return Z({},"".concat(t.proComponentsCls,"-layout"),Z({},"".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:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.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:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.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 owt(e){return Zr("ProLayoutHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[rwt(n)]})}function iwt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Zr("ProLayoutHeaderStylish",function(o){var i=z(z({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[Z({},"div".concat(o.proComponentsCls,"-layout"),Z({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var xq=ei.Header,awt=function(t){var n,r,o,i=t.isMobile,a=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,f=t.onCollapse,h=t.layout,p=t.headerRender,m=t.headerContentRender,g=d.useContext(Yl),v=g.token,b=d.useContext(Mn.ConfigContext),y=d.useState(!1),S=$e(y,2),w=S[0],E=S[1],C=a||h==="mix",x=d.useCallback(function(){var A=h==="top",j=nO(t.menuData||[]),k=N.jsx(nwt,z(z({onCollapse:f},t),{},{menuData:j,children:m&&m(t,null)}));return A&&!i&&(k=N.jsx(Ude,z(z({mode:"horizontal",onCollapse:f},t),{},{menuData:j}))),p&&typeof p=="function"?p(t,k):k},[m,p,i,h,f,t]);d.useEffect(function(){var A,j=(b==null||(A=b.getTargetContainer)===null||A===void 0?void 0:A.call(b))||document.body,k=function(){var V,W=j.scrollTop;return W>(((V=v.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.heightLayoutHeader)||56)&&!w?(E(!0),!0):(w&&E(!1),!1)};if(C&&!(typeof window>"u"))return j.addEventListener("scroll",k,{passive:!0}),function(){j.removeEventListener("scroll",k)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,C,w]);var _=h==="top",P="".concat(u,"-layout-header"),O=owt(P),I=O.wrapSSR,M=O.hashId,T=iwt("".concat(P,".").concat(P,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),D=xe(s,M,P,Z(Z(Z(Z(Z(Z(Z({},"".concat(P,"-fixed-header"),C),"".concat(P,"-fixed-header-scroll"),w),"".concat(P,"-mix"),h==="mix"),"".concat(P,"-fixed-header-action"),!c),"".concat(P,"-top-menu"),_),"".concat(P,"-header"),!0),"".concat(P,"-stylish"),!!t.stylish));return h==="side"&&!i?null:T.wrapSSR(I(N.jsx(N.Fragment,{children:N.jsxs(Mn,{theme:{hashed:dg(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[C&&N.jsx(xq,{style:z({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((o=v.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),N.jsx(xq,{className:D,style:l,children:x()})]})})))};const swt={"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"},lwt=z({},swt),cwt={"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"},uwt=z({},cwt),dwt={"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":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},fwt=z({},dwt),hwt={"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":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},pwt=z({},hwt),mwt={"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":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},gwt=z({},mwt);var Eq={"zh-CN":pwt,"zh-TW":gwt,"en-US":lwt,"it-IT":uwt,"ko-KR":fwt},vwt=function(){if(!dj())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},ywt=function(){var t=vwt();return Eq[t]||Eq["zh-CN"]},zf={};Object.defineProperty(zf,"__esModule",{value:!0});zf.TokenData=void 0;zf.parse=tF;zf.compile=xwt;var C8=zf.match=_wt;zf.pathToRegexp=Kde;zf.stringify=Owt;const Jj="/",Zj=e=>e,Wde=/^[$_\p{ID_Start}]$/u,eF=/^[$\u200c\u200d\p{ID_Continue}]$/u,AE="https://git.new/pathToRegexpError",bwt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function Swt(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function Oc(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*Cwt(e){const t=[...e];let n=0;function r(){let o="";if(Wde.test(t[++n]))for(o+=t[n];eF.test(t[++n]);)o+=t[n];else if(t[n]==='"'){let i=n;for(;nEwt(o,t,n));return o=>{const i=[""];for(const a of r){const[s,...l]=a(o);i[0]+=s,i.push(...l)}return i}}function Ewt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const o=Vde(e.tokens,t,n);return i=>{const[a,...s]=o(i);return s.length?[""]:[a]}}const r=n||Zj;return e.type==="wildcard"&&n!==!1?o=>{const i=o[e.name];if(i==null)return["",e.name];if(!Array.isArray(i)||i.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[i.map((a,s)=>{if(typeof a!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(a)}).join(t)]}:o=>{const i=o[e.name];if(i==null)return["",e.name];if(typeof i!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(i)]}}function _wt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=Jj}=t,{regexp:o,keys:i}=Kde(e,t),a=i.map(s=>n===!1?Zj:s.type==="param"?n:l=>l.split(r).map(n));return function(l){const c=o.exec(l);if(!c)return!1;const u=c[0],f=Object.create(null);for(let h=1;hp instanceof rO?p:tF(p,t));for(const{tokens:p}of u)for(const m of mx(p,0,[])){const g=$wt(m,n,a);s.push(g)}let f=`^(?:${s.join("|")})`;return i&&(f+=`(?:${Oc(n)}$)?`),f+=r?"$":`(?=${Oc(n)}|$)`,{regexp:new RegExp(f,l),keys:a}}function*mx(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const o=n.slice();for(const i of mx(r.tokens,0,o))yield*mx(e,t+1,i)}else n.push(r);yield*mx(e,t+1,n)}function $wt(e,t,n){let r="",o="",i=!0;for(let a=0;aeF.test(r)):!1}function Twt(e){return(e==null?void 0:e.type)!=="text"?!0:!eF.test(e.value[0])}var Rwt=function(t,n,r){if(r){var o=Ze(r.keys()).find(function(a){try{return a.startsWith("http")?!1:C8(a)(t)}catch(s){return console.log("key",a,s),!1}});if(o)return r.get(o)}if(n){var i=Object.keys(n).find(function(a){try{return a!=null&&a.startsWith("http")?!1:C8(a)(t)}catch(s){return console.log("key",a,s),!1}});if(i)return n[i]}return{path:""}},_q=function(t,n){var r=t.pathname,o=r===void 0?"/":r,i=t.breadcrumb,a=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,f=n?"":l||"",h=Rwt(o,i,a);if(!h)return{title:f,id:"",pageName:f};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:f,id:h.locale||"",pageName:f}},ma={};function w8(e){"@babel/helpers - typeof";return w8=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},w8(e)}Object.defineProperty(ma,"__esModule",{value:!0});var Xy=ma.pathToRegexp=ma.tokensToRegexp=ma.regexpToFunction=ma.match=ma.tokensToFunction=ma.compile=ma.parse=void 0;function Iwt(e){for(var t=[],n=0;n=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var s=1,l="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '+i);for(;i-1:w===void 0;o||(p+="(?:"+h+"(?="+f+"))?"),E||(p+="(?="+h+"|"+f+")")}return new RegExp(p,rF(n))}ma.tokensToRegexp=Yde;function oF(e,t,n){return e instanceof RegExp?Awt(e,t):Array.isArray(e)?Dwt(e,t,n):jwt(e,t,n)}Xy=ma.pathToRegexp=oF;function Wc(e,t){return t>>>e|t<<32-e}function Fwt(e,t,n){return e&t^~e&n}function Lwt(e,t,n){return e&t^e&n^t&n}function Bwt(e){return Wc(2,e)^Wc(13,e)^Wc(22,e)}function zwt(e){return Wc(6,e)^Wc(11,e)^Wc(25,e)}function Hwt(e){return Wc(7,e)^Wc(18,e)^e>>>3}function Uwt(e){return Wc(17,e)^Wc(19,e)^e>>>10}function Wwt(e,t){return e[t&15]+=Uwt(e[t+14&15])+e[t+9&15]+Hwt(e[t+1&15])}var Vwt=[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],no,Qi,ci,Kwt="0123456789abcdef";function $q(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function qwt(){no=new Array(8),Qi=new Array(2),ci=new Array(64),Qi[0]=Qi[1]=0,no[0]=1779033703,no[1]=3144134277,no[2]=1013904242,no[3]=2773480762,no[4]=1359893119,no[5]=2600822924,no[6]=528734635,no[7]=1541459225}function x8(){var e,t,n,r,o,i,a,s,l,c,u=new Array(16);e=no[0],t=no[1],n=no[2],r=no[3],o=no[4],i=no[5],a=no[6],s=no[7];for(var f=0;f<16;f++)u[f]=ci[(f<<2)+3]|ci[(f<<2)+2]<<8|ci[(f<<2)+1]<<16|ci[f<<2]<<24;for(var h=0;h<64;h++)l=s+zwt(o)+Fwt(o,i,a)+Vwt[h],h<16?l+=u[h]:l+=Wwt(u,h),c=Bwt(e)+Lwt(e,t,n),s=a,a=i,i=o,o=$q(r,l),r=n,n=t,t=e,e=$q(l,c);no[0]+=e,no[1]+=t,no[2]+=n,no[3]+=r,no[4]+=o,no[5]+=i,no[6]+=a,no[7]+=s}function Gwt(e,t){var n,r,o=0;r=Qi[0]>>3&63;var i=t&63;for((Qi[0]+=t<<3)>29,n=0;n+63>3&63;if(ci[e++]=128,e<=56)for(var t=e;t<56;t++)ci[t]=0;else{for(var n=e;n<64;n++)ci[n]=0;x8();for(var r=0;r<56;r++)ci[r]=0}ci[56]=Qi[1]>>>24&255,ci[57]=Qi[1]>>>16&255,ci[58]=Qi[1]>>>8&255,ci[59]=Qi[1]&255,ci[60]=Qi[0]>>>24&255,ci[61]=Qi[0]>>>16&255,ci[62]=Qi[0]>>>8&255,ci[63]=Qi[0]&255,x8()}function Xwt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=Kwt.charAt(no[t]>>>n&15);return e}function Qwt(e){return qwt(),Gwt(e,e.length),Ywt(),Xwt()}function E8(e){"@babel/helpers - typeof";return E8=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},E8(e)}var Jwt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Zwt(e,t){return nxt(e)||txt(e,t)||iF(e,t)||ext()}function ext(){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 txt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function nxt(e){if(Array.isArray(e))return e}function rxt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=iF(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}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 i=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function oxt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ixt(e,t){for(var n=0;n"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 dxt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function l1(e,t){return l1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},l1(e,t)}function c1(e){return c1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},c1(e)}function Pq(e){return pxt(e)||hxt(e)||iF(e)||fxt()}function fxt(){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 iF(e,t){if(e){if(typeof e=="string")return $8(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 $8(e,t)}}function hxt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pxt(e){if(Array.isArray(e))return $8(e)}function $8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gxt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Oq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||aF(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},Sxt=function(t,n){var r=t.menu,o=r===void 0?{}:r,i=t.indexRoute,a=t.path,s=a===void 0?"":a,l=t.children||[],c=o.name,u=c===void 0?t.name:c,f=o.icon,h=f===void 0?t.icon:f,p=o.hideChildren,m=p===void 0?t.hideChildren:p,g=o.flatMenu,v=g===void 0?t.flatMenu:g,b=i&&Object.keys(i).join(",")!=="redirect"?[ui({path:s,menu:o},i)].concat(l||[]):l,y=ui({},t);if(u&&(y.name=u),h&&(y.icon=h),b&&b.length){if(m)return delete y.children,y;var S=sF(ui(ui({},n),{},{data:b}),t);if(v)return S;delete y[ws]}return y},Zh=function(t){return Array.isArray(t)&&t.length>0};function sF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,o=e.parentName,i=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(a){return a?Zh(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=ui(ui({},a),{},{path:a.path||a.originPath});return!s.children&&s[ws]&&(s.children=s[ws],delete s[ws]),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[ws]||[],l=Qde(a.path,t?t.path:"/"),c=a.name,u=bxt(a,o||"menu"),f=u!==!1&&i!==!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=mxt(t,Jwt),g=new Set([].concat(Pq(p),Pq(a.parentKeys||[])));t.key&&g.add(t.key);var v=ui(ui(ui({},m),{},{menu:void 0},a),{},{path:l,locale:u,key:a.key||yxt(ui(ui({},a),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(y){return y&&y!=="/"})});if(f?v.name=f:delete v.name,v.menu===void 0&&delete v.menu,Zh(s)){var b=sF(ui(ui({},e),{},{data:s,parentName:u||""}),v);Zh(b)&&(v.children=b)}return Sxt(v,e)}).flat(1)}var Cxt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Zh(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=ui({},n),o=r.children||n[ws]||[];if(delete r[ws],Zh(o)&&!r.hideChildrenInMenu&&o.some(function(a){return a&&!!a.name})){var i=e(o);if(i.length)return ui(ui({},r),{},{children:i})}return ui({},n)}).filter(function(n){return n})},wxt=function(e){sxt(n,e);var t=lxt(n);function n(){return oxt(this,n),t.apply(this,arguments)}return axt(n,[{key:"get",value:function(o){var i;try{var a=rxt(this.entries()),s;try{for(a.s();!(s=a.n()).done;){var l=Zwt(s.value,2),c=l[0],u=l[1],f=MS(c);if(!aF(c)&&Xy(f,[]).test(o)){i=u;break}}}catch(h){a.e(h)}finally{a.f()}}catch{i=void 0}return i}}]),n}(_8(Map)),xxt=function(t){var n=new wxt,r=function o(i,a){i.forEach(function(s){var l=s.children||s[ws]||[];Zh(l)&&o(l,s);var c=Qde(s.path,a?a.path:"/");n.set(MS(c),s)})};return r(t),n},Ext=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[ws];if(Zh(r)){var o=e(r);if(o.length)return ui({},n)}var i=ui({},n);return delete i[ws],delete i.children,i}).filter(function(n){return n})},_xt=function(t,n,r,o){var i=sF({data:t,formatMessage:r,locale:n}),a=o?Ext(i):Cxt(i),s=xxt(i);return{breadcrumb:s,menuData:a}};function Mq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X0(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var o=X0({},r);if(!(!o||!o.key)){!o.children&&o[ws]&&(o.children=o[ws],delete o[ws]);var i=o.children||[];n[MS(o.path||o.key||"/")]=X0({},o),n[o.key||o.path||"/"]=X0({},o),i&&(n=X0(X0({},n),e(i)))}}),n},Oxt=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(o){if(o==="/"&&n==="/")return!0;if(o!=="/"&&o!=="/*"&&o&&!aF(o)){var i=MS(o);try{if(r&&Xy("".concat(i)).test(n)||Xy("".concat(i),[]).test(n)||Xy("".concat(i,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(o,i){return o===n?10:i===n?-10:o.substr(1).split("/").length-i.substr(1).split("/").length})},Mxt=function(t,n,r,o){var i=Pxt(n),a=Object.keys(i),s=Oxt(a,t||"/",o);return!s||s.length<1?[]:s.map(function(l){var c=i[l]||{pro_layout_parentKeys:"",key:""},u=new Map,f=(c.pro_layout_parentKeys||[]).map(function(h){return u.has(h)?null:(u.set(h,!0),i[h])}).filter(function(h){return h});return c.key&&f.push(c),f}).flat(1)},Txt=function(t){var n=d.useContext(Yl),r=n.hashId,o=t.style,i=t.prefixCls,a=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=xe("".concat(i,"-content"),r,Z(Z({},"".concat(i,"-has-header"),t.hasHeader),"".concat(i,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||tZe;return t.ErrorBoundary===!1?N.jsx(ei.Content,{className:c,style:o,children:a}):N.jsx(u,{children:N.jsx(ei.Content,{className:c,style:o,children:a})})},Rxt=function(){return N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[N.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),N.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[N.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),N.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),N.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[N.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[N.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),N.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:N.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:N.jsx("g",{transform:"translate(20.000000, 20.000000)",children:N.jsxs("g",{children:[N.jsxs("g",{fillRule:"nonzero",children:[N.jsxs("g",{children:[N.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)"}),N.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)"})]}),N.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)"})]}),N.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},Tq=new Gn("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Ixt=function(t){var n,r,o,i,a,s,l,c,u,f,h,p;return Z({},"".concat(t.proComponentsCls,"-layout"),Z(Z(Z({},"".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,Z(Z(Z(Z(Z(Z(Z(Z(Z({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:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),Z(Z({},"".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:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.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:Tq,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":Z({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:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:Tq,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 kxt(e,t){var n=t.proLayoutCollapsedWidth;return Zr("ProLayoutSiderMenu",function(r){var o=z(z({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[Ixt(o)]})}var Rq=function(t){var n,r=t.isMobile,o=t.siderWidth,i=t.collapsed,a=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,f=t.getContainer,h=d.useContext(Yl),p=h.token;d.useEffect(function(){r===!0&&(a==null||a(!0))},[r]);var m=Yn(t,["className","style"]),g=de.useContext(Mn.ConfigContext),v=g.direction,b=kxt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),y=b.wrapSSR,S=b.hashId,w=xe("".concat(u,"-sider"),l,S);if(c)return null;var E=TP(!i,function(){return a==null?void 0:a(!0)});return y(r?N.jsx(dP,z(z({placement:v==="rtl"?"right":"left",className:xe("".concat(u,"-drawer-sider"),l)},E),{},{style:z({padding:0,height:"100vh"},s),onClose:function(){a==null||a(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:o,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:N.jsx(wq,z(z({},m),{},{isMobile:!0,className:w,collapsed:r?!1:i,splitMenus:!1,originCollapsed:i}))})):N.jsx(wq,z(z({className:w,originCollapsed:i},m),{},{style:s})))},Nxt=function(){var t;return typeof process>"u"?nd:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||nd},Axt=function(t){var n,r,o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S,w,E,C,x,_,P,O,I,M,T,D,A,j,k;return(n=Nxt())!==null&&n!==void 0&&n.startsWith("5")?{}:Z(Z(Z({},t.componentCls,Z(Z({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(C={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(C,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.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"),Z(Z({color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),Z({},"".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-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:i==null?void 0:i.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),Z({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",Z(Z(Z(Z(Z({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",Z(Z({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"),Z({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),Z(Z({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",Z({},"".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")?{}:Z({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),Z({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},Z({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function FCt(e,t){return Zr("ProLayoutBaseMenu"+t,function(n){var r=z(z({},n),{},{componentCls:".".concat(e)});return[jCt(r,t||"inline")]})}var gq=function(t){var n=d.useState(t.collapsed),r=$e(n,2),o=r[0],i=r[1],a=d.useState(!1),s=$e(a,2),l=s[0],c=s[1];return d.useEffect(function(){c(!1),setTimeout(function(){i(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:N.jsx(xa,{title:t.title,open:o&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},Lde=Gse({scriptUrl:Fde.iconfontUrl}),vq=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(uj(t)||MZe(t))return N.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return N.jsx(Lde,{type:t})}return t},yq=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},LCt=Sr(function e(t){var n=this;br(this,e),Z(this,"props",void 0),Z(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return r.map(function(a){return n.getSubMenuOrItem(a,o,i)}).filter(function(a){return a}).flat(1)}),Z(this,"getSubMenuOrItem",function(r,o,i){var a=n.props,s=a.subMenuItemRender,l=a.baseClassName,c=a.prefixCls,u=a.collapsed,f=a.menu,h=a.iconPrefixes,p=a.layout,m=(f==null?void 0:f.type)==="group"&&p!=="top",g=n.props.token,v=n.getIntlName(r),b=(r==null?void 0:r.children)||(r==null?void 0:r.routes),y=m&&o===0?"group":void 0;if(Array.isArray(b)&&b.length>0){var S,w,E,C,x,_=o===0||m&&o===1,P=vq(r.icon,h,"".concat(l,"-icon ").concat((S=n.props)===null||S===void 0?void 0:S.hashId)),O=u&&_?yq(v):null,I=N.jsxs("div",{className:xe("".concat(l,"-item-title"),(w=n.props)===null||w===void 0?void 0:w.hashId,Z(Z(Z(Z({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(i),u),"".concat(l,"-group-item-title"),y==="group"),"".concat(l,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&u)),children:[y==="group"&&u?null:_&&P?N.jsx("span",{className:"".concat(l,"-item-icon ").concat((E=n.props)===null||E===void 0?void 0:E.hashId).trim(),children:P}):O,N.jsx("span",{className:xe("".concat(l,"-item-text"),(C=n.props)===null||C===void 0?void 0:C.hashId,Z({},"".concat(l,"-item-text-has-icon"),y!=="group"&&_&&(P||O))),children:v})]}),M=s?s(z(z({},r),{},{isUrl:!1}),I,n.props):I;if(m&&o===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(b,o+1,o);var T=n.getNavMenuItems(b,o+1,m&&o===0&&n.props.collapsed?o:o+1);return[{type:y,key:r.key||r.path,label:M,onClick:m?void 0:r.onTitleClick,children:T,className:xe(Z(Z(Z({},"".concat(l,"-group"),y==="group"),"".concat(l,"-submenu"),y!=="group"),"".concat(l,"-submenu-has-icon"),y!=="group"&&_&&P))},m&&o===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:g==null||(x=g.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.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,o,i)}}),Z(this,"getIntlName",function(r){var o=r.name,i=r.locale,a=n.props,s=a.menu,l=a.formatMessage,c=o;return i&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:i,defaultMessage:o})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),Z(this,"getMenuItemPath",function(r,o,i){var a,s,l,c,u=n.conversionPath(r.path||"/"),f=n.props,h=f.location,p=h===void 0?{pathname:"/"}:h,m=f.isMobile,g=f.onCollapse,v=f.menuItemRender,b=f.iconPrefixes,y=n.getIntlName(r),S=n.props,w=S.baseClassName,E=S.menu,C=S.collapsed,x=(E==null?void 0:E.type)==="group",_=o===0||x&&o===1,P=_?vq(r.icon,b,"".concat(w,"-icon ").concat((a=n.props)===null||a===void 0?void 0:a.hashId)):null,O=C&&_?yq(y):null,I=N.jsxs("div",{className:xe("".concat(w,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,Z(Z(Z({},"".concat(w,"-item-title-collapsed"),C),"".concat(w,"-item-title-collapsed-level-").concat(i),C),"".concat(w,"-item-collapsed-show-title"),(E==null?void 0:E.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(w,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:O===null&&!P?"none":""},children:P||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:xe("".concat(w,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,Z({},"".concat(w,"-item-text-has-icon"),_&&(P||O))),children:y})]},u),M=uj(u);if(M){var T,D,A;I=N.jsxs("span",{onClick:function(){var F,V;(F=window)===null||F===void 0||(V=F.open)===null||V===void 0||V.call(F,u,"_blank")},className:xe("".concat(w,"-item-title"),(T=n.props)===null||T===void 0?void 0:T.hashId,Z(Z(Z(Z({},"".concat(w,"-item-title-collapsed"),C),"".concat(w,"-item-title-collapsed-level-").concat(i),C),"".concat(w,"-item-link"),!0),"".concat(w,"-item-collapsed-show-title"),(E==null?void 0:E.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(w,"-item-icon ").concat((D=n.props)===null||D===void 0?void 0:D.hashId).trim(),style:{display:O===null&&!P?"none":""},children:P||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:xe("".concat(w,"-item-text"),(A=n.props)===null||A===void 0?void 0:A.hashId,Z({},"".concat(w,"-item-text-has-icon"),_&&(P||O))),children:y})]},u)}if(v){var j=z(z({},r),{},{isUrl:M,itemPath:u,isMobile:m,replace:u===p.pathname,onClick:function(){return g&&g(!0)},children:void 0});return o===0?N.jsx(gq,{collapsed:C,title:y,disable:r.disabledTooltip,children:v(j,I,n.props)}):v(j,I,n.props)}return o===0?N.jsx(gq,{collapsed:C,title:y,disable:r.disabledTooltip,children:I}):I}),Z(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),BCt=function(t,n){var r=n.layout,o=n.collapsed,i={};return t&&!o&&["side","mix"].includes(r||"mix")&&(i={openKeys:t}),i},Bde=function(t){var n=t.mode,r=t.className,o=t.handleOpenChange,i=t.style,a=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,f=t.selectedKeys,h=t.onSelect,p=t.menuRenderType,m=t.openKeys,g=d.useContext(Yl),v=g.dark,b=g.token,y="".concat(s,"-base-menu-").concat(n),S=d.useRef([]),w=xn(l==null?void 0:l.defaultOpenAll),E=$e(w,2),C=E[0],x=E[1],_=xn(function(){return l!=null&&l.defaultOpenAll?mq(a)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:o}),P=$e(_,2),O=P[0],I=P[1],M=xn([],{value:f,onChange:h?function(L){h&&L&&h(L)}:void 0}),T=$e(M,2),D=T[0],A=T[1];d.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(I(c),A(c))},[c.join("-")]),d.useEffect(function(){u&&(Lde=Gse({scriptUrl:u}))},[u]),d.useEffect(function(){if(c.join("-")!==(D||[]).join("-")&&A(c),!C&&m!==!1&&c.join("-")!==(O||[]).join("-")){var L=c;(l==null?void 0:l.autoClose)===!1&&(L=Array.from(new Set([].concat(Ze(c),Ze(O||[]))))),I(L)}else l!=null&&l.ignoreFlatMenu&&C?I(mq(a)):x(!1)},[c.join("-")]);var j=d.useMemo(function(){return BCt(O,t)},[O&&O.join(","),t.layout,t.collapsed]),k=FCt(y,n),F=k.wrapSSR,V=k.hashId,W=d.useMemo(function(){return new LCt(z(z({},t),{},{token:b,menuRenderType:p,baseClassName:y,hashId:V}))},[t,b,p,y,V]);if(l!=null&&l.loading)return N.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:N.jsx(pd,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(S.current=c);var K=t.postMenuData?t.postMenuData(a):a;return K&&(K==null?void 0:K.length)<1?null:F(d.createElement(vc,z(z({},j),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:S.current,theme:v?"dark":"light",selectedKeys:D,style:z({backgroundColor:"transparent",border:"none"},i),className:xe(r,V,y,Z(Z({},"".concat(y,"-horizontal"),n==="horizontal"),"".concat(y,"-collapsed"),t.collapsed)),items:W.getNavMenuItems(K,0,0),onOpenChange:function(Q){t.collapsed||I(Q)}},t.menuProps)))};function zCt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Zr("ProLayoutSiderMenuStylish",function(o){var i=z(z({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[Z({},"div".concat(o.proComponentsCls,"-layout"),Z({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var HCt=["title","render"],UCt=de.memo(function(e){return N.jsx(N.Fragment,{children:e.children})}),WCt=ei.Sider,bq=ei._InternalSiderContext,VCt=bq===void 0?{Provider:UCt}:bq,Yj=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,o=t.title,i=t.layout,a=t[n];if(a===!1)return null;var s=qj(r),l=N.jsx("h1",{children:o??"Ant Design Pro"});return a?a(s,t.collapsed?null:l,t):t.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?N.jsx("a",{children:s},"title"):N.jsxs("a",{children:[s,l]},"title")},Sq=function(t){var n,r=t.collapsed,o=t.originCollapsed,i=t.fixSiderbar,a=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,f=t.onMenuHeaderClick,h=t.breakpoint,p=h===void 0?"lg":h,m=t.style,g=t.layout,v=t.menuExtraRender,b=v===void 0?!1:v,y=t.links,S=t.menuContentRender,w=t.collapsedButtonRender,E=t.prefixCls,C=t.avatarProps,x=t.rightContentRender,_=t.actionsRender,P=t.onOpenChange,O=t.stylish,I=t.logoStyle,M=d.useContext(Yl),T=M.hashId,D=d.useMemo(function(){return!(u||g==="mix")},[u,g]),A="".concat(E,"-sider"),j=64,k=zCt("".concat(A,".").concat(A,"-stylish"),{stylish:O,proLayoutCollapsedWidth:j}),F=xe("".concat(A),T,Z(Z(Z(Z(Z(Z(Z({},"".concat(A,"-fixed"),i),"".concat(A,"-fixed-mix"),g==="mix"&&!u&&i),"".concat(A,"-collapsed"),t.collapsed),"".concat(A,"-layout-").concat(g),g&&!u),"".concat(A,"-light"),l!=="dark"),"".concat(A,"-mix"),g==="mix"&&!u),"".concat(A,"-stylish"),!!O)),V=Yj(t),W=b&&b(t),K=d.useMemo(function(){return S!==!1&&d.createElement(Bde,z(z({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:P,style:{width:"100%"},className:"".concat(A,"-menu ").concat(T).trim()}))},[A,T,S,P,t]),L=(y||[]).map(function(oe,se){return{className:"".concat(A,"-link"),label:oe,key:se}}),Q=d.useMemo(function(){return S?S(t,K):K},[S,K,t]),ee=d.useMemo(function(){if(!C)return null;var oe=C.title,se=C.render,fe=At(C,HCt),te=N.jsxs("div",{className:"".concat(A,"-actions-avatar"),children:[fe!=null&&fe.src||fe!=null&&fe.srcSet||fe.icon||fe.children?N.jsx(Xc,z({size:28},fe)):null,C.title&&!r&&N.jsx("span",{children:oe})]});return se?se(C,te,t):te},[C,A,r]),re=d.useMemo(function(){return _?N.jsx(oo,{align:"center",size:4,direction:r?"vertical":"horizontal",className:xe(["".concat(A,"-actions-list"),r&&"".concat(A,"-actions-list-collapsed"),T]),children:[_==null?void 0:_(t)].flat(1).map(function(oe,se){return N.jsx("div",{className:"".concat(A,"-actions-list-item ").concat(T).trim(),children:oe},se)})}):null},[_,A,r]),ie=d.useMemo(function(){return N.jsx(Gj,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),G=d.useMemo(function(){if(w===!1)return null;var oe=N.jsx(DCt,{isMobile:u,collapsed:o,className:"".concat(A,"-collapsed-button"),onClick:function(){s==null||s(!o)}});return w?w(r,oe):oe},[w,u,o,A,r,s]),X=d.useMemo(function(){return!ee&&!re?null:N.jsxs("div",{className:xe("".concat(A,"-actions"),T,r&&"".concat(A,"-actions-collapsed")),children:[ee,re]})},[re,ee,A,r,T]),ne=d.useMemo(function(){var oe;return t!=null&&(oe=t.menu)!==null&&oe!==void 0&&oe.hideMenuWhenCollapsed&&r?"".concat(A,"-hide-menu-collapsed"):null},[A,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),le=a&&(a==null?void 0:a(t)),ce=N.jsxs(N.Fragment,{children:[V&&N.jsxs("div",{className:xe([xe("".concat(A,"-logo"),T,Z({},"".concat(A,"-logo-collapsed"),r))]),onClick:D?f:void 0,id:"logo",style:I,children:[V,ie]}),W&&N.jsx("div",{className:xe(["".concat(A,"-extra"),!V&&"".concat(A,"-extra-no-logo"),T]),children:W}),N.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Q}),N.jsxs(VCt.Provider,{value:{},children:[y?N.jsx("div",{className:"".concat(A,"-links ").concat(T).trim(),children:N.jsx(vc,{inlineIndent:16,className:"".concat(A,"-link-menu ").concat(T).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:L})}):null,D&&N.jsxs(N.Fragment,{children:[X,!re&&x?N.jsx("div",{className:xe("".concat(A,"-actions"),T,Z({},"".concat(A,"-actions-collapsed"),r)),children:x==null?void 0:x(t)}):null]}),le&&N.jsx("div",{className:xe(["".concat(A,"-footer"),T,Z({},"".concat(A,"-footer-collapsed"),r)]),children:le})]})]});return k.wrapSSR(N.jsxs(N.Fragment,{children:[i&&!u&&!ne&&N.jsx("div",{style:z({width:r?j:c,overflow:"hidden",flex:"0 0 ".concat(r?j:c,"px"),maxWidth:r?j:c,minWidth:r?j:c,transition:"all 0.2s ease 0s"},m)}),N.jsxs(WCt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:p===!1?void 0:p,onCollapse:function(se){u||s==null||s(se)},collapsedWidth:j,style:m,theme:l,width:c,className:xe(F,T,ne),children:[ne?N.jsx("div",{className:"".concat(A,"-hide-when-collapsed ").concat(T).trim(),style:{height:"100%",width:"100%",opacity:ne?0:1},children:ce}):ce,G]})]}))},KCt=function(t){var n,r,o,i,a;return Z({},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:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,"> div":{height:"44px",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.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 qCt(e){return Zr("ProLayoutRightContent",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[KCt(n)]})}var GCt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],YCt=["title","render"],zde=function(t){var n=t.rightContentRender,r=t.avatarProps,o=t.actionsRender;t.headerContentRender;var i=At(t,GCt),a=d.useContext(Mn.ConfigContext),s=a.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=qCt(l),u=c.wrapSSR,f=c.hashId,h=d.useState("auto"),p=$e(h,2),m=p[0],g=p[1],v=d.useMemo(function(){if(!r)return null;var w=r.title,E=r.render,C=At(r,YCt),x=[C!=null&&C.src||C!=null&&C.srcSet||C.icon||C.children?d.createElement(Xc,z(z({},C),{},{size:28,key:"avatar"})):null,w?N.jsx("span",{style:{marginInlineStart:8},children:w},"name"):void 0];return E?E(r,N.jsx("div",{children:x}),i):N.jsx("div",{children:x})},[r]),b=o||v?function(w){var E=o&&(o==null?void 0:o(w));return!E&&!v?null:Array.isArray(E)?u(N.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[E.filter(Boolean).map(function(C,x){var _=!1;if(de.isValidElement(C)){var P;_=!!(C!=null&&(P=C.props)!==null&&P!==void 0&&P["aria-hidden"])}return N.jsx("div",{className:xe("".concat(l,"-header-actions-item ").concat(f),Z({},"".concat(l,"-header-actions-hover"),!_)),children:C},x)}),v&&N.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]})):u(N.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[E,v&&N.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]}))}:void 0,y=bZe(function(){var w=Bo(nr().mark(function E(C){return nr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:g(C);case 1:case"end":return _.stop()}},E)}));return function(E){return w.apply(this,arguments)}}(),160),S=b||n;return N.jsx("div",{className:"".concat(l,"-right-content ").concat(f).trim(),style:{minWidth:m,height:"100%"},children:N.jsx("div",{style:{height:"100%"},children:N.jsx(Oi,{onResize:function(E){var C=E.width;y.run(C)},children:S?N.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:S(z(z({},i),{},{rightContentSize:m}))}):null})})})},XCt=function(t){var n,r;return Z({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":Z({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 QCt(e){return Zr("ProLayoutTopNavHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[XCt(n)]})}var Hde=function(t){var n,r,o,i,a,s,l,c=d.useRef(null),u=t.onMenuHeaderClick,f=t.contentWidth,h=t.rightContentRender,p=t.className,m=t.style,g=t.headerContentRender,v=t.layout,b=t.actionsRender,y=d.useContext(Mn.ConfigContext),S=y.getPrefixCls,w=d.useContext(Yl),E=w.dark,C="".concat(t.prefixCls||S("pro"),"-top-nav-header"),x=QCt(C),_=x.wrapSSR,P=x.hashId,O=void 0;t.menuHeaderRender!==void 0?O="menuHeaderRender":(v==="mix"||v==="top")&&(O="headerTitleRender");var I=Yj(z(z({},t),{},{collapsed:!1}),O),M=d.useContext(Yl),T=M.token,D=d.useMemo(function(){var A,j,k,F,V,W,K,L,Q,ee,re,ie,G,X=N.jsx(Mn,{theme:{hashed:dg(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:z({},kce({colorItemBg:((A=T.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgHeader)||"transparent",colorSubItemBg:((j=T.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.colorBgHeader)||"transparent",radiusItem:T.borderRadius,colorItemBgSelected:((k=T.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorBgMenuItemSelected)||(T==null?void 0:T.colorBgTextHover),itemHoverBg:((F=T.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgMenuItemHover)||(T==null?void 0:T.colorBgTextHover),colorItemBgSelectedHorizontal:((V=T.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorBgMenuItemSelected)||(T==null?void 0:T.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((W=T.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorTextMenu)||(T==null?void 0:T.colorTextSecondary),colorItemTextHoverHorizontal:((K=T.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuActive)||(T==null?void 0:T.colorText),colorItemTextSelectedHorizontal:((L=T.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenuSelected)||(T==null?void 0:T.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Q=T.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((ee=T.layout)===null||ee===void 0||(ee=ee.header)===null||ee===void 0?void 0:ee.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((re=T.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:T==null?void 0:T.colorBgElevated,subMenuItemBg:T==null?void 0:T.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:T==null?void 0:T.colorBgElevated}))},token:{colorBgElevated:((ie=T.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgHeader)||"transparent"}},children:N.jsx(Bde,z(z(z({theme:E?"dark":"light"},t),{},{className:"".concat(C,"-base-menu ").concat(P).trim()},t.menuProps),{},{style:z({width:"100%"},(G=t.menuProps)===null||G===void 0?void 0:G.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,X):X},[(n=T.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=T.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(o=T.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgMenuItemHover,(i=T.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(a=T.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenuActive,(s=T.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=T.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,T.borderRadius,T==null?void 0:T.colorBgTextHover,T==null?void 0:T.colorTextSecondary,T==null?void 0:T.colorText,T==null?void 0:T.colorTextBase,T.colorBgElevated,E,t,C,P,g]);return _(N.jsx("div",{className:xe(C,P,p,Z({},"".concat(C,"-light"),!0)),style:m,children:N.jsxs("div",{ref:c,className:xe("".concat(C,"-main"),P,Z({},"".concat(C,"-wide"),f==="Fixed"&&v==="top")),children:[I&&N.jsxs("div",{className:xe("".concat(C,"-main-left ").concat(P)),onClick:u,children:[N.jsx(Gj,z({},t)),N.jsx("div",{className:"".concat(C,"-logo ").concat(P).trim(),id:"logo",children:I},"logo")]}),N.jsx("div",{style:{flex:1},className:"".concat(C,"-menu ").concat(P).trim(),children:D}),(h||b||t.avatarProps)&&N.jsx(zde,z(z({rightContentRender:h},t),{},{prefixCls:C}))]})}))},JCt=function(t){var n,r,o;return Z({},t.componentCls,Z(Z(Z(Z({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:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function ZCt(e){return Zr("ProLayoutGlobalHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[JCt(n)]})}var ewt=function(t,n){return t===!1?null:t?t(n,null):n},twt=function(t){var n=t.isMobile,r=t.logo,o=t.collapsed,i=t.onCollapse,a=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,f=t.layout,h=t.children,p=t.splitMenus,m=t.menuData,g=t.prefixCls,v=d.useContext(Mn.ConfigContext),b=v.getPrefixCls,y=v.direction,S="".concat(g||b("pro"),"-global-header"),w=ZCt(S),E=w.wrapSSR,C=w.hashId,x=xe(c,S,C);if(f==="mix"&&!n&&p){var _=(m||[]).map(function(M){return z(z({},M),{},{children:void 0,routes:void 0})}),P=nO(_);return N.jsx(Hde,z(z({mode:"horizontal"},t),{},{splitMenus:!1,menuData:P}))}var O=xe("".concat(S,"-logo"),C,Z(Z(Z({},"".concat(S,"-logo-rtl"),y==="rtl"),"".concat(S,"-logo-mix"),f==="mix"),"".concat(S,"-logo-mobile"),n)),I=N.jsx("span",{className:O,children:N.jsx("a",{children:qj(r)})},"logo");return E(N.jsxs("div",{className:x,style:z({},u),children:[n&&N.jsx("span",{className:"".concat(S,"-collapsed-button ").concat(C).trim(),onClick:function(){i==null||i(!o)},children:N.jsx(eUe,{})}),n&&ewt(s,I),f==="mix"&&!n&&N.jsxs(N.Fragment,{children:[N.jsx(Gj,z({},t)),N.jsx("div",{className:O,onClick:l,children:Yj(z(z({},t),{},{collapsed:!1}),"headerTitleRender")})]}),N.jsx("div",{style:{flex:1},children:h}),(a||t.actionsRender||t.avatarProps)&&N.jsx(zde,z({rightContentRender:a},t))]}))},nwt=function(t){var n,r,o,i;return Z({},"".concat(t.proComponentsCls,"-layout"),Z({},"".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:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.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:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.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 rwt(e){return Zr("ProLayoutHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[nwt(n)]})}function owt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Zr("ProLayoutHeaderStylish",function(o){var i=z(z({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[Z({},"div".concat(o.proComponentsCls,"-layout"),Z({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var Cq=ei.Header,iwt=function(t){var n,r,o,i=t.isMobile,a=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,f=t.onCollapse,h=t.layout,p=t.headerRender,m=t.headerContentRender,g=d.useContext(Yl),v=g.token,b=d.useContext(Mn.ConfigContext),y=d.useState(!1),S=$e(y,2),w=S[0],E=S[1],C=a||h==="mix",x=d.useCallback(function(){var A=h==="top",j=nO(t.menuData||[]),k=N.jsx(twt,z(z({onCollapse:f},t),{},{menuData:j,children:m&&m(t,null)}));return A&&!i&&(k=N.jsx(Hde,z(z({mode:"horizontal",onCollapse:f},t),{},{menuData:j}))),p&&typeof p=="function"?p(t,k):k},[m,p,i,h,f,t]);d.useEffect(function(){var A,j=(b==null||(A=b.getTargetContainer)===null||A===void 0?void 0:A.call(b))||document.body,k=function(){var V,W=j.scrollTop;return W>(((V=v.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.heightLayoutHeader)||56)&&!w?(E(!0),!0):(w&&E(!1),!1)};if(C&&!(typeof window>"u"))return j.addEventListener("scroll",k,{passive:!0}),function(){j.removeEventListener("scroll",k)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,C,w]);var _=h==="top",P="".concat(u,"-layout-header"),O=rwt(P),I=O.wrapSSR,M=O.hashId,T=owt("".concat(P,".").concat(P,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),D=xe(s,M,P,Z(Z(Z(Z(Z(Z(Z({},"".concat(P,"-fixed-header"),C),"".concat(P,"-fixed-header-scroll"),w),"".concat(P,"-mix"),h==="mix"),"".concat(P,"-fixed-header-action"),!c),"".concat(P,"-top-menu"),_),"".concat(P,"-header"),!0),"".concat(P,"-stylish"),!!t.stylish));return h==="side"&&!i?null:T.wrapSSR(I(N.jsx(N.Fragment,{children:N.jsxs(Mn,{theme:{hashed:dg(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[C&&N.jsx(Cq,{style:z({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((o=v.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),N.jsx(Cq,{className:D,style:l,children:x()})]})})))};const awt={"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"},swt=z({},awt),lwt={"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"},cwt=z({},lwt),uwt={"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":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},dwt=z({},uwt),fwt={"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":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},hwt=z({},fwt),pwt={"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":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},mwt=z({},pwt);var wq={"zh-CN":hwt,"zh-TW":mwt,"en-US":swt,"it-IT":cwt,"ko-KR":dwt},gwt=function(){if(!cj())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},vwt=function(){var t=gwt();return wq[t]||wq["zh-CN"]},zf={};Object.defineProperty(zf,"__esModule",{value:!0});zf.TokenData=void 0;zf.parse=Zj;zf.compile=wwt;var S8=zf.match=Ewt;zf.pathToRegexp=Vde;zf.stringify=Pwt;const Xj="/",Qj=e=>e,Ude=/^[$_\p{ID_Start}]$/u,Jj=/^[$\u200c\u200d\p{ID_Continue}]$/u,DE="https://git.new/pathToRegexpError",ywt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function bwt(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function Oc(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*Swt(e){const t=[...e];let n=0;function r(){let o="";if(Ude.test(t[++n]))for(o+=t[n];Jj.test(t[++n]);)o+=t[n];else if(t[n]==='"'){let i=n;for(;nxwt(o,t,n));return o=>{const i=[""];for(const a of r){const[s,...l]=a(o);i[0]+=s,i.push(...l)}return i}}function xwt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const o=Wde(e.tokens,t,n);return i=>{const[a,...s]=o(i);return s.length?[""]:[a]}}const r=n||Qj;return e.type==="wildcard"&&n!==!1?o=>{const i=o[e.name];if(i==null)return["",e.name];if(!Array.isArray(i)||i.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[i.map((a,s)=>{if(typeof a!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(a)}).join(t)]}:o=>{const i=o[e.name];if(i==null)return["",e.name];if(typeof i!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(i)]}}function Ewt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=Xj}=t,{regexp:o,keys:i}=Vde(e,t),a=i.map(s=>n===!1?Qj:s.type==="param"?n:l=>l.split(r).map(n));return function(l){const c=o.exec(l);if(!c)return!1;const u=c[0],f=Object.create(null);for(let h=1;hp instanceof rO?p:Zj(p,t));for(const{tokens:p}of u)for(const m of gx(p,0,[])){const g=_wt(m,n,a);s.push(g)}let f=`^(?:${s.join("|")})`;return i&&(f+=`(?:${Oc(n)}$)?`),f+=r?"$":`(?=${Oc(n)}|$)`,{regexp:new RegExp(f,l),keys:a}}function*gx(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const o=n.slice();for(const i of gx(r.tokens,0,o))yield*gx(e,t+1,i)}else n.push(r);yield*gx(e,t+1,n)}function _wt(e,t,n){let r="",o="",i=!0;for(let a=0;aJj.test(r)):!1}function Mwt(e){return(e==null?void 0:e.type)!=="text"?!0:!Jj.test(e.value[0])}var Twt=function(t,n,r){if(r){var o=Ze(r.keys()).find(function(a){try{return a.startsWith("http")?!1:S8(a)(t)}catch(s){return console.log("key",a,s),!1}});if(o)return r.get(o)}if(n){var i=Object.keys(n).find(function(a){try{return a!=null&&a.startsWith("http")?!1:S8(a)(t)}catch(s){return console.log("key",a,s),!1}});if(i)return n[i]}return{path:""}},xq=function(t,n){var r=t.pathname,o=r===void 0?"/":r,i=t.breadcrumb,a=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,f=n?"":l||"",h=Twt(o,i,a);if(!h)return{title:f,id:"",pageName:f};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:f,id:h.locale||"",pageName:f}},ma={};function C8(e){"@babel/helpers - typeof";return C8=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},C8(e)}Object.defineProperty(ma,"__esModule",{value:!0});var Xy=ma.pathToRegexp=ma.tokensToRegexp=ma.regexpToFunction=ma.match=ma.tokensToFunction=ma.compile=ma.parse=void 0;function Rwt(e){for(var t=[],n=0;n=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var s=1,l="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '+i);for(;i-1:w===void 0;o||(p+="(?:"+h+"(?="+f+"))?"),E||(p+="(?="+h+"|"+f+")")}return new RegExp(p,tF(n))}ma.tokensToRegexp=Gde;function nF(e,t,n){return e instanceof RegExp?Nwt(e,t):Array.isArray(e)?Awt(e,t,n):Dwt(e,t,n)}Xy=ma.pathToRegexp=nF;function Wc(e,t){return t>>>e|t<<32-e}function jwt(e,t,n){return e&t^~e&n}function Fwt(e,t,n){return e&t^e&n^t&n}function Lwt(e){return Wc(2,e)^Wc(13,e)^Wc(22,e)}function Bwt(e){return Wc(6,e)^Wc(11,e)^Wc(25,e)}function zwt(e){return Wc(7,e)^Wc(18,e)^e>>>3}function Hwt(e){return Wc(17,e)^Wc(19,e)^e>>>10}function Uwt(e,t){return e[t&15]+=Hwt(e[t+14&15])+e[t+9&15]+zwt(e[t+1&15])}var Wwt=[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],no,Qi,ci,Vwt="0123456789abcdef";function Eq(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Kwt(){no=new Array(8),Qi=new Array(2),ci=new Array(64),Qi[0]=Qi[1]=0,no[0]=1779033703,no[1]=3144134277,no[2]=1013904242,no[3]=2773480762,no[4]=1359893119,no[5]=2600822924,no[6]=528734635,no[7]=1541459225}function w8(){var e,t,n,r,o,i,a,s,l,c,u=new Array(16);e=no[0],t=no[1],n=no[2],r=no[3],o=no[4],i=no[5],a=no[6],s=no[7];for(var f=0;f<16;f++)u[f]=ci[(f<<2)+3]|ci[(f<<2)+2]<<8|ci[(f<<2)+1]<<16|ci[f<<2]<<24;for(var h=0;h<64;h++)l=s+Bwt(o)+jwt(o,i,a)+Wwt[h],h<16?l+=u[h]:l+=Uwt(u,h),c=Lwt(e)+Fwt(e,t,n),s=a,a=i,i=o,o=Eq(r,l),r=n,n=t,t=e,e=Eq(l,c);no[0]+=e,no[1]+=t,no[2]+=n,no[3]+=r,no[4]+=o,no[5]+=i,no[6]+=a,no[7]+=s}function qwt(e,t){var n,r,o=0;r=Qi[0]>>3&63;var i=t&63;for((Qi[0]+=t<<3)>29,n=0;n+63>3&63;if(ci[e++]=128,e<=56)for(var t=e;t<56;t++)ci[t]=0;else{for(var n=e;n<64;n++)ci[n]=0;w8();for(var r=0;r<56;r++)ci[r]=0}ci[56]=Qi[1]>>>24&255,ci[57]=Qi[1]>>>16&255,ci[58]=Qi[1]>>>8&255,ci[59]=Qi[1]&255,ci[60]=Qi[0]>>>24&255,ci[61]=Qi[0]>>>16&255,ci[62]=Qi[0]>>>8&255,ci[63]=Qi[0]&255,w8()}function Ywt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=Vwt.charAt(no[t]>>>n&15);return e}function Xwt(e){return Kwt(),qwt(e,e.length),Gwt(),Ywt()}function x8(e){"@babel/helpers - typeof";return x8=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},x8(e)}var Qwt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Jwt(e,t){return txt(e)||ext(e,t)||rF(e,t)||Zwt()}function Zwt(){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 ext(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function txt(e){if(Array.isArray(e))return e}function nxt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=rF(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}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 i=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function rxt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oxt(e,t){for(var n=0;n"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 uxt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function l1(e,t){return l1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},l1(e,t)}function c1(e){return c1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},c1(e)}function _q(e){return hxt(e)||fxt(e)||rF(e)||dxt()}function dxt(){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 rF(e,t){if(e){if(typeof e=="string")return _8(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 _8(e,t)}}function fxt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hxt(e){if(Array.isArray(e))return _8(e)}function _8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mxt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function $q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||oF(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},bxt=function(t,n){var r=t.menu,o=r===void 0?{}:r,i=t.indexRoute,a=t.path,s=a===void 0?"":a,l=t.children||[],c=o.name,u=c===void 0?t.name:c,f=o.icon,h=f===void 0?t.icon:f,p=o.hideChildren,m=p===void 0?t.hideChildren:p,g=o.flatMenu,v=g===void 0?t.flatMenu:g,b=i&&Object.keys(i).join(",")!=="redirect"?[ui({path:s,menu:o},i)].concat(l||[]):l,y=ui({},t);if(u&&(y.name=u),h&&(y.icon=h),b&&b.length){if(m)return delete y.children,y;var S=iF(ui(ui({},n),{},{data:b}),t);if(v)return S;delete y[ws]}return y},Zh=function(t){return Array.isArray(t)&&t.length>0};function iF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,o=e.parentName,i=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(a){return a?Zh(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=ui(ui({},a),{},{path:a.path||a.originPath});return!s.children&&s[ws]&&(s.children=s[ws],delete s[ws]),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[ws]||[],l=Xde(a.path,t?t.path:"/"),c=a.name,u=yxt(a,o||"menu"),f=u!==!1&&i!==!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=pxt(t,Qwt),g=new Set([].concat(_q(p),_q(a.parentKeys||[])));t.key&&g.add(t.key);var v=ui(ui(ui({},m),{},{menu:void 0},a),{},{path:l,locale:u,key:a.key||vxt(ui(ui({},a),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(y){return y&&y!=="/"})});if(f?v.name=f:delete v.name,v.menu===void 0&&delete v.menu,Zh(s)){var b=iF(ui(ui({},e),{},{data:s,parentName:u||""}),v);Zh(b)&&(v.children=b)}return bxt(v,e)}).flat(1)}var Sxt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Zh(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=ui({},n),o=r.children||n[ws]||[];if(delete r[ws],Zh(o)&&!r.hideChildrenInMenu&&o.some(function(a){return a&&!!a.name})){var i=e(o);if(i.length)return ui(ui({},r),{},{children:i})}return ui({},n)}).filter(function(n){return n})},Cxt=function(e){axt(n,e);var t=sxt(n);function n(){return rxt(this,n),t.apply(this,arguments)}return ixt(n,[{key:"get",value:function(o){var i;try{var a=nxt(this.entries()),s;try{for(a.s();!(s=a.n()).done;){var l=Jwt(s.value,2),c=l[0],u=l[1],f=TS(c);if(!oF(c)&&Xy(f,[]).test(o)){i=u;break}}}catch(h){a.e(h)}finally{a.f()}}catch{i=void 0}return i}}]),n}(E8(Map)),wxt=function(t){var n=new Cxt,r=function o(i,a){i.forEach(function(s){var l=s.children||s[ws]||[];Zh(l)&&o(l,s);var c=Xde(s.path,a?a.path:"/");n.set(TS(c),s)})};return r(t),n},xxt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[ws];if(Zh(r)){var o=e(r);if(o.length)return ui({},n)}var i=ui({},n);return delete i[ws],delete i.children,i}).filter(function(n){return n})},Ext=function(t,n,r,o){var i=iF({data:t,formatMessage:r,locale:n}),a=o?xxt(i):Sxt(i),s=wxt(i);return{breadcrumb:s,menuData:a}};function Pq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X0(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var o=X0({},r);if(!(!o||!o.key)){!o.children&&o[ws]&&(o.children=o[ws],delete o[ws]);var i=o.children||[];n[TS(o.path||o.key||"/")]=X0({},o),n[o.key||o.path||"/"]=X0({},o),i&&(n=X0(X0({},n),e(i)))}}),n},Pxt=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(o){if(o==="/"&&n==="/")return!0;if(o!=="/"&&o!=="/*"&&o&&!oF(o)){var i=TS(o);try{if(r&&Xy("".concat(i)).test(n)||Xy("".concat(i),[]).test(n)||Xy("".concat(i,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(o,i){return o===n?10:i===n?-10:o.substr(1).split("/").length-i.substr(1).split("/").length})},Oxt=function(t,n,r,o){var i=$xt(n),a=Object.keys(i),s=Pxt(a,t||"/",o);return!s||s.length<1?[]:s.map(function(l){var c=i[l]||{pro_layout_parentKeys:"",key:""},u=new Map,f=(c.pro_layout_parentKeys||[]).map(function(h){return u.has(h)?null:(u.set(h,!0),i[h])}).filter(function(h){return h});return c.key&&f.push(c),f}).flat(1)},Mxt=function(t){var n=d.useContext(Yl),r=n.hashId,o=t.style,i=t.prefixCls,a=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=xe("".concat(i,"-content"),r,Z(Z({},"".concat(i,"-has-header"),t.hasHeader),"".concat(i,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||eZe;return t.ErrorBoundary===!1?N.jsx(ei.Content,{className:c,style:o,children:a}):N.jsx(u,{children:N.jsx(ei.Content,{className:c,style:o,children:a})})},Txt=function(){return N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[N.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),N.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[N.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),N.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),N.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[N.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[N.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),N.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:N.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:N.jsx("g",{transform:"translate(20.000000, 20.000000)",children:N.jsxs("g",{children:[N.jsxs("g",{fillRule:"nonzero",children:[N.jsxs("g",{children:[N.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)"}),N.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)"})]}),N.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)"})]}),N.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},Oq=new Gn("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Rxt=function(t){var n,r,o,i,a,s,l,c,u,f,h,p;return Z({},"".concat(t.proComponentsCls,"-layout"),Z(Z(Z({},"".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,Z(Z(Z(Z(Z(Z(Z(Z(Z({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:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),Z(Z({},"".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:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.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:Oq,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":Z({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:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:Oq,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 Ixt(e,t){var n=t.proLayoutCollapsedWidth;return Zr("ProLayoutSiderMenu",function(r){var o=z(z({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[Rxt(o)]})}var Mq=function(t){var n,r=t.isMobile,o=t.siderWidth,i=t.collapsed,a=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,f=t.getContainer,h=d.useContext(Yl),p=h.token;d.useEffect(function(){r===!0&&(a==null||a(!0))},[r]);var m=Yn(t,["className","style"]),g=de.useContext(Mn.ConfigContext),v=g.direction,b=Ixt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),y=b.wrapSSR,S=b.hashId,w=xe("".concat(u,"-sider"),l,S);if(c)return null;var E=TP(!i,function(){return a==null?void 0:a(!0)});return y(r?N.jsx(dP,z(z({placement:v==="rtl"?"right":"left",className:xe("".concat(u,"-drawer-sider"),l)},E),{},{style:z({padding:0,height:"100vh"},s),onClose:function(){a==null||a(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:o,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:N.jsx(Sq,z(z({},m),{},{isMobile:!0,className:w,collapsed:r?!1:i,splitMenus:!1,originCollapsed:i}))})):N.jsx(Sq,z(z({className:w,originCollapsed:i},m),{},{style:s})))},kxt=function(){var t;return typeof process>"u"?td:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||td},Nxt=function(t){var n,r,o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S,w,E,C,x,_,P,O,I,M,T,D,A,j,k;return(n=kxt())!==null&&n!==void 0&&n.startsWith("5")?{}:Z(Z(Z({},t.componentCls,Z(Z({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(C={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(C,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.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"),Z(Z({color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),Z({},"".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"),Z({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, @@ -674,47 +674,43 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(t.antCls,"-menu-submenu-title:hover"),Z({color:(_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(P=t.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(O=t.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(I=t.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(M=t.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),Z(Z(Z(Z({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),Z({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:(T=t.layout)===null||T===void 0||(T=T.sider)===null||T===void 0?void 0:T.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(D=t.layout)===null||D===void 0||(D=D.sider)===null||D===void 0?void 0:D.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),Z(Z({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(A=t.layout)===null||A===void 0||(A=A.sider)===null||A===void 0?void 0:A.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, - `).concat(t.antCls,"-menu-submenu-title:hover"),Z({color:(j=t.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(k=t.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuActive}))))},Dxt=function(t){var n,r,o,i;return Z(Z({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,Z(Z(Z(Z({},"& ".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:(o=t.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.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:(i=t.layout)===null||i===void 0?void 0:i.bgLayout}))};function jxt(e){return Zr("ProLayout",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[Dxt(n),Axt(n)]})}function Fxt(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 Lxt=function(){var t;return typeof process>"u"?nd:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||nd},Bxt=function(t,n,r){var o=t,i=o.breadcrumbName,a=o.title,s=o.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?N.jsx("span",{children:a||i}):N.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:a||i})},zxt=function(t,n){var r=n.formatMessage,o=n.menu;return t.locale&&r&&(o==null?void 0:o.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},Hxt=function(t,n){var r=t.get(n);if(!r){var o=Array.from(t.keys())||[],i=o.find(function(a){try{return a!=null&&a.startsWith("http")?!1:C8(a.replace("?",""))(n)}catch(s){return console.log("path",a,s),!1}});i&&(r=t.get(i))}return r||{path:""}},Uxt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},Wxt=function(t,n,r){var o=Fxt(t==null?void 0:t.pathname),i=o.map(function(a){var s=Hxt(n,a),l=zxt(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 i},Vxt=function(t){var n=Uxt(t),r=n.location,o=n.breadcrumbMap;return r&&r.pathname&&o?Wxt(r,o,t):[]},Kxt=function(t,n){var r=t.breadcrumbRender,o=t.itemRender,i=n.breadcrumbProps||{},a=i.minLength,s=a===void 0?2:a,l=Vxt(t),c=function(h){for(var p=o||Bxt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function qxt(e){return Ze(e).reduce(function(t,n){var r=$e(n,2),o=r[0],i=r[1];return t[o]=i,t},{})}var Gxt=function e(t,n,r,o){var i=_xt(t,(n==null?void 0:n.locale)||!1,r,!0),a=i.menuData,s=i.breadcrumb;return o?e(o(a),n,r,void 0):{breadcrumb:qxt(s),breadcrumbMap:s,menuData:a}},Yxt=function(t){var n=d.useState({}),r=$e(n,2),o=r[0],i=r[1];return d.useEffect(function(){i(Js({layout:Ht(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]),o},Xxt=["id","defaultMessage"],Qxt=["fixSiderbar","navTheme","layout"],Iq=0,Jxt=function(t,n){var r;return t.headerRender===!1||t.pure?null:N.jsx(awt,z(z({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},Zxt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(z({},t),N.jsx(ECt,{})):null},e2t=function(t,n){var r,o=t.layout,i=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 f=t.menuData;if(l&&(s!==!1||o==="mix")&&!i){var h=a||n,p=$e(h,1),m=p[0];if(m){var g;f=((g=t.menuData)===null||g===void 0||(g=g.find(function(S){return S.key===m}))===null||g===void 0?void 0:g.children)||[]}else f=[]}var v=nO(f||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(o==="top"&&!i){var b;return N.jsx(Rq,z(z({matchMenuKeys:n},t),{},{hide:!0,stylish:(b=t.stylish)===null||b===void 0?void 0:b.sider}))}var y=N.jsx(Rq,z(z({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,y):y},t2t=function(t,n){var r=n.pageTitleRender,o=_q(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var i=r(t,o.title,o);if(typeof i=="string")return _q(z(z({},o),{},{title:i}));yr(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return o},n2t=function(t,n,r){return t?n?64:r:0},r2t=function(t){var n,r,o,i,a,s,l,c,u,f,h,p,m,g,v=t||{},b=v.children,y=v.onCollapse,S=v.location,w=S===void 0?{pathname:"/"}:S,E=v.contentStyle,C=v.route,x=v.defaultCollapsed,_=v.style,P=v.siderWidth,O=v.menu,I=v.siderMenuType,M=v.isChildrenLayout,T=v.menuDataRender,D=v.actionRef,A=v.bgLayoutImgList,j=v.formatMessage,k=v.loading,F=d.useMemo(function(){return P||(t.layout==="mix"?215:256)},[t.layout,P]),V=d.useContext(Mn.ConfigContext),W=(n=t.prefixCls)!==null&&n!==void 0?n:V.getPrefixCls("pro"),K=xn(!1,{value:O==null?void 0:O.loading,onChange:O==null?void 0:O.onLoadingChange}),L=$e(K,2),Q=L[0],ee=L[1],re=d.useState(function(){return Iq+=1,"pro-layout-".concat(Iq)}),ie=$e(re,1),G=ie[0],X=d.useCallback(function(at){var Pt=at.id,Bt=at.defaultMessage,xt=At(at,Xxt);if(j)return j(z({id:Pt,defaultMessage:Bt},xt));var yt=ywt();return yt[Pt]?yt[Pt]:Bt},[j]),ne=cj([G,O==null?void 0:O.params],function(){var at=Bo(nr().mark(function Pt(Bt){var xt,yt,Ft,Re;return nr().wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return yt=$e(Bt,2),Ft=yt[1],ee(!0),tt.next=4,O==null||(xt=O.request)===null||xt===void 0?void 0:xt.call(O,Ft||{},(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[]);case 4:return Re=tt.sent,ee(!1),tt.abrupt("return",Re);case 7:case"end":return tt.stop()}},Pt)}));return function(Pt){return at.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),le=ne.data,ce=ne.mutate,oe=ne.isLoading;d.useEffect(function(){ee(oe)},[oe]);var se=lj(),fe=se.cache;d.useEffect(function(){return function(){fe instanceof Map&&fe.delete(G)}},[]);var te=d.useMemo(function(){return Gxt(le||(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[],O,X,T)},[X,O,T,le,C==null?void 0:C.children,C==null?void 0:C.routes]),he=te||{},pe=he.breadcrumb,Oe=he.breadcrumbMap,Me=he.menuData,Se=Me===void 0?[]:Me;D&&O!==null&&O!==void 0&&O.request&&(D.current={reload:function(){ce()}});var ye=d.useMemo(function(){return Mxt(w.pathname||"/",Se||[])},[w.pathname,Se]),ve=d.useMemo(function(){return Array.from(new Set(ye.map(function(at){return at.key||at.path||""})))},[ye]),be=ye[ye.length-1]||{},Pe=Yxt(be),Ne=z(z({},t),Pe),U=Ne.fixSiderbar;Ne.navTheme;var H=Ne.layout,q=At(Ne,Qxt),me=bnt(),Ce=d.useMemo(function(){return(me==="sm"||me==="xs")&&!t.disableMobile},[me,t.disableMobile]),ue=H!=="top"&&!Ce,Le=xn(function(){return x!==void 0?x:!!(Ce||me==="md")},{value:t.collapsed,onChange:y}),He=$e(Le,2),ge=He[0],De=He[1],qe=Yn(z(z(z({prefixCls:W},t),{},{siderWidth:F},Pe),{},{formatMessage:X,breadcrumb:pe,menu:z(z({},O),{},{type:I||(O==null?void 0:O.type),loading:Q}),layout:H}),["className","style","breadcrumbRender"]),je=t2t(z(z({pathname:w.pathname},qe),{},{breadcrumbMap:Oe}),t),Ke=Kxt(z(z({},qe),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:Oe}),t),Ue=e2t(z(z({},qe),{},{menuData:Se,onCollapse:De,isMobile:Ce,collapsed:ge}),ve),Ve=Jxt(z(z({},qe),{},{children:null,hasSiderMenu:!!Ue,menuData:Se,isMobile:Ce,collapsed:ge,onCollapse:De}),ve),St=Zxt(z({isMobile:Ce,collapsed:ge},qe)),et=d.useContext(dq),st=et.isChildrenLayout,Ct=M!==void 0?M:st,dt="".concat(W,"-layout"),Lt=jxt(dt),wt=Lt.wrapSSR,Et=Lt.hashId,Tt=xe(t.className,Et,"ant-design-pro",dt,Z(Z(Z(Z(Z({},"screen-".concat(me),me),"".concat(dt,"-top-menu"),H==="top"),"".concat(dt,"-is-children"),Ct),"".concat(dt,"-fix-siderbar"),U),"".concat(dt,"-").concat(H),H)),Be=n2t(!!ue,ge,F),We={position:"relative"};(Ct||E&&E.minHeight)&&(We.minHeight=0),d.useEffect(function(){var at;(at=t.onPageChange)===null||at===void 0||at.call(t,t.location)},[w.pathname,(r=w.pathname)===null||r===void 0?void 0:r.search]);var Fe=d.useState(!1),Xe=$e(Fe,2),gt=Xe[0],pt=Xe[1],Rt=d.useState(0),_t=$e(Rt,2),vt=_t[0],ft=_t[1];$Ze(je,t.title||!1);var It=d.useContext(Yl),bt=It.token,Wt=d.useMemo(function(){return A&&A.length>0?A==null?void 0:A.map(function(at,Pt){return N.jsx("img",{src:at.src,style:z({position:"absolute"},at)},Pt)}):null},[A]);return wt(N.jsx(dq.Provider,{value:z(z({},qe),{},{breadcrumb:Ke,menuData:Se,isMobile:Ce,collapsed:ge,hasPageContainer:vt,setHasPageContainer:ft,isChildrenLayout:!0,title:je.pageName,hasSiderMenu:!!Ue,hasHeader:!!Ve,siderWidth:Be,hasFooter:!!St,hasFooterToolbar:gt,setHasFooterToolbar:pt,pageTitleInfo:je,matchMenus:ye,matchMenuKeys:ve,currentMenu:be}),children:t.pure?N.jsx(N.Fragment,{children:b}):N.jsxs("div",{className:Tt,children:[Wt||(o=bt.layout)!==null&&o!==void 0&&o.bgLayout?N.jsx("div",{className:xe("".concat(dt,"-bg-list"),Et),children:Wt}):null,N.jsxs(ei,{style:z({minHeight:"100%",flexDirection:Ue?"row":void 0},_),children:[N.jsx(Mn,{theme:{hashed:dg(),token:{controlHeightLG:((i=bt.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(bt==null?void 0:bt.controlHeightLG)},components:{Menu:Nce({colorItemBg:((a=bt.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorMenuBackground)||"transparent",colorSubItemBg:((s=bt.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:bt.borderRadius,colorItemBgSelected:((l=bt.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(bt==null?void 0:bt.colorBgTextHover),colorItemBgHover:((c=bt.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(bt==null?void 0:bt.colorBgTextHover),colorItemBgActive:((u=bt.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(bt==null?void 0:bt.colorBgTextActive),colorItemBgSelectedHorizontal:((f=bt.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(bt==null?void 0:bt.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((h=bt.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenu)||(bt==null?void 0:bt.colorTextSecondary),colorItemTextHover:((p=bt.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=bt.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:bt==null?void 0:bt.colorBgElevated,subMenuItemBg:bt==null?void 0:bt.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:bt==null?void 0:bt.colorBgElevated})}},children:Ue}),N.jsxs("div",{style:We,className:"".concat(dt,"-container ").concat(Et).trim(),children:[Ve,N.jsx(Txt,z(z({hasPageContainer:vt,isChildrenLayout:Ct},q),{},{hasHeader:!!Ve,prefixCls:dt,style:E,children:k?N.jsx(bCt,{}):b})),St,gt&&N.jsx("div",{className:"".concat(dt,"-has-footer"),style:{height:64,marginBlockStart:(g=bt.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},Jde=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return N.jsx(Mn,{theme:n?{token:{colorPrimary:n}}:void 0,children:N.jsx(MP,z(z({},r),{},{token:t.token,prefixCls:t.prefixCls,children:N.jsx(r2t,z(z({logo:N.jsx(Rxt,{})},Lde),{},{location:dj()?window.location:void 0},t))}))})};function o2t(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const oO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s0(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function lF(e){return"nodeType"in e}function Qa(e){var t,n;return e?s0(e)?e:lF(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function cF(e){const{Document:t}=Qa(e);return e instanceof t}function TS(e){return s0(e)?!1:e instanceof Qa(e).HTMLElement}function Zde(e){return e instanceof Qa(e).SVGElement}function l0(e){return e?s0(e)?e.document:lF(e)?cF(e)?e:TS(e)||Zde(e)?e.ownerDocument:document:document:document}const Jc=oO?d.useLayoutEffect:d.useEffect;function uF(e){const t=d.useRef(e);return Jc(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function u1(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return Jc(()=>{n.current!==e&&(n.current=e)},t),n}function RS(e,t){const n=d.useRef();return d.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function DE(e){const t=uF(e),n=d.useRef(null),r=d.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function P8(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let GR={};function iO(e,t){return d.useMemo(()=>{if(t)return t;const n=GR[e]==null?0:GR[e]+1;return GR[e]=n,e+"-"+n},[e,t])}function efe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const s=Object.entries(a);for(const[l,c]of s){const u=i[l];u!=null&&(i[l]=u+e*c)}return i},{...t})}}const fg=efe(1),jE=efe(-1);function a2t(e){return"clientX"in e&&"clientY"in e}function dF(e){if(!e)return!1;const{KeyboardEvent:t}=Qa(e.target);return t&&e instanceof t}function s2t(e){if(!e)return!1;const{TouchEvent:t}=Qa(e.target);return t&&e instanceof t}function O8(e){if(s2t(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return a2t(e)?{x:e.clientX,y:e.clientY}:null}const FE=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[FE.Translate.toString(e),FE.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),kq="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function l2t(e){return e.matches(kq)?e:e.querySelector(kq)}const c2t={display:"none"};function u2t(e){let{id:t,value:n}=e;return de.createElement("div",{id:t,style:c2t},n)}function d2t(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return de.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function f2t(){const[e,t]=d.useState("");return{announce:d.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const tfe=d.createContext(null);function h2t(e){const t=d.useContext(tfe);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function p2t(){const[e]=d.useState(()=>new Set),t=d.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[d.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var s;return(s=a[o])==null?void 0:s.call(a,i)})},[e]),t]}const m2t={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},g2t={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function v2t(e){let{announcements:t=g2t,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=m2t}=e;const{announce:i,announcement:a}=f2t(),s=iO("DndLiveRegion"),[l,c]=d.useState(!1);if(d.useEffect(()=>{c(!0)},[]),h2t(d.useMemo(()=>({onDragStart(f){let{active:h}=f;i(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:p}=f;t.onDragMove&&i(t.onDragMove({active:h,over:p}))},onDragOver(f){let{active:h,over:p}=f;i(t.onDragOver({active:h,over:p}))},onDragEnd(f){let{active:h,over:p}=f;i(t.onDragEnd({active:h,over:p}))},onDragCancel(f){let{active:h,over:p}=f;i(t.onDragCancel({active:h,over:p}))}}),[i,t])),!l)return null;const u=de.createElement(de.Fragment,null,de.createElement(u2t,{id:r,value:o.draggable}),de.createElement(d2t,{id:s,announcement:a}));return n?hi.createPortal(u,n):u}var fi;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(fi||(fi={}));function LE(){}const cc=Object.freeze({x:0,y:0});function y2t(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function b2t(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function S2t(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Nq(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function C2t(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const w2t=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Nq(t),i=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const c=Nq(l),u=o.reduce((h,p,m)=>h+y2t(c[m],p),0),f=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:a,value:f}})}}return i.sort(b2t)};function x2t(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,s=n.get(a);if(s){const l=x2t(s,t);l>0&&o.push({id:a,data:{droppableContainer:i,value:l}})}}return o.sort(S2t)};function _2t(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function nfe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:cc}function $2t(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const P2t=$2t(1);function O2t(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function M2t(e,t,n){const r=O2t(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const T2t={ignoreTransform:!1};function c0(e,t){t===void 0&&(t=T2t);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Qa(e).getComputedStyle(e);c&&(n=M2t(n,c,u))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function Aq(e){return c0(e,{ignoreTransform:!0})}function R2t(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function I2t(e,t){return t===void 0&&(t=Qa(e).getComputedStyle(e)),t.position==="fixed"}function k2t(e,t){t===void 0&&(t=Qa(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function fF(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(cF(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!TS(o)||Zde(o)||n.includes(o))return n;const i=Qa(e).getComputedStyle(o);return o!==e&&k2t(o,i)&&n.push(o),I2t(o,i)?n:r(o.parentNode)}return e?r(e):n}function rfe(e){const[t]=fF(e,1);return t??null}function YR(e){return!oO||!e?null:s0(e)?e:lF(e)?cF(e)||e===l0(e).scrollingElement?window:TS(e)?e:null:null}function ofe(e){return s0(e)?e.scrollX:e.scrollLeft}function ife(e){return s0(e)?e.scrollY:e.scrollTop}function M8(e){return{x:ofe(e),y:ife(e)}}var Ei;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ei||(Ei={}));function afe(e){return!oO||!e?!1:e===document.scrollingElement}function sfe(e){const t={x:0,y:0},n=afe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const N2t={x:.2,y:.2};function A2t(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=N2t);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=sfe(e),p={x:0,y:0},m={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!c&&i<=t.top+g.height?(p.y=Ei.Backward,m.y=r*Math.abs((t.top+g.height-i)/g.height)):!u&&l>=t.bottom-g.height&&(p.y=Ei.Forward,m.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!h&&s>=t.right-g.width?(p.x=Ei.Forward,m.x=r*Math.abs((t.right-g.width-s)/g.width)):!f&&a<=t.left+g.width&&(p.x=Ei.Backward,m.x=r*Math.abs((t.left+g.width-a)/g.width)),{direction:p,speed:m}}function D2t(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function lfe(e){return e.reduce((t,n)=>fg(t,M8(n)),cc)}function j2t(e){return e.reduce((t,n)=>t+ofe(n),0)}function F2t(e){return e.reduce((t,n)=>t+ife(n),0)}function L2t(e,t){if(t===void 0&&(t=c0),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);rfe(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const B2t=[["x",["left","right"],j2t],["y",["top","bottom"],F2t]];class hF{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=fF(n),o=lfe(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,s]of B2t)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=o[i]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Qy{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function z2t(e){const{EventTarget:t}=Qa(e);return e instanceof t?e:l0(e)}function XR(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Ks;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ks||(Ks={}));function Dq(e){e.preventDefault()}function H2t(e){e.stopPropagation()}var Dr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Dr||(Dr={}));const cfe={start:[Dr.Space,Dr.Enter],cancel:[Dr.Esc],end:[Dr.Space,Dr.Enter]},U2t=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Dr.Right:return{...n,x:n.x+25};case Dr.Left:return{...n,x:n.x-25};case Dr.Down:return{...n,y:n.y+25};case Dr.Up:return{...n,y:n.y-25}}};class ufe{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Qy(l0(n)),this.windowListeners=new Qy(Qa(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ks.Resize,this.handleCancel),this.windowListeners.add(Ks.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ks.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&L2t(r),n(cc)}handleKeyDown(t){if(dF(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=cfe,coordinateGetter:a=U2t,scrollBehavior:s="smooth"}=o,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:cc;this.referenceCoordinates||(this.referenceCoordinates=u);const f=a(t,{active:n,context:r.current,currentCoordinates:u});if(f){const h=jE(f,u),p={x:0,y:0},{scrollableAncestors:m}=r.current;for(const g of m){const v=t.code,{isTop:b,isRight:y,isLeft:S,isBottom:w,maxScroll:E,minScroll:C}=sfe(g),x=D2t(g),_={x:Math.min(v===Dr.Right?x.right-x.width/2:x.right,Math.max(v===Dr.Right?x.left:x.left+x.width/2,f.x)),y:Math.min(v===Dr.Down?x.bottom-x.height/2:x.bottom,Math.max(v===Dr.Down?x.top:x.top+x.height/2,f.y))},P=v===Dr.Right&&!y||v===Dr.Left&&!S,O=v===Dr.Down&&!w||v===Dr.Up&&!b;if(P&&_.x!==f.x){const I=g.scrollLeft+h.x,M=v===Dr.Right&&I<=E.x||v===Dr.Left&&I>=C.x;if(M&&!h.y){g.scrollTo({left:I,behavior:s});return}M?p.x=g.scrollLeft-I:p.x=v===Dr.Right?g.scrollLeft-E.x:g.scrollLeft-C.x,p.x&&g.scrollBy({left:-p.x,behavior:s});break}else if(O&&_.y!==f.y){const I=g.scrollTop+h.y,M=v===Dr.Down&&I<=E.y||v===Dr.Up&&I>=C.y;if(M&&!h.x){g.scrollTo({top:I,behavior:s});return}M?p.y=g.scrollTop-I:p.y=v===Dr.Down?g.scrollTop-E.y:g.scrollTop-C.y,p.y&&g.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,fg(jE(f,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ufe.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=cfe,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function jq(e){return!!(e&&"distance"in e)}function Fq(e){return!!(e&&"delay"in e)}class pF{constructor(t,n,r){var o;r===void 0&&(r=z2t(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=l0(a),this.documentListeners=new Qy(this.document),this.listeners=new Qy(r),this.windowListeners=new Qy(Qa(a)),this.initialCoordinates=(o=O8(i))!=null?o:cc,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Ks.Resize,this.handleCancel),this.windowListeners.add(Ks.DragStart,Dq),this.windowListeners.add(Ks.VisibilityChange,this.handleCancel),this.windowListeners.add(Ks.ContextMenu,Dq),this.documentListeners.add(Ks.Keydown,this.handleKeydown),n){if(jq(n))return;if(Fq(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ks.Click,H2t,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ks.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!o)return;const l=(n=O8(t))!=null?n:cc,c=jE(o,l);if(!r&&s){if(Fq(s))return XR(c,s.tolerance)?this.handleCancel():void 0;if(jq(s))return s.tolerance!=null&&XR(c,s.tolerance)?this.handleCancel():XR(c,s.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Dr.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const W2t={move:{name:"pointermove"},end:{name:"pointerup"}};class dfe extends pF{constructor(t){const{event:n}=t,r=l0(n.target);super(t,W2t,r)}}dfe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const V2t={move:{name:"mousemove"},end:{name:"mouseup"}};var T8;(function(e){e[e.RightClick=2]="RightClick"})(T8||(T8={}));class K2t extends pF{constructor(t){super(t,V2t,l0(t.event.target))}}K2t.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===T8.RightClick?!1:(r==null||r({event:n}),!0)}}];const QR={move:{name:"touchmove"},end:{name:"touchend"}};class q2t extends pF{constructor(t){super(t,QR)}static setup(){return window.addEventListener(QR.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(QR.move.name,t)};function t(){}}}q2t.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Jy;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Jy||(Jy={}));var BE;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(BE||(BE={}));function G2t(e){let{acceleration:t,activator:n=Jy.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=BE.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:h}=e;const p=X2t({delta:f,disabled:!i}),[m,g]=i2t(),v=d.useRef({x:0,y:0}),b=d.useRef({x:0,y:0}),y=d.useMemo(()=>{switch(n){case Jy.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Jy.DraggableRect:return o}},[n,o,l]),S=d.useRef(null),w=d.useCallback(()=>{const C=S.current;if(!C)return;const x=v.current.x*b.current.x,_=v.current.y*b.current.y;C.scrollBy(x,_)},[]),E=d.useMemo(()=>s===BE.TreeOrder?[...c].reverse():c,[s,c]);d.useEffect(()=>{if(!i||!c.length||!y){g();return}for(const C of E){if((r==null?void 0:r(C))===!1)continue;const x=c.indexOf(C),_=u[x];if(!_)continue;const{direction:P,speed:O}=A2t(C,_,y,t,h);for(const I of["x","y"])p[I][P[I]]||(O[I]=0,P[I]=0);if(O.x>0||O.y>0){g(),S.current=C,m(w,a),v.current=O,b.current=P;return}}v.current={x:0,y:0},b.current={x:0,y:0},g()},[t,w,r,g,i,a,JSON.stringify(y),JSON.stringify(p),m,c,E,u,JSON.stringify(h)])}const Y2t={x:{[Ei.Backward]:!1,[Ei.Forward]:!1},y:{[Ei.Backward]:!1,[Ei.Forward]:!1}};function X2t(e){let{delta:t,disabled:n}=e;const r=P8(t);return RS(o=>{if(n||!r||!o)return Y2t;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ei.Backward]:o.x[Ei.Backward]||i.x===-1,[Ei.Forward]:o.x[Ei.Forward]||i.x===1},y:{[Ei.Backward]:o.y[Ei.Backward]||i.y===-1,[Ei.Forward]:o.y[Ei.Forward]||i.y===1}}},[n,t,r])}function Q2t(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return RS(o=>{var i;return t===null?null:(i=r??o)!=null?i:null},[r,t])}function J2t(e,t){return d.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var d1;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(d1||(d1={}));var R8;(function(e){e.Optimized="optimized"})(R8||(R8={}));const Lq=new Map;function Z2t(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=d.useState(null),{frequency:s,measure:l,strategy:c}=o,u=d.useRef(e),f=v(),h=u1(f),p=d.useCallback(function(b){b===void 0&&(b=[]),!h.current&&a(y=>y===null?b:y.concat(b.filter(S=>!y.includes(S))))},[h]),m=d.useRef(null),g=RS(b=>{if(f&&!n)return Lq;if(!b||b===Lq||u.current!==e||i!=null){const y=new Map;for(let S of e){if(!S)continue;if(i&&i.length>0&&!i.includes(S.id)&&S.rect.current){y.set(S.id,S.rect.current);continue}const w=S.node.current,E=w?new hF(l(w),w):null;S.rect.current=E,E&&y.set(S.id,E)}return y}return b},[e,i,n,f,l]);return d.useEffect(()=>{u.current=e},[e]),d.useEffect(()=>{f||p()},[n,f]),d.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),d.useEffect(()=>{f||typeof s!="number"||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,f,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:i!=null};function v(){switch(c){case d1.Always:return!1;case d1.BeforeDragging:return n;default:return!n}}}function ffe(e,t){return RS(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function eEt(e,t){return ffe(e,t)}function tEt(e){let{callback:t,disabled:n}=e;const r=uF(t),o=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return d.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function aO(e){let{callback:t,disabled:n}=e;const r=uF(t),o=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return d.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function nEt(e){return new hF(c0(e),e)}function Bq(e,t,n){t===void 0&&(t=nEt);const[r,o]=d.useReducer(s,null),i=tEt({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=aO({callback:o});return Jc(()=>{o(),e?(a==null||a.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),i==null||i.disconnect())},[e]),r;function s(l){if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u}}function rEt(e){const t=ffe(e);return nfe(e,t)}const zq=[];function oEt(e){const t=d.useRef(e),n=RS(r=>e?r&&r!==zq&&e&&t.current&&e.parentNode===t.current.parentNode?r:fF(e):zq,[e]);return d.useEffect(()=>{t.current=e},[e]),n}function iEt(e){const[t,n]=d.useState(null),r=d.useRef(e),o=d.useCallback(i=>{const a=YR(i.target);a&&n(s=>s?(s.set(a,M8(a)),new Map(s)):null)},[]);return d.useEffect(()=>{const i=r.current;if(e!==i){a(i);const s=e.map(l=>{const c=YR(l);return c?(c.addEventListener("scroll",o,{passive:!0}),[c,M8(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(i)};function a(s){s.forEach(l=>{const c=YR(l);c==null||c.removeEventListener("scroll",o)})}},[o,e]),d.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>fg(i,a),cc):lfe(e):cc,[e,t])}function Hq(e,t){t===void 0&&(t=[]);const n=d.useRef(null);return d.useEffect(()=>{n.current=null},t),d.useEffect(()=>{const r=e!==cc;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?jE(e,n.current):cc}function aEt(e){d.useEffect(()=>{if(!oO)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function sEt(e,t){return d.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function hfe(e){return d.useMemo(()=>e?R2t(e):null,[e])}const JR=[];function lEt(e,t){t===void 0&&(t=c0);const[n]=e,r=hfe(n?Qa(n):null),[o,i]=d.useReducer(s,JR),a=aO({callback:i});return e.length>0&&o===JR&&i(),Jc(()=>{e.length?e.forEach(l=>a==null?void 0:a.observe(l)):(a==null||a.disconnect(),i())},[e]),o;function s(){return e.length?e.map(l=>afe(l)?r:new hF(t(l),l)):JR}}function cEt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return TS(t)?t:e}function uEt(e){let{measure:t}=e;const[n,r]=d.useState(null),o=d.useCallback(c=>{for(const{target:u}of c)if(TS(u)){r(f=>{const h=t(u);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),i=aO({callback:o}),a=d.useCallback(c=>{const u=cEt(c);i==null||i.disconnect(),u&&(i==null||i.observe(u)),r(u?t(u):null)},[t,i]),[s,l]=DE(a);return d.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const dEt=[{sensor:dfe,options:{}},{sensor:ufe,options:{}}],fEt={current:{}},vx={draggable:{measure:Aq},droppable:{measure:Aq,strategy:d1.WhileDragging,frequency:R8.Optimized},dragOverlay:{measure:c0}};class Zy extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const hEt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Zy,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:LE},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:vx,measureDroppableContainers:LE,windowRect:null,measuringScheduled:!1},pEt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:LE,draggableNodes:new Map,over:null,measureDroppableContainers:LE},sO=d.createContext(pEt),mEt=d.createContext(hEt);function gEt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Zy}}}function vEt(e,t){switch(t.type){case fi.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case fi.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case fi.DragEnd:case fi.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case fi.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Zy(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case fi.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Zy(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case fi.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Zy(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function yEt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=d.useContext(sO),i=P8(r),a=P8(n==null?void 0:n.id);return d.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!dF(i)||document.activeElement===i.target)return;const s=o.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const f=l2t(u);if(f){f.focus();break}}})}},[r,t,o,a,i]),null}function bEt(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function SEt(e){return d.useMemo(()=>({draggable:{...vx.draggable,...e==null?void 0:e.draggable},droppable:{...vx.droppable,...e==null?void 0:e.droppable},dragOverlay:{...vx.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function CEt(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=d.useRef(!1),{x:a,y:s}=typeof o=="boolean"?{x:o,y:o}:o;Jc(()=>{if(!a&&!s||!t){i.current=!1;return}if(i.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),f=nfe(u,r);if(a||(f.x=0),s||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=rfe(c);h&&h.scrollBy({top:f.y,left:f.x})}},[t,a,s,r,n])}const pfe=d.createContext({...cc,scaleX:1,scaleY:1});var zd;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(zd||(zd={}));const wEt=d.memo(function(t){var n,r,o,i;let{id:a,accessibility:s,autoScroll:l=!0,children:c,sensors:u=dEt,collisionDetection:f=E2t,measuring:h,modifiers:p,...m}=t;const g=d.useReducer(vEt,void 0,gEt),[v,b]=g,[y,S]=p2t(),[w,E]=d.useState(zd.Uninitialized),C=w===zd.Initialized,{draggable:{active:x,nodes:_,translate:P},droppable:{containers:O}}=v,I=x?_.get(x):null,M=d.useRef({initial:null,translated:null}),T=d.useMemo(()=>{var St;return x!=null?{id:x,data:(St=I==null?void 0:I.data)!=null?St:fEt,rect:M}:null},[x,I]),D=d.useRef(null),[A,j]=d.useState(null),[k,F]=d.useState(null),V=u1(m,Object.values(m)),W=iO("DndDescribedBy",a),K=d.useMemo(()=>O.getEnabled(),[O]),L=SEt(h),{droppableRects:Q,measureDroppableContainers:ee,measuringScheduled:re}=Z2t(K,{dragging:C,dependencies:[P.x,P.y],config:L.droppable}),ie=Q2t(_,x),G=d.useMemo(()=>k?O8(k):null,[k]),X=Ve(),ne=eEt(ie,L.draggable.measure);CEt({activeNode:x?_.get(x):null,config:X.layoutShiftCompensation,initialRect:ne,measure:L.draggable.measure});const le=Bq(ie,L.draggable.measure,ne),ce=Bq(ie?ie.parentElement:null),oe=d.useRef({activatorEvent:null,active:null,activeNode:ie,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),se=O.getNodeFor((n=oe.current.over)==null?void 0:n.id),fe=uEt({measure:L.dragOverlay.measure}),te=(r=fe.nodeRef.current)!=null?r:ie,he=C?(o=fe.rect)!=null?o:le:null,pe=!!(fe.nodeRef.current&&fe.rect),Oe=rEt(pe?null:le),Me=hfe(te?Qa(te):null),Se=oEt(C?se??ie:null),ye=lEt(Se),ve=bEt(p,{transform:{x:P.x-Oe.x,y:P.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:k,active:T,activeNodeRect:le,containerNodeRect:ce,draggingNodeRect:he,over:oe.current.over,overlayNodeRect:fe.rect,scrollableAncestors:Se,scrollableAncestorRects:ye,windowRect:Me}),be=G?fg(G,P):null,Pe=iEt(Se),Ne=Hq(Pe),U=Hq(Pe,[le]),H=fg(ve,Ne),q=he?P2t(he,ve):null,me=T&&q?f({active:T,collisionRect:q,droppableRects:Q,droppableContainers:K,pointerCoordinates:be}):null,Ce=C2t(me,"id"),[ue,Le]=d.useState(null),He=pe?ve:fg(ve,U),ge=_2t(He,(i=ue==null?void 0:ue.rect)!=null?i:null,le),De=d.useCallback((St,et)=>{let{sensor:st,options:Ct}=et;if(D.current==null)return;const dt=_.get(D.current);if(!dt)return;const Lt=St.nativeEvent,wt=new st({active:D.current,activeNode:dt,event:Lt,options:Ct,context:oe,onStart(Tt){const Be=D.current;if(Be==null)return;const We=_.get(Be);if(!We)return;const{onDragStart:Fe}=V.current,Xe={active:{id:Be,data:We.data,rect:M}};hi.unstable_batchedUpdates(()=>{Fe==null||Fe(Xe),E(zd.Initializing),b({type:fi.DragStart,initialCoordinates:Tt,active:Be}),y({type:"onDragStart",event:Xe})})},onMove(Tt){b({type:fi.DragMove,coordinates:Tt})},onEnd:Et(fi.DragEnd),onCancel:Et(fi.DragCancel)});hi.unstable_batchedUpdates(()=>{j(wt),F(St.nativeEvent)});function Et(Tt){return async function(){const{active:We,collisions:Fe,over:Xe,scrollAdjustedTranslate:gt}=oe.current;let pt=null;if(We&>){const{cancelDrop:Rt}=V.current;pt={activatorEvent:Lt,active:We,collisions:Fe,delta:gt,over:Xe},Tt===fi.DragEnd&&typeof Rt=="function"&&await Promise.resolve(Rt(pt))&&(Tt=fi.DragCancel)}D.current=null,hi.unstable_batchedUpdates(()=>{b({type:Tt}),E(zd.Uninitialized),Le(null),j(null),F(null);const Rt=Tt===fi.DragEnd?"onDragEnd":"onDragCancel";if(pt){const _t=V.current[Rt];_t==null||_t(pt),y({type:Rt,event:pt})}})}}},[_]),qe=d.useCallback((St,et)=>(st,Ct)=>{const dt=st.nativeEvent,Lt=_.get(Ct);if(D.current!==null||!Lt||dt.dndKit||dt.defaultPrevented)return;const wt={active:Lt};St(st,et.options,wt)===!0&&(dt.dndKit={capturedBy:et.sensor},D.current=Ct,De(st,et))},[_,De]),je=J2t(u,qe);aEt(u),Jc(()=>{le&&w===zd.Initializing&&E(zd.Initialized)},[le,w]),d.useEffect(()=>{const{onDragMove:St}=V.current,{active:et,activatorEvent:st,collisions:Ct,over:dt}=oe.current;if(!et||!st)return;const Lt={active:et,activatorEvent:st,collisions:Ct,delta:{x:H.x,y:H.y},over:dt};hi.unstable_batchedUpdates(()=>{St==null||St(Lt),y({type:"onDragMove",event:Lt})})},[H.x,H.y]),d.useEffect(()=>{const{active:St,activatorEvent:et,collisions:st,droppableContainers:Ct,scrollAdjustedTranslate:dt}=oe.current;if(!St||D.current==null||!et||!dt)return;const{onDragOver:Lt}=V.current,wt=Ct.get(Ce),Et=wt&&wt.rect.current?{id:wt.id,rect:wt.rect.current,data:wt.data,disabled:wt.disabled}:null,Tt={active:St,activatorEvent:et,collisions:st,delta:{x:dt.x,y:dt.y},over:Et};hi.unstable_batchedUpdates(()=>{Le(Et),Lt==null||Lt(Tt),y({type:"onDragOver",event:Tt})})},[Ce]),Jc(()=>{oe.current={activatorEvent:k,active:T,activeNode:ie,collisionRect:q,collisions:me,droppableRects:Q,draggableNodes:_,draggingNode:te,draggingNodeRect:he,droppableContainers:O,over:ue,scrollableAncestors:Se,scrollAdjustedTranslate:H},M.current={initial:he,translated:q}},[T,ie,me,q,_,te,he,Q,O,ue,Se,H]),G2t({...X,delta:P,draggingRect:q,pointerCoordinates:be,scrollableAncestors:Se,scrollableAncestorRects:ye});const Ke=d.useMemo(()=>({active:T,activeNode:ie,activeNodeRect:le,activatorEvent:k,collisions:me,containerNodeRect:ce,dragOverlay:fe,draggableNodes:_,droppableContainers:O,droppableRects:Q,over:ue,measureDroppableContainers:ee,scrollableAncestors:Se,scrollableAncestorRects:ye,measuringConfiguration:L,measuringScheduled:re,windowRect:Me}),[T,ie,le,k,me,ce,fe,_,O,Q,ue,ee,Se,ye,L,re,Me]),Ue=d.useMemo(()=>({activatorEvent:k,activators:je,active:T,activeNodeRect:le,ariaDescribedById:{draggable:W},dispatch:b,draggableNodes:_,over:ue,measureDroppableContainers:ee}),[k,je,T,le,b,W,_,ue,ee]);return de.createElement(tfe.Provider,{value:S},de.createElement(sO.Provider,{value:Ue},de.createElement(mEt.Provider,{value:Ke},de.createElement(pfe.Provider,{value:ge},c)),de.createElement(yEt,{disabled:(s==null?void 0:s.restoreFocus)===!1})),de.createElement(v2t,{...s,hiddenTextDescribedById:W}));function Ve(){const St=(A==null?void 0:A.autoScrollEnabled)===!1,et=typeof l=="object"?l.enabled===!1:l===!1,st=C&&!St&&!et;return typeof l=="object"?{...l,enabled:st}:{enabled:st}}}),xEt=d.createContext(null),Uq="button",EEt="Droppable";function _Et(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=iO(EEt),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:h}=d.useContext(sO),{role:p=Uq,roleDescription:m="draggable",tabIndex:g=0}=o??{},v=(l==null?void 0:l.id)===t,b=d.useContext(v?pfe:xEt),[y,S]=DE(),[w,E]=DE(),C=sEt(a,t),x=u1(n);Jc(()=>(f.set(t,{id:t,key:i,node:y,activatorNode:w,data:x}),()=>{const P=f.get(t);P&&P.key===i&&f.delete(t)}),[f,t]);const _=d.useMemo(()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":v&&p===Uq?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,g,v,m,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:_,isDragging:v,listeners:r?void 0:C,node:y,over:h,setNodeRef:S,setActivatorNodeRef:E,transform:b}}const $Et="Droppable",PEt={timeout:25};function OEt(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=iO($Et),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=d.useContext(sO),u=d.useRef({disabled:n}),f=d.useRef(!1),h=d.useRef(null),p=d.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:v}={...PEt,...o},b=u1(g??r),y=d.useCallback(()=>{if(!f.current){f.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),p.current=null},v)},[v]),S=aO({callback:y,disabled:m||!a}),w=d.useCallback((_,P)=>{S&&(P&&(S.unobserve(P),f.current=!1),_&&S.observe(_))},[S]),[E,C]=DE(w),x=u1(t);return d.useEffect(()=>{!S||!E.current||(S.disconnect(),f.current=!1,S.observe(E.current))},[E,S]),Jc(()=>(s({type:fi.RegisterDroppable,element:{id:r,key:i,disabled:n,node:E,rect:h,data:x}}),()=>s({type:fi.UnregisterDroppable,key:i,id:r})),[r]),d.useEffect(()=>{n!==u.current.disabled&&(s({type:fi.SetDroppableDisabled,id:r,key:i,disabled:n}),u.current.disabled=n)},[r,i,n,s]),{active:a,rect:h,isOver:(l==null?void 0:l.id)===r,node:E,over:l,setNodeRef:C}}function mfe(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function uw(e){return e!==null&&e>=0}const MEt=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=mfe(t,r,n),a=t[o],s=i[o];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},TEt="Sortable",REt=de.createContext({activeIndex:-1,containerId:TEt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:MEt,disabled:{draggable:!1,droppable:!1}}),IEt=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return mfe(n,r,o).indexOf(t)},kEt=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==i&&o===a?!1:n?!0:a!==o&&t===l},NEt={duration:200,easing:"ease"},gfe="transform",AEt=FE.Transition.toString({property:gfe,duration:0,easing:"linear"}),DEt={roleDescription:"sortable"};function jEt(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=d.useState(null),s=d.useRef(n);return Jc(()=>{if(!t&&n!==s.current&&r.current){const l=o.current;if(l){const c=c0(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,o]),d.useEffect(()=>{i&&a(null)},[i]),i}function FEt(e){let{animateLayoutChanges:t=kEt,attributes:n,disabled:r,data:o,getNewIndex:i=IEt,id:a,strategy:s,resizeObserverConfig:l,transition:c=NEt}=e;const{items:u,containerId:f,activeIndex:h,disabled:p,disableTransforms:m,sortedRects:g,overIndex:v,useDragOverlay:b,strategy:y}=d.useContext(REt),S=LEt(r,p),w=u.indexOf(a),E=d.useMemo(()=>({sortable:{containerId:f,index:w,items:u},...o}),[f,o,w,u]),C=d.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:x,node:_,isOver:P,setNodeRef:O}=OEt({id:a,data:E,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...l}}),{active:I,activatorEvent:M,activeNodeRect:T,attributes:D,setNodeRef:A,listeners:j,isDragging:k,over:F,setActivatorNodeRef:V,transform:W}=_Et({id:a,data:E,attributes:{...DEt,...n},disabled:S.draggable}),K=o2t(O,A),L=!!I,Q=L&&!m&&uw(h)&&uw(v),ee=!b&&k,re=ee&&Q?W:null,G=Q?re??(s??y)({rects:g,activeNodeRect:T,activeIndex:h,overIndex:v,index:w}):null,X=uw(h)&&uw(v)?i({id:a,items:u,activeIndex:h,overIndex:v}):w,ne=I==null?void 0:I.id,le=d.useRef({activeId:ne,items:u,newIndex:X,containerId:f}),ce=u!==le.current.items,oe=t({active:I,containerId:f,isDragging:k,isSorting:L,id:a,index:w,items:u,newIndex:le.current.newIndex,previousItems:le.current.items,previousContainerId:le.current.containerId,transition:c,wasDragging:le.current.activeId!=null}),se=jEt({disabled:!oe,index:w,node:_,rect:x});return d.useEffect(()=>{L&&le.current.newIndex!==X&&(le.current.newIndex=X),f!==le.current.containerId&&(le.current.containerId=f),u!==le.current.items&&(le.current.items=u)},[L,X,f,u]),d.useEffect(()=>{if(ne===le.current.activeId)return;if(ne&&!le.current.activeId){le.current.activeId=ne;return}const te=setTimeout(()=>{le.current.activeId=ne},50);return()=>clearTimeout(te)},[ne]),{active:I,activeIndex:h,attributes:D,data:E,rect:x,index:w,newIndex:X,items:u,isOver:P,isSorting:L,isDragging:k,listeners:j,node:_,overIndex:v,over:F,setNodeRef:K,setActivatorNodeRef:V,setDroppableNodeRef:O,setDraggableNodeRef:A,transform:se??G,transition:fe()};function fe(){if(se||ce&&le.current.newIndex===w)return AEt;if(!(ee&&!dF(M)||!c)&&(L||oe))return FE.Transition.toString({...c,property:gfe})}}function LEt(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Dr.Down,Dr.Right,Dr.Up,Dr.Left;const I8=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[I8.Translate.toString(e),I8.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}});async function BEt(){return ko("/kaptcha/api/v1/get",{method:"GET",params:{client:po}})}async function zEt(e,t){return ko("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:po}})}var k8=function(e,t){return k8=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},k8(e,t)};function bl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");k8(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var jn=function(){return jn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u"&&(i=e.call(this,r),t.set(o,i)),i}function yfe(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function mF(e,t,n,r,o){return n.bind(t,e,r,o)}function UEt(e,t){var n=e.length===1?vfe:yfe;return mF(e,this,n,t.cache.create(),t.serializer)}function WEt(e,t){return mF(e,this,yfe,t.cache.create(),t.serializer)}function VEt(e,t){return mF(e,this,vfe,t.cache.create(),t.serializer)}var KEt=function(){return JSON.stringify(arguments)};function gF(){this.cache=Object.create(null)}gF.prototype.get=function(e){return this.cache[e]};gF.prototype.set=function(e,t){this.cache[e]=t};var qEt={create:function(){return new gF}},va={variadic:WEt,monadic:VEt};function bfe(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}ga(function(){for(var e,t=[],n=0;n0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(t_t,function(l,c,u,f,h,p){if(c)t.minimumIntegerDigits=u.length;else{if(f&&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(Mfe.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Vq.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Vq,function(l,c,u,f,h,p){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=o.options[0];i==="w"?t=jn(jn({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=jn(jn({},t),Kq(i)));continue}if(Ofe.test(o.stem)){t=jn(jn({},t),Kq(o.stem));continue}var a=Tfe(o.stem);a&&(t=jn(jn({},t),a));var s=n_t(o.stem);s&&(t=jn(jn({},t),s))}return t}var dw={"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 o_t(e,t){for(var n="",r=0;r>1),l="a",c=i_t(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;a-- >0;)n=c+n}else o==="J"?n+="H":n+=o}return n}function i_t(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 o=dw[r||""]||dw[n||""]||dw["".concat(n,"-001")]||dw["001"];return o[0]}var ZR,a_t=new RegExp("^".concat(Pfe.source,"*")),s_t=new RegExp("".concat(Pfe.source,"*$"));function Er(e,t){return{start:e,end:t}}var l_t=!!String.prototype.startsWith&&"_a".startsWith("a",1),c_t=!!String.fromCodePoint,u_t=!!Object.fromEntries,d_t=!!String.prototype.codePointAt,f_t=!!String.prototype.trimStart,h_t=!!String.prototype.trimEnd,p_t=!!Number.isSafeInteger,m_t=p_t?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},A8=!0;try{var g_t=Ife("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");A8=((ZR=g_t.exec("a"))===null||ZR===void 0?void 0:ZR[0])==="a"}catch{A8=!1}var Gq=l_t?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},D8=c_t?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(a=t[i++],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},Yq=u_t?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},v_t=f_t?function(t){return t.trimStart()}:function(t){return t.replace(a_t,"")},y_t=h_t?function(t){return t.trimEnd()}:function(t){return t.replace(s_t,"")};function Ife(e,t){return new RegExp(e,t)}var j8;if(A8){var Xq=Ife("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");j8=function(t,n){var r;Xq.lastIndex=n;var o=Xq.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else j8=function(t,n){for(var r=[];;){var o=Rfe(t,n);if(o===void 0||kfe(o)||w_t(o))break;r.push(o),n+=o>=65536?2:1}return D8.apply(void 0,r)};var b_t=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 o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,r);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:fo.pound,location:Er(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(xr.UNMATCHED_CLOSING_TAG,Er(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&F8(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fo.literal,value:"<".concat(o,"/>"),location:Er(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:fo.tag,value:o,children:a,location:Er(r,this.clonePosition())},err:null}:this.error(xr.INVALID_TAG,Er(s,this.clonePosition())))}else return this.error(xr.UNCLOSED_TAG,Er(r,this.clonePosition()))}else return this.error(xr.INVALID_TAG,Er(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&C_t(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,n);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var l=Er(r,this.clonePosition());return{val:{type:fo.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!S_t(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 D8.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(),D8(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xr.EMPTY_ARGUMENT,Er(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(xr.MALFORMED_ARGUMENT,Er(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fo.argument,value:o,location:Er(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(xr.MALFORMED_ARGUMENT,Er(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=j8(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),a=Er(t,i);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(xr.EXPECT_ARGUMENT_TYPE,Er(a,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=y_t(f.val);if(h.length===0)return this.error(xr.EXPECT_ARGUMENT_STYLE,Er(this.clonePosition(),this.clonePosition()));var p=Er(u,this.clonePosition());c={style:h,styleLocation:p}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var g=Er(o,this.clonePosition());if(c&&Gq(c==null?void 0:c.style,"::",0)){var v=v_t(c.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(v,c.styleLocation);return f.err?f:{val:{type:fo.number,value:r,location:g,style:f.val},err:null}}else{if(v.length===0)return this.error(xr.EXPECT_DATE_TIME_SKELETON,g);var b=v;this.locale&&(b=o_t(v,this.locale));var h={type:sv.dateTime,pattern:b,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?QEt(b):{}},y=s==="date"?fo.date:fo.time;return{val:{type:y,value:r,location:g,style:h},err:null}}}return{val:{type:s==="number"?fo.number:s==="date"?fo.date:fo.time,value:r,location:g,style:(i=c==null?void 0:c.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(xr.EXPECT_SELECT_ARGUMENT_OPTIONS,Er(S,jn({},S)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(xr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Er(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(xr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),w=this.parseIdentifierIfPossible(),E=f.val}var C=this.tryParsePluralOrSelectOptions(t,s,n,w);if(C.err)return C;var m=this.tryParseArgumentClose(o);if(m.err)return m;var x=Er(o,this.clonePosition());return s==="select"?{val:{type:fo.select,value:r,options:Yq(C.val),location:x},err:null}:{val:{type:fo.plural,value:r,options:Yq(C.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:x},err:null}}default:return this.error(xr.INVALID_ARGUMENT_TYPE,Er(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(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 o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(xr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Er(o,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=ZEt(t)}catch{return this.error(xr.INVALID_NUMBER_SKELETON,n)}return{val:{type:sv.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?r_t(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,a=!1,s=[],l=new Set,c=o.value,u=o.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(xr.EXPECT_PLURAL_ARGUMENT_SELECTOR,xr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Er(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?xr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:xr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?xr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:xr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Er(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([c,{value:m.val,location:Er(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,u=i.location}return s.length===0?this.error(n==="select"?xr.EXPECT_SELECT_ARGUMENT_SELECTOR:xr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Er(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(xr.MISSING_OTHER_CLAUSE,Er(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var l=Er(o,this.clonePosition());return i?(a*=r,m_t(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=Rfe(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(Gq(this.message,t,this.offset())){for(var n=0;n=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()&&kfe(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 F8(e){return e>=97&&e<=122||e>=65&&e<=90}function S_t(e){return F8(e)||e===47}function C_t(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 kfe(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function w_t(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 L8(e){e.forEach(function(t){if(delete t.location,xfe(t)||Efe(t))for(var n in t.options)delete t.options[n].location,L8(t.options[n].value);else Sfe(t)&&$fe(t.style)||(Cfe(t)||wfe(t))&&N8(t.style)?delete t.style.location:_fe(t)&&L8(t.children)})}function x_t(e,t){t===void 0&&(t={}),t=jn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new b_t(e,t).parse();if(n.err){var r=SyntaxError(xr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||L8(n.val),n.val}var Zc;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Zc||(Zc={}));var Hf=function(e){bl(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Qq=function(e){bl(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Zc.INVALID_VALUE,i)||this}return t}(Hf),E_t=function(e){bl(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Zc.INVALID_VALUE,o)||this}return t}(Hf),__t=function(e){bl(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,'"'),Zc.MISSING_VALUE,r)||this}return t}(Hf),fa;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(fa||(fa={}));function $_t(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==fa.literal||n.type!==fa.literal?t.push(n):r.value+=n.value,t},[])}function Nfe(e){return typeof e=="function"}function yx(e,t,n,r,o,i,a){if(e.length===1&&Wq(e[0]))return[{type:fa.literal,value:e[0].value}];for(var s=[],l=0,c=e;l"u"?td:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||td},Lxt=function(t,n,r){var o=t,i=o.breadcrumbName,a=o.title,s=o.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?N.jsx("span",{children:a||i}):N.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:a||i})},Bxt=function(t,n){var r=n.formatMessage,o=n.menu;return t.locale&&r&&(o==null?void 0:o.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},zxt=function(t,n){var r=t.get(n);if(!r){var o=Array.from(t.keys())||[],i=o.find(function(a){try{return a!=null&&a.startsWith("http")?!1:S8(a.replace("?",""))(n)}catch(s){return console.log("path",a,s),!1}});i&&(r=t.get(i))}return r||{path:""}},Hxt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},Uxt=function(t,n,r){var o=jxt(t==null?void 0:t.pathname),i=o.map(function(a){var s=zxt(n,a),l=Bxt(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 i},Wxt=function(t){var n=Hxt(t),r=n.location,o=n.breadcrumbMap;return r&&r.pathname&&o?Uxt(r,o,t):[]},Vxt=function(t,n){var r=t.breadcrumbRender,o=t.itemRender,i=n.breadcrumbProps||{},a=i.minLength,s=a===void 0?2:a,l=Wxt(t),c=function(h){for(var p=o||Lxt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function Kxt(e){return Ze(e).reduce(function(t,n){var r=$e(n,2),o=r[0],i=r[1];return t[o]=i,t},{})}var qxt=function e(t,n,r,o){var i=Ext(t,(n==null?void 0:n.locale)||!1,r,!0),a=i.menuData,s=i.breadcrumb;return o?e(o(a),n,r,void 0):{breadcrumb:Kxt(s),breadcrumbMap:s,menuData:a}},Gxt=function(t){var n=d.useState({}),r=$e(n,2),o=r[0],i=r[1];return d.useEffect(function(){i(Js({layout:Ht(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]),o},Yxt=["id","defaultMessage"],Xxt=["fixSiderbar","navTheme","layout"],Tq=0,Qxt=function(t,n){var r;return t.headerRender===!1||t.pure?null:N.jsx(iwt,z(z({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},Jxt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(z({},t),N.jsx(xCt,{})):null},Zxt=function(t,n){var r,o=t.layout,i=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 f=t.menuData;if(l&&(s!==!1||o==="mix")&&!i){var h=a||n,p=$e(h,1),m=p[0];if(m){var g;f=((g=t.menuData)===null||g===void 0||(g=g.find(function(S){return S.key===m}))===null||g===void 0?void 0:g.children)||[]}else f=[]}var v=nO(f||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(o==="top"&&!i){var b;return N.jsx(Mq,z(z({matchMenuKeys:n},t),{},{hide:!0,stylish:(b=t.stylish)===null||b===void 0?void 0:b.sider}))}var y=N.jsx(Mq,z(z({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,y):y},e2t=function(t,n){var r=n.pageTitleRender,o=xq(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var i=r(t,o.title,o);if(typeof i=="string")return xq(z(z({},o),{},{title:i}));yr(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return o},t2t=function(t,n,r){return t?n?64:r:0},n2t=function(t){var n,r,o,i,a,s,l,c,u,f,h,p,m,g,v=t||{},b=v.children,y=v.onCollapse,S=v.location,w=S===void 0?{pathname:"/"}:S,E=v.contentStyle,C=v.route,x=v.defaultCollapsed,_=v.style,P=v.siderWidth,O=v.menu,I=v.siderMenuType,M=v.isChildrenLayout,T=v.menuDataRender,D=v.actionRef,A=v.bgLayoutImgList,j=v.formatMessage,k=v.loading,F=d.useMemo(function(){return P||(t.layout==="mix"?215:256)},[t.layout,P]),V=d.useContext(Mn.ConfigContext),W=(n=t.prefixCls)!==null&&n!==void 0?n:V.getPrefixCls("pro"),K=xn(!1,{value:O==null?void 0:O.loading,onChange:O==null?void 0:O.onLoadingChange}),L=$e(K,2),Q=L[0],ee=L[1],re=d.useState(function(){return Tq+=1,"pro-layout-".concat(Tq)}),ie=$e(re,1),G=ie[0],X=d.useCallback(function(at){var $t=at.id,Bt=at.defaultMessage,xt=At(at,Yxt);if(j)return j(z({id:$t,defaultMessage:Bt},xt));var bt=vwt();return bt[$t]?bt[$t]:Bt},[j]),ne=sj([G,O==null?void 0:O.params],function(){var at=Bo(nr().mark(function $t(Bt){var xt,bt,Ft,Re;return nr().wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return bt=$e(Bt,2),Ft=bt[1],ee(!0),tt.next=4,O==null||(xt=O.request)===null||xt===void 0?void 0:xt.call(O,Ft||{},(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[]);case 4:return Re=tt.sent,ee(!1),tt.abrupt("return",Re);case 7:case"end":return tt.stop()}},$t)}));return function($t){return at.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),le=ne.data,ce=ne.mutate,oe=ne.isLoading;d.useEffect(function(){ee(oe)},[oe]);var se=aj(),fe=se.cache;d.useEffect(function(){return function(){fe instanceof Map&&fe.delete(G)}},[]);var te=d.useMemo(function(){return qxt(le||(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[],O,X,T)},[X,O,T,le,C==null?void 0:C.children,C==null?void 0:C.routes]),he=te||{},pe=he.breadcrumb,Oe=he.breadcrumbMap,Me=he.menuData,Se=Me===void 0?[]:Me;D&&O!==null&&O!==void 0&&O.request&&(D.current={reload:function(){ce()}});var ye=d.useMemo(function(){return Oxt(w.pathname||"/",Se||[])},[w.pathname,Se]),ve=d.useMemo(function(){return Array.from(new Set(ye.map(function(at){return at.key||at.path||""})))},[ye]),be=ye[ye.length-1]||{},Pe=Gxt(be),Ne=z(z({},t),Pe),U=Ne.fixSiderbar;Ne.navTheme;var H=Ne.layout,q=At(Ne,Xxt),me=ynt(),Ce=d.useMemo(function(){return(me==="sm"||me==="xs")&&!t.disableMobile},[me,t.disableMobile]),ue=H!=="top"&&!Ce,Le=xn(function(){return x!==void 0?x:!!(Ce||me==="md")},{value:t.collapsed,onChange:y}),He=$e(Le,2),ge=He[0],De=He[1],qe=Yn(z(z(z({prefixCls:W},t),{},{siderWidth:F},Pe),{},{formatMessage:X,breadcrumb:pe,menu:z(z({},O),{},{type:I||(O==null?void 0:O.type),loading:Q}),layout:H}),["className","style","breadcrumbRender"]),Fe=e2t(z(z({pathname:w.pathname},qe),{},{breadcrumbMap:Oe}),t),Ke=Vxt(z(z({},qe),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:Oe}),t),Ue=Zxt(z(z({},qe),{},{menuData:Se,onCollapse:De,isMobile:Ce,collapsed:ge}),ve),Ve=Qxt(z(z({},qe),{},{children:null,hasSiderMenu:!!Ue,menuData:Se,isMobile:Ce,collapsed:ge,onCollapse:De}),ve),Tt=Jxt(z({isMobile:Ce,collapsed:ge},qe)),et=d.useContext(cq),st=et.isChildrenLayout,yt=M!==void 0?M:st,gt="".concat(W,"-layout"),Lt=Dxt(gt),St=Lt.wrapSSR,wt=Lt.hashId,Nt=xe(t.className,wt,"ant-design-pro",gt,Z(Z(Z(Z(Z({},"screen-".concat(me),me),"".concat(gt,"-top-menu"),H==="top"),"".concat(gt,"-is-children"),yt),"".concat(gt,"-fix-siderbar"),U),"".concat(gt,"-").concat(H),H)),Be=t2t(!!ue,ge,F),We={position:"relative"};(yt||E&&E.minHeight)&&(We.minHeight=0),d.useEffect(function(){var at;(at=t.onPageChange)===null||at===void 0||at.call(t,t.location)},[w.pathname,(r=w.pathname)===null||r===void 0?void 0:r.search]);var je=d.useState(!1),Xe=$e(je,2),pt=Xe[0],vt=Xe[1],Mt=d.useState(0),Et=$e(Mt,2),ft=Et[0],dt=Et[1];_Ze(Fe,t.title||!1);var Rt=d.useContext(Yl),Ct=Rt.token,Wt=d.useMemo(function(){return A&&A.length>0?A==null?void 0:A.map(function(at,$t){return N.jsx("img",{src:at.src,style:z({position:"absolute"},at)},$t)}):null},[A]);return St(N.jsx(cq.Provider,{value:z(z({},qe),{},{breadcrumb:Ke,menuData:Se,isMobile:Ce,collapsed:ge,hasPageContainer:ft,setHasPageContainer:dt,isChildrenLayout:!0,title:Fe.pageName,hasSiderMenu:!!Ue,hasHeader:!!Ve,siderWidth:Be,hasFooter:!!Tt,hasFooterToolbar:pt,setHasFooterToolbar:vt,pageTitleInfo:Fe,matchMenus:ye,matchMenuKeys:ve,currentMenu:be}),children:t.pure?N.jsx(N.Fragment,{children:b}):N.jsxs("div",{className:Nt,children:[Wt||(o=Ct.layout)!==null&&o!==void 0&&o.bgLayout?N.jsx("div",{className:xe("".concat(gt,"-bg-list"),wt),children:Wt}):null,N.jsxs(ei,{style:z({minHeight:"100%",flexDirection:Ue?"row":void 0},_),children:[N.jsx(Mn,{theme:{hashed:dg(),token:{controlHeightLG:((i=Ct.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(Ct==null?void 0:Ct.controlHeightLG)},components:{Menu:kce({colorItemBg:((a=Ct.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorMenuBackground)||"transparent",colorSubItemBg:((s=Ct.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:Ct.borderRadius,colorItemBgSelected:((l=Ct.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(Ct==null?void 0:Ct.colorBgTextHover),colorItemBgHover:((c=Ct.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(Ct==null?void 0:Ct.colorBgTextHover),colorItemBgActive:((u=Ct.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(Ct==null?void 0:Ct.colorBgTextActive),colorItemBgSelectedHorizontal:((f=Ct.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(Ct==null?void 0:Ct.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((h=Ct.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenu)||(Ct==null?void 0:Ct.colorTextSecondary),colorItemTextHover:((p=Ct.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=Ct.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Ct==null?void 0:Ct.colorBgElevated,subMenuItemBg:Ct==null?void 0:Ct.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Ct==null?void 0:Ct.colorBgElevated})}},children:Ue}),N.jsxs("div",{style:We,className:"".concat(gt,"-container ").concat(wt).trim(),children:[Ve,N.jsx(Mxt,z(z({hasPageContainer:ft,isChildrenLayout:yt},q),{},{hasHeader:!!Ve,prefixCls:gt,style:E,children:k?N.jsx(yCt,{}):b})),Tt,pt&&N.jsx("div",{className:"".concat(gt,"-has-footer"),style:{height:64,marginBlockStart:(g=Ct.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},Qde=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return N.jsx(Mn,{theme:n?{token:{colorPrimary:n}}:void 0,children:N.jsx(MP,z(z({},r),{},{token:t.token,prefixCls:t.prefixCls,children:N.jsx(n2t,z(z({logo:N.jsx(Txt,{})},Fde),{},{location:cj()?window.location:void 0},t))}))})};function r2t(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const oO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s0(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function aF(e){return"nodeType"in e}function Qa(e){var t,n;return e?s0(e)?e:aF(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function sF(e){const{Document:t}=Qa(e);return e instanceof t}function RS(e){return s0(e)?!1:e instanceof Qa(e).HTMLElement}function Jde(e){return e instanceof Qa(e).SVGElement}function l0(e){return e?s0(e)?e.document:aF(e)?sF(e)?e:RS(e)||Jde(e)?e.ownerDocument:document:document:document}const ad=oO?d.useLayoutEffect:d.useEffect;function lF(e){const t=d.useRef(e);return ad(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function u1(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return ad(()=>{n.current!==e&&(n.current=e)},t),n}function IS(e,t){const n=d.useRef();return d.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function jE(e){const t=lF(e),n=d.useRef(null),r=d.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function $8(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let GR={};function iO(e,t){return d.useMemo(()=>{if(t)return t;const n=GR[e]==null?0:GR[e]+1;return GR[e]=n,e+"-"+n},[e,t])}function Zde(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const s=Object.entries(a);for(const[l,c]of s){const u=i[l];u!=null&&(i[l]=u+e*c)}return i},{...t})}}const fg=Zde(1),FE=Zde(-1);function i2t(e){return"clientX"in e&&"clientY"in e}function cF(e){if(!e)return!1;const{KeyboardEvent:t}=Qa(e.target);return t&&e instanceof t}function a2t(e){if(!e)return!1;const{TouchEvent:t}=Qa(e.target);return t&&e instanceof t}function P8(e){if(a2t(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return i2t(e)?{x:e.clientX,y:e.clientY}:null}const d1=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[d1.Translate.toString(e),d1.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Rq="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function s2t(e){return e.matches(Rq)?e:e.querySelector(Rq)}const l2t={display:"none"};function c2t(e){let{id:t,value:n}=e;return de.createElement("div",{id:t,style:l2t},n)}function u2t(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return de.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function d2t(){const[e,t]=d.useState("");return{announce:d.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}async function f2t(){return ko("/kaptcha/api/v1/get",{method:"GET",params:{client:po}})}async function h2t(e,t){return ko("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:po}})}var O8=function(e,t){return O8=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},O8(e,t)};function bl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");O8(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var jn=function(){return jn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u"&&(i=e.call(this,r),t.set(o,i)),i}function tfe(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function uF(e,t,n,r,o){return n.bind(t,e,r,o)}function m2t(e,t){var n=e.length===1?efe:tfe;return uF(e,this,n,t.cache.create(),t.serializer)}function g2t(e,t){return uF(e,this,tfe,t.cache.create(),t.serializer)}function v2t(e,t){return uF(e,this,efe,t.cache.create(),t.serializer)}var y2t=function(){return JSON.stringify(arguments)};function dF(){this.cache=Object.create(null)}dF.prototype.get=function(e){return this.cache[e]};dF.prototype.set=function(e,t){this.cache[e]=t};var b2t={create:function(){return new dF}},va={variadic:g2t,monadic:v2t};function nfe(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}ga(function(){for(var e,t=[],n=0;n0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(P2t,function(l,c,u,f,h,p){if(c)t.minimumIntegerDigits=u.length;else{if(f&&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(ffe.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(kq.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(kq,function(l,c,u,f,h,p){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=o.options[0];i==="w"?t=jn(jn({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=jn(jn({},t),Nq(i)));continue}if(dfe.test(o.stem)){t=jn(jn({},t),Nq(o.stem));continue}var a=hfe(o.stem);a&&(t=jn(jn({},t),a));var s=O2t(o.stem);s&&(t=jn(jn({},t),s))}return t}var dw={"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 T2t(e,t){for(var n="",r=0;r>1),l="a",c=R2t(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;a-- >0;)n=c+n}else o==="J"?n+="H":n+=o}return n}function R2t(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 o=dw[r||""]||dw[n||""]||dw["".concat(n,"-001")]||dw["001"];return o[0]}var YR,I2t=new RegExp("^".concat(ufe.source,"*")),k2t=new RegExp("".concat(ufe.source,"*$"));function Er(e,t){return{start:e,end:t}}var N2t=!!String.prototype.startsWith&&"_a".startsWith("a",1),A2t=!!String.fromCodePoint,D2t=!!Object.fromEntries,j2t=!!String.prototype.codePointAt,F2t=!!String.prototype.trimStart,L2t=!!String.prototype.trimEnd,B2t=!!Number.isSafeInteger,z2t=B2t?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},T8=!0;try{var H2t=mfe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");T8=((YR=H2t.exec("a"))===null||YR===void 0?void 0:YR[0])==="a"}catch{T8=!1}var Dq=N2t?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},R8=A2t?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(a=t[i++],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},jq=D2t?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},U2t=F2t?function(t){return t.trimStart()}:function(t){return t.replace(I2t,"")},W2t=L2t?function(t){return t.trimEnd()}:function(t){return t.replace(k2t,"")};function mfe(e,t){return new RegExp(e,t)}var I8;if(T8){var Fq=mfe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");I8=function(t,n){var r;Fq.lastIndex=n;var o=Fq.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else I8=function(t,n){for(var r=[];;){var o=pfe(t,n);if(o===void 0||gfe(o)||G2t(o))break;r.push(o),n+=o>=65536?2:1}return R8.apply(void 0,r)};var V2t=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 o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,r);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:fo.pound,location:Er(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(xr.UNMATCHED_CLOSING_TAG,Er(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&k8(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fo.literal,value:"<".concat(o,"/>"),location:Er(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:fo.tag,value:o,children:a,location:Er(r,this.clonePosition())},err:null}:this.error(xr.INVALID_TAG,Er(s,this.clonePosition())))}else return this.error(xr.UNCLOSED_TAG,Er(r,this.clonePosition()))}else return this.error(xr.INVALID_TAG,Er(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&q2t(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,n);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var l=Er(r,this.clonePosition());return{val:{type:fo.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!K2t(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 R8.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(),R8(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xr.EMPTY_ARGUMENT,Er(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(xr.MALFORMED_ARGUMENT,Er(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fo.argument,value:o,location:Er(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(xr.MALFORMED_ARGUMENT,Er(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=I8(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),a=Er(t,i);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(xr.EXPECT_ARGUMENT_TYPE,Er(a,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=W2t(f.val);if(h.length===0)return this.error(xr.EXPECT_ARGUMENT_STYLE,Er(this.clonePosition(),this.clonePosition()));var p=Er(u,this.clonePosition());c={style:h,styleLocation:p}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var g=Er(o,this.clonePosition());if(c&&Dq(c==null?void 0:c.style,"::",0)){var v=U2t(c.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(v,c.styleLocation);return f.err?f:{val:{type:fo.number,value:r,location:g,style:f.val},err:null}}else{if(v.length===0)return this.error(xr.EXPECT_DATE_TIME_SKELETON,g);var b=v;this.locale&&(b=T2t(v,this.locale));var h={type:sv.dateTime,pattern:b,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?x2t(b):{}},y=s==="date"?fo.date:fo.time;return{val:{type:y,value:r,location:g,style:h},err:null}}}return{val:{type:s==="number"?fo.number:s==="date"?fo.date:fo.time,value:r,location:g,style:(i=c==null?void 0:c.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(xr.EXPECT_SELECT_ARGUMENT_OPTIONS,Er(S,jn({},S)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(xr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Er(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(xr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),w=this.parseIdentifierIfPossible(),E=f.val}var C=this.tryParsePluralOrSelectOptions(t,s,n,w);if(C.err)return C;var m=this.tryParseArgumentClose(o);if(m.err)return m;var x=Er(o,this.clonePosition());return s==="select"?{val:{type:fo.select,value:r,options:jq(C.val),location:x},err:null}:{val:{type:fo.plural,value:r,options:jq(C.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:x},err:null}}default:return this.error(xr.INVALID_ARGUMENT_TYPE,Er(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(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 o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(xr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Er(o,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=_2t(t)}catch{return this.error(xr.INVALID_NUMBER_SKELETON,n)}return{val:{type:sv.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?M2t(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,a=!1,s=[],l=new Set,c=o.value,u=o.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(xr.EXPECT_PLURAL_ARGUMENT_SELECTOR,xr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Er(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?xr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:xr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?xr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:xr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Er(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([c,{value:m.val,location:Er(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,u=i.location}return s.length===0?this.error(n==="select"?xr.EXPECT_SELECT_ARGUMENT_SELECTOR:xr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Er(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(xr.MISSING_OTHER_CLAUSE,Er(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var l=Er(o,this.clonePosition());return i?(a*=r,z2t(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=pfe(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(Dq(this.message,t,this.offset())){for(var n=0;n=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()&&gfe(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 k8(e){return e>=97&&e<=122||e>=65&&e<=90}function K2t(e){return k8(e)||e===47}function q2t(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 gfe(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function G2t(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 N8(e){e.forEach(function(t){if(delete t.location,afe(t)||sfe(t))for(var n in t.options)delete t.options[n].location,N8(t.options[n].value);else rfe(t)&&cfe(t.style)||(ofe(t)||ife(t))&&M8(t.style)?delete t.style.location:lfe(t)&&N8(t.children)})}function Y2t(e,t){t===void 0&&(t={}),t=jn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new V2t(e,t).parse();if(n.err){var r=SyntaxError(xr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||N8(n.val),n.val}var Jc;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Jc||(Jc={}));var Hf=function(e){bl(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Lq=function(e){bl(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Jc.INVALID_VALUE,i)||this}return t}(Hf),X2t=function(e){bl(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Jc.INVALID_VALUE,o)||this}return t}(Hf),Q2t=function(e){bl(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,'"'),Jc.MISSING_VALUE,r)||this}return t}(Hf),fa;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(fa||(fa={}));function J2t(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==fa.literal||n.type!==fa.literal?t.push(n):r.value+=n.value,t},[])}function vfe(e){return typeof e=="function"}function yx(e,t,n,r,o,i,a){if(e.length===1&&Iq(e[0]))return[{type:fa.literal,value:e[0].value}];for(var s=[],l=0,c=e;l"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=x_t,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}(),xp;(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"})(xp||(xp={}));var IS=function(e){bl(t,e);function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` +`,Jc.MISSING_INTL_API,a);var w=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));S=u.options[w]||u.options.other}if(!S)throw new Lq(u.value,h,Object.keys(u.options),a);s.push.apply(s,yx(S.value,t,n,r,o,h-(u.offset||0)));continue}}return J2t(s)}function Z2t(e,t){return t?jn(jn(jn({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=jn(jn({},e[r]),t[r]||{}),n},{})):e}function eEt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Z2t(e[r],t[r]),n},jn({},e)):e}function XR(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function tEt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ga(function(){for(var t,n=[],r=0;r"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=Y2t,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}(),xp;(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"})(xp||(xp={}));var kS=function(e){bl(t,e);function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(a?` `.concat(a.message,` -`).concat(a.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),T_t=function(e){bl(t,e);function t(n,r){return e.call(this,xp.UNSUPPORTED_FORMATTER,n,r)||this}return t}(IS),R_t=function(e){bl(t,e);function t(n,r){return e.call(this,xp.INVALID_CONFIG,n,r)||this}return t}(IS),Jq=function(e){bl(t,e);function t(n,r){return e.call(this,xp.MISSING_DATA,n,r)||this}return t}(IS),Sl=function(e){bl(t,e);function t(n,r,o){var i=e.call(this,xp.FORMAT_ERROR,"".concat(n,` +`).concat(a.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),nEt=function(e){bl(t,e);function t(n,r){return e.call(this,xp.UNSUPPORTED_FORMATTER,n,r)||this}return t}(kS),rEt=function(e){bl(t,e);function t(n,r){return e.call(this,xp.INVALID_CONFIG,n,r)||this}return t}(kS),Bq=function(e){bl(t,e);function t(n,r){return e.call(this,xp.MISSING_DATA,n,r)||this}return t}(kS),Sl=function(e){bl(t,e);function t(n,r,o){var i=e.call(this,xp.FORMAT_ERROR,"".concat(n,` Locale: `).concat(r,` -`),o)||this;return i.locale=r,i}return t}(IS),tI=function(e){bl(t,e);function t(n,r,o,i){var a=e.call(this,"".concat(n,` +`),o)||this;return i.locale=r,i}return t}(kS),QR=function(e){bl(t,e);function t(n,r,o,i){var a=e.call(this,"".concat(n,` MessageID: `).concat(o==null?void 0:o.id,` Default Message: `).concat(o==null?void 0:o.defaultMessage,` Description: `).concat(o==null?void 0:o.description,` -`),r,i)||this;return a.descriptor=o,a.locale=r,a}return t}(Sl),I_t=function(e){bl(t,e);function t(n,r){var o=e.call(this,xp.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(i){var a;return(a=i.value)!==null&&a!==void 0?a:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(IS);function Qp(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var k_t=function(e){},N_t=function(e){},Dfe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:k_t,onWarn:N_t};function jfe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ah(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function A_t(e){e===void 0&&(e=jfe());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=ga(function(){for(var s,l=[],c=0;c needs to exist in the component ancestry.")}var Hfe=jn(jn({},Dfe),{textComponent:d.Fragment});function r$t(e){return function(t){return e(d.Children.toArray(t))}}function z8(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i needs to exist in the component ancestry.")}var _fe=jn(jn({},bfe),{textComponent:d.Fragment});function MEt(e){return function(t){return e(d.Children.toArray(t))}}function D8(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i{const n=eo(),[r,o]=d.useState(),[i,a]=d.useState(),s=async()=>{const u=await BEt();u.data.code===200&&(o(u.data.data.captchaUid),a(u.data.data.captchaImage))},l=async(u,f)=>{const h=await zEt(u,f);console.log("checkCaptcha response",h),h.data.code===200?t&&t(!0):t&&t(!1)};d.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 N.jsx(N.Fragment,{children:i&&N.jsxs(N.Fragment,{children:[N.jsx(qr,{onChange:c,prefix:N.jsx(PUe,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),N.jsx("img",{src:i,alt:"captcha",onClick:s})]})})},v$t=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const o=eo();return d.useEffect(()=>{const i=localStorage.getItem(ms);if(i)try{const{username:a,remember:s}=JSON.parse(i);a&&(r==null||r(a,!!s))}catch(a){console.error("Failed to parse saved credentials:",a)}},[r]),N.jsx(N.Fragment,{children:e==="account"&&N.jsxs("div",{children:[N.jsx(Lr,{name:"username",fieldProps:{size:"large",prefix:N.jsx(Kse,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const i=localStorage.getItem(ms);if(i)try{const a=JSON.parse(i),{username:s,...l}=a;console.log("username",s),console.log("rest",l),localStorage.setItem(ms,JSON.stringify(l))}catch(a){console.error("Failed to parse saved credentials:",a)}}},placeholder:o.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),N.jsx(Lr.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},placeholder:o.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),N.jsx(pr.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx(u0,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function y$t(e){return ko("/auth/v1/login",{method:"POST",data:{...e,client:po}})}async function wF(e){return ko("/auth/v1/send/mobile",{method:"POST",data:{...e,client:po}})}async function Xfe(e){return ko("/auth/v1/send/email",{method:"POST",data:{...e,client:po}})}async function b$t(e){return ko("/auth/v1/login/mobile",{method:"POST",data:{...e,client:po}})}async function S$t(e,t){return ko("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:po}})}async function C$t(e){return ko("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:po}})}async function w$t(e){return ko("/api/v1/user/logout",{method:"POST",data:{client:po}})}const x$t=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const o=eo(),[i,a]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1);d.useEffect(()=>{const g=localStorage.getItem(ms);if(g)try{const{mobile:v}=JSON.parse(g);v&&(r==null||r(v))}catch(v){console.error("Failed to parse saved credentials:",v)}},[r]);const f=async(g,v)=>{a(g),l(v),t&&t(g,v)},h=async g=>{u(g),n&&n(g)},p=[{label:o.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:o.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:o.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:o.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:o.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:o.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:o.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:o.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:o.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:o.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:o.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:o.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:o.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:o.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:o.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:o.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:o.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:o.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:o.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:o.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:o.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:o.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],m=g=>{const v=g.value.includes("-")?g.value.split("-")[0]:g.value;return N.jsxs("div",{children:[N.jsx("span",{role:"img","aria-label":g.label,style:{marginRight:8},children:g.icon}),g.label," (+",v,")"]})};return N.jsx(N.Fragment,{children:e==="mobile"&&N.jsxs(N.Fragment,{children:[N.jsxs(sP,{gutter:16,children:[N.jsx(gp,{span:10,children:N.jsx(Bj,{name:"country",options:p,fieldProps:{size:"large",placeholder:o.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:m},initialValue:"86"})}),N.jsx(gp,{span:14,children:N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(sS,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const g=localStorage.getItem(ms);if(g)try{const v=JSON.parse(g),{mobile:b,...y}=v;console.log("saved:",b,v),localStorage.setItem(ms,JSON.stringify(y))}catch(v){console.error("Failed to parse saved credentials:",v)}}},name:"mobile",placeholder:o.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:N.jsx(zl,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),N.jsx(pr.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx(u0,{onKaptchaChange:f,onKaptchaCheck:h})}),N.jsx(mS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:o.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(g,v)=>g?`${v} ${o.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:o.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async g=>{if(console.log("mobile:",g),g&&g.length===11){const b=await wF({mobile:g,type:q0e,captchaUid:i,captchaCode:s,platform:cl});if(console.log("sendMobileCode:",b.data),b.data.code!==200){gn.error(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}gn.success(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else gn.error("手机号格式错误")}}),N.jsx(Ine,{message:N.jsx(zl,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},E$t=({loginType:e})=>{const t=eo(),n=Ya(),r=yi(p=>p.setUserInfo),o=E1(p=>p.setAccessToken),{deviceUid:i,setDeviceUid:a}=yi(p=>({deviceUid:p.deviceUid,setDeviceUid:p.setDeviceUid})),[s,l]=d.useState("login"),[c,u]=d.useState("loading"),f=async p=>{console.log("handleScanLogin values: ",p),gn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await C$t({...p});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),o(m.data.data.accessToken),n("/chat"),j6()):(gn.destroy(),gn.error(m.data.message))},h=async p=>{if(e!="scan")return;const m=await S$t(i,p);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===J0e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===Z0e)u("scanned");else if(g.status===tye)u("expired");else if(g.status===eye){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:cl};console.log("login scan info:",v),await f(v)}}else gn.error(m.data.message)};return d.useEffect(()=>{console.log("scan deviceUid:",i),(i===void 0||i==="")&&a(Y_()),h(!0);const p=setInterval(()=>{h(!1)},3e3);return()=>{clearInterval(p)}},[e,i]),N.jsx(N.Fragment,{children:e==="scan"&&N.jsx(N.Fragment,{children:N.jsx(Xse,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),h(!0)}})})})},Qfe=()=>{const{token:e}=pa.useToken(),{isCustomServer:t,setIsCustomServer:n}=d.useContext(ia),[r]=pr.useForm(),[o,i]=d.useState(!1),[a,s]=d.useState(""),[l,c]=d.useState(""),u=eo(),f=()=>{console.log("switch server"),n(m=>!m)};d.useEffect(()=>{a&&a.length>0&&(r.setFieldsValue({apiUrl:a}),console.log("apiUrl:",a))},[a]),d.useEffect(()=>{if(t){const m=localStorage.getItem(Bm);m==="true"&&(i(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(iy);g&&r.setFieldsValue({apiUrl:am(g)});const v=localStorage.getItem(ay);v&&r.setFieldsValue({websocketUrl:am(v)})}},[t]);const h=m=>{if(console.log("handleCustomServerChange e:",m),i(m.target.checked),m.target.checked){const g=localStorage.getItem(iy);g&&r.setFieldsValue({apiUrl:am(g)});const v=localStorage.getItem(ay);v&&r.setFieldsValue({websocketUrl:am(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(Bm,"false")},p=(m,g)=>(console.log("props:",m,g),N.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[N.jsx(Hn,{icon:N.jsx(cHe,{}),onClick:f,children:u.formatMessage({id:"server.button.back"})},"back"),N.jsx(Hn,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=am(v.trim());let b=m.form.getFieldValue("websocketUrl");b=am(b.trim()),v&&v.trim().length>0&&b&&b.trim().length>0?(localStorage.setItem(iy,v),localStorage.setItem(ay,b),localStorage.setItem(Bm,"true"),gn.success(u.formatMessage({id:"server.save.success"}))):gn.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),N.jsx(Hn,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(Bm,"false"),localStorage.setItem(iy,""),localStorage.setItem(ay,""),gn.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),N.jsx(Hn,{onClick:()=>{Qb("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return N.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:N.jsxs(pr,{className:"ant-pro-form-server-main",form:r,submitter:{render:p},children:[N.jsx(Fj,{name:"isCustomServerEnabled",fieldProps:{onChange:h},children:u.formatMessage({id:"server.custom.enable"})}),o&&N.jsxs(N.Fragment,{children:[N.jsx(Lr,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!o,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),N.jsx(Lr,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!o,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},_$t=({isModel:e=!1})=>{const t=eo(),[n]=pr.useForm(),r=Ya(),{token:o}=pa.useToken(),[i,a]=d.useState("/kanban/icons/logo.png"),[s,l]=d.useState(""),[c,u]=d.useState(""),[f,h]=d.useState("account"),p=yi(k=>k.setUserInfo),m=E1(k=>k.setAccessToken),{isCustomServer:g,setIsCustomServer:v}=d.useContext(ia),[b,y]=d.useState(!1),S=k=>{console.log(`onPrivacyProtocolChange checked = ${k.target.checked}`),y(k.target.checked);const F=localStorage.getItem(ms);if(F)try{const{remember:V}=JSON.parse(F);V&&setTimeout(()=>{n.setFieldsValue({remember:V})},0)}catch(V){console.error("Failed to parse saved credentials:",V)}},w=()=>{Qb("https://www.weiyuai.cn/protocol.html")},[E,C]=d.useState(""),x=async(k,F)=>{C(k),n.setFieldValue("captchaCode",F)},_=async k=>{console.log("handleKaptchaCheck:",k)},P=async k=>{if(console.log("handleSubmit values: ",k,f),!b){gn.error("请阅读并同意隐私协议");return}gn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const F=localStorage.getItem(ms);let V=!1;if(F)try{V=JSON.parse(F).remember}catch(K){console.error("Failed to parse saved credentials:",K)}localStorage.setItem(ms,JSON.stringify({username:k.username,remember:V}));const W=await y$t({...k});console.log("LoginResult:",W.data),W.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),V&&localStorage.setItem(ms,JSON.stringify({username:k.username,password:k.password,remember:!0})),p(W.data.data.user),m(W.data.data.accessToken),e||r("/"),j6()):(gn.destroy(),gn.error(t.formatMessage({id:W.data.message,defaultMessage:W.data.message})))},O=k=>{n.setFieldsValue({mobile:k})},I=async k=>{if(!b){gn.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const F=localStorage.getItem(ms);let V={};if(F)try{V=JSON.parse(F)}catch(K){console.error("Failed to parse saved credentials:",K)}localStorage.setItem(ms,JSON.stringify({...V,mobile:k.mobile}));const W=await b$t({...k});console.log("LoginMobileResult:",W),W.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),p(W.data.data.user),m(W.data.data.accessToken),e||r("/"),j6()):(gn.destroy(),gn.error(t.formatMessage({id:W.data.message,defaultMessage:W.data.message})))},M=()=>{console.log("switch server"),v(k=>!k)},T=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},D=()=>{if(Ag)return{}},A=(k,F)=>{n.setFieldsValue({username:k,remember:F});const V=localStorage.getItem(ms);if(V&&F)try{const{password:W}=JSON.parse(V);W&&n.setFieldsValue({password:W})}catch(W){console.error("Failed to parse saved credentials:",W)}},j=async()=>{var F,V,W,K,L,Q,ee;console.log("getConfig");const k=await fJ();(F=k==null?void 0:k.custom)!=null&&F.enabled?((V=k==null?void 0:k.custom)!=null&&V.logo?a((W=k==null?void 0:k.custom)==null?void 0:W.logo):a("/kanban/icons/logo.png"),(K=k==null?void 0:k.custom)!=null&&K.name?l((L=k==null?void 0:k.custom)==null?void 0:L.name):l(t.formatMessage({id:"app.title"})),(Q=k==null?void 0:k.custom)!=null&&Q.description?u((ee=k==null?void 0:k.custom)==null?void 0:ee.description):u(t.formatMessage({id:"slogan"}))):(a("/kanban/icons/logo.png"),l(t.formatMessage({id:"app.title"})),u(t.formatMessage({id:"slogan"}))),uJ()};return d.useEffect(()=>{Gee(),j()},[]),N.jsx(MP,{hashed:!1,children:N.jsxs("div",{style:{backgroundColor:o.colorBgContainer,textAlign:"center",height:"100%"},children:[!g&&N.jsxs(fde,{form:n,contentStyle:{minWidth:400},logo:N.jsx("img",{alt:"logo",src:i}),title:s,subTitle:c,initialValues:D(),onFinish:async k=>{if(console.log("login:",k),f==="account"){const F={username:k.username,password:k.password,captchaUid:E,captchaCode:k.captchaCode,platform:cl};await P(F)}else if(f==="mobile"){const F={mobile:k.mobile,code:k.code,captchaUid:E,captchaCode:k.captchaCode,platform:cl};await I(F)}else console.log("scan login type")},actions:Ag&&N.jsxs(oo,{children:[N.jsx(zl,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),N.jsx(Hn,{type:"link",onClick:T,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[N.jsx(tS,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:N.jsx(v$t,{loginType:f,onKaptchaChange:x,onKaptchaCheck:_,onRememberChange:A})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:N.jsx(x$t,{loginType:f,onKaptchaChange:x,onKaptchaCheck:_,onRememberChange:O})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:N.jsx(E$t,{loginType:f})}],activeKey:f,onChange:k=>h(k)}),N.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[N.jsx(id,{checked:b,onChange:S,children:N.jsx(Hn,{size:"small",type:"link",onClick:w,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),N.jsx(Hn,{type:"link",style:{float:"right",marginBottom:24},onClick:M,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),g&&N.jsx(Qfe,{})]})})},W8=({isModel:e=!1})=>N.jsx(j$,{children:N.jsx(_$t,{isModel:e})}),$$t=()=>{Ya();const{token:e}=pa.useToken();return d.useState("phone"),cs(e.colorTextBase,.2),N.jsx(MP,{hashed:!1,children:N.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:N.jsxs(fde,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[N.jsxs(N.Fragment,{children:[N.jsx(Lr,{name:"username",fieldProps:{size:"large",prefix:N.jsx(Kse,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),N.jsx(Lr.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),N.jsxs("div",{style:{marginBlockEnd:24},children:[N.jsx(Fj,{noStyle:!0,name:"autoLogin",children:"自动登录"}),N.jsx(UXe,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function bO(){const[e,t]=d.useState(!0);return d.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 uu(){const e=eo();return{translateString:r=>r==null?r:r&&r.startsWith(F7)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(F7)?g9(e.formatMessage({id:r}),10):g9(r,10)}}function xF(){const e=bO(),{translateString:t}=uu(),[n,r]=d.useState(!1),[o,i]=d.useState(!1),a=async(l,c)=>{Pi?await NGe()?console.log("handleNewMessage isWindowActive"):AGe(l,c):o?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 d.useEffect(()=>(Pi||(window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(l){r(l==="granted")}):(console.log("已经授权或浏览器不支持通知"),r(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?i(!0):document.visibilityState==="visible"&&i(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),d.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const l=localStorage.getItem(Ry);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.disconnected"))}else{const l=localStorage.getItem(Ry);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:n,showWebNotification:s,showNotification:a}}var Lu={},Jfe={exports:{}},Zfe={exports:{}};(function(e){var t=Cde;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Zfe);var P$t=Zfe.exports,ehe={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})(ehe);var the=ehe.exports,nhe={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})(nhe);var O$t=nhe.exports;(function(e){var t=P$t,n=the,r=Hj,o=O$t;function i(a){return t(a)||n(a)||r(a)||o()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(Jfe);var rhe=Jfe.exports,SO={};Object.defineProperty(SO,"__esModule",{value:!0});SO.default=M$t;function M$t(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var EF={};const Uf=v1(PPe);var CO={},T$t=ti.default;Object.defineProperty(CO,"__esModule",{value:!0});CO.default=I$t;var R$t=T$t(d);function I$t(e,t,n){var r=R$t.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var wO={},ohe={exports:{}};(function(e){var t=vde,n=the,r=Hj,o=xde;function i(a){return t(a)||n(a)||r(a)||o()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(ohe);var k$t=ohe.exports,_F={};Object.defineProperty(_F,"__esModule",{value:!0});_F.default=N$t;function N$t(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,V8.default)(e,t.slice(0,-1))?e:she(e,t,n,r)}function j$t(e){return(0,ihe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function oG(e){return Array.isArray(e)?[]:{}}var F$t=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function L$t(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=$F,e};al.default=U$t;var xO={};Object.defineProperty(xO,"__esModule",{value:!0});xO.default=void 0;var W$t=d;xO.default=(0,W$t.createContext)(void 0);var che={},EO={},V$t=ir.default;Object.defineProperty(EO,"__esModule",{value:!0});EO.changeConfirmLocale=K$t;EO.getConfirmLocale=q$t;var PF=V$t(Op);let Sx=Object.assign({},PF.default.Modal),Cx=[];const iG=()=>Cx.reduce((e,t)=>Object.assign(Object.assign({},e),t),PF.default.Modal);function K$t(e){if(e){const t=Object.assign({},e);return Cx.push(t),Sx=iG(),()=>{Cx=Cx.filter(n=>n!==t),Sx=iG()}}Sx=Object.assign({},PF.default.Modal)}function q$t(){return Sx}var d0={};Object.defineProperty(d0,"__esModule",{value:!0});d0.default=void 0;var G$t=d;const Y$t=(0,G$t.createContext)(void 0);d0.default=Y$t;var _O={},uhe=ir.default,X$t=ti.default;Object.defineProperty(_O,"__esModule",{value:!0});_O.default=void 0;var rI=X$t(d),Q$t=uhe(d0),aG=uhe(Op);const J$t=(e,t)=>{const n=rI.useContext(Q$t.default),r=rI.useMemo(()=>{var i;const a=t||aG.default[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=rI.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?aG.default.locale:i},[n]);return[r,o]};_O.default=J$t;(function(e){"use client";var t=ir.default,n=ti.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(d),o=EO,i=t(d0),a=t(_O);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:f}=l;r.useEffect(()=>(0,o.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const h=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(i.default.Provider,{value:h},u)};e.default=s})(che);var Vc={},OF={},eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.defaultPresetColors=eu.default=void 0;const Z$t=eu.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"},ePt=Object.assign(Object.assign({},Z$t),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var Ti=typeof Symbol=="function"&&Symbol.for,hF=Ti?Symbol.for("react.element"):60103,pF=Ti?Symbol.for("react.portal"):60106,sO=Ti?Symbol.for("react.fragment"):60107,lO=Ti?Symbol.for("react.strict_mode"):60108,cO=Ti?Symbol.for("react.profiler"):60114,uO=Ti?Symbol.for("react.provider"):60109,dO=Ti?Symbol.for("react.context"):60110,mF=Ti?Symbol.for("react.async_mode"):60111,fO=Ti?Symbol.for("react.concurrent_mode"):60111,hO=Ti?Symbol.for("react.forward_ref"):60112,pO=Ti?Symbol.for("react.suspense"):60113,TEt=Ti?Symbol.for("react.suspense_list"):60120,mO=Ti?Symbol.for("react.memo"):60115,gO=Ti?Symbol.for("react.lazy"):60116,REt=Ti?Symbol.for("react.block"):60121,IEt=Ti?Symbol.for("react.fundamental"):60117,kEt=Ti?Symbol.for("react.responder"):60118,NEt=Ti?Symbol.for("react.scope"):60119;function Ns(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hF:switch(e=e.type,e){case mF:case fO:case sO:case cO:case lO:case pO:return e;default:switch(e=e&&e.$$typeof,e){case dO:case hO:case gO:case mO:case uO:return e;default:return t}}case pF:return t}}}function Pfe(e){return Ns(e)===fO}Hr.AsyncMode=mF;Hr.ConcurrentMode=fO;Hr.ContextConsumer=dO;Hr.ContextProvider=uO;Hr.Element=hF;Hr.ForwardRef=hO;Hr.Fragment=sO;Hr.Lazy=gO;Hr.Memo=mO;Hr.Portal=pF;Hr.Profiler=cO;Hr.StrictMode=lO;Hr.Suspense=pO;Hr.isAsyncMode=function(e){return Pfe(e)||Ns(e)===mF};Hr.isConcurrentMode=Pfe;Hr.isContextConsumer=function(e){return Ns(e)===dO};Hr.isContextProvider=function(e){return Ns(e)===uO};Hr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hF};Hr.isForwardRef=function(e){return Ns(e)===hO};Hr.isFragment=function(e){return Ns(e)===sO};Hr.isLazy=function(e){return Ns(e)===gO};Hr.isMemo=function(e){return Ns(e)===mO};Hr.isPortal=function(e){return Ns(e)===pF};Hr.isProfiler=function(e){return Ns(e)===cO};Hr.isStrictMode=function(e){return Ns(e)===lO};Hr.isSuspense=function(e){return Ns(e)===pO};Hr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sO||e===fO||e===cO||e===lO||e===pO||e===TEt||typeof e=="object"&&e!==null&&(e.$$typeof===gO||e.$$typeof===mO||e.$$typeof===uO||e.$$typeof===dO||e.$$typeof===hO||e.$$typeof===IEt||e.$$typeof===kEt||e.$$typeof===NEt||e.$$typeof===REt)};Hr.typeOf=Ns;$fe.exports=Hr;var AEt=$fe.exports,Ofe=AEt,DEt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jEt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Mfe={};Mfe[Ofe.ForwardRef]=DEt;Mfe[Ofe.Memo]=jEt;var gF=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=d.createContext(null)):d.createContext(null);gF.Consumer;var FEt=gF.Provider,LEt=FEt,BEt=gF;function eo(){var e=d.useContext(BEt);return Efe(e),e}var j8;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(j8||(j8={}));var F8;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(F8||(F8={}));function Tfe(e){var t=function(n){var r=eo(),o=n.value,i=n.children,a=av(n,["value","children"]),s=typeof o=="string"?new Date(o||0):o,l=e==="formatDate"?r.formatDateToParts(s,a):r.formatTimeToParts(s,a);return i(l)};return t.displayName=F8[e],t}function NS(e){var t=function(n){var r=eo(),o=n.value,i=n.children,a=av(n,["value","children"]),s=r[e](o,a);if(typeof i=="function")return i(s);var l=r.textComponent||d.Fragment;return d.createElement(l,null,s)};return t.displayName=j8[e],t}function Rfe(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=vfe(r)?MEt(r):r,t},{})}var Wq=function(e,t,n,r){for(var o=[],i=4;i{const n=eo(),[r,o]=d.useState(),[i,a]=d.useState(),s=async()=>{const u=await f2t();u.data.code===200&&(o(u.data.data.captchaUid),a(u.data.data.captchaImage))},l=async(u,f)=>{const h=await h2t(u,f);console.log("checkCaptcha response",h),h.data.code===200?t&&t(!0):t&&t(!1)};d.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 N.jsx(N.Fragment,{children:i&&N.jsxs(N.Fragment,{children:[N.jsx(qr,{onChange:c,prefix:N.jsx($Ue,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),N.jsx("img",{src:i,alt:"captcha",onClick:s})]})})},UEt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const o=eo();return d.useEffect(()=>{const i=localStorage.getItem(ms);if(i)try{const{username:a,remember:s}=JSON.parse(i);a&&(r==null||r(a,!!s))}catch(a){console.error("Failed to parse saved credentials:",a)}},[r]),N.jsx(N.Fragment,{children:e==="account"&&N.jsxs("div",{children:[N.jsx(Lr,{name:"username",fieldProps:{size:"large",prefix:N.jsx(Vse,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const i=localStorage.getItem(ms);if(i)try{const a=JSON.parse(i),{username:s,...l}=a;console.log("username",s),console.log("rest",l),localStorage.setItem(ms,JSON.stringify(l))}catch(a){console.error("Failed to parse saved credentials:",a)}}},placeholder:o.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),N.jsx(Lr.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},placeholder:o.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),N.jsx(pr.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx(c0,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function WEt(e){return ko("/auth/v1/login",{method:"POST",data:{...e,client:po}})}async function vF(e){return ko("/auth/v1/send/mobile",{method:"POST",data:{...e,client:po}})}async function kfe(e){return ko("/auth/v1/send/email",{method:"POST",data:{...e,client:po}})}async function VEt(e){return ko("/auth/v1/login/mobile",{method:"POST",data:{...e,client:po}})}async function KEt(e,t){return ko("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:po}})}async function qEt(e){return ko("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:po}})}async function GEt(e){return ko("/api/v1/user/logout",{method:"POST",data:{client:po}})}const YEt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const o=eo(),[i,a]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1);d.useEffect(()=>{const g=localStorage.getItem(ms);if(g)try{const{mobile:v}=JSON.parse(g);v&&(r==null||r(v))}catch(v){console.error("Failed to parse saved credentials:",v)}},[r]);const f=async(g,v)=>{a(g),l(v),t&&t(g,v)},h=async g=>{u(g),n&&n(g)},p=[{label:o.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:o.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:o.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:o.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:o.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:o.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:o.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:o.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:o.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:o.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:o.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:o.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:o.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:o.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:o.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:o.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:o.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:o.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:o.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:o.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:o.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:o.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],m=g=>{const v=g.value.includes("-")?g.value.split("-")[0]:g.value;return N.jsxs("div",{children:[N.jsx("span",{role:"img","aria-label":g.label,style:{marginRight:8},children:g.icon}),g.label," (+",v,")"]})};return N.jsx(N.Fragment,{children:e==="mobile"&&N.jsxs(N.Fragment,{children:[N.jsxs(sP,{gutter:16,children:[N.jsx(gp,{span:10,children:N.jsx(Fj,{name:"country",options:p,fieldProps:{size:"large",placeholder:o.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:m},initialValue:"86"})}),N.jsx(gp,{span:14,children:N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const g=localStorage.getItem(ms);if(g)try{const v=JSON.parse(g),{mobile:b,...y}=v;console.log("saved:",b,v),localStorage.setItem(ms,JSON.stringify(y))}catch(v){console.error("Failed to parse saved credentials:",v)}}},name:"mobile",placeholder:o.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:N.jsx(zl,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),N.jsx(pr.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx(c0,{onKaptchaChange:f,onKaptchaCheck:h})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:o.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(g,v)=>g?`${v} ${o.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:o.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async g=>{if(console.log("mobile:",g),g&&g.length===11){const b=await vF({mobile:g,type:K0e,captchaUid:i,captchaCode:s,platform:cl});if(console.log("sendMobileCode:",b.data),b.data.code!==200){gn.error(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}gn.success(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else gn.error("手机号格式错误")}}),N.jsx(Rne,{message:N.jsx(zl,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},XEt=({loginType:e})=>{const t=eo(),n=Ya(),r=vi(p=>p.setUserInfo),o=_1(p=>p.setAccessToken),{deviceUid:i,setDeviceUid:a}=vi(p=>({deviceUid:p.deviceUid,setDeviceUid:p.setDeviceUid})),[s,l]=d.useState("login"),[c,u]=d.useState("loading"),f=async p=>{console.log("handleScanLogin values: ",p),gn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await qEt({...p});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),o(m.data.data.accessToken),n("/chat"),D6()):(gn.destroy(),gn.error(m.data.message))},h=async p=>{if(e!="scan")return;const m=await KEt(i,p);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===Q0e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===J0e)u("scanned");else if(g.status===eye)u("expired");else if(g.status===Z0e){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:cl};console.log("login scan info:",v),await f(v)}}else gn.error(m.data.message)};return d.useEffect(()=>{console.log("scan deviceUid:",i),(i===void 0||i==="")&&a(Y_()),h(!0);const p=setInterval(()=>{h(!1)},3e3);return()=>{clearInterval(p)}},[e,i]),N.jsx(N.Fragment,{children:e==="scan"&&N.jsx(N.Fragment,{children:N.jsx(Yse,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),h(!0)}})})})},Nfe=()=>{const{token:e}=pa.useToken(),{isCustomServer:t,setIsCustomServer:n}=d.useContext(ia),[r]=pr.useForm(),[o,i]=d.useState(!1),[a,s]=d.useState(""),[l,c]=d.useState(""),u=eo(),f=()=>{console.log("switch server"),n(m=>!m)};d.useEffect(()=>{a&&a.length>0&&(r.setFieldsValue({apiUrl:a}),console.log("apiUrl:",a))},[a]),d.useEffect(()=>{if(t){const m=localStorage.getItem(Bm);m==="true"&&(i(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(iy);g&&r.setFieldsValue({apiUrl:am(g)});const v=localStorage.getItem(ay);v&&r.setFieldsValue({websocketUrl:am(v)})}},[t]);const h=m=>{if(console.log("handleCustomServerChange e:",m),i(m.target.checked),m.target.checked){const g=localStorage.getItem(iy);g&&r.setFieldsValue({apiUrl:am(g)});const v=localStorage.getItem(ay);v&&r.setFieldsValue({websocketUrl:am(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(Bm,"false")},p=(m,g)=>(console.log("props:",m,g),N.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[N.jsx(Hn,{icon:N.jsx(lHe,{}),onClick:f,children:u.formatMessage({id:"server.button.back"})},"back"),N.jsx(Hn,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=am(v.trim());let b=m.form.getFieldValue("websocketUrl");b=am(b.trim()),v&&v.trim().length>0&&b&&b.trim().length>0?(localStorage.setItem(iy,v),localStorage.setItem(ay,b),localStorage.setItem(Bm,"true"),gn.success(u.formatMessage({id:"server.save.success"}))):gn.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),N.jsx(Hn,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(Bm,"false"),localStorage.setItem(iy,""),localStorage.setItem(ay,""),gn.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),N.jsx(Hn,{onClick:()=>{Qb("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return N.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:N.jsxs(pr,{className:"ant-pro-form-server-main",form:r,submitter:{render:p},children:[N.jsx(Dj,{name:"isCustomServerEnabled",fieldProps:{onChange:h},children:u.formatMessage({id:"server.custom.enable"})}),o&&N.jsxs(N.Fragment,{children:[N.jsx(Lr,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!o,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),N.jsx(Lr,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!o,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},QEt=({isModel:e=!1})=>{const t=eo(),[n]=pr.useForm(),r=Ya(),{token:o}=pa.useToken(),[i,a]=d.useState("/kanban/icons/logo.png"),[s,l]=d.useState(""),[c,u]=d.useState(""),[f,h]=d.useState("account"),p=vi(k=>k.setUserInfo),m=_1(k=>k.setAccessToken),{isCustomServer:g,setIsCustomServer:v}=d.useContext(ia),[b,y]=d.useState(!1),S=k=>{console.log(`onPrivacyProtocolChange checked = ${k.target.checked}`),y(k.target.checked);const F=localStorage.getItem(ms);if(F)try{const{remember:V}=JSON.parse(F);V&&setTimeout(()=>{n.setFieldsValue({remember:V})},0)}catch(V){console.error("Failed to parse saved credentials:",V)}},w=()=>{Qb("https://www.weiyuai.cn/protocol.html")},[E,C]=d.useState(""),x=async(k,F)=>{C(k),n.setFieldValue("captchaCode",F)},_=async k=>{console.log("handleKaptchaCheck:",k)},P=async k=>{if(console.log("handleSubmit values: ",k,f),!b){gn.error("请阅读并同意隐私协议");return}gn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const F=localStorage.getItem(ms);let V=!1;if(F)try{V=JSON.parse(F).remember}catch(K){console.error("Failed to parse saved credentials:",K)}localStorage.setItem(ms,JSON.stringify({username:k.username,remember:V}));const W=await WEt({...k});console.log("LoginResult:",W.data),W.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),V&&localStorage.setItem(ms,JSON.stringify({username:k.username,password:k.password,remember:!0})),p(W.data.data.user),m(W.data.data.accessToken),e||r("/"),D6()):(gn.destroy(),gn.error(t.formatMessage({id:W.data.message,defaultMessage:W.data.message})))},O=k=>{n.setFieldsValue({mobile:k})},I=async k=>{if(!b){gn.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const F=localStorage.getItem(ms);let V={};if(F)try{V=JSON.parse(F)}catch(K){console.error("Failed to parse saved credentials:",K)}localStorage.setItem(ms,JSON.stringify({...V,mobile:k.mobile}));const W=await VEt({...k});console.log("LoginMobileResult:",W),W.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),p(W.data.data.user),m(W.data.data.accessToken),e||r("/"),D6()):(gn.destroy(),gn.error(t.formatMessage({id:W.data.message,defaultMessage:W.data.message})))},M=()=>{console.log("switch server"),v(k=>!k)},T=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},D=()=>{if(Ag)return{}},A=(k,F)=>{n.setFieldsValue({username:k,remember:F});const V=localStorage.getItem(ms);if(V&&F)try{const{password:W}=JSON.parse(V);W&&n.setFieldsValue({password:W})}catch(W){console.error("Failed to parse saved credentials:",W)}},j=async()=>{var F,V,W,K,L,Q,ee;console.log("getConfig");const k=await dJ();(F=k==null?void 0:k.custom)!=null&&F.enabled?((V=k==null?void 0:k.custom)!=null&&V.logo?a((W=k==null?void 0:k.custom)==null?void 0:W.logo):a("/kanban/icons/logo.png"),(K=k==null?void 0:k.custom)!=null&&K.name?l((L=k==null?void 0:k.custom)==null?void 0:L.name):l(t.formatMessage({id:"app.title"})),(Q=k==null?void 0:k.custom)!=null&&Q.description?u((ee=k==null?void 0:k.custom)==null?void 0:ee.description):u(t.formatMessage({id:"slogan"}))):(a("/kanban/icons/logo.png"),l(t.formatMessage({id:"app.title"})),u(t.formatMessage({id:"slogan"}))),cJ()};return d.useEffect(()=>{qee(),j()},[]),N.jsx(MP,{hashed:!1,children:N.jsxs("div",{style:{backgroundColor:o.colorBgContainer,textAlign:"center",height:"100%"},children:[!g&&N.jsxs(dde,{form:n,contentStyle:{minWidth:400},logo:N.jsx("img",{alt:"logo",src:i}),title:s,subTitle:c,initialValues:D(),onFinish:async k=>{if(console.log("login:",k),f==="account"){const F={username:k.username,password:k.password,captchaUid:E,captchaCode:k.captchaCode,platform:cl};await P(F)}else if(f==="mobile"){const F={mobile:k.mobile,code:k.code,captchaUid:E,captchaCode:k.captchaCode,platform:cl};await I(F)}else console.log("scan login type")},actions:Ag&&N.jsxs(oo,{children:[N.jsx(zl,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),N.jsx(Hn,{type:"link",onClick:T,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[N.jsx(nS,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:N.jsx(UEt,{loginType:f,onKaptchaChange:x,onKaptchaCheck:_,onRememberChange:A})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:N.jsx(YEt,{loginType:f,onKaptchaChange:x,onKaptchaCheck:_,onRememberChange:O})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:N.jsx(XEt,{loginType:f})}],activeKey:f,onChange:k=>h(k)}),N.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[N.jsx(od,{checked:b,onChange:S,children:N.jsx(Hn,{size:"small",type:"link",onClick:w,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),N.jsx(Hn,{type:"link",style:{float:"right",marginBottom:24},onClick:M,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),g&&N.jsx(Nfe,{})]})})},L8=({isModel:e=!1})=>N.jsx(j$,{children:N.jsx(QEt,{isModel:e})}),JEt=()=>{Ya();const{token:e}=pa.useToken();return d.useState("phone"),cs(e.colorTextBase,.2),N.jsx(MP,{hashed:!1,children:N.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:N.jsxs(dde,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[N.jsxs(N.Fragment,{children:[N.jsx(Lr,{name:"username",fieldProps:{size:"large",prefix:N.jsx(Vse,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),N.jsx(Lr.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),N.jsxs("div",{style:{marginBlockEnd:24},children:[N.jsx(Dj,{noStyle:!0,name:"autoLogin",children:"自动登录"}),N.jsx(HXe,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function vO(){const[e,t]=d.useState(!0);return d.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 cu(){const e=eo();return{translateString:r=>r==null?r:r&&r.startsWith(D7)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(D7)?p9(e.formatMessage({id:r}),10):p9(r,10)}}function yF(){const e=vO(),{translateString:t}=cu(),[n,r]=d.useState(!1),[o,i]=d.useState(!1),a=async(l,c)=>{Pi?await kGe()?console.log("handleNewMessage isWindowActive"):NGe(l,c):o?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 d.useEffect(()=>(Pi||(window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(l){r(l==="granted")}):(console.log("已经授权或浏览器不支持通知"),r(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?i(!0):document.visibilityState==="visible"&&i(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),d.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const l=localStorage.getItem(Ry);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.disconnected"))}else{const l=localStorage.getItem(Ry);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:n,showWebNotification:s,showNotification:a}}var Fu={},Afe={exports:{}},Dfe={exports:{}};(function(e){var t=Sde;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Dfe);var ZEt=Dfe.exports,jfe={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})(jfe);var Ffe=jfe.exports,Lfe={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})(Lfe);var e_t=Lfe.exports;(function(e){var t=ZEt,n=Ffe,r=Bj,o=e_t;function i(a){return t(a)||n(a)||r(a)||o()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(Afe);var Bfe=Afe.exports,yO={};Object.defineProperty(yO,"__esModule",{value:!0});yO.default=t_t;function t_t(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var bF={};const Uf=y1($Pe);var bO={},n_t=ti.default;Object.defineProperty(bO,"__esModule",{value:!0});bO.default=o_t;var r_t=n_t(d);function o_t(e,t,n){var r=r_t.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var SO={},zfe={exports:{}};(function(e){var t=gde,n=Ffe,r=Bj,o=wde;function i(a){return t(a)||n(a)||r(a)||o()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(zfe);var i_t=zfe.exports,SF={};Object.defineProperty(SF,"__esModule",{value:!0});SF.default=a_t;function a_t(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,B8.default)(e,t.slice(0,-1))?e:Wfe(e,t,n,r)}function c_t(e){return(0,Hfe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Kq(e){return Array.isArray(e)?[]:{}}var u_t=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function d_t(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=CF,e};al.default=m_t;var CO={};Object.defineProperty(CO,"__esModule",{value:!0});CO.default=void 0;var g_t=d;CO.default=(0,g_t.createContext)(void 0);var Kfe={},wO={},v_t=ir.default;Object.defineProperty(wO,"__esModule",{value:!0});wO.changeConfirmLocale=y_t;wO.getConfirmLocale=b_t;var wF=v_t(Op);let Sx=Object.assign({},wF.default.Modal),Cx=[];const qq=()=>Cx.reduce((e,t)=>Object.assign(Object.assign({},e),t),wF.default.Modal);function y_t(e){if(e){const t=Object.assign({},e);return Cx.push(t),Sx=qq(),()=>{Cx=Cx.filter(n=>n!==t),Sx=qq()}}Sx=Object.assign({},wF.default.Modal)}function b_t(){return Sx}var u0={};Object.defineProperty(u0,"__esModule",{value:!0});u0.default=void 0;var S_t=d;const C_t=(0,S_t.createContext)(void 0);u0.default=C_t;var xO={},qfe=ir.default,w_t=ti.default;Object.defineProperty(xO,"__esModule",{value:!0});xO.default=void 0;var ZR=w_t(d),x_t=qfe(u0),Gq=qfe(Op);const E_t=(e,t)=>{const n=ZR.useContext(x_t.default),r=ZR.useMemo(()=>{var i;const a=t||Gq.default[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=ZR.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Gq.default.locale:i},[n]);return[r,o]};xO.default=E_t;(function(e){"use client";var t=ir.default,n=ti.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(d),o=wO,i=t(u0),a=t(xO);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:f}=l;r.useEffect(()=>(0,o.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const h=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(i.default.Provider,{value:h},u)};e.default=s})(Kfe);var Vc={},xF={},Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.defaultPresetColors=Zc.default=void 0;const __t=Zc.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"},$_t=Object.assign(Object.assign({},__t),{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});eu.default=ePt;var MF={};const AS=v1(DPe);Object.defineProperty(MF,"__esModule",{value:!0});MF.default=tPt;var oI=AS;function tPt(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(o),p=n(i),m=n(a),g=n(s),v=r(c,u),b=e.colorLink||e.colorInfo,y=n(b),S=new oI.FastColor(m[1]).mix(new oI.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[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:S,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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new oI.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var TF={},$O={};Object.defineProperty($O,"__esModule",{value:!0});$O.default=void 0;const nPt=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};$O.default=nPt;var rPt=ir.default;Object.defineProperty(TF,"__esModule",{value:!0});TF.default=iPt;var oPt=rPt($O);function iPt(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},(0,oPt.default)(r))}var PO={};Object.defineProperty(PO,"__esModule",{value:!0});PO.default=void 0;const aPt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};PO.default=aPt;var OO={},DS={};Object.defineProperty(DS,"__esModule",{value:!0});DS.default=sPt;DS.getLineHeight=dhe;function dhe(e){return(e+8)/e}function sPt(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:dhe(n)}))}var lPt=ir.default;Object.defineProperty(OO,"__esModule",{value:!0});OO.default=void 0;var cPt=lPt(DS);const uPt=e=>{const t=(0,cPt.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,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*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};OO.default=uPt;var RF={};Object.defineProperty(RF,"__esModule",{value:!0});RF.default=dPt;function dPt(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 lv={},cv={};Object.defineProperty(cv,"__esModule",{value:!0});cv.getSolidColor=cv.getAlphaColor=void 0;var fhe=AS;const fPt=(e,t)=>new fhe.FastColor(e).setA(t).toRgbString();cv.getAlphaColor=fPt;const hPt=(e,t)=>new fhe.FastColor(e).darken(t).toHexString();cv.getSolidColor=hPt;Object.defineProperty(lv,"__esModule",{value:!0});lv.generateNeutralColorPalettes=lv.generateColorPalettes=void 0;var pPt=$S,Ri=cv;const mPt=e=>{const t=(0,pPt.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]}};lv.generateColorPalettes=mPt;const gPt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,Ri.getAlphaColor)(r,.88),colorTextSecondary:(0,Ri.getAlphaColor)(r,.65),colorTextTertiary:(0,Ri.getAlphaColor)(r,.45),colorTextQuaternary:(0,Ri.getAlphaColor)(r,.25),colorFill:(0,Ri.getAlphaColor)(r,.15),colorFillSecondary:(0,Ri.getAlphaColor)(r,.06),colorFillTertiary:(0,Ri.getAlphaColor)(r,.04),colorFillQuaternary:(0,Ri.getAlphaColor)(r,.02),colorBgSolid:(0,Ri.getAlphaColor)(r,1),colorBgSolidHover:(0,Ri.getAlphaColor)(r,.75),colorBgSolidActive:(0,Ri.getAlphaColor)(r,.95),colorBgLayout:(0,Ri.getSolidColor)(n,4),colorBgContainer:(0,Ri.getSolidColor)(n,0),colorBgElevated:(0,Ri.getSolidColor)(n,0),colorBgSpotlight:(0,Ri.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,Ri.getSolidColor)(n,15),colorBorderSecondary:(0,Ri.getSolidColor)(n,6)}};lv.generateNeutralColorPalettes=gPt;var jS=ir.default;Object.defineProperty(OF,"__esModule",{value:!0});OF.default=xPt;var sh=$S,vPt=eu,yPt=jS(MF),bPt=jS(TF),SPt=jS(PO),CPt=jS(OO),wPt=jS(RF),sG=lv;function xPt(e){sh.presetPrimaryColors.pink=sh.presetPrimaryColors.magenta,sh.presetPalettes.pink=sh.presetPalettes.magenta;const t=Object.keys(vPt.defaultPresetColors).map(n=>{const r=e[n]===sh.presetPrimaryColors[n]?sh.presetPalettes[n]:(0,sh.generate)(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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,yPt.default)(e,{generateColorPalettes:sG.generateColorPalettes,generateNeutralColorPalettes:sG.generateNeutralColorPalettes})),(0,CPt.default)(e.fontSize)),(0,wPt.default)(e)),(0,SPt.default)(e)),(0,bPt.default)(e))}var IF=ir.default;Object.defineProperty(Vc,"__esModule",{value:!0});Vc.defaultTheme=Vc.defaultConfig=Vc.DesignTokenContext=void 0;var EPt=IF(d),_Pt=Uf,$Pt=IF(OF),lG=IF(eu);Vc.defaultTheme=(0,_Pt.createTheme)($Pt.default);const PPt=Vc.defaultConfig={token:lG.default,override:{override:lG.default},hashed:!0};Vc.DesignTokenContext=EPt.default.createContext(PPt);var ys={},OPt=ti.default;Object.defineProperty(ys,"__esModule",{value:!0});ys.defaultPrefixCls=ys.defaultIconPrefixCls=ys.Variants=ys.ConfigContext=ys.ConfigConsumer=void 0;var MPt=OPt(d);const cG=ys.defaultPrefixCls="ant",TPt=ys.defaultIconPrefixCls="anticon";ys.Variants=["outlined","borderless","filled"];const RPt=(e,t)=>t||(e?`${cG}-${e}`:cG),IPt=ys.ConfigContext=MPt.createContext({getPrefixCls:RPt,iconPrefixCls:TPt}),{Consumer:kPt}=IPt;ys.ConfigConsumer=kPt;var MO={},hhe=ir.default;Object.defineProperty(MO,"__esModule",{value:!0});MO.getStyle=phe;MO.registerTheme=jPt;var uG=$S,iI=AS,NPt=hhe(YP),APt=Yp;hhe(al);const DPt=`-ant-${Date.now()}-${Math.random()}`;function phe(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new iI.FastColor(a),c=(0,uG.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){o(t.primaryColor,"primary");const a=new iI.FastColor(t.primaryColor),s=(0,uG.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 iI.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&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` +'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});Zc.default=$_t;var EF={};const DS=y1(APe);Object.defineProperty(EF,"__esModule",{value:!0});EF.default=P_t;var eI=DS;function P_t(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(o),p=n(i),m=n(a),g=n(s),v=r(c,u),b=e.colorLink||e.colorInfo,y=n(b),S=new eI.FastColor(m[1]).mix(new eI.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[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:S,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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new eI.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var _F={},EO={};Object.defineProperty(EO,"__esModule",{value:!0});EO.default=void 0;const O_t=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};EO.default=O_t;var M_t=ir.default;Object.defineProperty(_F,"__esModule",{value:!0});_F.default=R_t;var T_t=M_t(EO);function R_t(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},(0,T_t.default)(r))}var _O={};Object.defineProperty(_O,"__esModule",{value:!0});_O.default=void 0;const I_t=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};_O.default=I_t;var $O={},jS={};Object.defineProperty(jS,"__esModule",{value:!0});jS.default=k_t;jS.getLineHeight=Gfe;function Gfe(e){return(e+8)/e}function k_t(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Gfe(n)}))}var N_t=ir.default;Object.defineProperty($O,"__esModule",{value:!0});$O.default=void 0;var A_t=N_t(jS);const D_t=e=>{const t=(0,A_t.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,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*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};$O.default=D_t;var $F={};Object.defineProperty($F,"__esModule",{value:!0});$F.default=j_t;function j_t(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 lv={},cv={};Object.defineProperty(cv,"__esModule",{value:!0});cv.getSolidColor=cv.getAlphaColor=void 0;var Yfe=DS;const F_t=(e,t)=>new Yfe.FastColor(e).setA(t).toRgbString();cv.getAlphaColor=F_t;const L_t=(e,t)=>new Yfe.FastColor(e).darken(t).toHexString();cv.getSolidColor=L_t;Object.defineProperty(lv,"__esModule",{value:!0});lv.generateNeutralColorPalettes=lv.generateColorPalettes=void 0;var B_t=PS,Ri=cv;const z_t=e=>{const t=(0,B_t.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]}};lv.generateColorPalettes=z_t;const H_t=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,Ri.getAlphaColor)(r,.88),colorTextSecondary:(0,Ri.getAlphaColor)(r,.65),colorTextTertiary:(0,Ri.getAlphaColor)(r,.45),colorTextQuaternary:(0,Ri.getAlphaColor)(r,.25),colorFill:(0,Ri.getAlphaColor)(r,.15),colorFillSecondary:(0,Ri.getAlphaColor)(r,.06),colorFillTertiary:(0,Ri.getAlphaColor)(r,.04),colorFillQuaternary:(0,Ri.getAlphaColor)(r,.02),colorBgSolid:(0,Ri.getAlphaColor)(r,1),colorBgSolidHover:(0,Ri.getAlphaColor)(r,.75),colorBgSolidActive:(0,Ri.getAlphaColor)(r,.95),colorBgLayout:(0,Ri.getSolidColor)(n,4),colorBgContainer:(0,Ri.getSolidColor)(n,0),colorBgElevated:(0,Ri.getSolidColor)(n,0),colorBgSpotlight:(0,Ri.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,Ri.getSolidColor)(n,15),colorBorderSecondary:(0,Ri.getSolidColor)(n,6)}};lv.generateNeutralColorPalettes=H_t;var FS=ir.default;Object.defineProperty(xF,"__esModule",{value:!0});xF.default=Y_t;var sh=PS,U_t=Zc,W_t=FS(EF),V_t=FS(_F),K_t=FS(_O),q_t=FS($O),G_t=FS($F),Yq=lv;function Y_t(e){sh.presetPrimaryColors.pink=sh.presetPrimaryColors.magenta,sh.presetPalettes.pink=sh.presetPalettes.magenta;const t=Object.keys(U_t.defaultPresetColors).map(n=>{const r=e[n]===sh.presetPrimaryColors[n]?sh.presetPalettes[n]:(0,sh.generate)(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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,W_t.default)(e,{generateColorPalettes:Yq.generateColorPalettes,generateNeutralColorPalettes:Yq.generateNeutralColorPalettes})),(0,q_t.default)(e.fontSize)),(0,G_t.default)(e)),(0,K_t.default)(e)),(0,V_t.default)(e))}var PF=ir.default;Object.defineProperty(Vc,"__esModule",{value:!0});Vc.defaultTheme=Vc.defaultConfig=Vc.DesignTokenContext=void 0;var X_t=PF(d),Q_t=Uf,J_t=PF(xF),Xq=PF(Zc);Vc.defaultTheme=(0,Q_t.createTheme)(J_t.default);const Z_t=Vc.defaultConfig={token:Xq.default,override:{override:Xq.default},hashed:!0};Vc.DesignTokenContext=X_t.default.createContext(Z_t);var ys={},e$t=ti.default;Object.defineProperty(ys,"__esModule",{value:!0});ys.defaultPrefixCls=ys.defaultIconPrefixCls=ys.Variants=ys.ConfigContext=ys.ConfigConsumer=void 0;var t$t=e$t(d);const Qq=ys.defaultPrefixCls="ant",n$t=ys.defaultIconPrefixCls="anticon";ys.Variants=["outlined","borderless","filled"];const r$t=(e,t)=>t||(e?`${Qq}-${e}`:Qq),o$t=ys.ConfigContext=t$t.createContext({getPrefixCls:r$t,iconPrefixCls:n$t}),{Consumer:i$t}=o$t;ys.ConfigConsumer=i$t;var PO={},Xfe=ir.default;Object.defineProperty(PO,"__esModule",{value:!0});PO.getStyle=Qfe;PO.registerTheme=c$t;var Jq=PS,tI=DS,a$t=Xfe(YP),s$t=Yp;Xfe(al);const l$t=`-ant-${Date.now()}-${Math.random()}`;function Qfe(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new tI.FastColor(a),c=(0,Jq.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){o(t.primaryColor,"primary");const a=new tI.FastColor(t.primaryColor),s=(0,Jq.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 tI.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&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } - `.trim()}function jPt(e,t){const n=phe(e,t);(0,NPt.default)()&&(0,APt.updateCSS)(n,`${DPt}-dynamic-theme`)}var Ep={},FPt=ti.default;Object.defineProperty(Ep,"__esModule",{value:!0});Ep.default=Ep.DisabledContextProvider=void 0;var K8=FPt(d);const q8=K8.createContext(!1),LPt=e=>{let{children:t,disabled:n}=e;const r=K8.useContext(q8);return K8.createElement(q8.Provider,{value:n??r},t)};Ep.DisabledContextProvider=LPt;Ep.default=q8;var TO={},_p={},BPt=ti.default;Object.defineProperty(_p,"__esModule",{value:!0});_p.default=_p.SizeContextProvider=void 0;var G8=BPt(d);const Y8=G8.createContext(void 0),zPt=e=>{let{children:t,size:n}=e;const r=G8.useContext(Y8);return G8.createElement(Y8.Provider,{value:n||r},t)};_p.SizeContextProvider=zPt;_p.default=Y8;var mhe=ir.default;Object.defineProperty(TO,"__esModule",{value:!0});TO.default=void 0;var dG=d,HPt=mhe(Ep),UPt=mhe(_p);function WPt(){const e=(0,dG.useContext)(HPt.default),t=(0,dG.useContext)(UPt.default);return{componentDisabled:e,componentSize:t}}TO.default=WPt;var kF={},RO={},ghe=ir.default;Object.defineProperty(RO,"__esModule",{value:!0});RO.default=void 0;var fG=ghe(Mp),VPt=ghe(Xa);function KPt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if((0,VPt.default)(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u=0&&e<=255}function YPt(e,t){const{r:n,g:r,b:o,a:i}=new hw.FastColor(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new hw.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(aI(u)&&aI(f)&&aI(h))return new hw.FastColor({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new hw.FastColor({r:n,g:r,b:o,a:1}).toRgbString()}AO.default=YPt;var yhe=ir.default;Object.defineProperty(AF,"__esModule",{value:!0});AF.default=JPt;var sI=AS,XPt=yhe(eu),pw=yhe(AO),QPt=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 o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:(0,pw.default)(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:(0,pw.default)(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:(0,pw.default)(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:(0,pw.default)(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` + `.trim()}function c$t(e,t){const n=Qfe(e,t);(0,a$t.default)()&&(0,s$t.updateCSS)(n,`${l$t}-dynamic-theme`)}var Ep={},u$t=ti.default;Object.defineProperty(Ep,"__esModule",{value:!0});Ep.default=Ep.DisabledContextProvider=void 0;var z8=u$t(d);const H8=z8.createContext(!1),d$t=e=>{let{children:t,disabled:n}=e;const r=z8.useContext(H8);return z8.createElement(H8.Provider,{value:n??r},t)};Ep.DisabledContextProvider=d$t;Ep.default=H8;var OO={},_p={},f$t=ti.default;Object.defineProperty(_p,"__esModule",{value:!0});_p.default=_p.SizeContextProvider=void 0;var U8=f$t(d);const W8=U8.createContext(void 0),h$t=e=>{let{children:t,size:n}=e;const r=U8.useContext(W8);return U8.createElement(W8.Provider,{value:n||r},t)};_p.SizeContextProvider=h$t;_p.default=W8;var Jfe=ir.default;Object.defineProperty(OO,"__esModule",{value:!0});OO.default=void 0;var Zq=d,p$t=Jfe(Ep),m$t=Jfe(_p);function g$t(){const e=(0,Zq.useContext)(p$t.default),t=(0,Zq.useContext)(m$t.default);return{componentDisabled:e,componentSize:t}}OO.default=g$t;var OF={},MO={},Zfe=ir.default;Object.defineProperty(MO,"__esModule",{value:!0});MO.default=void 0;var eG=Zfe(Mp),v$t=Zfe(Xa);function y$t(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if((0,v$t.default)(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u=0&&e<=255}function C$t(e,t){const{r:n,g:r,b:o,a:i}=new hw.FastColor(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new hw.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(nI(u)&&nI(f)&&nI(h))return new hw.FastColor({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new hw.FastColor({r:n,g:r,b:o,a:1}).toRgbString()}kO.default=C$t;var the=ir.default;Object.defineProperty(TF,"__esModule",{value:!0});TF.default=E$t;var rI=DS,w$t=the(Zc),pw=the(kO),x$t=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 o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:(0,pw.default)(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:(0,pw.default)(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:(0,pw.default)(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:(0,pw.default)(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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) @@ -727,9 +723,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:i,screenXSMin:i,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 sI.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new sI.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new sI.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()} + 0 1px 2px -2px ${new rI.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new rI.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new rI.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), @@ -746,7 +742,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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 DO=ir.default;Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=aOt;Ql.unitless=Ql.ignore=Ql.getComputedToken=void 0;var ZPt=DO(d),eOt=Uf,tOt=DO(kO),hG=Vc,nOt=DO(eu),bhe=DO(AF),pG=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 o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=pG(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=(0,bhe.default)(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=pG(c,["theme"]);let h=f;u&&(h=DF(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};Ql.getComputedToken=DF;function aOt(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ZPt.default.useContext(hG.DesignTokenContext),i=`${tOt.default}-${t||""}`,a=n||hG.defaultTheme,[s,l,c]=(0,eOt.useCacheToken)(a,[nOt.default,e],{salt:i,override:r,getComputedToken:DF,formatToken:bhe.default,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:rOt,ignore:oOt,preserve:iOt}});return[a,c,t?l:"",s,o]}var Sf={},Po={};Object.defineProperty(Po,"__esModule",{value:!0});Po.textEllipsis=Po.resetIcon=Po.resetComponent=Po.operationUnit=Po.genLinkStyle=Po.genIconStyle=Po.genFocusStyle=Po.genFocusOutline=Po.genCommonStyle=Po.clearFix=void 0;var sOt=Uf;Po.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const lOt=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}};Po.resetComponent=lOt;const She=()=>({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"}});Po.resetIcon=She;const cOt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Po.clearFix=cOt;const uOt=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"}}});Po.genLinkStyle=uOt;const dOt=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}};Po.genCommonStyle=dOt;const Che=(e,t)=>({outline:`${(0,sOt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Po.genFocusOutline=Che;const whe=(e,t)=>({"&:focus-visible":Object.assign({},Che(e,t))});Po.genFocusStyle=whe;const fOt=e=>({[`.${e}`]:Object.assign(Object.assign({},She()),{[`.${e} .${e}-icon`]:{display:"block"}})});Po.genIconStyle=fOt;const hOt=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"},whe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Po.operationUnit=hOt;var pOt=ti.default;Object.defineProperty(Sf,"__esModule",{value:!0});Sf.genSubStyleComponent=Sf.genStyleHooks=Sf.genComponentStyleHook=void 0;var mG=d,mOt=vhe,lI=ys,cI=Po,gG=pOt(Ql);const{genStyleHooks:gOt,genComponentStyleHook:vOt,genSubStyleComponent:yOt}=(0,mOt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,mG.useContext)(lI.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=(0,gG.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=(0,mG.useContext)(lI.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,cI.genLinkStyle)(e)},(0,cI.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:lI.defaultIconPrefixCls)]},getCommonStyle:cI.genCommonStyle,getCompUnitless:()=>gG.unitless});Sf.genSubStyleComponent=yOt;Sf.genComponentStyleHook=vOt;Sf.genStyleHooks=gOt;var jF={};Object.defineProperty(jF,"__esModule",{value:!0});jF.default=SOt;var bOt=NF;function SOt(e,t){return bOt.PresetColors.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var jO={},COt=ir.default;Object.defineProperty(jO,"__esModule",{value:!0});jO.default=void 0;var wOt=Uf,xOt=Po,EOt=COt(Ql);const _Ot=(e,t)=>{const[n,r]=(0,EOt.default)();return(0,wOt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,xOt.genIconStyle)(e)])};jO.default=_Ot;(function(e){var t=ir.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 o.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 i.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=Uf,r=vhe,o=NF,i=DS,a=t(Ql),s=Sf,l=t(jF),c=t(jO),u=Vc})(f0);var FO={},$Ot=ti.default;Object.defineProperty(FO,"__esModule",{value:!0});FO.default=void 0;var POt=$Ot(d);const OOt=Object.assign({},POt),{useId:vG}=OOt,MOt=()=>"",TOt=typeof vG>"u"?MOt:vG;FO.default=TOt;var FF=ir.default;Object.defineProperty(kF,"__esModule",{value:!0});kF.default=AOt;var ROt=FF(CO),IOt=FF(RO),kOt=al,yG=f0,NOt=FF(FO);function AOt(e,t,n){var r;(0,kOt.devUseWarning)("ConfigProvider");const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},yG.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:yG.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,NOt.default)();return(0,ROt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.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,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!(0,IOt.default)(c,f,!0)}))}var LF={};const DOt=v1(qOe);var jOt=ti.default;Object.defineProperty(LF,"__esModule",{value:!0});LF.default=BOt;var bG=jOt(d),FOt=DOt,LOt=f0;function BOt(e){const{children:t}=e,[,n]=(0,LOt.useToken)(),{motion:r}=n,o=bG.useRef(!1);return o.current=o.current||r===!1,o.current?bG.createElement(FOt.Provider,{motion:r},t):t}var LO={},zOt=ti.default;Object.defineProperty(LO,"__esModule",{value:!0});LO.default=void 0;zOt(d);LO.default=()=>null;var xhe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=f0})(xhe);(function(e){"use client";var t=ir.default,n=ti.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(d),o=Uf,i=t(a0),a=t(CO),s=wO,l=n(al),c=t(xO),u=n(che),f=t(d0),h=t(Op),p=Vc,m=t(eu),g=ys,v=MO,b=Ep,y=t(TO),S=t(kF),w=t(LF),E=t(LO),C=n(_p),x=t(xhe),_=function(K,L){var Q={};for(var ee in K)Object.prototype.hasOwnProperty.call(K,ee)&&L.indexOf(ee)<0&&(Q[ee]=K[ee]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,ee=Object.getOwnPropertySymbols(K);reL.endsWith("Color"))}const k=K=>{const{prefixCls:L,iconPrefixCls:Q,theme:ee,holderRender:re}=K;L!==void 0&&(O=L),Q!==void 0&&(I=Q),"holderRender"in K&&(T=re),ee&&(j(ee)?(0,v.registerTheme)(D(),ee):M=ee)},F=()=>({getPrefixCls:(K,L)=>L||(K?`${D()}-${K}`:D()),getIconPrefixCls:A,getRootPrefixCls:()=>O||D(),getTheme:()=>M,holderRender:T});e.globalConfig=F;const V=K=>{const{children:L,csp:Q,autoInsertSpaceInButton:ee,alert:re,anchor:ie,form:G,locale:X,componentSize:ne,direction:le,space:ce,splitter:oe,virtual:se,dropdownMatchSelectWidth:fe,popupMatchSelectWidth:te,popupOverflow:he,legacyLocale:pe,parentContext:Oe,iconPrefixCls:Me,theme:Se,componentDisabled:ye,segmented:ve,statistic:be,spin:Pe,calendar:Ne,carousel:U,cascader:H,collapse:q,typography:me,checkbox:Ce,descriptions:ue,divider:Le,drawer:He,skeleton:ge,steps:De,image:qe,layout:je,list:Ke,mentions:Ue,modal:Ve,progress:St,result:et,slider:st,breadcrumb:Ct,menu:dt,pagination:Lt,input:wt,textArea:Et,empty:Tt,badge:Be,radio:We,rate:Fe,switch:Xe,transfer:gt,avatar:pt,message:Rt,tag:_t,table:vt,card:ft,tabs:It,timeline:bt,timePicker:Wt,upload:at,notification:Pt,tree:Bt,colorPicker:xt,datePicker:yt,rangePicker:Ft,flex:Re,wave:kt,dropdown:tt,warning:Mt,tour:Ot,tooltip:pn,popover:Pn,popconfirm:$,floatButtonGroup:R,variant:J,inputNumber:Ee,treeSelect:ke}=K,Je=r.useCallback((Qt,Jt)=>{const{prefixCls:Rn}=K;if(Jt)return Jt;const er=Rn||Oe.getPrefixCls("");return Qt?`${er}-${Qt}`:er},[Oe.getPrefixCls,K.prefixCls]),Dt=Me||Oe.iconPrefixCls||g.defaultIconPrefixCls,an=Q||Oe.csp;(0,x.default)(Dt,an);const En=(0,S.default)(Se,Oe.theme,{prefixCls:Je("")}),Cr={csp:an,autoInsertSpaceInButton:ee,alert:re,anchor:ie,locale:X||pe,direction:le,space:ce,splitter:oe,virtual:se,popupMatchSelectWidth:te??fe,popupOverflow:he,getPrefixCls:Je,iconPrefixCls:Dt,theme:En,segmented:ve,statistic:be,spin:Pe,calendar:Ne,carousel:U,cascader:H,collapse:q,typography:me,checkbox:Ce,descriptions:ue,divider:Le,drawer:He,skeleton:ge,steps:De,image:qe,input:wt,textArea:Et,layout:je,list:Ke,mentions:Ue,modal:Ve,progress:St,result:et,slider:st,breadcrumb:Ct,menu:dt,pagination:Lt,empty:Tt,badge:Be,radio:We,rate:Fe,switch:Xe,transfer:gt,avatar:pt,message:Rt,tag:_t,table:vt,card:ft,tabs:It,timeline:bt,timePicker:Wt,upload:at,notification:Pt,tree:Bt,colorPicker:xt,datePicker:yt,rangePicker:Ft,flex:Re,wave:kt,dropdown:tt,warning:Mt,tour:Ot,tooltip:pn,popover:Pn,popconfirm:$,floatButtonGroup:R,variant:J,inputNumber:Ee,treeSelect:ke},ur=Object.assign({},Oe);Object.keys(Cr).forEach(Qt=>{Cr[Qt]!==void 0&&(ur[Qt]=Cr[Qt])}),P.forEach(Qt=>{const Jt=K[Qt];Jt&&(ur[Qt]=Jt)}),typeof ee<"u"&&(ur.button=Object.assign({autoInsertSpace:ee},ur.button));const Nr=(0,a.default)(()=>ur,ur,(Qt,Jt)=>{const Rn=Object.keys(Qt),er=Object.keys(Jt);return Rn.length!==er.length||Rn.some($r=>Qt[$r]!==Jt[$r])}),tr=r.useMemo(()=>({prefixCls:Dt,csp:an}),[Dt,an]);let en=r.createElement(r.Fragment,null,r.createElement(E.default,{dropdownMatchSelectWidth:fe}),L);const un=r.useMemo(()=>{var Qt,Jt,Rn,er;return(0,s.merge)(((Qt=h.default.Form)===null||Qt===void 0?void 0:Qt.defaultValidateMessages)||{},((Rn=(Jt=Nr.locale)===null||Jt===void 0?void 0:Jt.Form)===null||Rn===void 0?void 0:Rn.defaultValidateMessages)||{},((er=Nr.form)===null||er===void 0?void 0:er.validateMessages)||{},(G==null?void 0:G.validateMessages)||{})},[Nr,G==null?void 0:G.validateMessages]);Object.keys(un).length>0&&(en=r.createElement(c.default.Provider,{value:un},en)),X&&(en=r.createElement(u.default,{locale:X,_ANT_MARK__:u.ANT_MARK},en)),(Dt||an)&&(en=r.createElement(i.default.Provider,{value:tr},en)),ne&&(en=r.createElement(C.SizeContextProvider,{size:ne},en)),en=r.createElement(w.default,null,en);const rr=r.useMemo(()=>{const Qt=En||{},{algorithm:Jt,token:Rn,components:er,cssVar:$r}=Qt,ao=_(Qt,["algorithm","token","components","cssVar"]),Bn=Jt&&(!Array.isArray(Jt)||Jt.length>0)?(0,o.createTheme)(Jt):p.defaultTheme,Yr={};Object.entries(er||{}).forEach(rn=>{let[fn,Sn]=rn;const Dn=Object.assign({},Sn);"algorithm"in Dn&&(Dn.algorithm===!0?Dn.theme=Bn:(Array.isArray(Dn.algorithm)||typeof Dn.algorithm=="function")&&(Dn.theme=(0,o.createTheme)(Dn.algorithm)),delete Dn.algorithm),Yr[fn]=Dn});const Fn=Object.assign(Object.assign({},m.default),Rn);return Object.assign(Object.assign({},ao),{theme:Bn,token:Fn,components:Yr,override:Object.assign({override:Fn},Yr),cssVar:$r})},[En]);return Se&&(en=r.createElement(p.DesignTokenContext.Provider,{value:rr},en)),Nr.warning&&(en=r.createElement(l.WarningContext.Provider,{value:Nr.warning},en)),ye!==void 0&&(en=r.createElement(b.DisabledContextProvider,{disabled:ye},en)),r.createElement(g.ConfigContext.Provider,{value:Nr},en)},W=K=>{const L=r.useContext(g.ConfigContext),Q=r.useContext(f.default);return r.createElement(V,Object.assign({parentContext:L,legacyLocale:Q},K))};W.ConfigContext=g.ConfigContext,W.SizeContext=C.default,W.config=k,W.useConfig=y.default,Object.defineProperty(W,"SizeContext",{get:()=>C.default}),e.default=W})(EF);var FS={},HOt=ti.default;Object.defineProperty(FS,"__esModule",{value:!0});FS.LayoutContext=void 0;var UOt=HOt(d);FS.LayoutContext=UOt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var BF={},zF={},HF={},WOt=ir.default;Object.defineProperty(HF,"__esModule",{value:!0});HF.default=YOt;var VOt=WOt(Mp),KOt=Symbol.for("react.element"),qOt=Symbol.for("react.transitional.element"),GOt=Symbol.for("react.fragment");function YOt(e){return e&&(0,VOt.default)(e)==="object"&&(e.$$typeof===KOt||e.$$typeof===qOt)&&e.type===GOt}var Ehe=ir.default;Object.defineProperty(zF,"__esModule",{value:!0});zF.default=X8;var XOt=Ehe(HF),QOt=Ehe(d);function X8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return QOt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(X8(r)):(0,XOt.default)(r)&&r.props?n=n.concat(X8(r.props.children,t)):n.push(r))}),n}var uv={},Q8={exports:{}},BO={},UF={};Object.defineProperty(UF,"__esModule",{value:!0});var JOt={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"};UF.default=JOt;var ZOt=ti.default,WF=ir.default;Object.defineProperty(BO,"__esModule",{value:!0});BO.default=void 0;var eMt=WF(GP),_he=ZOt(d),tMt=WF(UF),nMt=WF(i0),rMt=function(t,n){return _he.createElement(nMt.default,(0,eMt.default)({},t,{ref:n,icon:tMt.default}))},oMt=_he.forwardRef(rMt);BO.default=oMt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(BO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(Q8,Q8.exports);var iMt=Q8.exports,J8={exports:{}},zO={},VF={};Object.defineProperty(VF,"__esModule",{value:!0});var aMt={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"};VF.default=aMt;var sMt=ti.default,KF=ir.default;Object.defineProperty(zO,"__esModule",{value:!0});zO.default=void 0;var lMt=KF(GP),$he=sMt(d),cMt=KF(VF),uMt=KF(i0),dMt=function(t,n){return $he.createElement(uMt.default,(0,lMt.default)({},t,{ref:n,icon:cMt.default}))},fMt=$he.forwardRef(dMt);zO.default=fMt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(zO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(J8,J8.exports);var hMt=J8.exports,Z8={exports:{}},HO={},qF={};Object.defineProperty(qF,"__esModule",{value:!0});var pMt={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"};qF.default=pMt;var mMt=ti.default,GF=ir.default;Object.defineProperty(HO,"__esModule",{value:!0});HO.default=void 0;var gMt=GF(GP),Phe=mMt(d),vMt=GF(qF),yMt=GF(i0),bMt=function(t,n){return Phe.createElement(yMt.default,(0,gMt.default)({},t,{ref:n,icon:vMt.default}))},SMt=Phe.forwardRef(bMt);HO.default=SMt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(HO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(Z8,Z8.exports);var CMt=Z8.exports,UO={},Ku={};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.prepareComponentToken=Ku.default=Ku.DEPRECATED_TOKENS=void 0;var wMt=Uf,xMt=f0;const EMt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=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:i,padding:a,color:s,lineHeight:(0,wMt.unit)(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Ohe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,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:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}};Ku.prepareComponentToken=Ohe;const _Mt=Ku.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Ku.default=(0,xMt.genStyleHooks)("Layout",e=>[EMt(e)],Ohe,{deprecatedTokens:_Mt});Object.defineProperty(UO,"__esModule",{value:!0});UO.default=void 0;var Q0=Uf,SG=Ku,$Mt=f0;const PMt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=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,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,Q0.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:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,Q0.unit)(h)} ${(0,Q0.unit)(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,Q0.unit)(h)} 0 0 ${(0,Q0.unit)(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};UO.default=(0,$Mt.genStyleHooks)(["Layout","Sider"],e=>[PMt(e)],SG.prepareComponentToken,{deprecatedTokens:SG.DEPRECATED_TOKENS});var h0=ir.default,OMt=ti.default;Object.defineProperty(uv,"__esModule",{value:!0});uv.default=uv.SiderContext=void 0;var Eu=OMt(d),ds=Eu,MMt=h0(iMt),CG=h0(hMt),wG=h0(CMt),xG=h0(X_),TMt=h0(SO),RMt=EF,IMt=FS,kMt=h0(UO),NMt=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 o=0,r=Object.getOwnPropertySymbols(e);o!Number.isNaN(Number.parseFloat(e))&&isFinite(e),DMt=uv.SiderContext=ds.createContext({}),jMt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),FMt=ds.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,b=NMt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=(0,Eu.useContext)(IMt.LayoutContext),[S,w]=(0,Eu.useState)("collapsed"in e?e.collapsed:a),[E,C]=(0,Eu.useState)(!1);(0,Eu.useEffect)(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const x=(X,ne)=>{"collapsed"in e||w(X),g==null||g(X,ne)},{getPrefixCls:_,direction:P}=(0,Eu.useContext)(RMt.ConfigContext),O=_("layout-sider",n),[I,M,T]=(0,kMt.default)(O),D=(0,Eu.useRef)(null);D.current=X=>{C(X.matches),v==null||v(X.matches),S!==X.matches&&x(X.matches,"responsive")},(0,Eu.useEffect)(()=>{function X(le){return D.current(le)}let ne;if(typeof window<"u"){const{matchMedia:le}=window;if(le&&m&&m in EG){ne=le(`screen and (max-width: ${EG[m]})`);try{ne.addEventListener("change",X)}catch{ne.addListener(X)}X(ne)}}return()=>{try{ne==null||ne.removeEventListener("change",X)}catch{ne==null||ne.removeListener(X)}}},[m]),(0,Eu.useEffect)(()=>{const X=jMt("ant-sider-");return y.addSider(X),()=>y.removeSider(X)},[]);const A=()=>{x(!S,"clickTrigger")},j=(0,TMt.default)(b,["collapsed"]),k=S?h:f,F=AMt(k)?`${k}px`:String(k),V=parseFloat(String(h||0))===0?ds.createElement("span",{onClick:A,className:(0,xG.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:p},o||ds.createElement(MMt.default,null)):null,W=P==="rtl"==!u,Q={expanded:W?ds.createElement(wG.default,null):ds.createElement(CG.default,null),collapsed:W?ds.createElement(CG.default,null):ds.createElement(wG.default,null)}[S?"collapsed":"expanded"],ee=o!==null?V||ds.createElement("div",{className:`${O}-trigger`,onClick:A,style:{width:F}},o||Q):null,re=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=(0,xG.default)(O,`${O}-${s}`,{[`${O}-collapsed`]:!!S,[`${O}-has-trigger`]:c&&o!==null&&!V,[`${O}-below`]:!!E,[`${O}-zero-width`]:parseFloat(F)===0},r,M,T),G=ds.useMemo(()=>({siderCollapsed:S}),[S]);return I(ds.createElement(DMt.Provider,{value:G},ds.createElement("aside",Object.assign({className:ie},j,{style:re,ref:t}),ds.createElement("div",{className:`${O}-children`},i),c||E&&V?ee:null)))});uv.default=FMt;var Mhe=ir.default;Object.defineProperty(BF,"__esModule",{value:!0});BF.default=zMt;var LMt=Mhe(zF),BMt=Mhe(uv);function zMt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,LMt.default)(t).some(o=>o.type===BMt.default)}var WO,VO,HMt=ti.default,LS=ir.default;Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=Lu.Header=VO=Lu.Footer=WO=Lu.Content=void 0;var UMt=LS(rhe),qs=HMt(d),The=LS(X_),WMt=LS(SO),eN=EF,VMt=FS,KMt=LS(BF),Rhe=LS(Ku),Ihe=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 o=0,r=Object.getOwnPropertySymbols(e);oqs.forwardRef((a,s)=>qs.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const YF=qs.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=Ihe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=qs.useContext(eN.ConfigContext),l=s("layout",n),[c,u,f]=(0,Rhe.default)(l),h=r?`${l}-${r}`:l;return c(qs.createElement(i,Object.assign({className:(0,The.default)(n||h,o,u,f),ref:t},a)))}),qMt=qs.forwardRef((e,t)=>{const{direction:n}=qs.useContext(eN.ConfigContext),[r,o]=qs.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=Ihe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,WMt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:g}=qs.useContext(eN.ConfigContext),v=m("layout",i),b=(0,KMt.default)(r,l,c),[y,S,w]=(0,Rhe.default)(v),E=(0,The.default)(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,S,w),C=qs.useMemo(()=>({siderHook:{addSider:x=>{o(_=>[].concat((0,UMt.default)(_),[x]))},removeSider:x=>{o(_=>_.filter(P=>P!==x))}}}),[]);return y(qs.createElement(VMt.LayoutContext.Provider,{value:C},qs.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},p),l)))}),GMt=KO({tagName:"div",displayName:"Layout"})(qMt);Lu.Header=KO({suffixCls:"header",tagName:"header",displayName:"Header"})(YF);VO=Lu.Footer=KO({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(YF);WO=Lu.Content=KO({suffixCls:"content",tagName:"main",displayName:"Content"})(YF);Lu.default=GMt;function BS(){const{isDarkMode:e}=LQ(),{token:t}=pa.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,o={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},i={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:o,rightSiderStyle:i,contentStyle:a,footerStyle:s}}const{Header:YMt,Sider:XMt,Content:QMt}=ei,khe=()=>{const e=eo();d.useContext(ia);const t=Ya(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:o,contentStyle:i}=BS(),[a,s]=d.useState([]);d.useEffect(()=>{const c=[{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"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return N.jsxs(ei,{children:[N.jsx(XMt,{style:r,width:o,children:N.jsx(vc,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),N.jsxs(ei,{children:[N.jsx(YMt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),N.jsx(QMt,{style:i,children:N.jsx(PP,{})})]})]})},Nhe=hl()(uc(dc(fc((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===_Q){const o=t().devices.some(i=>i.device.uid===n.device.uid);e(o?{devices:[n,...t().devices.filter(i=>i.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===K0e){const r=t().members.some(o=>o.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(o=>o.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:L0e}))),JMt=hl()(uc(dc(fc((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:j0e}))),Ahe=hl()(uc(dc(fc((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const o=r.workgroupResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o[i]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const o=r.workgroupResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o.splice(i,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,o=r.findIndex(i=>i.uid===n);o!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,o),...r.slice(o+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:V0e}))),ZMt=()=>{const e=Dp(u=>u.deleteOrg),t=Ll(u=>u.resetThreads),n=hd(u=>u.resetMessageList),r=JMt(u=>u.resetMembers),o=E1(u=>u.removeAccessToken),i=yi(u=>u.resetUserInfo),a=Nhe(u=>u.resetContactInfo),s=jp(u=>u.resetAgentInfo),l=Ahe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),o(),i(),a(),s(),l()}}};function XF(){const e=E1(y=>y.accessToken),t=yi(y=>y.userInfo),n=jp(y=>y.agentInfo),r=bO(),[o,i]=d.useState(!1),{showNotification:a}=xF(),{translateString:s}=uu();hd(y=>y.addMessage),Ll(y=>y.updateThreadContent),d.useContext(ia),d.useRef(!1);const l=Ll(y=>y.threads),[c,u]=d.useState(l),f=d.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!PGe()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),h=async()=>{},p=d.useRef(n==null?void 0:n.uid),m=d.useCallback(()=>{if(!o&&e)return setInterval(async()=>{p.current?h():console.log("useMqtt autoPingMessage currentUidRef.current:",p.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[o,e,t,n]),g=()=>{console.log("useMqtt doConnect"),_Ge({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),wR()},b=y=>{var S,w;(y==null?void 0:y.type)!==$b&&((S=y==null?void 0:y.user)==null?void 0:S.uid)!==(t==null?void 0:t.uid)&&((w=y==null?void 0:y.user)==null?void 0:w.uid)!==(n==null?void 0:n.uid)&&(a_e(),console.log("playAudio"))};return d.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():wR()},[r]),d.useEffect(()=>{if(n!=null&&n.uid){p.current=n==null?void 0:n.uid;const y=m();return()=>{clearInterval(y)}}else p.current=null},[n]),d.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const y=f();return()=>{wR(),clearInterval(y)}},[e,t]),d.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),d.useEffect(()=>{const y=function(S){if(console.log("useMqtt handleNewMessage",S),S.type===_b||S.type===$Q||S.type===$k||S.type===$b||S.type===Pb)return;const w=S.threadTopic,E=c.find(C=>C.topic===w);E?E.mute?console.log("useMqtt matchingThread muted",w):(console.log("useMqtt matchingThread no mute",w),a(s(yC),s(yC)),b(S)):(console.log("useMqtt matchingThread no"),a(s(yC),s(yC)),b(S))};return Jn.on(xb,y),()=>{Jn.off(xb)}},[c]),d.useEffect(()=>{console.log("useMqtt useEffect");const y=function(){console.log("handleMqttConnected"),i(!0)},S=function(){console.log("handleMqttDisconnected"),i(!1)};return Jn.on(gk,y),Jn.on(yk,S),Jn.on(bk,S),Jn.on(vk,S),Jn.on(Sk,S),Jn.on(Ck,S),()=>{console.log("un - useEffect mqttDisconnect"),Jn.off(gk),Jn.off(yk),Jn.off(bk),Jn.off(vk),Jn.off(Sk),Jn.off(Ck)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:o}}function Dhe(){console.log("useEventBus");const{clearStorage:e}=ZMt(),{doDisconnect:t}=XF(),{setPingLoading:n}=d.useContext(ia),r=d.useCallback(async()=>{try{const o=await w$t();console.log("logout result:",o.data),n(!1),t(),e(),jGe()}catch(o){console.log("logout error:",o)}},[]);return d.useEffect(()=>{console.log("useEventBus useEffect");const o=function(i){console.log("token过期,强制刷新登录",i),Jn.off(pf,o),r()};return Jn.on(pf,o),()=>{console.log("un - useEffect mqttDisconnect"),Jn.off(pf)}},[]),{doLogout:r}}const jhe=()=>{const e=eo(),{isLoggedIn:t,mode:n}=d.useContext(ia),{doLogout:r}=Dhe(),[o,i]=d.useState("✅"),[a,s]=d.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=bO();d.useEffect(()=>{l?(i("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(i("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,h]=d.useState(!1),p=()=>{h(!0)},m=()=>{h(!1)},g=()=>{console.log("handleShowLoginModel"),p()},v=y=>{console.log(y),r()},b=y=>{console.log(y)};return N.jsxs(N.Fragment,{children:[N.jsx(Hi,{open:f&&!t,onOk:m,onCancel:m,footer:[N.jsx(Hn,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:N.jsx(W8,{isModel:!0})}),N.jsxs("span",{children:[!t&&N.jsxs(N.Fragment,{children:[N.jsx(fl,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),N.jsx(fl,{content:u,children:N.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&N.jsx(N.Fragment,{children:N.jsx(Tse,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:b,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===sp&&Ag&&N.jsx("span",{style:{marginLeft:10},children:N.jsx(xa,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:N.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),N.jsxs("span",{className:"footerRightButton",children:[N.jsx(xa,{title:a,children:N.jsx("span",{children:o})}),N.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>Qb(oye),children:["v",i_e()]}),N.jsx("span",{style:{marginLeft:"10px"},onClick:()=>Qb("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"})})]})]})},Fhe=()=>{const e=Ya(),{userInfo:t}=Ule(),{translateString:n}=uu(),{mode:r}=d.useContext(ia),[o,i]=d.useState(""),[a,s]=d.useState(""),[l,c]=d.useState(""),u=()=>{e("/setting")};return d.useEffect(()=>{i(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),N.jsx(N.Fragment,{children:N.jsx(fl,{title:o,content:a,placement:"rightBottom",children:N.jsx(N.Fragment,{children:N.jsx(Xc,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function Lhe(){console.log("useElectronApi");const e=Ya(),t=yi(r=>r.userInfo),n=Nhe(r=>r.addDevice);d.useEffect(()=>(console.log("useElectronApi useEffect"),Pi?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const o=JSON.parse(r);if(o.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const i={type:_Q,device:o.device,user:o.user,createdAt:o.createdAt};n(i)}}),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===O0e){gn.success("截图成功");const o=r.data;Jn.emit(N0e,o.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),Pi?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const eTt=()=>{const e=eo(),{doLogout:t}=Dhe(),{isLoggedIn:n,locale:r,changeLocale:o,mode:i,changeMode:a,handleUpdateAgentStatus:s}=d.useContext(ia),{agentInfo:l}=jp(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:N.jsx(Vse,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,f]=d.useState(c);d.useEffect(()=>{if(f(c),l.uid!==""&&i===sp){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:Z7,icon:l.status===Z7?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:eB,icon:l.status===eB?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:WM,icon:l.status===WM?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=p[0].children,v=g.findIndex(b=>b.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),p[0].children=g,f(p)}},[l,r,i]);const h=async p=>{console.log("click",p.key),p.key==="logout"?t():p.key==="zh-cn"||p.key==="zh-tw"||p.key==="en"?o(p.key):p.key===Zm||p.key===sp||p.key===i2?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===WM&&$se.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return N.jsx(N.Fragment,{children:n?N.jsx(N.Fragment,{children:N.jsx(vc,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):N.jsx(N.Fragment,{})})};async function tTt(e){return ko("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:po}})}const Bhe=()=>{const[e,t]=d.useState([]),n=new Fle;d.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)}},o=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)}},i=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 d.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return Jn.on(xb,a),()=>{console.log("useIndexedDB useEffect return"),Jn.off(xb,a)}},[]),{messages:e,createMessage:r,updateMessage:o,deleteMessage:i}};async function zhe(){return ko("/api/v1/user/profile",{method:"GET",params:{client:po}})}async function Hhe(e){return ko("/api/v1/user/update",{method:"POST",data:{...e,client:po}})}async function nTt(e){return ko("/api/v1/user/change/password",{method:"POST",data:{...e,client:po}})}async function Uhe(e){return ko("/api/v1/user/change/email",{method:"POST",data:{...e,client:po}})}async function Whe(e){return ko("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:po}})}const rTt=()=>{const e=eo(),{locale:t,changeLocale:n}=d.useContext(ia),r=[{key:"lang",icon:N.jsx(WHe,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],o=i=>{const a=i.key;n(a)};return N.jsx(vc,{inlineCollapsed:!0,onClick:o,style:{width:64,height:34},mode:"inline",items:r})},oTt={id:"1",name:"示例项目",description:"这是一个示例项目",members:[],boards:[{id:"1",name:"主看板",lists:[{id:"list1",name:"待办",cards:[{id:"card1",title:"示例任务1",labels:[{id:"1",name:"优先",color:"red"}],members:[],tasks:[]}]},{id:"list2",name:"进行中",cards:[]},{id:"list3",name:"已完成",cards:[]}]}]},iTt={id:"1",userId:"1",date:"2024-02-08",content:{completed:["完成看板功能","完成日报功能"],inProgress:["周报功能开发中"],problems:["遇到了一些性能问题"],plans:["明天完成周报功能"]},workHours:8,projectId:"1"},aTt={id:"1",userId:"1",weekStart:"2024-02-05",weekEnd:"2024-02-11",content:{completed:["完成项目基础架构","实现核心功能"],nextWeekPlan:["开始开发新功能","优化现有功能"],problems:["需要优化性能"],suggestions:["建议增加自动化测试"]},projectProgress:[{projectId:"1",progress:60,description:"项目进展顺利,已完成主要功能"}]},nl=hl(e=>({projects:[oTt],currentProject:null,dailyReports:[iTt],weeklyReports:[aTt],setProjects:t=>e({projects:t}),setCurrentProject:t=>e({currentProject:t}),addCard:(t,n)=>e(r=>({currentProject:r.currentProject?{...r.currentProject,boards:r.currentProject.boards.map(o=>({...o,lists:o.lists.map(i=>i.id===t?{...i,cards:[...i.cards,n]}:i)}))}:null})),moveCard:(t,n,r,o)=>e(i=>{var s;if(!i.currentProject)return i;const a=(s=i.currentProject.boards.flatMap(l=>l.lists).find(l=>l.id===n))==null?void 0:s.cards.find(l=>l.id===t);return a?{currentProject:{...i.currentProject,boards:i.currentProject.boards.map(l=>({...l,lists:l.lists.map(c=>{if(c.id===n)return{...c,cards:c.cards.filter(u=>u.id!==t)};if(c.id===r){const u=[...c.cards];return u.splice(o,0,a),{...c,cards:u}}return c})}))}}:i}),updateCard:(t,n)=>e(r=>({currentProject:r.currentProject?{...r.currentProject,boards:r.currentProject.boards.map(o=>({...o,lists:o.lists.map(i=>({...i,cards:i.cards.map(a=>a.id===t?{...a,...n}:a)}))}))}:null})),addDailyReport:t=>e(n=>({dailyReports:[...n.dailyReports,t]})),addWeeklyReport:t=>e(n=>({weeklyReports:[...n.weeklyReports,t]}))})),Vhe=()=>{const e=nl(o=>o.projects),t=nl(o=>o.setCurrentProject),n=Ya(),r=o=>{t(o),n(`/project/${o.id}`)};return N.jsxs(sP,{gutter:[16,16],children:[e.map(o=>N.jsx(gp,{xs:24,sm:12,md:8,lg:6,children:N.jsx(ol,{hoverable:!0,cover:o.background&&N.jsx("img",{alt:o.name,src:o.background}),onClick:()=>r(o),children:N.jsx(ol.Meta,{title:o.name,description:o.description})})},o.id)),N.jsx(gp,{xs:24,sm:12,md:8,lg:6,children:N.jsx(ol,{hoverable:!0,style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:N.jsx(Hn,{type:"text",icon:N.jsx(Uu,{}),children:"创建项目"})})})]})},Khe=()=>{const[e]=Vn.useForm(),[t,n]=d.useState(!1),r=nl(s=>s.dailyReports),o=nl(s=>s.addDailyReport),i=[{title:"日期",dataIndex:"date",key:"date",render:s=>qn(s).format("YYYY-MM-DD")},{title:"工作时长",dataIndex:"workHours",key:"workHours",render:s=>`${s}小时`},{title:"已完成工作",dataIndex:["content","completed"],key:"completed",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Wu,{color:"success",children:l},c))})},{title:"进行中工作",dataIndex:["content","inProgress"],key:"inProgress",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Wu,{color:"processing",children:l},c))})}],a=s=>{const l={id:Date.now().toString(),userId:"1",date:s.date.format("YYYY-MM-DD"),content:{completed:s.completed||[],inProgress:s.inProgress||[],problems:s.problems||[],plans:s.plans||[]},workHours:s.workHours,projectId:"1"};o(l),n(!1),e.resetFields()};return N.jsxs(N.Fragment,{children:[N.jsx(ol,{title:"日报",extra:N.jsx(Hn,{type:"primary",onClick:()=>n(!0),children:"新建日报"}),children:N.jsx(su,{columns:i,dataSource:r,rowKey:"id",pagination:{pageSize:10}})}),N.jsx(dP,{title:"新建日报",width:720,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:N.jsxs(Vn,{form:e,layout:"vertical",onFinish:a,initialValues:{workHours:8},children:[N.jsx(Vn.Item,{name:"date",label:"日期",rules:[{required:!0,message:"请选择日期"}],children:N.jsx(qa,{style:{width:"100%"}})}),N.jsx(Vn.List,{name:"completed",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"已完成工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入已完成工作"}],children:N.jsx(qr,{placeholder:"请输入已完成工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Uu,{}),children:"添加已完成工作"})]})})}),N.jsx(Vn.List,{name:"inProgress",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"进行中工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入进行中工作"}],children:N.jsx(qr,{placeholder:"请输入进行中工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Uu,{}),children:"添加进行中工作"})]})})}),N.jsx(Vn.List,{name:"problems",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"遇到的问题",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,children:N.jsx(qr,{placeholder:"请输入遇到的问题"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Uu,{}),children:"添加问题"})]})})}),N.jsx(Vn.Item,{name:"workHours",label:"工作时长(小时)",children:N.jsx(lc,{min:0,max:24})}),N.jsx(Vn.Item,{children:N.jsxs(oo,{children:[N.jsx(Hn,{type:"primary",htmlType:"submit",children:"提交"}),N.jsx(Hn,{onClick:()=>n(!1),children:"取消"})]})})]})})]})},{TextArea:sTt}=qr,{RangePicker:lTt}=qa,qhe=()=>{const[e]=Vn.useForm(),[t,n]=d.useState(!1),r=nl(s=>s.weeklyReports),o=nl(s=>s.addWeeklyReport),i=[{title:"周期",key:"weekRange",render:(s,l)=>`${l.weekStart} 至 ${l.weekEnd}`},{title:"本周完成",dataIndex:["content","completed"],key:"completed",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Wu,{color:"success",children:l},c))})},{title:"项目进展",dataIndex:"projectProgress",key:"projectProgress",render:s=>N.jsx(oo,{direction:"vertical",children:s.map((l,c)=>N.jsxs("div",{children:[N.jsx(Wu,{color:"blue",children:l.projectId}),N.jsxs(Wu,{color:"green",children:[l.progress,"%"]})]},c))})}],a=s=>{const[l,c]=s.weekRange,u={id:Date.now().toString(),userId:"1",weekStart:l.format("YYYY-MM-DD"),weekEnd:c.format("YYYY-MM-DD"),content:{completed:s.completed||[],nextWeekPlan:s.nextWeekPlan||[],problems:s.problems||[],suggestions:s.suggestions||[]},projectProgress:s.projectProgress||[]};o(u),n(!1),e.resetFields()};return N.jsxs(N.Fragment,{children:[N.jsx(ol,{title:"周报",extra:N.jsx(Hn,{type:"primary",onClick:()=>n(!0),children:"新建周报"}),children:N.jsx(su,{columns:i,dataSource:r,rowKey:"id",pagination:{pageSize:10}})}),N.jsx(dP,{title:"新建周报",width:720,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:N.jsxs(Vn,{form:e,layout:"vertical",onFinish:a,children:[N.jsx(Vn.Item,{name:"weekRange",label:"周期",rules:[{required:!0,message:"请选择周期"}],children:N.jsx(lTt,{style:{width:"100%"},picker:"week"})}),N.jsx(Vn.List,{name:"completed",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"本周完成工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入完成的工作"}],children:N.jsx(qr,{placeholder:"请输入完成的工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Uu,{}),children:"添加完成工作"})]})})}),N.jsx(Vn.List,{name:"nextWeekPlan",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"下周工作计划",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入工作计划"}],children:N.jsx(qr,{placeholder:"请输入工作计划"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Uu,{}),children:"添加工作计划"})]})})}),N.jsx(Vn.List,{name:"projectProgress",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"项目进展",children:[s.map((u,f)=>N.jsx("div",{style:{marginBottom:16},children:N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{name:[u.name,"projectId"],rules:[{required:!0,message:"请选择项目"}],children:N.jsxs(Va,{placeholder:"选择项目",children:[N.jsx(Va.Option,{value:"1",children:"项目A"}),N.jsx(Va.Option,{value:"2",children:"项目B"})]})}),N.jsx(Vn.Item,{name:[u.name,"progress"],rules:[{required:!0,message:"请输入进度"}],children:N.jsx(lc,{min:0,max:100,formatter:h=>`${h}%`,parser:h=>{const p=parseInt((h==null?void 0:h.replace("%",""))||"0",10);return isNaN(p)||p<=0?0:p>=100?100:p}})}),N.jsx(Vn.Item,{name:[u.name,"description"],children:N.jsx(sTt,{placeholder:"项目进展说明",autoSize:{minRows:2}})}),N.jsx(Hn,{type:"text",danger:!0,icon:N.jsx(lg,{}),onClick:()=>c(f),children:"删除"})]})},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Uu,{}),children:"添加项目进展"})]})})}),N.jsx(Vn.Item,{children:N.jsxs(oo,{children:[N.jsx(Hn,{type:"primary",htmlType:"submit",children:"提交"}),N.jsx(Hn,{onClick:()=>n(!1),children:"取消"})]})})]})})]})};var Ghe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var c=o(i),u=o(a),f=(l=l||"()")[0]==="(",h=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(h?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(h?this.isAfter(u,s):!this.isBefore(u,s))}}})})(Ghe);var cTt=Ghe.exports;const uTt=Fr(cTt);qn.extend(uTt);const dTt=({dailyReports:e,weeklyReports:t})=>{const[n,r]=d.useState(null),[o,i]=d.useState(!1),a=c=>{const u=e.find(p=>p.date===c.format("YYYY-MM-DD")),f=t.find(p=>qn(c).isBetween(p.weekStart,p.weekEnd,"day","[]")),h=c.isSame(qn(),"day");return N.jsx("div",{style:{height:"100%",padding:4,background:h?"rgba(24, 144, 255, 0.1)":"transparent",border:h?"1px solid #1890ff":"none",borderRadius:4},children:N.jsxs("ul",{style:{listStyle:"none",padding:0,margin:0},children:[u&&N.jsx("li",{children:N.jsx(Xi,{status:"success",text:`日报 (${u.workHours}小时)`})}),f&&N.jsx("li",{children:N.jsx(Xi,{status:"processing",text:"周报"})})]})})},s=c=>{r(c),i(!0)},l=()=>{if(!n)return null;const c=e.find(f=>f.date===n.format("YYYY-MM-DD")),u=t.find(f=>n.isBetween(f.weekStart,f.weekEnd,"day","[]"));return N.jsxs(N.Fragment,{children:[c&&N.jsx(ol,{title:"日报详情",style:{marginBottom:16},children:N.jsxs(Bs,{column:1,children:[N.jsx(Bs.Item,{label:"日期",children:c.date}),N.jsxs(Bs.Item,{label:"工作时长",children:[c.workHours,"小时"]}),N.jsx(Bs.Item,{label:"已完成工作",children:N.jsx("ul",{children:c.content.completed.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"进行中工作",children:N.jsx("ul",{children:c.content.inProgress.map((f,h)=>N.jsx("li",{children:f},h))})}),c.content.problems.length>0&&N.jsx(Bs.Item,{label:"遇到的问题",children:N.jsx("ul",{children:c.content.problems.map((f,h)=>N.jsx("li",{children:f},h))})})]})}),u&&N.jsx(ol,{title:"周报详情",children:N.jsxs(Bs,{column:1,children:[N.jsxs(Bs.Item,{label:"周期",children:[u.weekStart," 至 ",u.weekEnd]}),N.jsx(Bs.Item,{label:"本周完成",children:N.jsx("ul",{children:u.content.completed.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"下周计划",children:N.jsx("ul",{children:u.content.nextWeekPlan.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"项目进展",children:u.projectProgress.map((f,h)=>N.jsxs("div",{style:{marginBottom:8},children:[N.jsx(Wu,{color:"blue",children:f.projectId}),N.jsxs(Wu,{color:"green",children:[f.progress,"%"]}),N.jsx("div",{children:f.description})]},h))})]})})]})};return N.jsxs(N.Fragment,{children:[N.jsx(Xie,{onSelect:s,cellRender:a,className:"report-calendar"}),N.jsx(Hi,{title:"报告详情",open:o,onCancel:()=>i(!1),footer:null,width:800,children:l()}),N.jsx("style",{children:` + `,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 NO=ir.default;Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=I$t;Ql.unitless=Ql.ignore=Ql.getComputedToken=void 0;var _$t=NO(d),$$t=Uf,P$t=NO(RO),tG=Vc,O$t=NO(Zc),nhe=NO(TF),nG=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 o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=nG(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=(0,nhe.default)(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=nG(c,["theme"]);let h=f;u&&(h=RF(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};Ql.getComputedToken=RF;function I$t(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=_$t.default.useContext(tG.DesignTokenContext),i=`${P$t.default}-${t||""}`,a=n||tG.defaultTheme,[s,l,c]=(0,$$t.useCacheToken)(a,[O$t.default,e],{salt:i,override:r,getComputedToken:RF,formatToken:nhe.default,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:M$t,ignore:T$t,preserve:R$t}});return[a,c,t?l:"",s,o]}var Sf={},Po={};Object.defineProperty(Po,"__esModule",{value:!0});Po.textEllipsis=Po.resetIcon=Po.resetComponent=Po.operationUnit=Po.genLinkStyle=Po.genIconStyle=Po.genFocusStyle=Po.genFocusOutline=Po.genCommonStyle=Po.clearFix=void 0;var k$t=Uf;Po.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const N$t=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}};Po.resetComponent=N$t;const rhe=()=>({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"}});Po.resetIcon=rhe;const A$t=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Po.clearFix=A$t;const D$t=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"}}});Po.genLinkStyle=D$t;const j$t=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}};Po.genCommonStyle=j$t;const ohe=(e,t)=>({outline:`${(0,k$t.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Po.genFocusOutline=ohe;const ihe=(e,t)=>({"&:focus-visible":Object.assign({},ohe(e,t))});Po.genFocusStyle=ihe;const F$t=e=>({[`.${e}`]:Object.assign(Object.assign({},rhe()),{[`.${e} .${e}-icon`]:{display:"block"}})});Po.genIconStyle=F$t;const L$t=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"},ihe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Po.operationUnit=L$t;var B$t=ti.default;Object.defineProperty(Sf,"__esModule",{value:!0});Sf.genSubStyleComponent=Sf.genStyleHooks=Sf.genComponentStyleHook=void 0;var rG=d,z$t=ehe,oI=ys,iI=Po,oG=B$t(Ql);const{genStyleHooks:H$t,genComponentStyleHook:U$t,genSubStyleComponent:W$t}=(0,z$t.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,rG.useContext)(oI.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=(0,oG.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=(0,rG.useContext)(oI.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,iI.genLinkStyle)(e)},(0,iI.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:oI.defaultIconPrefixCls)]},getCommonStyle:iI.genCommonStyle,getCompUnitless:()=>oG.unitless});Sf.genSubStyleComponent=W$t;Sf.genComponentStyleHook=U$t;Sf.genStyleHooks=H$t;var IF={};Object.defineProperty(IF,"__esModule",{value:!0});IF.default=K$t;var V$t=MF;function K$t(e,t){return V$t.PresetColors.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var AO={},q$t=ir.default;Object.defineProperty(AO,"__esModule",{value:!0});AO.default=void 0;var G$t=Uf,Y$t=Po,X$t=q$t(Ql);const Q$t=(e,t)=>{const[n,r]=(0,X$t.default)();return(0,G$t.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Y$t.genIconStyle)(e)])};AO.default=Q$t;(function(e){var t=ir.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 o.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 i.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=Uf,r=ehe,o=MF,i=jS,a=t(Ql),s=Sf,l=t(IF),c=t(AO),u=Vc})(d0);var DO={},J$t=ti.default;Object.defineProperty(DO,"__esModule",{value:!0});DO.default=void 0;var Z$t=J$t(d);const ePt=Object.assign({},Z$t),{useId:iG}=ePt,tPt=()=>"",nPt=typeof iG>"u"?tPt:iG;DO.default=nPt;var kF=ir.default;Object.defineProperty(OF,"__esModule",{value:!0});OF.default=sPt;var rPt=kF(bO),oPt=kF(MO),iPt=al,aG=d0,aPt=kF(DO);function sPt(e,t,n){var r;(0,iPt.devUseWarning)("ConfigProvider");const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},aG.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:aG.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,aPt.default)();return(0,rPt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.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,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!(0,oPt.default)(c,f,!0)}))}var NF={};const lPt=y1(KOe);var cPt=ti.default;Object.defineProperty(NF,"__esModule",{value:!0});NF.default=fPt;var sG=cPt(d),uPt=lPt,dPt=d0;function fPt(e){const{children:t}=e,[,n]=(0,dPt.useToken)(),{motion:r}=n,o=sG.useRef(!1);return o.current=o.current||r===!1,o.current?sG.createElement(uPt.Provider,{motion:r},t):t}var jO={},hPt=ti.default;Object.defineProperty(jO,"__esModule",{value:!0});jO.default=void 0;hPt(d);jO.default=()=>null;var ahe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=d0})(ahe);(function(e){"use client";var t=ir.default,n=ti.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(d),o=Uf,i=t(a0),a=t(bO),s=SO,l=n(al),c=t(CO),u=n(Kfe),f=t(u0),h=t(Op),p=Vc,m=t(Zc),g=ys,v=PO,b=Ep,y=t(OO),S=t(OF),w=t(NF),E=t(jO),C=n(_p),x=t(ahe),_=function(K,L){var Q={};for(var ee in K)Object.prototype.hasOwnProperty.call(K,ee)&&L.indexOf(ee)<0&&(Q[ee]=K[ee]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,ee=Object.getOwnPropertySymbols(K);reL.endsWith("Color"))}const k=K=>{const{prefixCls:L,iconPrefixCls:Q,theme:ee,holderRender:re}=K;L!==void 0&&(O=L),Q!==void 0&&(I=Q),"holderRender"in K&&(T=re),ee&&(j(ee)?(0,v.registerTheme)(D(),ee):M=ee)},F=()=>({getPrefixCls:(K,L)=>L||(K?`${D()}-${K}`:D()),getIconPrefixCls:A,getRootPrefixCls:()=>O||D(),getTheme:()=>M,holderRender:T});e.globalConfig=F;const V=K=>{const{children:L,csp:Q,autoInsertSpaceInButton:ee,alert:re,anchor:ie,form:G,locale:X,componentSize:ne,direction:le,space:ce,splitter:oe,virtual:se,dropdownMatchSelectWidth:fe,popupMatchSelectWidth:te,popupOverflow:he,legacyLocale:pe,parentContext:Oe,iconPrefixCls:Me,theme:Se,componentDisabled:ye,segmented:ve,statistic:be,spin:Pe,calendar:Ne,carousel:U,cascader:H,collapse:q,typography:me,checkbox:Ce,descriptions:ue,divider:Le,drawer:He,skeleton:ge,steps:De,image:qe,layout:Fe,list:Ke,mentions:Ue,modal:Ve,progress:Tt,result:et,slider:st,breadcrumb:yt,menu:gt,pagination:Lt,input:St,textArea:wt,empty:Nt,badge:Be,radio:We,rate:je,switch:Xe,transfer:pt,avatar:vt,message:Mt,tag:Et,table:ft,card:dt,tabs:Rt,timeline:Ct,timePicker:Wt,upload:at,notification:$t,tree:Bt,colorPicker:xt,datePicker:bt,rangePicker:Ft,flex:Re,wave:It,dropdown:tt,warning:Ot,tour:Pt,tooltip:pn,popover:Pn,popconfirm:$,floatButtonGroup:R,variant:J,inputNumber:Ee,treeSelect:ke}=K,Je=r.useCallback((Qt,Jt)=>{const{prefixCls:Rn}=K;if(Jt)return Jt;const er=Rn||Oe.getPrefixCls("");return Qt?`${er}-${Qt}`:er},[Oe.getPrefixCls,K.prefixCls]),Dt=Me||Oe.iconPrefixCls||g.defaultIconPrefixCls,an=Q||Oe.csp;(0,x.default)(Dt,an);const En=(0,S.default)(Se,Oe.theme,{prefixCls:Je("")}),Cr={csp:an,autoInsertSpaceInButton:ee,alert:re,anchor:ie,locale:X||pe,direction:le,space:ce,splitter:oe,virtual:se,popupMatchSelectWidth:te??fe,popupOverflow:he,getPrefixCls:Je,iconPrefixCls:Dt,theme:En,segmented:ve,statistic:be,spin:Pe,calendar:Ne,carousel:U,cascader:H,collapse:q,typography:me,checkbox:Ce,descriptions:ue,divider:Le,drawer:He,skeleton:ge,steps:De,image:qe,input:St,textArea:wt,layout:Fe,list:Ke,mentions:Ue,modal:Ve,progress:Tt,result:et,slider:st,breadcrumb:yt,menu:gt,pagination:Lt,empty:Nt,badge:Be,radio:We,rate:je,switch:Xe,transfer:pt,avatar:vt,message:Mt,tag:Et,table:ft,card:dt,tabs:Rt,timeline:Ct,timePicker:Wt,upload:at,notification:$t,tree:Bt,colorPicker:xt,datePicker:bt,rangePicker:Ft,flex:Re,wave:It,dropdown:tt,warning:Ot,tour:Pt,tooltip:pn,popover:Pn,popconfirm:$,floatButtonGroup:R,variant:J,inputNumber:Ee,treeSelect:ke},ur=Object.assign({},Oe);Object.keys(Cr).forEach(Qt=>{Cr[Qt]!==void 0&&(ur[Qt]=Cr[Qt])}),P.forEach(Qt=>{const Jt=K[Qt];Jt&&(ur[Qt]=Jt)}),typeof ee<"u"&&(ur.button=Object.assign({autoInsertSpace:ee},ur.button));const Nr=(0,a.default)(()=>ur,ur,(Qt,Jt)=>{const Rn=Object.keys(Qt),er=Object.keys(Jt);return Rn.length!==er.length||Rn.some($r=>Qt[$r]!==Jt[$r])}),tr=r.useMemo(()=>({prefixCls:Dt,csp:an}),[Dt,an]);let en=r.createElement(r.Fragment,null,r.createElement(E.default,{dropdownMatchSelectWidth:fe}),L);const un=r.useMemo(()=>{var Qt,Jt,Rn,er;return(0,s.merge)(((Qt=h.default.Form)===null||Qt===void 0?void 0:Qt.defaultValidateMessages)||{},((Rn=(Jt=Nr.locale)===null||Jt===void 0?void 0:Jt.Form)===null||Rn===void 0?void 0:Rn.defaultValidateMessages)||{},((er=Nr.form)===null||er===void 0?void 0:er.validateMessages)||{},(G==null?void 0:G.validateMessages)||{})},[Nr,G==null?void 0:G.validateMessages]);Object.keys(un).length>0&&(en=r.createElement(c.default.Provider,{value:un},en)),X&&(en=r.createElement(u.default,{locale:X,_ANT_MARK__:u.ANT_MARK},en)),(Dt||an)&&(en=r.createElement(i.default.Provider,{value:tr},en)),ne&&(en=r.createElement(C.SizeContextProvider,{size:ne},en)),en=r.createElement(w.default,null,en);const rr=r.useMemo(()=>{const Qt=En||{},{algorithm:Jt,token:Rn,components:er,cssVar:$r}=Qt,ao=_(Qt,["algorithm","token","components","cssVar"]),Bn=Jt&&(!Array.isArray(Jt)||Jt.length>0)?(0,o.createTheme)(Jt):p.defaultTheme,Yr={};Object.entries(er||{}).forEach(rn=>{let[fn,Sn]=rn;const Dn=Object.assign({},Sn);"algorithm"in Dn&&(Dn.algorithm===!0?Dn.theme=Bn:(Array.isArray(Dn.algorithm)||typeof Dn.algorithm=="function")&&(Dn.theme=(0,o.createTheme)(Dn.algorithm)),delete Dn.algorithm),Yr[fn]=Dn});const Fn=Object.assign(Object.assign({},m.default),Rn);return Object.assign(Object.assign({},ao),{theme:Bn,token:Fn,components:Yr,override:Object.assign({override:Fn},Yr),cssVar:$r})},[En]);return Se&&(en=r.createElement(p.DesignTokenContext.Provider,{value:rr},en)),Nr.warning&&(en=r.createElement(l.WarningContext.Provider,{value:Nr.warning},en)),ye!==void 0&&(en=r.createElement(b.DisabledContextProvider,{disabled:ye},en)),r.createElement(g.ConfigContext.Provider,{value:Nr},en)},W=K=>{const L=r.useContext(g.ConfigContext),Q=r.useContext(f.default);return r.createElement(V,Object.assign({parentContext:L,legacyLocale:Q},K))};W.ConfigContext=g.ConfigContext,W.SizeContext=C.default,W.config=k,W.useConfig=y.default,Object.defineProperty(W,"SizeContext",{get:()=>C.default}),e.default=W})(bF);var LS={},pPt=ti.default;Object.defineProperty(LS,"__esModule",{value:!0});LS.LayoutContext=void 0;var mPt=pPt(d);LS.LayoutContext=mPt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var AF={},DF={},jF={},gPt=ir.default;Object.defineProperty(jF,"__esModule",{value:!0});jF.default=CPt;var vPt=gPt(Mp),yPt=Symbol.for("react.element"),bPt=Symbol.for("react.transitional.element"),SPt=Symbol.for("react.fragment");function CPt(e){return e&&(0,vPt.default)(e)==="object"&&(e.$$typeof===yPt||e.$$typeof===bPt)&&e.type===SPt}var she=ir.default;Object.defineProperty(DF,"__esModule",{value:!0});DF.default=V8;var wPt=she(jF),xPt=she(d);function V8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return xPt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(V8(r)):(0,wPt.default)(r)&&r.props?n=n.concat(V8(r.props.children,t)):n.push(r))}),n}var uv={},K8={exports:{}},FO={},FF={};Object.defineProperty(FF,"__esModule",{value:!0});var EPt={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"};FF.default=EPt;var _Pt=ti.default,LF=ir.default;Object.defineProperty(FO,"__esModule",{value:!0});FO.default=void 0;var $Pt=LF(GP),lhe=_Pt(d),PPt=LF(FF),OPt=LF(i0),MPt=function(t,n){return lhe.createElement(OPt.default,(0,$Pt.default)({},t,{ref:n,icon:PPt.default}))},TPt=lhe.forwardRef(MPt);FO.default=TPt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(FO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(K8,K8.exports);var RPt=K8.exports,q8={exports:{}},LO={},BF={};Object.defineProperty(BF,"__esModule",{value:!0});var IPt={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"};BF.default=IPt;var kPt=ti.default,zF=ir.default;Object.defineProperty(LO,"__esModule",{value:!0});LO.default=void 0;var NPt=zF(GP),che=kPt(d),APt=zF(BF),DPt=zF(i0),jPt=function(t,n){return che.createElement(DPt.default,(0,NPt.default)({},t,{ref:n,icon:APt.default}))},FPt=che.forwardRef(jPt);LO.default=FPt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(LO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(q8,q8.exports);var LPt=q8.exports,G8={exports:{}},BO={},HF={};Object.defineProperty(HF,"__esModule",{value:!0});var BPt={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"};HF.default=BPt;var zPt=ti.default,UF=ir.default;Object.defineProperty(BO,"__esModule",{value:!0});BO.default=void 0;var HPt=UF(GP),uhe=zPt(d),UPt=UF(HF),WPt=UF(i0),VPt=function(t,n){return uhe.createElement(WPt.default,(0,HPt.default)({},t,{ref:n,icon:UPt.default}))},KPt=uhe.forwardRef(VPt);BO.default=KPt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(BO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(G8,G8.exports);var qPt=G8.exports,zO={},Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.prepareComponentToken=Vu.default=Vu.DEPRECATED_TOKENS=void 0;var GPt=Uf,YPt=d0;const XPt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=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:i,padding:a,color:s,lineHeight:(0,GPt.unit)(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},dhe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,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:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}};Vu.prepareComponentToken=dhe;const QPt=Vu.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Vu.default=(0,YPt.genStyleHooks)("Layout",e=>[XPt(e)],dhe,{deprecatedTokens:QPt});Object.defineProperty(zO,"__esModule",{value:!0});zO.default=void 0;var Q0=Uf,lG=Vu,JPt=d0;const ZPt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=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,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,Q0.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:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,Q0.unit)(h)} ${(0,Q0.unit)(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,Q0.unit)(h)} 0 0 ${(0,Q0.unit)(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};zO.default=(0,JPt.genStyleHooks)(["Layout","Sider"],e=>[ZPt(e)],lG.prepareComponentToken,{deprecatedTokens:lG.DEPRECATED_TOKENS});var f0=ir.default,eOt=ti.default;Object.defineProperty(uv,"__esModule",{value:!0});uv.default=uv.SiderContext=void 0;var xu=eOt(d),ds=xu,tOt=f0(RPt),cG=f0(LPt),uG=f0(qPt),dG=f0(X_),nOt=f0(yO),rOt=bF,oOt=LS,iOt=f0(zO),aOt=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 o=0,r=Object.getOwnPropertySymbols(e);o!Number.isNaN(Number.parseFloat(e))&&isFinite(e),lOt=uv.SiderContext=ds.createContext({}),cOt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),uOt=ds.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,b=aOt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=(0,xu.useContext)(oOt.LayoutContext),[S,w]=(0,xu.useState)("collapsed"in e?e.collapsed:a),[E,C]=(0,xu.useState)(!1);(0,xu.useEffect)(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const x=(X,ne)=>{"collapsed"in e||w(X),g==null||g(X,ne)},{getPrefixCls:_,direction:P}=(0,xu.useContext)(rOt.ConfigContext),O=_("layout-sider",n),[I,M,T]=(0,iOt.default)(O),D=(0,xu.useRef)(null);D.current=X=>{C(X.matches),v==null||v(X.matches),S!==X.matches&&x(X.matches,"responsive")},(0,xu.useEffect)(()=>{function X(le){return D.current(le)}let ne;if(typeof window<"u"){const{matchMedia:le}=window;if(le&&m&&m in fG){ne=le(`screen and (max-width: ${fG[m]})`);try{ne.addEventListener("change",X)}catch{ne.addListener(X)}X(ne)}}return()=>{try{ne==null||ne.removeEventListener("change",X)}catch{ne==null||ne.removeListener(X)}}},[m]),(0,xu.useEffect)(()=>{const X=cOt("ant-sider-");return y.addSider(X),()=>y.removeSider(X)},[]);const A=()=>{x(!S,"clickTrigger")},j=(0,nOt.default)(b,["collapsed"]),k=S?h:f,F=sOt(k)?`${k}px`:String(k),V=parseFloat(String(h||0))===0?ds.createElement("span",{onClick:A,className:(0,dG.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:p},o||ds.createElement(tOt.default,null)):null,W=P==="rtl"==!u,Q={expanded:W?ds.createElement(uG.default,null):ds.createElement(cG.default,null),collapsed:W?ds.createElement(cG.default,null):ds.createElement(uG.default,null)}[S?"collapsed":"expanded"],ee=o!==null?V||ds.createElement("div",{className:`${O}-trigger`,onClick:A,style:{width:F}},o||Q):null,re=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=(0,dG.default)(O,`${O}-${s}`,{[`${O}-collapsed`]:!!S,[`${O}-has-trigger`]:c&&o!==null&&!V,[`${O}-below`]:!!E,[`${O}-zero-width`]:parseFloat(F)===0},r,M,T),G=ds.useMemo(()=>({siderCollapsed:S}),[S]);return I(ds.createElement(lOt.Provider,{value:G},ds.createElement("aside",Object.assign({className:ie},j,{style:re,ref:t}),ds.createElement("div",{className:`${O}-children`},i),c||E&&V?ee:null)))});uv.default=uOt;var fhe=ir.default;Object.defineProperty(AF,"__esModule",{value:!0});AF.default=hOt;var dOt=fhe(DF),fOt=fhe(uv);function hOt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,dOt.default)(t).some(o=>o.type===fOt.default)}var HO,UO,pOt=ti.default,BS=ir.default;Object.defineProperty(Fu,"__esModule",{value:!0});Fu.default=Fu.Header=UO=Fu.Footer=HO=Fu.Content=void 0;var mOt=BS(Bfe),Ks=pOt(d),hhe=BS(X_),gOt=BS(yO),Y8=bF,vOt=LS,yOt=BS(AF),phe=BS(Vu),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 o=0,r=Object.getOwnPropertySymbols(e);oKs.forwardRef((a,s)=>Ks.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const WF=Ks.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=mhe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=Ks.useContext(Y8.ConfigContext),l=s("layout",n),[c,u,f]=(0,phe.default)(l),h=r?`${l}-${r}`:l;return c(Ks.createElement(i,Object.assign({className:(0,hhe.default)(n||h,o,u,f),ref:t},a)))}),bOt=Ks.forwardRef((e,t)=>{const{direction:n}=Ks.useContext(Y8.ConfigContext),[r,o]=Ks.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=mhe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,gOt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:g}=Ks.useContext(Y8.ConfigContext),v=m("layout",i),b=(0,yOt.default)(r,l,c),[y,S,w]=(0,phe.default)(v),E=(0,hhe.default)(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,S,w),C=Ks.useMemo(()=>({siderHook:{addSider:x=>{o(_=>[].concat((0,mOt.default)(_),[x]))},removeSider:x=>{o(_=>_.filter(P=>P!==x))}}}),[]);return y(Ks.createElement(vOt.LayoutContext.Provider,{value:C},Ks.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},p),l)))}),SOt=WO({tagName:"div",displayName:"Layout"})(bOt);Fu.Header=WO({suffixCls:"header",tagName:"header",displayName:"Header"})(WF);UO=Fu.Footer=WO({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(WF);HO=Fu.Content=WO({suffixCls:"content",tagName:"main",displayName:"Content"})(WF);Fu.default=SOt;function zS(){const{isDarkMode:e}=FQ(),{token:t}=pa.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,o={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},i={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:o,rightSiderStyle:i,contentStyle:a,footerStyle:s}}const{Header:COt,Sider:wOt,Content:xOt}=ei,ghe=()=>{const e=eo();d.useContext(ia);const t=Ya(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:o,contentStyle:i}=zS(),[a,s]=d.useState([]);d.useEffect(()=>{const c=[{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"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return N.jsxs(ei,{children:[N.jsx(wOt,{style:r,width:o,children:N.jsx(vc,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),N.jsxs(ei,{children:[N.jsx(COt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),N.jsx(xOt,{style:i,children:N.jsx(PP,{})})]})]})},vhe=hl()(uc(dc(fc((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===EQ){const o=t().devices.some(i=>i.device.uid===n.device.uid);e(o?{devices:[n,...t().devices.filter(i=>i.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===V0e){const r=t().members.some(o=>o.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(o=>o.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:F0e}))),EOt=hl()(uc(dc(fc((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:D0e}))),yhe=hl()(uc(dc(fc((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const o=r.workgroupResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o[i]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const o=r.workgroupResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o.splice(i,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,o=r.findIndex(i=>i.uid===n);o!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,o),...r.slice(o+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:W0e}))),_Ot=()=>{const e=Dp(u=>u.deleteOrg),t=Ll(u=>u.resetThreads),n=hd(u=>u.resetMessageList),r=EOt(u=>u.resetMembers),o=_1(u=>u.removeAccessToken),i=vi(u=>u.resetUserInfo),a=vhe(u=>u.resetContactInfo),s=jp(u=>u.resetAgentInfo),l=yhe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),o(),i(),a(),s(),l()}}};function VF(){const e=_1(y=>y.accessToken),t=vi(y=>y.userInfo),n=jp(y=>y.agentInfo),r=vO(),[o,i]=d.useState(!1),{showNotification:a}=yF(),{translateString:s}=cu();hd(y=>y.addMessage),Ll(y=>y.updateThreadContent),d.useContext(ia),d.useRef(!1);const l=Ll(y=>y.threads),[c,u]=d.useState(l),f=d.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$Ge()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),h=async()=>{},p=d.useRef(n==null?void 0:n.uid),m=d.useCallback(()=>{if(!o&&e)return setInterval(async()=>{p.current?h():console.log("useMqtt autoPingMessage currentUidRef.current:",p.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[o,e,t,n]),g=()=>{console.log("useMqtt doConnect"),EGe({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),wR()},b=y=>{var S,w;(y==null?void 0:y.type)!==$b&&((S=y==null?void 0:y.user)==null?void 0:S.uid)!==(t==null?void 0:t.uid)&&((w=y==null?void 0:y.user)==null?void 0:w.uid)!==(n==null?void 0:n.uid)&&(i_e(),console.log("playAudio"))};return d.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():wR()},[r]),d.useEffect(()=>{if(n!=null&&n.uid){p.current=n==null?void 0:n.uid;const y=m();return()=>{clearInterval(y)}}else p.current=null},[n]),d.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const y=f();return()=>{wR(),clearInterval(y)}},[e,t]),d.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),d.useEffect(()=>{const y=function(S){if(console.log("useMqtt handleNewMessage",S),S.type===_b||S.type===_Q||S.type===_k||S.type===$b||S.type===Pb)return;const w=S.threadTopic,E=c.find(C=>C.topic===w);E?E.mute?console.log("useMqtt matchingThread muted",w):(console.log("useMqtt matchingThread no mute",w),a(s(bC),s(bC)),b(S)):(console.log("useMqtt matchingThread no"),a(s(bC),s(bC)),b(S))};return Jn.on(xb,y),()=>{Jn.off(xb)}},[c]),d.useEffect(()=>{console.log("useMqtt useEffect");const y=function(){console.log("handleMqttConnected"),i(!0)},S=function(){console.log("handleMqttDisconnected"),i(!1)};return Jn.on(mk,y),Jn.on(vk,S),Jn.on(yk,S),Jn.on(gk,S),Jn.on(bk,S),Jn.on(Sk,S),()=>{console.log("un - useEffect mqttDisconnect"),Jn.off(mk),Jn.off(vk),Jn.off(yk),Jn.off(gk),Jn.off(bk),Jn.off(Sk)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:o}}function bhe(){console.log("useEventBus");const{clearStorage:e}=_Ot(),{doDisconnect:t}=VF(),{setPingLoading:n}=d.useContext(ia),r=d.useCallback(async()=>{try{const o=await GEt();console.log("logout result:",o.data),n(!1),t(),e(),DGe()}catch(o){console.log("logout error:",o)}},[]);return d.useEffect(()=>{console.log("useEventBus useEffect");const o=function(i){console.log("token过期,强制刷新登录",i),Jn.off(pf,o),r()};return Jn.on(pf,o),()=>{console.log("un - useEffect mqttDisconnect"),Jn.off(pf)}},[]),{doLogout:r}}const She=()=>{const e=eo(),{isLoggedIn:t,mode:n}=d.useContext(ia),{doLogout:r}=bhe(),[o,i]=d.useState("✅"),[a,s]=d.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=vO();d.useEffect(()=>{l?(i("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(i("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,h]=d.useState(!1),p=()=>{h(!0)},m=()=>{h(!1)},g=()=>{console.log("handleShowLoginModel"),p()},v=y=>{console.log(y),r()},b=y=>{console.log(y)};return N.jsxs(N.Fragment,{children:[N.jsx(Hi,{open:f&&!t,onOk:m,onCancel:m,footer:[N.jsx(Hn,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:N.jsx(L8,{isModel:!0})}),N.jsxs("span",{children:[!t&&N.jsxs(N.Fragment,{children:[N.jsx(fl,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),N.jsx(fl,{content:u,children:N.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&N.jsx(N.Fragment,{children:N.jsx(Mse,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:b,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===sp&&Ag&&N.jsx("span",{style:{marginLeft:10},children:N.jsx(xa,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:N.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),N.jsxs("span",{className:"footerRightButton",children:[N.jsx(xa,{title:a,children:N.jsx("span",{children:o})}),N.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>Qb(rye),children:["v",o_e()]}),N.jsx("span",{style:{marginLeft:"10px"},onClick:()=>Qb("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"})})]})]})},Che=()=>{const e=Ya(),{userInfo:t}=Hle(),{translateString:n}=cu(),{mode:r}=d.useContext(ia),[o,i]=d.useState(""),[a,s]=d.useState(""),[l,c]=d.useState(""),u=()=>{e("/setting")};return d.useEffect(()=>{i(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),N.jsx(N.Fragment,{children:N.jsx(fl,{title:o,content:a,placement:"rightBottom",children:N.jsx(N.Fragment,{children:N.jsx(Xc,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function whe(){console.log("useElectronApi");const e=Ya(),t=vi(r=>r.userInfo),n=vhe(r=>r.addDevice);d.useEffect(()=>(console.log("useElectronApi useEffect"),Pi?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const o=JSON.parse(r);if(o.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const i={type:EQ,device:o.device,user:o.user,createdAt:o.createdAt};n(i)}}),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===P0e){gn.success("截图成功");const o=r.data;Jn.emit(k0e,o.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),Pi?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const $Ot=()=>{const e=eo(),{doLogout:t}=bhe(),{isLoggedIn:n,locale:r,changeLocale:o,mode:i,changeMode:a,handleUpdateAgentStatus:s}=d.useContext(ia),{agentInfo:l}=jp(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:N.jsx(Wse,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,f]=d.useState(c);d.useEffect(()=>{if(f(c),l.uid!==""&&i===sp){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:Q7,icon:l.status===Q7?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:J7,icon:l.status===J7?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:WM,icon:l.status===WM?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=p[0].children,v=g.findIndex(b=>b.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),p[0].children=g,f(p)}},[l,r,i]);const h=async p=>{console.log("click",p.key),p.key==="logout"?t():p.key==="zh-cn"||p.key==="zh-tw"||p.key==="en"?o(p.key):p.key===Zm||p.key===sp||p.key===a2?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===WM&&_se.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return N.jsx(N.Fragment,{children:n?N.jsx(N.Fragment,{children:N.jsx(vc,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):N.jsx(N.Fragment,{})})};async function POt(e){return ko("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:po}})}const xhe=()=>{const[e,t]=d.useState([]),n=new jle;d.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)}},o=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)}},i=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 d.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return Jn.on(xb,a),()=>{console.log("useIndexedDB useEffect return"),Jn.off(xb,a)}},[]),{messages:e,createMessage:r,updateMessage:o,deleteMessage:i}};async function Ehe(){return ko("/api/v1/user/profile",{method:"GET",params:{client:po}})}async function _he(e){return ko("/api/v1/user/update",{method:"POST",data:{...e,client:po}})}async function OOt(e){return ko("/api/v1/user/change/password",{method:"POST",data:{...e,client:po}})}async function $he(e){return ko("/api/v1/user/change/email",{method:"POST",data:{...e,client:po}})}async function Phe(e){return ko("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:po}})}const MOt=()=>{const e=eo(),{locale:t,changeLocale:n}=d.useContext(ia),r=[{key:"lang",icon:N.jsx(UHe,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],o=i=>{const a=i.key;n(a)};return N.jsx(vc,{inlineCollapsed:!0,onClick:o,style:{width:64,height:34},mode:"inline",items:r})},TOt={id:"1",name:"示例项目",description:"这是一个示例项目",members:[],boards:[{id:"1",name:"主看板",lists:[{id:"list1",name:"待办",cards:[{id:"card1",title:"示例任务1",labels:[{id:"1",name:"优先",color:"red"}],members:[],tasks:[]}]},{id:"list2",name:"进行中",cards:[]},{id:"list3",name:"已完成",cards:[]}]}]},ROt={id:"1",userId:"1",date:"2024-02-08",content:{completed:["完成看板功能","完成日报功能"],inProgress:["周报功能开发中"],problems:["遇到了一些性能问题"],plans:["明天完成周报功能"]},workHours:8,projectId:"1"},IOt={id:"1",userId:"1",weekStart:"2024-02-05",weekEnd:"2024-02-11",content:{completed:["完成项目基础架构","实现核心功能"],nextWeekPlan:["开始开发新功能","优化现有功能"],problems:["需要优化性能"],suggestions:["建议增加自动化测试"]},projectProgress:[{projectId:"1",progress:60,description:"项目进展顺利,已完成主要功能"}]},nl=hl(e=>({projects:[TOt],currentProject:null,dailyReports:[ROt],weeklyReports:[IOt],setProjects:t=>e({projects:t}),setCurrentProject:t=>e({currentProject:t}),addCard:(t,n)=>e(r=>({currentProject:r.currentProject?{...r.currentProject,boards:r.currentProject.boards.map(o=>({...o,lists:o.lists.map(i=>i.id===t?{...i,cards:[...i.cards,n]}:i)}))}:null})),moveCard:(t,n,r,o)=>e(i=>{var s;if(!i.currentProject)return i;const a=(s=i.currentProject.boards.flatMap(l=>l.lists).find(l=>l.id===n))==null?void 0:s.cards.find(l=>l.id===t);return a?{currentProject:{...i.currentProject,boards:i.currentProject.boards.map(l=>({...l,lists:l.lists.map(c=>{if(c.id===n)return{...c,cards:c.cards.filter(u=>u.id!==t)};if(c.id===r){const u=[...c.cards];return u.splice(o,0,a),{...c,cards:u}}return c})}))}}:i}),updateCard:(t,n)=>e(r=>({currentProject:r.currentProject?{...r.currentProject,boards:r.currentProject.boards.map(o=>({...o,lists:o.lists.map(i=>({...i,cards:i.cards.map(a=>a.id===t?{...a,...n}:a)}))}))}:null})),addDailyReport:t=>e(n=>({dailyReports:[...n.dailyReports,t]})),addWeeklyReport:t=>e(n=>({weeklyReports:[...n.weeklyReports,t]}))})),Ohe=()=>{const e=nl(o=>o.projects),t=nl(o=>o.setCurrentProject),n=Ya(),r=o=>{t(o),n(`/project/${o.id}`)};return N.jsxs(sP,{gutter:[16,16],children:[e.map(o=>N.jsx(gp,{xs:24,sm:12,md:8,lg:6,children:N.jsx(ol,{hoverable:!0,cover:o.background&&N.jsx("img",{alt:o.name,src:o.background}),onClick:()=>r(o),children:N.jsx(ol.Meta,{title:o.name,description:o.description})})},o.id)),N.jsx(gp,{xs:24,sm:12,md:8,lg:6,children:N.jsx(ol,{hoverable:!0,style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:N.jsx(Hn,{type:"text",icon:N.jsx(Hu,{}),children:"创建项目"})})})]})},Mhe=()=>{const[e]=Vn.useForm(),[t,n]=d.useState(!1),r=nl(s=>s.dailyReports),o=nl(s=>s.addDailyReport),i=[{title:"日期",dataIndex:"date",key:"date",render:s=>qn(s).format("YYYY-MM-DD")},{title:"工作时长",dataIndex:"workHours",key:"workHours",render:s=>`${s}小时`},{title:"已完成工作",dataIndex:["content","completed"],key:"completed",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Uu,{color:"success",children:l},c))})},{title:"进行中工作",dataIndex:["content","inProgress"],key:"inProgress",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Uu,{color:"processing",children:l},c))})}],a=s=>{const l={id:Date.now().toString(),userId:"1",date:s.date.format("YYYY-MM-DD"),content:{completed:s.completed||[],inProgress:s.inProgress||[],problems:s.problems||[],plans:s.plans||[]},workHours:s.workHours,projectId:"1"};o(l),n(!1),e.resetFields()};return N.jsxs(N.Fragment,{children:[N.jsx(ol,{title:"日报",extra:N.jsx(Hn,{type:"primary",onClick:()=>n(!0),children:"新建日报"}),children:N.jsx(au,{columns:i,dataSource:r,rowKey:"id",pagination:{pageSize:10}})}),N.jsx(dP,{title:"新建日报",width:720,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:N.jsxs(Vn,{form:e,layout:"vertical",onFinish:a,initialValues:{workHours:8},children:[N.jsx(Vn.Item,{name:"date",label:"日期",rules:[{required:!0,message:"请选择日期"}],children:N.jsx(qa,{style:{width:"100%"}})}),N.jsx(Vn.List,{name:"completed",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"已完成工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入已完成工作"}],children:N.jsx(qr,{placeholder:"请输入已完成工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加已完成工作"})]})})}),N.jsx(Vn.List,{name:"inProgress",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"进行中工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入进行中工作"}],children:N.jsx(qr,{placeholder:"请输入进行中工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加进行中工作"})]})})}),N.jsx(Vn.List,{name:"problems",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"遇到的问题",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,children:N.jsx(qr,{placeholder:"请输入遇到的问题"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加问题"})]})})}),N.jsx(Vn.Item,{name:"workHours",label:"工作时长(小时)",children:N.jsx(lc,{min:0,max:24})}),N.jsx(Vn.Item,{children:N.jsxs(oo,{children:[N.jsx(Hn,{type:"primary",htmlType:"submit",children:"提交"}),N.jsx(Hn,{onClick:()=>n(!1),children:"取消"})]})})]})})]})},{TextArea:kOt}=qr,{RangePicker:NOt}=qa,The=()=>{const[e]=Vn.useForm(),[t,n]=d.useState(!1),r=nl(s=>s.weeklyReports),o=nl(s=>s.addWeeklyReport),i=[{title:"周期",key:"weekRange",render:(s,l)=>`${l.weekStart} 至 ${l.weekEnd}`},{title:"本周完成",dataIndex:["content","completed"],key:"completed",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Uu,{color:"success",children:l},c))})},{title:"项目进展",dataIndex:"projectProgress",key:"projectProgress",render:s=>N.jsx(oo,{direction:"vertical",children:s.map((l,c)=>N.jsxs("div",{children:[N.jsx(Uu,{color:"blue",children:l.projectId}),N.jsxs(Uu,{color:"green",children:[l.progress,"%"]})]},c))})}],a=s=>{const[l,c]=s.weekRange,u={id:Date.now().toString(),userId:"1",weekStart:l.format("YYYY-MM-DD"),weekEnd:c.format("YYYY-MM-DD"),content:{completed:s.completed||[],nextWeekPlan:s.nextWeekPlan||[],problems:s.problems||[],suggestions:s.suggestions||[]},projectProgress:s.projectProgress||[]};o(u),n(!1),e.resetFields()};return N.jsxs(N.Fragment,{children:[N.jsx(ol,{title:"周报",extra:N.jsx(Hn,{type:"primary",onClick:()=>n(!0),children:"新建周报"}),children:N.jsx(au,{columns:i,dataSource:r,rowKey:"id",pagination:{pageSize:10}})}),N.jsx(dP,{title:"新建周报",width:720,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:N.jsxs(Vn,{form:e,layout:"vertical",onFinish:a,children:[N.jsx(Vn.Item,{name:"weekRange",label:"周期",rules:[{required:!0,message:"请选择周期"}],children:N.jsx(NOt,{style:{width:"100%"},picker:"week"})}),N.jsx(Vn.List,{name:"completed",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"本周完成工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入完成的工作"}],children:N.jsx(qr,{placeholder:"请输入完成的工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加完成工作"})]})})}),N.jsx(Vn.List,{name:"nextWeekPlan",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"下周工作计划",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入工作计划"}],children:N.jsx(qr,{placeholder:"请输入工作计划"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加工作计划"})]})})}),N.jsx(Vn.List,{name:"projectProgress",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"项目进展",children:[s.map((u,f)=>N.jsx("div",{style:{marginBottom:16},children:N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{name:[u.name,"projectId"],rules:[{required:!0,message:"请选择项目"}],children:N.jsxs(Va,{placeholder:"选择项目",children:[N.jsx(Va.Option,{value:"1",children:"项目A"}),N.jsx(Va.Option,{value:"2",children:"项目B"})]})}),N.jsx(Vn.Item,{name:[u.name,"progress"],rules:[{required:!0,message:"请输入进度"}],children:N.jsx(lc,{min:0,max:100,formatter:h=>`${h}%`,parser:h=>{const p=parseInt((h==null?void 0:h.replace("%",""))||"0",10);return isNaN(p)||p<=0?0:p>=100?100:p}})}),N.jsx(Vn.Item,{name:[u.name,"description"],children:N.jsx(kOt,{placeholder:"项目进展说明",autoSize:{minRows:2}})}),N.jsx(Hn,{type:"text",danger:!0,icon:N.jsx(lg,{}),onClick:()=>c(f),children:"删除"})]})},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加项目进展"})]})})}),N.jsx(Vn.Item,{children:N.jsxs(oo,{children:[N.jsx(Hn,{type:"primary",htmlType:"submit",children:"提交"}),N.jsx(Hn,{onClick:()=>n(!1),children:"取消"})]})})]})})]})};var Rhe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var c=o(i),u=o(a),f=(l=l||"()")[0]==="(",h=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(h?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(h?this.isAfter(u,s):!this.isBefore(u,s))}}})})(Rhe);var AOt=Rhe.exports;const DOt=Fr(AOt);qn.extend(DOt);const jOt=({dailyReports:e,weeklyReports:t})=>{const[n,r]=d.useState(null),[o,i]=d.useState(!1),a=c=>{const u=e.find(p=>p.date===c.format("YYYY-MM-DD")),f=t.find(p=>qn(c).isBetween(p.weekStart,p.weekEnd,"day","[]")),h=c.isSame(qn(),"day");return N.jsx("div",{style:{height:"100%",padding:4,background:h?"rgba(24, 144, 255, 0.1)":"transparent",border:h?"1px solid #1890ff":"none",borderRadius:4},children:N.jsxs("ul",{style:{listStyle:"none",padding:0,margin:0},children:[u&&N.jsx("li",{children:N.jsx(Xi,{status:"success",text:`日报 (${u.workHours}小时)`})}),f&&N.jsx("li",{children:N.jsx(Xi,{status:"processing",text:"周报"})})]})})},s=c=>{r(c),i(!0)},l=()=>{if(!n)return null;const c=e.find(f=>f.date===n.format("YYYY-MM-DD")),u=t.find(f=>n.isBetween(f.weekStart,f.weekEnd,"day","[]"));return N.jsxs(N.Fragment,{children:[c&&N.jsx(ol,{title:"日报详情",style:{marginBottom:16},children:N.jsxs(Bs,{column:1,children:[N.jsx(Bs.Item,{label:"日期",children:c.date}),N.jsxs(Bs.Item,{label:"工作时长",children:[c.workHours,"小时"]}),N.jsx(Bs.Item,{label:"已完成工作",children:N.jsx("ul",{children:c.content.completed.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"进行中工作",children:N.jsx("ul",{children:c.content.inProgress.map((f,h)=>N.jsx("li",{children:f},h))})}),c.content.problems.length>0&&N.jsx(Bs.Item,{label:"遇到的问题",children:N.jsx("ul",{children:c.content.problems.map((f,h)=>N.jsx("li",{children:f},h))})})]})}),u&&N.jsx(ol,{title:"周报详情",children:N.jsxs(Bs,{column:1,children:[N.jsxs(Bs.Item,{label:"周期",children:[u.weekStart," 至 ",u.weekEnd]}),N.jsx(Bs.Item,{label:"本周完成",children:N.jsx("ul",{children:u.content.completed.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"下周计划",children:N.jsx("ul",{children:u.content.nextWeekPlan.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"项目进展",children:u.projectProgress.map((f,h)=>N.jsxs("div",{style:{marginBottom:8},children:[N.jsx(Uu,{color:"blue",children:f.projectId}),N.jsxs(Uu,{color:"green",children:[f.progress,"%"]}),N.jsx("div",{children:f.description})]},h))})]})})]})};return N.jsxs(N.Fragment,{children:[N.jsx(Yie,{onSelect:s,cellRender:a,className:"report-calendar"}),N.jsx(Hi,{title:"报告详情",open:o,onCancel:()=>i(!1),footer:null,width:800,children:l()}),N.jsx("style",{children:` .report-calendar .ant-picker-calendar-date-today { color: #1890ff; font-weight: bold; @@ -754,7 +750,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .report-calendar .ant-picker-calendar-date-today .ant-picker-calendar-date-value { color: #1890ff; } - `})]})},Yhe=()=>{const e=nl(n=>n.dailyReports),t=nl(n=>n.weeklyReports);return N.jsx(ol,{title:"工作报告日历",children:N.jsx(dTt,{dailyReports:e,weeklyReports:t})})},fTt=()=>{const e=eo(),{locale:t}=d.useContext(ia),n=localStorage.getItem(tB),[r,o]=d.useState(n||"/chat"),i=Ya(),{isLoggedIn:a,hasRoleAgent:s}=d.useContext(ia),{footerStyle:l}=BS(),{currentOrg:c,setCurrentOrg:u}=Dp(P=>({currentOrg:P.currentOrg,setCurrentOrg:P.setCurrentOrg})),{userInfo:f,setUserInfo:h}=yi(P=>({userInfo:P.userInfo,setUserInfo:P.setUserInfo})),{setAgentInfo:p}=jp(P=>({setAgentInfo:P.setAgentInfo})),m=Ll(P=>P.removeThread),g=Ahe(P=>P.setWorkgroupResult),[v,b]=d.useState(!1),y=Ll(P=>P.threads);d.useEffect(()=>{const P=y.some(O=>O.unreadCount>0);b(P)},[y]);const[S,w]=d.useState([]);d.useEffect(()=>{const P=[{path:"/",name:e.formatMessage({id:"menu.dashboard.projectList"}),icon:N.jsx(vy,{}),component:N.jsx(Vhe,{})},{path:"daily-report",name:e.formatMessage({id:"menu.dashboard.dailyReport"}),icon:N.jsx(vy,{}),component:N.jsx(Khe,{})},{path:"weekly-report",name:e.formatMessage({id:"menu.dashboard.weeklyReport"}),icon:N.jsx(vy,{}),component:N.jsx(qhe,{})},{path:"report-calendar",name:e.formatMessage({id:"menu.dashboard.reportCalendar"}),icon:N.jsx(vy,{}),component:N.jsx(Yhe,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:N.jsx(Vse,{}),component:N.jsx(khe,{})}];w(P)},[e,t]),Bhe(),XF(),Lhe(),xF();const E=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const P=await eSe(c==null?void 0:c.uid);console.log("getAgentProfile response:",c==null?void 0:c.uid,P.data),P.data.code===200&&p(P.data.data)},C=async()=>{if(a){if(f.currentOrganization===void 0||f.currentOrganization===null){console.log("before initOrganization",f);return}console.log("after initOrganization"),u(f==null?void 0:f.currentOrganization),E()}};d.useEffect(()=>(C(),()=>{console.log("un - useEffect")}),[a,f]);const x=async()=>{const P=await zhe();console.log("initProfile response:",P.data),P.data.code===200?h(P.data.data):gn.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};d.useEffect(()=>{a&&x()},[a]);const _=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const P={orgUid:c==null?void 0:c.uid,pageNumber:0,pageSize:20},O=await tTt(P);console.log("initWorkgroups",O.data),O.data.code===200?g(O.data):console.log("获取工作组失败")};return d.useEffect(()=>{_()},[a,c]),d.useEffect(()=>{const P=M=>{var D,A;console.log("handleTransfer:",M);const T=JSON.parse(M);if(console.log("handleTransfer contentObject",T.message,T.thread),((A=(D=T.message)==null?void 0:D.user)==null?void 0:A.uid)===(f==null?void 0:f.uid)){gn.success("转接会话发送成功,请等待对方响应");return}},O=M=>{var A,j,k;console.log("handleTransferAccept:",M);const T=JSON.parse(M),D=JSON.parse((A=T.message)==null?void 0:A.content);m(D==null?void 0:D.thread),gn.success(`${(k=(j=T.message)==null?void 0:j.user)==null?void 0:k.nickname} 已接受转接会话`)},I=M=>{var D,A;console.log("handleTransferReject:",M);const T=JSON.parse(M);gn.success(`${(A=(D=T.message)==null?void 0:D.user)==null?void 0:A.nickname} 已拒绝转接会话`)};return Jn.on(wk,P),Jn.on(xk,O),Jn.on(Ek,I),()=>{Jn.off(wk,P),Jn.off(xk,O),Jn.off(Ek,I)}},[]),N.jsxs(Jde,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:S},location:{pathname:r},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:P=>P.isMobile?[]:[N.jsx(Wse,{onClick:zle},"QuestionCircleFilled"),N.jsx(rTt,{}),N.jsx(eTt,{})],menuHeaderRender:()=>N.jsx(Fhe,{}),menuFooterRender:P=>{P!=null&&P.collapsed},onMenuHeaderClick:P=>{console.log("onMenuHeaderClick",P)},menuItemRender:(P,O)=>N.jsx(N.Fragment,{children:N.jsxs("div",{onClick:()=>{o(P.path),i(P.path),localStorage.setItem(tB,P.path)},children:[v&&N.jsxs(N.Fragment,{children:[P.path==="/chat"&&N.jsx(Xi,{size:"small",dot:v,offset:[-5,5],children:O}),P.path!=="/chat"&&O]}),!v&&N.jsx(N.Fragment,{children:O})]})}),children:[N.jsx(WO,{children:N.jsx(PP,{},t.locale)}),N.jsx(VO,{style:l,children:N.jsx(jhe,{})}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},hTt=()=>N.jsx(N.Fragment,{children:N.jsx(PP,{})}),pTt=({open:e,onClose:t})=>{const n=eo(),{translateString:r}=uu(),o=()=>{t()},i=()=>{t()};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:i,children:N.jsxs(pr,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async a=>{if(console.log("changePassword:",a),a.newPassword.trim().length<6){gn.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(a.newPassword!==a.confirmPassword){gn.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 nTt(s);console.log("changePassword response:",l),l.data.code===200?(gn.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),o()):gn.error(r(l.data.message))},children:[N.jsx(Lr.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"})}),N.jsx(Lr.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),N.jsx(Lr.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},Xhe=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:Sye,category_uid:"",kb_uid:"",client:po},o={name:"file",accept:"image/*",action:dJ(),headers:{Authorization:"Bearer "+localStorage.getItem(Eb)},data:r,showUploadList:!1,beforeUpload(i){console.log("beforeUpload",i);const a=yn(new Date).format("YYYYMMDDHHmmss")+"_"+i.name;r.file=i,r.file_name=a,r.file_type=i.type,console.log("beforeUpload",r)},onChange(i){if(i.file.status!=="uploading"&&console.log("not uploading:",i.file),i.file.status==="done")if(console.log("response: ",i.file.response),i.file.response.code===200){const a=i.file.response.data.fileUrl;t(a),gn.success(`${i.file.name} 上传成功`)}else n(i.file),gn.error(`${i.file.name} 上传失败`);else i.file.status==="error"&&(gn.error(`${i.file.name} 上传失败`),n(i.file))}};return N.jsx(SP,{...o,children:e})},mTt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=uu(),{userInfo:a,deviceUid:s}=yi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1),v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{if(console.log("changeEmail:",C),a.email===C.email){gn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const x={email:C.email,code:C.code,platform:cl},_=await Uhe(x);console.log("changeEmail response:",_),_.data.code===200?(gn.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(C.email),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeEmail:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(sS,{})},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"})}]}),N.jsx(pr.Item,{name:"captchaCode",children:N.jsx(u0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(mS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${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 C=>{if(C){if(a.email===C){gn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),E();return}const x={email:C,type:X0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:cl},_=await Xfe(x);if(_.data.code!==200){gn.error(_.data.message),E();return}gn.success(_.data.message)}else gn.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},gTt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=uu(),{userInfo:a,deviceUid:s}=yi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1),v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{if(console.log("changeMobile:",C),a.mobile===C.mobile){gn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const x={mobile:C.mobile,code:C.code,platform:cl},_=await Whe(x);console.log("changeMobile response:",_),_.data.code===200?(gn.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(C.mobile),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeMobile:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(sS,{})},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"})}]}),N.jsx(pr.Item,{name:"captchaCode",children:N.jsx(u0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(mS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${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 C=>{if(C&&C.length===11){if(a.mobile===C){gn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),E();return}const x={mobile:C,type:G0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:cl},_=await wF(x);if(_.data.code!==200){gn.error(_.data.message),E();return}gn.success(_.data.message)}else gn.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},vTt={labelCol:{span:8},wrapperCol:{span:8}},_G=()=>{const e=eo(),[t]=pr.useForm(),{translateString:n}=uu(),{userInfo:r,setUserInfo:o}=yi(O=>({userInfo:O.userInfo,setUserInfo:O.setUserInfo})),[i,a]=d.useState(""),[s,l]=d.useState(!1),[c,u]=d.useState(!1),[f,h]=d.useState(!1),p=()=>{l(!0)},m=()=>{u(!0)},g=()=>{h(!0)},v=()=>{l(!1)},b=()=>{u(!1)},y=O=>{u(!1),r.email=O,o(r),t.setFieldValue("email",O)},S=()=>{h(!1)},w=O=>{h(!1),r.mobile=O,o(r),t.setFieldValue("mobile",O)},E=O=>{console.log("handleUploadSuccess:",O),a(O)},C=O=>{console.log("handleUploadError:",O)},x=async O=>{const I={...r,...O,avatar:i};console.log(I);const M=await Hhe(I);console.log("updateProfile response:",M.data),M.data.code===200?(gn.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),o(M.data.data)):gn.error(M.data.message)},_=O=>Array.isArray(O)?O:O==null?void 0:O.fileList;d.useEffect(()=>{r&&a(r.avatar)},[r]);const P=async()=>{const O=await zhe();console.log("handleRefreshProfile getProfile response:",O.data),O.data.code===200?(o(O.data.data),t.setFieldsValue({uid:O.data.data.uid,username:O.data.data.username,nickname:n(O.data.data.nickname),email:O.data.data.email,mobile:O.data.data.mobile,description:n(O.data.data.description)})):gn.error(O.data.message)};return d.useEffect(()=>{P()},[]),N.jsxs("div",{className:"profile-container",children:[N.jsxs(pr,{...vTt,form:t,onFinish:x,children:[N.jsx(Lr,{name:"uid",label:"UID",readonly:!0}),N.jsx(pr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:_,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:N.jsxs(Xhe,{onSuccess:E,onError:C,children:[N.jsx(Xc,{src:i}),N.jsx(Hn,{icon:N.jsx(FD,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),N.jsx(Hn,{onClick:p,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),N.jsx(Lr,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),N.jsx(Lr,{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}),N.jsx(Hn,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),N.jsx(Lr,{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}),N.jsx(Hn,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),N.jsx(zj,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&N.jsx(pTt,{open:s,onClose:v}),c&&N.jsx(mTt,{open:c,onSubmit:y,onClose:b}),f&&N.jsx(gTt,{open:f,onSubmit:w,onClose:S})]})},yTt=()=>{const e=eo(),t=bO(),{isMqttConnected:n}=XF(),[r,o]=d.useState(!0),[i,a]=d.useState(!0),[s,l]=d.useState(!1),c=C=>{console.log("radio checked",C.target.value),l(C.target.value),Pi?window.electronAPI.setOpenAtLogin(C.target.value):console.log("not electron")},u=async()=>{if(Pi){const C=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",C),l(C)}};d.useEffect(()=>{u(),kGe(),Hle(),console.log("isNetworkOnline:",t);const C=localStorage.getItem(Mw);C===null?(localStorage.setItem(Mw,"true"),o(!0)):o(C==="true");const x=localStorage.getItem(Ry);x===null?(localStorage.setItem(Ry,"true"),a(!0)):a(x==="true")},[]);const{themeMode:f,setThemeMode:h,mode:p,changeMode:m,locale:g,changeLocale:v}=d.useContext(ia),b=C=>{console.log("radio checked",C.target.value),h(C.target.value),DGe(C.target.value)},y=C=>{console.log("language change",C.target.value),v(C.target.value)},S=C=>{console.log("play audio switch",C),localStorage.setItem(Mw,C?"true":"false"),o(C)},w=C=>{console.log("show network status notification",C),localStorage.setItem(Ry,C?"true":"false"),a(C)},E=C=>{console.log("mode change",C.target.value),m(C.target.value)};return N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:N.jsx(cE,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:r,onChange:S})}),N.jsx("p",{children:N.jsx(cE,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:i,onChange:w})}),Ag&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),N.jsx("div",{children:n?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),Pi&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),N.jsxs(qo.Group,{onChange:c,value:s,children:[N.jsx(qo,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),N.jsx(qo,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),N.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),N.jsxs(qo.Group,{onChange:b,value:f,children:[N.jsx(qo,{value:"light",children:N.jsx(zl,{id:"theme.light"})}),N.jsx(qo,{value:"dark",children:N.jsx(zl,{id:"theme.dark"})}),N.jsx(qo,{value:"system",children:N.jsx(zl,{id:"theme.system"})})]}),N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),N.jsxs(qo.Group,{value:g.locale,onChange:y,children:[N.jsx(qo,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),N.jsx(qo,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),N.jsx(qo,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),Ag&&N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),N.jsxs(qo.Group,{value:p,onChange:E,children:[N.jsx(qo,{value:Zm,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},Zm),N.jsx(qo,{value:sp,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},sp),N.jsx(qo,{value:i2,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},i2)]})]})]})},bTt=()=>{const e=yi(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const o=n.toDataURL(),i=document.createElement("a");i.download=e.username+"_profile.png",i.href=o,document.body.appendChild(i),i.click(),document.body.removeChild(i)}else console.log("canvas is null")};return N.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[N.jsx(Xse,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),N.jsx(Hn,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},STt=()=>N.jsx(N.Fragment,{children:N.jsx("div",{children:"ShortcutAdmin"})}),CTt=()=>{const e=Ya();return N.jsx(cS,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:N.jsx(Hn,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},wTt={labelCol:{span:8},wrapperCol:{span:8}},xTt=()=>{const e=eo(),[t]=pr.useForm(),{userInfo:n,setUserInfo:r}=yi(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[o,i]=d.useState(""),a={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:dJ(),headers:{Authorization:"Bearer "+localStorage.getItem(Eb)},showUploadList:!1,data:a,beforeUpload(u){const f=yn(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;a.file=u,a.file_name=f,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 f=u.file.response.data.fileUrl;console.log("url: ",f),i(f),gn.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&gn.error(`${u.file.name} file upload failed.`)}},l=async u=>{const f={...n,...u,avatar:o};console.log(f);const h=await Hhe(f);console.log("updateProfile response:",h),h.data.code===200?(gn.success("修改成功"),r(h.data.data)):gn.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return d.useEffect(()=>{n&&i(n.avatar)},[n]),N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:"员工信息"}),N.jsxs(pr,{...wTt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[N.jsx(Vn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(SP,{...s,children:[N.jsx(Xc,{src:o}),N.jsx(Hn,{icon:N.jsx(FD,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{name:"nickname",label:"昵称",rules:[{required:!0}],children:N.jsx(qr,{})}),N.jsx(Lr,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:N.jsx(qr,{})}),N.jsx(Lr,{name:"mobile",label:"手机号",disabled:!0,children:N.jsx(qr,{})}),N.jsx(zj,{name:"description",label:"描述",children:N.jsx(qr.TextArea,{})})]})]})},ETt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=uu(),{userInfo:a,deviceUid:s}=yi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?o.setFieldsValue({email:a==null?void 0:a.email}):(o.resetFields(),E())},[e]);const v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{console.log("changeEmail:",C);const x={email:C.email,code:C.code,platform:cl},_=await Uhe(x);console.log("changeEmail response:",_),_.data.code===200?(gn.success("Email verify successfully!"),t(C.email),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeEmail:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(sS,{})},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}),N.jsx(pr.Item,{name:"captchaCode",rules:[],children:N.jsx(u0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(mS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${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 C=>{if(console.log("email:",C),C){const x={email:C,type:Q0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:cl},_=await Xfe(x);if(console.log("sendEmailCode",_),_.data.code!==200){gn.error(i(_.data.message)),E();return}gn.success(i(_.data.message))}else gn.error("手机号格式错误")}})]})})})},_Tt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=uu(),{userInfo:a,deviceUid:s}=yi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?o.setFieldsValue({mobile:a==null?void 0:a.mobile}):(o.resetFields(),E())},[e]);const v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{console.log("changeMobile:",C);const x={mobile:C.mobile,code:C.code,platform:cl},_=await Whe(x);console.log("changeMobile response:",_),_.data.code===200?(gn.success("Mobile verify successfully!"),t(C.mobile),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeMobile:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(sS,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),N.jsx(pr.Item,{name:"captchaCode",rules:[],children:N.jsx(u0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(mS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${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 C=>{if(console.log("mobile:",C),C&&C.length===11){const x={mobile:C,type:Y0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:cl},_=await wF(x);if(console.log("sendMobileCode",_),_.data.code!==200){gn.error(i(_.data.message)),E();return}gn.success(i(_.data.message))}else gn.error("手机号格式错误")}})]})})})},$Tt=()=>{const e=eo(),t=Ya(),[n]=pr.useForm(),{userInfo:r,setUserInfo:o}=yi(b=>({userInfo:b.userInfo,setUserInfo:b.setUserInfo})),[i,a]=d.useState(!1),[s,l]=d.useState(!1),c=()=>{a(!0)},u=()=>{l(!0)},f=()=>{a(!1)},h=b=>{a(!1),r.email=b,r.emailVerified=!0,o(r),n.setFieldValue("email",b)},p=()=>{l(!1)},m=b=>{l(!1),r.mobile=b,r.mobileVerified=!0,o(r),n.setFieldValue("mobile",b)};d.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return N.jsxs("div",{children:[N.jsxs(pr,{form:n,submitter:!1,children:[N.jsx(Lr,{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&&N.jsx(Hn,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),N.jsx(Hn,{type:"link",onClick:g,children:"重置邮箱"}),N.jsx(Lr,{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&&N.jsx(Hn,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),N.jsx(Hn,{type:"link",onClick:v,children:"重置手机号"})]}),i&&N.jsx(ETt,{open:i,onSubmit:h,onClose:f}),s&&N.jsx(_Tt,{open:s,onSubmit:m,onClose:p})]})},PTt=e=>{console.log(e)},OTt=[{key:"personal",label:"个人认证",children:N.jsx($Tt,{})}],MTt=()=>N.jsx("div",{className:"profile-container",children:N.jsx(tS,{defaultActiveKey:"personal",items:OTt,onChange:PTt})}),TTt=()=>{const[e]=pr.useForm(),t=eo(),{translateString:n}=uu(),{agentInfo:r,setAgentInfo:o}=jp(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[i,a]=d.useState("");d.useEffect(()=>{var f;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:(f=r==null?void 0:r.member)==null?void 0:f.uid})},[r]);const s=f=>{console.log("handleUploadSuccess:",f),a(f)},l=f=>{console.log("handleUploadError:",f),gn.error(f)},c=async f=>{var m,g,v,b,y,S,w,E,C,x,_,P,O,I;console.log("onFinish:",f),gn.loading(t.formatMessage({id:"updating"}));const h={...r,...f,avatar:i,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:g.map(M=>M.uid),faqUids:(b=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:b.map(M=>M.uid),guessFaqUids:(S=(y=r==null?void 0:r.serviceSettings)==null?void 0:y.guessFaqs)==null?void 0:S.map(M=>M.uid),hotFaqUids:(E=(w=r==null?void 0:r.serviceSettings)==null?void 0:w.hotFaqs)==null?void 0:E.map(M=>M.uid),shortcutFaqUids:(x=(C=r==null?void 0:r.serviceSettings)==null?void 0:C.shortcutFaqs)==null?void 0:x.map(M=>M.uid)},robotSettings:{...r.robotSettings,robotUid:(P=(_=r==null?void 0:r.robotSettings)==null?void 0:_.robot)==null?void 0:P.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(I=(O=r==null?void 0:r.leaveMsgSettings)==null?void 0:O.worktimes)==null?void 0:I.map(M=>M.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",h);const p=await tSe(h);console.log("updateAgent response:",p),p.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"update.success"})),o(p.data.data)):(gn.destroy(),gn.error(p.data.message))},u=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return d.useEffect(()=>{var f;r&&(a(r.avatar),e.setFieldsValue({member:(f=r==null?void 0:r.member)==null?void 0:f.nickname}))},[r]),N.jsx(N.Fragment,{children:N.jsxs(pr,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[N.jsx(pr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(Xhe,{onSuccess:s,onError:l,children:[N.jsx(Xc,{src:i}),N.jsx(Hn,{icon:N.jsx(FD,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),N.jsx(Lr,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),N.jsx(Lr,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),N.jsx(zj,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},RTt=()=>{const e=eo(),[t,n]=d.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:N.jsx(TTt,{})}];return d.useEffect(()=>{n(r)},[]),N.jsx(N.Fragment,{children:N.jsx(tS,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},{Sider:ITt,Content:kTt}=ei,tN=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=BS();return N.jsx(N.Fragment,{children:N.jsxs(ei,{children:[N.jsx(ITt,{style:e,width:t,children:N.jsx(oE,{style:n,children:"home"})}),N.jsxs(ei,{children:[N.jsx(oE,{style:n,children:"home"}),N.jsx(kTt,{style:r,children:"home"})]})]})})},NTt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);d.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class ATt{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 DTt(t).buffer}}function DTt(e){let t=0;for(const o of e)t+=o.byteLength;const n=new Uint8Array(t);let r=0;for(const o of e){const i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);n.set(i,r),r+=o.byteLength}return n}function Qhe(e){return new jTt(e).unpack()}function Jhe(e){const t=new FTt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class jTt{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>31,r=(t>>23&255)-127,o=t&8388607|8388608;return(n===0?1:-1)*o*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,o=(t>>20&2047)-1023,a=(t&1048575|1048576)*2**(o-20)+n*2**(o-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 FTt{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=o=>{if(or(o+1)):r(o+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),o=t/2**r-1,i=Math.floor(o*2**52),a=2**32,s=n<<31|r+1023<<20|i/a&1048575,l=i%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 o=i=>{if(io(i+1))}return o(i+1)}};return o(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 ATt,this._textEncoder=new TextEncoder}}let Zhe=!0,epe=!0;function xx(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function Jp(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(a,s){if(a!==t)return o.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),o.apply(this,[a,l])};const i=r.removeEventListener;r.removeEventListener=function(a,s){if(a!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(s))return i.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,i.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 LTt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Zhe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function BTt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(epe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function tpe(){if(typeof window=="object"){if(Zhe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function QF(e,t){epe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function zTt(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(o=>o.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=xx(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=xx(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=xx(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 $G(e){return Object.prototype.toString.call(e)==="[object Object]"}function npe(e){return $G(e)?Object.keys(e).reduce(function(t,n){const r=$G(e[n]),o=r?npe(e[n]):e[n],i=r&&!Object.keys(o).length;return o===void 0||i?t:Object.assign(t,{[n]:o})},{}):e}function nN(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?nN(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(o=>{nN(e,e.get(o),n)})}))}function PG(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(t===null)return o;const i=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&i.push(a)}),i.forEach(a=>{e.forEach(s=>{s.type===r&&s.trackId===a.id&&nN(e,s,o)})}),o}const OG=tpe;function rpe(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 f=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[f("min",c)]=u.ideal,l.optional.push(h),h={},h[f("max",c)]=u.ideal,l.optional.push(h)):(h[f("",c)]=u.ideal,l.optional.push(h))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[f("",c)]=u.exact):["min","max"].forEach(h=>{u[h]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[f(h,c)]=u[h])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},o=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,f,h){f in u&&!(h in u)&&(u[h]=u[f],delete u[f])};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 f;if(c.exact==="environment"||c.ideal==="environment"?f=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(f=["front"]),f)return n.mediaDevices.enumerateDevices().then(h=>{h=h.filter(m=>m.kind==="videoinput");let p=h.find(m=>f.some(g=>m.label.toLowerCase().includes(g)));return!p&&h.length&&f.includes("back")&&(p=h[h.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=r(s.video),OG("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return OG("chrome: "+JSON.stringify(s)),l(s)},i=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){o(s,u=>{n.webkitGetUserMedia(u,l,f=>{c&&c(i(f))})})};if(n.getUserMedia=a.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return o(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(i(u))))}}}function ope(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function ipe(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",o=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===o.track.id):i={track:o.track};const a=new Event("track");a.track=o.track,a.receiver=i,a.transceiver={receiver:i},a.streams=[r.stream],this.dispatchEvent(a)}),r.stream.getTracks().forEach(o=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===o.id):i={track:o};const a=new Event("track");a.track=o,a.receiver=i,a.transceiver={receiver:i},a.streams=[r.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Jp(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function ape(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(o,i){return{track:i,get dtmf(){return this._dtmf===void 0&&(i.kind==="audio"?this._dtmf=o.createDTMFSender(i):this._dtmf=null),this._dtmf},_pc:o}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const o=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=o.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){i.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(i){this._senders=this._senders||[],n.apply(this,[i]),i.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(i){this._senders=this._senders||[],r.apply(this,[i]),i.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(o=>o._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 spe(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 i=n.apply(this,[]);return i.forEach(a=>a._pc=this),i});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=r.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>PG(a,i.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const o=n.apply(this,[]);return o.forEach(i=>i._pc=this),o}),Jp(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const o=this;return this._pc.getStats().then(i=>PG(i,o.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 o,i,a;return this.getSenders().forEach(s=>{s.track===r&&(o?a=!0:o=s)}),this.getReceivers().forEach(s=>(s.track===r&&(i?a=!0:i=s),s.track===r)),a||o&&i?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):o?o.getStats():i?i.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function lpe(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(f=>f.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 o=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]}),o.apply(this,arguments)}}function cpe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return lpe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(f=>this._reverseStreams[f.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(f=>{if(this.getSenders().find(p=>p.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const f=new e.MediaStream(u.getTracks());this._streams[u.id]=f,this._reverseStreams[f.id]=u,u=f}r.apply(this,[u])};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.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,f){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(g=>g===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(g=>g.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[f.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const g=new e.MediaStream([u]);this._streams[f.id]=g,this._reverseStreams[g.id]=f,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function i(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];f=f.replace(new RegExp(m.id,"g"),p.id)}),new RTCSessionDescription({type:u.type,sdp:f})}function a(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];f=f.replace(new RegExp(p.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:f})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],f={[c](){const h=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const g=i(this,m);h[0].apply(null,[g])},m=>{h[1]&&h[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>i(this,m))}};e.RTCPeerConnection.prototype[c]=f[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:i(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(g=>u.track===g)&&(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 rN(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],o={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=o[n]})}function upe(e,t){Jp(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const MG=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:upe,shimAddTrackRemoveTrack:cpe,shimAddTrackRemoveTrackWithNative:lpe,shimGetSendersWithDtmf:ape,shimGetUserMedia:rpe,shimMediaStream:ope,shimOnTrack:ipe,shimPeerConnection:rN,shimSenderReceiverGetStats:spe},Symbol.toStringTag,{value:"Module"}));function dpe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(o,i,a){QF("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(o).then(i,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const o=function(a,s,l){s in a&&!(l in a)&&(a[l]=a[s],delete a[s])},i=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)),o(a.audio,"autoGainControl","mozAutoGainControl"),o(a.audio,"noiseSuppression","mozNoiseSuppression")),i(a)},r&&r.prototype.getSettings){const a=r.prototype.getSettings;r.prototype.getSettings=function(){const s=a.apply(this,arguments);return o(s,"mozAutoGainControl","autoGainControl"),o(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)),o(s,"autoGainControl","mozAutoGainControl"),o(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function HTt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const o=new DOMException("getDisplayMedia without video constraints is undefined");return o.name="NotFoundError",o.code=8,Promise.reject(o)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function fpe(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 oN(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(o){const i=e.RTCPeerConnection.prototype[o],a={[o](){return arguments[0]=new(o==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};e.RTCPeerConnection.prototype[o]=a[o]});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[i,a,s]=arguments;return r.apply(this,[i||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,f)=>{l.set(f,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(a,s)}}function hpe(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 o=t.apply(this,[]);return o.forEach(i=>i._pc=this),o});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=n.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function ppe(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(o=>o._pc=this),r}),Jp(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function mpe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){QF("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function gpe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function vpe(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 o=r.length>0;o&&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 i=t.apply(this,arguments);if(o){const{sender:a}=i,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 i})}function ype(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 bpe(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 Spe(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 TG=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:vpe,shimCreateAnswer:Spe,shimCreateOffer:bpe,shimGetDisplayMedia:HTt,shimGetParameters:ype,shimGetUserMedia:dpe,shimOnTrack:fpe,shimPeerConnection:oN,shimRTCDataChannel:gpe,shimReceiverGetStats:ppe,shimRemoveStream:mpe,shimSenderGetStats:hpe},Symbol.toStringTag,{value:"Module"}));function Cpe(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(o=>t.call(this,o,r)),r.getVideoTracks().forEach(o=>t.call(this,o,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...o){return o&&o.forEach(i=>{this._localStreams?this._localStreams.includes(i)||this._localStreams.push(i):this._localStreams=[i]}),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 o=n.getTracks();this.getSenders().forEach(i=>{o.includes(i.track)&&this.removeTrack(i)})})}}function wpe(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(o=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(o))return;this._remoteStreams.push(o);const i=new Event("addstream");i.stream=o,this.dispatchEvent(i)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(o){o.streams.forEach(i=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(i)>=0)return;r._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,r.dispatchEvent(a)})}),t.apply(r,arguments)}}}function xpe(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],h=n.apply(this,[f]);return u?(h.then(c,u),Promise.resolve()):h},t.createAnswer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],h=r.apply(this,[f]);return u?(h.then(c,u),Promise.resolve()):h};let s=function(l,c,u){const f=o.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f};t.setLocalDescription=s,s=function(l,c,u){const f=i.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.setRemoteDescription=s,s=function(l,c,u){const f=a.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.addIceCandidate=s}function Epe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=o=>r(_pe(o))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,o,i){t.mediaDevices.getUserMedia(r).then(o,i)}).bind(t))}function _pe(e){return e&&e.video!==void 0?Object.assign({},e,{video:npe(e.video)}):e}function $pe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,o){if(r&&r.iceServers){const i=[];for(let a=0;aa.receiver.track.kind==="audio");r.offerToReceiveAudio===!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.offerToReceiveAudio===!0&&!o&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="video");r.offerToReceiveVideo===!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.offerToReceiveVideo===!0&&!i&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function Mpe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const RG=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:Mpe,shimCallbacksAPI:xpe,shimConstraints:_pe,shimCreateOfferLegacy:Ope,shimGetUserMedia:Epe,shimLocalStreamsAPI:Cpe,shimRTCIceServerUrls:$pe,shimRemoteStreamsAPI:wpe,shimTrackEventTransceiver:Ppe},Symbol.toStringTag,{value:"Module"}));var Tpe={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(` + `})]})},Ihe=()=>{const e=nl(n=>n.dailyReports),t=nl(n=>n.weeklyReports);return N.jsx(ol,{title:"工作报告日历",children:N.jsx(jOt,{dailyReports:e,weeklyReports:t})})},FOt=()=>{const e=eo(),{locale:t}=d.useContext(ia),n=localStorage.getItem(Z7),[r,o]=d.useState(n||"/chat"),i=Ya(),{isLoggedIn:a,hasRoleAgent:s}=d.useContext(ia),{footerStyle:l}=zS(),{currentOrg:c,setCurrentOrg:u}=Dp(P=>({currentOrg:P.currentOrg,setCurrentOrg:P.setCurrentOrg})),{userInfo:f,setUserInfo:h}=vi(P=>({userInfo:P.userInfo,setUserInfo:P.setUserInfo})),{setAgentInfo:p}=jp(P=>({setAgentInfo:P.setAgentInfo})),m=Ll(P=>P.removeThread),g=yhe(P=>P.setWorkgroupResult),[v,b]=d.useState(!1),y=Ll(P=>P.threads);d.useEffect(()=>{const P=y.some(O=>O.unreadCount>0);b(P)},[y]);const[S,w]=d.useState([]);d.useEffect(()=>{const P=[{path:"/",name:e.formatMessage({id:"menu.dashboard.projectList"}),icon:N.jsx(vy,{}),component:N.jsx(Ohe,{})},{path:"daily-report",name:e.formatMessage({id:"menu.dashboard.dailyReport"}),icon:N.jsx(vy,{}),component:N.jsx(Mhe,{})},{path:"weekly-report",name:e.formatMessage({id:"menu.dashboard.weeklyReport"}),icon:N.jsx(vy,{}),component:N.jsx(The,{})},{path:"report-calendar",name:e.formatMessage({id:"menu.dashboard.reportCalendar"}),icon:N.jsx(vy,{}),component:N.jsx(Ihe,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:N.jsx(Wse,{}),component:N.jsx(ghe,{})}];w(P)},[e,t]),xhe(),VF(),whe(),yF();const E=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const P=await Z1e(c==null?void 0:c.uid);console.log("getAgentProfile response:",c==null?void 0:c.uid,P.data),P.data.code===200&&p(P.data.data)},C=async()=>{if(a){if(f.currentOrganization===void 0||f.currentOrganization===null){console.log("before initOrganization",f);return}console.log("after initOrganization"),u(f==null?void 0:f.currentOrganization),E()}};d.useEffect(()=>(C(),()=>{console.log("un - useEffect")}),[a,f]);const x=async()=>{const P=await Ehe();console.log("initProfile response:",P.data),P.data.code===200?h(P.data.data):gn.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};d.useEffect(()=>{a&&x()},[a]);const _=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const P={orgUid:c==null?void 0:c.uid,pageNumber:0,pageSize:20},O=await POt(P);console.log("initWorkgroups",O.data),O.data.code===200?g(O.data):console.log("获取工作组失败")};return d.useEffect(()=>{_()},[a,c]),d.useEffect(()=>{const P=M=>{var D,A;console.log("handleTransfer:",M);const T=JSON.parse(M);if(console.log("handleTransfer contentObject",T.message,T.thread),((A=(D=T.message)==null?void 0:D.user)==null?void 0:A.uid)===(f==null?void 0:f.uid)){gn.success("转接会话发送成功,请等待对方响应");return}},O=M=>{var A,j,k;console.log("handleTransferAccept:",M);const T=JSON.parse(M),D=JSON.parse((A=T.message)==null?void 0:A.content);m(D==null?void 0:D.thread),gn.success(`${(k=(j=T.message)==null?void 0:j.user)==null?void 0:k.nickname} 已接受转接会话`)},I=M=>{var D,A;console.log("handleTransferReject:",M);const T=JSON.parse(M);gn.success(`${(A=(D=T.message)==null?void 0:D.user)==null?void 0:A.nickname} 已拒绝转接会话`)};return Jn.on(Ck,P),Jn.on(wk,O),Jn.on(xk,I),()=>{Jn.off(Ck,P),Jn.off(wk,O),Jn.off(xk,I)}},[]),N.jsxs(Qde,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:S},location:{pathname:r},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:P=>P.isMobile?[]:[N.jsx(Use,{onClick:Ble},"QuestionCircleFilled"),N.jsx(MOt,{}),N.jsx($Ot,{})],menuHeaderRender:()=>N.jsx(Che,{}),menuFooterRender:P=>{P!=null&&P.collapsed},onMenuHeaderClick:P=>{console.log("onMenuHeaderClick",P)},menuItemRender:(P,O)=>N.jsx(N.Fragment,{children:N.jsxs("div",{onClick:()=>{o(P.path),i(P.path),localStorage.setItem(Z7,P.path)},children:[v&&N.jsxs(N.Fragment,{children:[P.path==="/chat"&&N.jsx(Xi,{size:"small",dot:v,offset:[-5,5],children:O}),P.path!=="/chat"&&O]}),!v&&N.jsx(N.Fragment,{children:O})]})}),children:[N.jsx(HO,{children:N.jsx(PP,{},t.locale)}),N.jsx(UO,{style:l,children:N.jsx(She,{})}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},LOt=()=>N.jsx(N.Fragment,{children:N.jsx(PP,{})}),BOt=({open:e,onClose:t})=>{const n=eo(),{translateString:r}=cu(),o=()=>{t()},i=()=>{t()};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:i,children:N.jsxs(pr,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async a=>{if(console.log("changePassword:",a),a.newPassword.trim().length<6){gn.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(a.newPassword!==a.confirmPassword){gn.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 OOt(s);console.log("changePassword response:",l),l.data.code===200?(gn.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),o()):gn.error(r(l.data.message))},children:[N.jsx(Lr.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"})}),N.jsx(Lr.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),N.jsx(Lr.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},khe=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:bye,category_uid:"",kb_uid:"",client:po},o={name:"file",accept:"image/*",action:uJ(),headers:{Authorization:"Bearer "+localStorage.getItem(Eb)},data:r,showUploadList:!1,beforeUpload(i){console.log("beforeUpload",i);const a=yn(new Date).format("YYYYMMDDHHmmss")+"_"+i.name;r.file=i,r.file_name=a,r.file_type=i.type,console.log("beforeUpload",r)},onChange(i){if(i.file.status!=="uploading"&&console.log("not uploading:",i.file),i.file.status==="done")if(console.log("response: ",i.file.response),i.file.response.code===200){const a=i.file.response.data.fileUrl;t(a),gn.success(`${i.file.name} 上传成功`)}else n(i.file),gn.error(`${i.file.name} 上传失败`);else i.file.status==="error"&&(gn.error(`${i.file.name} 上传失败`),n(i.file))}};return N.jsx(SP,{...o,children:e})},zOt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=cu(),{userInfo:a,deviceUid:s}=vi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1),v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{if(console.log("changeEmail:",C),a.email===C.email){gn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const x={email:C.email,code:C.code,platform:cl},_=await $he(x);console.log("changeEmail response:",_),_.data.code===200?(gn.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(C.email),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeEmail:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{})},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"})}]}),N.jsx(pr.Item,{name:"captchaCode",children:N.jsx(c0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${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 C=>{if(C){if(a.email===C){gn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),E();return}const x={email:C,type:Y0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:cl},_=await kfe(x);if(_.data.code!==200){gn.error(_.data.message),E();return}gn.success(_.data.message)}else gn.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},HOt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=cu(),{userInfo:a,deviceUid:s}=vi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1),v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{if(console.log("changeMobile:",C),a.mobile===C.mobile){gn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const x={mobile:C.mobile,code:C.code,platform:cl},_=await Phe(x);console.log("changeMobile response:",_),_.data.code===200?(gn.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(C.mobile),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeMobile:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{})},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"})}]}),N.jsx(pr.Item,{name:"captchaCode",children:N.jsx(c0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${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 C=>{if(C&&C.length===11){if(a.mobile===C){gn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),E();return}const x={mobile:C,type:q0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:cl},_=await vF(x);if(_.data.code!==200){gn.error(_.data.message),E();return}gn.success(_.data.message)}else gn.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},UOt={labelCol:{span:8},wrapperCol:{span:8}},hG=()=>{const e=eo(),[t]=pr.useForm(),{translateString:n}=cu(),{userInfo:r,setUserInfo:o}=vi(O=>({userInfo:O.userInfo,setUserInfo:O.setUserInfo})),[i,a]=d.useState(""),[s,l]=d.useState(!1),[c,u]=d.useState(!1),[f,h]=d.useState(!1),p=()=>{l(!0)},m=()=>{u(!0)},g=()=>{h(!0)},v=()=>{l(!1)},b=()=>{u(!1)},y=O=>{u(!1),r.email=O,o(r),t.setFieldValue("email",O)},S=()=>{h(!1)},w=O=>{h(!1),r.mobile=O,o(r),t.setFieldValue("mobile",O)},E=O=>{console.log("handleUploadSuccess:",O),a(O)},C=O=>{console.log("handleUploadError:",O)},x=async O=>{const I={...r,...O,avatar:i};console.log(I);const M=await _he(I);console.log("updateProfile response:",M.data),M.data.code===200?(gn.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),o(M.data.data)):gn.error(M.data.message)},_=O=>Array.isArray(O)?O:O==null?void 0:O.fileList;d.useEffect(()=>{r&&a(r.avatar)},[r]);const P=async()=>{const O=await Ehe();console.log("handleRefreshProfile getProfile response:",O.data),O.data.code===200?(o(O.data.data),t.setFieldsValue({uid:O.data.data.uid,username:O.data.data.username,nickname:n(O.data.data.nickname),email:O.data.data.email,mobile:O.data.data.mobile,description:n(O.data.data.description)})):gn.error(O.data.message)};return d.useEffect(()=>{P()},[]),N.jsxs("div",{className:"profile-container",children:[N.jsxs(pr,{...UOt,form:t,onFinish:x,children:[N.jsx(Lr,{name:"uid",label:"UID",readonly:!0}),N.jsx(pr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:_,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:N.jsxs(khe,{onSuccess:E,onError:C,children:[N.jsx(Xc,{src:i}),N.jsx(Hn,{icon:N.jsx(DD,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),N.jsx(Hn,{onClick:p,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),N.jsx(Lr,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),N.jsx(Lr,{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}),N.jsx(Hn,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),N.jsx(Lr,{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}),N.jsx(Hn,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),N.jsx(Lj,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&N.jsx(BOt,{open:s,onClose:v}),c&&N.jsx(zOt,{open:c,onSubmit:y,onClose:b}),f&&N.jsx(HOt,{open:f,onSubmit:w,onClose:S})]})},WOt=()=>{const e=eo(),t=vO(),{isMqttConnected:n}=VF(),[r,o]=d.useState(!0),[i,a]=d.useState(!0),[s,l]=d.useState(!1),c=C=>{console.log("radio checked",C.target.value),l(C.target.value),Pi?window.electronAPI.setOpenAtLogin(C.target.value):console.log("not electron")},u=async()=>{if(Pi){const C=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",C),l(C)}};d.useEffect(()=>{u(),IGe(),zle(),console.log("isNetworkOnline:",t);const C=localStorage.getItem(Tw);C===null?(localStorage.setItem(Tw,"true"),o(!0)):o(C==="true");const x=localStorage.getItem(Ry);x===null?(localStorage.setItem(Ry,"true"),a(!0)):a(x==="true")},[]);const{themeMode:f,setThemeMode:h,mode:p,changeMode:m,locale:g,changeLocale:v}=d.useContext(ia),b=C=>{console.log("radio checked",C.target.value),h(C.target.value),AGe(C.target.value)},y=C=>{console.log("language change",C.target.value),v(C.target.value)},S=C=>{console.log("play audio switch",C),localStorage.setItem(Tw,C?"true":"false"),o(C)},w=C=>{console.log("show network status notification",C),localStorage.setItem(Ry,C?"true":"false"),a(C)},E=C=>{console.log("mode change",C.target.value),m(C.target.value)};return N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:N.jsx(uE,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:r,onChange:S})}),N.jsx("p",{children:N.jsx(uE,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:i,onChange:w})}),Ag&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),N.jsx("div",{children:n?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),Pi&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),N.jsxs(qo.Group,{onChange:c,value:s,children:[N.jsx(qo,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),N.jsx(qo,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),N.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),N.jsxs(qo.Group,{onChange:b,value:f,children:[N.jsx(qo,{value:"light",children:N.jsx(zl,{id:"theme.light"})}),N.jsx(qo,{value:"dark",children:N.jsx(zl,{id:"theme.dark"})}),N.jsx(qo,{value:"system",children:N.jsx(zl,{id:"theme.system"})})]}),N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),N.jsxs(qo.Group,{value:g.locale,onChange:y,children:[N.jsx(qo,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),N.jsx(qo,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),N.jsx(qo,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),Ag&&N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),N.jsxs(qo.Group,{value:p,onChange:E,children:[N.jsx(qo,{value:Zm,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},Zm),N.jsx(qo,{value:sp,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},sp),N.jsx(qo,{value:a2,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},a2)]})]})]})},VOt=()=>{const e=vi(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const o=n.toDataURL(),i=document.createElement("a");i.download=e.username+"_profile.png",i.href=o,document.body.appendChild(i),i.click(),document.body.removeChild(i)}else console.log("canvas is null")};return N.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[N.jsx(Yse,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),N.jsx(Hn,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},KOt=()=>N.jsx(N.Fragment,{children:N.jsx("div",{children:"ShortcutAdmin"})}),qOt=()=>{const e=Ya();return N.jsx(uS,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:N.jsx(Hn,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},GOt={labelCol:{span:8},wrapperCol:{span:8}},YOt=()=>{const e=eo(),[t]=pr.useForm(),{userInfo:n,setUserInfo:r}=vi(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[o,i]=d.useState(""),a={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:uJ(),headers:{Authorization:"Bearer "+localStorage.getItem(Eb)},showUploadList:!1,data:a,beforeUpload(u){const f=yn(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;a.file=u,a.file_name=f,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 f=u.file.response.data.fileUrl;console.log("url: ",f),i(f),gn.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&gn.error(`${u.file.name} file upload failed.`)}},l=async u=>{const f={...n,...u,avatar:o};console.log(f);const h=await _he(f);console.log("updateProfile response:",h),h.data.code===200?(gn.success("修改成功"),r(h.data.data)):gn.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return d.useEffect(()=>{n&&i(n.avatar)},[n]),N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:"员工信息"}),N.jsxs(pr,{...GOt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[N.jsx(Vn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(SP,{...s,children:[N.jsx(Xc,{src:o}),N.jsx(Hn,{icon:N.jsx(DD,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{name:"nickname",label:"昵称",rules:[{required:!0}],children:N.jsx(qr,{})}),N.jsx(Lr,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:N.jsx(qr,{})}),N.jsx(Lr,{name:"mobile",label:"手机号",disabled:!0,children:N.jsx(qr,{})}),N.jsx(Lj,{name:"description",label:"描述",children:N.jsx(qr.TextArea,{})})]})]})},XOt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=cu(),{userInfo:a,deviceUid:s}=vi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?o.setFieldsValue({email:a==null?void 0:a.email}):(o.resetFields(),E())},[e]);const v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{console.log("changeEmail:",C);const x={email:C.email,code:C.code,platform:cl},_=await $he(x);console.log("changeEmail response:",_),_.data.code===200?(gn.success("Email verify successfully!"),t(C.email),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeEmail:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{})},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}),N.jsx(pr.Item,{name:"captchaCode",rules:[],children:N.jsx(c0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${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 C=>{if(console.log("email:",C),C){const x={email:C,type:X0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:cl},_=await kfe(x);if(console.log("sendEmailCode",_),_.data.code!==200){gn.error(i(_.data.message)),E();return}gn.success(i(_.data.message))}else gn.error("手机号格式错误")}})]})})})},QOt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=cu(),{userInfo:a,deviceUid:s}=vi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?o.setFieldsValue({mobile:a==null?void 0:a.mobile}):(o.resetFields(),E())},[e]);const v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{console.log("changeMobile:",C);const x={mobile:C.mobile,code:C.code,platform:cl},_=await Phe(x);console.log("changeMobile response:",_),_.data.code===200?(gn.success("Mobile verify successfully!"),t(C.mobile),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeMobile:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),N.jsx(pr.Item,{name:"captchaCode",rules:[],children:N.jsx(c0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${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 C=>{if(console.log("mobile:",C),C&&C.length===11){const x={mobile:C,type:G0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:cl},_=await vF(x);if(console.log("sendMobileCode",_),_.data.code!==200){gn.error(i(_.data.message)),E();return}gn.success(i(_.data.message))}else gn.error("手机号格式错误")}})]})})})},JOt=()=>{const e=eo(),t=Ya(),[n]=pr.useForm(),{userInfo:r,setUserInfo:o}=vi(b=>({userInfo:b.userInfo,setUserInfo:b.setUserInfo})),[i,a]=d.useState(!1),[s,l]=d.useState(!1),c=()=>{a(!0)},u=()=>{l(!0)},f=()=>{a(!1)},h=b=>{a(!1),r.email=b,r.emailVerified=!0,o(r),n.setFieldValue("email",b)},p=()=>{l(!1)},m=b=>{l(!1),r.mobile=b,r.mobileVerified=!0,o(r),n.setFieldValue("mobile",b)};d.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return N.jsxs("div",{children:[N.jsxs(pr,{form:n,submitter:!1,children:[N.jsx(Lr,{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&&N.jsx(Hn,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),N.jsx(Hn,{type:"link",onClick:g,children:"重置邮箱"}),N.jsx(Lr,{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&&N.jsx(Hn,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),N.jsx(Hn,{type:"link",onClick:v,children:"重置手机号"})]}),i&&N.jsx(XOt,{open:i,onSubmit:h,onClose:f}),s&&N.jsx(QOt,{open:s,onSubmit:m,onClose:p})]})},ZOt=e=>{console.log(e)},eMt=[{key:"personal",label:"个人认证",children:N.jsx(JOt,{})}],tMt=()=>N.jsx("div",{className:"profile-container",children:N.jsx(nS,{defaultActiveKey:"personal",items:eMt,onChange:ZOt})}),nMt=()=>{const[e]=pr.useForm(),t=eo(),{translateString:n}=cu(),{agentInfo:r,setAgentInfo:o}=jp(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[i,a]=d.useState("");d.useEffect(()=>{var f;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:(f=r==null?void 0:r.member)==null?void 0:f.uid})},[r]);const s=f=>{console.log("handleUploadSuccess:",f),a(f)},l=f=>{console.log("handleUploadError:",f),gn.error(f)},c=async f=>{var m,g,v,b,y,S,w,E,C,x,_,P,O,I;console.log("onFinish:",f),gn.loading(t.formatMessage({id:"updating"}));const h={...r,...f,avatar:i,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:g.map(M=>M.uid),faqUids:(b=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:b.map(M=>M.uid),guessFaqUids:(S=(y=r==null?void 0:r.serviceSettings)==null?void 0:y.guessFaqs)==null?void 0:S.map(M=>M.uid),hotFaqUids:(E=(w=r==null?void 0:r.serviceSettings)==null?void 0:w.hotFaqs)==null?void 0:E.map(M=>M.uid),shortcutFaqUids:(x=(C=r==null?void 0:r.serviceSettings)==null?void 0:C.shortcutFaqs)==null?void 0:x.map(M=>M.uid)},robotSettings:{...r.robotSettings,robotUid:(P=(_=r==null?void 0:r.robotSettings)==null?void 0:_.robot)==null?void 0:P.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(I=(O=r==null?void 0:r.leaveMsgSettings)==null?void 0:O.worktimes)==null?void 0:I.map(M=>M.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",h);const p=await eSe(h);console.log("updateAgent response:",p),p.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"update.success"})),o(p.data.data)):(gn.destroy(),gn.error(p.data.message))},u=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return d.useEffect(()=>{var f;r&&(a(r.avatar),e.setFieldsValue({member:(f=r==null?void 0:r.member)==null?void 0:f.nickname}))},[r]),N.jsx(N.Fragment,{children:N.jsxs(pr,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[N.jsx(pr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(khe,{onSuccess:s,onError:l,children:[N.jsx(Xc,{src:i}),N.jsx(Hn,{icon:N.jsx(DD,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),N.jsx(Lr,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),N.jsx(Lr,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),N.jsx(Lj,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},rMt=()=>{const e=eo(),[t,n]=d.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:N.jsx(nMt,{})}];return d.useEffect(()=>{n(r)},[]),N.jsx(N.Fragment,{children:N.jsx(nS,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},{Sider:oMt,Content:iMt}=ei,X8=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=zS();return N.jsx(N.Fragment,{children:N.jsxs(ei,{children:[N.jsx(oMt,{style:e,width:t,children:N.jsx(iE,{style:n,children:"home"})}),N.jsxs(ei,{children:[N.jsx(iE,{style:n,children:"home"}),N.jsx(iMt,{style:r,children:"home"})]})]})})},aMt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);d.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class sMt{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 lMt(t).buffer}}function lMt(e){let t=0;for(const o of e)t+=o.byteLength;const n=new Uint8Array(t);let r=0;for(const o of e){const i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);n.set(i,r),r+=o.byteLength}return n}function Nhe(e){return new cMt(e).unpack()}function Ahe(e){const t=new uMt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class cMt{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>31,r=(t>>23&255)-127,o=t&8388607|8388608;return(n===0?1:-1)*o*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,o=(t>>20&2047)-1023,a=(t&1048575|1048576)*2**(o-20)+n*2**(o-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 uMt{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=o=>{if(or(o+1)):r(o+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),o=t/2**r-1,i=Math.floor(o*2**52),a=2**32,s=n<<31|r+1023<<20|i/a&1048575,l=i%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 o=i=>{if(io(i+1))}return o(i+1)}};return o(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 sMt,this._textEncoder=new TextEncoder}}let Dhe=!0,jhe=!0;function xx(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function Jp(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(a,s){if(a!==t)return o.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),o.apply(this,[a,l])};const i=r.removeEventListener;r.removeEventListener=function(a,s){if(a!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(s))return i.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,i.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 dMt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Dhe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function fMt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(jhe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Fhe(){if(typeof window=="object"){if(Dhe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function KF(e,t){jhe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function hMt(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(o=>o.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=xx(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=xx(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=xx(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 pG(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lhe(e){return pG(e)?Object.keys(e).reduce(function(t,n){const r=pG(e[n]),o=r?Lhe(e[n]):e[n],i=r&&!Object.keys(o).length;return o===void 0||i?t:Object.assign(t,{[n]:o})},{}):e}function Q8(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?Q8(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(o=>{Q8(e,e.get(o),n)})}))}function mG(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(t===null)return o;const i=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&i.push(a)}),i.forEach(a=>{e.forEach(s=>{s.type===r&&s.trackId===a.id&&Q8(e,s,o)})}),o}const gG=Fhe;function Bhe(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 f=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[f("min",c)]=u.ideal,l.optional.push(h),h={},h[f("max",c)]=u.ideal,l.optional.push(h)):(h[f("",c)]=u.ideal,l.optional.push(h))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[f("",c)]=u.exact):["min","max"].forEach(h=>{u[h]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[f(h,c)]=u[h])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},o=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,f,h){f in u&&!(h in u)&&(u[h]=u[f],delete u[f])};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 f;if(c.exact==="environment"||c.ideal==="environment"?f=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(f=["front"]),f)return n.mediaDevices.enumerateDevices().then(h=>{h=h.filter(m=>m.kind==="videoinput");let p=h.find(m=>f.some(g=>m.label.toLowerCase().includes(g)));return!p&&h.length&&f.includes("back")&&(p=h[h.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=r(s.video),gG("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return gG("chrome: "+JSON.stringify(s)),l(s)},i=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){o(s,u=>{n.webkitGetUserMedia(u,l,f=>{c&&c(i(f))})})};if(n.getUserMedia=a.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return o(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(i(u))))}}}function zhe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Hhe(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",o=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===o.track.id):i={track:o.track};const a=new Event("track");a.track=o.track,a.receiver=i,a.transceiver={receiver:i},a.streams=[r.stream],this.dispatchEvent(a)}),r.stream.getTracks().forEach(o=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===o.id):i={track:o};const a=new Event("track");a.track=o,a.receiver=i,a.transceiver={receiver:i},a.streams=[r.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Jp(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function Uhe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(o,i){return{track:i,get dtmf(){return this._dtmf===void 0&&(i.kind==="audio"?this._dtmf=o.createDTMFSender(i):this._dtmf=null),this._dtmf},_pc:o}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const o=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=o.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){i.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(i){this._senders=this._senders||[],n.apply(this,[i]),i.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(i){this._senders=this._senders||[],r.apply(this,[i]),i.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(o=>o._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 Whe(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 i=n.apply(this,[]);return i.forEach(a=>a._pc=this),i});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=r.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>mG(a,i.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const o=n.apply(this,[]);return o.forEach(i=>i._pc=this),o}),Jp(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const o=this;return this._pc.getStats().then(i=>mG(i,o.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 o,i,a;return this.getSenders().forEach(s=>{s.track===r&&(o?a=!0:o=s)}),this.getReceivers().forEach(s=>(s.track===r&&(i?a=!0:i=s),s.track===r)),a||o&&i?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):o?o.getStats():i?i.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Vhe(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(f=>f.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 o=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]}),o.apply(this,arguments)}}function Khe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Vhe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(f=>this._reverseStreams[f.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(f=>{if(this.getSenders().find(p=>p.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const f=new e.MediaStream(u.getTracks());this._streams[u.id]=f,this._reverseStreams[f.id]=u,u=f}r.apply(this,[u])};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.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,f){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(g=>g===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(g=>g.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[f.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const g=new e.MediaStream([u]);this._streams[f.id]=g,this._reverseStreams[g.id]=f,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function i(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];f=f.replace(new RegExp(m.id,"g"),p.id)}),new RTCSessionDescription({type:u.type,sdp:f})}function a(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];f=f.replace(new RegExp(p.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:f})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],f={[c](){const h=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const g=i(this,m);h[0].apply(null,[g])},m=>{h[1]&&h[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>i(this,m))}};e.RTCPeerConnection.prototype[c]=f[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:i(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(g=>u.track===g)&&(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 J8(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],o={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=o[n]})}function qhe(e,t){Jp(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const vG=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:qhe,shimAddTrackRemoveTrack:Khe,shimAddTrackRemoveTrackWithNative:Vhe,shimGetSendersWithDtmf:Uhe,shimGetUserMedia:Bhe,shimMediaStream:zhe,shimOnTrack:Hhe,shimPeerConnection:J8,shimSenderReceiverGetStats:Whe},Symbol.toStringTag,{value:"Module"}));function Ghe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(o,i,a){KF("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(o).then(i,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const o=function(a,s,l){s in a&&!(l in a)&&(a[l]=a[s],delete a[s])},i=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)),o(a.audio,"autoGainControl","mozAutoGainControl"),o(a.audio,"noiseSuppression","mozNoiseSuppression")),i(a)},r&&r.prototype.getSettings){const a=r.prototype.getSettings;r.prototype.getSettings=function(){const s=a.apply(this,arguments);return o(s,"mozAutoGainControl","autoGainControl"),o(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)),o(s,"autoGainControl","mozAutoGainControl"),o(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function pMt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const o=new DOMException("getDisplayMedia without video constraints is undefined");return o.name="NotFoundError",o.code=8,Promise.reject(o)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function Yhe(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 Z8(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(o){const i=e.RTCPeerConnection.prototype[o],a={[o](){return arguments[0]=new(o==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};e.RTCPeerConnection.prototype[o]=a[o]});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[i,a,s]=arguments;return r.apply(this,[i||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,f)=>{l.set(f,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(a,s)}}function Xhe(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 o=t.apply(this,[]);return o.forEach(i=>i._pc=this),o});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=n.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Qhe(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(o=>o._pc=this),r}),Jp(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Jhe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){KF("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function Zhe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function epe(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 o=r.length>0;o&&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 i=t.apply(this,arguments);if(o){const{sender:a}=i,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 i})}function tpe(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 npe(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 rpe(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 yG=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:epe,shimCreateAnswer:rpe,shimCreateOffer:npe,shimGetDisplayMedia:pMt,shimGetParameters:tpe,shimGetUserMedia:Ghe,shimOnTrack:Yhe,shimPeerConnection:Z8,shimRTCDataChannel:Zhe,shimReceiverGetStats:Qhe,shimRemoveStream:Jhe,shimSenderGetStats:Xhe},Symbol.toStringTag,{value:"Module"}));function ope(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(o=>t.call(this,o,r)),r.getVideoTracks().forEach(o=>t.call(this,o,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...o){return o&&o.forEach(i=>{this._localStreams?this._localStreams.includes(i)||this._localStreams.push(i):this._localStreams=[i]}),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 o=n.getTracks();this.getSenders().forEach(i=>{o.includes(i.track)&&this.removeTrack(i)})})}}function ipe(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(o=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(o))return;this._remoteStreams.push(o);const i=new Event("addstream");i.stream=o,this.dispatchEvent(i)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(o){o.streams.forEach(i=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(i)>=0)return;r._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,r.dispatchEvent(a)})}),t.apply(r,arguments)}}}function ape(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],h=n.apply(this,[f]);return u?(h.then(c,u),Promise.resolve()):h},t.createAnswer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],h=r.apply(this,[f]);return u?(h.then(c,u),Promise.resolve()):h};let s=function(l,c,u){const f=o.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f};t.setLocalDescription=s,s=function(l,c,u){const f=i.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.setRemoteDescription=s,s=function(l,c,u){const f=a.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.addIceCandidate=s}function spe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=o=>r(lpe(o))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,o,i){t.mediaDevices.getUserMedia(r).then(o,i)}).bind(t))}function lpe(e){return e&&e.video!==void 0?Object.assign({},e,{video:Lhe(e.video)}):e}function cpe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,o){if(r&&r.iceServers){const i=[];for(let a=0;aa.receiver.track.kind==="audio");r.offerToReceiveAudio===!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.offerToReceiveAudio===!0&&!o&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="video");r.offerToReceiveVideo===!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.offerToReceiveVideo===!0&&!i&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function fpe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const bG=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:fpe,shimCallbacksAPI:ape,shimConstraints:lpe,shimCreateOfferLegacy:dpe,shimGetUserMedia:spe,shimLocalStreamsAPI:ope,shimRTCIceServerUrls:cpe,shimRemoteStreamsAPI:ipe,shimTrackEventTransceiver:upe},Symbol.toStringTag,{value:"Module"}));var hpe={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((o,i)=>(i>0?"m="+o:o).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(o=>o.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 o={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 i=8;i(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function iN(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Jp(e,"icecandidate",t=>{if(t.candidate){const n=hg.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function _x(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=hg.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=hg.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},o=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},i=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=hg.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=o(l),u=i(arguments[0],l);let f;c===0&&u===0?f=Number.POSITIVE_INFINITY:c===0||u===0?f=Math.max(c,u):f=Math.min(c,u);const h={};Object.defineProperty(h,"maxMessageSize",{get(){return f}}),this._sctp=h}return a.apply(this,arguments)}}function $x(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,o){const i=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&o.sctp&&l>o.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+o.sctp.maxMessageSize+" bytes)");return i.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const o=n.apply(this,arguments);return t(o,this),o},Jp(e,"datachannel",r=>(t(r.channel,r.target),r))}function aN(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=o=>{const i=o.target;if(i._lastConnectionState!==i.connectionState){i._lastConnectionState=i.connectionState;const a=new Event("connectionstatechange",o);i.dispatchEvent(a)}return o},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function sN(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(o){if(o&&o.sdp&&o.sdp.indexOf(` +`},t.getDirection=function(n,r){const o=t.splitLines(n);for(let i=0;i(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function eN(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Jp(e,"icecandidate",t=>{if(t.candidate){const n=hg.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function _x(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=hg.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=hg.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},o=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},i=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=hg.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=o(l),u=i(arguments[0],l);let f;c===0&&u===0?f=Number.POSITIVE_INFINITY:c===0||u===0?f=Math.max(c,u):f=Math.min(c,u);const h={};Object.defineProperty(h,"maxMessageSize",{get(){return f}}),this._sctp=h}return a.apply(this,arguments)}}function $x(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,o){const i=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&o.sctp&&l>o.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+o.sctp.maxMessageSize+" bytes)");return i.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const o=n.apply(this,arguments);return t(o,this),o},Jp(e,"datachannel",r=>(t(r.channel,r.target),r))}function tN(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=o=>{const i=o.target;if(i._lastConnectionState!==i.connectionState){i._lastConnectionState=i.connectionState;const a=new Event("connectionstatechange",o);i.dispatchEvent(a)}return o},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function nN(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(o){if(o&&o.sdp&&o.sdp.indexOf(` a=extmap-allow-mixed`)!==-1){const i=o.sdp.split(` `).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(` -`);e.RTCSessionDescription&&o instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:o.type,sdp:i}):o.sdp=i}return n.apply(this,arguments)}}function Px(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 Ox(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 o=arguments[0]||{};if(typeof o!="object"||o.type&&o.sdp)return n.apply(this,arguments);if(o={type:o.type,sdp:o.sdp},!o.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":o.type="offer";break;default:o.type="answer";break}return o.sdp||o.type!=="offer"&&o.type!=="answer"?n.apply(this,[o]):(o.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>n.apply(this,[a]))})}const WTt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:sN,shimAddIceCandidateNullOrEmpty:Px,shimConnectionState:aN,shimMaxMessageSize:_x,shimParameterlessSetLocalDescription:Ox,shimRTCIceCandidate:Ex,shimRTCIceCandidateRelayProtocol:iN,shimSendThrowTypeError:$x},Symbol.toStringTag,{value:"Module"}));function VTt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=tpe,r=zTt(e),o={browserDetails:r,commonShim:WTt,extractVersion:xx,disableLog:LTt,disableWarnings:BTt,sdp:UTt};switch(r.browser){case"chrome":if(!MG||!rN||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),o;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),o;n("adapter.js shimming chrome."),o.browserShim=MG,Px(e,r),Ox(e),rpe(e,r),ope(e),rN(e,r),ipe(e),cpe(e,r),ape(e),spe(e),upe(e,r),Ex(e),iN(e),aN(e),_x(e,r),$x(e),sN(e,r);break;case"firefox":if(!TG||!oN||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),o;n("adapter.js shimming firefox."),o.browserShim=TG,Px(e,r),Ox(e),dpe(e,r),oN(e,r),fpe(e),mpe(e),hpe(e),ppe(e),gpe(e),vpe(e),ype(e),bpe(e),Spe(e),Ex(e),aN(e),_x(e,r),$x(e);break;case"safari":if(!RG||!t.shimSafari)return n("Safari shim is not included in this adapter release."),o;n("adapter.js shimming safari."),o.browserShim=RG,Px(e,r),Ox(e),$pe(e),Ope(e),xpe(e),Cpe(e),wpe(e),Ppe(e),Epe(e),Mpe(e),Ex(e),iN(e),_x(e,r),$x(e),sN(e,r);break;default:n("Unsupported browser!");break}return o}const IG=VTt({window:typeof window>"u"?void 0:window});function Zp(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class Ipe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,o=Math.ceil(r/this.chunkedMTU);let i=0,a=0;for(;a=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return uI.browserDetails.browser}getVersion(){return uI.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=uI.browserDetails.version||0;if(e==="chrome"&&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: +`);e.RTCSessionDescription&&o instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:o.type,sdp:i}):o.sdp=i}return n.apply(this,arguments)}}function Px(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 Ox(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 o=arguments[0]||{};if(typeof o!="object"||o.type&&o.sdp)return n.apply(this,arguments);if(o={type:o.type,sdp:o.sdp},!o.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":o.type="offer";break;default:o.type="answer";break}return o.sdp||o.type!=="offer"&&o.type!=="answer"?n.apply(this,[o]):(o.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>n.apply(this,[a]))})}const gMt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:nN,shimAddIceCandidateNullOrEmpty:Px,shimConnectionState:tN,shimMaxMessageSize:_x,shimParameterlessSetLocalDescription:Ox,shimRTCIceCandidate:Ex,shimRTCIceCandidateRelayProtocol:eN,shimSendThrowTypeError:$x},Symbol.toStringTag,{value:"Module"}));function vMt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Fhe,r=hMt(e),o={browserDetails:r,commonShim:gMt,extractVersion:xx,disableLog:dMt,disableWarnings:fMt,sdp:mMt};switch(r.browser){case"chrome":if(!vG||!J8||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),o;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),o;n("adapter.js shimming chrome."),o.browserShim=vG,Px(e,r),Ox(e),Bhe(e,r),zhe(e),J8(e,r),Hhe(e),Khe(e,r),Uhe(e),Whe(e),qhe(e,r),Ex(e),eN(e),tN(e),_x(e,r),$x(e),nN(e,r);break;case"firefox":if(!yG||!Z8||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),o;n("adapter.js shimming firefox."),o.browserShim=yG,Px(e,r),Ox(e),Ghe(e,r),Z8(e,r),Yhe(e),Jhe(e),Xhe(e),Qhe(e),Zhe(e),epe(e),tpe(e),npe(e),rpe(e),Ex(e),tN(e),_x(e,r),$x(e);break;case"safari":if(!bG||!t.shimSafari)return n("Safari shim is not included in this adapter release."),o;n("adapter.js shimming safari."),o.browserShim=bG,Px(e,r),Ox(e),cpe(e),dpe(e),ape(e),ope(e),ipe(e),upe(e),spe(e),fpe(e),Ex(e),eN(e),_x(e,r),$x(e),nN(e,r);break;default:n("Unsupported browser!");break}return o}const SG=vMt({window:typeof window>"u"?void 0:window});function Zp(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class mpe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,o=Math.ceil(r/this.chunkedMTU);let i=0,a=0;for(;a=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return aI.browserDetails.browser}getVersion(){return aI.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=aI.browserDetails.version||0;if(e==="chrome"&&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}},qTt=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),kpe=()=>Math.random().toString(36).slice(2),kG={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 GTt extends Ipe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(o){o.target&&n(o.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r=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=[YTt,...n];for(const o in r)r[o]instanceof Error&&(r[o]="("+r[o].name+") "+r[o].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var In=new XTt,JF={},QTt=Object.prototype.hasOwnProperty,Ea="~";function f1(){}Object.create&&(f1.prototype=Object.create(null),new f1().__proto__||(Ea=!1));function JTt(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function Npe(e,t,n,r,o){if(typeof n!="function")throw new TypeError("The listener must be a function");var i=new JTt(n,r||e,o),a=Ea?Ea+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function Mx(e,t){--e._eventsCount===0?e._events=new f1:delete e._events[t]}function sa(){this._events=new f1,this._eventsCount=0}sa.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)QTt.call(n,r)&&t.push(Ea?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};sa.prototype.listeners=function(t){var n=Ea?Ea+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);oKc);Zp(em,"PeerErrorType",()=>Fo);Zp(em,"BaseConnectionErrorType",()=>h1);Zp(em,"DataConnectionErrorType",()=>p1);Zp(em,"SerializationType",()=>dv);Zp(em,"SocketEventType",()=>zc);Zp(em,"ServerMessageType",()=>_i);var Kc;(function(e){e.Data="data",e.Media="media"})(Kc||(Kc={}));var Fo;(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"})(Fo||(Fo={}));var h1;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(h1||(h1={}));var p1;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(p1||(p1={}));var dv;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(dv||(dv={}));var zc;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(zc||(zc={}));var _i;(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"})(_i||(_i={}));var ZF={};ZF=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 ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"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 ZTt extends JF.EventEmitter{constructor(t,n,r,o,i,a=5e3){super(),this.pingInterval=a,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+o+"peerjs?key="+i}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+ZF.version),this._disconnected=!1,this._socket.onmessage=o=>{let i;try{i=JSON.parse(o.data),In.log("Server message received:",i)}catch{In.log("Invalid server message",o.data);return}this.emit(zc.Message,i)},this._socket.onclose=o=>{this._disconnected||(In.log("Socket closed.",o),this._cleanup(),this._disconnected=!0,this.emit(zc.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),In.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){In.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:_i.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(zc.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 Ape{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===Kc.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,o={ordered:!!t.reliable},i=n.createDataChannel(r.label,o);r._initializeDataChannel(i),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){In.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,o=this.connection.type,i=this.connection.provider;In.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(In.log(`Received ICE candidates for ${n}:`,a.candidate),i.socket.send({type:_i.Candidate,payload:{candidate:a.candidate,type:o,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":In.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(h1.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":In.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(h1.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":In.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},In.log("Listening for data channel"),t.ondatachannel=a=>{In.log("Received data channel");const s=a.channel;i.getConnection(n,r)._initializeDataChannel(s)},In.log("Listening for remote stream"),t.ontrack=a=>{In.log("Received remote stream");const s=a.streams[0],l=i.getConnection(n,r);if(l.type===Kc.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){In.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 o=this.connection.dataChannel;o&&(r=!!o.readyState&&o.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);In.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),In.log("Set localDescription:",r,`for:${this.connection.peer}`);let o={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===Kc.Data){const i=this.connection;o={...o,label:i.label,reliable:i.reliable,serialization:i.serialization}}n.socket.send({type:_i.Offer,payload:o,dst:this.connection.peer})}catch(o){o!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(Fo.WebRTC,o),In.log("Failed to setLocalDescription, ",o))}}catch(r){n.emitError(Fo.WebRTC,r),In.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();In.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),In.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:_i.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(o){n.emitError(Fo.WebRTC,o),In.log("Failed to setLocalDescription, ",o)}}catch(r){n.emitError(Fo.WebRTC,r),In.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,o=this.connection.provider;In.log("Setting remote description",n);const i=this;try{await r.setRemoteDescription(n),In.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await i._makeAnswer()}catch(a){o.emitError(Fo.WebRTC,a),In.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){In.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),In.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(Fo.WebRTC,n),In.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(In.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return In.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){In.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class Dpe extends JF.EventEmitter{emitError(t,n){In.error("Error:",n),this.emit("error",new eRt(`${t}`,n))}}class eRt extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class jpe extends Dpe{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 pN;const eb=class eb extends jpe{get type(){return Kc.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||eb.ID_PREFIX+Da.randomToken(),this._negotiator=new Ape(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{In.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{In.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){In.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case _i.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case _i.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:In.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){In.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 o of r)this.handleMessage(o);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"))}};pN=new WeakMap,Tn(eb,pN,eb.ID_PREFIX="mc_");let zE=eb;class tRt{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:o,path:i,key:a}=this._options,s=new URL(`${n}://${r}:${o}${i}${a}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",ZF.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){In.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Da.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===Da.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 In.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var mN,gN;const bh=class bh extends jpe{get type(){return Kc.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||bh.ID_PREFIX+kpe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new Ape(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{In.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{In.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{In.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(p1.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 _i.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case _i.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:In.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};mN=new WeakMap,gN=new WeakMap,Tn(bh,mN,bh.ID_PREFIX="dc_"),Tn(bh,gN,bh.MAX_BUFFERED_AMOUNT=8388608);let HE=bh;class eL extends HE{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>HE.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return In.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 dI extends eL{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new Ipe,this.serialization=dv.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=Qhe(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 o=KTt(r.data);this._handleDataMessage({data:o})}}_send(t,n){const r=Jhe(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);In.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class nRt extends eL{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=dv.None}}class rRt extends eL{_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>=Da.chunkedMTU){this.emitError(p1.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=dv.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var vN;const tb=class tb extends Dpe{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:nRt,json:rRt,binary:dI,"binary-utf8":dI,default:dI},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:Da.CLOUD_HOST,port:Da.CLOUD_PORT,path:"/",key:tb.DEFAULT_KEY,token:Da.randomToken(),config:Da.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!==Da.CLOUD_HOST?this._options.secure=Da.isSecure():this._options.host==Da.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&In.setLogFunction(this._options.logFunction),In.logLevel=this._options.debug||0,this._api=new tRt(n),this._socket=this._createServerConnection(),!Da.supports.audioVideo&&!Da.supports.data){this._delayedAbort(Fo.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Da.validateId(r)){this._delayedAbort(Fo.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(o=>this._initialize(o)).catch(o=>this._abort(Fo.ServerError,o))}_createServerConnection(){const t=new ZTt(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(zc.Message,n=>{this._handleMessage(n)}),t.on(zc.Error,n=>{this._abort(Fo.SocketError,n)}),t.on(zc.Disconnected,()=>{this.disconnected||(this.emitError(Fo.Network,"Lost connection to server."),this.disconnect())}),t.on(zc.Close,()=>{this.disconnected||this._abort(Fo.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,o=t.src;switch(n){case _i.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case _i.Error:this._abort(Fo.ServerError,r.msg);break;case _i.IdTaken:this._abort(Fo.UnavailableID,`ID "${this.id}" is taken`);break;case _i.InvalidKey:this._abort(Fo.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case _i.Leave:In.log(`Received leave message from ${o}`),this._cleanupPeer(o),this._connections.delete(o);break;case _i.Expire:this.emitError(Fo.PeerUnavailable,`Could not connect to peer ${o}`);break;case _i.Offer:{const i=r.connectionId;let a=this.getConnection(o,i);if(a&&(a.close(),In.warn(`Offer received for existing Connection ID:${i}`)),r.type===Kc.Media){const l=new zE(o,this,{connectionId:i,_payload:r,metadata:r.metadata});a=l,this._addConnection(o,a),this.emit("call",l)}else if(r.type===Kc.Data){const l=new this._serializers[r.serialization](o,this,{connectionId:i,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});a=l,this._addConnection(o,a),this.emit("connection",l)}else{In.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(i);for(const l of s)a.handleMessage(l);break}default:{if(!r){In.warn(`You received a malformed message from ${o} of type ${n}`);return}const i=r.connectionId,a=this.getConnection(o,i);a&&a.peerConnection?a.handleMessage(t):i?this._storeMessage(i,t):In.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){In.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(Fo.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){In.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(Fo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){In.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const o=new zE(t,this,{...r,_stream:n});return this._addConnection(t,o),o}_addConnection(t,n){In.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 o of r)if(o.connectionId===n)return o;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){In.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(In.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;In.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)In.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)In.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(Fo.ServerError,n))}};vN=new WeakMap,Tn(tb,vN,tb.DEFAULT_KEY="peerjs");let lN=tb,oRt="127.0.0.1",iRt=9e3,aRt="/";function sRt(){console.log("usePeer");const e=yi(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!")})},o=a=>{n?(console.log("sending message:",a),n.send(a)):console.error("no connection to send message")},i=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 d.useEffect(()=>{const a=new lN(e.uid,{host:oRt,port:iRt,path:aRt});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:o,callOtherPeer:i}}const lRt=()=>{const e=eo(),[t,n]=d.useState("/chat"),r=Ya(),{isLoggedIn:o,mode:i}=d.useContext(ia),{footerStyle:a}=BS(),[s,l]=d.useState(!1),c=Ll(p=>p.threads);d.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:N.jsx(vy,{}),component:N.jsx(tN,{})}],[f,h]=d.useState(u);return Bhe(),Lhe(),NTt(),sRt(),xF(),d.useEffect(()=>{h(u)},[i]),d.useEffect(()=>(o&&r("/chat"),()=>{console.log("un - useEffect")}),[o]),N.jsxs(Jde,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:p=>p.isMobile?[]:[N.jsx(Wse,{onClick:zle},"QuestionCircleFilled")],menuHeaderRender:()=>N.jsx(Fhe,{}),menuFooterRender:p=>{p!=null&&p.collapsed},onMenuHeaderClick:p=>{console.log("onMenuHeaderClick",p)},menuItemRender:(p,m)=>N.jsx(N.Fragment,{children:N.jsxs("a",{onClick:()=>{n(p.path),r(p.path)},children:[s&&N.jsxs(N.Fragment,{children:[p.path==="/anonymous/home"&&N.jsx(Xi,{size:"small",dot:s,offset:[-5,5],children:m}),p.path!=="/anonymous/home"&&m]}),!s&&N.jsx(N.Fragment,{children:m})]})}),children:[N.jsx(WO,{children:N.jsx(PP,{})}),N.jsx(VO,{style:a,children:N.jsx(jhe,{})}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:cRt,Content:uRt}=ei,dRt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=BS();return N.jsx(N.Fragment,{children:N.jsxs(ei,{children:[N.jsx(cRt,{style:e,width:t}),N.jsxs(ei,{children:[N.jsx(oE,{style:n,children:"setting"}),N.jsx(uRt,{style:r,children:"setting"})]})]})})},fRt=({card:e})=>{var r,o;const t=((r=e.tasks)==null?void 0:r.filter(i=>i.completed).length)||0,n=((o=e.tasks)==null?void 0:o.length)||0;return N.jsx(ol,{size:"small",style:{marginBottom:8},children:N.jsxs(oo,{direction:"vertical",style:{width:"100%"},children:[N.jsx(oo,{wrap:!0,children:e.labels.map(i=>N.jsx(Wu,{color:i.color,children:i.name},i.id))}),N.jsx("div",{children:e.title}),n>0&&N.jsx(jD,{percent:Math.round(t/n*100),size:"small"}),N.jsxs(oo,{style:{justifyContent:"space-between",width:"100%"},children:[N.jsx(Xc.Group,{children:e.members.map(i=>N.jsx(Xc,{src:i.avatar,size:"small"},i.id))}),e.timer&&N.jsxs(oo,{children:[N.jsx(RD,{}),new Date(e.timer.duration*1e3).toISOString().substr(11,8)]})]})]})})},hRt=({card:e,index:t,listId:n})=>{const{attributes:r,listeners:o,setNodeRef:i,transform:a,transition:s,isDragging:l}=FEt({id:`${e.id}:${n}:${t}`}),c={transform:I8.Transform.toString(a),transition:s,opacity:l?.5:1};return N.jsx("div",{ref:i,style:c,...r,...o,children:N.jsx(fRt,{card:e})})},pRt=({list:e})=>N.jsx("div",{children:e.cards.map((t,n)=>N.jsx(hRt,{card:t,index:n,listId:e.id},t.id))}),mRt=()=>{const{projectId:e}=lXe(),t=Ya(),n=nl(s=>s.currentProject),r=nl(s=>s.projects),o=nl(s=>s.setCurrentProject),i=nl(s=>s.moveCard);d.useEffect(()=>{if(e){const s=r.find(l=>l.id===e);s?o(s):t("/")}},[e,r,o,t]);const a=s=>{const{active:l,over:c}=s;if(!c)return;const u=l.id,f=c.id,[,h]=u.split(":"),[,p]=f.split(":");h!==p&&i(u.split(":")[0],h,p,parseInt(f.split(":")[2]||"0"))};return!n||!n.boards[0]?N.jsx(Nc,{description:"没有找到项目"}):N.jsx(wEt,{onDragEnd:a,collisionDetection:w2t,children:N.jsx(oo,{style:{width:"100%",overflowX:"auto"},size:16,children:n.boards[0].lists.map(s=>N.jsx("div",{style:{width:300},children:N.jsx(ol,{title:s.name,extra:N.jsx(Hn,{type:"text",icon:N.jsx(Uu,{})}),style:{width:"100%"},children:N.jsx(pRt,{list:s})})},s.id))})})};function gRt({children:e}){const{isLoggedIn:t}=d.useContext(ia),n=Vv();return t?e:N.jsx(wXe,{to:"/auth/login",replace:!0,state:{from:n}})}const AG=[{path:"/",element:N.jsx(N.Fragment,{children:N.jsx(gRt,{children:N.jsx(fTt,{})})}),children:[{index:!0,element:N.jsx(Vhe,{})},{path:"project/:projectId",element:N.jsx(mRt,{})},{path:"daily-report",element:N.jsx(Khe,{})},{path:"weekly-report",element:N.jsx(qhe,{})},{path:"report-calendar",element:N.jsx(Yhe,{})},{path:"/setting",element:N.jsx(khe,{}),children:[{path:"/setting",element:N.jsx(_G,{})},{path:"/setting/profile",element:N.jsx(_G,{})},{path:"/setting/agentProfile",element:N.jsx(RTt,{})},{path:"/setting/memberProfile",element:N.jsx(xTt,{})},{path:"/setting/basic",element:N.jsx(yTt,{})},{path:"/setting/certification",element:N.jsx(MTt,{})},{path:"/setting/qrcode",element:N.jsx(bTt,{})},{path:"/setting/shortcut",element:N.jsx(STt,{})}]}]},{path:"/auth",element:N.jsx(hTt,{}),children:[{path:"/auth",element:N.jsx(W8,{isModel:!1})},{path:"/auth/login",element:N.jsx(W8,{isModel:!1})},{path:"/auth/register",element:N.jsx($$t,{})},{path:"/auth/server",element:N.jsx(Qfe,{})}]},{path:"/anonymous",element:N.jsx(lRt,{}),children:[{path:"/anonymous",element:N.jsx(tN,{})},{path:"/anonymous/home",element:N.jsx(tN,{})},{path:"/anonymous/setting",element:N.jsx(dRt,{})}]},{path:"*",element:N.jsx(CTt,{})}];let cN;Pi?cN=TXe(AG,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):cN=MXe(AG,{basename:"/kanban",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const vRt=cN;var yRt=typeof Element<"u",bRt=typeof Map=="function",SRt=typeof Set=="function",CRt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Tx(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,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Tx(e[r],t[r]))return!1;return!0}var i;if(bRt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Tx(r.value[1],t.get(r.value[0])))return!1;return!0}if(SRt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(CRt&&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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(yRt&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Tx(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var wRt=function(t,n){try{return Tx(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 xRt=Fr(wRt);var ERt=function(e,t,n,r,o,i,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,o,i,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},_Rt=ERt;const DG=Fr(_Rt);var $Rt=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;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(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))(Fpe||{}),fI={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"]}},jG=Object.values(Fpe),tL={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ORt=Object.entries(tL).reduce((e,[t,n])=>(e[n]=t,e),{}),Hl="data-rh",pg={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},mg=(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},MRt=e=>{let t=mg(e,"title");const n=mg(e,pg.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=mg(e,pg.DEFAULT_TITLE);return t||r||void 0},TRt=e=>mg(e,pg.ON_CHANGE_CLIENT_STATE)||(()=>{}),hI=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),RRt=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const o=Object.keys(r);for(let i=0;iconsole&&typeof console.warn=="function"&&console.warn(e),Z0=(e,t,n)=>{const r={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&IRt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,i)=>{const a={};i.filter(l=>{let c;const u=Object.keys(l);for(let h=0;ho.push(l));const s=Object.keys(a);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:RRt(["href"],e),bodyAttributes:hI("bodyAttributes",e),defer:mg(e,pg.DEFER),encode:mg(e,pg.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:hI("htmlAttributes",e),linkTags:Z0("link",["rel","href"],e),metaTags:Z0("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Z0("noscript",["innerHTML"],e),onChangeClientState:TRt(e),scriptTags:Z0("script",["src","innerHTML"],e),styleTags:Z0("style",["cssText"],e),title:MRt(e),titleAttributes:hI("titleAttributes",e),prioritizeSeoTags:kRt(e,pg.PRIORITIZE_SEO_TAGS)}),Lpe=e=>Array.isArray(e)?e.join(""):e,ARt=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(ARt(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},FG=(e,t)=>({...e,[t]:void 0}),DRt=["noscript","script","style"],uN=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Bpe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),jRt=(e,t,n,r)=>{const o=Bpe(n),i=Lpe(t);return o?`<${e} ${Hl}="true" ${o}>${uN(i,r)}`:`<${e} ${Hl}="true">${uN(i,r)}`},FRt=(e,t,n=!0)=>t.reduce((r,o)=>{const i=o,a=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof i[u]>"u"?u:`${u}="${uN(i[u],n)}"`;return c?`${c} ${f}`:f},""),s=i.innerHTML||i.cssText||"",l=DRt.indexOf(e)===-1;return`${r}<${e} ${Hl}="true" ${a}${l?"/>":`>${s}`}`},""),zpe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=tL[r];return n[o||r]=e[r],n},t),LRt=(e,t,n)=>{const r={key:t,[Hl]:!0},o=zpe(n,r);return[de.createElement("title",o,t)]},Rx=(e,t)=>t.map((n,r)=>{const o={key:r,[Hl]:!0};return Object.keys(n).forEach(i=>{const s=tL[i]||i;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[s]=n[i]}),de.createElement(e,o)}),Us=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>LRt(e,t.title,t.titleAttributes),toString:()=>jRt(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>zpe(t),toString:()=>Bpe(t)};default:return{toComponent:()=>Rx(e,t),toString:()=>FRt(e,t,n)}}},BRt=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=pI(e,fI.meta),i=pI(t,fI.link),a=pI(n,fI.script);return{priorityMethods:{toComponent:()=>[...Rx("meta",o.priority),...Rx("link",i.priority),...Rx("script",a.priority)],toString:()=>`${Us("meta",o.priority,r)} ${Us("link",i.priority,r)} ${Us("script",a.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:a.default}},zRt=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:f,scriptTags:h}=BRt(e)),{priority:p,base:Us("base",t,r),bodyAttributes:Us("bodyAttributes",n,r),htmlAttributes:Us("htmlAttributes",o,r),link:Us("link",u,r),meta:Us("meta",f,r),noscript:Us("noscript",i,r),script:Us("script",h,r),style:Us("style",a,r),title:Us("title",{title:s,titleAttributes:l},r)}},dN=zRt,mw=[],Hpe=!!(typeof window<"u"&&window.document&&window.document.createElement),fN=class{constructor(e,t){Pr(this,"instances",[]);Pr(this,"canUseDOM",Hpe);Pr(this,"context");Pr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?mw:this.instances,add:e=>{(this.canUseDOM?mw:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?mw:this.instances).indexOf(e);(this.canUseDOM?mw:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=dN({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},HRt={},Upe=de.createContext(HRt),Fh,Wpe=(Fh=class extends d.Component{constructor(n){super(n);Pr(this,"helmetData");this.helmetData=new fN(this.props.context||{},Fh.canUseDOM)}render(){return de.createElement(Upe.Provider,{value:this.helmetData.value},this.props.children)}},Pr(Fh,"canUseDOM",Hpe),Fh),Em=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Hl}]`),o=[].slice.call(r),i=[];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,f=typeof s[u]>"u"?"":s[u];l.setAttribute(c,f)}l.setAttribute(Hl,"true"),o.some((c,u)=>(a=u,l.isEqualNode(c)))?o.splice(a,1):i.push(l)}),o.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),i.forEach(s=>n.appendChild(s)),{oldTags:o,newTags:i}},hN=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Hl),o=r?r.split(","):[],i=[...o],a=Object.keys(t);for(const s of a){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),o.indexOf(s)===-1&&o.push(s);const c=i.indexOf(s);c!==-1&&i.splice(c,1)}for(let s=i.length-1;s>=0;s-=1)n.removeAttribute(i[s]);o.length===i.length?n.removeAttribute(Hl):n.getAttribute(Hl)!==a.join(",")&&n.setAttribute(Hl,a.join(","))},URt=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Lpe(e)),hN("title",t)},LG=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:h}=e;hN("body",r),hN("html",o),URt(f,h);const p={baseTag:Em("base",n),linkTags:Em("link",i),metaTags:Em("meta",a),noscriptTags:Em("noscript",s),scriptTags:Em("script",c),styleTags:Em("style",u)},m={},g={};Object.keys(p).forEach(v=>{const{newTags:b,oldTags:y}=p[v];b.length&&(m[v]=b),y.length&&(g[v]=p[v].oldTags)}),t&&t(),l(e,m,g)},ey=null,WRt=e=>{ey&&cancelAnimationFrame(ey),e.defer?ey=requestAnimationFrame(()=>{LG(e,()=>{ey=null})}):(LG(e),ey=null)},VRt=WRt,BG=class extends d.Component{constructor(){super(...arguments);Pr(this,"rendered",!1)}shouldComponentUpdate(t){return!PRt(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 o=NRt(t.get().map(i=>{const a={...i.props};return delete a.context,a}));Wpe.canUseDOM?VRt(o):dN&&(r=dN(o)),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}},mI,KRt=(mI=class extends d.Component{shouldComponentUpdate(e){return!xRt(FG(this.props,"helmetData"),FG(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 DG(jG.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${jG.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),DG(!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}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return de.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...i}=r.props,a=Object.keys(i).reduce((l,c)=>(l[ORt[c]||c]=i[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,o),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,o);break;default:t=this.mapObjectTypeChildren(r,t,a,o);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 fN)){const o=r;r=new fN(o.context,!0),delete n.helmetData}return r?de.createElement(BG,{...n,context:r.value}):de.createElement(Upe.Consumer,null,o=>de.createElement(BG,{...n,context:o}))}},Pr(mI,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),mI);const qRt={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:"暂无客服在线"},GRt={"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.projectList":"项目","menu.dashboard.dailyReport":"日报","menu.dashboard.weeklyReport":"周报","menu.dashboard.reportCalendar":"日历"},YRt={"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":"查看文档"},XRt={"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":"隐私政策"},QRt={"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":"请输入正确的服务器地址"},JRt={"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错误"},ZRt={"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":"表单验证通过"},eIt={"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":"拉黑成功"},tIt={"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":"转接请求已发送,等待对方响应"},nIt={"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"},rIt={"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":"请检查表单"},oIt={"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":"密码修改成功!"},iIt={"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":"个人模式"},aIt={"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":"加载更多..."},sIt={"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":"暂无工单"},lIt={"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":"开始聊天"},cIt={"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":"加载成员失败"},uIt={"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":"请至少选择一个机器人"},dIt={"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":"选择大模型知识库"},fIt={"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":"取消"},hIt={...XRt,...QRt,...JRt,...ZRt,...eIt,...tIt,...nIt,...GRt,...rIt,...YRt,...oIt,...iIt,...aIt,...sIt,...qRt,...lIt,...cIt,...uIt,...dIt,...fIt},pIt={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:"无客服在线"},mIt={"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.projectList":"專案","menu.dashboard.dailyReport":"日報","menu.dashboard.weeklyReport":"週報","menu.dashboard.reportCalendar":"日曆"},gIt={"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":"返回首頁"},vIt={"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":"隱私政策"},yIt={"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":"請輸入正確的服務器地址"},bIt={"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錯誤"},SIt={"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":"表單驗證通過"},CIt={"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":"拉黑成功"},wIt={"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":"數據加載失敗"},xIt={"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"},EIt={"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":"圖片保存失敗"},_It={"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":"密碼修改成功!"},$It={"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":"個人模式"},PIt={"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":"加載更多..."},OIt={"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":"暫無工單"},MIt={"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":"開始聊天"},TIt={"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":"加載成員失敗"},RIt={"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":"刪除"},IIt={"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":"选择大模型知识库"},kIt={"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":"取消"},NIt={...vIt,...yIt,...bIt,...SIt,...CIt,...wIt,...xIt,...mIt,...EIt,...gIt,..._It,...$It,...PIt,...OIt,...pIt,...MIt,...TIt,...RIt,...IIt,...kIt},AIt={"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"},DIt={"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"},jIt={"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"},FIt={"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"},LIt={"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.projectList":"Project List","menu.dashboard.dailyReport":"Daily Report","menu.dashboard.weeklyReport":"Weekly Report","menu.dashboard.reportCalendar":"Report Calendar"},BIt={"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!"},zIt={"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"},HIt={"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"},UIt={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"},WIt={"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"},VIt={"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"},KIt={"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"},qIt={"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..."},GIt={"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"},YIt={"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"},XIt={"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"},QIt={"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"},JIt={"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"},ZIt={"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"},ekt={"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"},tkt={...AIt,...DIt,...jIt,...FIt,...LIt,...BIt,...zIt,...HIt,...UIt,...WIt,...VIt,...KIt,...qIt,...GIt,...YIt,...XIt,...QIt,...JIt,...ZIt,...ekt},nkt={"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"},Vpe={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"},Vo={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ua={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"},jd={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Gt{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 o=Gt.getVersionPrecision(t),i=Gt.getVersionPrecision(n);let a=Math.max(o,i),s=0;const l=Gt.map([t,n],c=>{const u=a-Gt.getVersionPrecision(c),f=c+new Array(u+1).join(".0");return Gt.map(f.split("."),h=>new Array(20-h.length).join("0")+h).reverse()});for(r&&(s=a-Math.min(o,i)),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]{r[l]=a[l]})}return t}static getBrowserAlias(t){return nkt[t]}static getBrowserTypeByAlias(t){return Vpe[t]||""}}const Xr=/version\/(\d+(\.?_?\d+)+)/i,rkt=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Gt.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Gt.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Gt.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Gt.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Gt.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Gt.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Gt.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,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=Gt.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Gt.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Gt.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=Gt.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Gt.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Gt.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Gt.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=Gt.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Gt.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Gt.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=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Gt.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Gt.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Gt.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=Gt.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Gt.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Gt.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Gt.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=Gt.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=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,o=e.search("\\(")!==-1?n:t;return{name:Gt.getFirstMatch(o,e),version:Gt.getSecondMatch(o,e)}}}],okt=[{test:[/Roku\/DVP/],describe(e){const t=Gt.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ua.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Gt.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ua.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Gt.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Gt.getWindowsVersionName(t);return{name:ua.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:ua.iOS},n=Gt.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Gt.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Gt.getMacOSVersionName(t),r={name:ua.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Gt.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ua.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Gt.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Gt.getAndroidVersionName(t),r={name:ua.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Gt.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ua.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Gt.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Gt.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Gt.getFirstMatch(/\bbb(\d+)/i,e);return{name:ua.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Gt.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ua.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Gt.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ua.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:ua.Linux}}},{test:[/CrOS/],describe(){return{name:ua.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Gt.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ua.PlayStation4,version:t}}}],ikt=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Gt.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Vo.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Vo.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Vo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Vo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Vo.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Vo.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Vo.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Gt.getFirstMatch(/(ipod|iphone)/i,e);return{type:Vo.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Vo.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Vo.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Vo.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Vo.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Vo.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Vo.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Vo.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Vo.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Vo.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Vo.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Vo.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Vo.tv}}}],akt=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:jd.Blink};const n=Gt.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:jd.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:jd.Trident},n=Gt.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:jd.Presto},n=Gt.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:jd.Gecko},n=Gt.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:jd.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:jd.WebKit},n=Gt.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class zG{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=Gt.find(rkt,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=Gt.find(okt,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=Gt.find(ikt,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=Gt.find(akt,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 Gt.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const o={};let i=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(o[s]=l,i+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=Gt.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=Gt.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(i>0){const s=Object.keys(o),l=Gt.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(o[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let o=t.toLowerCase();const i=Gt.getBrowserTypeByAlias(o);return n&&i&&(o=i.toLowerCase()),o===r}compareVersion(t){let n=[0],r=t,o=!1;const i=this.getBrowserVersion();if(typeof i=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(o=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(o=!0,r=t.substr(1)),n.indexOf(Gt.compareVersions(i,r,o))>-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))}}/*! + 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}},bMt=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),gpe=()=>Math.random().toString(36).slice(2),CG={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 SMt extends mpe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(o){o.target&&n(o.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r=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=[CMt,...n];for(const o in r)r[o]instanceof Error&&(r[o]="("+r[o].name+") "+r[o].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var In=new wMt,qF={},xMt=Object.prototype.hasOwnProperty,Ea="~";function f1(){}Object.create&&(f1.prototype=Object.create(null),new f1().__proto__||(Ea=!1));function EMt(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function vpe(e,t,n,r,o){if(typeof n!="function")throw new TypeError("The listener must be a function");var i=new EMt(n,r||e,o),a=Ea?Ea+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function Mx(e,t){--e._eventsCount===0?e._events=new f1:delete e._events[t]}function sa(){this._events=new f1,this._eventsCount=0}sa.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)xMt.call(n,r)&&t.push(Ea?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};sa.prototype.listeners=function(t){var n=Ea?Ea+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);oKc);Zp(em,"PeerErrorType",()=>Fo);Zp(em,"BaseConnectionErrorType",()=>h1);Zp(em,"DataConnectionErrorType",()=>p1);Zp(em,"SerializationType",()=>dv);Zp(em,"SocketEventType",()=>zc);Zp(em,"ServerMessageType",()=>Ei);var Kc;(function(e){e.Data="data",e.Media="media"})(Kc||(Kc={}));var Fo;(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"})(Fo||(Fo={}));var h1;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(h1||(h1={}));var p1;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(p1||(p1={}));var dv;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(dv||(dv={}));var zc;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(zc||(zc={}));var Ei;(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"})(Ei||(Ei={}));var GF={};GF=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 ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"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 _Mt extends qF.EventEmitter{constructor(t,n,r,o,i,a=5e3){super(),this.pingInterval=a,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+o+"peerjs?key="+i}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+GF.version),this._disconnected=!1,this._socket.onmessage=o=>{let i;try{i=JSON.parse(o.data),In.log("Server message received:",i)}catch{In.log("Invalid server message",o.data);return}this.emit(zc.Message,i)},this._socket.onclose=o=>{this._disconnected||(In.log("Socket closed.",o),this._cleanup(),this._disconnected=!0,this.emit(zc.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),In.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){In.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:Ei.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(zc.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 ype{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===Kc.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,o={ordered:!!t.reliable},i=n.createDataChannel(r.label,o);r._initializeDataChannel(i),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){In.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,o=this.connection.type,i=this.connection.provider;In.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(In.log(`Received ICE candidates for ${n}:`,a.candidate),i.socket.send({type:Ei.Candidate,payload:{candidate:a.candidate,type:o,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":In.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(h1.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":In.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(h1.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":In.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},In.log("Listening for data channel"),t.ondatachannel=a=>{In.log("Received data channel");const s=a.channel;i.getConnection(n,r)._initializeDataChannel(s)},In.log("Listening for remote stream"),t.ontrack=a=>{In.log("Received remote stream");const s=a.streams[0],l=i.getConnection(n,r);if(l.type===Kc.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){In.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 o=this.connection.dataChannel;o&&(r=!!o.readyState&&o.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);In.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),In.log("Set localDescription:",r,`for:${this.connection.peer}`);let o={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===Kc.Data){const i=this.connection;o={...o,label:i.label,reliable:i.reliable,serialization:i.serialization}}n.socket.send({type:Ei.Offer,payload:o,dst:this.connection.peer})}catch(o){o!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(Fo.WebRTC,o),In.log("Failed to setLocalDescription, ",o))}}catch(r){n.emitError(Fo.WebRTC,r),In.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();In.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),In.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:Ei.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(o){n.emitError(Fo.WebRTC,o),In.log("Failed to setLocalDescription, ",o)}}catch(r){n.emitError(Fo.WebRTC,r),In.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,o=this.connection.provider;In.log("Setting remote description",n);const i=this;try{await r.setRemoteDescription(n),In.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await i._makeAnswer()}catch(a){o.emitError(Fo.WebRTC,a),In.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){In.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),In.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(Fo.WebRTC,n),In.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(In.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return In.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){In.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class bpe extends qF.EventEmitter{emitError(t,n){In.error("Error:",n),this.emit("error",new $Mt(`${t}`,n))}}class $Mt extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class Spe extends bpe{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 fN;const eb=class eb extends Spe{get type(){return Kc.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||eb.ID_PREFIX+Da.randomToken(),this._negotiator=new ype(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{In.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{In.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){In.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case Ei.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case Ei.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:In.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){In.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 o of r)this.handleMessage(o);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"))}};fN=new WeakMap,Tn(eb,fN,eb.ID_PREFIX="mc_");let LE=eb;class PMt{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:o,path:i,key:a}=this._options,s=new URL(`${n}://${r}:${o}${i}${a}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",GF.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){In.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Da.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===Da.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 In.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var hN,pN;const bh=class bh extends Spe{get type(){return Kc.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||bh.ID_PREFIX+gpe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new ype(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{In.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{In.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{In.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(p1.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 Ei.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case Ei.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:In.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};hN=new WeakMap,pN=new WeakMap,Tn(bh,hN,bh.ID_PREFIX="dc_"),Tn(bh,pN,bh.MAX_BUFFERED_AMOUNT=8388608);let BE=bh;class YF extends BE{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>BE.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return In.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 sI extends YF{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new mpe,this.serialization=dv.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=Nhe(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 o=yMt(r.data);this._handleDataMessage({data:o})}}_send(t,n){const r=Ahe(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);In.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class OMt extends YF{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=dv.None}}class MMt extends YF{_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>=Da.chunkedMTU){this.emitError(p1.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=dv.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var mN;const tb=class tb extends bpe{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:OMt,json:MMt,binary:sI,"binary-utf8":sI,default:sI},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:Da.CLOUD_HOST,port:Da.CLOUD_PORT,path:"/",key:tb.DEFAULT_KEY,token:Da.randomToken(),config:Da.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!==Da.CLOUD_HOST?this._options.secure=Da.isSecure():this._options.host==Da.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&In.setLogFunction(this._options.logFunction),In.logLevel=this._options.debug||0,this._api=new PMt(n),this._socket=this._createServerConnection(),!Da.supports.audioVideo&&!Da.supports.data){this._delayedAbort(Fo.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Da.validateId(r)){this._delayedAbort(Fo.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(o=>this._initialize(o)).catch(o=>this._abort(Fo.ServerError,o))}_createServerConnection(){const t=new _Mt(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(zc.Message,n=>{this._handleMessage(n)}),t.on(zc.Error,n=>{this._abort(Fo.SocketError,n)}),t.on(zc.Disconnected,()=>{this.disconnected||(this.emitError(Fo.Network,"Lost connection to server."),this.disconnect())}),t.on(zc.Close,()=>{this.disconnected||this._abort(Fo.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,o=t.src;switch(n){case Ei.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case Ei.Error:this._abort(Fo.ServerError,r.msg);break;case Ei.IdTaken:this._abort(Fo.UnavailableID,`ID "${this.id}" is taken`);break;case Ei.InvalidKey:this._abort(Fo.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case Ei.Leave:In.log(`Received leave message from ${o}`),this._cleanupPeer(o),this._connections.delete(o);break;case Ei.Expire:this.emitError(Fo.PeerUnavailable,`Could not connect to peer ${o}`);break;case Ei.Offer:{const i=r.connectionId;let a=this.getConnection(o,i);if(a&&(a.close(),In.warn(`Offer received for existing Connection ID:${i}`)),r.type===Kc.Media){const l=new LE(o,this,{connectionId:i,_payload:r,metadata:r.metadata});a=l,this._addConnection(o,a),this.emit("call",l)}else if(r.type===Kc.Data){const l=new this._serializers[r.serialization](o,this,{connectionId:i,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});a=l,this._addConnection(o,a),this.emit("connection",l)}else{In.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(i);for(const l of s)a.handleMessage(l);break}default:{if(!r){In.warn(`You received a malformed message from ${o} of type ${n}`);return}const i=r.connectionId,a=this.getConnection(o,i);a&&a.peerConnection?a.handleMessage(t):i?this._storeMessage(i,t):In.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){In.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(Fo.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){In.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(Fo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){In.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const o=new LE(t,this,{...r,_stream:n});return this._addConnection(t,o),o}_addConnection(t,n){In.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 o of r)if(o.connectionId===n)return o;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){In.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(In.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;In.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)In.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)In.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(Fo.ServerError,n))}};mN=new WeakMap,Tn(tb,mN,tb.DEFAULT_KEY="peerjs");let rN=tb,TMt="127.0.0.1",RMt=9e3,IMt="/";function kMt(){console.log("usePeer");const e=vi(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!")})},o=a=>{n?(console.log("sending message:",a),n.send(a)):console.error("no connection to send message")},i=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 d.useEffect(()=>{const a=new rN(e.uid,{host:TMt,port:RMt,path:IMt});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:o,callOtherPeer:i}}const NMt=()=>{const e=eo(),[t,n]=d.useState("/chat"),r=Ya(),{isLoggedIn:o,mode:i}=d.useContext(ia),{footerStyle:a}=zS(),[s,l]=d.useState(!1),c=Ll(p=>p.threads);d.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:N.jsx(vy,{}),component:N.jsx(X8,{})}],[f,h]=d.useState(u);return xhe(),whe(),aMt(),kMt(),yF(),d.useEffect(()=>{h(u)},[i]),d.useEffect(()=>(o&&r("/chat"),()=>{console.log("un - useEffect")}),[o]),N.jsxs(Qde,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:p=>p.isMobile?[]:[N.jsx(Use,{onClick:Ble},"QuestionCircleFilled")],menuHeaderRender:()=>N.jsx(Che,{}),menuFooterRender:p=>{p!=null&&p.collapsed},onMenuHeaderClick:p=>{console.log("onMenuHeaderClick",p)},menuItemRender:(p,m)=>N.jsx(N.Fragment,{children:N.jsxs("a",{onClick:()=>{n(p.path),r(p.path)},children:[s&&N.jsxs(N.Fragment,{children:[p.path==="/anonymous/home"&&N.jsx(Xi,{size:"small",dot:s,offset:[-5,5],children:m}),p.path!=="/anonymous/home"&&m]}),!s&&N.jsx(N.Fragment,{children:m})]})}),children:[N.jsx(HO,{children:N.jsx(PP,{})}),N.jsx(UO,{style:a,children:N.jsx(She,{})}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:AMt,Content:DMt}=ei,jMt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=zS();return N.jsx(N.Fragment,{children:N.jsxs(ei,{children:[N.jsx(AMt,{style:e,width:t}),N.jsxs(ei,{children:[N.jsx(iE,{style:n,children:"setting"}),N.jsx(DMt,{style:r,children:"setting"})]})]})})},Cpe=d.createContext(null);function FMt(e){const t=d.useContext(Cpe);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function LMt(){const[e]=d.useState(()=>new Set),t=d.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[d.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var s;return(s=a[o])==null?void 0:s.call(a,i)})},[e]),t]}const BMt={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},zMt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function HMt(e){let{announcements:t=zMt,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=BMt}=e;const{announce:i,announcement:a}=d2t(),s=iO("DndLiveRegion"),[l,c]=d.useState(!1);if(d.useEffect(()=>{c(!0)},[]),FMt(d.useMemo(()=>({onDragStart(f){let{active:h}=f;i(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:p}=f;t.onDragMove&&i(t.onDragMove({active:h,over:p}))},onDragOver(f){let{active:h,over:p}=f;i(t.onDragOver({active:h,over:p}))},onDragEnd(f){let{active:h,over:p}=f;i(t.onDragEnd({active:h,over:p}))},onDragCancel(f){let{active:h,over:p}=f;i(t.onDragCancel({active:h,over:p}))}}),[i,t])),!l)return null;const u=de.createElement(de.Fragment,null,de.createElement(c2t,{id:r,value:o.draggable}),de.createElement(u2t,{id:s,announcement:a}));return n?_i.createPortal(u,n):u}var fi;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(fi||(fi={}));function zE(){}const cc=Object.freeze({x:0,y:0});function UMt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function WMt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function VMt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function xG(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function KMt(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const qMt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=xG(t),i=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const c=xG(l),u=o.reduce((h,p,m)=>h+UMt(c[m],p),0),f=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:a,value:f}})}}return i.sort(WMt)};function GMt(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,s=n.get(a);if(s){const l=GMt(s,t);l>0&&o.push({id:a,data:{droppableContainer:i,value:l}})}}return o.sort(VMt)};function XMt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function wpe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:cc}function QMt(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const JMt=QMt(1);function ZMt(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function eTt(e,t,n){const r=ZMt(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const tTt={ignoreTransform:!1};function h0(e,t){t===void 0&&(t=tTt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Qa(e).getComputedStyle(e);c&&(n=eTt(n,c,u))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function EG(e){return h0(e,{ignoreTransform:!0})}function nTt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function rTt(e,t){return t===void 0&&(t=Qa(e).getComputedStyle(e)),t.position==="fixed"}function oTt(e,t){t===void 0&&(t=Qa(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function XF(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(sF(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!RS(o)||Jde(o)||n.includes(o))return n;const i=Qa(e).getComputedStyle(o);return o!==e&&oTt(o,i)&&n.push(o),rTt(o,i)?n:r(o.parentNode)}return e?r(e):n}function xpe(e){const[t]=XF(e,1);return t??null}function lI(e){return!oO||!e?null:s0(e)?e:aF(e)?sF(e)||e===l0(e).scrollingElement?window:RS(e)?e:null:null}function Epe(e){return s0(e)?e.scrollX:e.scrollLeft}function _pe(e){return s0(e)?e.scrollY:e.scrollTop}function oN(e){return{x:Epe(e),y:_pe(e)}}var xi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xi||(xi={}));function $pe(e){return!oO||!e?!1:e===document.scrollingElement}function Ppe(e){const t={x:0,y:0},n=$pe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const iTt={x:.2,y:.2};function aTt(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=iTt);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=Ppe(e),p={x:0,y:0},m={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!c&&i<=t.top+g.height?(p.y=xi.Backward,m.y=r*Math.abs((t.top+g.height-i)/g.height)):!u&&l>=t.bottom-g.height&&(p.y=xi.Forward,m.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!h&&s>=t.right-g.width?(p.x=xi.Forward,m.x=r*Math.abs((t.right-g.width-s)/g.width)):!f&&a<=t.left+g.width&&(p.x=xi.Backward,m.x=r*Math.abs((t.left+g.width-a)/g.width)),{direction:p,speed:m}}function sTt(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Ope(e){return e.reduce((t,n)=>fg(t,oN(n)),cc)}function lTt(e){return e.reduce((t,n)=>t+Epe(n),0)}function cTt(e){return e.reduce((t,n)=>t+_pe(n),0)}function uTt(e,t){if(t===void 0&&(t=h0),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);xpe(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const dTt=[["x",["left","right"],lTt],["y",["top","bottom"],cTt]];class QF{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=XF(n),o=Ope(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,s]of dTt)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=o[i]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Qy{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function fTt(e){const{EventTarget:t}=Qa(e);return e instanceof t?e:l0(e)}function cI(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var qs;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(qs||(qs={}));function _G(e){e.preventDefault()}function hTt(e){e.stopPropagation()}var Dr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Dr||(Dr={}));const Mpe={start:[Dr.Space,Dr.Enter],cancel:[Dr.Esc],end:[Dr.Space,Dr.Enter]},pTt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Dr.Right:return{...n,x:n.x+25};case Dr.Left:return{...n,x:n.x-25};case Dr.Down:return{...n,y:n.y+25};case Dr.Up:return{...n,y:n.y-25}}};class Tpe{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Qy(l0(n)),this.windowListeners=new Qy(Qa(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(qs.Resize,this.handleCancel),this.windowListeners.add(qs.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(qs.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&uTt(r),n(cc)}handleKeyDown(t){if(cF(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Mpe,coordinateGetter:a=pTt,scrollBehavior:s="smooth"}=o,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:cc;this.referenceCoordinates||(this.referenceCoordinates=u);const f=a(t,{active:n,context:r.current,currentCoordinates:u});if(f){const h=FE(f,u),p={x:0,y:0},{scrollableAncestors:m}=r.current;for(const g of m){const v=t.code,{isTop:b,isRight:y,isLeft:S,isBottom:w,maxScroll:E,minScroll:C}=Ppe(g),x=sTt(g),_={x:Math.min(v===Dr.Right?x.right-x.width/2:x.right,Math.max(v===Dr.Right?x.left:x.left+x.width/2,f.x)),y:Math.min(v===Dr.Down?x.bottom-x.height/2:x.bottom,Math.max(v===Dr.Down?x.top:x.top+x.height/2,f.y))},P=v===Dr.Right&&!y||v===Dr.Left&&!S,O=v===Dr.Down&&!w||v===Dr.Up&&!b;if(P&&_.x!==f.x){const I=g.scrollLeft+h.x,M=v===Dr.Right&&I<=E.x||v===Dr.Left&&I>=C.x;if(M&&!h.y){g.scrollTo({left:I,behavior:s});return}M?p.x=g.scrollLeft-I:p.x=v===Dr.Right?g.scrollLeft-E.x:g.scrollLeft-C.x,p.x&&g.scrollBy({left:-p.x,behavior:s});break}else if(O&&_.y!==f.y){const I=g.scrollTop+h.y,M=v===Dr.Down&&I<=E.y||v===Dr.Up&&I>=C.y;if(M&&!h.x){g.scrollTo({top:I,behavior:s});return}M?p.y=g.scrollTop-I:p.y=v===Dr.Down?g.scrollTop-E.y:g.scrollTop-C.y,p.y&&g.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,fg(FE(f,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Tpe.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Mpe,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function $G(e){return!!(e&&"distance"in e)}function PG(e){return!!(e&&"delay"in e)}class JF{constructor(t,n,r){var o;r===void 0&&(r=fTt(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=l0(a),this.documentListeners=new Qy(this.document),this.listeners=new Qy(r),this.windowListeners=new Qy(Qa(a)),this.initialCoordinates=(o=P8(i))!=null?o:cc,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(qs.Resize,this.handleCancel),this.windowListeners.add(qs.DragStart,_G),this.windowListeners.add(qs.VisibilityChange,this.handleCancel),this.windowListeners.add(qs.ContextMenu,_G),this.documentListeners.add(qs.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(PG(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if($G(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(qs.Click,hTt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(qs.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!o)return;const l=(n=P8(t))!=null?n:cc,c=FE(o,l);if(!r&&s){if($G(s)){if(s.tolerance!=null&&cI(c,s.tolerance))return this.handleCancel();if(cI(c,s.distance))return this.handleStart()}return PG(s)&&cI(c,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Dr.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const mTt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Rpe extends JF{constructor(t){const{event:n}=t,r=l0(n.target);super(t,mTt,r)}}Rpe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const gTt={move:{name:"mousemove"},end:{name:"mouseup"}};var iN;(function(e){e[e.RightClick=2]="RightClick"})(iN||(iN={}));class vTt extends JF{constructor(t){super(t,gTt,l0(t.event.target))}}vTt.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===iN.RightClick?!1:(r==null||r({event:n}),!0)}}];const uI={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class yTt extends JF{constructor(t){super(t,uI)}static setup(){return window.addEventListener(uI.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(uI.move.name,t)};function t(){}}}yTt.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Jy;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Jy||(Jy={}));var HE;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(HE||(HE={}));function bTt(e){let{acceleration:t,activator:n=Jy.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=HE.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:h}=e;const p=CTt({delta:f,disabled:!i}),[m,g]=o2t(),v=d.useRef({x:0,y:0}),b=d.useRef({x:0,y:0}),y=d.useMemo(()=>{switch(n){case Jy.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Jy.DraggableRect:return o}},[n,o,l]),S=d.useRef(null),w=d.useCallback(()=>{const C=S.current;if(!C)return;const x=v.current.x*b.current.x,_=v.current.y*b.current.y;C.scrollBy(x,_)},[]),E=d.useMemo(()=>s===HE.TreeOrder?[...c].reverse():c,[s,c]);d.useEffect(()=>{if(!i||!c.length||!y){g();return}for(const C of E){if((r==null?void 0:r(C))===!1)continue;const x=c.indexOf(C),_=u[x];if(!_)continue;const{direction:P,speed:O}=aTt(C,_,y,t,h);for(const I of["x","y"])p[I][P[I]]||(O[I]=0,P[I]=0);if(O.x>0||O.y>0){g(),S.current=C,m(w,a),v.current=O,b.current=P;return}}v.current={x:0,y:0},b.current={x:0,y:0},g()},[t,w,r,g,i,a,JSON.stringify(y),JSON.stringify(p),m,c,E,u,JSON.stringify(h)])}const STt={x:{[xi.Backward]:!1,[xi.Forward]:!1},y:{[xi.Backward]:!1,[xi.Forward]:!1}};function CTt(e){let{delta:t,disabled:n}=e;const r=$8(t);return IS(o=>{if(n||!r||!o)return STt;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[xi.Backward]:o.x[xi.Backward]||i.x===-1,[xi.Forward]:o.x[xi.Forward]||i.x===1},y:{[xi.Backward]:o.y[xi.Backward]||i.y===-1,[xi.Forward]:o.y[xi.Forward]||i.y===1}}},[n,t,r])}function wTt(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return IS(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function xTt(e,t){return d.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var m1;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(m1||(m1={}));var aN;(function(e){e.Optimized="optimized"})(aN||(aN={}));const OG=new Map;function ETt(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=d.useState(null),{frequency:s,measure:l,strategy:c}=o,u=d.useRef(e),f=v(),h=u1(f),p=d.useCallback(function(b){b===void 0&&(b=[]),!h.current&&a(y=>y===null?b:y.concat(b.filter(S=>!y.includes(S))))},[h]),m=d.useRef(null),g=IS(b=>{if(f&&!n)return OG;if(!b||b===OG||u.current!==e||i!=null){const y=new Map;for(let S of e){if(!S)continue;if(i&&i.length>0&&!i.includes(S.id)&&S.rect.current){y.set(S.id,S.rect.current);continue}const w=S.node.current,E=w?new QF(l(w),w):null;S.rect.current=E,E&&y.set(S.id,E)}return y}return b},[e,i,n,f,l]);return d.useEffect(()=>{u.current=e},[e]),d.useEffect(()=>{f||p()},[n,f]),d.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),d.useEffect(()=>{f||typeof s!="number"||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,f,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:i!=null};function v(){switch(c){case m1.Always:return!1;case m1.BeforeDragging:return n;default:return!n}}}function Ipe(e,t){return IS(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function _Tt(e,t){return Ipe(e,t)}function $Tt(e){let{callback:t,disabled:n}=e;const r=lF(t),o=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return d.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function VO(e){let{callback:t,disabled:n}=e;const r=lF(t),o=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return d.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function PTt(e){return new QF(h0(e),e)}function MG(e,t,n){t===void 0&&(t=PTt);const[r,o]=d.useState(null);function i(){o(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const a=$Tt({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),s=VO({callback:i});return ad(()=>{i(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function OTt(e){const t=Ipe(e);return wpe(e,t)}const TG=[];function MTt(e){const t=d.useRef(e),n=IS(r=>e?r&&r!==TG&&e&&t.current&&e.parentNode===t.current.parentNode?r:XF(e):TG,[e]);return d.useEffect(()=>{t.current=e},[e]),n}function TTt(e){const[t,n]=d.useState(null),r=d.useRef(e),o=d.useCallback(i=>{const a=lI(i.target);a&&n(s=>s?(s.set(a,oN(a)),new Map(s)):null)},[]);return d.useEffect(()=>{const i=r.current;if(e!==i){a(i);const s=e.map(l=>{const c=lI(l);return c?(c.addEventListener("scroll",o,{passive:!0}),[c,oN(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(i)};function a(s){s.forEach(l=>{const c=lI(l);c==null||c.removeEventListener("scroll",o)})}},[o,e]),d.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>fg(i,a),cc):Ope(e):cc,[e,t])}function RG(e,t){t===void 0&&(t=[]);const n=d.useRef(null);return d.useEffect(()=>{n.current=null},t),d.useEffect(()=>{const r=e!==cc;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?FE(e,n.current):cc}function RTt(e){d.useEffect(()=>{if(!oO)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function ITt(e,t){return d.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function kpe(e){return d.useMemo(()=>e?nTt(e):null,[e])}const IG=[];function kTt(e,t){t===void 0&&(t=h0);const[n]=e,r=kpe(n?Qa(n):null),[o,i]=d.useState(IG);function a(){i(()=>e.length?e.map(l=>$pe(l)?r:new QF(t(l),l)):IG)}const s=VO({callback:a});return ad(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),o}function NTt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return RS(t)?t:e}function ATt(e){let{measure:t}=e;const[n,r]=d.useState(null),o=d.useCallback(c=>{for(const{target:u}of c)if(RS(u)){r(f=>{const h=t(u);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),i=VO({callback:o}),a=d.useCallback(c=>{const u=NTt(c);i==null||i.disconnect(),u&&(i==null||i.observe(u)),r(u?t(u):null)},[t,i]),[s,l]=jE(a);return d.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const DTt=[{sensor:Rpe,options:{}},{sensor:Tpe,options:{}}],jTt={current:{}},Tx={draggable:{measure:EG},droppable:{measure:EG,strategy:m1.WhileDragging,frequency:aN.Optimized},dragOverlay:{measure:h0}};class Zy extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const FTt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Zy,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zE},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Tx,measureDroppableContainers:zE,windowRect:null,measuringScheduled:!1},LTt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:zE,draggableNodes:new Map,over:null,measureDroppableContainers:zE},KO=d.createContext(LTt),BTt=d.createContext(FTt);function zTt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Zy}}}function HTt(e,t){switch(t.type){case fi.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case fi.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case fi.DragEnd:case fi.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case fi.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Zy(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case fi.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Zy(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case fi.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Zy(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function UTt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=d.useContext(KO),i=$8(r),a=$8(n==null?void 0:n.id);return d.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!cF(i)||document.activeElement===i.target)return;const s=o.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const f=s2t(u);if(f){f.focus();break}}})}},[r,t,o,a,i]),null}function WTt(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function VTt(e){return d.useMemo(()=>({draggable:{...Tx.draggable,...e==null?void 0:e.draggable},droppable:{...Tx.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Tx.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function KTt(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=d.useRef(!1),{x:a,y:s}=typeof o=="boolean"?{x:o,y:o}:o;ad(()=>{if(!a&&!s||!t){i.current=!1;return}if(i.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),f=wpe(u,r);if(a||(f.x=0),s||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=xpe(c);h&&h.scrollBy({top:f.y,left:f.x})}},[t,a,s,r,n])}const Npe=d.createContext({...cc,scaleX:1,scaleY:1});var zd;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(zd||(zd={}));const qTt=d.memo(function(t){var n,r,o,i;let{id:a,accessibility:s,autoScroll:l=!0,children:c,sensors:u=DTt,collisionDetection:f=YMt,measuring:h,modifiers:p,...m}=t;const g=d.useReducer(HTt,void 0,zTt),[v,b]=g,[y,S]=LMt(),[w,E]=d.useState(zd.Uninitialized),C=w===zd.Initialized,{draggable:{active:x,nodes:_,translate:P},droppable:{containers:O}}=v,I=x!=null?_.get(x):null,M=d.useRef({initial:null,translated:null}),T=d.useMemo(()=>{var et;return x!=null?{id:x,data:(et=I==null?void 0:I.data)!=null?et:jTt,rect:M}:null},[x,I]),D=d.useRef(null),[A,j]=d.useState(null),[k,F]=d.useState(null),V=u1(m,Object.values(m)),W=iO("DndDescribedBy",a),K=d.useMemo(()=>O.getEnabled(),[O]),L=VTt(h),{droppableRects:Q,measureDroppableContainers:ee,measuringScheduled:re}=ETt(K,{dragging:C,dependencies:[P.x,P.y],config:L.droppable}),ie=wTt(_,x),G=d.useMemo(()=>k?P8(k):null,[k]),X=Tt(),ne=_Tt(ie,L.draggable.measure);KTt({activeNode:x!=null?_.get(x):null,config:X.layoutShiftCompensation,initialRect:ne,measure:L.draggable.measure});const le=MG(ie,L.draggable.measure,ne),ce=MG(ie?ie.parentElement:null),oe=d.useRef({activatorEvent:null,active:null,activeNode:ie,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),se=O.getNodeFor((n=oe.current.over)==null?void 0:n.id),fe=ATt({measure:L.dragOverlay.measure}),te=(r=fe.nodeRef.current)!=null?r:ie,he=C?(o=fe.rect)!=null?o:le:null,pe=!!(fe.nodeRef.current&&fe.rect),Oe=OTt(pe?null:le),Me=kpe(te?Qa(te):null),Se=MTt(C?se??ie:null),ye=kTt(Se),ve=WTt(p,{transform:{x:P.x-Oe.x,y:P.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:k,active:T,activeNodeRect:le,containerNodeRect:ce,draggingNodeRect:he,over:oe.current.over,overlayNodeRect:fe.rect,scrollableAncestors:Se,scrollableAncestorRects:ye,windowRect:Me}),be=G?fg(G,P):null,Pe=TTt(Se),Ne=RG(Pe),U=RG(Pe,[le]),H=fg(ve,Ne),q=he?JMt(he,ve):null,me=T&&q?f({active:T,collisionRect:q,droppableRects:Q,droppableContainers:K,pointerCoordinates:be}):null,Ce=KMt(me,"id"),[ue,Le]=d.useState(null),He=pe?ve:fg(ve,U),ge=XMt(He,(i=ue==null?void 0:ue.rect)!=null?i:null,le),De=d.useRef(null),qe=d.useCallback((et,st)=>{let{sensor:yt,options:gt}=st;if(D.current==null)return;const Lt=_.get(D.current);if(!Lt)return;const St=et.nativeEvent,wt=new yt({active:D.current,activeNode:Lt,event:St,options:gt,context:oe,onStart(Be){const We=D.current;if(We==null)return;const je=_.get(We);if(!je)return;const{onDragStart:Xe}=V.current,pt={activatorEvent:St,active:{id:We,data:je.data,rect:M}};_i.unstable_batchedUpdates(()=>{Xe==null||Xe(pt),E(zd.Initializing),b({type:fi.DragStart,initialCoordinates:Be,active:We}),y({type:"onDragStart",event:pt}),j(De.current),F(St)})},onMove(Be){b({type:fi.DragMove,coordinates:Be})},onEnd:Nt(fi.DragEnd),onCancel:Nt(fi.DragCancel)});De.current=wt;function Nt(Be){return async function(){const{active:je,collisions:Xe,over:pt,scrollAdjustedTranslate:vt}=oe.current;let Mt=null;if(je&&vt){const{cancelDrop:Et}=V.current;Mt={activatorEvent:St,active:je,collisions:Xe,delta:vt,over:pt},Be===fi.DragEnd&&typeof Et=="function"&&await Promise.resolve(Et(Mt))&&(Be=fi.DragCancel)}D.current=null,_i.unstable_batchedUpdates(()=>{b({type:Be}),E(zd.Uninitialized),Le(null),j(null),F(null),De.current=null;const Et=Be===fi.DragEnd?"onDragEnd":"onDragCancel";if(Mt){const ft=V.current[Et];ft==null||ft(Mt),y({type:Et,event:Mt})}})}}},[_]),Fe=d.useCallback((et,st)=>(yt,gt)=>{const Lt=yt.nativeEvent,St=_.get(gt);if(D.current!==null||!St||Lt.dndKit||Lt.defaultPrevented)return;const wt={active:St};et(yt,st.options,wt)===!0&&(Lt.dndKit={capturedBy:st.sensor},D.current=gt,qe(yt,st))},[_,qe]),Ke=xTt(u,Fe);RTt(u),ad(()=>{le&&w===zd.Initializing&&E(zd.Initialized)},[le,w]),d.useEffect(()=>{const{onDragMove:et}=V.current,{active:st,activatorEvent:yt,collisions:gt,over:Lt}=oe.current;if(!st||!yt)return;const St={active:st,activatorEvent:yt,collisions:gt,delta:{x:H.x,y:H.y},over:Lt};_i.unstable_batchedUpdates(()=>{et==null||et(St),y({type:"onDragMove",event:St})})},[H.x,H.y]),d.useEffect(()=>{const{active:et,activatorEvent:st,collisions:yt,droppableContainers:gt,scrollAdjustedTranslate:Lt}=oe.current;if(!et||D.current==null||!st||!Lt)return;const{onDragOver:St}=V.current,wt=gt.get(Ce),Nt=wt&&wt.rect.current?{id:wt.id,rect:wt.rect.current,data:wt.data,disabled:wt.disabled}:null,Be={active:et,activatorEvent:st,collisions:yt,delta:{x:Lt.x,y:Lt.y},over:Nt};_i.unstable_batchedUpdates(()=>{Le(Nt),St==null||St(Be),y({type:"onDragOver",event:Be})})},[Ce]),ad(()=>{oe.current={activatorEvent:k,active:T,activeNode:ie,collisionRect:q,collisions:me,droppableRects:Q,draggableNodes:_,draggingNode:te,draggingNodeRect:he,droppableContainers:O,over:ue,scrollableAncestors:Se,scrollAdjustedTranslate:H},M.current={initial:he,translated:q}},[T,ie,me,q,_,te,he,Q,O,ue,Se,H]),bTt({...X,delta:P,draggingRect:q,pointerCoordinates:be,scrollableAncestors:Se,scrollableAncestorRects:ye});const Ue=d.useMemo(()=>({active:T,activeNode:ie,activeNodeRect:le,activatorEvent:k,collisions:me,containerNodeRect:ce,dragOverlay:fe,draggableNodes:_,droppableContainers:O,droppableRects:Q,over:ue,measureDroppableContainers:ee,scrollableAncestors:Se,scrollableAncestorRects:ye,measuringConfiguration:L,measuringScheduled:re,windowRect:Me}),[T,ie,le,k,me,ce,fe,_,O,Q,ue,ee,Se,ye,L,re,Me]),Ve=d.useMemo(()=>({activatorEvent:k,activators:Ke,active:T,activeNodeRect:le,ariaDescribedById:{draggable:W},dispatch:b,draggableNodes:_,over:ue,measureDroppableContainers:ee}),[k,Ke,T,le,b,W,_,ue,ee]);return de.createElement(Cpe.Provider,{value:S},de.createElement(KO.Provider,{value:Ve},de.createElement(BTt.Provider,{value:Ue},de.createElement(Npe.Provider,{value:ge},c)),de.createElement(UTt,{disabled:(s==null?void 0:s.restoreFocus)===!1})),de.createElement(HMt,{...s,hiddenTextDescribedById:W}));function Tt(){const et=(A==null?void 0:A.autoScrollEnabled)===!1,st=typeof l=="object"?l.enabled===!1:l===!1,yt=C&&!et&&!st;return typeof l=="object"?{...l,enabled:yt}:{enabled:yt}}}),GTt=d.createContext(null),kG="button",YTt="Draggable";function XTt(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=iO(YTt),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:h}=d.useContext(KO),{role:p=kG,roleDescription:m="draggable",tabIndex:g=0}=o??{},v=(l==null?void 0:l.id)===t,b=d.useContext(v?Npe:GTt),[y,S]=jE(),[w,E]=jE(),C=ITt(a,t),x=u1(n);ad(()=>(f.set(t,{id:t,key:i,node:y,activatorNode:w,data:x}),()=>{const P=f.get(t);P&&P.key===i&&f.delete(t)}),[f,t]);const _=d.useMemo(()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":v&&p===kG?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,g,v,m,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:_,isDragging:v,listeners:r?void 0:C,node:y,over:h,setNodeRef:S,setActivatorNodeRef:E,transform:b}}const QTt="Droppable",JTt={timeout:25};function ZTt(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=iO(QTt),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=d.useContext(KO),u=d.useRef({disabled:n}),f=d.useRef(!1),h=d.useRef(null),p=d.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:v}={...JTt,...o},b=u1(g??r),y=d.useCallback(()=>{if(!f.current){f.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),p.current=null},v)},[v]),S=VO({callback:y,disabled:m||!a}),w=d.useCallback((_,P)=>{S&&(P&&(S.unobserve(P),f.current=!1),_&&S.observe(_))},[S]),[E,C]=jE(w),x=u1(t);return d.useEffect(()=>{!S||!E.current||(S.disconnect(),f.current=!1,S.observe(E.current))},[E,S]),d.useEffect(()=>(s({type:fi.RegisterDroppable,element:{id:r,key:i,disabled:n,node:E,rect:h,data:x}}),()=>s({type:fi.UnregisterDroppable,key:i,id:r})),[r]),d.useEffect(()=>{n!==u.current.disabled&&(s({type:fi.SetDroppableDisabled,id:r,key:i,disabled:n}),u.current.disabled=n)},[r,i,n,s]),{active:a,rect:h,isOver:(l==null?void 0:l.id)===r,node:E,over:l,setNodeRef:C}}function Ape(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function mw(e){return e!==null&&e>=0}const eRt=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Ape(t,r,n),a=t[o],s=i[o];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},tRt="Sortable",nRt=de.createContext({activeIndex:-1,containerId:tRt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:eRt,disabled:{draggable:!1,droppable:!1}}),rRt=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Ape(n,r,o).indexOf(t)},oRt=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==i&&o===a?!1:n?!0:a!==o&&t===l},iRt={duration:200,easing:"ease"},Dpe="transform",aRt=d1.Transition.toString({property:Dpe,duration:0,easing:"linear"}),sRt={roleDescription:"sortable"};function lRt(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=d.useState(null),s=d.useRef(n);return ad(()=>{if(!t&&n!==s.current&&r.current){const l=o.current;if(l){const c=h0(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,o]),d.useEffect(()=>{i&&a(null)},[i]),i}function cRt(e){let{animateLayoutChanges:t=oRt,attributes:n,disabled:r,data:o,getNewIndex:i=rRt,id:a,strategy:s,resizeObserverConfig:l,transition:c=iRt}=e;const{items:u,containerId:f,activeIndex:h,disabled:p,disableTransforms:m,sortedRects:g,overIndex:v,useDragOverlay:b,strategy:y}=d.useContext(nRt),S=uRt(r,p),w=u.indexOf(a),E=d.useMemo(()=>({sortable:{containerId:f,index:w,items:u},...o}),[f,o,w,u]),C=d.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:x,node:_,isOver:P,setNodeRef:O}=ZTt({id:a,data:E,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...l}}),{active:I,activatorEvent:M,activeNodeRect:T,attributes:D,setNodeRef:A,listeners:j,isDragging:k,over:F,setActivatorNodeRef:V,transform:W}=XTt({id:a,data:E,attributes:{...sRt,...n},disabled:S.draggable}),K=r2t(O,A),L=!!I,Q=L&&!m&&mw(h)&&mw(v),ee=!b&&k,re=ee&&Q?W:null,G=Q?re??(s??y)({rects:g,activeNodeRect:T,activeIndex:h,overIndex:v,index:w}):null,X=mw(h)&&mw(v)?i({id:a,items:u,activeIndex:h,overIndex:v}):w,ne=I==null?void 0:I.id,le=d.useRef({activeId:ne,items:u,newIndex:X,containerId:f}),ce=u!==le.current.items,oe=t({active:I,containerId:f,isDragging:k,isSorting:L,id:a,index:w,items:u,newIndex:le.current.newIndex,previousItems:le.current.items,previousContainerId:le.current.containerId,transition:c,wasDragging:le.current.activeId!=null}),se=lRt({disabled:!oe,index:w,node:_,rect:x});return d.useEffect(()=>{L&&le.current.newIndex!==X&&(le.current.newIndex=X),f!==le.current.containerId&&(le.current.containerId=f),u!==le.current.items&&(le.current.items=u)},[L,X,f,u]),d.useEffect(()=>{if(ne===le.current.activeId)return;if(ne&&!le.current.activeId){le.current.activeId=ne;return}const te=setTimeout(()=>{le.current.activeId=ne},50);return()=>clearTimeout(te)},[ne]),{active:I,activeIndex:h,attributes:D,data:E,rect:x,index:w,newIndex:X,items:u,isOver:P,isSorting:L,isDragging:k,listeners:j,node:_,overIndex:v,over:F,setNodeRef:K,setActivatorNodeRef:V,setDroppableNodeRef:O,setDraggableNodeRef:A,transform:se??G,transition:fe()};function fe(){if(se||ce&&le.current.newIndex===w)return aRt;if(!(ee&&!cF(M)||!c)&&(L||oe))return d1.Transition.toString({...c,property:Dpe})}}function uRt(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Dr.Down,Dr.Right,Dr.Up,Dr.Left;const dRt=({card:e})=>{var r,o;const t=((r=e.tasks)==null?void 0:r.filter(i=>i.completed).length)||0,n=((o=e.tasks)==null?void 0:o.length)||0;return N.jsx(ol,{size:"small",style:{marginBottom:8},children:N.jsxs(oo,{direction:"vertical",style:{width:"100%"},children:[N.jsx(oo,{wrap:!0,children:e.labels.map(i=>N.jsx(Uu,{color:i.color,children:i.name},i.id))}),N.jsx("div",{children:e.title}),n>0&&N.jsx(AD,{percent:Math.round(t/n*100),size:"small"}),N.jsxs(oo,{style:{justifyContent:"space-between",width:"100%"},children:[N.jsx(Xc.Group,{children:e.members.map(i=>N.jsx(Xc,{src:i.avatar,size:"small"},i.id))}),e.timer&&N.jsxs(oo,{children:[N.jsx(MD,{}),new Date(e.timer.duration*1e3).toISOString().substr(11,8)]})]})]})})},fRt=({card:e,index:t,listId:n})=>{const{attributes:r,listeners:o,setNodeRef:i,transform:a,transition:s,isDragging:l}=cRt({id:`${e.id}:${n}:${t}`}),c={transform:d1.Transform.toString(a),transition:s,opacity:l?.5:1};return N.jsx("div",{ref:i,style:c,...r,...o,children:N.jsx(dRt,{card:e})})},hRt=({list:e})=>N.jsx("div",{children:e.cards.map((t,n)=>N.jsx(fRt,{card:t,index:n,listId:e.id},t.id))}),pRt=()=>{const{projectId:e}=sXe(),t=Ya(),n=nl(s=>s.currentProject),r=nl(s=>s.projects),o=nl(s=>s.setCurrentProject),i=nl(s=>s.moveCard);d.useEffect(()=>{if(e){const s=r.find(l=>l.id===e);s?o(s):t("/")}},[e,r,o,t]);const a=s=>{const{active:l,over:c}=s;if(!c)return;const u=l.id,f=c.id,[,h]=u.split(":"),[,p]=f.split(":");h!==p&&i(u.split(":")[0],h,p,parseInt(f.split(":")[2]||"0"))};return!n||!n.boards[0]?N.jsx(Nc,{description:"没有找到项目"}):N.jsx(qTt,{onDragEnd:a,collisionDetection:qMt,children:N.jsx(oo,{style:{width:"100%",overflowX:"auto"},size:16,children:n.boards[0].lists.map(s=>N.jsx("div",{style:{width:300},children:N.jsx(ol,{title:s.name,extra:N.jsx(Hn,{type:"text",icon:N.jsx(Hu,{})}),style:{width:"100%"},children:N.jsx(hRt,{list:s})})},s.id))})})};function mRt({children:e}){const{isLoggedIn:t}=d.useContext(ia),n=Vv();return t?e:N.jsx(CXe,{to:"/auth/login",replace:!0,state:{from:n}})}const NG=[{path:"/",element:N.jsx(N.Fragment,{children:N.jsx(mRt,{children:N.jsx(FOt,{})})}),children:[{index:!0,element:N.jsx(Ohe,{})},{path:"project/:projectId",element:N.jsx(pRt,{})},{path:"daily-report",element:N.jsx(Mhe,{})},{path:"weekly-report",element:N.jsx(The,{})},{path:"report-calendar",element:N.jsx(Ihe,{})},{path:"/setting",element:N.jsx(ghe,{}),children:[{path:"/setting",element:N.jsx(hG,{})},{path:"/setting/profile",element:N.jsx(hG,{})},{path:"/setting/agentProfile",element:N.jsx(rMt,{})},{path:"/setting/memberProfile",element:N.jsx(YOt,{})},{path:"/setting/basic",element:N.jsx(WOt,{})},{path:"/setting/certification",element:N.jsx(tMt,{})},{path:"/setting/qrcode",element:N.jsx(VOt,{})},{path:"/setting/shortcut",element:N.jsx(KOt,{})}]}]},{path:"/auth",element:N.jsx(LOt,{}),children:[{path:"/auth",element:N.jsx(L8,{isModel:!1})},{path:"/auth/login",element:N.jsx(L8,{isModel:!1})},{path:"/auth/register",element:N.jsx(JEt,{})},{path:"/auth/server",element:N.jsx(Nfe,{})}]},{path:"/anonymous",element:N.jsx(NMt,{}),children:[{path:"/anonymous",element:N.jsx(X8,{})},{path:"/anonymous/home",element:N.jsx(X8,{})},{path:"/anonymous/setting",element:N.jsx(jMt,{})}]},{path:"*",element:N.jsx(qOt,{})}];let sN;Pi?sN=MXe(NG,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):sN=OXe(NG,{basename:"/kanban",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const gRt=sN;var vRt=typeof Element<"u",yRt=typeof Map=="function",bRt=typeof Set=="function",SRt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Rx(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,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Rx(e[r],t[r]))return!1;return!0}var i;if(yRt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Rx(r.value[1],t.get(r.value[0])))return!1;return!0}if(bRt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(SRt&&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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(vRt&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Rx(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var CRt=function(t,n){try{return Rx(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 wRt=Fr(CRt);var xRt=function(e,t,n,r,o,i,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,o,i,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},ERt=xRt;const AG=Fr(ERt);var _Rt=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;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(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))(jpe||{}),dI={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"]}},DG=Object.values(jpe),ZF={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},PRt=Object.entries(ZF).reduce((e,[t,n])=>(e[n]=t,e),{}),Hl="data-rh",pg={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},mg=(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},ORt=e=>{let t=mg(e,"title");const n=mg(e,pg.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=mg(e,pg.DEFAULT_TITLE);return t||r||void 0},MRt=e=>mg(e,pg.ON_CHANGE_CLIENT_STATE)||(()=>{}),fI=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),TRt=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const o=Object.keys(r);for(let i=0;iconsole&&typeof console.warn=="function"&&console.warn(e),Z0=(e,t,n)=>{const r={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&RRt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,i)=>{const a={};i.filter(l=>{let c;const u=Object.keys(l);for(let h=0;ho.push(l));const s=Object.keys(a);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:TRt(["href"],e),bodyAttributes:fI("bodyAttributes",e),defer:mg(e,pg.DEFER),encode:mg(e,pg.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:fI("htmlAttributes",e),linkTags:Z0("link",["rel","href"],e),metaTags:Z0("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Z0("noscript",["innerHTML"],e),onChangeClientState:MRt(e),scriptTags:Z0("script",["src","innerHTML"],e),styleTags:Z0("style",["cssText"],e),title:ORt(e),titleAttributes:fI("titleAttributes",e),prioritizeSeoTags:IRt(e,pg.PRIORITIZE_SEO_TAGS)}),Fpe=e=>Array.isArray(e)?e.join(""):e,NRt=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(NRt(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},jG=(e,t)=>({...e,[t]:void 0}),ARt=["noscript","script","style"],lN=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Lpe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),DRt=(e,t,n,r)=>{const o=Lpe(n),i=Fpe(t);return o?`<${e} ${Hl}="true" ${o}>${lN(i,r)}`:`<${e} ${Hl}="true">${lN(i,r)}`},jRt=(e,t,n=!0)=>t.reduce((r,o)=>{const i=o,a=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof i[u]>"u"?u:`${u}="${lN(i[u],n)}"`;return c?`${c} ${f}`:f},""),s=i.innerHTML||i.cssText||"",l=ARt.indexOf(e)===-1;return`${r}<${e} ${Hl}="true" ${a}${l?"/>":`>${s}`}`},""),Bpe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=ZF[r];return n[o||r]=e[r],n},t),FRt=(e,t,n)=>{const r={key:t,[Hl]:!0},o=Bpe(n,r);return[de.createElement("title",o,t)]},Ix=(e,t)=>t.map((n,r)=>{const o={key:r,[Hl]:!0};return Object.keys(n).forEach(i=>{const s=ZF[i]||i;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[s]=n[i]}),de.createElement(e,o)}),Us=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>FRt(e,t.title,t.titleAttributes),toString:()=>DRt(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Bpe(t),toString:()=>Lpe(t)};default:return{toComponent:()=>Ix(e,t),toString:()=>jRt(e,t,n)}}},LRt=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=hI(e,dI.meta),i=hI(t,dI.link),a=hI(n,dI.script);return{priorityMethods:{toComponent:()=>[...Ix("meta",o.priority),...Ix("link",i.priority),...Ix("script",a.priority)],toString:()=>`${Us("meta",o.priority,r)} ${Us("link",i.priority,r)} ${Us("script",a.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:a.default}},BRt=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:f,scriptTags:h}=LRt(e)),{priority:p,base:Us("base",t,r),bodyAttributes:Us("bodyAttributes",n,r),htmlAttributes:Us("htmlAttributes",o,r),link:Us("link",u,r),meta:Us("meta",f,r),noscript:Us("noscript",i,r),script:Us("script",h,r),style:Us("style",a,r),title:Us("title",{title:s,titleAttributes:l},r)}},cN=BRt,gw=[],zpe=!!(typeof window<"u"&&window.document&&window.document.createElement),uN=class{constructor(e,t){Pr(this,"instances",[]);Pr(this,"canUseDOM",zpe);Pr(this,"context");Pr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?gw:this.instances,add:e=>{(this.canUseDOM?gw:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?gw:this.instances).indexOf(e);(this.canUseDOM?gw:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=cN({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},zRt={},Hpe=de.createContext(zRt),Fh,Upe=(Fh=class extends d.Component{constructor(n){super(n);Pr(this,"helmetData");this.helmetData=new uN(this.props.context||{},Fh.canUseDOM)}render(){return de.createElement(Hpe.Provider,{value:this.helmetData.value},this.props.children)}},Pr(Fh,"canUseDOM",zpe),Fh),Em=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Hl}]`),o=[].slice.call(r),i=[];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,f=typeof s[u]>"u"?"":s[u];l.setAttribute(c,f)}l.setAttribute(Hl,"true"),o.some((c,u)=>(a=u,l.isEqualNode(c)))?o.splice(a,1):i.push(l)}),o.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),i.forEach(s=>n.appendChild(s)),{oldTags:o,newTags:i}},dN=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Hl),o=r?r.split(","):[],i=[...o],a=Object.keys(t);for(const s of a){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),o.indexOf(s)===-1&&o.push(s);const c=i.indexOf(s);c!==-1&&i.splice(c,1)}for(let s=i.length-1;s>=0;s-=1)n.removeAttribute(i[s]);o.length===i.length?n.removeAttribute(Hl):n.getAttribute(Hl)!==a.join(",")&&n.setAttribute(Hl,a.join(","))},HRt=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Fpe(e)),dN("title",t)},FG=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:h}=e;dN("body",r),dN("html",o),HRt(f,h);const p={baseTag:Em("base",n),linkTags:Em("link",i),metaTags:Em("meta",a),noscriptTags:Em("noscript",s),scriptTags:Em("script",c),styleTags:Em("style",u)},m={},g={};Object.keys(p).forEach(v=>{const{newTags:b,oldTags:y}=p[v];b.length&&(m[v]=b),y.length&&(g[v]=p[v].oldTags)}),t&&t(),l(e,m,g)},ey=null,URt=e=>{ey&&cancelAnimationFrame(ey),e.defer?ey=requestAnimationFrame(()=>{FG(e,()=>{ey=null})}):(FG(e),ey=null)},WRt=URt,LG=class extends d.Component{constructor(){super(...arguments);Pr(this,"rendered",!1)}shouldComponentUpdate(t){return!$Rt(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 o=kRt(t.get().map(i=>{const a={...i.props};return delete a.context,a}));Upe.canUseDOM?WRt(o):cN&&(r=cN(o)),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}},pI,VRt=(pI=class extends d.Component{shouldComponentUpdate(e){return!wRt(jG(this.props,"helmetData"),jG(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 AG(DG.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${DG.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),AG(!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}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return de.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...i}=r.props,a=Object.keys(i).reduce((l,c)=>(l[PRt[c]||c]=i[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,o),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,o);break;default:t=this.mapObjectTypeChildren(r,t,a,o);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 uN)){const o=r;r=new uN(o.context,!0),delete n.helmetData}return r?de.createElement(LG,{...n,context:r.value}):de.createElement(Hpe.Consumer,null,o=>de.createElement(LG,{...n,context:o}))}},Pr(pI,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),pI);const KRt={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:"暂无客服在线"},qRt={"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.projectList":"项目","menu.dashboard.dailyReport":"日报","menu.dashboard.weeklyReport":"周报","menu.dashboard.reportCalendar":"日历"},GRt={"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":"查看文档"},YRt={"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":"隐私政策"},XRt={"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":"请输入正确的服务器地址"},QRt={"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错误"},JRt={"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":"表单验证通过"},ZRt={"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":"拉黑成功"},eIt={"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":"转接请求已发送,等待对方响应"},tIt={"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"},nIt={"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":"请检查表单"},rIt={"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":"密码修改成功!"},oIt={"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":"个人模式"},iIt={"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":"加载更多..."},aIt={"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":"暂无工单"},sIt={"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":"开始聊天"},lIt={"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":"加载成员失败"},cIt={"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":"请至少选择一个机器人"},uIt={"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":"选择大模型知识库"},dIt={"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":"取消"},fIt={...YRt,...XRt,...QRt,...JRt,...ZRt,...eIt,...tIt,...qRt,...nIt,...GRt,...rIt,...oIt,...iIt,...aIt,...KRt,...sIt,...lIt,...cIt,...uIt,...dIt},hIt={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:"无客服在线"},pIt={"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.projectList":"專案","menu.dashboard.dailyReport":"日報","menu.dashboard.weeklyReport":"週報","menu.dashboard.reportCalendar":"日曆"},mIt={"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":"返回首頁"},gIt={"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":"隱私政策"},vIt={"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":"請輸入正確的服務器地址"},yIt={"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錯誤"},bIt={"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":"表單驗證通過"},SIt={"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":"拉黑成功"},CIt={"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":"數據加載失敗"},wIt={"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"},xIt={"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":"圖片保存失敗"},EIt={"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":"密碼修改成功!"},_It={"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":"個人模式"},$It={"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":"加載更多..."},PIt={"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":"暫無工單"},OIt={"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":"開始聊天"},MIt={"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":"加載成員失敗"},TIt={"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":"刪除"},RIt={"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":"选择大模型知识库"},IIt={"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":"取消"},kIt={...gIt,...vIt,...yIt,...bIt,...SIt,...CIt,...wIt,...pIt,...xIt,...mIt,...EIt,..._It,...$It,...PIt,...hIt,...OIt,...MIt,...TIt,...RIt,...IIt},NIt={"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"},AIt={"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"},DIt={"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"},jIt={"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"},FIt={"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.projectList":"Project List","menu.dashboard.dailyReport":"Daily Report","menu.dashboard.weeklyReport":"Weekly Report","menu.dashboard.reportCalendar":"Report Calendar"},LIt={"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!"},BIt={"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"},zIt={"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"},HIt={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"},UIt={"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"},WIt={"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"},VIt={"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"},KIt={"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..."},qIt={"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"},GIt={"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"},YIt={"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"},XIt={"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"},QIt={"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"},JIt={"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"},ZIt={"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"},ekt={...NIt,...AIt,...DIt,...jIt,...FIt,...LIt,...BIt,...zIt,...HIt,...UIt,...WIt,...VIt,...KIt,...qIt,...GIt,...YIt,...XIt,...QIt,...JIt,...ZIt},tkt={"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"},Wpe={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"},Vo={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ua={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"},jd={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Gt{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 o=Gt.getVersionPrecision(t),i=Gt.getVersionPrecision(n);let a=Math.max(o,i),s=0;const l=Gt.map([t,n],c=>{const u=a-Gt.getVersionPrecision(c),f=c+new Array(u+1).join(".0");return Gt.map(f.split("."),h=>new Array(20-h.length).join("0")+h).reverse()});for(r&&(s=a-Math.min(o,i)),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]{r[l]=a[l]})}return t}static getBrowserAlias(t){return tkt[t]}static getBrowserTypeByAlias(t){return Wpe[t]||""}}const Xr=/version\/(\d+(\.?_?\d+)+)/i,nkt=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Gt.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Gt.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Gt.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Gt.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Gt.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Gt.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Gt.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,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=Gt.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Gt.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Gt.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=Gt.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Gt.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Gt.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Gt.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=Gt.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Gt.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Gt.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=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(Xr,e)||Gt.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=Gt.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Gt.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Gt.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Gt.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=Gt.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Gt.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Gt.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Gt.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=Gt.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=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,o=e.search("\\(")!==-1?n:t;return{name:Gt.getFirstMatch(o,e),version:Gt.getSecondMatch(o,e)}}}],rkt=[{test:[/Roku\/DVP/],describe(e){const t=Gt.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ua.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Gt.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ua.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Gt.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Gt.getWindowsVersionName(t);return{name:ua.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:ua.iOS},n=Gt.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Gt.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Gt.getMacOSVersionName(t),r={name:ua.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Gt.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ua.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Gt.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Gt.getAndroidVersionName(t),r={name:ua.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Gt.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ua.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Gt.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Gt.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Gt.getFirstMatch(/\bbb(\d+)/i,e);return{name:ua.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Gt.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ua.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Gt.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ua.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:ua.Linux}}},{test:[/CrOS/],describe(){return{name:ua.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Gt.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ua.PlayStation4,version:t}}}],okt=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Gt.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Vo.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Vo.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Vo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Vo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Vo.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Vo.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Vo.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Gt.getFirstMatch(/(ipod|iphone)/i,e);return{type:Vo.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Vo.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Vo.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Vo.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Vo.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Vo.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Vo.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Vo.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Vo.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Vo.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Vo.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Vo.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Vo.tv}}}],ikt=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:jd.Blink};const n=Gt.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:jd.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:jd.Trident},n=Gt.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:jd.Presto},n=Gt.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:jd.Gecko},n=Gt.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:jd.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:jd.WebKit},n=Gt.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class BG{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=Gt.find(nkt,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=Gt.find(rkt,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=Gt.find(okt,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=Gt.find(ikt,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 Gt.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const o={};let i=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(o[s]=l,i+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=Gt.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=Gt.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(i>0){const s=Object.keys(o),l=Gt.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(o[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let o=t.toLowerCase();const i=Gt.getBrowserTypeByAlias(o);return n&&i&&(o=i.toLowerCase()),o===r}compareVersion(t){let n=[0],r=t,o=!1;const i=this.getBrowserVersion();if(typeof i=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(o=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(o=!0,r=t.substr(1)),n.indexOf(Gt.compareVersions(i,r,o))>-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 skt{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new zG(t,n)}static parse(t){return new zG(t).getResult()}static get BROWSER_MAP(){return Vpe}static get ENGINE_MAP(){return jd}static get OS_MAP(){return ua}static get PLATFORMS_MAP(){return Vo}}const{defaultAlgorithm:lkt,darkAlgorithm:ckt}=pa,ukt={"zh-cn":hIt,"zh-tw":NIt,en:tkt},dkt=()=>{const{isDarkMode:e,locale:t}=d.useContext(ia),n=new aYe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[r,o]=d.useState(!1),i=()=>{const s=skt.getParser(window.navigator.userAgent);console.log("browser:",s),Pi?console.log("OsName:",s.getOSName()):console.log("BrowserName:",s.getBrowserName()),s.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&o(!0)},a=async()=>{if(console.log("getConfig"),await fJ(),Pi)console.log("is electron");else{await uJ();const s=R_();console.log("Base URL:",s)}};return d.useEffect(()=>{Gee(),i(),a()},[]),N.jsx(Mn,{locale:t,theme:{algorithm:e?ckt:lkt},children:N.jsx(lYe,{client:n,children:N.jsx(Wpe,{children:N.jsx(d.Suspense,{fallback:N.jsx("div",{children:"loading..."}),children:N.jsxs(m$t,{messages:ukt[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[r&&N.jsx(KRt,{children:N.jsx("link",{rel:"stylesheet",type:"text/css",href:rye})}),N.jsxs(j$,{children:[N.jsx(wGe,{}),N.jsx(FXe,{router:vRt})]})]})})})})})},fkt=()=>N.jsx("div",{className:"App",children:N.jsx(FGe,{children:N.jsx(dkt,{})})});gI.createRoot(document.getElementById("root")).render(N.jsx(fkt,{}));postMessage({payload:"removeLoading"},"*");export{Dp as a,ko as r,Ll as u}; + */class akt{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new BG(t,n)}static parse(t){return new BG(t).getResult()}static get BROWSER_MAP(){return Wpe}static get ENGINE_MAP(){return jd}static get OS_MAP(){return ua}static get PLATFORMS_MAP(){return Vo}}const{defaultAlgorithm:skt,darkAlgorithm:lkt}=pa,ckt={"zh-cn":fIt,"zh-tw":kIt,en:ekt},ukt=()=>{const{isDarkMode:e,locale:t}=d.useContext(ia),n=new iYe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[r,o]=d.useState(!1),i=()=>{const s=akt.getParser(window.navigator.userAgent);console.log("browser:",s),Pi?console.log("OsName:",s.getOSName()):console.log("BrowserName:",s.getBrowserName()),s.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&o(!0)},a=async()=>{if(console.log("getConfig"),await dJ(),Pi)console.log("is electron");else{await cJ();const s=R_();console.log("Base URL:",s)}};return d.useEffect(()=>{qee(),i(),a()},[]),N.jsx(Mn,{locale:t,theme:{algorithm:e?lkt:skt},children:N.jsx(sYe,{client:n,children:N.jsx(Upe,{children:N.jsx(d.Suspense,{fallback:N.jsx("div",{children:"loading..."}),children:N.jsxs(zEt,{messages:ckt[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[r&&N.jsx(VRt,{children:N.jsx("link",{rel:"stylesheet",type:"text/css",href:nye})}),N.jsxs(j$,{children:[N.jsx(CGe,{}),N.jsx(jXe,{router:gRt})]})]})})})})})},dkt=()=>N.jsx("div",{className:"App",children:N.jsx(jGe,{children:N.jsx(ukt,{})})});mI.createRoot(document.getElementById("root")).render(N.jsx(dkt,{}));postMessage({payload:"removeLoading"},"*");export{Dp as a,ko as r,Ll as u}; diff --git a/deploy/server/notebase/assets/threadService-B3hRGcv1.js b/deploy/server/kanban/assets/threadService-D4_peaIE.js similarity index 94% rename from deploy/server/notebase/assets/threadService-B3hRGcv1.js rename to deploy/server/kanban/assets/threadService-D4_peaIE.js index 55f0cd0953..a4c0340ca8 100644 --- a/deploy/server/notebase/assets/threadService-B3hRGcv1.js +++ b/deploy/server/kanban/assets/threadService-D4_peaIE.js @@ -1 +1 @@ -import{r as T,u as n,a as h}from"./index-DFpvp1rn.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; +import{r as T,u as n,a as h}from"./index-R6Bmdf99.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; diff --git a/deploy/server/kanban/index.html b/deploy/server/kanban/index.html index 2e06cc0605..ebcea6d6f5 100644 --- a/deploy/server/kanban/index.html +++ b/deploy/server/kanban/index.html @@ -21,7 +21,7 @@ 微语 - + diff --git a/starter/src/main/resources/templates/notebase/assets/arc-Cb_wyWgX.js b/deploy/server/notebase/assets/arc-BVZmYbDK.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/arc-Cb_wyWgX.js rename to deploy/server/notebase/assets/arc-BVZmYbDK.js index 981e97a25e..4a1b63de08 100644 --- a/starter/src/main/resources/templates/notebase/assets/arc-Cb_wyWgX.js +++ b/deploy/server/notebase/assets/arc-BVZmYbDK.js @@ -1 +1 @@ -import{w as ln,c as z}from"./path-CbwjOpE9.js";import{a9 as an,aa as G,ab as O,ac as rn,ad as g,O as on,ae as K,af as _,ag as un,ah as t,ai as sn,aj as tn,ak as fn}from"./mermaid.core-BRpiNjs-.js";function cn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,D,j,v,A,B,a){var E=D-l,i=j-h,n=B-v,m=a-A,r=m*E-n*i;if(!(r*ru*u+F*F&&(S=w,k=d),{cx:S,cy:k,x01:-n,y01:-m,x11:S*(v/T-1),y11:k*(v/T-1)}}function vn(){var l=cn,h=gn,D=z(0),j=null,v=yn,A=mn,B=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,C=un(c-f),o=c>f;if(a||(a=n=E()),sg))a.moveTo(0,0);else if(C>on-g)a.moveTo(s*G(f),s*O(f)),a.arc(0,0,s,f,c,!o),r>g&&(a.moveTo(r*G(c),r*O(c)),a.arc(0,0,r,c,f,o));else{var p=f,y=c,R=f,T=c,P=C,I=C,S=B.apply(this,arguments)/2,k=S>g&&(j?+j.apply(this,arguments):K(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(k>g){var F=sn(k/r*O(S)),L=sn(k/s*O(S));(P-=F*2)>g?(F*=o?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(I-=L*2)>g?(L*=o?1:-1,p+=L,y-=L):(I=0,p=y=(f+c)/2)}var H=s*G(p),J=s*O(p),M=r*G(T),N=r*O(T);if(w>g){var Q=s*G(y),U=s*O(y),W=r*G(R),X=r*O(R),q;if(Cg?x>g?(e=V(W,X,H,J,s,x,o),u=V(Q,U,M,N,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xg)||!(P>g)?a.lineTo(M,N):d>g?(e=V(M,N,Q,U,r,-d,o),u=V(H,J,W,X,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),du*u+F*F&&(S=w,k=d),{cx:S,cy:k,x01:-n,y01:-m,x11:S*(v/T-1),y11:k*(v/T-1)}}function vn(){var l=cn,h=gn,D=z(0),j=null,v=yn,A=mn,B=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,C=un(c-f),o=c>f;if(a||(a=n=E()),sg))a.moveTo(0,0);else if(C>on-g)a.moveTo(s*G(f),s*O(f)),a.arc(0,0,s,f,c,!o),r>g&&(a.moveTo(r*G(c),r*O(c)),a.arc(0,0,r,c,f,o));else{var p=f,y=c,R=f,T=c,P=C,I=C,S=B.apply(this,arguments)/2,k=S>g&&(j?+j.apply(this,arguments):K(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(k>g){var F=sn(k/r*O(S)),L=sn(k/s*O(S));(P-=F*2)>g?(F*=o?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(I-=L*2)>g?(L*=o?1:-1,p+=L,y-=L):(I=0,p=y=(f+c)/2)}var H=s*G(p),J=s*O(p),M=r*G(T),N=r*O(T);if(w>g){var Q=s*G(y),U=s*O(y),W=r*G(R),X=r*O(R),q;if(Cg?x>g?(e=V(W,X,H,J,s,x,o),u=V(Q,U,M,N,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xg)||!(P>g)?a.lineTo(M,N):d>g?(e=V(M,N,Q,U,r,-d,o),u=V(H,J,W,X,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var me=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=_e()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`: +import{c as he,V as se,h as H,i as ye,l as S,C as Ee,z as we,j as De,o as ve}from"./mermaid.core-CLEyumap.js";import{c as Ne}from"./clone-BdtZehSS.js";import{i as ke,c as Ie,b as Oe,d as Te,a as ge,p as ze}from"./edges-e0da2a9e-Ddp_7vqN.js";import{G as Ce}from"./graph-W254zRQ0.js";import"./index-hnRSc5ud.js";import{o as Ae}from"./ordinal-Cboi1Yqb.js";import{c as Re}from"./channel-B03o6XSd.js";import{s as Be}from"./Tableau10-B-NsZVaP.js";import"./createText-2e5e7dd3-BHoypJ7S.js";import"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";var le,oe,ee=function(){var e=function(D,o,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=o);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],l=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],y=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],E=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(o,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],o),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:l,44:f,47:b}),e(x,[2,16],{14:22,15:y,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:y,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:E},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:E,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(o,s){if(s.recoverable)this.trace(o);else{var i=new Error(o);throw i.hash=s,i}},parse:function(o){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Le=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(o,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var me=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=_e()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`: `+w.showPosition()+` Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":$="Parse error on line "+(R+1)+": Unexpected "+(I==C?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError($,{text:w.match,token:this.terminals_[I]||I,line:w.yylineno,loc:J,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(z[0]){case 1:i.push(I),h.push(w.yytext),t.push(w.yylloc),i.push(z[1]),I=null,Y=w.yyleng,r=w.yytext,R=w.yylineno,J=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],W.$=h[h.length-B],W._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},me&&(W._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(W,[r,Y,R,K.yy,z[1],h,t].concat(Le)),typeof Q<"u")return Q;B&&(i=i.slice(0,-1*B*2),h=h.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),h.push(W.$),t.push(W._$),ae=m[i[i.length-2]][i[i.length-1]],i.push(ae);break;case 3:return!0}}return!0}},A=function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(o,s){return this.yy=s||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var s=o.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var s=o.length,i=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/c4Diagram-3d4e48cf-BSqYziN3.js b/deploy/server/notebase/assets/c4Diagram-3d4e48cf-DCoD1Ed5.js similarity index 99% rename from deploy/server/notebase/assets/c4Diagram-3d4e48cf-BSqYziN3.js rename to deploy/server/notebase/assets/c4Diagram-3d4e48cf-DCoD1Ed5.js index 940bf59892..acb50bb69e 100644 --- a/deploy/server/notebase/assets/c4Diagram-3d4e48cf-BSqYziN3.js +++ b/deploy/server/notebase/assets/c4Diagram-3d4e48cf-DCoD1Ed5.js @@ -1,4 +1,4 @@ -import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./mermaid.core-BRpiNjs-.js";import{d as Le,g as Ne}from"./svgDrawCommon-08f97a94-BxUoIeIU.js";import"./index-DFpvp1rn.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: +import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./mermaid.core-CLEyumap.js";import{d as Le,g as Ne}from"./svgDrawCommon-08f97a94-CmoRP8WR.js";import"./index-hnRSc5ud.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},Ae&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ke)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},Ee=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/channel-B03o6XSd.js b/deploy/server/notebase/assets/channel-B03o6XSd.js new file mode 100644 index 0000000000..7484d6fa64 --- /dev/null +++ b/deploy/server/notebase/assets/channel-B03o6XSd.js @@ -0,0 +1 @@ +import{al as o,am as n}from"./mermaid.core-CLEyumap.js";const l=(a,r)=>o.lang.round(n.parse(a)[r]);export{l as c}; diff --git a/deploy/server/notebase/assets/channel-BcV_jLhP.js b/deploy/server/notebase/assets/channel-BcV_jLhP.js deleted file mode 100644 index 7999929b01..0000000000 --- a/deploy/server/notebase/assets/channel-BcV_jLhP.js +++ /dev/null @@ -1 +0,0 @@ -import{al as o,am as n}from"./mermaid.core-BRpiNjs-.js";const l=(a,r)=>o.lang.round(n.parse(a)[r]);export{l as c}; diff --git a/deploy/server/notebase/assets/classDiagram-70f12bd4-B-Rd6-NF.js b/deploy/server/notebase/assets/classDiagram-70f12bd4-BdU7mERo.js similarity index 97% rename from deploy/server/notebase/assets/classDiagram-70f12bd4-B-Rd6-NF.js rename to deploy/server/notebase/assets/classDiagram-70f12bd4-BdU7mERo.js index 6f523470b1..488e9873f8 100644 --- a/deploy/server/notebase/assets/classDiagram-70f12bd4-B-Rd6-NF.js +++ b/deploy/server/notebase/assets/classDiagram-70f12bd4-BdU7mERo.js @@ -1,2 +1,2 @@ -import{p as A,d as S,s as G}from"./styles-9a916d00-CMxTlbUn.js";import{c as v,l as y,h as B,i as W,D as $,y as M,E as I}from"./mermaid.core-BRpiNjs-.js";import{G as O}from"./graph-Bqo8LFRO.js";import{l as P}from"./layout-e9igZ_Vb.js";import"./index-DFpvp1rn.js";import{l as X}from"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` +import{p as A,d as S,s as G}from"./styles-9a916d00-lZKOBCaM.js";import{c as v,l as y,h as B,i as W,D as $,y as M,E as I}from"./mermaid.core-CLEyumap.js";import{G as O}from"./graph-W254zRQ0.js";import{l as P}from"./layout-C3MVMtGC.js";import"./index-hnRSc5ud.js";import{l as X}from"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` `);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const L=20,E=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(i,a,t,o){const p=v().class;T={},y.info("Rendering diagram "+i);const g=v().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new O({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+E(e.id1)+E(e.id2)+JSON.stringify(e)),r.setEdge(E(e.id1),E(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,E(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+L*2,w=u.height+L*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-L} ${u.y-L} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},et={parser:A,db:S,renderer:U,styles:G,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,S.clear()}};export{et as diagram}; diff --git a/deploy/server/notebase/assets/classDiagram-v2-f2320105-BqCjzFcO.js b/deploy/server/notebase/assets/classDiagram-v2-f2320105-CSFL06mI.js similarity index 92% rename from deploy/server/notebase/assets/classDiagram-v2-f2320105-BqCjzFcO.js rename to deploy/server/notebase/assets/classDiagram-v2-f2320105-CSFL06mI.js index 1cf14d5bcb..9c082aaba2 100644 --- a/deploy/server/notebase/assets/classDiagram-v2-f2320105-BqCjzFcO.js +++ b/deploy/server/notebase/assets/classDiagram-v2-f2320105-CSFL06mI.js @@ -1,2 +1,2 @@ -import{p as M,d as _,s as R}from"./styles-9a916d00-CMxTlbUn.js";import{l as d,c,h as w,y as B,t as G,o as D,q as E,n as C,j as A}from"./mermaid.core-BRpiNjs-.js";import{G as q}from"./graph-Bqo8LFRO.js";import{r as z}from"./index-3862675e-BjItSQO6.js";import"./index-DFpvp1rn.js";import"./layout-e9igZ_Vb.js";import"./clone-C_jSdwol.js";import"./edges-e0da2a9e-Bx6yyD_A.js";import"./createText-2e5e7dd3-_UBRrGW4.js";import"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,a){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,a,l.id),d.info("setNode",p)})},$=function(s,t,y,a,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),h=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(h),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(n.id,b),e&&t.setParent(n.id,e),d.info("setNode",b)})},F=function(s,t,y,a){d.info(s),s.forEach(function(e,i){var o,r;const l=e,n="",p={labelStyle:"",style:""},f=l.text,h=0,m={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:h,ry:h,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${a}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=D(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(A.lineBreakRegex,` +import{p as M,d as _,s as R}from"./styles-9a916d00-lZKOBCaM.js";import{l as d,c,h as w,y as B,t as G,o as D,q as E,n as C,j as A}from"./mermaid.core-CLEyumap.js";import{G as q}from"./graph-W254zRQ0.js";import{r as z}from"./index-3862675e-CXAABjCf.js";import"./index-hnRSc5ud.js";import"./layout-C3MVMtGC.js";import"./clone-BdtZehSS.js";import"./edges-e0da2a9e-Ddp_7vqN.js";import"./createText-2e5e7dd3-BHoypJ7S.js";import"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,a){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,a,l.id),d.info("setNode",p)})},$=function(s,t,y,a,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),h=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(h),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(n.id,b),e&&t.setParent(n.id,e),d.info("setNode",b)})},F=function(s,t,y,a){d.info(s),s.forEach(function(e,i){var o,r;const l=e,n="",p={labelStyle:"",style:""},f=l.text,h=0,m={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:h,ry:h,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${a}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=D(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(A.lineBreakRegex,` `),e.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,t,y,a){d.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;d.info("config:",e);const o=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,l=new q({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),f=a.db.getRelations(),h=a.db.getNotes();d.info(f),P(n,l,t,a),$(p,l,t,a),H(f,l),F(h,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+t));const m=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=m.select(`[id="${t}"]`),x=m.select("#"+t+" g");if(await z(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),B.insertTitle(b,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,b,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const J={setConf:V,draw:W},se={parser:M,db:_,renderer:J,styles:R,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{se as diagram}; diff --git a/deploy/server/notebase/assets/clone-BdtZehSS.js b/deploy/server/notebase/assets/clone-BdtZehSS.js new file mode 100644 index 0000000000..2f631eb92f --- /dev/null +++ b/deploy/server/notebase/assets/clone-BdtZehSS.js @@ -0,0 +1 @@ +import{a as r}from"./graph-W254zRQ0.js";var a=4;function n(o){return r(o,a)}export{n as c}; diff --git a/deploy/server/notebase/assets/clone-C_jSdwol.js b/deploy/server/notebase/assets/clone-C_jSdwol.js deleted file mode 100644 index 4263dc3e0f..0000000000 --- a/deploy/server/notebase/assets/clone-C_jSdwol.js +++ /dev/null @@ -1 +0,0 @@ -import{a as r}from"./graph-Bqo8LFRO.js";var a=4;function n(o){return r(o,a)}export{n as c}; diff --git a/deploy/server/notebase/assets/createText-2e5e7dd3-_UBRrGW4.js b/deploy/server/notebase/assets/createText-2e5e7dd3-BHoypJ7S.js similarity index 96% rename from deploy/server/notebase/assets/createText-2e5e7dd3-_UBRrGW4.js rename to deploy/server/notebase/assets/createText-2e5e7dd3-BHoypJ7S.js index 679c7204e9..8201f6eef8 100644 --- a/deploy/server/notebase/assets/createText-2e5e7dd3-_UBRrGW4.js +++ b/deploy/server/notebase/assets/createText-2e5e7dd3-BHoypJ7S.js @@ -1,4 +1,4 @@ -import{l as b,as as T,at as W}from"./mermaid.core-BRpiNjs-.js";import{a7 as x}from"./index-DFpvp1rn.js";function E(n){const t=n.replace(/\n{2,}/g,` +import{l as b,as as T,at as W}from"./mermaid.core-CLEyumap.js";import{a7 as x}from"./index-hnRSc5ud.js";function E(n){const t=n.replace(/\n{2,}/g,` `);return W(t)}function w(n){const t=E(n),{children:e}=x(t),o=[[]];let i=0;function s(r,a="normal"){r.type==="text"?r.value.split(` `).forEach((l,p)=>{p!==0&&(i++,o.push([])),l.split(" ").forEach(f=>{f&&o[i].push({content:f,type:a})})}):(r.type==="strong"||r.type==="emphasis")&&r.children.forEach(c=>{s(c,r.type)})}return e.forEach(r=>{r.type==="paragraph"&&r.children.forEach(a=>{s(a)})}),o}function S(n){const{children:t}=x(n);function e(o){return o.type==="text"?o.value.replace(/\n/g,"
"):o.type==="strong"?`${o.children.map(e).join("")}`:o.type==="emphasis"?`${o.children.map(e).join("")}`:o.type==="paragraph"?`

${o.children.map(e).join("")}

`:`Unsupported markdown: ${o.type}`}return t.map(e).join("")}function j(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(t=>t.segment):[...n]}function v(n,t){const e=j(t.content);return g(n,[],e,t.type)}function g(n,t,e,o){if(e.length===0)return[{content:t.join(""),type:o},{content:"",type:o}];const[i,...s]=e,r=[...t,i];return n([{content:r.join(""),type:o}])?g(n,r,s,o):(t.length===0&&i&&(t.push(i),e.shift()),[{content:t.join(""),type:o},{content:e.join(""),type:o}])}function L(n,t){if(n.some(({content:e})=>e.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return h(n,t)}function h(n,t,e=[],o=[]){if(n.length===0)return o.length>0&&e.push(o),e.length>0?e:[];let i="";n[0].content===" "&&(i=" ",n.shift());const s=n.shift()??{content:" ",type:"normal"},r=[...o];if(i!==""&&r.push({content:i,type:"normal"}),r.push(s),t(r))return h(n,t,e,r);if(o.length>0)e.push(o),n.unshift(s);else if(s.content){const[a,c]=v(t,s);e.push([a]),c.content&&n.unshift(c)}return h(n,t,e)}function $(n,t){t&&n.attr("style",t)}function k(n,t,e,o,i=!1){const s=n.append("foreignObject"),r=s.append("xhtml:div"),a=t.label,c=t.isNode?"nodeLabel":"edgeLabel";r.html(` diff --git a/deploy/server/notebase/assets/edges-e0da2a9e-Bx6yyD_A.js b/deploy/server/notebase/assets/edges-e0da2a9e-Ddp_7vqN.js similarity index 99% rename from deploy/server/notebase/assets/edges-e0da2a9e-Bx6yyD_A.js rename to deploy/server/notebase/assets/edges-e0da2a9e-Ddp_7vqN.js index 4f725fbda6..e944164765 100644 --- a/deploy/server/notebase/assets/edges-e0da2a9e-Bx6yyD_A.js +++ b/deploy/server/notebase/assets/edges-e0da2a9e-Ddp_7vqN.js @@ -1,4 +1,4 @@ -import{p as H,c as b,d as q,as as Q,h as E,l as g,y as j,D as lt}from"./mermaid.core-BRpiNjs-.js";import{a as st}from"./createText-2e5e7dd3-_UBRrGW4.js";import{l as ct}from"./line-kJpnB43P.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},xt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:xt,point:dt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('"+i+""),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"
"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>``),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],d=E(h),k=p.getElementsByTagName("img");if(k){const x=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",x){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),d.attr("width",y.width),d.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),n=Math.min(n,d.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h1&&r.sort(function(d,k){var x=d.x-a.x,u=d.y-a.y,S=Math.sqrt(x*x+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`node default${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Gt=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],x=E(o);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("
"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],x=E(p);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}const d=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),E(o).attr("transform","translate( "+(h.width{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",x=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=x.getBBox();if(H(b().flowchart.htmlLabels)){const v=x.children[0],L=E(x);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,d){let v=(h-u.width)/2;E(x).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Gt,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Ft,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let G={},T={};const xr=()=>{G={},T={}},dr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),G[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,G[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=G[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89: +import{p as H,c as b,d as q,as as Q,h as E,l as g,y as j,D as lt}from"./mermaid.core-CLEyumap.js";import{a as st}from"./createText-2e5e7dd3-BHoypJ7S.js";import{l as ct}from"./line-CEWcvkjJ.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},xt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:xt,point:dt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('"+i+""),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"
"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>``),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],d=E(h),k=p.getElementsByTagName("img");if(k){const x=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",x){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),d.attr("width",y.width),d.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),n=Math.min(n,d.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h1&&r.sort(function(d,k){var x=d.x-a.x,u=d.y-a.y,S=Math.sqrt(x*x+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`node default${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Gt=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],x=E(o);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("
"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],x=E(p);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}const d=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),E(o).attr("transform","translate( "+(h.width{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",x=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=x.getBBox();if(H(b().flowchart.htmlLabels)){const v=x.children[0],L=E(x);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,d){let v=(h-u.width)/2;E(x).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Gt,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Ft,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let G={},T={};const xr=()=>{G={},T={}},dr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),G[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,G[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=G[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(a)} node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,l=e.y,r=Math.abs(i-a.x),s=e.width/2;let n=a.xMath.abs(i-t.x)*c){let y=a.y{g.debug("abc88 cutPathAtIntersect",e,t);let a=[],i=e[0],l=!1;return e.forEach(r=>{if(!sr(t,r)&&!l){const s=ir(t,i,r);let n=!1;a.forEach(c=>{n=n||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)||a.push(s),l=!0}else i=r,l||a.push(r)}),a},ur=function(e,t,a,i,l,r,s){let n=a.points;g.debug("abc88 InsertEdge: edge=",a,"e=",t);let c=!1;const o=r.node(t.v);var h=r.node(t.w);h!=null&&h.intersect&&(o!=null&&o.intersect)&&(n=n.slice(1,a.points.length-1),n.unshift(o.intersect(n[0])),n.push(h.intersect(n[n.length-1]))),a.toCluster&&(g.debug("to cluster abc88",i[a.toCluster]),n=et(a.points,i[a.toCluster].node),c=!0),a.fromCluster&&(g.debug("from cluster abc88",i[a.fromCluster]),n=et(n.reverse(),i[a.fromCluster].node).reverse(),c=!0);const y=n.filter(C=>!Number.isNaN(C.y));let f=lt;a.curve&&(l==="graph"||l==="flowchart")&&(f=a.curve);const{x:p,y:d}=rr(a),k=ct().x(p).y(d).curve(f);let x;switch(a.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-thick";break;default:x=""}switch(a.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break}const u=e.append("path").attr("d",k(y)).attr("id",a.id).attr("class"," "+x+(a.classes?" "+a.classes:"")).attr("style",a.style);let S="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),ar(u,a,S,s,l);let B={};return c&&(B.updatedPath=n),B.originalPath=a.points,B};export{or as a,dr as b,ur as c,gr as d,pr as e,xr as f,tr as g,R as h,hr as i,Et as j,rr as k,M as l,ar as m,fr as p,yr as s,m as u}; diff --git a/deploy/server/notebase/assets/erDiagram-9861fffd-seY5Sb-y.js b/deploy/server/notebase/assets/erDiagram-9861fffd-UFcxwGGb.js similarity index 99% rename from deploy/server/notebase/assets/erDiagram-9861fffd-seY5Sb-y.js rename to deploy/server/notebase/assets/erDiagram-9861fffd-UFcxwGGb.js index c8f8990f6a..891ff6f5e3 100644 --- a/deploy/server/notebase/assets/erDiagram-9861fffd-seY5Sb-y.js +++ b/deploy/server/notebase/assets/erDiagram-9861fffd-UFcxwGGb.js @@ -1,4 +1,4 @@ -import{c as Y,s as _t,g as Et,b as mt,a as gt,A as kt,B as xt,l as K,C as Rt,h as et,y as Ot,i as bt,D as Nt,E as Tt}from"./mermaid.core-BRpiNjs-.js";import{G as At}from"./graph-Bqo8LFRO.js";import{l as Mt}from"./layout-e9igZ_Vb.js";import{x as wt}from"./index-DFpvp1rn.js";import{l as It}from"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const St=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&St.test(t)}function vt(t){if(!Dt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Lt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Zt(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const u=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=m,m=rt(_,30)>>>0,_=h,h=I}e[0]=e[0]+h>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+m>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Ft=Pt("v5",80,Zt);var at=function(){var t=function(M,i,n,c){for(n=n||{},c=M.length;c--;n[M[c]]=i);return n},r=[6,8,10,20,22,24,26,27,28],e=[1,10],f=[1,11],l=[1,12],p=[1,13],u=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],Z=[41,42,43,44,45],F=[17,34],B=[1,54],T=[1,53],A=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(i,n,c,d,E,a,H){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:16,11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(r,[2,18]),t(y,[2,19]),t(y,[2,20]),t(r,[2,4]),{11:29,27:u,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:u,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{13:[1,39]},{17:[1,40]},t(r,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},t(Z,[2,39]),t(Z,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(r,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:B,38:T}),t([17,34,37,38],[2,28]),t(r,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(r,[2,8]),t(r,[2,41]),t(r,[2,42]),t(r,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:T}),t(F,[2,25]),t(A,[2,29]),t(F,[2,32]),t(A,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(F,[2,26]),{35:60,37:B},{17:[1,61]},t(r,[2,13]),t(A,[2,30]),t(r,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},parse:function(i){var n=this,c=[0],d=[],E=[null],a=[],H=this.table,s="",X=0,nt=0,ft=2,st=1,ut=a.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(U.yy[q]=this.yy[q]);b.setInput(i,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var J=b.yylloc;a.push(J);var yt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(){var P;return P=d.pop()||b.lex()||st,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=n.symbols_[P]||P),P}for(var w,z,S,$,G={},Q,C,ot,j;;){if(z=c[c.length-1],this.defaultActions[z]?S=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=pt()),S=H[z]&&H[z][w]),typeof S>"u"||!S.length||!S[0]){var tt="";j=[];for(Q in H[z])this.terminals_[Q]&&Q>ft&&j.push("'"+this.terminals_[Q]+"'");b.showPosition?tt="Parse error on line "+(X+1)+`: +import{c as Y,s as _t,g as Et,b as mt,a as gt,A as kt,B as xt,l as K,C as Rt,h as et,y as Ot,i as bt,D as Nt,E as Tt}from"./mermaid.core-CLEyumap.js";import{G as At}from"./graph-W254zRQ0.js";import{l as Mt}from"./layout-C3MVMtGC.js";import{x as wt}from"./index-hnRSc5ud.js";import{l as It}from"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const St=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&St.test(t)}function vt(t){if(!Dt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Lt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Zt(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const u=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=m,m=rt(_,30)>>>0,_=h,h=I}e[0]=e[0]+h>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+m>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Ft=Pt("v5",80,Zt);var at=function(){var t=function(M,i,n,c){for(n=n||{},c=M.length;c--;n[M[c]]=i);return n},r=[6,8,10,20,22,24,26,27,28],e=[1,10],f=[1,11],l=[1,12],p=[1,13],u=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],Z=[41,42,43,44,45],F=[17,34],B=[1,54],T=[1,53],A=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(i,n,c,d,E,a,H){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:16,11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(r,[2,18]),t(y,[2,19]),t(y,[2,20]),t(r,[2,4]),{11:29,27:u,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:u,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{13:[1,39]},{17:[1,40]},t(r,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},t(Z,[2,39]),t(Z,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(r,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:B,38:T}),t([17,34,37,38],[2,28]),t(r,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(r,[2,8]),t(r,[2,41]),t(r,[2,42]),t(r,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:T}),t(F,[2,25]),t(A,[2,29]),t(F,[2,32]),t(A,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(F,[2,26]),{35:60,37:B},{17:[1,61]},t(r,[2,13]),t(A,[2,30]),t(r,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},parse:function(i){var n=this,c=[0],d=[],E=[null],a=[],H=this.table,s="",X=0,nt=0,ft=2,st=1,ut=a.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(U.yy[q]=this.yy[q]);b.setInput(i,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var J=b.yylloc;a.push(J);var yt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(){var P;return P=d.pop()||b.lex()||st,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=n.symbols_[P]||P),P}for(var w,z,S,$,G={},Q,C,ot,j;;){if(z=c[c.length-1],this.defaultActions[z]?S=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=pt()),S=H[z]&&H[z][w]),typeof S>"u"||!S.length||!S[0]){var tt="";j=[];for(Q in H[z])this.terminals_[Q]&&Q>ft&&j.push("'"+this.terminals_[Q]+"'");b.showPosition?tt="Parse error on line "+(X+1)+`: `+b.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[w]||w)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(w==st?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(tt,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:J,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(S[0]){case 1:c.push(w),E.push(b.yytext),a.push(b.yylloc),c.push(S[1]),w=null,nt=b.yyleng,s=b.yytext,X=b.yylineno,J=b.yylloc;break;case 2:if(C=this.productions_[S[1]][1],G.$=E[E.length-C],G._$={first_line:a[a.length-(C||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(C||1)].first_column,last_column:a[a.length-1].last_column},yt&&(G._$.range=[a[a.length-(C||1)].range[0],a[a.length-1].range[1]]),$=this.performAction.apply(G,[s,nt,X,U.yy,S[1],E,a].concat(ut)),typeof $<"u")return $;C&&(c=c.slice(0,-1*C*2),E=E.slice(0,-1*C),a=a.slice(0,-1*C)),c.push(this.productions_[S[1]][0]),E.push(G.$),a.push(G._$),ot=H[c[c.length-2]][c[c.length-1]],c.push(ot);break;case 3:return!0}}return!0}},O=function(){var M={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/flowDb-956e92f1-CrjTimDC.js b/deploy/server/notebase/assets/flowDb-956e92f1-W3_vUrkO.js similarity index 99% rename from deploy/server/notebase/assets/flowDb-956e92f1-CrjTimDC.js rename to deploy/server/notebase/assets/flowDb-956e92f1-W3_vUrkO.js index a2227093b2..fdd62a4bbb 100644 --- a/deploy/server/notebase/assets/flowDb-956e92f1-CrjTimDC.js +++ b/deploy/server/notebase/assets/flowDb-956e92f1-W3_vUrkO.js @@ -1,4 +1,4 @@ -import{c as et,a4 as me,s as ye,g as ve,a as Ve,b as Le,A as Ie,B as Re,l as J1,y as dt,C as Ne,j as we,h as w1}from"./mermaid.core-BRpiNjs-.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`: +import{c as et,a4 as me,s as ye,g as ve,a as Ve,b as Le,A as Ie,B as Re,l as J1,y as dt,C as Ne,j as we,h as w1}from"./mermaid.core-CLEyumap.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`: `+_.showPosition()+` Expecting `+Q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ft="Parse error on line "+(Y+1)+": Unexpected "+(G==jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:lt,expected:Q1})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(j[0]){case 1:f.push(G),C.push(_.yytext),t.push(_.yylloc),f.push(j[1]),G=null,Yt=_.yyleng,s=_.yytext,Y=_.yylineno,lt=_.yylloc;break;case 2:if(n1=this.productions_[j[1]][1],v1.$=C[C.length-n1],v1._$={first_line:t[t.length-(n1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(n1||1)].first_column,last_column:t[t.length-1].last_column},xe&&(v1._$.range=[t[t.length-(n1||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v1,[s,Yt,Y,d1.yy,j[1],C,t].concat(_e)),typeof ht<"u")return ht;n1&&(f=f.slice(0,-1*n1*2),C=C.slice(0,-1*n1),t=t.slice(0,-1*n1)),f.push(this.productions_[j[1]][0]),C.push(v1.$),t.push(v1._$),zt=N1[f[f.length-2]][f[f.length-1]],f.push(zt);break;case 3:return!0}}return!0}},Ce=function(){var f1={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-BS834x_8.js b/deploy/server/notebase/assets/flowDiagram-66a62f08-BQR4i0rK.js similarity index 97% rename from starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-BS834x_8.js rename to deploy/server/notebase/assets/flowDiagram-66a62f08-BQR4i0rK.js index a6a853f771..b7f85997e8 100644 --- a/starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-BS834x_8.js +++ b/deploy/server/notebase/assets/flowDiagram-66a62f08-BQR4i0rK.js @@ -1,4 +1,4 @@ -import{p as Lt,f as V}from"./flowDb-956e92f1-CrjTimDC.js";import{h as S,f as tt,G as _t}from"./graph-Bqo8LFRO.js";import{h as x,n as U,o as Y,p as et,c as G,r as rt,j as at,l as R,q as z,t as Et}from"./mermaid.core-BRpiNjs-.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-e9igZ_Vb.js";import{a as N,b as nt,i as st,c as E,e as it,d as ot,f as It,g as Bt,s as Mt}from"./styles-c10674c1-DaH9xpKF.js";import{l as Dt}from"./line-kJpnB43P.js";import"./index-DFpvp1rn.js";import"./index-3862675e-BjItSQO6.js";import"./clone-C_jSdwol.js";import"./edges-e0da2a9e-Bx6yyD_A.js";import"./createText-2e5e7dd3-_UBRrGW4.js";import"./channel-BcV_jLhP.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(` +import{p as Lt,f as V}from"./flowDb-956e92f1-W3_vUrkO.js";import{h as S,f as tt,G as _t}from"./graph-W254zRQ0.js";import{h as x,n as U,o as Y,p as et,c as G,r as rt,j as at,l as R,q as z,t as Et}from"./mermaid.core-CLEyumap.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-C3MVMtGC.js";import{a as N,b as nt,i as st,c as E,e as it,d as ot,f as It,g as Bt,s as Mt}from"./styles-c10674c1-D4guNeYR.js";import{l as Dt}from"./line-CEWcvkjJ.js";import"./index-hnRSc5ud.js";import"./index-3862675e-CXAABjCf.js";import"./clone-BdtZehSS.js";import"./edges-e0da2a9e-Ddp_7vqN.js";import"./createText-2e5e7dd3-BHoypJ7S.js";import"./channel-B03o6XSd.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(` `),a=0;a0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l1&&s.sort(function(p,y){var f=p.x-t.x,g=p.y-t.y,k=Math.sqrt(f*f+g*g),I=y.x-t.x,_=y.y-t.y,$=Math.sqrt(I*I+_*_);return k<$?-1:k===$?0:1}),s[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function Z(r,e){var t=r.x,n=r.y,a=e.x-t,s=e.y-n,i=r.width/2,o=r.height/2,c,d;return Math.abs(s)*i>Math.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var K={rect:oe,ellipse:le,circle:ce,diamond:de};function ie(r){K=r}function oe(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function le(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return ct(t,n,a,i)},s}function ce(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ne(t,n,s)},a}function de(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function he(){var r=function(e,t){pe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=F(D(n,"edgeLabels"),t),o=Q(D(n,"nodes"),t,K);Ct(t),ae(o,t),re(i,t),q(s,t,H);var c=X(a,t);ee(c,t),ve(t)};return r.createNodes=function(e){return arguments.length?(te(e),r):Q},r.createClusters=function(e){return arguments.length?(Ft(e),r):X},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):F},r.createEdgePaths=function(e){return arguments.length?(Qt(e),r):q},r.shapes=function(e){return arguments.length?(ie(e),r):K},r.arrows=function(e){return arguments.length?($t(e),r):H},r}var ue={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},fe={arrowhead:"normal",curve:U};function pe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,ue),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,fe)})}function ve(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function dt(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function ht(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function wt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function mt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function xt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ge(r){r.shapes().question=dt,r.shapes().hexagon=ht,r.shapes().stadium=wt,r.shapes().subroutine=mt,r.shapes().cylinder=xt,r.shapes().rect_left_inv_arrow=ut,r.shapes().lean_right=ft,r.shapes().lean_left=pt,r.shapes().trapezoid=vt,r.shapes().inv_trapezoid=gt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:dt}),r({hexagon:ht}),r({stadium:wt}),r({subroutine:mt}),r({cylinder:xt}),r({rect_left_inv_arrow:ut}),r({lean_right:ft}),r({lean_left:pt}),r({trapezoid:vt}),r({inv_trapezoid:gt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const we={addToRender:ge,addToRenderV2:ye},bt={},me=function(r){const e=Object.keys(r);for(const t of e)bt[t]=r[t]},kt=async function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document,c=Object.keys(r);for(const d of c){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=Y(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(G().flowchart.htmlLabels)){const g={label:await rt(u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``),G())};p=nt(i,g).node(),p.parentNode.removeChild(p)}else{const g=o.createElementNS("http://www.w3.org/2000/svg","text");g.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(at.lineBreakRegex);for(const I of k){const _=o.createElementNS("http://www.w3.org/2000/svg","tspan");_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_.setAttribute("dy","1em"),_.setAttribute("x","1"),_.textContent=I,g.appendChild(_)}p=g}let y=0,f="";switch(l.type){case"round":y=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:y,ry:y,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})}},St=async function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=Y(r.defaultStyle);a=i.style,s=i.labelStyle}for(const i of r){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=Y(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=z(i.interpolate,U):r.defaultInterpolate!==void 0?l.curve=z(r.defaultInterpolate,U):l.curve=z(bt.curve,U),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(G().flowchart.htmlLabels)?(l.labelType="html",l.label=`${await rt(i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>``),G())}`):(l.labelType="text",l.label=i.text.replace(at.lineBreakRegex,` `),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)}},xe=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},be=async function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=G();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new _t({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let w=p.length-1;w>=0;w--)u=p[w],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const y=n.db.getVertices();R.warn("Get vertices",y);const f=n.db.getEdges();let g=0;for(g=p.length-1;g>=0;g--){u=p[g],Mt("cluster").append("text");for(let w=0;w{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,ke.setConf(r.flowchart),V.clear(),V.setGen("gen-1")}};export{Pe as diagram}; diff --git a/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-Bs652uf5.js b/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-Bs652uf5.js new file mode 100644 index 0000000000..7890be09ef --- /dev/null +++ b/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-Bs652uf5.js @@ -0,0 +1 @@ +import{p as e,f as o}from"./flowDb-956e92f1-W3_vUrkO.js";import{f as t,g as a}from"./styles-c10674c1-D4guNeYR.js";import{u as i}from"./mermaid.core-CLEyumap.js";import"./graph-W254zRQ0.js";import"./layout-C3MVMtGC.js";import"./index-hnRSc5ud.js";import"./index-3862675e-CXAABjCf.js";import"./clone-BdtZehSS.js";import"./edges-e0da2a9e-Ddp_7vqN.js";import"./createText-2e5e7dd3-BHoypJ7S.js";import"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./channel-B03o6XSd.js";const n={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{n as diagram}; diff --git a/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-lmbQs4by.js b/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-lmbQs4by.js deleted file mode 100644 index 4f84fa6acd..0000000000 --- a/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-lmbQs4by.js +++ /dev/null @@ -1 +0,0 @@ -import{p as e,f as o}from"./flowDb-956e92f1-CrjTimDC.js";import{f as t,g as a}from"./styles-c10674c1-DaH9xpKF.js";import{u as i}from"./mermaid.core-BRpiNjs-.js";import"./graph-Bqo8LFRO.js";import"./layout-e9igZ_Vb.js";import"./index-DFpvp1rn.js";import"./index-3862675e-BjItSQO6.js";import"./clone-C_jSdwol.js";import"./edges-e0da2a9e-Bx6yyD_A.js";import"./createText-2e5e7dd3-_UBRrGW4.js";import"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./channel-BcV_jLhP.js";const n={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{n as diagram}; diff --git a/deploy/server/notebase/assets/flowchart-elk-definition-4a651766-DPls5GBE.js b/deploy/server/notebase/assets/flowchart-elk-definition-4a651766-Da4DL3XI.js similarity index 99% rename from deploy/server/notebase/assets/flowchart-elk-definition-4a651766-DPls5GBE.js rename to deploy/server/notebase/assets/flowchart-elk-definition-4a651766-Da4DL3XI.js index 3c4dcce85e..4f0a8194bf 100644 --- a/deploy/server/notebase/assets/flowchart-elk-definition-4a651766-DPls5GBE.js +++ b/deploy/server/notebase/assets/flowchart-elk-definition-4a651766-Da4DL3XI.js @@ -1,4 +1,4 @@ -import{d as xNe,p as FNe}from"./flowDb-956e92f1-CrjTimDC.js";import{l as Ba,h as IO,V as xU,t as BNe,o as E0n,q as j0n,n as $U,j as RNe}from"./mermaid.core-BRpiNjs-.js";import{i as KNe,a as _Ne,l as HNe,b as qNe,k as UNe,m as GNe}from"./edges-e0da2a9e-Bx6yyD_A.js";import{S as Nse,g as zNe}from"./index-DFpvp1rn.js";import{l as XNe}from"./line-kJpnB43P.js";import"./createText-2e5e7dd3-_UBRrGW4.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Bse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Sr,Di){function y(Ht,Jt){if(!Sr[Ht]){if(!gt[Ht]){var ze=typeof NU=="function"&&NU;if(!Jt&&ze)return ze(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Ri=Sr[Ht]={exports:{}};gt[Ht][0].call(Ri.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Ri,Ri.exports,Xt,gt,Sr,Di)}return Sr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Bu=0;Bu0&&arguments[0]!==void 0?arguments[0]:{},Yi=ze.defaultLayoutOptions,Ri=Yi===void 0?{}:Yi,En=ze.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=ze.workerFactory,Ru=ze.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Ri,this.initialized=!1,typeof Ru>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Pr=Qc;typeof Ru<"u"&&typeof Qc>"u"&&(Pr=function(N1){return new Worker(N1)});var Cf=Pr(Ru);if(typeof Cf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Bu(Cf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(L1){return Jt.initialized=!0}).catch(console.err)}return Di(Ht,[{key:"layout",value:function(ze){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ri=Yi.layoutOptions,En=Ri===void 0?this.defaultLayoutOptions:Ri,hu=Yi.logging,Qc=hu===void 0?!1:hu,Ru=Yi.measureExecutionTime,Pr=Ru===void 0?!1:Ru;return ze?this.worker.postMessage({cmd:"layout",graph:ze,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Pr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),Ht}();Sr.default=Wt;var Bu=function(){function Ht(Jt){var ze=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){ze.receive(ze,Yi)},0)}}return Di(Ht,[{key:"postMessage",value:function(ze){var Yi=this.id||0;this.id=Yi+1,ze.id=Yi;var Ri=this;return new Promise(function(En,hu){Ri.resolvers[Yi]=function(Qc,Ru){Qc?(Ri.convertGwtStyleError(Qc),hu(Qc)):En(Ru)},Ri.worker.postMessage(ze)})}},{key:"receive",value:function(ze,Yi){var Ri=Yi.data,En=ze.resolvers[Ri.id];En&&(delete ze.resolvers[Ri.id],Ri.error?En(Ri.error):En(null,Ri.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ze){if(ze){var Yi=ze.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(ze.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(ze.cause)),delete ze.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Sr){(function(Di){(function(){var y;typeof window<"u"?y=window:typeof Di<"u"?y=Di:typeof self<"u"&&(y=self);var Wt;function Bu(){}function Ht(){}function Jt(){}function ze(){}function Yi(){}function Ri(){}function En(){}function hu(){}function Qc(){}function Ru(){}function Pr(){}function Cf(){}function L1(){}function N1(){}function og(){}function V3(){}function $1(){}function ul(){}function C0n(){}function M0n(){}function J2(){}function F(){}function T0n(){}function mE(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function FU(){}function D0n(){}function L0n(){}function N0n(){}function OO(){}function $0n(){}function x0n(){}function F0n(){}function DO(){}function B0n(){}function R0n(){}function BU(){}function K0n(){}function _0n(){}function yu(){}function ju(){}function Q2(){}function Y2(){}function H0n(){}function q0n(){}function U0n(){}function G0n(){}function RU(){}function Eu(){}function Z2(){}function np(){}function z0n(){}function X0n(){}function LO(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function mbn(){}function vbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function Tbn(){}function KU(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function NO(){}function $O(){}function vE(){}function Obn(){}function Dbn(){}function xO(){}function Lbn(){}function Nbn(){}function $bn(){}function kE(){}function xbn(){}function Fbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function _U(){}function Gbn(){}function zbn(){}function HU(){}function Xbn(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function FO(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function qU(){}function UU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function Lwn(){}function Nwn(){}function $wn(){}function xwn(){}function Fwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function Lgn(){}function Ngn(){}function $gn(){}function xgn(){}function Fgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function GU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function L2n(){}function N2n(){}function $2n(){}function x2n(){}function F2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Mpn(){}function zU(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function Lpn(){}function Npn(){}function $pn(){}function XU(){}function xpn(){}function Fpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function VU(){}function WU(){}function Hpn(){}function JU(){}function QU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function YU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function L3n(){}function N3n(){}function $3n(){}function x3n(){}function F3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function _se(){}function D4n(){}function L4n(){}function N4n(){}function $4n(){}function x4n(){}function F4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function BO(){}function RO(){}function cmn(){}function KO(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function ZU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Cmn(){}function Mmn(){}function Ra(){}function Tmn(){}function ep(){}function nG(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Dmn(){}function Lmn(){}function Nmn(){}function $mn(){}function xmn(){}function Fmn(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _O(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HO(){}function jE(){}function fvn(){}function eG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function CE(){}function mvn(){}function ME(){}function vvn(){}function tG(){}function kvn(){}function qO(){}function iG(){}function yvn(){}function jvn(){}function Evn(){}function Cvn(){}function qse(){}function Mvn(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Dvn(){}function Lvn(){}function Nvn(){}function W3(){}function UO(){}function $vn(){}function xvn(){}function Fvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function D6n(){}function L6n(){}function N6n(){}function $6n(){}function x6n(){}function F6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function A5n(){}function rG(){}function S5n(){}function P5n(){}function GO(){n6()}function I5n(){u7()}function O5n(){aA()}function D5n(){Q$()}function L5n(){M5()}function N5n(){ann()}function $5n(){qs()}function x5n(){jZ()}function F5n(){zk()}function B5n(){o7()}function R5n(){$7()}function K5n(){aCn()}function _5n(){Hp()}function H5n(){KLn()}function q5n(){yQ()}function U5n(){SOn()}function G5n(){jQ()}function z5n(){pNn()}function X5n(){AOn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){EDn()}function Y5n(){exn()}function Z5n(){ca()}function n8n(){ZE()}function e8n(){ltn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Pxn()}function c8n(){POn()}function u8n(){nKn()}function o8n(){IOn()}function s8n(){bUn()}function f8n(){qnn()}function h8n(){kl()}function l8n(){wBn()}function a8n(){lc()}function d8n(){ROn()}function b8n(){_p()}function w8n(){Men()}function g8n(){ua()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Qk()}function k8n(){EF()}function y8n(){Dx()}function cf(){wSn()}function j8n(){YM()}function E8n(){mA()}function cG(){qe()}function C8n(){NT()}function M8n(){YY()}function uG(){D$()}function oG(){KA()}function T8n(){Fen()}function sG(n){Jn(n)}function A8n(n){this.a=n}function TE(n){this.a=n}function S8n(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function D8n(n){this.a=n}function L8n(n){this.a=n}function fG(n){this.a=n}function hG(n){this.a=n}function N8n(n){this.a=n}function $8n(n){this.a=n}function zO(n){this.a=n}function x8n(n){this.a=n}function F8n(n){this.a=n}function XO(n){this.a=n}function VO(n){this.a=n}function B8n(n){this.a=n}function WO(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function _8n(n){this.a=n}function lG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function aG(n){this.a=n}function dG(n){this.a=n}function AE(n){this.a=n}function z9(n){this.a=n}function Ka(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function bG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function _a(n,e){n.k=e}function nfe(n,e){n.c=e}function wG(n,e){n.c=e}function gG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JO(n,e){n.d=e}function SE(n,e){n.i=e}function pG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function mG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QO(n,e){n.a=e}function YO(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Cfe(n,e){n.f=e}function Mfe(n,e){n.j=e}function Tfe(n,e){n.a=e}function Afe(n,e){n.a=e}function Sfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function vG(n){this.a=n}function kG(n){this.a=n}function yG(n){this.a=n}function Ha(n){this.a=n}function qa(n){this.a=n}function X9(n){this.a=n}function u9n(n){this.a=n}function jG(n){this.a=n}function V9(n){this.a=n}function PE(n){this.a=n}function ol(n){this.a=n}function Sb(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZO(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nD(n){this.a=n}function f9n(n){this.a=n}function eD(n){this.c=n}function C(n){this.c=n}function h9n(n){this.c=n}function Xv(n){this.d=n}function EG(n){this.a=n}function Te(n){this.a=n}function l9n(n){this.a=n}function CG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function AG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function S9n(n){this.a=n}function Vv(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function D9n(n){this.a=n}function IE(n){this.a=n}function L9n(n){this.a=n}function N9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function F9n(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function OG(n){this.a=n}function DG(n){this.a=n}function LG(n){this.a=n}function Wv(n){this.a=n}function OE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function tp(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function $G(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function D7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function F7n(n){this.c=n}function B7n(n){this.b=n}function R7n(n){this.a=n}function K7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Dkn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Fkn(n){this.a=n}function DE(n){this.a=n}function Bkn(n){this.f=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tD(n){this.a=n}function xG(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function W9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function FG(n){this.c=n}function LE(n){this.e=n}function NE(n){this.a=n}function $E(n){this.a=n}function iD(n){this.a=n}function Cyn(n){this.d=n}function Myn(n){this.a=n}function BG(n){this.a=n}function RG(n){this.a=n}function Wd(n){this.e=n}function Pfe(){this.a=0}function de(){Hu(this)}function Z(){pL(this)}function rD(){sIn(this)}function Tyn(){}function Jd(){this.c=Gdn}function Ayn(n,e){n.b+=e}function Ife(n,e){e.Wb(n)}function Ofe(n){return n.a}function Dfe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function $fe(n){return n.a}function M(n){return n.e}function xfe(){return null}function Ffe(){return null}function Bfe(){Cz(),pLe()}function Rfe(n){n.b.Of(n.e)}function Syn(n){n.b=new CD}function Jv(n,e){n.b=e-n.b}function Qv(n,e){n.a=e-n.a}function Bn(n,e){n.push(e)}function Pyn(n,e){n.sort(e)}function Iyn(n,e){e.jd(n.a)}function Kfe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function J9(n,e){n.e=e,e.b=n}function KG(n){uh(),this.a=n}function Oyn(n){uh(),this.a=n}function Dyn(n){uh(),this.a=n}function cD(n){m0(),this.a=n}function Lyn(n){O4(),VK.le(n)}function _G(){_G=F,new de}function Ua(){YTn.call(this)}function HG(){YTn.call(this)}function qG(){Ua.call(this)}function uD(){Ua.call(this)}function Nyn(){Ua.call(this)}function Q9(){Ua.call(this)}function Cu(){Ua.call(this)}function ip(){Ua.call(this)}function Pe(){Ua.call(this)}function Bo(){Ua.call(this)}function $yn(){Ua.call(this)}function nc(){Ua.call(this)}function xyn(){Ua.call(this)}function Fyn(){this.a=this}function xE(){this.Bb|=256}function Byn(){this.b=new GMn}function Pb(n,e){n.length=e}function FE(n,e){nn(n.a,e)}function Hfe(n,e){bnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uA(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function rp(n){jA(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function UG(n){this.a=B5e(n)}function ni(){this.a=new de}function Ryn(){this.a=new de}function GG(){this.a=new rCn}function BE(){this.a=new Z}function oD(){this.a=new Z}function zG(){this.a=new Z}function hs(){this.a=new cbn}function Ga(){this.a=new NLn}function XG(){this.a=new _U}function VG(){this.a=new TOn}function WG(){this.a=new BAn}function Kyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function JG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zOn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function QG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QIn.call(this)}function Yyn(){QIn.call(this)}function Zyn(){Z.call(this)}function YG(){qG.call(this)}function ZG(){BE.call(this)}function njn(){qC.call(this)}function ejn(){JG.call(this)}function Yv(){Tyn.call(this)}function sD(){Yv.call(this)}function cp(){Tyn.call(this)}function nz(){cp.call(this)}function tjn(){rz.call(this)}function ijn(){rz.call(this)}function rjn(){rz.call(this)}function cjn(){cz.call(this)}function Zv(){svn.call(this)}function ez(){svn.call(this)}function Mu(){Ct.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fD(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hD(){BX.call(this)}function tz(){de.call(this)}function lD(){BX.call(this)}function aD(){de.call(this)}function djn(){de.call(this)}function iz(){ME.call(this)}function bjn(){iz.call(this)}function wjn(){ME.call(this)}function gjn(){rG.call(this)}function rz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function cz(){this.a=new de}function up(){this.a=new Ct}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function uz(){this.a=new Z4n}function n6(){n6=F,KK=new Ht}function dD(){dD=F,_K=new Ejn}function bD(){bD=F,HK=new jjn}function jjn(){XO.call(this,"")}function Ejn(){XO.call(this,"")}function Cjn(n){S$n.call(this,n)}function Mjn(n){S$n.call(this,n)}function oz(n){fG.call(this,n)}function sz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){sz.call(this,n)}function Wfe(n){sz.call(this,n)}function Jfe(n){sz.call(this,n)}function Tjn(n){zN.call(this,n)}function Ajn(n){zN.call(this,n)}function Sjn(n){uSn.call(this,n)}function Pjn(n){Oz.call(this,n)}function e6(n){WE.call(this,n)}function fz(n){WE.call(this,n)}function Ijn(n){WE.call(this,n)}function hz(n){mje.call(this,n)}function lz(n){hz.call(this,n)}function ec(n){APn.call(this,n)}function Ojn(n){ec.call(this,n)}function op(){z9.call(this,{})}function Djn(){Djn=F,dQn=new M0n}function RE(){RE=F,GK=new STn}function Ljn(){Ljn=F,oun=new Bu}function az(){az=F,sun=new N1}function KE(){KE=F,P8=new $1}function wD(n){b4(),this.a=n}function gD(n){RQ(),this.a=n}function Qd(n){nN(),this.f=n}function pD(n){nN(),this.f=n}function Njn(n){bSn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mD(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Fjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function Y9(n){return Jn(n),n}function ihe(n){return new AE(n)}function rhe(n){return new qb(n)}function dz(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Ir(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function vD(n){APn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Rjn(n){ec.call(this,n)}function sp(n){ec.call(this,n)}function Kl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function nh(n){ec.call(this,n)}function kD(n){ec.call(this,n)}function Le(n){ec.call(this,n)}function Ku(n){Jn(n),this.a=n}function bz(n){return ld(n),n}function t6(n){TW(n,n.length)}function i6(n){return n.b==n.c}function Ib(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Kjn(n,e){n.be(e),e.ae(n)}function hp(n){uh(),this.a=Se(n)}function yD(){this.a=Oe(Se(ur))}function _jn(){throw M(new Pe)}function fhe(){throw M(new Pe)}function wz(){throw M(new Pe)}function Hjn(){throw M(new Pe)}function hhe(){throw M(new Pe)}function lhe(){throw M(new Pe)}function HE(){HE=F,O4()}function Hl(){X9.call(this,"")}function r6(){X9.call(this,"")}function x1(){X9.call(this,"")}function lp(){X9.call(this,"")}function gz(n){Ir.call(this,n)}function pz(n){Ir.call(this,n)}function eh(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jD(n){BC.call(this,n)}function ED(n){JX.call(this,n,0)}function CD(){sJ.call(this,12,3)}function T(n,e){return kOn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function mz(n,e){return n.a=e,n}function vz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function kz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function yz(n,e){return n.e=e,n}function Che(n,e){return n.f=e,n}function Mhe(n,e){n.b=!0,n.d=e}function The(n,e){return n.b-e.b}function Ahe(n,e){return n.g-e.g}function She(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Phe(n,e){return n?e-1:0}function Ihe(n,e){return n.s-e.s}function Ohe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function n0(n,e){return n.d=e,n}function e0(n,e){return n.e=e,n}function jz(n,e){return n.f=e,n}function c6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Sn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Dhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Lhe(n,e){ca(),ic(e,n)}function Nhe(n,e,t){Jbe(n.a,e,t)}function GE(n){$L.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){SIn.call(this,n)}function Ez(n){SIn.call(this,n)}function F1(n){S0.call(this,n)}function Jjn(n){CN.call(this,n)}function Qjn(n){CN.call(this,n)}function Yjn(){DX.call(this,"")}function Li(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Zb(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=F,TQn=Xke()}function B1(){B1=F,voe=rke()}function iEn(){iEn=F,Ti=gye()}function Cz(){Cz=F,Oa=z4()}function o4(){o4=F,Udn=cke()}function rEn(){rEn=F,ise=uke()}function Mz(){Mz=F,yc=tEe()}function uf(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rBn(n.b,e)}function MD(n){return n?n.d:null}function Fhe(n){return n?n.g:null}function Bhe(n){return n?n.i:null}function za(n){return ll(n),n.o}function fg(n,e){return n.a+=e,n}function TD(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function t0(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw M(new Pe)}function fEn(){throw M(new Pe)}function hEn(){throw M(new Pe)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function dEn(){throw M(new Pe)}function Ul(n){this.a=new iN(n)}function bEn(){this.a=new K5(Rln)}function wEn(){this.b=new K5(rln)}function gEn(){this.a=new K5(f1n)}function pEn(){this.b=new K5(Fq)}function mEn(){this.b=new K5(Fq)}function XE(n){this.a=0,this.b=n}function Az(n){zGn(),ILe(this,n)}function s4(n){return z1(n),n.a}function Z9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XTe(n,e)}function Pz(n,e,t){n.splice(e,t)}function hg(n,e){for(;n.Re(e););}function kEn(n){n.c?Dqn(n):Lqn(n)}function yEn(){throw M(new Pe)}function jEn(){throw M(new Pe)}function EEn(){throw M(new Pe)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function IEn(){throw M(new Pe)}function Rhe(){throw M(new nc)}function Khe(){throw M(new nc)}function n7(n){this.a=new OEn(n)}function OEn(n){Ume(this,n,jje())}function e7(n){return!n||oIn(n)}function t7(n){return Zf[n]!=-1}function _he(){cP!=0&&(cP=0),uP=-1}function DEn(){RK==null&&(RK=[])}function i7(n,e){Cg.call(this,n,e)}function f4(n,e){i7.call(this,n,e)}function LEn(n,e){this.a=n,this.b=e}function NEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function FEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function KEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function AD(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function i0(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){KX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Se(n),15)}function Oz(n){this.a=u(Se(n),15)}function JEn(n){this.a=u(Se(n),85)}function VE(n){this.b=u(Se(n),85)}function WE(n){this.b=u(Se(n),51)}function JE(){this.q=new y.Date}function SD(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function r7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nCn(n,e){return n.b.Hc(e)}function eCn(n,e){return n.c.uc(e)}function tCn(n,e){return rt(n.c,e)}function of(n,e){return n.a._b(e)}function iCn(n,e){return n>e&&e0}function ND(n,e){return Ec(n,e)<0}function vCn(n,e){return JL(n.a,e)}function ole(n,e){yOn.call(this,n,e)}function Bz(n){wN(),uSn.call(this,n)}function Rz(n,e){bPn(n,n.length,e)}function s7(n,e){HPn(n,n.length,e)}function d6(n,e){return n.a.get(e)}function kCn(n,e){return Zc(n.e,e)}function Kz(n){return Jn(n),!1}function _z(n){this.a=u(Se(n),229)}function cC(n){In.call(this,n,21)}function uC(n,e){je.call(this,n,e)}function $D(n,e){je.call(this,n,e)}function yCn(n,e){this.b=n,this.a=e}function oC(n,e){this.d=n,this.e=e}function jCn(n,e){this.a=n,this.b=e}function ECn(n,e){this.a=n,this.b=e}function CCn(n,e){this.a=n,this.b=e}function MCn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function TCn(n,e){this.b=n,this.a=e}function Hz(n,e){this.b=n,this.a=e}function qz(n,e){je.call(this,n,e)}function Uz(n,e){je.call(this,n,e)}function lg(n,e){je.call(this,n,e)}function xD(n,e){je.call(this,n,e)}function FD(n,e){je.call(this,n,e)}function BD(n,e){je.call(this,n,e)}function sC(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function fC(n,e){je.call(this,n,e)}function zz(n,e){this.b=n,this.a=e}function hC(n,e){je.call(this,n,e)}function ACn(n,e){this.b=n,this.a=e}function Xz(n,e){je.call(this,n,e)}function RD(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function b6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Au(n.c,e)}function dle(n,e){return Au(n.e,e)}function lC(n,e){je.call(this,n,e)}function aC(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function Vz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dC(n,e){je.call(this,n,e)}function SCn(n,e){this.a=n,this.b=e}function PCn(n,e){this.a=n,this.b=e}function ICn(n,e){this.a=n,this.b=e}function OCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.b=n,this.a=e}function $Cn(n,e){this.b=n,this.a=e}function Wz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xCn(n,e){this.e=n,this.d=e}function FCn(n,e){this.a=n,this.b=e}function BCn(n,e){this.a=n,this.b=e}function RCn(n,e){this.a=n,this.b=e}function KCn(n,e){this.b=n,this.a=e}function _Cn(n,e){this.b=e,this.c=n}function bC(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function KD(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function _D(n,e){je.call(this,n,e)}function HD(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function qD(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function v6(n,e){je.call(this,n,e)}function Db(n,e){je.call(this,n,e)}function UD(n,e){je.call(this,n,e)}function GD(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function a7(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function zD(n,e){je.call(this,n,e)}function wC(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function Lb(n,e){je.call(this,n,e)}function gC(n,e){je.call(this,n,e)}function nX(n,e){je.call(this,n,e)}function XD(n,e){je.call(this,n,e)}function VD(n,e){je.call(this,n,e)}function WD(n,e){je.call(this,n,e)}function JD(n,e){je.call(this,n,e)}function QD(n,e){je.call(this,n,e)}function YD(n,e){je.call(this,n,e)}function ZD(n,e){je.call(this,n,e)}function HCn(n,e){this.b=n,this.a=e}function eX(n,e){je.call(this,n,e)}function qCn(n,e){this.a=n,this.b=e}function UCn(n,e){this.a=n,this.b=e}function GCn(n,e){this.a=n,this.b=e}function tX(n,e){je.call(this,n,e)}function iX(n,e){je.call(this,n,e)}function zCn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function b7(n){return oe(n.a),n.b}function nL(n){return yCe(n,n.c),n}function XCn(){return tEn(),new TQn}function VCn(){VC(),this.a=new kV}function WCn(){OA(),this.a=new ni}function JCn(){NN(),this.b=new ni}function QCn(n,e){this.b=n,this.d=e}function YCn(n,e){this.a=n,this.b=e}function ZCn(n,e){this.a=n,this.b=e}function nMn(n,e){this.a=n,this.b=e}function eMn(n,e){this.b=n,this.a=e}function rX(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function pC(n,e){je.call(this,n,e)}function u0(n,e){je.call(this,n,e)}function eL(n,e){je.call(this,n,e)}function mC(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function tL(n,e){je.call(this,n,e)}function vC(n,e){je.call(this,n,e)}function iL(n,e){je.call(this,n,e)}function rL(n,e){je.call(this,n,e)}function cL(n,e){je.call(this,n,e)}function uL(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function oL(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function sL(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function aX(n,e){je.call(this,n,e)}function tMn(n,e){this.b=n,this.a=e}function iMn(n,e){this.b=n,this.a=e}function rMn(n,e){this.b=n,this.a=e}function cMn(n,e){this.b=n,this.a=e}function dX(n,e){this.a=n,this.b=e}function uMn(n,e){this.a=n,this.b=e}function oMn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function k6(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function fL(n,e){je.call(this,n,e)}function kC(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function hL(n,e){je.call(this,n,e)}function yC(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function k7(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function C6(n,e){je.call(this,n,e)}function y7(n,e){je.call(this,n,e)}function jC(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function lL(n,e){je.call(this,n,e)}function sMn(n,e){je.call(this,n,e)}function EC(n,e){je.call(this,n,e)}function fMn(n,e){this.a=n,this.b=e}function hMn(n,e){this.a=n,this.b=e}function lMn(n,e){this.a=n,this.b=e}function aMn(n,e){this.a=n,this.b=e}function dMn(n,e){this.a=n,this.b=e}function bMn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wMn(n,e){this.a=n,this.b=e}function gMn(n,e){this.a=n,this.b=e}function pMn(n,e){this.a=n,this.b=e}function mMn(n,e){this.a=n,this.b=e}function vMn(n,e){this.a=n,this.b=e}function kMn(n,e){this.a=n,this.b=e}function yMn(n,e){this.b=n,this.a=e}function jMn(n,e){this.b=n,this.a=e}function EMn(n,e){this.b=n,this.a=e}function CMn(n,e){this.b=n,this.a=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function CC(n,e){je.call(this,n,e)}function AMn(n,e){this.a=n,this.b=e}function SMn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function PMn(n,e){this.f=n,this.c=e}function bX(n,e){return Au(n.g,e)}function wle(n,e){return Au(e.b,n)}function IMn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Xe(hE,n,e)}function wX(n,e){n.i=null,kT(n,e)}function mle(n,e,t){yKn(e,oF(n,t))}function vle(n,e,t){yKn(e,oF(n,t))}function kle(n,e){VMe(n.a,u(e,58))}function OMn(n,e){U4e(n.a,u(e,12))}function MC(n,e){this.a=n,this.b=e}function DMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function $Mn(n,e){this.a=n,this.b=e}function xMn(n,e){this.d=n,this.b=e}function FMn(n,e){this.e=n,this.a=e}function j7(n,e){this.b=n,this.c=e}function gX(n,e){this.i=n,this.g=e}function pX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function TC(n){return Rk(n.c,n.b)}function Kr(n){return n?n.md():null}function x(n){return n??null}function Ai(n){return typeof n===nB}function Nb(n){return typeof n===i3}function $b(n){return typeof n===dtn}function o0(n,e){return Ec(n,e)==0}function AC(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function SC(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function BMn(n){return eo(n),n.d.gc()}function PC(n){return F6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function A6(n,e){return n.a+=""+e,n}function Dc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function mX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function RMn(n){Hu(this),f5(this,n)}function KMn(){oJ(),dW.call(this)}function _Mn(n,e){mW.call(this,n,e)}function HMn(n,e){mW.call(this,n,e)}function IC(n,e){mW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function wg(n,e){xt(n,e,n.a,n.a.a)}function vX(n){return Ln(n,0),null}function qMn(){this.b=0,this.a=!1}function UMn(){this.b=0,this.a=!1}function GMn(){this.b=new ap(Qb(12))}function zMn(){zMn=F,kYn=Ce(jx())}function XMn(){XMn=F,HZn=Ce(iqn())}function VMn(){VMn=F,lre=Ce(xxn())}function kX(){kX=F,_G(),fun=new de}function sf(n){return n.a=0,n.b=0,n}function WMn(n,e){return n.a=e.g+1,n}function aL(n,e){Kb.call(this,n,e)}function Mn(n,e){Dt.call(this,n,e)}function gg(n,e){gX.call(this,n,e)}function JMn(n,e){T7.call(this,n,e)}function dL(n,e){Y4.call(this,n,e)}function Ue(n,e){iC(),Xe(yO,n,e)}function QMn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Cle(n){return Se(n),new S6(n)}function YMn(n,e){return x(n)===x(e)}function ZMn(n,e){return n.a.a.a.cc(e)}function bL(n,e){return qo(n.a,0,e)}function yX(n){return Awe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Mle(n){return wi((Jn(n),n))}function nTn(n){return Yc(n.l,n.m,n.h)}function jX(n,e){return jc(n.a,e.a)}function Tle(n,e){return KPn(n.a,e.a)}function Ale(n,e){return bt(n.a,e.a)}function th(n,e){return n.indexOf(e)}function Sle(n,e){return n.j[e.p]==2}function s0(n,e){return n==e?0:n?1:-1}function OC(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===dtn}function Ple(n){return n==rb||n==Iw}function Ile(n){return n==rb||n==Pw}function eTn(n,e){return jc(n.g,e.g)}function EX(n){return qr(n.b.b,n,0)}function tTn(){rM.call(this,0,0,0,0)}function ih(){CG.call(this,new Ql)}function CX(n,e){F4(n,0,n.length,e)}function Ole(n,e){return nn(n.a,e),e}function Dle(n,e){return xs(),e.a+=n}function Lle(n,e){return xs(),e.a+=n}function Nle(n,e){return xs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return Mo(n.a,e),n}function iTn(n){this.a=XCn(),this.b=n}function rTn(n){this.a=XCn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GO.call(this)}function cTn(n){this.a=n,GO.call(this)}function mp(){Ho.call(this,0,0,0,0)}function DC(n){return Mo(new ii,n)}function uTn(n){return jM(u(n,123))}function fo(n){return n.vh()&&n.wh()}function pg(n){return n!=Jf&&n!=Sa}function hl(n){return n==Br||n==Xr}function mg(n){return n==us||n==Vf}function oTn(n){return n==S2||n==A2}function xle(n,e){return jc(n.g,e.g)}function sTn(n,e){return new Y4(e,n)}function Fle(n,e){return new Y4(e,n)}function TX(n){return rbe(n.b.Kc(),n.a)}function wL(n,e){um(n,e),G4(n,n.D)}function gL(n,e,t){aT(n,e),lT(n,t)}function vg(n,e,t){I0(n,e),P0(n,t)}function Ro(n,e,t){eu(n,e),tu(n,t)}function E7(n,e,t){_4(n,e),q4(n,t)}function C7(n,e,t){H4(n,e),U4(n,t)}function fTn(n,e,t){sV.call(this,n,e,t)}function AX(n){PMn.call(this,n,!0)}function hTn(){uC.call(this,"Tail",3)}function lTn(){uC.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function f0(n){rM.call(this,n,n,n,n)}function pL(n){n.c=K(ki,Fn,1,0,5,1)}function SX(n){return n.b&&xF(n),n.a}function PX(n){return n.b&&xF(n),n.c}function Ble(n,e){qf||(n.b=e)}function Rle(n,e){return n[n.length]=e}function Kle(n,e){return n[n.length]=e}function _le(n,e){return Yb(e,Af(n))}function Hle(n,e){return Yb(e,Af(n))}function qle(n,e){return pT(dN(n.d),e)}function Ule(n,e){return pT(dN(n.g),e)}function Gle(n,e){return pT(dN(n.j),e)}function Ni(n,e){Dt.call(this,n.b,e)}function zle(n,e){ve(Sc(n.a),DOn(e))}function Xle(n,e){ve(no(n.a),LOn(e))}function Vle(n,e,t){Ro(t,t.i+n,t.j+e)}function aTn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mL(n,e,t){return $t(n,e,t),t}function dTn(n){nu(n.Sf(),new D9n(n))}function kg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bTn(n){this.a=n,qV.call(this,n)}function Mf(){Mf=F,y.Math.log(2)}function Ko(){Ko=F,rl=(pCn(),Moe)}function wTn(){wTn=F,YH=new j5(aU)}function Ie(){Ie=F,new gTn,new Z}function gTn(){new de,new de,new de}function Qle(){throw M(new Kl(QJn))}function Yle(){throw M(new Kl(QJn))}function Zle(){throw M(new Kl(YJn))}function n1e(){throw M(new Kl(YJn))}function vL(n){this.a=n,VE.call(this,n)}function kL(n){this.a=n,VE.call(this,n)}function pTn(n,e){m0(),this.a=n,this.b=e}function e1e(n,e){Se(e),Tg(n).Jc(new Ru)}function Yt(n,e){QL(n.c,n.c.length,e)}function tc(n){return n.ae?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&OMn(e,n.a)}function i1e(n){Zi(n,null),Ii(n,null)}function r1e(n,e,t){return Xe(n.g,t,e)}function yg(n,e,t){return nZ(e,t,n.c)}function c1e(n,e,t){return Xe(n.k,t,e)}function u1e(n,e,t){return GOe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vTn(n){nJ.call(this),this.b=n}function DX(n){vV.call(this),this.a=n}function kTn(){uC.call(this,"Range",2)}function LC(n){this.b=n,this.a=new Z}function yTn(n){this.b=new $bn,this.a=n}function jTn(n){n.a=new OO,n.c=new OO}function ETn(n){n.a=new de,n.d=new de}function CTn(n){$N(n,null),xN(n,null)}function MTn(n,e){return XOe(n.a,e,null)}function s1e(n,e){return Xe(n.a,e.a,e)}function Ki(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cOe(n.c,n.b,e)}function O(n,e){return n!=null&&Tx(n,e)}function yL(n,e){return Yve(n.Kc(),e)!=-1}function NC(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Dn(),new eD(n))}function NX(n){this.a=n,de.call(this)}function TTn(){T7.call(this,null,null)}function ATn(){_C.call(this,null,null)}function STn(){je.call(this,"INSTANCE",0)}function PTn(){LZ(),this.a=new K5(Ion)}function ITn(n){return hh(n,0,n.length)}function l1e(n,e){return new VTn(n.Kc(),e)}function $X(n,e){return n.a.Bc(e)!=null}function OTn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function DTn(n,e){n.c&&(tW(e),rOn(e))}function b1e(n,e){n.q.setHours(e),G5(n,e)}function w1e(n,e){a0(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jL(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Tf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=IMe(e)}function EL(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(R(e.a))<=n}function y1e(n,e){return $(R(e.a))>=n}function j1e(n,e){return RJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function xb(n,e){return u(Lf(n.a,e),34)}function W1e(n,e){return ca(),Pn(n,e.e,e)}function J1e(n,e,t){return nC(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sAn(n){n.d=new cAn(n),n.e=new de}function fAn(){this.a=new C0,this.b=new C0}function hAn(n){this.c=n,this.a=1,this.b=1}function lAn(n){YF(),Syn(this),this.Ff(n)}function eae(n,e,t){YM(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jBn(n,t))}function a0(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function ZX(n,e){return n.a=e.a,n.b=e.b,n}function HC(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aAn(n){Ct.call(this),c5(this,n)}function dAn(){je.call(this,"GROW_TREE",0)}function bAn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Iu.call(this,n,e,t,2)}function rae(n,e,t){k5(Sc(n.a),e,DOn(t))}function wAn(n,e){a6(),T7.call(this,n,e)}function nV(n,e){Gl(),_C.call(this,n,e)}function gAn(n,e){Gl(),nV.call(this,n,e)}function pAn(n,e){Gl(),_C.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){k5(no(n.a),e,LOn(t))}function mAn(n){this.c=n,eu(n,0),tu(n,0)}function PL(n,e){Ko(),oM.call(this,n,e)}function vAn(n,e){Ko(),PL.call(this,n,e)}function eV(n,e){Ko(),PL.call(this,n,e)}function tV(n,e){Ko(),oM.call(this,n,e)}function kAn(n,e){Ko(),eV.call(this,n,e)}function yAn(n,e){Ko(),tV.call(this,n,e)}function jAn(n,e){Ko(),oM.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function iV(n,e,t){return qA(ak(n,e),t)}function IL(n,e){return na(n.e,u(e,54))}function fae(n){return n==null?null:NDe(n)}function hae(n){return n==null?null:Aje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return F6(n==null||Nb(n)),n}function R(n){return F6(n==null||$b(n)),n}function Oe(n){return F6(n==null||Ai(n)),n}function ll(n){n.o==null&&cMe(n)}function rV(n){if(!n)throw M(new Q9)}function dae(n){if(!n)throw M(new uD)}function oe(n){if(!n)throw M(new nc)}function Fb(n){if(!n)throw M(new Cu)}function EAn(n){if(!n)throw M(new Bo)}function m4(){m4=F,aE=new ujn,new ojn}function Mg(){Mg=F,O2=new lt("root")}function cV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e){i$.call(this,n),this.a=e}function sV(n,e,t){VM.call(this,n,e,t,null)}function CAn(n,e,t){VM.call(this,n,e,t,null)}function P7(n,e){this.c=n,h4.call(this,n,e)}function $6(n,e){this.a=n,P7.call(this,n,e)}function fV(n){this.q=new y.Date(id(n))}function MAn(n){return n>8?0:n+1}function TAn(n,e){qf||nn(n.a,e)}function wae(n,e){return o7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Lf(n.b,e),143)}function kae(n,e){return u(Lf(n.c,e),233)}function OL(n){return u(sn(n.a,n.b),294)}function AAn(n){return new V(n.c,n.d+n.a)}function SAn(n){return Jn(n),n?1231:1237}function PAn(n){return ko(),oTn(u(n,203))}function Bb(){Bb=F,ron=yn((go(),Gd))}function yae(n,e){e.a?MCe(n,e):EL(n.a,e.b)}function I7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function IAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function OAn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function hV(n,e,t){return t=So(n,e,6,t),t}function lV(n,e,t){return t=So(n,e,3,t),t}function aV(n,e,t){return t=So(n,e,9,t),t}function ch(n,e){return X7(e,xtn),n.f=e,n}function dV(n,e){return(e&et)%n.d.length}function DAn(n,e,t){return zen(n.c,n.b,e,t)}function LAn(n,e){this.c=n,S0.call(this,e)}function NAn(n,e){this.a=n,kyn.call(this,e)}function O7(n,e){this.a=n,kyn.call(this,e)}function Dt(n,e){lt.call(this,n),this.a=e}function bV(n,e){FG.call(this,n),this.a=e}function DL(n,e){FG.call(this,n),this.a=e}function jae(n){VY.call(this,0,0),this.f=n}function $An(n,e,t){return n.a+=hh(e,0,t),n}function D7(n){return!n.a&&(n.a=new C0n),n.a}function wV(n,e){var t;return t=n.e,n.e=e,t}function gV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function Rb(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function L7(n){n.b?L7(n.b):n.f.c.zc(n.e,n.d)}function xAn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Cae(n,e,t){Xa(),t9n(n,e.Ve(n.a,t))}function pV(n,e,t){return Pp(n,u(e,22),t)}function $s(n,e){return qE(new Array(e),n)}function Mae(n){return Ae(U1(n,32))^Ae(n)}function LL(n){return String.fromCharCode(n)}function Tae(n){return n==null?null:n.message}function Aae(n,e,t){return n.apply(e,t)}function Sae(n,e){var t;t=n[DB],t.call(n,e)}function Pae(n,e){var t;t=n[DB],t.call(n,e)}function Iae(n,e){return o7(),!Q4(e.d.i,n)}function mV(n,e,t,i){rM.call(this,n,e,t,i)}function FAn(){qC.call(this),this.a=new Li}function vV(){this.n=new Li,this.o=new Li}function BAn(){this.b=new Li,this.c=new Z}function RAn(){this.a=new Z,this.b=new Z}function KAn(){this.a=new _U,this.b=new Byn}function kV(){this.b=new Ql,this.a=new Ql}function _An(){this.b=new ni,this.a=new ni}function HAn(){this.b=new de,this.a=new de}function qAn(){this.b=new wEn,this.a=new H3n}function UAn(){this.a=new n8n,this.b=new Lpn}function GAn(){this.a=new Z,this.d=new Z}function qC(){this.n=new cp,this.i=new mp}function zAn(n){this.a=(Co(n,mw),new Gc(n))}function XAn(n){this.a=(Co(n,mw),new Gc(n))}function Oae(n){return n<100?null:new F1(n)}function Dae(n,e){return n.n.a=(Jn(e),e+10)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return e==n||km(TA(e),n)}function VAn(n,e){return Xe(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return Pb(n.j.c,0),n.a=-1,n}function yV(n,e,t){return t=So(n,e,11,t),t}function Fae(n,e,t){t!=null&&mT(e,Fx(n,t))}function Bae(n,e,t){t!=null&&vT(e,Fx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function jV(n,e,t,i){q.call(this,n,e,t,i)}function WAn(n,e,t,i){jV.call(this,n,e,t,i)}function JAn(n,e,t,i){bM.call(this,n,e,t,i)}function NL(n,e,t,i){bM.call(this,n,e,t,i)}function EV(n,e,t,i){bM.call(this,n,e,t,i)}function QAn(n,e,t,i){NL.call(this,n,e,t,i)}function CV(n,e,t,i){NL.call(this,n,e,t,i)}function Nn(n,e,t,i){EV.call(this,n,e,t,i)}function YAn(n,e,t,i){CV.call(this,n,e,t,i)}function ZAn(n,e,t,i){jW.call(this,n,e,t,i)}function Kb(n,e){Ir.call(this,k8+n+Td+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nSn(n,e){return Jn(n),x(n)===x(e)}function An(n,e){return Jn(n),x(n)===x(e)}function Rae(n,e){return n.b.Bd(new ECn(n,e))}function Kae(n,e){return n.b.Bd(new CCn(n,e))}function eSn(n,e){return n.b.Bd(new MCn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function AV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Cj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tSn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oN.call(this,n,e)}function iSn(n,e,t){this.a=n,JX.call(this,e,t)}function rSn(n){this.c=n,IC.call(this,Ey,0)}function cSn(n,e,t){this.c=e,this.b=t,this.a=n}function N7(n){k4(),this.d=n,this.a=new Eg}function uSn(n){uh(),this.a=(Dn(),new r4(n))}function Wae(n,e){hl(n.f)?QCe(n,e):Sye(n,e)}function oSn(n,e){sbe.call(this,n,n.length,e)}function Jae(n,e){qf||e&&(n.d=e)}function sSn(n,e){return O(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UC(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return PKn(n,u(e,343),t)}function fSn(n,e,t){return _ye(n,u(e,343),t)}function x6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $b(n)?(Jn(n),n):n.ue()}function GC(n){return!isNaN(n)&&!isFinite(n)}function $L(n){jTn(this),vo(this),Bi(this,n)}function _u(n){pL(this),zV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hSn(n,e,t){this.a=n,this.b=e,this.c=t}function lSn(n,e,t){this.d=n,this.b=t,this.a=e}function aSn(n){this.a=n,fl(),vc(Date.now())}function dSn(n){bo(n.a),GJ(n.c,n.b),n.b=null}function xL(){xL=F,Oun=new $0n,AQn=new x0n}function bSn(){bSn=F,Ioe=K(ki,Fn,1,0,5,1)}function wSn(){wSn=F,Voe=K(ki,Fn,1,0,5,1)}function OV(){OV=F,Woe=K(ki,Fn,1,0,5,1)}function uh(){uh=F,new KG((Dn(),Dn(),sr))}function nde(n){return B4(),Ee((yNn(),IQn),n)}function ede(n){return Gu(),Ee((lNn(),xQn),n)}function tde(n){return YT(),Ee((JDn(),HQn),n)}function ide(n){return cT(),Ee((QDn(),qQn),n)}function rde(n){return NA(),Ee((Jxn(),UQn),n)}function cde(n){return bf(),Ee((fNn(),XQn),n)}function ude(n){return Uu(),Ee((sNn(),WQn),n)}function ode(n){return bu(),Ee((hNn(),QQn),n)}function sde(n){return VA(),Ee((zMn(),kYn),n)}function fde(n){return N0(),Ee((ENn(),jYn),n)}function hde(n){return Vp(),Ee((MNn(),CYn),n)}function lde(n){return A5(),Ee((CNn(),AYn),n)}function ade(n){return YE(),Ee((jDn(),SYn),n)}function dde(n){return uT(),Ee((YDn(),GYn),n)}function bde(n){return i5(),Ee((aNn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((ANn(),TZn),n)}function pde(n){return dd(),Ee((TNn(),DZn),n)}function DV(n,e){if(!n)throw M(new Gn(e))}function v4(n){if(!n)throw M(new Or(btn))}function FL(n,e){if(n!=e)throw M(new Bo)}function gSn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pSn(n,e,t){this.a=n,this.b=e,this.c=t}function zC(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function $V(n,e,t){this.a=n,this.b=e,this.c=t}function XC(n,e,t){this.e=e,this.b=n,this.d=t}function mSn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Xa(),n.a.Yd(e,t),e}function BL(n){var e;return e=new ubn,e.e=n,e}function xV(n){var e;return e=new qyn,e.b=n,e}function $7(){$7=F,CP=new sgn,MP=new fgn}function VC(){VC=F,XZn=new xgn,zZn=new Fgn}function xs(){xs=F,YZn=new G2n,ZZn=new z2n}function vde(n){return D0(),Ee((qLn(),fne),n)}function kde(n){return tr(),Ee((XMn(),HZn),n)}function yde(n){return OT(),Ee((PNn(),GZn),n)}function jde(n){return $f(),Ee((SNn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Cde(n){return DA(),Ee(($xn(),hne),n)}function Mde(n){return Yp(),Ee((D$n(),lne),n)}function Tde(n){return QM(),Ee((cLn(),ane),n)}function Ade(n){return u5(),Ee((_Ln(),dne),n)}function Sde(n){return bT(),Ee((HLn(),bne),n)}function Pde(n){return o1(),Ee((s$n(),wne),n)}function Ide(n){return pk(),Ee((eLn(),gne),n)}function Ode(n){return jm(),Ee(($$n(),jne),n)}function Dde(n){return pr(),Ee((aFn(),Ene),n)}function Lde(n){return Z4(),Ee((GLn(),Cne),n)}function Nde(n){return vl(),Ee((zLn(),Tne),n)}function $de(n){return KM(),Ee((nLn(),Ane),n)}function xde(n){return Jk(),Ee((N$n(),yne),n)}function Fde(n){return hd(),Ee((ULn(),mne),n)}function Bde(n){return vA(),Ee((L$n(),vne),n)}function Rde(n){return hk(),Ee((tLn(),kne),n)}function Kde(n){return Yo(),Ee((h$n(),Sne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return g5(),Ee((XLn(),Zte),n)}function qde(n){return cw(),Ee((INn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return gs(),Ee((dFn(),tie),n)}function zde(n){return lh(),Ee((ONn(),iie),n)}function Xde(n){return wk(),Ee((iLn(),rie),n)}function Vde(n){return gr(),Ee((JLn(),uie),n)}function Wde(n){return ST(),Ee((VLn(),oie),n)}function Jde(n){return d5(),Ee((WLn(),sie),n)}function Qde(n){return om(),Ee((QLn(),fie),n)}function Yde(n){return dT(),Ee((YLn(),hie),n)}function Zde(n){return DT(),Ee((ZLn(),lie),n)}function n0e(n){return O0(),Ee((oNn(),Aie),n)}function e0e(n){return n5(),Ee((rLn(),Die),n)}function t0e(n){return sh(),Ee((sLn(),Rie),n)}function i0e(n){return Sf(),Ee((fLn(),_ie),n)}function r0e(n){return lf(),Ee((hLn(),tre),n)}function c0e(n){return M0(),Ee((lLn(),fre),n)}function u0e(n){return Qp(),Ee((BNn(),hre),n)}function o0e(n){return q5(),Ee((VMn(),lre),n)}function s0e(n){return b5(),Ee((nNn(),are),n)}function f0e(n){return w5(),Ee((FNn(),$re),n)}function h0e(n){return FM(),Ee((uLn(),xre),n)}function l0e(n){return yT(),Ee((oLn(),_re),n)}function a0e(n){return wA(),Ee((l$n(),qre),n)}function d0e(n){return Ok(),Ee((eNn(),Gre),n)}function b0e(n){return ZM(),Ee((aLn(),Ure),n)}function w0e(n){return sA(),Ee((xNn(),lce),n)}function g0e(n){return AT(),Ee((tNn(),ace),n)}function p0e(n){return XT(),Ee((iNn(),dce),n)}function m0e(n){return rA(),Ee((rNn(),wce),n)}function v0e(n){return _T(),Ee((cNn(),mce),n)}function k0e(n){return GM(),Ee((dLn(),Rce),n)}function y0e(n){return V4(),Ee((ZDn(),_Zn),n)}function j0e(n){return Vn(),Ee((x$n(),xZn),n)}function E0e(n){return nT(),Ee((uNn(),Kce),n)}function C0e(n){return N$(),Ee((bLn(),_ce),n)}function M0e(n){return R5(),Ee((a$n(),qce),n)}function T0e(n){return eC(),Ee((IDn(),Gce),n)}function A0e(n){return Fk(),Ee((bNn(),Uce),n)}function S0e(n){return tC(),Ee((ODn(),Xce),n)}function P0e(n){return ck(),Ee((wLn(),Vce),n)}function I0e(n){return Yk(),Ee((d$n(),Wce),n)}function O0e(n){return f6(),Ee((DDn(),lue),n)}function D0e(n){return Ak(),Ee((gLn(),aue),n)}function L0e(n){return gf(),Ee((w$n(),mue),n)}function N0e(n){return l1(),Ee((Lxn(),kue),n)}function $0e(n){return Rh(),Ee((F$n(),yue),n)}function x0e(n){return wd(),Ee((B$n(),Aue),n)}function F0e(n){return ci(),Ee((b$n(),zue),n)}function B0e(n){return Nf(),Ee((wNn(),Xue),n)}function R0e(n){return El(),Ee((RNn(),Vue),n)}function K0e(n){return pA(),Ee((R$n(),Wue),n)}function _0e(n){return jl(),Ee((dNn(),Que),n)}function H0e(n){return To(),Ee((KNn(),Zue),n)}function q0e(n){return lw(),Ee((Wxn(),noe),n)}function U0e(n){return Fg(),Ee((g$n(),eoe),n)}function G0e(n){return Oi(),Ee((K$n(),toe),n)}function z0e(n){return zu(),Ee((_$n(),ioe),n)}function X0e(n){return tn(),Ee((p$n(),roe),n)}function V0e(n){return go(),Ee((_Nn(),foe),n)}function W0e(n){return io(),Ee((Vxn(),hoe),n)}function J0e(n){return Gp(),Ee((gNn(),loe),n)}function Q0e(n,e){return Jn(n),n+(Jn(e),e)}function Y0e(n){return RL(),Ee((pLn(),aoe),n)}function Z0e(n){return qT(),Ee((HNn(),doe),n)}function nbe(n){return LT(),Ee((qNn(),goe),n)}function k4(){k4=F,tln=(tn(),Wn),II=Zn}function RL(){RL=F,vdn=new VSn,kdn=new LPn}function ebe(n){return!n.e&&(n.e=new Z),n.e}function KL(n,e){this.c=n,this.a=e,this.b=e-n}function vSn(n,e,t){this.a=n,this.b=e,this.c=t}function _L(n,e,t){this.a=n,this.b=e,this.c=t}function FV(n,e,t){this.a=n,this.b=e,this.c=t}function BV(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function ySn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jSn(n,e,t){Ko(),tJ.call(this,n,e,t)}function HL(n,e,t){Ko(),RW.call(this,n,e,t)}function RV(n,e,t){Ko(),RW.call(this,n,e,t)}function KV(n,e,t){Ko(),RW.call(this,n,e,t)}function ESn(n,e,t){Ko(),HL.call(this,n,e,t)}function _V(n,e,t){Ko(),HL.call(this,n,e,t)}function CSn(n,e,t){Ko(),_V.call(this,n,e,t)}function MSn(n,e,t){Ko(),RV.call(this,n,e,t)}function TSn(n,e,t){Ko(),KV.call(this,n,e,t)}function qL(n){rM.call(this,n.d,n.c,n.a,n.b)}function HV(n){rM.call(this,n.d,n.c,n.a,n.b)}function qV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function tbe(n){return Cm(),Ee((Nxn(),Poe),n)}function x7(n,e){return Se(n),Se(e),new NEn(n,e)}function Cp(n,e){return Se(n),Se(e),new RSn(n,e)}function ibe(n,e){return Se(n),Se(e),new KSn(n,e)}function rbe(n,e){return Se(n),Se(e),new qEn(n,e)}function UL(n){return oe(n.b!=0),Xo(n,n.a.a)}function cbe(n){return oe(n.b!=0),Xo(n,n.c.b)}function ube(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function obe(n){var e;return e=new ni,b$(e,n),e}function ASn(n){var e;return e=new GG,A$(e,n),e}function F7(n){var e;return e=new Ct,A$(e,n),e}function u(n,e){return F6(n==null||Tx(n,e)),n}function sbe(n,e,t){TPn.call(this,e,t),this.a=n}function SSn(n,e){this.c=n,this.b=e,this.a=!1}function PSn(){this.a=";,;",this.b="",this.c=""}function ISn(n,e,t){this.b=n,_Mn.call(this,e,t)}function UV(n,e,t){this.c=n,oC.call(this,e,t)}function GV(n,e,t){d4.call(this,n,e),this.b=t}function zV(n,e,t){Bnn(t,0,n,e,t.length,!1)}function Lh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function XV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function fbe(n,e){e&&(n.b=e,n.a=(z1(e),e.a))}function B7(n,e){if(!n)throw M(new Gn(e))}function Mp(n,e){if(!n)throw M(new Or(e))}function VV(n,e){if(!n)throw M(new Bjn(e))}function hbe(n,e){return ZE(),jc(n.d.p,e.d.p)}function lbe(n,e){return kl(),bt(n.e.b,e.e.b)}function abe(n,e){return kl(),bt(n.e.a,e.e.a)}function dbe(n,e){return jc(GSn(n.d),GSn(e.d))}function WC(n,e){return e&&vM(n,e.d)?e:null}function bbe(n,e){return e==(tn(),Wn)?n.c:n.d}function WV(n){return Q1(dwe(Vr(n)?ds(n):n))}function wbe(n){return new V(n.c+n.b,n.d+n.a)}function OSn(n){return n!=null&&!lx(n,N9,$9)}function gbe(n,e){return(fBn(n)<<4|fBn(e))&ui}function DSn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function JV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function QV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function pbe(n,e){var t;return t=n.c,PQ(n,e),t}function YV(n,e){return e<0?n.g=-1:n.g=e,n}function JC(n,e){return Mme(n),n.a*=e,n.b*=e,n}function LSn(n,e,t){A$n.call(this,e,t),this.d=n}function R7(n,e,t){pX.call(this,n,e),this.c=t}function QC(n,e,t){pX.call(this,n,e),this.c=t}function ZV(n){OV(),ME.call(this),this.ci(n)}function NSn(){$4(),Bwe.call(this,(R1(),Ss))}function $Sn(n){return nt(),new Nh(0,n)}function xSn(){xSn=F,AU=(Dn(),new nD(IK))}function YC(){YC=F,new hZ((bD(),HK),(dD(),_K))}function FSn(){FSn=F,pun=K(Gi,J,17,256,0,1)}function BSn(){this.b=$(R(rn((qs(),y_))))}function GL(n){this.b=n,this.a=Wa(this.b.a).Od()}function RSn(n,e){this.b=n,this.a=e,GO.call(this)}function KSn(n,e){this.a=n,this.b=e,GO.call(this)}function _Sn(n,e,t){this.a=n,gg.call(this,e,t)}function HSn(n,e,t){this.a=n,gg.call(this,e,t)}function j4(n,e,t){var i;i=new qb(t),df(n,e,i)}function nW(n,e,t){var i;return i=n[e],n[e]=t,i}function ZC(n){var e;return e=n.slice(),o$(e,n)}function nM(n){var e;return e=n.n,n.a.b+e.d+e.a}function qSn(n){var e;return e=n.n,n.e.b+e.d+e.a}function eW(n){var e;return e=n.n,n.e.a+e.b+e.c}function tW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function xe(n,e){return xt(n,e,n.c.b,n.c),!0}function mbe(n){return n.a?n.a:vN(n)}function vbe(n){return Lp(),Kh(n)==At(ia(n))}function kbe(n){return Lp(),ia(n)==At(Kh(n))}function d0(n,e){return O5(n,new d4(e.a,e.b))}function ybe(n,e){return yM(),Nx(n,e),new lIn(n,e)}function jbe(n,e){return n.c=e)throw M(new YG)}function _b(n,e){return $k(n,(Jn(e),new a9n(e)))}function Ap(n,e){return $k(n,(Jn(e),new d9n(e)))}function SPn(n,e,t){return VLe(n,u(e,12),u(t,12))}function PPn(n){return Ou(),u(n,12).g.c.length!=0}function IPn(n){return Ou(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jDe(n)}function fwe(n,e,t){e.qf(t,$(R(ee(n.b,t)))*n.a)}function OPn(n,e,t){return Xg(),W4(n,e)&&W4(n,t)}function _6(n){return zu(),!n.Hc(Fl)&&!n.Hc(Pa)}function hwe(n){return n.e?qJ(n.e):null}function H6(n){return Vr(n)?""+n:$qn(n)}function yW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,oW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Ci(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function q6(n,e,t,i,r){ok.call(this,n,e,t,i,r,-1)}function bM(n,e,t,i){R7.call(this,n,e,t),this.b=i}function DPn(n){PMn.call(this,n,!1),this.a=!1}function LPn(){sMn.call(this,"LOOKAHEAD_LAYOUT",1)}function NPn(n){this.b=n,kp.call(this,n),RTn(this)}function $Pn(n){this.b=n,A7.call(this,n),KTn(this)}function Hb(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function jW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xPn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function FPn(n){this.a=kRn(n.a),this.b=new _u(n.b)}function EW(n,e){m0(),Hhe.call(this,n,FT(new Ku(e)))}function wM(n,e){return nt(),new BW(n,e,0)}function rN(n,e){return nt(),new BW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Ai(e)?AN(n,e):!!wr(n.f,e)}function cN(n,e){return e.Vh()?na(n.b,u(e,54)):e}function awe(n,e){return An(n.substr(0,e.length),e)}function $h(n){return new te(new UX(n.a.length,n.a))}function gM(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Il)}function uN(n){return typeof n===vy||typeof n===eB}function Hu(n){n.f=new iTn(n),n.i=new rTn(n),++n.g}function BPn(n){if(!n)throw M(new nc);return n.d}function Sp(n){var e;return e=a5(n),oe(e!=null),e}function bwe(n){var e;return e=I5e(n),oe(e!=null),e}function C4(n,e){var t;return t=n.a.gc(),BJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function _7(n,e){return n.a.zc(e,(_n(),wa))==null}function CW(n){return new Tn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Pp(n,e,t){return Ks(n.a,e),nW(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function B(n,e,t,i){xFn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r0?y.Math.log(n/e):-100}function KPn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function H7(n,e){OTn(n,O(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw M(new sp(e))}function vwe(n,e){return yme(e,n.length),new XSn(n,e)}function IW(n,e){return e?Bi(n,e):!1}function kwe(){return RE(),S(T(uQn,1),G,549,0,[GK])}function G6(n){return n.e==0?n:new Qa(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function q7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _Pn(n,e){return n.c?_Pn(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=Jb(n,e),qN(n,e,t),i}function HPn(n,e,t){var i;for(i=0;i=n.g}function $t(n,e,t){return dae(t==null||oPe(n,t)),n[e]=t}function $W(n,e){return zn(e,n.length+1),n.substr(e)}function gN(n,e){for(Jn(e);n.c=n?new Dz:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function KW(n){return O(n,616)?n:new oOn(n)}function z1(n){n.c?z1(n.c):(ea(n),n.d=!0)}function V6(n){n.c?n.c.$e():(n.d=!0,fTe(n))}function sIn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fIn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hIn(n,e){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function mIn(n,e){var t;return t=new Lc(n),Bn(e.c,t),t}function vIn(n,e){n.u.Hc((zu(),Fl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Cr(n,e){return JL(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(T(oon,1),G,489,0,[b_])}function ege(){return eC(),S(T($1n,1),G,490,0,[Bq])}function tge(){return tC(),S(T(zce,1),G,558,0,[Rq])}function ige(){return f6(),S(T(tan,1),G,539,0,[Hj])}function jM(n){return!n.n&&(n.n=new q(Ar,n,1,7)),n.n}function mN(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function UW(n){return!n.c&&(n.c=new Nn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Nn(he,n,4,7)),n.b}function U7(n){return n.j.c.length=0,zW(n.c),xae(n.a),n}function P4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function G7(n){return n.f==rv&&Cfe(n,q7e(n.g,n.b)),n.f}function Ve(n,e,t,i){return Hxn(n,e,t,!1),BT(n,i),n}function kIn(n,e){this.b=n,oN.call(this,n,e),RTn(this)}function yIn(n,e){this.b=n,SV.call(this,n,e),KTn(this)}function W6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function GW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ea(n),new Tn(n,new tQ(e,n.a))}function _r(n,e){return ea(n),new Tn(n,new _J(e,n.a))}function Ub(n,e){return ea(n),new uV(n,new ILn(e,n.a))}function EM(n,e){return ea(n),new oV(n,new OLn(e,n.a))}function oge(n,e){return new GIn(u(Se(n),50),u(Se(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jIn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return $z(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&r7(jO,n.toLowerCase())}function zW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Tg(n){var e;return e=n.b,!e&&(n.b=e=new N8n(n)),e}function vN(n){var e;return e=Wme(n),e||null}function EIn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wIe(n.a,t),zve(t),xCe(n.b,t),$Ie(e,t)}function CM(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function XW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function CIn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function MIn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kN(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function TIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yN(n,e,t){this.a=ktn,this.d=n,this.b=e,this.c=t}function Op(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function AIn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function SIn(n){this.a=new Z,this.e=K(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function PIn(){ec.call(this,"There is no more element.")}function IIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function OIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function DIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function LIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function NIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function jN(n,e,t){var i,r;return i=utn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),K4(t,n),t}function EN(n){var e,t;return t=(e=new Jd,e),fnn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),HQ(e,t),null}function $In(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xIn(n){return F6(n==null||uN(n)&&n.Tm!==J2),n}function MM(n){return n.n&&(n.e!==Fzn&&n.je(),n.j=null),n}function I4(n){if(eo(n.d),n.d.d!=n.c)throw M(new Bo)}function VW(n){return oe(n.b0&&bKn(this)}function FIn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function pge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function mge(n){return _0(n)&&on(un(z(n,(cn(),Nd))))}function vge(n,e){return Pn(n,u(v(e,(cn(),Cv)),17),e)}function kge(n,e){return u(v(n,(W(),T3)),15).Fc(e),e}function WW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function BIn(n,e,t,i){this.b=n,this.c=i,IC.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yFn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jFn(n,e,t)}function Ege(n,e,t){return s6(),J5e(u(ee(n.e,e),529),t)}function Dp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function RIn(n,e){return xg(n.j,e.s,e.c)+xg(e.e,n.s,n.c)}function KIn(n,e){n.e&&!n.e.a&&(Ayn(n.e,e),KIn(n.e,e))}function _In(n,e){n.d&&!n.d.a&&(Ayn(n.d,e),_In(n.d,e))}function Cge(n,e){return-bt(Su(n)*ao(n),Su(e)*ao(e))}function Mge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HIn(){tF(this,new oG),this.wb=(G1(),Hn),o4()}function qIn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function JW(n,e){new Ct,this.a=new Mu,this.b=n,this.c=e}function j0(){j0=F,Pun=new FU,ZK=new FU,Iun=new D0n}function Dn(){Dn=F,sr=new A0n,Wh=new P0n,hP=new I0n}function QW(){QW=F,RQn=new nbn,_Qn=new aW,KQn=new ebn}function Lp(){Lp=F,mP=new Z,m_=new de,p_=new Z}function TM(n,e){if(n==null)throw M(new sp(e));return n}function AM(n){return!n.a&&(n.a=new q(Qe,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(As,n,11,10)),n.q}function _(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Tge(n){return Se(n),IRn(new te(re(n.a.Kc(),new En)))}function Age(n,e){return wo(n),wo(e),Fjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new AE(i),df(n,e,r)}function MN(n,e,t,i,r,c){ok.call(this,n,e,t,i,r,c?-2:-1)}function UIn(n,e,t,i){pX.call(this,e,t),this.b=n,this.a=i}function GIn(n,e){Vfe.call(this,new iN(n)),this.a=n,this.b=e}function YW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Sge(n){xs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function O4(){O4=F;var n,e;e=!$8e(),n=new V3,VK=e?new og:n}function TN(n){return Dn(),O(n,59)?new jD(n):new BC(n)}function SM(n){return O(n,16)?new B6(u(n,16)):obe(n.Kc())}function Pge(n){return new HTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Ige(n){return new qTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function ZW(n){return n&&n.hashCode?n.hashCode():l0(n)}function AN(n,e){return e==null?!!wr(n.f,null):zbe(n.i,e)}function Oge(n,e){var t;return t=$X(n.a,e),t&&(e.d=null),t}function zIn(n,e,t){return n.f?n.f.ef(e,t):!1}function z7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function SN(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Dge(n,e,t){return $(R(t.a))<=n&&$(R(t.b))>=e}function XIn(n,e){this.g=n,this.d=S(T(Qh,1),b1,10,0,[e])}function VIn(n){this.c=n,this.b=new Ul(u(Se(new tbn),50))}function WIn(n){this.c=n,this.b=new Ul(u(Se(new ewn),50))}function JIn(n){this.b=n,this.a=new Ul(u(Se(new Nbn),50))}function QIn(){this.b=new ni,this.d=new Ct,this.e=new ZG}function nJ(){this.c=new Li,this.d=new Li,this.e=new Li}function E0(){this.a=new Mu,this.b=(Co(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function PM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function X1(n,e,t,i,r,c,s){return new GN(n.e,e,t,i,r,c,s)}function Lge(n,e,t){return t>=0&&An(n.substr(t,e.length),e)}function nOn(n,e){return O(e,149)&&An(n.b,u(e,149).Pg())}function Nge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eOn(n,e){var t;return t=n.b.Qc(e),WDn(t,n.b.gc()),t}function X7(n,e){if(n==null)throw M(new sp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new NAn(n,n)),n.u}function PN(n){this.a=(Dn(),O(n,59)?new jD(n):new BC(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function IM(n,e){var t;return t=za(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Fi(e,t,n.length),n.substr(e,t-e)}function tOn(n,e){qC.call(this),lQ(this),this.a=n,this.c=e}function $ge(n){n&&IM(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Fge(){return YT(),S(T(Bun,1),G,436,0,[o_,Fun])}function Bge(){return cT(),S(T(Kun,1),G,435,0,[Run,s_])}function Rge(){return uT(),S(T(bon,1),G,432,0,[v_,vP])}function Kge(){return V4(),S(T(KZn,1),G,517,0,[dj,L_])}function _ge(){return KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])}function Hge(){return pk(),S(T($sn,1),G,428,0,[WP,Nsn])}function qge(){return QM(),S(T(Asn,1),G,431,0,[Tsn,V_])}function Uge(){return wk(),S(T(qhn,1),G,430,0,[UH,GH])}function Gge(){return n5(),S(T(Oie,1),G,531,0,[r9,i9])}function zge(){return yT(),S(T(Rln,1),G,501,0,[RI,D2])}function Xge(){return sh(),S(T(Bie,1),G,523,0,[mb,y1])}function Vge(){return Sf(),S(T(Kie,1),G,522,0,[Rd,zf])}function Wge(){return lf(),S(T(ere,1),G,528,0,[zw,ja])}function Jge(){return hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])}function Qge(){return GM(),S(T(S1n,1),G,491,0,[$q,A1n])}function Yge(){return N$(),S(T(N1n,1),G,492,0,[D1n,L1n])}function Zge(){return FM(),S(T(Bln,1),G,433,0,[dq,Fln])}function n2e(){return ZM(),S(T(_ln,1),G,434,0,[Kln,vq])}function e2e(){return M0(),S(T(sre,1),G,465,0,[Ea,P2])}function t2e(){return ck(),S(T(x1n,1),G,438,0,[Kq,JI])}function i2e(){return Ak(),S(T(ran,1),G,437,0,[YI,ian])}function r2e(){return RL(),S(T(dO,1),G,347,0,[vdn,kdn])}function OM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function V7(n){return n.b.b==0?n.a.sf():UL(n.b)}function c2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.f)}function u2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.k)}function eJ(n){return x(n.a)===x((D$(),CU))&&rOe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function iOn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,F7(e))}function C0(){Wfe.call(this,new ap(Qb(12))),KX(!0),this.a=2}function IN(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function tJ(n,e,t){Ko(),LE.call(this,e),this.a=n,this.b=t}function rOn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Nc(n,e){return e==null?Kr(wr(n.f,null)):d6(n.i,e)}function cOn(n,e,t,i,r){return new rF(n,(B4(),i_),e,t,i,r)}function DM(n,e){return zDn(e),Lme(n,K(ye,Ke,28,e,15,1),e)}function LM(n,e){return TM(n,"set1"),TM(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=XK[n.charCodeAt(0)];return t??n}function uOn(n,e){var t,i;return t=e,i=new DO,LGn(n,t,i),i.d}function ON(n,e,t,i){var r;r=new FAn,e.a[t.g]=r,Pp(n.b,i,r)}function l2e(n,e){var t;return t=Ime(n.f,e),tt(HC(t),n.f.d)}function W7(n){var e;_me(n.a),dTn(n.a),e=new IE(n.a),HY(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Lp(),n==At(Kh(e))||n==At(ia(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Sh)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oOn(n){this.a=u(Se(n),277),this.b=(Dn(),new XX(n))}function sOn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function iJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function NM(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fOn(n){qC.call(this),lQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rP[e]}function J7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Af(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function M0(){M0=F,Ea=new cX(s3,0),P2=new cX(f3,1)}function sh(){sh=F,mb=new tX(f3,0),y1=new tX(s3,1)}function Sf(){Sf=F,Rd=new iX(_B,0),zf=new iX("UP",1)}function lOn(){lOn=F,oQn=Ce((RE(),S(T(uQn,1),G,549,0,[GK])))}function aOn(n){var e;return e=new zE(Qb(n.length)),eY(e,n),e}function dOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw M(new ip);return F8e(n,e)}function Q7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),G5(n,t)}function rJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):ten(n,e,t)}function bOn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hF(n,e)}function wOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function DN(n,e,t){var i;i=vFn(n,e,t),n.b=new ET(i.c.length)}function Ag(n,e,t){$M(),n&&Xe(yU,n,e),n&&Xe(hE,n,t)}function m2e(n,e){return VC(),_n(),u(e.a,17).a0}function cJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gOn(n,e){var t;return t=new fW(e),_Kn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw M(new Cu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw M(new Cu);return M6(n.k,0)}function pOn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function D4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function At(n){return n.Db>>16!=11?null:u(n.Cb,27)}function Gb(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function uJ(n){var e;return ea(n),e=new ni,ut(n,new M9n(e))}function kOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),G5(n,t)}function yOn(n,e){xC(this),this.f=e,this.g=n,MM(this),this.je()}function jOn(n,e){this.a=n,this.c=Ki(this.a),this.b=new PM(e)}function EOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function COn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function MOn(n){this.a=n,this.b=K(Sie,J,2043,n.e.length,0,2)}function TOn(){this.a=new ih,this.e=new ni,this.g=0,this.i=0}function $M(){$M=F,yU=new de,hE=new de,ple(MQn,new wvn)}function AOn(){AOn=F,aie=Pu(new ii,(Vi(),zr),(tr(),bj))}function oJ(){oJ=F,die=Pu(new ii,(Vi(),zr),(tr(),bj))}function SOn(){SOn=F,wie=Pu(new ii,(Vi(),zr),(tr(),bj))}function POn(){POn=F,Lie=Re(new ii,(Vi(),zr),(tr(),x8))}function ko(){ko=F,xie=Re(new ii,(Vi(),zr),(tr(),x8))}function IOn(){IOn=F,Fie=Re(new ii,(Vi(),zr),(tr(),x8))}function NN(){NN=F,Hie=Re(new ii,(Vi(),zr),(tr(),x8))}function J6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Dr(n,e,t){return e==null?Vc(n.f,null,t):$0(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Ii(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $N(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xN(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function OOn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function C2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function M2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function T2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xM(n,e){O(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function FN(n,e){O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function A2e(n,e){LY(n,e),O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function S2e(n,e){var t,i;t=e.c,i=t!=null,i&&Ip(n,new qb(e.c))}function DOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function LOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function NOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function P2e(n,e,t){return nn(n.a,(yM(),Nx(e,t),new i0(e,t))),n}function $c(n,e){return dr(),a$(e)?new eM(e,n):new j7(e,n)}function Y7(n){return dh(),Ec(n,0)>=0?ta(n):G6(ta(n1(n)))}function I2e(n){var e;return e=u(ZC(n.b),9),new _o(n.a,e,n.c)}function $On(n,e){var t;return t=u(tw(Dp(n.a),e),16),t?t.gc():0}function xOn(n,e,t){var i;oBn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Np(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function BN(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$N(this,e),xN(this,t)}function sJ(n,e){Xfe.call(this,new ap(Qb(n))),Co(e,Ozn),this.a=e}function FOn(n,e,t){return new rF(n,(B4(),t_),null,!1,e,t)}function BOn(n,e,t){return new rF(n,(B4(),r_),e,t,null,!1)}function O2e(){return Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])}function D2e(){return bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])}function L2e(){return Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])}function N2e(){return bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])}function $2e(){return i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])}function x2e(){return D0(),S(T(R_,1),G,372,0,[ub,ma,cb])}function F2e(){return u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])}function B2e(){return bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])}function R2e(){return hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])}function K2e(){return Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])}function _2e(){return vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])}function H2e(){return g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])}function q2e(){return gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])}function U2e(){return ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])}function G2e(){return d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])}function z2e(){return om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])}function X2e(){return dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])}function V2e(){return DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])}function W2e(){return O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])}function Pf(n){return cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])}function ROn(){ROn=F,Fre=Pu(new ii,(Qp(),u9),(q5(),uln))}function FM(){FM=F,dq=new uX("DFS",0),Fln=new uX("BFS",1)}function KOn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),DY(e,i.a,i.b)}function Y2e(n,e){LTn(n,Ae(vi(w0(e,24),YA)),Ae(vi(e,YA)))}function zb(n,e){if(n<0||n>e)throw M(new Ir(Ptn+n+Itn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ir(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw M(new gz(Ptn+n+Itn+e))}function In(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function fJ(n){var e;return ea(n),e=(j0(),j0(),ZK),fT(n,e)}function Z2e(n,e,t){var i;return i=V5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])}function epe(){return _T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])}function ipe(){return rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])}function rpe(){return Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])}function cpe(){return AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])}function upe(){return jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])}function ope(){return Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])}function spe(){return Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])}function fpe(){return Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])}function T0(n){return Se(n),O(n,16)?new _u(u(n,16)):y4(n.Kc())}function hJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Q1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hf(n,e){return Q1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function RN(n,e){return Q1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,rV(!!t),Jn(e),t(e)}function _On(n,e){var t,i;return i=C4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dF(n),241)}function ape(n){if(n.p!=2)throw M(new Cu);return Ae(n.f)&ui}function dpe(n){if(n.p!=2)throw M(new Cu);return Ae(n.k)&ui}function E(n){return oe(n.ai?1:0}function GOn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function KN(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Cpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _N(n,e){if(fi(n.a,e),e.d)throw M(new ec(nXn));e.d=n}function dJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zOn(){this.c=new PTn,this.a=new $Ln,this.b=new Xyn,lCn()}function XOn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VOn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WOn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JOn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QOn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YOn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZOn(n,e,t,i,r,c){pQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nDn(n,e,t,i,r,c){DJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eDn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tDn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iDn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rDn(n,e,t,i){LE.call(this,t),this.b=n,this.c=e,this.d=i}function cDn(n,e){this.f=n,this.a=($4(),MO),this.c=MO,this.b=e}function uDn(n,e){this.g=n,this.d=($4(),TO),this.a=TO,this.b=e}function bJ(n,e){!n.c&&(n.c=new Rt(n,0)),HA(n.c,(at(),F9),e)}function Mpe(n,e){return oMe(n,e,O(e,102)&&(u(e,19).Bb&hr)!=0)}function Tpe(n,e){return KPn(vc(n.q.getTime()),vc(e.q.getTime()))}function oDn(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),16,new O8n(n))}function Ape(n){return!!n.u&&Sc(n.u.a).i!=0&&!(n.n&&Ix(n.n))}function Spe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ox(n.b))}function wJ(n,e){return e==0?!!n.o&&n.o.f!=0:Cx(n,e)}function Ppe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sDn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fDn(n,e){var t;return t=1-e,n.a[t]=jT(n.a[t],t),jT(n,e)}function hDn(n,e){var t,i;return i=vi(n,mr),t=Fs(e,32),hf(t,i)}function lDn(n,e,t){var i;i=(Se(n),new _u(n)),O7e(new EOn(i,e,t))}function Z7(n,e,t){var i;i=(Se(n),new _u(n)),D7e(new COn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),CY(n,i),MY(n,r),n}function aDn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,Xv.call(this,n),zb(e,n.gc()),this.b=e}function dDn(n){this.a=K(ki,Fn,1,QQ(y.Math.max(8,n))<<1,5,1)}function nk(n){return u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199)}function fh(n){return u(xf(n,K(O_,rR,18,n.c.length,0,1)),483)}function bDn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function Q6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wDn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ipe(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),Pb(n.e.a.c,0)}function gDn(n,e){var t;n.e=new uz,t=aw(e),Yt(t,n.c),Iqn(n,t,0)}function ri(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.a,r)}function Q(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.b,r)}function pDn(n,e,t){if(n<0||et)throw M(new Ir(qje(n,e,t)))}function ek(n,e){if(n<0||n>=e)throw M(new Ir(kEe(n,e)));return n}function Ope(n){if(!("stack"in n))try{throw n}catch{}return n}function Sg(n){return s6(),O(n.g,10)?u(n.g,10):null}function Dpe(n){return Tg(n).dc()?!1:(e1e(n,new Pr),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function vDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function kDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function gJ(n){var e;return z1(n),e=new L0n,hg(n.a,new j9n(e)),e}function pJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(n0n,e),e}function BM(n){var e;return z1(n),e=new N0n,hg(n.a,new E9n(e)),e}function Lpe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yDn(n){P$.call(this,n,(B4(),e_),null,!1,null,!1)}function jDn(){jDn=F,SYn=Ce((YE(),S(T(oon,1),G,489,0,[b_])))}function EDn(){EDn=F,eln=wIn(Y(1),Y(4)),nln=wIn(Y(1),Y(2))}function Npe(n,e){return new _L(e,N6(Ki(e.e),n,n),(_n(),!0))}function RM(n){return new Gc((Co(n,cB),oT(nr(nr(5,n),n/10|0))))}function $pe(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),273,new I8n(n))}function CDn(n){return u(xf(n,K(FZn,DXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Fpe(n,e){return _p(),u(v(e,(lc(),I2)),17).a>=n.gc()}function Y6(n,e){vLe(e,n),JV(n.d),JV(u(v(n,(cn(),mI)),214))}function HN(n,e){kLe(e,n),QV(n.d),QV(u(v(n,(cn(),mI)),214))}function Bpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&b0(n.d.e,t,n)}function Rpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Kpe(n,e,t){var i;i=i9e();try{return Aae(n,e,t)}finally{D3e(i)}}function A0(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Z6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function L4(n,e){var t,i;return t=Jb(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=gnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),FA(n.g,i,e),FA(n.i,e,t),e}function mJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function MDn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function TDn(n,e,t,i){ETn(this),this.c=n,this.e=e,this.f=t,this.b=i}function vJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function ADn(n,e,t,i){return O(t,59)?new iAn(n,e,t,i):new vW(n,e,t,i)}function N4(n){return O(n,16)?u(n,16).dc():!n.Kc().Ob()}function SDn(n){if(n.e.g!=n.b)throw M(new Bo);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function kJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JRn(n)}function V1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JRn(n)}function PDn(n){var e;e=n.Gh(),this.a=O(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new In(Ame(u(n.a.md(),16).gc(),n.a.ld()),16)}function IDn(){IDn=F,Gce=Ce((eC(),S(T($1n,1),G,490,0,[Bq])))}function ODn(){ODn=F,Xce=Ce((tC(),S(T(zce,1),G,558,0,[Rq])))}function DDn(){DDn=F,lue=Ce((f6(),S(T(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])}function Upe(){return B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])}function Gpe(){return Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])}function Xpe(){return N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])}function Vpe(){return nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])}function Wpe(){return $f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])}function Jpe(){return OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])}function Qpe(){return cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])}function Ype(){return lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])}function Zpe(n){var e;return n.j==(tn(),ae)&&(e=mHn(n),Au(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Ii(t,e.d.d),nw(t.a,n.n)}function yJ(n,e){var t;return t=u(Lf(n.b,e),67),!t&&(t=new Ct),t}function xp(n){return s6(),O(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,Pb(n.b.c,0),Pb(n.f.c,0),n.c=null}function KM(){KM=F,fH=new Zz(qm,0),Jsn=new Zz("TOP_LEFT",1)}function n5(){n5=F,r9=new eX("UPPER",0),i9=new eX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function LDn(n,e){return u(ho(_b(u(ot(n.k,e),15).Oc(),b2)),113)}function NDn(n,e){return u(ho(Ap(u(ot(n.k,e),15).Oc(),b2)),113)}function i3e(){return Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])}function r3e(){return w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])}function c3e(){return sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])}function u3e(){return go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])}function s3e(){return El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])}function f3e(){return qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])}function h3e(){return LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])}function l3e(n){return $M(),Zc(yU,n)?u(ee(yU,n),341).Qg():null}function Uo(n,e,t){return e<0?hF(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),FA(n.j,i,e),Xe(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),FA(n.d,i,e),Xe(n.e,e,t),e}function $Dn(n){var e,t;return e=(B1(),t=new HO,t),n&&AA(e,n),e}function jJ(n){var e;return e=n.aj(n.i),n.i>0&&Ic(n.g,0,e,0,n.i),e}function xDn(n,e){var t;for(t=n.j.c.length;t>24}function w3e(n){if(n.p!=1)throw M(new Cu);return Ae(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.f)<<16>>16}function Pg(n,e){return e.e==0||n.e==0?O8:(Am(),vF(n,e))}function RDn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tN(R(Kr(wr(n.f,e))),R(Kr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function KDn(n,e,t){n.i=0,n.e=0,e!=t&&(jFn(n,e,t),yFn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yMe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function EJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Dn(n,e){nJ.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HDn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qDn(n,e){var t;return t=new lp,n.Gd(t),t.a+="..",e.Hd(t),t.a}function UDn(n,e){var t;for(t=e;t;)a0(n,t.i,t.j),t=At(t);return n}function GDn(n,e,t){var i;return i=wm(t),Xe(n.b,i,e),Xe(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oT(e)}function Fh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function CJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+fa),G5(n,t)}function j3e(n,e){return u(e==null?Kr(wr(n.f,null)):d6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _M(n,e,t){return RA(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Om(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function C3e(n,e,t){return bMe(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=K(ki,Fn,1,8,5,1),n.b=0,n.c=0)}function e5(n){return oe(n.a=0&&n.a[t]===e[t];t--);return t<0}function HM(n){var e;return n?new fW(n):(e=new ih,A$(e,n),e)}function O3e(n,e){var t,i;i=!1;do t=lFn(n,e),i=i|t;while(t);return i}function D3e(n){n&&rme((az(),sun)),--cP,n&&uP!=-1&&(Ele(uP),uP=-1)}function qM(n){nnn(),LTn(this,Ae(vi(w0(n,24),YA)),Ae(vi(n,YA)))}function JDn(){JDn=F,HQn=Ce((YT(),S(T(Bun,1),G,436,0,[o_,Fun])))}function QDn(){QDn=F,qQn=Ce((cT(),S(T(Kun,1),G,435,0,[Run,s_])))}function YDn(){YDn=F,GYn=Ce((uT(),S(T(bon,1),G,432,0,[v_,vP])))}function ZDn(){ZDn=F,_Zn=Ce((V4(),S(T(KZn,1),G,517,0,[dj,L_])))}function nLn(){nLn=F,Ane=Ce((KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])))}function eLn(){eLn=F,gne=Ce((pk(),S(T($sn,1),G,428,0,[WP,Nsn])))}function tLn(){tLn=F,kne=Ce((hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])))}function iLn(){iLn=F,rie=Ce((wk(),S(T(qhn,1),G,430,0,[UH,GH])))}function rLn(){rLn=F,Die=Ce((n5(),S(T(Oie,1),G,531,0,[r9,i9])))}function cLn(){cLn=F,ane=Ce((QM(),S(T(Asn,1),G,431,0,[Tsn,V_])))}function uLn(){uLn=F,xre=Ce((FM(),S(T(Bln,1),G,433,0,[dq,Fln])))}function oLn(){oLn=F,_re=Ce((yT(),S(T(Rln,1),G,501,0,[RI,D2])))}function sLn(){sLn=F,Rie=Ce((sh(),S(T(Bie,1),G,523,0,[mb,y1])))}function fLn(){fLn=F,_ie=Ce((Sf(),S(T(Kie,1),G,522,0,[Rd,zf])))}function hLn(){hLn=F,tre=Ce((lf(),S(T(ere,1),G,528,0,[zw,ja])))}function lLn(){lLn=F,fre=Ce((M0(),S(T(sre,1),G,465,0,[Ea,P2])))}function aLn(){aLn=F,Ure=Ce((ZM(),S(T(_ln,1),G,434,0,[Kln,vq])))}function dLn(){dLn=F,Rce=Ce((GM(),S(T(S1n,1),G,491,0,[$q,A1n])))}function bLn(){bLn=F,_ce=Ce((N$(),S(T(N1n,1),G,492,0,[D1n,L1n])))}function wLn(){wLn=F,Vce=Ce((ck(),S(T(x1n,1),G,438,0,[Kq,JI])))}function gLn(){gLn=F,aue=Ce((Ak(),S(T(ran,1),G,437,0,[YI,ian])))}function pLn(){pLn=F,aoe=Ce((RL(),S(T(dO,1),G,347,0,[vdn,kdn])))}function L3e(){return ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])}function N3e(){return tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$0(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),H8))}function XN(n){return n.c&&n.d?aJ(n.c)+"->"+aJ(n.d):"e_"+l0(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function F3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function B3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function mLn(n,e){var t;for(t=e;t;)a0(n,-t.i,-t.j),t=At(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fOe(n,e,t),n.a.c.length==0||xSe(n,e)}function tk(n){n.i=0,s7(n.b,null),s7(n.c,null),n.a=null,n.e=null,++n.g}function UM(){UM=F,qf=!0,DQn=!1,LQn=!1,$Qn=!1,NQn=!1}function VN(n){UM(),!qf&&(this.c=n,this.e=!0,this.a=new Z)}function vLn(n,e){this.c=0,this.b=e,HMn.call(this,n,17493),this.a=this.c}function kLn(n){jzn(),Syn(this),this.a=new Ct,sY(this,n),xe(this.a,n)}function yLn(){pL(this),this.b=new V(St,St),this.a=new V(li,li)}function GM(){GM=F,$q=new fX(cin,0),A1n=new fX("TARGET_WIDTH",1)}function Ig(n,e){return(ea(n),s4(new Tn(n,new tQ(e,n.a)))).Bd(v3)}function R3e(){return Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])}function K3e(){return ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])}function _3e(){return o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])}function H3e(){return T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])}function q3e(){return Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])}function U3e(){return wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])}function G3e(){return R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])}function z3e(){return Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])}function X3e(){return gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])}function V3e(){return Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])}function W3e(n){return HE(),function(){return Kpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return O(e,143)?An(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),k5(new Njn(n),0,n.t)),n.t}function jLn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ELn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VOn.call(this,e,i,r),this.c=n,this.a=t}function DJ(n,e,t,i,r){WOn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.a=t}function WN(n,e){var t;return t=u(Lf(n.d,e),23),t||u(Lf(n.e,e),23)}function CLn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function MLn(n,e){var t;return t=e.ld(),new i0(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??K(ki,Fn,1,0,5,1)}function TLn(n){var e;return e=n.length,An(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw M(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):RBn(n,-e)}function Fp(n,e){return e==0||n.e==0?n:e>0?RBn(n,e):wqn(n,-e)}function $J(n){ole.call(this,n==null?gu:Jr(n),O(n,82)?u(n,82):null)}function ALn(n){var e;return n.c||(e=n.r,O(e,90)&&(n.c=u(e,29))),n.c}function JN(n){var e;return e=new E0,Ur(e,n),U(e,(cn(),Fr),null),e}function SLn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QN(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Il:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i=0?n.Lh(i,t,!0):H0(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Ki(e.b)),vp(pm(n),Ki(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Ki(e.e)),vp(pm(n),Ki(t.e)))}function e4e(n,e){return y.Math.min(W1(e.a,n.d.d.c),W1(e.b,n.d.d.c))}function ik(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function t5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function PLn(n,e,t){var i;i=new NX(n.a),f5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function xJ(n,e,t,i){var r;for(r=0;re)throw M(new Ir(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Ln(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function RJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:te.p?-1:0}function FLn(n){var e;return n.a||(e=n.r,O(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),x7(t.Nc(),new L8n(e))}function BLn(n,e){return Zc(n.a,e)?(Bp(n.a,e),!0):!1}function Rp(n,e,t){return ek(e,n.e.Rd().gc()),ek(t,n.c.Rd().gc()),n.a[e][t]}function XM(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VM(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function rk(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function $4(){$4=F;var n,e;MO=(o4(),e=new xE,e),TO=(n=new fD,n)}function f4e(n){var e;return ea(n),e=new ISn(n,n.a.e,n.a.d|4),new uV(n,e)}function RLn(n){var e;for(z1(n),e=0;n.a.Bd(new W0n);)e=nr(e,1);return e}function WM(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function JM(){JM=F,p9=new lt("org.eclipse.elk.labels.labelManager")}function KLn(){KLn=F,ysn=new Dt("separateLayerConnections",(OT(),F_))}function lf(){lf=F,zw=new rX("REGULAR",0),ja=new rX("CRITICAL",1)}function ck(){ck=F,Kq=new lX("FIXED",0),JI=new lX("CENTER_NODE",1)}function QM(){QM=F,Tsn=new Jz("QUADRATIC",0),V_=new Jz("SCANLINE",1)}function _Ln(){_Ln=F,dne=Ce((u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])))}function HLn(){HLn=F,bne=Ce((bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])))}function qLn(){qLn=F,fne=Ce((D0(),S(T(R_,1),G,372,0,[ub,ma,cb])))}function ULn(){ULn=F,mne=Ce((hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])))}function GLn(){GLn=F,Cne=Ce((Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])))}function zLn(){zLn=F,Tne=Ce((vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])))}function XLn(){XLn=F,Zte=Ce((g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])))}function VLn(){VLn=F,oie=Ce((ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])))}function WLn(){WLn=F,sie=Ce((d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])))}function JLn(){JLn=F,uie=Ce((gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])))}function QLn(){QLn=F,fie=Ce((om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])))}function YLn(){YLn=F,hie=Ce((dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])))}function ZLn(){ZLn=F,lie=Ce((DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])))}function nNn(){nNn=F,are=Ce((b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])))}function eNn(){eNn=F,Gre=Ce((Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])))}function tNn(){tNn=F,ace=Ce((AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])))}function iNn(){iNn=F,dce=Ce((XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])))}function rNn(){rNn=F,wce=Ce((rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])))}function cNn(){cNn=F,mce=Ce((_T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uNn(){uNn=F,Kce=Ce((nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])))}function oNn(){oNn=F,Aie=Ce((O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])))}function sNn(){sNn=F,WQn=Ce((Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])))}function fNn(){fNn=F,XQn=Ce((bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])))}function hNn(){hNn=F,QQn=Ce((bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])))}function lNn(){lNn=F,xQn=Ce((Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])))}function aNn(){aNn=F,pZn=Ce((i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])))}function dNn(){dNn=F,Que=Ce((jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])))}function bNn(){bNn=F,Uce=Ce((Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])))}function wNn(){wNn=F,Xue=Ce((Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])))}function gNn(){gNn=F,loe=Ce((Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])))}function Df(n,e){return!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Cr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function UJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new CE),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function uk(n){return!n.g&&(n.g=new CE),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new CE),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new CE),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=K(ye,Ke,28,e+1,15,1),vPe(r,n,e,t,i),r}function K(n,e,t,i,r,c){var s;return s=_Rn(r,i),r!=10&&S(T(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;it||e=0?n.Lh(t,!0,!0):H0(n,e,!0)}function L4e(n,e,t){var i;return i=vFn(n,e,t),n.b=new ET(i.c.length),den(n,i)}function N4e(n){if(n.b<=0)throw M(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw M(new PIn);return e=n.a,n.a=At(n.a),e}function x4e(n){for(;!n.a;)if(!eSn(n.c,new C9n(n)))return!1;return!0}function Kp(n){var e;return Se(n),O(n,204)?(e=u(n,204),e):new _8n(n)}function F4e(n){YM(),u(n.of((qe(),Ww)),181).Fc((zu(),tE)),n.qf(sU,null)}function YM(){YM=F,wue=new Emn,pue=new Cmn,gue=M6e((qe(),sU),wue,Ma,pue)}function ZM(){ZM=F,Kln=new sX("LEAF_NUMBER",0),vq=new sX("NODE_SIZE",1)}function u$(n){n.a=K(ye,Ke,28,n.b+1,15,1),n.c=K(ye,Ke,28,n.b,15,1),n.d=0}function B4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new GV(e.c,e.d,n.d)),n.b=e.d)}function nQ(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.g[e]}function kNn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw M(new uD);return t}function o$(n,e){return gk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,gk(e),n),n}function F4(n,e,t,i){var r;i=(j0(),i||Pun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?H0(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function R4e(n,e){return bt($(R(v(n,(W(),fb)))),$(R(v(e,fb))))}function yNn(){yNn=F,IQn=Ce((B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])))}function B4(){B4=F,e_=new uC("All",0),t_=new lTn,i_=new kTn,r_=new hTn}function Uu(){Uu=F,Mh=new FD(s3,0),ga=new FD(qm,1),Gs=new FD(f3,2)}function jNn(){jNn=F,KA(),s0n=St,mse=li,f0n=new V9(St),vse=new V9(li)}function ENn(){ENn=F,jYn=Ce((N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])))}function CNn(){CNn=F,AYn=Ce((A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])))}function MNn(){MNn=F,CYn=Ce((Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])))}function TNn(){TNn=F,DZn=Ce((dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])))}function ANn(){ANn=F,TZn=Ce((nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])))}function SNn(){SNn=F,tne=Ce(($f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])))}function PNn(){PNn=F,GZn=Ce((OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])))}function INn(){INn=F,nie=Ce((cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])))}function ONn(){ONn=F,iie=Ce((lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])))}function hk(){hk=F,Fsn=new Yz(kh,0),QP=new Yz("IMPROVE_STRAIGHTNESS",1)}function DNn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Rp(n,i,t)}function LNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)L(n,e);return jJ(n)}function eQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function NNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function K4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Nn(n,e){if(e.a)throw M(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function tQ(n,e){IC.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _L(e,a0(Ki(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xNn(){xNn=F,lce=Ce((sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])))}function FNn(){FNn=F,$re=Ce((w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])))}function BNn(){BNn=F,hre=Ce((Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])))}function RNn(){RNn=F,Vue=Ce((El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])))}function KNn(){KNn=F,Zue=Ce((To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])))}function _Nn(){_Nn=F,foe=Ce((go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])))}function HNn(){HNn=F,doe=Ce((qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])))}function qNn(){qNn=F,goe=Ce((LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])))}function nT(){nT=F,xq=new oL(mVn,0),I1n=new oL(Crn,1),P1n=new oL(kh,2)}function Wb(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new AW(n,e,i)}function UNn(n,e){var t;return t=u(Bp(n.e,e),400),t?(tW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GNn(n,e,t){var i;return z1(n),i=new LO,i.a=e,n.a.Nb(new TCn(i,t)),i.a}function G4e(n){var e;return z1(n),e=K(Pi,Tr,28,0,15,1),hg(n.a,new y9n(e)),e}function iQ(n){var e;if(!E$(n))throw M(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Q1(tm(n))}function qr(n,e,t){for(;t=0?tA(n,t,!0,!0):H0(n,e,!0)}function cQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function uQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QNn(n,e){con=new kE,MYn=e,L8=n,u(L8.b,68),XJ(L8,con,null),aGn(L8)}function i5(){i5=F,E_=new RD("XY",0),j_=new RD("X",1),C_=new RD("Y",2)}function bu(){bu=F,vf=new BD("TOP",0),pa=new BD(qm,1),zs=new BD(Ftn,2)}function vl(){vl=F,vj=new GD(kh,0),v2=new GD("TOP",1),E3=new GD(Ftn,2)}function wk(){wk=F,UH=new nX("INPUT_ORDER",0),GH=new nX("PORT_DEGREE",1)}function R4(){R4=F,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Ty),lun=QN(1),QN(2),aun=QN(0)}function a$(n){var e;return n.d!=n.r&&(e=ws(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rT(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Lf(n,e){var t;return t=u(ee(n.e,e),400),t?(DTn(n,t),t.e):null}function YNn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Jb(n,e){var t=n.a[e],i=(K$(),WK)[typeof t];return i?i(t):wY(typeof t)}function rc(n,e){var t,i;return ea(n),i=new _J(e,n.a),t=new rSn(i),new Tn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&M$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,BQ(e.a,i,0)}function oQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t0&&arguments[0]!==void 0?arguments[0]:{},Yi=ze.defaultLayoutOptions,Ri=Yi===void 0?{}:Yi,En=ze.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=ze.workerFactory,Ru=ze.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Ri,this.initialized=!1,typeof Ru>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Pr=Qc;typeof Ru<"u"&&typeof Qc>"u"&&(Pr=function(N1){return new Worker(N1)});var Cf=Pr(Ru);if(typeof Cf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Bu(Cf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(L1){return Jt.initialized=!0}).catch(console.err)}return Di(Ht,[{key:"layout",value:function(ze){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ri=Yi.layoutOptions,En=Ri===void 0?this.defaultLayoutOptions:Ri,hu=Yi.logging,Qc=hu===void 0?!1:hu,Ru=Yi.measureExecutionTime,Pr=Ru===void 0?!1:Ru;return ze?this.worker.postMessage({cmd:"layout",graph:ze,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Pr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),Ht}();Sr.default=Wt;var Bu=function(){function Ht(Jt){var ze=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){ze.receive(ze,Yi)},0)}}return Di(Ht,[{key:"postMessage",value:function(ze){var Yi=this.id||0;this.id=Yi+1,ze.id=Yi;var Ri=this;return new Promise(function(En,hu){Ri.resolvers[Yi]=function(Qc,Ru){Qc?(Ri.convertGwtStyleError(Qc),hu(Qc)):En(Ru)},Ri.worker.postMessage(ze)})}},{key:"receive",value:function(ze,Yi){var Ri=Yi.data,En=ze.resolvers[Ri.id];En&&(delete ze.resolvers[Ri.id],Ri.error?En(Ri.error):En(null,Ri.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ze){if(ze){var Yi=ze.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(ze.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(ze.cause)),delete ze.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Sr){(function(Di){(function(){var y;typeof window<"u"?y=window:typeof Di<"u"?y=Di:typeof self<"u"&&(y=self);var Wt;function Bu(){}function Ht(){}function Jt(){}function ze(){}function Yi(){}function Ri(){}function En(){}function hu(){}function Qc(){}function Ru(){}function Pr(){}function Cf(){}function L1(){}function N1(){}function og(){}function V3(){}function $1(){}function ul(){}function C0n(){}function M0n(){}function J2(){}function F(){}function T0n(){}function mE(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function FU(){}function D0n(){}function L0n(){}function N0n(){}function OO(){}function $0n(){}function x0n(){}function F0n(){}function DO(){}function B0n(){}function R0n(){}function BU(){}function K0n(){}function _0n(){}function yu(){}function ju(){}function Q2(){}function Y2(){}function H0n(){}function q0n(){}function U0n(){}function G0n(){}function RU(){}function Eu(){}function Z2(){}function np(){}function z0n(){}function X0n(){}function LO(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function mbn(){}function vbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function Tbn(){}function KU(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function NO(){}function $O(){}function vE(){}function Obn(){}function Dbn(){}function xO(){}function Lbn(){}function Nbn(){}function $bn(){}function kE(){}function xbn(){}function Fbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function _U(){}function Gbn(){}function zbn(){}function HU(){}function Xbn(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function FO(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function qU(){}function UU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function Lwn(){}function Nwn(){}function $wn(){}function xwn(){}function Fwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function Lgn(){}function Ngn(){}function $gn(){}function xgn(){}function Fgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function GU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function L2n(){}function N2n(){}function $2n(){}function x2n(){}function F2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Mpn(){}function zU(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function Lpn(){}function Npn(){}function $pn(){}function XU(){}function xpn(){}function Fpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function VU(){}function WU(){}function Hpn(){}function JU(){}function QU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function YU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function L3n(){}function N3n(){}function $3n(){}function x3n(){}function F3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function _se(){}function D4n(){}function L4n(){}function N4n(){}function $4n(){}function x4n(){}function F4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function BO(){}function RO(){}function cmn(){}function KO(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function ZU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Cmn(){}function Mmn(){}function Ra(){}function Tmn(){}function ep(){}function nG(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Dmn(){}function Lmn(){}function Nmn(){}function $mn(){}function xmn(){}function Fmn(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _O(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HO(){}function jE(){}function fvn(){}function eG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function CE(){}function mvn(){}function ME(){}function vvn(){}function tG(){}function kvn(){}function qO(){}function iG(){}function yvn(){}function jvn(){}function Evn(){}function Cvn(){}function qse(){}function Mvn(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Dvn(){}function Lvn(){}function Nvn(){}function W3(){}function UO(){}function $vn(){}function xvn(){}function Fvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function D6n(){}function L6n(){}function N6n(){}function $6n(){}function x6n(){}function F6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function A5n(){}function rG(){}function S5n(){}function P5n(){}function GO(){n6()}function I5n(){u7()}function O5n(){aA()}function D5n(){Q$()}function L5n(){M5()}function N5n(){ann()}function $5n(){qs()}function x5n(){jZ()}function F5n(){zk()}function B5n(){o7()}function R5n(){$7()}function K5n(){aCn()}function _5n(){Hp()}function H5n(){KLn()}function q5n(){yQ()}function U5n(){SOn()}function G5n(){jQ()}function z5n(){pNn()}function X5n(){AOn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){EDn()}function Y5n(){exn()}function Z5n(){ca()}function n8n(){ZE()}function e8n(){ltn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Pxn()}function c8n(){POn()}function u8n(){nKn()}function o8n(){IOn()}function s8n(){bUn()}function f8n(){qnn()}function h8n(){kl()}function l8n(){wBn()}function a8n(){lc()}function d8n(){ROn()}function b8n(){_p()}function w8n(){Men()}function g8n(){ua()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Qk()}function k8n(){EF()}function y8n(){Dx()}function cf(){wSn()}function j8n(){YM()}function E8n(){mA()}function cG(){qe()}function C8n(){NT()}function M8n(){YY()}function uG(){D$()}function oG(){KA()}function T8n(){Fen()}function sG(n){Jn(n)}function A8n(n){this.a=n}function TE(n){this.a=n}function S8n(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function D8n(n){this.a=n}function L8n(n){this.a=n}function fG(n){this.a=n}function hG(n){this.a=n}function N8n(n){this.a=n}function $8n(n){this.a=n}function zO(n){this.a=n}function x8n(n){this.a=n}function F8n(n){this.a=n}function XO(n){this.a=n}function VO(n){this.a=n}function B8n(n){this.a=n}function WO(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function _8n(n){this.a=n}function lG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function aG(n){this.a=n}function dG(n){this.a=n}function AE(n){this.a=n}function z9(n){this.a=n}function Ka(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function bG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function _a(n,e){n.k=e}function nfe(n,e){n.c=e}function wG(n,e){n.c=e}function gG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JO(n,e){n.d=e}function SE(n,e){n.i=e}function pG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function mG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QO(n,e){n.a=e}function YO(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Cfe(n,e){n.f=e}function Mfe(n,e){n.j=e}function Tfe(n,e){n.a=e}function Afe(n,e){n.a=e}function Sfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function vG(n){this.a=n}function kG(n){this.a=n}function yG(n){this.a=n}function Ha(n){this.a=n}function qa(n){this.a=n}function X9(n){this.a=n}function u9n(n){this.a=n}function jG(n){this.a=n}function V9(n){this.a=n}function PE(n){this.a=n}function ol(n){this.a=n}function Sb(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZO(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nD(n){this.a=n}function f9n(n){this.a=n}function eD(n){this.c=n}function C(n){this.c=n}function h9n(n){this.c=n}function Xv(n){this.d=n}function EG(n){this.a=n}function Te(n){this.a=n}function l9n(n){this.a=n}function CG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function AG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function S9n(n){this.a=n}function Vv(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function D9n(n){this.a=n}function IE(n){this.a=n}function L9n(n){this.a=n}function N9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function F9n(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function OG(n){this.a=n}function DG(n){this.a=n}function LG(n){this.a=n}function Wv(n){this.a=n}function OE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function tp(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function $G(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function D7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function F7n(n){this.c=n}function B7n(n){this.b=n}function R7n(n){this.a=n}function K7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Dkn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Fkn(n){this.a=n}function DE(n){this.a=n}function Bkn(n){this.f=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tD(n){this.a=n}function xG(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function W9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function FG(n){this.c=n}function LE(n){this.e=n}function NE(n){this.a=n}function $E(n){this.a=n}function iD(n){this.a=n}function Cyn(n){this.d=n}function Myn(n){this.a=n}function BG(n){this.a=n}function RG(n){this.a=n}function Wd(n){this.e=n}function Pfe(){this.a=0}function de(){Hu(this)}function Z(){pL(this)}function rD(){sIn(this)}function Tyn(){}function Jd(){this.c=Gdn}function Ayn(n,e){n.b+=e}function Ife(n,e){e.Wb(n)}function Ofe(n){return n.a}function Dfe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function $fe(n){return n.a}function M(n){return n.e}function xfe(){return null}function Ffe(){return null}function Bfe(){Cz(),pLe()}function Rfe(n){n.b.Of(n.e)}function Syn(n){n.b=new CD}function Jv(n,e){n.b=e-n.b}function Qv(n,e){n.a=e-n.a}function Bn(n,e){n.push(e)}function Pyn(n,e){n.sort(e)}function Iyn(n,e){e.jd(n.a)}function Kfe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function J9(n,e){n.e=e,e.b=n}function KG(n){uh(),this.a=n}function Oyn(n){uh(),this.a=n}function Dyn(n){uh(),this.a=n}function cD(n){m0(),this.a=n}function Lyn(n){O4(),VK.le(n)}function _G(){_G=F,new de}function Ua(){YTn.call(this)}function HG(){YTn.call(this)}function qG(){Ua.call(this)}function uD(){Ua.call(this)}function Nyn(){Ua.call(this)}function Q9(){Ua.call(this)}function Cu(){Ua.call(this)}function ip(){Ua.call(this)}function Pe(){Ua.call(this)}function Bo(){Ua.call(this)}function $yn(){Ua.call(this)}function nc(){Ua.call(this)}function xyn(){Ua.call(this)}function Fyn(){this.a=this}function xE(){this.Bb|=256}function Byn(){this.b=new GMn}function Pb(n,e){n.length=e}function FE(n,e){nn(n.a,e)}function Hfe(n,e){bnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uA(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function rp(n){jA(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function UG(n){this.a=B5e(n)}function ni(){this.a=new de}function Ryn(){this.a=new de}function GG(){this.a=new rCn}function BE(){this.a=new Z}function oD(){this.a=new Z}function zG(){this.a=new Z}function hs(){this.a=new cbn}function Ga(){this.a=new NLn}function XG(){this.a=new _U}function VG(){this.a=new TOn}function WG(){this.a=new BAn}function Kyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function JG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zOn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function QG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QIn.call(this)}function Yyn(){QIn.call(this)}function Zyn(){Z.call(this)}function YG(){qG.call(this)}function ZG(){BE.call(this)}function njn(){qC.call(this)}function ejn(){JG.call(this)}function Yv(){Tyn.call(this)}function sD(){Yv.call(this)}function cp(){Tyn.call(this)}function nz(){cp.call(this)}function tjn(){rz.call(this)}function ijn(){rz.call(this)}function rjn(){rz.call(this)}function cjn(){cz.call(this)}function Zv(){svn.call(this)}function ez(){svn.call(this)}function Mu(){Ct.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fD(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hD(){BX.call(this)}function tz(){de.call(this)}function lD(){BX.call(this)}function aD(){de.call(this)}function djn(){de.call(this)}function iz(){ME.call(this)}function bjn(){iz.call(this)}function wjn(){ME.call(this)}function gjn(){rG.call(this)}function rz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function cz(){this.a=new de}function up(){this.a=new Ct}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function uz(){this.a=new Z4n}function n6(){n6=F,KK=new Ht}function dD(){dD=F,_K=new Ejn}function bD(){bD=F,HK=new jjn}function jjn(){XO.call(this,"")}function Ejn(){XO.call(this,"")}function Cjn(n){S$n.call(this,n)}function Mjn(n){S$n.call(this,n)}function oz(n){fG.call(this,n)}function sz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){sz.call(this,n)}function Wfe(n){sz.call(this,n)}function Jfe(n){sz.call(this,n)}function Tjn(n){zN.call(this,n)}function Ajn(n){zN.call(this,n)}function Sjn(n){uSn.call(this,n)}function Pjn(n){Oz.call(this,n)}function e6(n){WE.call(this,n)}function fz(n){WE.call(this,n)}function Ijn(n){WE.call(this,n)}function hz(n){mje.call(this,n)}function lz(n){hz.call(this,n)}function ec(n){APn.call(this,n)}function Ojn(n){ec.call(this,n)}function op(){z9.call(this,{})}function Djn(){Djn=F,dQn=new M0n}function RE(){RE=F,GK=new STn}function Ljn(){Ljn=F,oun=new Bu}function az(){az=F,sun=new N1}function KE(){KE=F,P8=new $1}function wD(n){b4(),this.a=n}function gD(n){RQ(),this.a=n}function Qd(n){nN(),this.f=n}function pD(n){nN(),this.f=n}function Njn(n){bSn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mD(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Fjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function Y9(n){return Jn(n),n}function ihe(n){return new AE(n)}function rhe(n){return new qb(n)}function dz(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Ir(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function vD(n){APn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Rjn(n){ec.call(this,n)}function sp(n){ec.call(this,n)}function Kl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function nh(n){ec.call(this,n)}function kD(n){ec.call(this,n)}function Le(n){ec.call(this,n)}function Ku(n){Jn(n),this.a=n}function bz(n){return ld(n),n}function t6(n){TW(n,n.length)}function i6(n){return n.b==n.c}function Ib(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Kjn(n,e){n.be(e),e.ae(n)}function hp(n){uh(),this.a=Se(n)}function yD(){this.a=Oe(Se(ur))}function _jn(){throw M(new Pe)}function fhe(){throw M(new Pe)}function wz(){throw M(new Pe)}function Hjn(){throw M(new Pe)}function hhe(){throw M(new Pe)}function lhe(){throw M(new Pe)}function HE(){HE=F,O4()}function Hl(){X9.call(this,"")}function r6(){X9.call(this,"")}function x1(){X9.call(this,"")}function lp(){X9.call(this,"")}function gz(n){Ir.call(this,n)}function pz(n){Ir.call(this,n)}function eh(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jD(n){BC.call(this,n)}function ED(n){JX.call(this,n,0)}function CD(){sJ.call(this,12,3)}function T(n,e){return kOn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function mz(n,e){return n.a=e,n}function vz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function kz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function yz(n,e){return n.e=e,n}function Che(n,e){return n.f=e,n}function Mhe(n,e){n.b=!0,n.d=e}function The(n,e){return n.b-e.b}function Ahe(n,e){return n.g-e.g}function She(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Phe(n,e){return n?e-1:0}function Ihe(n,e){return n.s-e.s}function Ohe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function n0(n,e){return n.d=e,n}function e0(n,e){return n.e=e,n}function jz(n,e){return n.f=e,n}function c6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Sn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Dhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Lhe(n,e){ca(),ic(e,n)}function Nhe(n,e,t){Jbe(n.a,e,t)}function GE(n){$L.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){SIn.call(this,n)}function Ez(n){SIn.call(this,n)}function F1(n){S0.call(this,n)}function Jjn(n){CN.call(this,n)}function Qjn(n){CN.call(this,n)}function Yjn(){DX.call(this,"")}function Li(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Zb(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=F,TQn=Xke()}function B1(){B1=F,voe=rke()}function iEn(){iEn=F,Ti=gye()}function Cz(){Cz=F,Oa=z4()}function o4(){o4=F,Udn=cke()}function rEn(){rEn=F,ise=uke()}function Mz(){Mz=F,yc=tEe()}function uf(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rBn(n.b,e)}function MD(n){return n?n.d:null}function Fhe(n){return n?n.g:null}function Bhe(n){return n?n.i:null}function za(n){return ll(n),n.o}function fg(n,e){return n.a+=e,n}function TD(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function t0(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw M(new Pe)}function fEn(){throw M(new Pe)}function hEn(){throw M(new Pe)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function dEn(){throw M(new Pe)}function Ul(n){this.a=new iN(n)}function bEn(){this.a=new K5(Rln)}function wEn(){this.b=new K5(rln)}function gEn(){this.a=new K5(f1n)}function pEn(){this.b=new K5(Fq)}function mEn(){this.b=new K5(Fq)}function XE(n){this.a=0,this.b=n}function Az(n){zGn(),ILe(this,n)}function s4(n){return z1(n),n.a}function Z9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XTe(n,e)}function Pz(n,e,t){n.splice(e,t)}function hg(n,e){for(;n.Re(e););}function kEn(n){n.c?Dqn(n):Lqn(n)}function yEn(){throw M(new Pe)}function jEn(){throw M(new Pe)}function EEn(){throw M(new Pe)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function IEn(){throw M(new Pe)}function Rhe(){throw M(new nc)}function Khe(){throw M(new nc)}function n7(n){this.a=new OEn(n)}function OEn(n){Ume(this,n,jje())}function e7(n){return!n||oIn(n)}function t7(n){return Zf[n]!=-1}function _he(){cP!=0&&(cP=0),uP=-1}function DEn(){RK==null&&(RK=[])}function i7(n,e){Cg.call(this,n,e)}function f4(n,e){i7.call(this,n,e)}function LEn(n,e){this.a=n,this.b=e}function NEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function FEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function KEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function AD(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function i0(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){KX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Se(n),15)}function Oz(n){this.a=u(Se(n),15)}function JEn(n){this.a=u(Se(n),85)}function VE(n){this.b=u(Se(n),85)}function WE(n){this.b=u(Se(n),51)}function JE(){this.q=new y.Date}function SD(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function r7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nCn(n,e){return n.b.Hc(e)}function eCn(n,e){return n.c.uc(e)}function tCn(n,e){return rt(n.c,e)}function of(n,e){return n.a._b(e)}function iCn(n,e){return n>e&&e0}function ND(n,e){return Ec(n,e)<0}function vCn(n,e){return JL(n.a,e)}function ole(n,e){yOn.call(this,n,e)}function Bz(n){wN(),uSn.call(this,n)}function Rz(n,e){bPn(n,n.length,e)}function s7(n,e){HPn(n,n.length,e)}function d6(n,e){return n.a.get(e)}function kCn(n,e){return Zc(n.e,e)}function Kz(n){return Jn(n),!1}function _z(n){this.a=u(Se(n),229)}function cC(n){In.call(this,n,21)}function uC(n,e){je.call(this,n,e)}function $D(n,e){je.call(this,n,e)}function yCn(n,e){this.b=n,this.a=e}function oC(n,e){this.d=n,this.e=e}function jCn(n,e){this.a=n,this.b=e}function ECn(n,e){this.a=n,this.b=e}function CCn(n,e){this.a=n,this.b=e}function MCn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function TCn(n,e){this.b=n,this.a=e}function Hz(n,e){this.b=n,this.a=e}function qz(n,e){je.call(this,n,e)}function Uz(n,e){je.call(this,n,e)}function lg(n,e){je.call(this,n,e)}function xD(n,e){je.call(this,n,e)}function FD(n,e){je.call(this,n,e)}function BD(n,e){je.call(this,n,e)}function sC(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function fC(n,e){je.call(this,n,e)}function zz(n,e){this.b=n,this.a=e}function hC(n,e){je.call(this,n,e)}function ACn(n,e){this.b=n,this.a=e}function Xz(n,e){je.call(this,n,e)}function RD(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function b6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Au(n.c,e)}function dle(n,e){return Au(n.e,e)}function lC(n,e){je.call(this,n,e)}function aC(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function Vz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dC(n,e){je.call(this,n,e)}function SCn(n,e){this.a=n,this.b=e}function PCn(n,e){this.a=n,this.b=e}function ICn(n,e){this.a=n,this.b=e}function OCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.b=n,this.a=e}function $Cn(n,e){this.b=n,this.a=e}function Wz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xCn(n,e){this.e=n,this.d=e}function FCn(n,e){this.a=n,this.b=e}function BCn(n,e){this.a=n,this.b=e}function RCn(n,e){this.a=n,this.b=e}function KCn(n,e){this.b=n,this.a=e}function _Cn(n,e){this.b=e,this.c=n}function bC(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function KD(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function _D(n,e){je.call(this,n,e)}function HD(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function qD(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function v6(n,e){je.call(this,n,e)}function Db(n,e){je.call(this,n,e)}function UD(n,e){je.call(this,n,e)}function GD(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function a7(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function zD(n,e){je.call(this,n,e)}function wC(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function Lb(n,e){je.call(this,n,e)}function gC(n,e){je.call(this,n,e)}function nX(n,e){je.call(this,n,e)}function XD(n,e){je.call(this,n,e)}function VD(n,e){je.call(this,n,e)}function WD(n,e){je.call(this,n,e)}function JD(n,e){je.call(this,n,e)}function QD(n,e){je.call(this,n,e)}function YD(n,e){je.call(this,n,e)}function ZD(n,e){je.call(this,n,e)}function HCn(n,e){this.b=n,this.a=e}function eX(n,e){je.call(this,n,e)}function qCn(n,e){this.a=n,this.b=e}function UCn(n,e){this.a=n,this.b=e}function GCn(n,e){this.a=n,this.b=e}function tX(n,e){je.call(this,n,e)}function iX(n,e){je.call(this,n,e)}function zCn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function b7(n){return oe(n.a),n.b}function nL(n){return yCe(n,n.c),n}function XCn(){return tEn(),new TQn}function VCn(){VC(),this.a=new kV}function WCn(){OA(),this.a=new ni}function JCn(){NN(),this.b=new ni}function QCn(n,e){this.b=n,this.d=e}function YCn(n,e){this.a=n,this.b=e}function ZCn(n,e){this.a=n,this.b=e}function nMn(n,e){this.a=n,this.b=e}function eMn(n,e){this.b=n,this.a=e}function rX(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function pC(n,e){je.call(this,n,e)}function u0(n,e){je.call(this,n,e)}function eL(n,e){je.call(this,n,e)}function mC(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function tL(n,e){je.call(this,n,e)}function vC(n,e){je.call(this,n,e)}function iL(n,e){je.call(this,n,e)}function rL(n,e){je.call(this,n,e)}function cL(n,e){je.call(this,n,e)}function uL(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function oL(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function sL(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function aX(n,e){je.call(this,n,e)}function tMn(n,e){this.b=n,this.a=e}function iMn(n,e){this.b=n,this.a=e}function rMn(n,e){this.b=n,this.a=e}function cMn(n,e){this.b=n,this.a=e}function dX(n,e){this.a=n,this.b=e}function uMn(n,e){this.a=n,this.b=e}function oMn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function k6(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function fL(n,e){je.call(this,n,e)}function kC(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function hL(n,e){je.call(this,n,e)}function yC(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function k7(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function C6(n,e){je.call(this,n,e)}function y7(n,e){je.call(this,n,e)}function jC(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function lL(n,e){je.call(this,n,e)}function sMn(n,e){je.call(this,n,e)}function EC(n,e){je.call(this,n,e)}function fMn(n,e){this.a=n,this.b=e}function hMn(n,e){this.a=n,this.b=e}function lMn(n,e){this.a=n,this.b=e}function aMn(n,e){this.a=n,this.b=e}function dMn(n,e){this.a=n,this.b=e}function bMn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wMn(n,e){this.a=n,this.b=e}function gMn(n,e){this.a=n,this.b=e}function pMn(n,e){this.a=n,this.b=e}function mMn(n,e){this.a=n,this.b=e}function vMn(n,e){this.a=n,this.b=e}function kMn(n,e){this.a=n,this.b=e}function yMn(n,e){this.b=n,this.a=e}function jMn(n,e){this.b=n,this.a=e}function EMn(n,e){this.b=n,this.a=e}function CMn(n,e){this.b=n,this.a=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function CC(n,e){je.call(this,n,e)}function AMn(n,e){this.a=n,this.b=e}function SMn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function PMn(n,e){this.f=n,this.c=e}function bX(n,e){return Au(n.g,e)}function wle(n,e){return Au(e.b,n)}function IMn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Xe(hE,n,e)}function wX(n,e){n.i=null,kT(n,e)}function mle(n,e,t){yKn(e,oF(n,t))}function vle(n,e,t){yKn(e,oF(n,t))}function kle(n,e){VMe(n.a,u(e,58))}function OMn(n,e){U4e(n.a,u(e,12))}function MC(n,e){this.a=n,this.b=e}function DMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function $Mn(n,e){this.a=n,this.b=e}function xMn(n,e){this.d=n,this.b=e}function FMn(n,e){this.e=n,this.a=e}function j7(n,e){this.b=n,this.c=e}function gX(n,e){this.i=n,this.g=e}function pX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function TC(n){return Rk(n.c,n.b)}function Kr(n){return n?n.md():null}function x(n){return n??null}function Ai(n){return typeof n===nB}function Nb(n){return typeof n===i3}function $b(n){return typeof n===dtn}function o0(n,e){return Ec(n,e)==0}function AC(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function SC(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function BMn(n){return eo(n),n.d.gc()}function PC(n){return F6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function A6(n,e){return n.a+=""+e,n}function Dc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function mX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function RMn(n){Hu(this),f5(this,n)}function KMn(){oJ(),dW.call(this)}function _Mn(n,e){mW.call(this,n,e)}function HMn(n,e){mW.call(this,n,e)}function IC(n,e){mW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function wg(n,e){xt(n,e,n.a,n.a.a)}function vX(n){return Ln(n,0),null}function qMn(){this.b=0,this.a=!1}function UMn(){this.b=0,this.a=!1}function GMn(){this.b=new ap(Qb(12))}function zMn(){zMn=F,kYn=Ce(jx())}function XMn(){XMn=F,HZn=Ce(iqn())}function VMn(){VMn=F,lre=Ce(xxn())}function kX(){kX=F,_G(),fun=new de}function sf(n){return n.a=0,n.b=0,n}function WMn(n,e){return n.a=e.g+1,n}function aL(n,e){Kb.call(this,n,e)}function Mn(n,e){Dt.call(this,n,e)}function gg(n,e){gX.call(this,n,e)}function JMn(n,e){T7.call(this,n,e)}function dL(n,e){Y4.call(this,n,e)}function Ue(n,e){iC(),Xe(yO,n,e)}function QMn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Cle(n){return Se(n),new S6(n)}function YMn(n,e){return x(n)===x(e)}function ZMn(n,e){return n.a.a.a.cc(e)}function bL(n,e){return qo(n.a,0,e)}function yX(n){return Awe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Mle(n){return wi((Jn(n),n))}function nTn(n){return Yc(n.l,n.m,n.h)}function jX(n,e){return jc(n.a,e.a)}function Tle(n,e){return KPn(n.a,e.a)}function Ale(n,e){return bt(n.a,e.a)}function th(n,e){return n.indexOf(e)}function Sle(n,e){return n.j[e.p]==2}function s0(n,e){return n==e?0:n?1:-1}function OC(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===dtn}function Ple(n){return n==rb||n==Iw}function Ile(n){return n==rb||n==Pw}function eTn(n,e){return jc(n.g,e.g)}function EX(n){return qr(n.b.b,n,0)}function tTn(){rM.call(this,0,0,0,0)}function ih(){CG.call(this,new Ql)}function CX(n,e){F4(n,0,n.length,e)}function Ole(n,e){return nn(n.a,e),e}function Dle(n,e){return xs(),e.a+=n}function Lle(n,e){return xs(),e.a+=n}function Nle(n,e){return xs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return Mo(n.a,e),n}function iTn(n){this.a=XCn(),this.b=n}function rTn(n){this.a=XCn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GO.call(this)}function cTn(n){this.a=n,GO.call(this)}function mp(){Ho.call(this,0,0,0,0)}function DC(n){return Mo(new ii,n)}function uTn(n){return jM(u(n,123))}function fo(n){return n.vh()&&n.wh()}function pg(n){return n!=Jf&&n!=Sa}function hl(n){return n==Br||n==Xr}function mg(n){return n==us||n==Vf}function oTn(n){return n==S2||n==A2}function xle(n,e){return jc(n.g,e.g)}function sTn(n,e){return new Y4(e,n)}function Fle(n,e){return new Y4(e,n)}function TX(n){return rbe(n.b.Kc(),n.a)}function wL(n,e){um(n,e),G4(n,n.D)}function gL(n,e,t){aT(n,e),lT(n,t)}function vg(n,e,t){I0(n,e),P0(n,t)}function Ro(n,e,t){eu(n,e),tu(n,t)}function E7(n,e,t){_4(n,e),q4(n,t)}function C7(n,e,t){H4(n,e),U4(n,t)}function fTn(n,e,t){sV.call(this,n,e,t)}function AX(n){PMn.call(this,n,!0)}function hTn(){uC.call(this,"Tail",3)}function lTn(){uC.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function f0(n){rM.call(this,n,n,n,n)}function pL(n){n.c=K(ki,Fn,1,0,5,1)}function SX(n){return n.b&&xF(n),n.a}function PX(n){return n.b&&xF(n),n.c}function Ble(n,e){qf||(n.b=e)}function Rle(n,e){return n[n.length]=e}function Kle(n,e){return n[n.length]=e}function _le(n,e){return Yb(e,Af(n))}function Hle(n,e){return Yb(e,Af(n))}function qle(n,e){return pT(dN(n.d),e)}function Ule(n,e){return pT(dN(n.g),e)}function Gle(n,e){return pT(dN(n.j),e)}function Ni(n,e){Dt.call(this,n.b,e)}function zle(n,e){ve(Sc(n.a),DOn(e))}function Xle(n,e){ve(no(n.a),LOn(e))}function Vle(n,e,t){Ro(t,t.i+n,t.j+e)}function aTn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mL(n,e,t){return $t(n,e,t),t}function dTn(n){nu(n.Sf(),new D9n(n))}function kg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bTn(n){this.a=n,qV.call(this,n)}function Mf(){Mf=F,y.Math.log(2)}function Ko(){Ko=F,rl=(pCn(),Moe)}function wTn(){wTn=F,YH=new j5(aU)}function Ie(){Ie=F,new gTn,new Z}function gTn(){new de,new de,new de}function Qle(){throw M(new Kl(QJn))}function Yle(){throw M(new Kl(QJn))}function Zle(){throw M(new Kl(YJn))}function n1e(){throw M(new Kl(YJn))}function vL(n){this.a=n,VE.call(this,n)}function kL(n){this.a=n,VE.call(this,n)}function pTn(n,e){m0(),this.a=n,this.b=e}function e1e(n,e){Se(e),Tg(n).Jc(new Ru)}function Yt(n,e){QL(n.c,n.c.length,e)}function tc(n){return n.ae?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&OMn(e,n.a)}function i1e(n){Zi(n,null),Ii(n,null)}function r1e(n,e,t){return Xe(n.g,t,e)}function yg(n,e,t){return nZ(e,t,n.c)}function c1e(n,e,t){return Xe(n.k,t,e)}function u1e(n,e,t){return GOe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vTn(n){nJ.call(this),this.b=n}function DX(n){vV.call(this),this.a=n}function kTn(){uC.call(this,"Range",2)}function LC(n){this.b=n,this.a=new Z}function yTn(n){this.b=new $bn,this.a=n}function jTn(n){n.a=new OO,n.c=new OO}function ETn(n){n.a=new de,n.d=new de}function CTn(n){$N(n,null),xN(n,null)}function MTn(n,e){return XOe(n.a,e,null)}function s1e(n,e){return Xe(n.a,e.a,e)}function Ki(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cOe(n.c,n.b,e)}function O(n,e){return n!=null&&Tx(n,e)}function yL(n,e){return Yve(n.Kc(),e)!=-1}function NC(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Dn(),new eD(n))}function NX(n){this.a=n,de.call(this)}function TTn(){T7.call(this,null,null)}function ATn(){_C.call(this,null,null)}function STn(){je.call(this,"INSTANCE",0)}function PTn(){LZ(),this.a=new K5(Ion)}function ITn(n){return hh(n,0,n.length)}function l1e(n,e){return new VTn(n.Kc(),e)}function $X(n,e){return n.a.Bc(e)!=null}function OTn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function DTn(n,e){n.c&&(tW(e),rOn(e))}function b1e(n,e){n.q.setHours(e),G5(n,e)}function w1e(n,e){a0(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jL(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Tf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=IMe(e)}function EL(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(R(e.a))<=n}function y1e(n,e){return $(R(e.a))>=n}function j1e(n,e){return RJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function xb(n,e){return u(Lf(n.a,e),34)}function W1e(n,e){return ca(),Pn(n,e.e,e)}function J1e(n,e,t){return nC(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sAn(n){n.d=new cAn(n),n.e=new de}function fAn(){this.a=new C0,this.b=new C0}function hAn(n){this.c=n,this.a=1,this.b=1}function lAn(n){YF(),Syn(this),this.Ff(n)}function eae(n,e,t){YM(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jBn(n,t))}function a0(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function ZX(n,e){return n.a=e.a,n.b=e.b,n}function HC(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aAn(n){Ct.call(this),c5(this,n)}function dAn(){je.call(this,"GROW_TREE",0)}function bAn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Iu.call(this,n,e,t,2)}function rae(n,e,t){k5(Sc(n.a),e,DOn(t))}function wAn(n,e){a6(),T7.call(this,n,e)}function nV(n,e){Gl(),_C.call(this,n,e)}function gAn(n,e){Gl(),nV.call(this,n,e)}function pAn(n,e){Gl(),_C.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){k5(no(n.a),e,LOn(t))}function mAn(n){this.c=n,eu(n,0),tu(n,0)}function PL(n,e){Ko(),oM.call(this,n,e)}function vAn(n,e){Ko(),PL.call(this,n,e)}function eV(n,e){Ko(),PL.call(this,n,e)}function tV(n,e){Ko(),oM.call(this,n,e)}function kAn(n,e){Ko(),eV.call(this,n,e)}function yAn(n,e){Ko(),tV.call(this,n,e)}function jAn(n,e){Ko(),oM.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function iV(n,e,t){return qA(ak(n,e),t)}function IL(n,e){return na(n.e,u(e,54))}function fae(n){return n==null?null:NDe(n)}function hae(n){return n==null?null:Aje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return F6(n==null||Nb(n)),n}function R(n){return F6(n==null||$b(n)),n}function Oe(n){return F6(n==null||Ai(n)),n}function ll(n){n.o==null&&cMe(n)}function rV(n){if(!n)throw M(new Q9)}function dae(n){if(!n)throw M(new uD)}function oe(n){if(!n)throw M(new nc)}function Fb(n){if(!n)throw M(new Cu)}function EAn(n){if(!n)throw M(new Bo)}function m4(){m4=F,aE=new ujn,new ojn}function Mg(){Mg=F,O2=new lt("root")}function cV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e){i$.call(this,n),this.a=e}function sV(n,e,t){VM.call(this,n,e,t,null)}function CAn(n,e,t){VM.call(this,n,e,t,null)}function P7(n,e){this.c=n,h4.call(this,n,e)}function $6(n,e){this.a=n,P7.call(this,n,e)}function fV(n){this.q=new y.Date(id(n))}function MAn(n){return n>8?0:n+1}function TAn(n,e){qf||nn(n.a,e)}function wae(n,e){return o7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Lf(n.b,e),143)}function kae(n,e){return u(Lf(n.c,e),233)}function OL(n){return u(sn(n.a,n.b),294)}function AAn(n){return new V(n.c,n.d+n.a)}function SAn(n){return Jn(n),n?1231:1237}function PAn(n){return ko(),oTn(u(n,203))}function Bb(){Bb=F,ron=yn((go(),Gd))}function yae(n,e){e.a?MCe(n,e):EL(n.a,e.b)}function I7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function IAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function OAn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function hV(n,e,t){return t=So(n,e,6,t),t}function lV(n,e,t){return t=So(n,e,3,t),t}function aV(n,e,t){return t=So(n,e,9,t),t}function ch(n,e){return X7(e,xtn),n.f=e,n}function dV(n,e){return(e&et)%n.d.length}function DAn(n,e,t){return zen(n.c,n.b,e,t)}function LAn(n,e){this.c=n,S0.call(this,e)}function NAn(n,e){this.a=n,kyn.call(this,e)}function O7(n,e){this.a=n,kyn.call(this,e)}function Dt(n,e){lt.call(this,n),this.a=e}function bV(n,e){FG.call(this,n),this.a=e}function DL(n,e){FG.call(this,n),this.a=e}function jae(n){VY.call(this,0,0),this.f=n}function $An(n,e,t){return n.a+=hh(e,0,t),n}function D7(n){return!n.a&&(n.a=new C0n),n.a}function wV(n,e){var t;return t=n.e,n.e=e,t}function gV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function Rb(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function L7(n){n.b?L7(n.b):n.f.c.zc(n.e,n.d)}function xAn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Cae(n,e,t){Xa(),t9n(n,e.Ve(n.a,t))}function pV(n,e,t){return Pp(n,u(e,22),t)}function $s(n,e){return qE(new Array(e),n)}function Mae(n){return Ae(U1(n,32))^Ae(n)}function LL(n){return String.fromCharCode(n)}function Tae(n){return n==null?null:n.message}function Aae(n,e,t){return n.apply(e,t)}function Sae(n,e){var t;t=n[DB],t.call(n,e)}function Pae(n,e){var t;t=n[DB],t.call(n,e)}function Iae(n,e){return o7(),!Q4(e.d.i,n)}function mV(n,e,t,i){rM.call(this,n,e,t,i)}function FAn(){qC.call(this),this.a=new Li}function vV(){this.n=new Li,this.o=new Li}function BAn(){this.b=new Li,this.c=new Z}function RAn(){this.a=new Z,this.b=new Z}function KAn(){this.a=new _U,this.b=new Byn}function kV(){this.b=new Ql,this.a=new Ql}function _An(){this.b=new ni,this.a=new ni}function HAn(){this.b=new de,this.a=new de}function qAn(){this.b=new wEn,this.a=new H3n}function UAn(){this.a=new n8n,this.b=new Lpn}function GAn(){this.a=new Z,this.d=new Z}function qC(){this.n=new cp,this.i=new mp}function zAn(n){this.a=(Co(n,mw),new Gc(n))}function XAn(n){this.a=(Co(n,mw),new Gc(n))}function Oae(n){return n<100?null:new F1(n)}function Dae(n,e){return n.n.a=(Jn(e),e+10)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return e==n||km(TA(e),n)}function VAn(n,e){return Xe(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return Pb(n.j.c,0),n.a=-1,n}function yV(n,e,t){return t=So(n,e,11,t),t}function Fae(n,e,t){t!=null&&mT(e,Fx(n,t))}function Bae(n,e,t){t!=null&&vT(e,Fx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function jV(n,e,t,i){q.call(this,n,e,t,i)}function WAn(n,e,t,i){jV.call(this,n,e,t,i)}function JAn(n,e,t,i){bM.call(this,n,e,t,i)}function NL(n,e,t,i){bM.call(this,n,e,t,i)}function EV(n,e,t,i){bM.call(this,n,e,t,i)}function QAn(n,e,t,i){NL.call(this,n,e,t,i)}function CV(n,e,t,i){NL.call(this,n,e,t,i)}function Nn(n,e,t,i){EV.call(this,n,e,t,i)}function YAn(n,e,t,i){CV.call(this,n,e,t,i)}function ZAn(n,e,t,i){jW.call(this,n,e,t,i)}function Kb(n,e){Ir.call(this,k8+n+Td+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nSn(n,e){return Jn(n),x(n)===x(e)}function An(n,e){return Jn(n),x(n)===x(e)}function Rae(n,e){return n.b.Bd(new ECn(n,e))}function Kae(n,e){return n.b.Bd(new CCn(n,e))}function eSn(n,e){return n.b.Bd(new MCn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function AV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Cj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tSn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oN.call(this,n,e)}function iSn(n,e,t){this.a=n,JX.call(this,e,t)}function rSn(n){this.c=n,IC.call(this,Ey,0)}function cSn(n,e,t){this.c=e,this.b=t,this.a=n}function N7(n){k4(),this.d=n,this.a=new Eg}function uSn(n){uh(),this.a=(Dn(),new r4(n))}function Wae(n,e){hl(n.f)?QCe(n,e):Sye(n,e)}function oSn(n,e){sbe.call(this,n,n.length,e)}function Jae(n,e){qf||e&&(n.d=e)}function sSn(n,e){return O(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UC(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return PKn(n,u(e,343),t)}function fSn(n,e,t){return _ye(n,u(e,343),t)}function x6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $b(n)?(Jn(n),n):n.ue()}function GC(n){return!isNaN(n)&&!isFinite(n)}function $L(n){jTn(this),vo(this),Bi(this,n)}function _u(n){pL(this),zV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hSn(n,e,t){this.a=n,this.b=e,this.c=t}function lSn(n,e,t){this.d=n,this.b=t,this.a=e}function aSn(n){this.a=n,fl(),vc(Date.now())}function dSn(n){bo(n.a),GJ(n.c,n.b),n.b=null}function xL(){xL=F,Oun=new $0n,AQn=new x0n}function bSn(){bSn=F,Ioe=K(ki,Fn,1,0,5,1)}function wSn(){wSn=F,Voe=K(ki,Fn,1,0,5,1)}function OV(){OV=F,Woe=K(ki,Fn,1,0,5,1)}function uh(){uh=F,new KG((Dn(),Dn(),sr))}function nde(n){return B4(),Ee((yNn(),IQn),n)}function ede(n){return Gu(),Ee((lNn(),xQn),n)}function tde(n){return YT(),Ee((JDn(),HQn),n)}function ide(n){return cT(),Ee((QDn(),qQn),n)}function rde(n){return NA(),Ee((Jxn(),UQn),n)}function cde(n){return bf(),Ee((fNn(),XQn),n)}function ude(n){return Uu(),Ee((sNn(),WQn),n)}function ode(n){return bu(),Ee((hNn(),QQn),n)}function sde(n){return VA(),Ee((zMn(),kYn),n)}function fde(n){return N0(),Ee((ENn(),jYn),n)}function hde(n){return Vp(),Ee((MNn(),CYn),n)}function lde(n){return A5(),Ee((CNn(),AYn),n)}function ade(n){return YE(),Ee((jDn(),SYn),n)}function dde(n){return uT(),Ee((YDn(),GYn),n)}function bde(n){return i5(),Ee((aNn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((ANn(),TZn),n)}function pde(n){return dd(),Ee((TNn(),DZn),n)}function DV(n,e){if(!n)throw M(new Gn(e))}function v4(n){if(!n)throw M(new Or(btn))}function FL(n,e){if(n!=e)throw M(new Bo)}function gSn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pSn(n,e,t){this.a=n,this.b=e,this.c=t}function zC(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function $V(n,e,t){this.a=n,this.b=e,this.c=t}function XC(n,e,t){this.e=e,this.b=n,this.d=t}function mSn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Xa(),n.a.Yd(e,t),e}function BL(n){var e;return e=new ubn,e.e=n,e}function xV(n){var e;return e=new qyn,e.b=n,e}function $7(){$7=F,CP=new sgn,MP=new fgn}function VC(){VC=F,XZn=new xgn,zZn=new Fgn}function xs(){xs=F,YZn=new G2n,ZZn=new z2n}function vde(n){return D0(),Ee((qLn(),fne),n)}function kde(n){return tr(),Ee((XMn(),HZn),n)}function yde(n){return OT(),Ee((PNn(),GZn),n)}function jde(n){return $f(),Ee((SNn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Cde(n){return DA(),Ee(($xn(),hne),n)}function Mde(n){return Yp(),Ee((D$n(),lne),n)}function Tde(n){return QM(),Ee((cLn(),ane),n)}function Ade(n){return u5(),Ee((_Ln(),dne),n)}function Sde(n){return bT(),Ee((HLn(),bne),n)}function Pde(n){return o1(),Ee((s$n(),wne),n)}function Ide(n){return pk(),Ee((eLn(),gne),n)}function Ode(n){return jm(),Ee(($$n(),jne),n)}function Dde(n){return pr(),Ee((aFn(),Ene),n)}function Lde(n){return Z4(),Ee((GLn(),Cne),n)}function Nde(n){return vl(),Ee((zLn(),Tne),n)}function $de(n){return KM(),Ee((nLn(),Ane),n)}function xde(n){return Jk(),Ee((N$n(),yne),n)}function Fde(n){return hd(),Ee((ULn(),mne),n)}function Bde(n){return vA(),Ee((L$n(),vne),n)}function Rde(n){return hk(),Ee((tLn(),kne),n)}function Kde(n){return Yo(),Ee((h$n(),Sne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return g5(),Ee((XLn(),Zte),n)}function qde(n){return cw(),Ee((INn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return gs(),Ee((dFn(),tie),n)}function zde(n){return lh(),Ee((ONn(),iie),n)}function Xde(n){return wk(),Ee((iLn(),rie),n)}function Vde(n){return gr(),Ee((JLn(),uie),n)}function Wde(n){return ST(),Ee((VLn(),oie),n)}function Jde(n){return d5(),Ee((WLn(),sie),n)}function Qde(n){return om(),Ee((QLn(),fie),n)}function Yde(n){return dT(),Ee((YLn(),hie),n)}function Zde(n){return DT(),Ee((ZLn(),lie),n)}function n0e(n){return O0(),Ee((oNn(),Aie),n)}function e0e(n){return n5(),Ee((rLn(),Die),n)}function t0e(n){return sh(),Ee((sLn(),Rie),n)}function i0e(n){return Sf(),Ee((fLn(),_ie),n)}function r0e(n){return lf(),Ee((hLn(),tre),n)}function c0e(n){return M0(),Ee((lLn(),fre),n)}function u0e(n){return Qp(),Ee((BNn(),hre),n)}function o0e(n){return q5(),Ee((VMn(),lre),n)}function s0e(n){return b5(),Ee((nNn(),are),n)}function f0e(n){return w5(),Ee((FNn(),$re),n)}function h0e(n){return FM(),Ee((uLn(),xre),n)}function l0e(n){return yT(),Ee((oLn(),_re),n)}function a0e(n){return wA(),Ee((l$n(),qre),n)}function d0e(n){return Ok(),Ee((eNn(),Gre),n)}function b0e(n){return ZM(),Ee((aLn(),Ure),n)}function w0e(n){return sA(),Ee((xNn(),lce),n)}function g0e(n){return AT(),Ee((tNn(),ace),n)}function p0e(n){return XT(),Ee((iNn(),dce),n)}function m0e(n){return rA(),Ee((rNn(),wce),n)}function v0e(n){return _T(),Ee((cNn(),mce),n)}function k0e(n){return GM(),Ee((dLn(),Rce),n)}function y0e(n){return V4(),Ee((ZDn(),_Zn),n)}function j0e(n){return Vn(),Ee((x$n(),xZn),n)}function E0e(n){return nT(),Ee((uNn(),Kce),n)}function C0e(n){return N$(),Ee((bLn(),_ce),n)}function M0e(n){return R5(),Ee((a$n(),qce),n)}function T0e(n){return eC(),Ee((IDn(),Gce),n)}function A0e(n){return Fk(),Ee((bNn(),Uce),n)}function S0e(n){return tC(),Ee((ODn(),Xce),n)}function P0e(n){return ck(),Ee((wLn(),Vce),n)}function I0e(n){return Yk(),Ee((d$n(),Wce),n)}function O0e(n){return f6(),Ee((DDn(),lue),n)}function D0e(n){return Ak(),Ee((gLn(),aue),n)}function L0e(n){return gf(),Ee((w$n(),mue),n)}function N0e(n){return l1(),Ee((Lxn(),kue),n)}function $0e(n){return Rh(),Ee((F$n(),yue),n)}function x0e(n){return wd(),Ee((B$n(),Aue),n)}function F0e(n){return ci(),Ee((b$n(),zue),n)}function B0e(n){return Nf(),Ee((wNn(),Xue),n)}function R0e(n){return El(),Ee((RNn(),Vue),n)}function K0e(n){return pA(),Ee((R$n(),Wue),n)}function _0e(n){return jl(),Ee((dNn(),Que),n)}function H0e(n){return To(),Ee((KNn(),Zue),n)}function q0e(n){return lw(),Ee((Wxn(),noe),n)}function U0e(n){return Fg(),Ee((g$n(),eoe),n)}function G0e(n){return Oi(),Ee((K$n(),toe),n)}function z0e(n){return zu(),Ee((_$n(),ioe),n)}function X0e(n){return tn(),Ee((p$n(),roe),n)}function V0e(n){return go(),Ee((_Nn(),foe),n)}function W0e(n){return io(),Ee((Vxn(),hoe),n)}function J0e(n){return Gp(),Ee((gNn(),loe),n)}function Q0e(n,e){return Jn(n),n+(Jn(e),e)}function Y0e(n){return RL(),Ee((pLn(),aoe),n)}function Z0e(n){return qT(),Ee((HNn(),doe),n)}function nbe(n){return LT(),Ee((qNn(),goe),n)}function k4(){k4=F,tln=(tn(),Wn),II=Zn}function RL(){RL=F,vdn=new VSn,kdn=new LPn}function ebe(n){return!n.e&&(n.e=new Z),n.e}function KL(n,e){this.c=n,this.a=e,this.b=e-n}function vSn(n,e,t){this.a=n,this.b=e,this.c=t}function _L(n,e,t){this.a=n,this.b=e,this.c=t}function FV(n,e,t){this.a=n,this.b=e,this.c=t}function BV(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function ySn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jSn(n,e,t){Ko(),tJ.call(this,n,e,t)}function HL(n,e,t){Ko(),RW.call(this,n,e,t)}function RV(n,e,t){Ko(),RW.call(this,n,e,t)}function KV(n,e,t){Ko(),RW.call(this,n,e,t)}function ESn(n,e,t){Ko(),HL.call(this,n,e,t)}function _V(n,e,t){Ko(),HL.call(this,n,e,t)}function CSn(n,e,t){Ko(),_V.call(this,n,e,t)}function MSn(n,e,t){Ko(),RV.call(this,n,e,t)}function TSn(n,e,t){Ko(),KV.call(this,n,e,t)}function qL(n){rM.call(this,n.d,n.c,n.a,n.b)}function HV(n){rM.call(this,n.d,n.c,n.a,n.b)}function qV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function tbe(n){return Cm(),Ee((Nxn(),Poe),n)}function x7(n,e){return Se(n),Se(e),new NEn(n,e)}function Cp(n,e){return Se(n),Se(e),new RSn(n,e)}function ibe(n,e){return Se(n),Se(e),new KSn(n,e)}function rbe(n,e){return Se(n),Se(e),new qEn(n,e)}function UL(n){return oe(n.b!=0),Xo(n,n.a.a)}function cbe(n){return oe(n.b!=0),Xo(n,n.c.b)}function ube(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function obe(n){var e;return e=new ni,b$(e,n),e}function ASn(n){var e;return e=new GG,A$(e,n),e}function F7(n){var e;return e=new Ct,A$(e,n),e}function u(n,e){return F6(n==null||Tx(n,e)),n}function sbe(n,e,t){TPn.call(this,e,t),this.a=n}function SSn(n,e){this.c=n,this.b=e,this.a=!1}function PSn(){this.a=";,;",this.b="",this.c=""}function ISn(n,e,t){this.b=n,_Mn.call(this,e,t)}function UV(n,e,t){this.c=n,oC.call(this,e,t)}function GV(n,e,t){d4.call(this,n,e),this.b=t}function zV(n,e,t){Bnn(t,0,n,e,t.length,!1)}function Lh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function XV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function fbe(n,e){e&&(n.b=e,n.a=(z1(e),e.a))}function B7(n,e){if(!n)throw M(new Gn(e))}function Mp(n,e){if(!n)throw M(new Or(e))}function VV(n,e){if(!n)throw M(new Bjn(e))}function hbe(n,e){return ZE(),jc(n.d.p,e.d.p)}function lbe(n,e){return kl(),bt(n.e.b,e.e.b)}function abe(n,e){return kl(),bt(n.e.a,e.e.a)}function dbe(n,e){return jc(GSn(n.d),GSn(e.d))}function WC(n,e){return e&&vM(n,e.d)?e:null}function bbe(n,e){return e==(tn(),Wn)?n.c:n.d}function WV(n){return Q1(dwe(Vr(n)?ds(n):n))}function wbe(n){return new V(n.c+n.b,n.d+n.a)}function OSn(n){return n!=null&&!lx(n,N9,$9)}function gbe(n,e){return(fBn(n)<<4|fBn(e))&ui}function DSn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function JV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function QV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function pbe(n,e){var t;return t=n.c,PQ(n,e),t}function YV(n,e){return e<0?n.g=-1:n.g=e,n}function JC(n,e){return Mme(n),n.a*=e,n.b*=e,n}function LSn(n,e,t){A$n.call(this,e,t),this.d=n}function R7(n,e,t){pX.call(this,n,e),this.c=t}function QC(n,e,t){pX.call(this,n,e),this.c=t}function ZV(n){OV(),ME.call(this),this.ci(n)}function NSn(){$4(),Bwe.call(this,(R1(),Ss))}function $Sn(n){return nt(),new Nh(0,n)}function xSn(){xSn=F,AU=(Dn(),new nD(IK))}function YC(){YC=F,new hZ((bD(),HK),(dD(),_K))}function FSn(){FSn=F,pun=K(Gi,J,17,256,0,1)}function BSn(){this.b=$(R(rn((qs(),y_))))}function GL(n){this.b=n,this.a=Wa(this.b.a).Od()}function RSn(n,e){this.b=n,this.a=e,GO.call(this)}function KSn(n,e){this.a=n,this.b=e,GO.call(this)}function _Sn(n,e,t){this.a=n,gg.call(this,e,t)}function HSn(n,e,t){this.a=n,gg.call(this,e,t)}function j4(n,e,t){var i;i=new qb(t),df(n,e,i)}function nW(n,e,t){var i;return i=n[e],n[e]=t,i}function ZC(n){var e;return e=n.slice(),o$(e,n)}function nM(n){var e;return e=n.n,n.a.b+e.d+e.a}function qSn(n){var e;return e=n.n,n.e.b+e.d+e.a}function eW(n){var e;return e=n.n,n.e.a+e.b+e.c}function tW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function xe(n,e){return xt(n,e,n.c.b,n.c),!0}function mbe(n){return n.a?n.a:vN(n)}function vbe(n){return Lp(),Kh(n)==At(ia(n))}function kbe(n){return Lp(),ia(n)==At(Kh(n))}function d0(n,e){return O5(n,new d4(e.a,e.b))}function ybe(n,e){return yM(),Nx(n,e),new lIn(n,e)}function jbe(n,e){return n.c=e)throw M(new YG)}function _b(n,e){return $k(n,(Jn(e),new a9n(e)))}function Ap(n,e){return $k(n,(Jn(e),new d9n(e)))}function SPn(n,e,t){return VLe(n,u(e,12),u(t,12))}function PPn(n){return Ou(),u(n,12).g.c.length!=0}function IPn(n){return Ou(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jDe(n)}function fwe(n,e,t){e.qf(t,$(R(ee(n.b,t)))*n.a)}function OPn(n,e,t){return Xg(),W4(n,e)&&W4(n,t)}function _6(n){return zu(),!n.Hc(Fl)&&!n.Hc(Pa)}function hwe(n){return n.e?qJ(n.e):null}function H6(n){return Vr(n)?""+n:$qn(n)}function yW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,oW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Ci(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function q6(n,e,t,i,r){ok.call(this,n,e,t,i,r,-1)}function bM(n,e,t,i){R7.call(this,n,e,t),this.b=i}function DPn(n){PMn.call(this,n,!1),this.a=!1}function LPn(){sMn.call(this,"LOOKAHEAD_LAYOUT",1)}function NPn(n){this.b=n,kp.call(this,n),RTn(this)}function $Pn(n){this.b=n,A7.call(this,n),KTn(this)}function Hb(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function jW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xPn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function FPn(n){this.a=kRn(n.a),this.b=new _u(n.b)}function EW(n,e){m0(),Hhe.call(this,n,FT(new Ku(e)))}function wM(n,e){return nt(),new BW(n,e,0)}function rN(n,e){return nt(),new BW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Ai(e)?AN(n,e):!!wr(n.f,e)}function cN(n,e){return e.Vh()?na(n.b,u(e,54)):e}function awe(n,e){return An(n.substr(0,e.length),e)}function $h(n){return new te(new UX(n.a.length,n.a))}function gM(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Il)}function uN(n){return typeof n===vy||typeof n===eB}function Hu(n){n.f=new iTn(n),n.i=new rTn(n),++n.g}function BPn(n){if(!n)throw M(new nc);return n.d}function Sp(n){var e;return e=a5(n),oe(e!=null),e}function bwe(n){var e;return e=I5e(n),oe(e!=null),e}function C4(n,e){var t;return t=n.a.gc(),BJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function _7(n,e){return n.a.zc(e,(_n(),wa))==null}function CW(n){return new Tn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Pp(n,e,t){return Ks(n.a,e),nW(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function B(n,e,t,i){xFn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r0?y.Math.log(n/e):-100}function KPn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function H7(n,e){OTn(n,O(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw M(new sp(e))}function vwe(n,e){return yme(e,n.length),new XSn(n,e)}function IW(n,e){return e?Bi(n,e):!1}function kwe(){return RE(),S(T(uQn,1),G,549,0,[GK])}function G6(n){return n.e==0?n:new Qa(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function q7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _Pn(n,e){return n.c?_Pn(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=Jb(n,e),qN(n,e,t),i}function HPn(n,e,t){var i;for(i=0;i=n.g}function $t(n,e,t){return dae(t==null||oPe(n,t)),n[e]=t}function $W(n,e){return zn(e,n.length+1),n.substr(e)}function gN(n,e){for(Jn(e);n.c=n?new Dz:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function KW(n){return O(n,616)?n:new oOn(n)}function z1(n){n.c?z1(n.c):(ea(n),n.d=!0)}function V6(n){n.c?n.c.$e():(n.d=!0,fTe(n))}function sIn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fIn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hIn(n,e){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function mIn(n,e){var t;return t=new Lc(n),Bn(e.c,t),t}function vIn(n,e){n.u.Hc((zu(),Fl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Cr(n,e){return JL(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(T(oon,1),G,489,0,[b_])}function ege(){return eC(),S(T($1n,1),G,490,0,[Bq])}function tge(){return tC(),S(T(zce,1),G,558,0,[Rq])}function ige(){return f6(),S(T(tan,1),G,539,0,[Hj])}function jM(n){return!n.n&&(n.n=new q(Ar,n,1,7)),n.n}function mN(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function UW(n){return!n.c&&(n.c=new Nn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Nn(he,n,4,7)),n.b}function U7(n){return n.j.c.length=0,zW(n.c),xae(n.a),n}function P4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function G7(n){return n.f==rv&&Cfe(n,q7e(n.g,n.b)),n.f}function Ve(n,e,t,i){return Hxn(n,e,t,!1),BT(n,i),n}function kIn(n,e){this.b=n,oN.call(this,n,e),RTn(this)}function yIn(n,e){this.b=n,SV.call(this,n,e),KTn(this)}function W6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function GW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ea(n),new Tn(n,new tQ(e,n.a))}function _r(n,e){return ea(n),new Tn(n,new _J(e,n.a))}function Ub(n,e){return ea(n),new uV(n,new ILn(e,n.a))}function EM(n,e){return ea(n),new oV(n,new OLn(e,n.a))}function oge(n,e){return new GIn(u(Se(n),50),u(Se(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jIn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return $z(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&r7(jO,n.toLowerCase())}function zW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Tg(n){var e;return e=n.b,!e&&(n.b=e=new N8n(n)),e}function vN(n){var e;return e=Wme(n),e||null}function EIn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wIe(n.a,t),zve(t),xCe(n.b,t),$Ie(e,t)}function CM(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function XW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function CIn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function MIn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kN(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function TIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yN(n,e,t){this.a=ktn,this.d=n,this.b=e,this.c=t}function Op(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function AIn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function SIn(n){this.a=new Z,this.e=K(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function PIn(){ec.call(this,"There is no more element.")}function IIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function OIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function DIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function LIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function NIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function jN(n,e,t){var i,r;return i=utn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),K4(t,n),t}function EN(n){var e,t;return t=(e=new Jd,e),fnn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),HQ(e,t),null}function $In(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xIn(n){return F6(n==null||uN(n)&&n.Tm!==J2),n}function MM(n){return n.n&&(n.e!==Fzn&&n.je(),n.j=null),n}function I4(n){if(eo(n.d),n.d.d!=n.c)throw M(new Bo)}function VW(n){return oe(n.b0&&bKn(this)}function FIn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function pge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function mge(n){return _0(n)&&on(un(z(n,(cn(),Nd))))}function vge(n,e){return Pn(n,u(v(e,(cn(),Cv)),17),e)}function kge(n,e){return u(v(n,(W(),T3)),15).Fc(e),e}function WW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function BIn(n,e,t,i){this.b=n,this.c=i,IC.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yFn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jFn(n,e,t)}function Ege(n,e,t){return s6(),J5e(u(ee(n.e,e),529),t)}function Dp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function RIn(n,e){return xg(n.j,e.s,e.c)+xg(e.e,n.s,n.c)}function KIn(n,e){n.e&&!n.e.a&&(Ayn(n.e,e),KIn(n.e,e))}function _In(n,e){n.d&&!n.d.a&&(Ayn(n.d,e),_In(n.d,e))}function Cge(n,e){return-bt(Su(n)*ao(n),Su(e)*ao(e))}function Mge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HIn(){tF(this,new oG),this.wb=(G1(),Hn),o4()}function qIn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function JW(n,e){new Ct,this.a=new Mu,this.b=n,this.c=e}function j0(){j0=F,Pun=new FU,ZK=new FU,Iun=new D0n}function Dn(){Dn=F,sr=new A0n,Wh=new P0n,hP=new I0n}function QW(){QW=F,RQn=new nbn,_Qn=new aW,KQn=new ebn}function Lp(){Lp=F,mP=new Z,m_=new de,p_=new Z}function TM(n,e){if(n==null)throw M(new sp(e));return n}function AM(n){return!n.a&&(n.a=new q(Qe,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(As,n,11,10)),n.q}function _(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Tge(n){return Se(n),IRn(new te(re(n.a.Kc(),new En)))}function Age(n,e){return wo(n),wo(e),Fjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new AE(i),df(n,e,r)}function MN(n,e,t,i,r,c){ok.call(this,n,e,t,i,r,c?-2:-1)}function UIn(n,e,t,i){pX.call(this,e,t),this.b=n,this.a=i}function GIn(n,e){Vfe.call(this,new iN(n)),this.a=n,this.b=e}function YW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Sge(n){xs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function O4(){O4=F;var n,e;e=!$8e(),n=new V3,VK=e?new og:n}function TN(n){return Dn(),O(n,59)?new jD(n):new BC(n)}function SM(n){return O(n,16)?new B6(u(n,16)):obe(n.Kc())}function Pge(n){return new HTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Ige(n){return new qTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function ZW(n){return n&&n.hashCode?n.hashCode():l0(n)}function AN(n,e){return e==null?!!wr(n.f,null):zbe(n.i,e)}function Oge(n,e){var t;return t=$X(n.a,e),t&&(e.d=null),t}function zIn(n,e,t){return n.f?n.f.ef(e,t):!1}function z7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function SN(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Dge(n,e,t){return $(R(t.a))<=n&&$(R(t.b))>=e}function XIn(n,e){this.g=n,this.d=S(T(Qh,1),b1,10,0,[e])}function VIn(n){this.c=n,this.b=new Ul(u(Se(new tbn),50))}function WIn(n){this.c=n,this.b=new Ul(u(Se(new ewn),50))}function JIn(n){this.b=n,this.a=new Ul(u(Se(new Nbn),50))}function QIn(){this.b=new ni,this.d=new Ct,this.e=new ZG}function nJ(){this.c=new Li,this.d=new Li,this.e=new Li}function E0(){this.a=new Mu,this.b=(Co(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function PM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function X1(n,e,t,i,r,c,s){return new GN(n.e,e,t,i,r,c,s)}function Lge(n,e,t){return t>=0&&An(n.substr(t,e.length),e)}function nOn(n,e){return O(e,149)&&An(n.b,u(e,149).Pg())}function Nge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eOn(n,e){var t;return t=n.b.Qc(e),WDn(t,n.b.gc()),t}function X7(n,e){if(n==null)throw M(new sp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new NAn(n,n)),n.u}function PN(n){this.a=(Dn(),O(n,59)?new jD(n):new BC(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function IM(n,e){var t;return t=za(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Fi(e,t,n.length),n.substr(e,t-e)}function tOn(n,e){qC.call(this),lQ(this),this.a=n,this.c=e}function $ge(n){n&&IM(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Fge(){return YT(),S(T(Bun,1),G,436,0,[o_,Fun])}function Bge(){return cT(),S(T(Kun,1),G,435,0,[Run,s_])}function Rge(){return uT(),S(T(bon,1),G,432,0,[v_,vP])}function Kge(){return V4(),S(T(KZn,1),G,517,0,[dj,L_])}function _ge(){return KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])}function Hge(){return pk(),S(T($sn,1),G,428,0,[WP,Nsn])}function qge(){return QM(),S(T(Asn,1),G,431,0,[Tsn,V_])}function Uge(){return wk(),S(T(qhn,1),G,430,0,[UH,GH])}function Gge(){return n5(),S(T(Oie,1),G,531,0,[r9,i9])}function zge(){return yT(),S(T(Rln,1),G,501,0,[RI,D2])}function Xge(){return sh(),S(T(Bie,1),G,523,0,[mb,y1])}function Vge(){return Sf(),S(T(Kie,1),G,522,0,[Rd,zf])}function Wge(){return lf(),S(T(ere,1),G,528,0,[zw,ja])}function Jge(){return hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])}function Qge(){return GM(),S(T(S1n,1),G,491,0,[$q,A1n])}function Yge(){return N$(),S(T(N1n,1),G,492,0,[D1n,L1n])}function Zge(){return FM(),S(T(Bln,1),G,433,0,[dq,Fln])}function n2e(){return ZM(),S(T(_ln,1),G,434,0,[Kln,vq])}function e2e(){return M0(),S(T(sre,1),G,465,0,[Ea,P2])}function t2e(){return ck(),S(T(x1n,1),G,438,0,[Kq,JI])}function i2e(){return Ak(),S(T(ran,1),G,437,0,[YI,ian])}function r2e(){return RL(),S(T(dO,1),G,347,0,[vdn,kdn])}function OM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function V7(n){return n.b.b==0?n.a.sf():UL(n.b)}function c2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.f)}function u2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.k)}function eJ(n){return x(n.a)===x((D$(),CU))&&rOe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function iOn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,F7(e))}function C0(){Wfe.call(this,new ap(Qb(12))),KX(!0),this.a=2}function IN(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function tJ(n,e,t){Ko(),LE.call(this,e),this.a=n,this.b=t}function rOn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Nc(n,e){return e==null?Kr(wr(n.f,null)):d6(n.i,e)}function cOn(n,e,t,i,r){return new rF(n,(B4(),i_),e,t,i,r)}function DM(n,e){return zDn(e),Lme(n,K(ye,Ke,28,e,15,1),e)}function LM(n,e){return TM(n,"set1"),TM(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=XK[n.charCodeAt(0)];return t??n}function uOn(n,e){var t,i;return t=e,i=new DO,LGn(n,t,i),i.d}function ON(n,e,t,i){var r;r=new FAn,e.a[t.g]=r,Pp(n.b,i,r)}function l2e(n,e){var t;return t=Ime(n.f,e),tt(HC(t),n.f.d)}function W7(n){var e;_me(n.a),dTn(n.a),e=new IE(n.a),HY(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Lp(),n==At(Kh(e))||n==At(ia(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Sh)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oOn(n){this.a=u(Se(n),277),this.b=(Dn(),new XX(n))}function sOn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function iJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function NM(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fOn(n){qC.call(this),lQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rP[e]}function J7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Af(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function M0(){M0=F,Ea=new cX(s3,0),P2=new cX(f3,1)}function sh(){sh=F,mb=new tX(f3,0),y1=new tX(s3,1)}function Sf(){Sf=F,Rd=new iX(_B,0),zf=new iX("UP",1)}function lOn(){lOn=F,oQn=Ce((RE(),S(T(uQn,1),G,549,0,[GK])))}function aOn(n){var e;return e=new zE(Qb(n.length)),eY(e,n),e}function dOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw M(new ip);return F8e(n,e)}function Q7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),G5(n,t)}function rJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):ten(n,e,t)}function bOn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hF(n,e)}function wOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function DN(n,e,t){var i;i=vFn(n,e,t),n.b=new ET(i.c.length)}function Ag(n,e,t){$M(),n&&Xe(yU,n,e),n&&Xe(hE,n,t)}function m2e(n,e){return VC(),_n(),u(e.a,17).a0}function cJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gOn(n,e){var t;return t=new fW(e),_Kn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw M(new Cu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw M(new Cu);return M6(n.k,0)}function pOn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function D4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function At(n){return n.Db>>16!=11?null:u(n.Cb,27)}function Gb(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function uJ(n){var e;return ea(n),e=new ni,ut(n,new M9n(e))}function kOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),G5(n,t)}function yOn(n,e){xC(this),this.f=e,this.g=n,MM(this),this.je()}function jOn(n,e){this.a=n,this.c=Ki(this.a),this.b=new PM(e)}function EOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function COn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function MOn(n){this.a=n,this.b=K(Sie,J,2043,n.e.length,0,2)}function TOn(){this.a=new ih,this.e=new ni,this.g=0,this.i=0}function $M(){$M=F,yU=new de,hE=new de,ple(MQn,new wvn)}function AOn(){AOn=F,aie=Pu(new ii,(Vi(),zr),(tr(),bj))}function oJ(){oJ=F,die=Pu(new ii,(Vi(),zr),(tr(),bj))}function SOn(){SOn=F,wie=Pu(new ii,(Vi(),zr),(tr(),bj))}function POn(){POn=F,Lie=Re(new ii,(Vi(),zr),(tr(),x8))}function ko(){ko=F,xie=Re(new ii,(Vi(),zr),(tr(),x8))}function IOn(){IOn=F,Fie=Re(new ii,(Vi(),zr),(tr(),x8))}function NN(){NN=F,Hie=Re(new ii,(Vi(),zr),(tr(),x8))}function J6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Dr(n,e,t){return e==null?Vc(n.f,null,t):$0(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Ii(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $N(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xN(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function OOn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function C2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function M2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function T2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xM(n,e){O(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function FN(n,e){O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function A2e(n,e){LY(n,e),O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function S2e(n,e){var t,i;t=e.c,i=t!=null,i&&Ip(n,new qb(e.c))}function DOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function LOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function NOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function P2e(n,e,t){return nn(n.a,(yM(),Nx(e,t),new i0(e,t))),n}function $c(n,e){return dr(),a$(e)?new eM(e,n):new j7(e,n)}function Y7(n){return dh(),Ec(n,0)>=0?ta(n):G6(ta(n1(n)))}function I2e(n){var e;return e=u(ZC(n.b),9),new _o(n.a,e,n.c)}function $On(n,e){var t;return t=u(tw(Dp(n.a),e),16),t?t.gc():0}function xOn(n,e,t){var i;oBn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Np(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function BN(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$N(this,e),xN(this,t)}function sJ(n,e){Xfe.call(this,new ap(Qb(n))),Co(e,Ozn),this.a=e}function FOn(n,e,t){return new rF(n,(B4(),t_),null,!1,e,t)}function BOn(n,e,t){return new rF(n,(B4(),r_),e,t,null,!1)}function O2e(){return Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])}function D2e(){return bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])}function L2e(){return Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])}function N2e(){return bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])}function $2e(){return i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])}function x2e(){return D0(),S(T(R_,1),G,372,0,[ub,ma,cb])}function F2e(){return u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])}function B2e(){return bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])}function R2e(){return hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])}function K2e(){return Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])}function _2e(){return vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])}function H2e(){return g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])}function q2e(){return gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])}function U2e(){return ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])}function G2e(){return d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])}function z2e(){return om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])}function X2e(){return dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])}function V2e(){return DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])}function W2e(){return O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])}function Pf(n){return cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])}function ROn(){ROn=F,Fre=Pu(new ii,(Qp(),u9),(q5(),uln))}function FM(){FM=F,dq=new uX("DFS",0),Fln=new uX("BFS",1)}function KOn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),DY(e,i.a,i.b)}function Y2e(n,e){LTn(n,Ae(vi(w0(e,24),YA)),Ae(vi(e,YA)))}function zb(n,e){if(n<0||n>e)throw M(new Ir(Ptn+n+Itn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ir(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw M(new gz(Ptn+n+Itn+e))}function In(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function fJ(n){var e;return ea(n),e=(j0(),j0(),ZK),fT(n,e)}function Z2e(n,e,t){var i;return i=V5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])}function epe(){return _T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])}function ipe(){return rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])}function rpe(){return Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])}function cpe(){return AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])}function upe(){return jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])}function ope(){return Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])}function spe(){return Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])}function fpe(){return Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])}function T0(n){return Se(n),O(n,16)?new _u(u(n,16)):y4(n.Kc())}function hJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Q1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hf(n,e){return Q1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function RN(n,e){return Q1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,rV(!!t),Jn(e),t(e)}function _On(n,e){var t,i;return i=C4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dF(n),241)}function ape(n){if(n.p!=2)throw M(new Cu);return Ae(n.f)&ui}function dpe(n){if(n.p!=2)throw M(new Cu);return Ae(n.k)&ui}function E(n){return oe(n.ai?1:0}function GOn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function KN(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Cpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _N(n,e){if(fi(n.a,e),e.d)throw M(new ec(nXn));e.d=n}function dJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zOn(){this.c=new PTn,this.a=new $Ln,this.b=new Xyn,lCn()}function XOn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VOn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WOn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JOn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QOn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YOn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZOn(n,e,t,i,r,c){pQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nDn(n,e,t,i,r,c){DJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eDn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tDn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iDn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rDn(n,e,t,i){LE.call(this,t),this.b=n,this.c=e,this.d=i}function cDn(n,e){this.f=n,this.a=($4(),MO),this.c=MO,this.b=e}function uDn(n,e){this.g=n,this.d=($4(),TO),this.a=TO,this.b=e}function bJ(n,e){!n.c&&(n.c=new Rt(n,0)),HA(n.c,(at(),F9),e)}function Mpe(n,e){return oMe(n,e,O(e,102)&&(u(e,19).Bb&hr)!=0)}function Tpe(n,e){return KPn(vc(n.q.getTime()),vc(e.q.getTime()))}function oDn(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),16,new O8n(n))}function Ape(n){return!!n.u&&Sc(n.u.a).i!=0&&!(n.n&&Ix(n.n))}function Spe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ox(n.b))}function wJ(n,e){return e==0?!!n.o&&n.o.f!=0:Cx(n,e)}function Ppe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sDn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fDn(n,e){var t;return t=1-e,n.a[t]=jT(n.a[t],t),jT(n,e)}function hDn(n,e){var t,i;return i=vi(n,mr),t=Fs(e,32),hf(t,i)}function lDn(n,e,t){var i;i=(Se(n),new _u(n)),O7e(new EOn(i,e,t))}function Z7(n,e,t){var i;i=(Se(n),new _u(n)),D7e(new COn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),CY(n,i),MY(n,r),n}function aDn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,Xv.call(this,n),zb(e,n.gc()),this.b=e}function dDn(n){this.a=K(ki,Fn,1,QQ(y.Math.max(8,n))<<1,5,1)}function nk(n){return u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199)}function fh(n){return u(xf(n,K(O_,rR,18,n.c.length,0,1)),483)}function bDn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function Q6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wDn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ipe(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),Pb(n.e.a.c,0)}function gDn(n,e){var t;n.e=new uz,t=aw(e),Yt(t,n.c),Iqn(n,t,0)}function ri(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.a,r)}function Q(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.b,r)}function pDn(n,e,t){if(n<0||et)throw M(new Ir(qje(n,e,t)))}function ek(n,e){if(n<0||n>=e)throw M(new Ir(kEe(n,e)));return n}function Ope(n){if(!("stack"in n))try{throw n}catch{}return n}function Sg(n){return s6(),O(n.g,10)?u(n.g,10):null}function Dpe(n){return Tg(n).dc()?!1:(e1e(n,new Pr),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function vDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function kDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function gJ(n){var e;return z1(n),e=new L0n,hg(n.a,new j9n(e)),e}function pJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(n0n,e),e}function BM(n){var e;return z1(n),e=new N0n,hg(n.a,new E9n(e)),e}function Lpe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yDn(n){P$.call(this,n,(B4(),e_),null,!1,null,!1)}function jDn(){jDn=F,SYn=Ce((YE(),S(T(oon,1),G,489,0,[b_])))}function EDn(){EDn=F,eln=wIn(Y(1),Y(4)),nln=wIn(Y(1),Y(2))}function Npe(n,e){return new _L(e,N6(Ki(e.e),n,n),(_n(),!0))}function RM(n){return new Gc((Co(n,cB),oT(nr(nr(5,n),n/10|0))))}function $pe(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),273,new I8n(n))}function CDn(n){return u(xf(n,K(FZn,DXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Fpe(n,e){return _p(),u(v(e,(lc(),I2)),17).a>=n.gc()}function Y6(n,e){vLe(e,n),JV(n.d),JV(u(v(n,(cn(),mI)),214))}function HN(n,e){kLe(e,n),QV(n.d),QV(u(v(n,(cn(),mI)),214))}function Bpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&b0(n.d.e,t,n)}function Rpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Kpe(n,e,t){var i;i=i9e();try{return Aae(n,e,t)}finally{D3e(i)}}function A0(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Z6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function L4(n,e){var t,i;return t=Jb(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=gnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),FA(n.g,i,e),FA(n.i,e,t),e}function mJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function MDn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function TDn(n,e,t,i){ETn(this),this.c=n,this.e=e,this.f=t,this.b=i}function vJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function ADn(n,e,t,i){return O(t,59)?new iAn(n,e,t,i):new vW(n,e,t,i)}function N4(n){return O(n,16)?u(n,16).dc():!n.Kc().Ob()}function SDn(n){if(n.e.g!=n.b)throw M(new Bo);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function kJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JRn(n)}function V1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JRn(n)}function PDn(n){var e;e=n.Gh(),this.a=O(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new In(Ame(u(n.a.md(),16).gc(),n.a.ld()),16)}function IDn(){IDn=F,Gce=Ce((eC(),S(T($1n,1),G,490,0,[Bq])))}function ODn(){ODn=F,Xce=Ce((tC(),S(T(zce,1),G,558,0,[Rq])))}function DDn(){DDn=F,lue=Ce((f6(),S(T(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])}function Upe(){return B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])}function Gpe(){return Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])}function Xpe(){return N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])}function Vpe(){return nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])}function Wpe(){return $f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])}function Jpe(){return OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])}function Qpe(){return cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])}function Ype(){return lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])}function Zpe(n){var e;return n.j==(tn(),ae)&&(e=mHn(n),Au(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Ii(t,e.d.d),nw(t.a,n.n)}function yJ(n,e){var t;return t=u(Lf(n.b,e),67),!t&&(t=new Ct),t}function xp(n){return s6(),O(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,Pb(n.b.c,0),Pb(n.f.c,0),n.c=null}function KM(){KM=F,fH=new Zz(qm,0),Jsn=new Zz("TOP_LEFT",1)}function n5(){n5=F,r9=new eX("UPPER",0),i9=new eX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function LDn(n,e){return u(ho(_b(u(ot(n.k,e),15).Oc(),b2)),113)}function NDn(n,e){return u(ho(Ap(u(ot(n.k,e),15).Oc(),b2)),113)}function i3e(){return Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])}function r3e(){return w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])}function c3e(){return sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])}function u3e(){return go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])}function s3e(){return El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])}function f3e(){return qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])}function h3e(){return LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])}function l3e(n){return $M(),Zc(yU,n)?u(ee(yU,n),341).Qg():null}function Uo(n,e,t){return e<0?hF(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),FA(n.j,i,e),Xe(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),FA(n.d,i,e),Xe(n.e,e,t),e}function $Dn(n){var e,t;return e=(B1(),t=new HO,t),n&&AA(e,n),e}function jJ(n){var e;return e=n.aj(n.i),n.i>0&&Ic(n.g,0,e,0,n.i),e}function xDn(n,e){var t;for(t=n.j.c.length;t>24}function w3e(n){if(n.p!=1)throw M(new Cu);return Ae(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.f)<<16>>16}function Pg(n,e){return e.e==0||n.e==0?O8:(Am(),vF(n,e))}function RDn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tN(R(Kr(wr(n.f,e))),R(Kr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function KDn(n,e,t){n.i=0,n.e=0,e!=t&&(jFn(n,e,t),yFn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yMe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function EJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Dn(n,e){nJ.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HDn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qDn(n,e){var t;return t=new lp,n.Gd(t),t.a+="..",e.Hd(t),t.a}function UDn(n,e){var t;for(t=e;t;)a0(n,t.i,t.j),t=At(t);return n}function GDn(n,e,t){var i;return i=wm(t),Xe(n.b,i,e),Xe(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oT(e)}function Fh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function CJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+fa),G5(n,t)}function j3e(n,e){return u(e==null?Kr(wr(n.f,null)):d6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _M(n,e,t){return RA(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Om(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function C3e(n,e,t){return bMe(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=K(ki,Fn,1,8,5,1),n.b=0,n.c=0)}function e5(n){return oe(n.a=0&&n.a[t]===e[t];t--);return t<0}function HM(n){var e;return n?new fW(n):(e=new ih,A$(e,n),e)}function O3e(n,e){var t,i;i=!1;do t=lFn(n,e),i=i|t;while(t);return i}function D3e(n){n&&rme((az(),sun)),--cP,n&&uP!=-1&&(Ele(uP),uP=-1)}function qM(n){nnn(),LTn(this,Ae(vi(w0(n,24),YA)),Ae(vi(n,YA)))}function JDn(){JDn=F,HQn=Ce((YT(),S(T(Bun,1),G,436,0,[o_,Fun])))}function QDn(){QDn=F,qQn=Ce((cT(),S(T(Kun,1),G,435,0,[Run,s_])))}function YDn(){YDn=F,GYn=Ce((uT(),S(T(bon,1),G,432,0,[v_,vP])))}function ZDn(){ZDn=F,_Zn=Ce((V4(),S(T(KZn,1),G,517,0,[dj,L_])))}function nLn(){nLn=F,Ane=Ce((KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])))}function eLn(){eLn=F,gne=Ce((pk(),S(T($sn,1),G,428,0,[WP,Nsn])))}function tLn(){tLn=F,kne=Ce((hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])))}function iLn(){iLn=F,rie=Ce((wk(),S(T(qhn,1),G,430,0,[UH,GH])))}function rLn(){rLn=F,Die=Ce((n5(),S(T(Oie,1),G,531,0,[r9,i9])))}function cLn(){cLn=F,ane=Ce((QM(),S(T(Asn,1),G,431,0,[Tsn,V_])))}function uLn(){uLn=F,xre=Ce((FM(),S(T(Bln,1),G,433,0,[dq,Fln])))}function oLn(){oLn=F,_re=Ce((yT(),S(T(Rln,1),G,501,0,[RI,D2])))}function sLn(){sLn=F,Rie=Ce((sh(),S(T(Bie,1),G,523,0,[mb,y1])))}function fLn(){fLn=F,_ie=Ce((Sf(),S(T(Kie,1),G,522,0,[Rd,zf])))}function hLn(){hLn=F,tre=Ce((lf(),S(T(ere,1),G,528,0,[zw,ja])))}function lLn(){lLn=F,fre=Ce((M0(),S(T(sre,1),G,465,0,[Ea,P2])))}function aLn(){aLn=F,Ure=Ce((ZM(),S(T(_ln,1),G,434,0,[Kln,vq])))}function dLn(){dLn=F,Rce=Ce((GM(),S(T(S1n,1),G,491,0,[$q,A1n])))}function bLn(){bLn=F,_ce=Ce((N$(),S(T(N1n,1),G,492,0,[D1n,L1n])))}function wLn(){wLn=F,Vce=Ce((ck(),S(T(x1n,1),G,438,0,[Kq,JI])))}function gLn(){gLn=F,aue=Ce((Ak(),S(T(ran,1),G,437,0,[YI,ian])))}function pLn(){pLn=F,aoe=Ce((RL(),S(T(dO,1),G,347,0,[vdn,kdn])))}function L3e(){return ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])}function N3e(){return tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$0(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),H8))}function XN(n){return n.c&&n.d?aJ(n.c)+"->"+aJ(n.d):"e_"+l0(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function F3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function B3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function mLn(n,e){var t;for(t=e;t;)a0(n,-t.i,-t.j),t=At(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fOe(n,e,t),n.a.c.length==0||xSe(n,e)}function tk(n){n.i=0,s7(n.b,null),s7(n.c,null),n.a=null,n.e=null,++n.g}function UM(){UM=F,qf=!0,DQn=!1,LQn=!1,$Qn=!1,NQn=!1}function VN(n){UM(),!qf&&(this.c=n,this.e=!0,this.a=new Z)}function vLn(n,e){this.c=0,this.b=e,HMn.call(this,n,17493),this.a=this.c}function kLn(n){jzn(),Syn(this),this.a=new Ct,sY(this,n),xe(this.a,n)}function yLn(){pL(this),this.b=new V(St,St),this.a=new V(li,li)}function GM(){GM=F,$q=new fX(cin,0),A1n=new fX("TARGET_WIDTH",1)}function Ig(n,e){return(ea(n),s4(new Tn(n,new tQ(e,n.a)))).Bd(v3)}function R3e(){return Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])}function K3e(){return ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])}function _3e(){return o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])}function H3e(){return T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])}function q3e(){return Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])}function U3e(){return wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])}function G3e(){return R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])}function z3e(){return Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])}function X3e(){return gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])}function V3e(){return Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])}function W3e(n){return HE(),function(){return Kpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return O(e,143)?An(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),k5(new Njn(n),0,n.t)),n.t}function jLn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ELn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VOn.call(this,e,i,r),this.c=n,this.a=t}function DJ(n,e,t,i,r){WOn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.a=t}function WN(n,e){var t;return t=u(Lf(n.d,e),23),t||u(Lf(n.e,e),23)}function CLn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function MLn(n,e){var t;return t=e.ld(),new i0(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??K(ki,Fn,1,0,5,1)}function TLn(n){var e;return e=n.length,An(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw M(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):RBn(n,-e)}function Fp(n,e){return e==0||n.e==0?n:e>0?RBn(n,e):wqn(n,-e)}function $J(n){ole.call(this,n==null?gu:Jr(n),O(n,82)?u(n,82):null)}function ALn(n){var e;return n.c||(e=n.r,O(e,90)&&(n.c=u(e,29))),n.c}function JN(n){var e;return e=new E0,Ur(e,n),U(e,(cn(),Fr),null),e}function SLn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QN(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Il:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i=0?n.Lh(i,t,!0):H0(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Ki(e.b)),vp(pm(n),Ki(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Ki(e.e)),vp(pm(n),Ki(t.e)))}function e4e(n,e){return y.Math.min(W1(e.a,n.d.d.c),W1(e.b,n.d.d.c))}function ik(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function t5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function PLn(n,e,t){var i;i=new NX(n.a),f5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function xJ(n,e,t,i){var r;for(r=0;re)throw M(new Ir(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Ln(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function RJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:te.p?-1:0}function FLn(n){var e;return n.a||(e=n.r,O(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),x7(t.Nc(),new L8n(e))}function BLn(n,e){return Zc(n.a,e)?(Bp(n.a,e),!0):!1}function Rp(n,e,t){return ek(e,n.e.Rd().gc()),ek(t,n.c.Rd().gc()),n.a[e][t]}function XM(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VM(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function rk(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function $4(){$4=F;var n,e;MO=(o4(),e=new xE,e),TO=(n=new fD,n)}function f4e(n){var e;return ea(n),e=new ISn(n,n.a.e,n.a.d|4),new uV(n,e)}function RLn(n){var e;for(z1(n),e=0;n.a.Bd(new W0n);)e=nr(e,1);return e}function WM(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function JM(){JM=F,p9=new lt("org.eclipse.elk.labels.labelManager")}function KLn(){KLn=F,ysn=new Dt("separateLayerConnections",(OT(),F_))}function lf(){lf=F,zw=new rX("REGULAR",0),ja=new rX("CRITICAL",1)}function ck(){ck=F,Kq=new lX("FIXED",0),JI=new lX("CENTER_NODE",1)}function QM(){QM=F,Tsn=new Jz("QUADRATIC",0),V_=new Jz("SCANLINE",1)}function _Ln(){_Ln=F,dne=Ce((u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])))}function HLn(){HLn=F,bne=Ce((bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])))}function qLn(){qLn=F,fne=Ce((D0(),S(T(R_,1),G,372,0,[ub,ma,cb])))}function ULn(){ULn=F,mne=Ce((hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])))}function GLn(){GLn=F,Cne=Ce((Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])))}function zLn(){zLn=F,Tne=Ce((vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])))}function XLn(){XLn=F,Zte=Ce((g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])))}function VLn(){VLn=F,oie=Ce((ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])))}function WLn(){WLn=F,sie=Ce((d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])))}function JLn(){JLn=F,uie=Ce((gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])))}function QLn(){QLn=F,fie=Ce((om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])))}function YLn(){YLn=F,hie=Ce((dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])))}function ZLn(){ZLn=F,lie=Ce((DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])))}function nNn(){nNn=F,are=Ce((b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])))}function eNn(){eNn=F,Gre=Ce((Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])))}function tNn(){tNn=F,ace=Ce((AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])))}function iNn(){iNn=F,dce=Ce((XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])))}function rNn(){rNn=F,wce=Ce((rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])))}function cNn(){cNn=F,mce=Ce((_T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uNn(){uNn=F,Kce=Ce((nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])))}function oNn(){oNn=F,Aie=Ce((O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])))}function sNn(){sNn=F,WQn=Ce((Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])))}function fNn(){fNn=F,XQn=Ce((bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])))}function hNn(){hNn=F,QQn=Ce((bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])))}function lNn(){lNn=F,xQn=Ce((Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])))}function aNn(){aNn=F,pZn=Ce((i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])))}function dNn(){dNn=F,Que=Ce((jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])))}function bNn(){bNn=F,Uce=Ce((Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])))}function wNn(){wNn=F,Xue=Ce((Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])))}function gNn(){gNn=F,loe=Ce((Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])))}function Df(n,e){return!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Cr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function UJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new CE),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function uk(n){return!n.g&&(n.g=new CE),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new CE),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new CE),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=K(ye,Ke,28,e+1,15,1),vPe(r,n,e,t,i),r}function K(n,e,t,i,r,c){var s;return s=_Rn(r,i),r!=10&&S(T(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;it||e=0?n.Lh(t,!0,!0):H0(n,e,!0)}function L4e(n,e,t){var i;return i=vFn(n,e,t),n.b=new ET(i.c.length),den(n,i)}function N4e(n){if(n.b<=0)throw M(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw M(new PIn);return e=n.a,n.a=At(n.a),e}function x4e(n){for(;!n.a;)if(!eSn(n.c,new C9n(n)))return!1;return!0}function Kp(n){var e;return Se(n),O(n,204)?(e=u(n,204),e):new _8n(n)}function F4e(n){YM(),u(n.of((qe(),Ww)),181).Fc((zu(),tE)),n.qf(sU,null)}function YM(){YM=F,wue=new Emn,pue=new Cmn,gue=M6e((qe(),sU),wue,Ma,pue)}function ZM(){ZM=F,Kln=new sX("LEAF_NUMBER",0),vq=new sX("NODE_SIZE",1)}function u$(n){n.a=K(ye,Ke,28,n.b+1,15,1),n.c=K(ye,Ke,28,n.b,15,1),n.d=0}function B4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new GV(e.c,e.d,n.d)),n.b=e.d)}function nQ(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.g[e]}function kNn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw M(new uD);return t}function o$(n,e){return gk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,gk(e),n),n}function F4(n,e,t,i){var r;i=(j0(),i||Pun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?H0(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function R4e(n,e){return bt($(R(v(n,(W(),fb)))),$(R(v(e,fb))))}function yNn(){yNn=F,IQn=Ce((B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])))}function B4(){B4=F,e_=new uC("All",0),t_=new lTn,i_=new kTn,r_=new hTn}function Uu(){Uu=F,Mh=new FD(s3,0),ga=new FD(qm,1),Gs=new FD(f3,2)}function jNn(){jNn=F,KA(),s0n=St,mse=li,f0n=new V9(St),vse=new V9(li)}function ENn(){ENn=F,jYn=Ce((N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])))}function CNn(){CNn=F,AYn=Ce((A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])))}function MNn(){MNn=F,CYn=Ce((Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])))}function TNn(){TNn=F,DZn=Ce((dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])))}function ANn(){ANn=F,TZn=Ce((nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])))}function SNn(){SNn=F,tne=Ce(($f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])))}function PNn(){PNn=F,GZn=Ce((OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])))}function INn(){INn=F,nie=Ce((cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])))}function ONn(){ONn=F,iie=Ce((lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])))}function hk(){hk=F,Fsn=new Yz(kh,0),QP=new Yz("IMPROVE_STRAIGHTNESS",1)}function DNn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Rp(n,i,t)}function LNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)L(n,e);return jJ(n)}function eQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function NNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function K4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Nn(n,e){if(e.a)throw M(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function tQ(n,e){IC.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _L(e,a0(Ki(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xNn(){xNn=F,lce=Ce((sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])))}function FNn(){FNn=F,$re=Ce((w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])))}function BNn(){BNn=F,hre=Ce((Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])))}function RNn(){RNn=F,Vue=Ce((El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])))}function KNn(){KNn=F,Zue=Ce((To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])))}function _Nn(){_Nn=F,foe=Ce((go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])))}function HNn(){HNn=F,doe=Ce((qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])))}function qNn(){qNn=F,goe=Ce((LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])))}function nT(){nT=F,xq=new oL(mVn,0),I1n=new oL(Crn,1),P1n=new oL(kh,2)}function Wb(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new AW(n,e,i)}function UNn(n,e){var t;return t=u(Bp(n.e,e),400),t?(tW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GNn(n,e,t){var i;return z1(n),i=new LO,i.a=e,n.a.Nb(new TCn(i,t)),i.a}function G4e(n){var e;return z1(n),e=K(Pi,Tr,28,0,15,1),hg(n.a,new y9n(e)),e}function iQ(n){var e;if(!E$(n))throw M(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Q1(tm(n))}function qr(n,e,t){for(;t=0?tA(n,t,!0,!0):H0(n,e,!0)}function cQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function uQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QNn(n,e){con=new kE,MYn=e,L8=n,u(L8.b,68),XJ(L8,con,null),aGn(L8)}function i5(){i5=F,E_=new RD("XY",0),j_=new RD("X",1),C_=new RD("Y",2)}function bu(){bu=F,vf=new BD("TOP",0),pa=new BD(qm,1),zs=new BD(Ftn,2)}function vl(){vl=F,vj=new GD(kh,0),v2=new GD("TOP",1),E3=new GD(Ftn,2)}function wk(){wk=F,UH=new nX("INPUT_ORDER",0),GH=new nX("PORT_DEGREE",1)}function R4(){R4=F,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Ty),lun=QN(1),QN(2),aun=QN(0)}function a$(n){var e;return n.d!=n.r&&(e=ws(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rT(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Lf(n,e){var t;return t=u(ee(n.e,e),400),t?(DTn(n,t),t.e):null}function YNn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Jb(n,e){var t=n.a[e],i=(K$(),WK)[typeof t];return i?i(t):wY(typeof t)}function rc(n,e){var t,i;return ea(n),i=new _J(e,n.a),t=new rSn(i),new Tn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&M$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,BQ(e.a,i,0)}function oQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t=0;)++e[0]}function J4e(n,e){eu(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Q4e(n,e){tu(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Y4e(n,e){I0(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Z4e(n,e){P0(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function nme(n,e,t){return vp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(Jn(e),e)}function eme(n,e){return O(e,102)&&u(e,19).Bb&hr?new dL(e,n):new Y4(e,n)}function tme(n,e){return O(e,102)&&u(e,19).Bb&hr?new dL(e,n):new Y4(e,n)}function gk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function e$n(n,e){return e==(xL(),xL(),AQn)?n.toLocaleLowerCase():n.toLowerCase()}function t$n(n){if(!n.e)throw M(new nc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function sQ(n){if(!n.c)throw M(new nc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function i$n(n){var e;for(++n.a,e=n.c.a.length;n.an.a[i]&&(i=t);return i}function r$n(n){var e;return e=u(v(n,(W(),ob)),313),e?e.a==n:!1}function c$n(n){var e;return e=u(v(n,(W(),ob)),313),e?e.i==n:!1}function u$n(){u$n=F,yZn=Ce((Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])))}function o$n(){o$n=F,rne=Ce((ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])))}function s$n(){s$n=F,wne=Ce((o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])))}function f$n(){f$n=F,eie=Ce((T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])))}function h$n(){h$n=F,Sne=Ce((Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])))}function l$n(){l$n=F,qre=Ce((wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])))}function a$n(){a$n=F,qce=Ce((R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])))}function d$n(){d$n=F,Wce=Ce((Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])))}function b$n(){b$n=F,zue=Ce((ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])))}function w$n(){w$n=F,mue=Ce((gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])))}function g$n(){g$n=F,eoe=Ce((Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])))}function p$n(){p$n=F,roe=Ce((tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])))}function cT(){cT=F,Run=new Uz("BY_SIZE",0),s_=new Uz("BY_SIZE_AND_SHAPE",1)}function uT(){uT=F,v_=new Xz("EADES",0),vP=new Xz("FRUCHTERMAN_REINGOLD",1)}function pk(){pk=F,WP=new Qz("READING_DIRECTION",0),Nsn=new Qz("ROTATION",1)}function r5(){r5=F,PZn=new rwn,IZn=new own,AZn=new swn,SZn=new uwn,OZn=new fwn}function m$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function v$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function k$n(n,e,t){qC.call(this),lQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function sme(n,e,t){var i,r;for(r=new C(t);r.a=0&&e0?e-1:e,eEn($he(U$n(YV(new up,t),n.n),n.j),n.k)}function Nr(n){var e,t;t=(e=new hD,e),ve((!n.q&&(n.q=new q(As,n,11,10)),n.q),t)}function fQ(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(ll(n),n.o)}function oT(n){return Ec(n,et)>0?et:Ec(n,Wi)<0?Wi:Ae(n)}function Qb(n){return n<3?(Co(n,$zn),n+1):n=-.01&&n.a<=Kf&&(n.a=0),n.b>=-.01&&n.b<=Kf&&(n.b=0),n}function Og(n){Xg();var e,t;for(t=Arn,e=0;et&&(t=n[e]);return t}function C$n(n,e){var t;if(t=oy(n.Dh(),e),!t)throw M(new Gn(da+e+sK));return t}function Yb(n,e){var t;for(t=n;At(t);)if(t=At(t),t==e)return!0;return!1}function vme(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;rn||n>e)throw M(new pz("fromIndex: 0, toIndex: "+n+Mtn+e))}function S0(n){if(n<0)throw M(new Gn("Illegal Capacity: "+n));this.g=this.aj(n)}function hQ(n,e){return Mf(),Rs(sa),y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)}function m$(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r0&&(n.a/=e,n.b/=e),n}function jo(n){var e;return n.w?n.w:(e=lpe(n),e&&!e.Vh()&&(n.w=e),e)}function K4(n,e){var t,i;i=n.a,t=w5e(n,e,null),i!=e&&!n.e&&(t=Nm(n,e,t)),t&&t.oj()}function P$n(n,e,t){var i,r;i=e;do r=$(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function I$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function Tme(n){var e;return n==null?null:(e=u(n,195),Bye(e,e.length))}function L(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.Wi(e,n.g[e])}function Ame(n,e){Dn();var t,i;for(i=new Z,t=0;t=14&&e<=16))),n}function Ee(n,e){var t;return Jn(e),t=n[":"+e],B7(!!t,"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return s=bN(n,e),G$n(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function dQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function bQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function wQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function gQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function pQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function z$n(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0))throw M(new Gn("tolerance ("+n+") must be >= 0"));return n}function V$n(n,e){var t;return O(e,44)?n.c.Mc(e):(t=wx(n,e),VT(n,e),t)}function Mr(n,e,t){return ad(n,e),zc(n,t),e1(n,0),Zb(n,1),u1(n,!0),c1(n,!0),n}function vk(n,e){var t;if(t=n.gc(),e<0||e>t)throw M(new Kb(e,t));return new SV(n,e)}function wT(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W$n(n){Fb(n.c>=0),_8e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function gT(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function Fme(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i=0}function CQ(n,e){n.r>0&&n.c0&&n.g!=0&&CQ(n.i,e/n.r*n.i.d))}function MQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.c))}function y$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,4,t,n.c))}function X4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,2,t,n.k))}function j$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,2,t,n.D))}function mT(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,8,t,n.f))}function vT(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,7,t,n.i))}function TQ(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,8,t,n.a))}function AQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,t,n.b))}function SQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,t,n.b))}function PQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.c))}function IQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.d))}function Ume(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new gjn:new rG,n.c=rAe(i,n.b,n.a)}function oxn(n,e){return Sl(n.e,e)?(dr(),a$(e)?new eM(e,n):new j7(e,n)):new $Mn(e,n)}function Gme(n){var e,t;return 0>n?new Dz:(e=n+1,t=new vLn(e,n),new oV(null,t))}function zme(n,e){Dn();var t;return t=new ap(1),Ai(n)?Dr(t,n,e):Vc(t.f,n,e),new eD(t)}function Xme(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(sn(t.a,i-1),10):null}function Vme(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:Y5):e}function E$(n){switch(_X(n.e!=3),n.e){case 2:return!1;case 0:return!0}return i4e(n)}function fxn(n,e){var t;return O(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Jme(n,e){var t;t=new kE,u(e.b,68),u(e.b,68),u(e.b,68),nu(e.a,new BV(n,t,e))}function hxn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Vk(n,t.ld(),t.md())}function OQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,11,t,n.d))}function kT(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,13,t,n.j))}function DQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,21,t,n.b))}function Qme(n,e){(UM(),qf?null:e.c).length==0&&TAn(e,new BU),Dr(n.a,qf?null:e.c,e)}function Yme(n,e){e.Ug("Hierarchical port constraint processing",1),g9e(n),xLe(n),e.Vg()}function D0(){D0=F,ub=new KD("START",0),ma=new KD("MIDDLE",1),cb=new KD("END",2)}function yT(){yT=F,RI=new oX("P1_NODE_PLACEMENT",0),D2=new oX("P2_EDGE_ROUTING",1)}function J1(){J1=F,y3=new lt(Jtn),jP=new lt(MXn),$8=new lt(TXn),lj=new lt(AXn)}function L0(n){var e;return FL(n.f.g,n.d),oe(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=GQ(n),e}function LQ(n){var e;return n.b==null?(Gl(),Gl(),dE):(e=n.ul()?n.tl():n.sl(),e)}function lxn(n,e){var t;return t=e==null?-1:qr(n.b,e,0),t<0?!1:(M$(n,t),!0)}function Ks(n,e){var t;return Jn(e),t=e.g,n.b[t]?!1:($t(n.b,t,e),++n.c,!0)}function jT(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function Zme(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,fi(n.e,t),t.b=n}function nve(n,e){var t,i;return t=u(v(n,(cn(),Hw)),8),i=u(v(e,Hw),8),bt(t.b,i.b)}function C$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=vi(U1(n.n[t][c],Ae(Fs(r,1))),3),i}function axn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i0?1:0:(!n.c&&(n.c=Y7(vc(n.f))),n.c).e}function yxn(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function rve(n,e){return nm(),n==rb&&e==Iw||n==Iw&&e==rb||n==a2&&e==Pw||n==Pw&&e==a2}function cve(n,e){return nm(),n==rb&&e==Pw||n==rb&&e==a2||n==Iw&&e==a2||n==Iw&&e==Pw}function jxn(n,e){return Mf(),Rs(Kf),y.Math.abs(0-e)<=Kf||e==0||isNaN(0)&&isNaN(e)?0:n/e}function Exn(n,e){return $(R(ho($k(_r(new Tn(null,new In(n.c.b,16)),new I7n(n)),e))))}function FQ(n,e){return $(R(ho($k(_r(new Tn(null,new In(n.c.b,16)),new P7n(n)),e))))}function uve(){return pr(),S(T(cH,1),G,259,0,[ZP,cs,K8,nI,yv,m2,_8,vv,kv,eI])}function ove(){return gs(),S(T(Khn,1),G,243,0,[AI,Sj,Pj,Fhn,Bhn,xhn,Rhn,SI,pb,Uw])}function sve(n,e){var t;e.Ug("General Compactor",1),t=d8e(u(z(n,(ua(),yq)),393)),t.Cg(n)}function fve(n,e){var t,i;return t=u(z(n,(ua(),_I)),17),i=u(z(e,_I),17),jc(t.a,i.a)}function BQ(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),i.a+=e,i.b+=t;return n}function o5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&oh(e,i.g))return i;return null}function s5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&oh(e,i.i))return i;return null}function hve(n,e,t){var i,r,c;for(i=0,r=0;r>>31;i!=0&&(n[t]=i)}function P$(n,e,t,i,r,c){var s;this.c=n,s=new Z,pZ(n,s,e,n.b,t,i,r,c),this.a=new xi(s,0)}function Cxn(){this.c=new XE(0),this.b=new XE(Trn),this.d=new XE(lVn),this.a=new XE(QB)}function Vo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=If(s)}function Ut(n,e,t,i,r,c,s,f,h,l,a,d,g){return P_n(n,e,t,i,r,c,s,f,h,l,a,d,g),sx(n,!1),n}function lve(n){return n.b.c.i.k==(Vn(),Zt)?u(v(n.b.c.i,(W(),st)),12):n.b.c}function Mxn(n){return n.b.d.i.k==(Vn(),Zt)?u(v(n.b.d.i,(W(),st)),12):n.b.d}function ave(n){var e;return e=BM(n),o0(e.a,0)?(QE(),QE(),SQn):(QE(),new uAn(e.b))}function I$(n){var e;return e=gJ(n),o0(e.a,0)?(Ob(),Ob(),n_):(Ob(),new AL(e.b))}function O$(n){var e;return e=gJ(n),o0(e.a,0)?(Ob(),Ob(),n_):(Ob(),new AL(e.c))}function Txn(n){switch(n.g){case 2:return tn(),Wn;case 4:return tn(),Zn;default:return n}}function Axn(n){switch(n.g){case 1:return tn(),ae;case 3:return tn(),Xn;default:return n}}function Sxn(n){switch(n.g){case 0:return new hmn;case 1:return new lmn;default:return null}}function Hp(){Hp=F,x_=new Dt("edgelabelcenterednessanalysis.includelabel",(_n(),wa))}function RQ(){RQ=F,Mie=ah(WMn(Re(Re(new ii,(Vi(),Oc),(tr(),NP)),Kc,PP),zr),LP)}function Pxn(){Pxn=F,Pie=ah(WMn(Re(Re(new ii,(Vi(),Oc),(tr(),NP)),Kc,PP),zr),LP)}function D$(){D$=F,x9=new ljn,CU=S(T(ku,1),s2,179,0,[]),Joe=S(T(As,1),Gcn,62,0,[])}function V4(){V4=F,dj=new Vz("TO_INTERNAL_LTR",0),L_=new Vz("TO_INPUT_DIRECTION",1)}function Ou(){Ou=F,Ron=new wwn,Fon=new gwn,Bon=new pwn,xon=new mwn,Kon=new vwn,_on=new kwn}function dve(n,e){e.Ug(HXn,1),HY(Qhe(new IE((o6(),new kN(n,!1,!1,new qU))))),e.Vg()}function bve(n,e,t){t.Ug("DFS Treeifying phase",1),O8e(n,e),PTe(n,e),n.a=null,n.b=null,t.Vg()}function kk(n,e){return _n(),Ai(n)?RJ(n,Oe(e)):$b(n)?tN(n,R(e)):Nb(n)?rwe(n,un(e)):n.Fd(e)}function f5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function wve(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!_M(n,e,i.Pb()))return!1;return!0}function gve(n,e,t,i,r){var c;return t&&(c=Ot(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function pve(n,e,t,i,r){var c;return t&&(c=Ot(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function Ixn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function mve(n){if(Jn(n),n.length==0)throw M(new eh("Zero length BigInteger"));ESe(this,n)}function KQ(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function Oxn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,IEe(this),Dn(),Yt(this.a,null)}function _Q(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W4(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.br?t=r:zn(e,t+1),n.a=qo(n.a,0,e)+(""+i)+$W(n.a,t)}function Kxn(n,e){n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=nr(n.d,e)}function Mve(n,e){return e1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw M(new nc)}function Uxn(n){switch(n.a.g){case 1:return new WCn;case 3:return new WRn;default:return new s8n}}function qQ(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return wJ(n,e)}function vc(n){return Ay>22),r=n.h+e.h+(i>>22),Yc(t&ro,i&ro,r&Il)}function Yxn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Yc(t&ro,i&ro,r&Il)}function zve(n){var e,t;for(RDe(n),t=new C(n.d);t.ai)throw M(new Kb(e,i));return n.Si()&&(t=gOn(n,t)),n.Ei(e,t)}function em(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)Rg(n,c,s)||xA(n,c,s,!0,!1)}function u6e(n){Xg();var e,t,i;for(t=K(Ei,J,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Z9e(i,n);return t}function tm(n){var e,t,i;return e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Il,Yc(e,t,i)}function QQ(n){var e;if(n<0)return Wi;if(n==0)return 0;for(e=Y5;!(e&n);e>>=1);return e}function R$(n,e,t){return n>=128?!1:n<64?M6(vi(Fs(1,n),t),0):M6(vi(Fs(1,n-64),e),0)}function Pk(n,e,t){return t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function fFn(n){var e,t;return t=new zM,Ur(t,n),U(t,(J1(),y3),n),e=new de,$Pe(n,t,e),fDe(n,t,e),t}function hFn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function lFn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c=0,"Negative initial capacity"),B7(e>=0,"Non-positive load factor"),Hu(this)}function s6e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw M(new qG)}function eY(n,e){Dn();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r1||e>=0&&n.b<3)}function H$(n){var e,t,i;e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Il,n.l=e,n.m=t,n.h=i}function rY(n){Dn();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?mt(e):0),i=i|0;return i}function d6e(n,e,t,i,r){var c;return c=Xnn(n,e),t&&H$(c),r&&(n=u7e(n,e),i?ba=tm(n):ba=Yc(n.l,n.m,n.h)),c}function yFn(n,e,t){n.g=uF(n,e,(tn(),Zn),n.b),n.d=uF(n,t,Zn,n.b),!(n.g.c==0||n.d.c==0)&&YKn(n)}function jFn(n,e,t){n.g=uF(n,e,(tn(),Wn),n.j),n.d=uF(n,t,Wn,n.j),!(n.g.c==0||n.d.c==0)&&YKn(n)}function cY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return qY(n,e)}function b6e(n,e){switch(e.g){case 0:O(n.b,641)||(n.b=new Rxn);break;case 1:O(n.b,642)||(n.b=new BSn)}}function EFn(n){switch(n.g){case 0:return new gmn;default:throw M(new Gn(xS+(n.f!=null?n.f:""+n.g)))}}function CFn(n){switch(n.g){case 0:return new wmn;default:throw M(new Gn(xS+(n.f!=null?n.f:""+n.g)))}}function w6e(n,e,t){return!s4(ut(new Tn(null,new In(n.c,16)),new Z3(new hMn(e,t)))).Bd((Xa(),v3))}function MFn(n,e){return vp(pm(u(v(e,(lc(),vb)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function g6e(n,e){for(;n.g==null&&!n.c?cJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)kle(e,CA(n))}function ld(n){var e,t;for(t=new C(n.a.b);t.ai?1:0}function v6e(n){return nn(n.c,(qp(),bue)),hQ(n.a,$(R(rn((bx(),EI)))))?new tvn:new $kn(n)}function k6e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!i6(n.b))n.d=u(Sp(n.b),51);else return null;return n.d}function oY(n){switch(n.g){case 1:return lVn;default:case 2:return 0;case 3:return QB;case 4:return Trn}}function y6e(){nt();var n;return IU||(n=_1e(oa("M",!0)),n=uM(oa("M",!1),n),IU=n,IU)}function LT(){LT=F,gU=new CC("ELK",0),Tdn=new CC("JSON",1),Mdn=new CC("DOT",2),Adn=new CC("SVG",3)}function d5(){d5=F,VH=new WD("STACKED",0),XH=new WD("REVERSE_STACKED",1),Ij=new WD("SEQUENCED",2)}function b5(){b5=F,wln=new eL(kh,0),nq=new eL("MIDDLE_TO_MIDDLE",1),Lj=new eL("AVOID_OVERLAP",2)}function cm(){cm=F,Esn=new Ygn,Csn=new Zgn,JZn=new Jgn,WZn=new n2n,VZn=new Qgn,jsn=(Jn(VZn),new O0n)}function NT(){NT=F,hdn=new f0(15),Jue=new Ni((qe(),C1),hdn),C9=N3,udn=Pue,odn=Hd,fdn=K2,sdn=Vw}function Lg(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r=n.b.c.length||(fY(n,2*e+1),t=2*e+2,t0&&(e.Cd(t),t.i&&E5e(t))}function hY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:ND(vi(n[i],mr),vi(e[i],mr))?-1:1}function SFn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=sxn(t),i=K(sQn,Cy,227,r,0,1),this.b=i}function X$(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(Rg(n,c,s))return!0;return!1}function A6e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function PFn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function V$(n,e){var t,i;return i=u(Un(n.a,4),129),t=K(jU,MK,424,e,0,1),i!=null&&Ic(i,0,t,0,i.length),t}function IFn(n,e){var t;return t=new jF((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function S6e(n,e){var t;return n===e?!0:O(e,85)?(t=u(e,85),dnn(Wa(n),t.vc())):!1}function OFn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function DFn(n,e,t){return n.d[e.p][t.p]||(O9e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function P6e(n,e){var t;return!n||n==e||!kt(e,(W(),sb))?!1:(t=u(v(e,(W(),sb)),10),t!=n)}function W$(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function LFn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function NFn(n){yOn.call(this,"The given string does not match the expected format for individual spacings.",n)}function I6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=jnn(n),ht(n,(_h(),a9),t.a),ht(n,UI,t.b),e.Vg()}function O6e(n){var e,t,i;for(e=0,i=K(Ei,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}function J$(n,e,t){var i,r,c;for(i=new Ct,c=ge(t,0);c.b!=c.d.c;)r=u(be(c),8),xe(i,new rr(r));PFn(n,e,i)}function D6e(n,e){var t;return t=nr(n,e),ND(RN(n,e),0)|AC(RN(n,t),0)?t:nr(Ey,RN(U1(t,63),1))}function L6e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function $Fn(n){var e;if(e=n.a.c.length,e>0)return E4(e-1,n.a.c.length),Yl(n.a,e-1);throw M(new $yn)}function xFn(n,e,t){if(n>e)throw M(new Gn(ZA+n+Qzn+e));if(n<0||e>t)throw M(new pz(ZA+n+Stn+e+Mtn+t))}function um(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),j$(n,e==null?null:(Jn(e),e)),n.C&&n.hl(null)}function N6e(n,e){var t;t=rn((bx(),EI))!=null&&e.Sg()!=null?$(R(e.Sg()))/$(R(rn(EI))):1,Xe(n.b,e,t)}function lY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;tPS?n-t>PS:t-n>PS}function XFn(n,e){var t;for(t=0;tr&&(EKn(e.q,r),i=t!=e.q.d)),i}function VFn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function pY(n,e){var t,i;return i=WT(n),i||(t=(UF(),$Hn(e)),i=new Cyn(t),ve(i.El(),n)),i}function Lk(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function G6e(n,e){var t,i;for(i=to(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|sy(n,e,i,!1),i=!i;$Q(n)}function WFn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new s_n(n.c,n.a,t,c),new Kqn(t,n.a,r,n.e,n.b,n.c==(O0(),t9)))}function xT(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],EAn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function JFn(n){var e;if(n.c!=0)return n.c;for(e=0;e=n.c.b:n.a<=n.c.b))throw M(new nc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}function ex(n){var e;return e=new DX(n.a),Ur(e,n),U(e,(W(),st),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function tx(n){return(tn(),mu).Hc(n.j)?$(R(v(n,(W(),jv)))):cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b}function X6e(n){var e;return e=DC(Cie),u(v(n,(W(),Hc)),21).Hc((pr(),yv))&&Re(e,(Vi(),Oc),(tr(),FP)),e}function V6e(n){var e,t,i,r;for(r=new ni,i=new C(n);i.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Z6e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function na(n,e){var t,i,r,c;return c=(r=n?WT(n):null,O_n((i=e,r&&r.Gl(),i))),c==e&&(t=WT(n),t&&t.Gl()),c}function QFn(n,e,t){var i,r;return r=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,0,r,e),t?t.nj(i):t=i),t}function YFn(n,e,t){var i,r;return r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,3,r,e),t?t.nj(i):t=i),t}function vY(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,1,r,e),t?t.nj(i):t=i),t}function ZFn(n){var e,t;if(n!=null)for(t=0;t=i||e-129&&n<128?(FSn(),e=n+128,t=pun[e],!t&&(t=pun[e]=new vG(n)),t):new vG(n)}function sm(n){var e,t;return n>-129&&n<128?(nPn(),e=n+128,t=yun[e],!t&&(t=yun[e]=new yG(n)),t):new yG(n)}function tBn(n,e){var t;n.a.c.length>0&&(t=u(sn(n.a,n.a.c.length-1),579),sY(t,e))||nn(n.a,new kLn(e))}function c5e(n){xs();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),nu(t.b,new p7n(e)),nu(t.c,new m7n(e)),qi(t.i,new v7n(e))}function iBn(n){var e;return e=new x1,e.a+="VerticalSegment ",Dc(e,n.e),e.a+=" ",Be(e,RX(new yD,new C(n.k))),e.a}function ix(n,e){var t,i,r;for(t=0,r=uc(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=v(i,(W(),Xu))!=null?1:0;return t}function xg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&(r=$(R(be(c))),!(r>t));)r>=e&&++i;return i}function rBn(n,e){Se(n);try{return n._b(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function yY(n,e){Se(n);try{return n.Hc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function u5e(n,e){Se(n);try{return n.Mc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function tw(n,e){Se(n);try{return n.xc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return null;throw M(t)}}function o5e(n,e){Se(n);try{return n.Bc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return null;throw M(t)}}function p5(n,e){switch(e.g){case 2:case 1:return uc(n,e);case 3:case 4:return Qo(uc(n,e))}return Dn(),Dn(),sr}function m5(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (name: ",Er(e,n.zb),e.a+=")",e.a)}function s5e(n){var e;return e=u(Lf(n.c.c,""),233),e||(e=new Np(u4(c4(new ep,""),"Other")),s1(n.c.c,"",e)),e}function jY(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,4,r,e),t?t.nj(i):t=i),t}function EY(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,8,r,n.r),t?t.nj(i):t=i),t}function f5e(n,e,t){var i,r;return i=new ml(n.e,4,13,(r=e.c,r||(On(),Yf)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function h5e(n,e,t){var i,r;return i=new ml(n.e,3,13,null,(r=e.c,r||(On(),Yf)),f1(n,e),!1),t?t.nj(i):t=i,t}function r1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=O(e,90)?new xMn(n,u(e,29)):new cDn(n,u(e,156))),i}function Nk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Ic(n.g,e,n.g,e+1,n.i-e),$t(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function l5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Be(n.a,n.b):n.a=new mo(n.d),aDn(n.a,e.a,e.d.length,t)),n}function a5e(n,e){var t;n.c=e,n.a=p8e(e),n.a<54&&(n.f=(t=e.d>1?hDn(e.a[0],e.a[1]):hDn(e.a[0],0),id(e.e>0?t:n1(t))))}function $k(n,e){var t;return t=new LO,n.a.Bd(t)?(b4(),new wD(Jn(GNn(n,t.a,e)))):(z1(n),b4(),b4(),Dun)}function cBn(n,e){var t;n.c.length!=0&&(t=u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199),CX(t,new rgn),Y_n(t,e))}function uBn(n,e){var t;n.c.length!=0&&(t=u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199),CX(t,new cgn),Y_n(t,e))}function rt(n,e){return Ai(n)?An(n,e):$b(n)?nSn(n,e):Nb(n)?(Jn(n),x(n)===x(e)):pW(n)?n.Fb(e):hW(n)?YMn(n,e):hJ(n,e)}function Wo(n,e,t){if(e<0)Pnn(n,t);else{if(!t.rk())throw M(new Gn(da+t.xe()+p8));u(t,69).wk().Ek(n,n.hi(),e)}}function oBn(n,e,t){if(n<0||e>t)throw M(new Ir(ZA+n+Stn+e+", size: "+t));if(n>e)throw M(new Gn(ZA+n+Qzn+e))}function sBn(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (source: ",Er(e,n.d),e.a+=")",e.a)}function fBn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function d5e(n){VA();var e,t,i,r;for(t=jx(),i=0,r=t.length;i=0?ta(n):G6(ta(n1(n))))}function aBn(n,e,t,i,r,c){this.e=new Z,this.f=(gr(),n9),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function g5e(n,e,t){n.n=Va(xa,[J,SB],[376,28],14,[t,wi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function dBn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function bBn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ce(i),142),x(e)===x(t))return!0;return!1}function p5e(n,e,t){var i,r,c;return c=(r=Mm(n.b,e),r),c&&(i=u(qA(ak(n,c),""),29),i)?Qnn(n,i,e,t):null}function rx(n,e,t){var i,r,c;return c=(r=Mm(n.b,e),r),c&&(i=u(qA(ak(n,c),""),29),i)?Ynn(n,i,e,t):null}function m5e(n,e){var t;if(t=Dg(n.i,e),t==null)throw M(new nh("Node did not exist in input."));return HQ(e,t),null}function v5e(n,e){var t;if(t=oy(n,e),O(t,331))return u(t,35);throw M(new Gn(da+e+"' is not a valid attribute"))}function k5(n,e,t){var i;if(i=n.gc(),e>i)throw M(new Kb(e,i));if(n.Si()&&n.Hc(t))throw M(new Gn(Vy));n.Gi(e,t)}function k5e(n,e){e.Ug("Sort end labels",1),qt(ut(rc(new Tn(null,new In(n.b,16)),new Hwn),new qwn),new Uwn),e.Vg()}function ci(){ci=F,Wf=new v7(i8,0),Xr=new v7(f3,1),Br=new v7(s3,2),Vf=new v7(_B,3),us=new v7("UP",4)}function Fk(){Fk=F,XI=new sL("P1_STRUCTURE",0),VI=new sL("P2_PROCESSING_ORDER",1),WI=new sL("P3_EXECUTION",2)}function wBn(){wBn=F,Rre=ah(ah(l6(ah(ah(l6(Re(new ii,(Qp(),c9),(q5(),ZH)),u9),lln),dln),o9),oln),bln)}function y5e(n){switch(u(v(n,(W(),Od)),311).g){case 1:U(n,Od,(vl(),E3));break;case 2:U(n,Od,(vl(),v2))}}function j5e(n){switch(n){case 0:return new rjn;case 1:return new tjn;case 2:return new ijn;default:throw M(new Q9)}}function gBn(n){switch(n.g){case 2:return Xr;case 1:return Br;case 4:return Vf;case 3:return us;default:return Wf}}function AY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new Ho(e.d,0,e.a,e.b);default:return null}}function SY(n){switch(n.g){case 1:return Wn;case 2:return Xn;case 3:return Zn;case 4:return ae;default:return sc}}function Bk(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return Xn;case 4:return Zn;default:return sc}}function RT(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return Xn;default:return sc}}function PY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Ar,n,1,7)),n.n;case 2:return n.k}return yZ(n,e,t,i)}function y5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=lF(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):lF(n,e,t)}function cx(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&et)%n.d.length,o4e(n,i,RHn(n,i,t,r)))}function fm(n,e){var t;t=(n.Bb&Us)!=0,e?n.Bb|=Us:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,10,t,e))}function hm(n,e){var t;t=(n.Bb&vw)!=0,e?n.Bb|=vw:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,12,t,e))}function lm(n,e){var t;t=(n.Bb&$u)!=0,e?n.Bb|=$u:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,15,t,e))}function am(n,e){var t;t=(n.Bb&Tw)!=0,e?n.Bb|=Tw:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,11,t,e))}function E5e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,len(e.a,n.o,!0),len(e.a,n.o,!1),U(n.o,(cn(),Kt),(Oi(),Ud)))}function C5e(n){var e;if(!n.a)throw M(new Or("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,_In(n,e),KIn(n,e)}function M5e(n,e){var t;if(t=ee(n.k,e),t==null)throw M(new nh("Port did not exist in input."));return HQ(e,t),null}function T5e(n){var e,t;for(t=xHn(jo(n)).Kc();t.Ob();)if(e=Oe(t.Pb()),U5(n,e))return A3e((mCn(),Boe),e);return null}function pBn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function A5e(n){var e,t;for(t=Ya(new x1,91),e=!0;n.Ob();)e||(t.a+=ur),e=!1,Dc(t,n.Pb());return(t.a+="]",t).a}function S5e(n){var e,t,i;for(e=new Z,i=new C(n.b);i.ae?1:n==e?n==0?bt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function I5e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,$t(n.a,n.c,null),e)}function O5e(n){var e,t,i;for(i=0,t=n.length,e=0;e=1?Xr:Vf):t}function $5e(n){switch(u(v(n,(cn(),$l)),223).g){case 1:return new Ppn;case 3:return new Npn;default:return new Spn}}function ea(n){if(n.c)ea(n.c);else if(n.d)throw M(new Or("Stream already terminated, can't be modified or used"))}function $0(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function x5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),Mk(t,u(sn(e,i.p),16)))return i;return null}function OY(n,e,t){var i;return i=0,e&&(mg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(mg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function F5e(n,e,t){var i;i=t,!i&&(i=YV(new up,0)),i.Ug(PXn,2),jRn(n.b,e,i.eh(1)),YIe(n,e,i.eh(1)),eLe(e,i.eh(1)),i.Vg()}function DY(n,e,t){var i,r;return i=(B1(),r=new yE,r),aT(i,e),lT(i,t),n&&ve((!n.a&&(n.a=new ti(xo,n,5)),n.a),i),i}function ox(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (identifier: ",Er(e,n.k),e.a+=")",e.a)}function sx(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function LY(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function dm(n,e){var t;t=(n.Bb&wh)!=0,e?n.Bb|=wh:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,16,t,e))}function NY(n,e){var t;t=(n.Bb&hr)!=0,e?n.Bb|=hr:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,20,t,e))}function $Y(n){var e;return e=K(fs,gh,28,2,15,1),n-=hr,e[0]=(n>>10)+Sy&ui,e[1]=(n&1023)+56320&ui,hh(e,0,e.length)}function B5e(n){var e;return e=sw(n),e>34028234663852886e22?St:e<-34028234663852886e22?li:e}function nr(n,e){var t;return Vr(n)&&Vr(e)&&(t=n+e,Ay"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function _5e(n,e){return An(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function x0(n,e){return Mf(),Rs(sa),y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e))}function El(){El=F,lU=new kC(i8,0),Yj=new kC("POLYLINE",1),Kv=new kC("ORTHOGONAL",2),F3=new kC("SPLINES",3)}function _T(){_T=F,l1n=new uL("ASPECT_RATIO_DRIVEN",0),Oq=new uL("MAX_SCALE_DRIVEN",1),h1n=new uL("AREA_DRIVEN",2)}function H5e(n,e,t){var i;try{l6e(n,e,t)}catch(r){throw r=It(r),O(r,606)?(i=r,M(new $J(i))):M(r)}return e}function q5e(n){var e,t,i;for(t=0,i=n.length;te&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],$t(n,c,n[c-1]),$t(n,c-1,s)}function vn(n,e){var t,i,r,c,s;if(t=e.f,s1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;ce){wDn(t);break}}q7(t,e)}function X5e(n,e){var t,i,r;i=Sg(e),r=$(R(rw(i,(cn(),Vs)))),t=y.Math.max(0,r/2-.5),I5(e,t,1),nn(n,new NCn(e,t))}function V5e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,xrn),i=u(z(e,(Mg(),O2)),27),iGn(n,i),t.dh(e,DS)}function xY(n,e){n.n.c.length==0&&nn(n.n,new NM(n.s,n.t,n.i)),nn(n.b,e),gZ(u(sn(n.n,n.n.c.length-1),209),e),RUn(n,e)}function j5(n){var e;this.a=(e=u(n.e&&n.e(),9),new _o(e,u($s(e,e.length),9),0)),this.b=K(ki,Fn,1,this.a.a.length,5,1)}function Jr(n){var e;return Array.isArray(n)&&n.Tm===J2?za(wo(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function W5e(n,e){return n.h==Ty&&n.m==0&&n.l==0?(e&&(ba=Yc(0,0,0)),nTn((R4(),lun))):(e&&(ba=Yc(n.l,n.m,n.h)),Yc(0,0,0))}function J5e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function yBn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function FY(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return PY(n,e,t,i)}function HT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw M(new Gn("Node "+e+" not part of edge "+n))}function Q5e(n,e){var t;if(t=oy(n.Dh(),e),O(t,102))return u(t,19);throw M(new Gn(da+e+"' is not a valid reference"))}function Jo(n,e,t,i){if(e<0)ten(n,t,i);else{if(!t.rk())throw M(new Gn(da+t.xe()+p8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function eo(n){var e;if(n.b){if(eo(n.b),n.b.d!=n.c)throw M(new Bo)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function Y5e(n){Bb();var e,t,i,r;for(e=n.o.b,i=u(u(ot(n.r,(tn(),ae)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function Z5e(n){var e,t,i;for(this.a=new ih,i=new C(n);i.a=r)return e.c+t;return e.c+e.b.gc()}function e8e(n,e){m4();var t,i,r,c;for(i=LNn(n),r=e,F4(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function i8e(n){var e,t,i,r,c;return c=enn(n),t=e7(n.c),i=!t,i&&(r=new Ka,df(c,"knownLayouters",r),e=new lyn(r),qi(n.c,e)),c}function KY(n){var e,t,i;for(i=new Hl,i.a+="[",e=0,t=n.gc();e0&&(zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!lx(n,N9,$9))}function _Y(n,e){var t;return x(n)===x(e)?!0:O(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&I3e(n,t.a)):!1}function zp(n){switch(tn(),n.g){case 4:return Xn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return sc}}function o8e(n){var e,t;if(n.b)return n.b;for(t=qf?null:n.d;t;){if(e=qf?null:t.b,e)return e;t=qf?null:t.d}return a4(),$un}function HY(n){var e,t,i;for(i=$(R(n.a.of((qe(),iO)))),t=new C(n.a.Sf());t.a>5,e=n&31,i=K(ye,Ke,28,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function Ot(n,e){var t,i,r;if(t=(n.i==null&&bh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function j8e(n){YM(),u(n.of((qe(),Ma)),181).Hc((io(),hO))&&(u(n.of(Ww),181).Fc((zu(),B3)),u(n.of(Ma),181).Mc(hO))}function SBn(n){var e,t;e=n.d==(Yp(),dv),t=GZ(n),e&&!t||!e&&t?U(n.a,(cn(),Th),(Rh(),Uj)):U(n.a,(cn(),Th),(Rh(),qj))}function bx(){bx=F,nC(),EI=(cn(),gb),Qte=If(S(T(Xq,1),Ern,149,0,[Tj,Vs,M2,wb,qw,IH,Av,Sv,OH,J8,C2,Bd,T2]))}function E8e(n,e){var t;return t=u(Wr(n,qu(new ju,new yu,new Eu,S(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),t.Qc(WSn(t.gc()))}function PBn(n,e){var t,i;if(i=new Y3(n.a.ad(e,!0)),i.a.gc()<=1)throw M(new ip);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),40)}function C8e(n,e,t){var i,r;return i=$(n.p[e.i.p])+$(n.d[e.i.p])+e.n.b+e.a.b,r=$(n.p[t.i.p])+$(n.d[t.i.p])+t.n.b+t.a.b,r-i}function WY(n,e){var t;return n.i>0&&(e.lengthn.i&&$t(e,n.i,null),e}function UT(n){var e;return n.Db&64?m5(n):(e=new ls(m5(n)),e.a+=" (instanceClassName: ",Er(e,n.D),e.a+=")",e.a)}function GT(n){var e,t,i,r;for(r=0,t=0,i=n.length;t0?(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=RHn(n,r,i,e),t!=-1):!1}function IBn(n,e){var t,i;n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function JY(n,e){switch(e){case 3:P0(n,0);return;case 4:I0(n,0);return;case 5:eu(n,0);return;case 6:tu(n,0);return}kY(n,e)}function F0(n,e){switch(e.g){case 1:return Cp(n.j,(Ou(),Fon));case 2:return Cp(n.j,(Ou(),Ron));default:return Dn(),Dn(),sr}}function QY(n){m0();var e;switch(e=n.Pc(),e.length){case 0:return qK;case 1:return new VL(Se(e[0]));default:return new PN(q5e(e))}}function OBn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=It(t),O(t,77)?M(new Bo):M(t)}}function gx(){gx=F,TU=new Tvn,zdn=new Avn,Xdn=new Svn,Vdn=new Pvn,Wdn=new Ivn,Jdn=new Ovn,Qdn=new Dvn,Ydn=new Lvn,Zdn=new Nvn}function zT(n,e){kX();var t,i;return t=D7((KE(),KE(),P8)),i=null,e==t&&(i=u(Nc(fun,n),624)),i||(i=new JPn(n),e==t&&Dr(fun,n,i)),i}function DBn(n){cw();var e;return(n.q?n.q:(Dn(),Dn(),Wh))._b((cn(),db))?e=u(v(n,db),203):e=u(v(Hi(n),W8),203),e}function rw(n,e){var t,i;return i=null,kt(n,(cn(),yI))&&(t=u(v(n,yI),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=v(Hi(n),e)),i}function LBn(n,e){var t,i,r;return O(e,44)?(t=u(e,44),i=t.ld(),r=tw(n.Rc(),i),oh(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function wf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=xnn(n,r,i,e),t)?t.md():null}function Xc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Nk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Nk(n,n.i,e),t}function T8e(n,e,t){var i,r;return i=new ml(n.e,4,10,(r=e.c,O(r,90)?u(r,29):(On(),Ps)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function A8e(n,e,t){var i,r;return i=new ml(n.e,3,10,null,(r=e.c,O(r,90)?u(r,29):(On(),Ps)),f1(n,e),!1),t?t.nj(i):t=i,t}function NBn(n){Bb();var e;return e=new rr(u(n.e.of((qe(),K2)),8)),n.B.Hc((io(),Hv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ta(n){dh();var e,t;return t=Ae(n),e=Ae(U1(n,32)),e!=0?new HOn(t,e):t>10||t<0?new gl(1,t):kQn[t]}function Kk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n%e,Ay=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Hk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function L8e(n,e,t,i){var r,c,s;return r=!1,xOe(n.f,t,i)&&(e9e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function BBn(n,e,t){var i,r,c,s;for(r=u(ee(n.b,t),183),i=0,s=new C(e.j);s.a>5,e&=31,r=n.d+t+(e==0?0:1),i=K(ye,Ke,28,r,15,1),Oye(i,n.a,t,e),c=new Qa(n.e,r,i),Q6(c),c}function N8e(n,e){var t,i,r;for(i=new te(re(Qt(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),r=t.d.i,r.c==e)return!1;return!0}function nZ(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=R(rw(n,i)),c=R(rw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function $8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function x8e(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))>0}function eZ(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))<0}function KBn(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))<=0}function mx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t0&&this.b>0&&(this.g=cM(this.c,this.b,this.a))}function F8e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(K$(),WK)[typeof i],c=r?r(i):wY(typeof i);return c}function wm(n){var e,t,i;if(i=null,e=Eh in n.a,t=!e,t)throw M(new nh("Every element must have an id."));return i=Zp(dl(n,Eh)),i}function B0(n){var e,t;for(t=a_n(n),e=null;n.c==2;)Ye(n),e||(e=(nt(),nt(),new P6(2)),pd(e,t),t=e),t.Jm(a_n(n));return t}function VT(n,e){var t,i,r;return n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=xnn(n,r,i,e),t?(V$n(n,t),t.md()):null}function XBn(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function B8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw M(new Gn("Input edge is not connected to the input port."))}function R8e(n){if(JT(nv,n))return _n(),ov;if(JT(cK,n))return _n(),wa;throw M(new Gn("Expecting true or false"))}function rZ(n){switch(typeof n){case nB:return t1(n);case dtn:return pp(n);case i3:return SAn(n);default:return n==null?0:l0(n)}}function ah(n,e){if(n.a<0)throw M(new Or("Did not call before(...) or after(...) before calling add(...)."));return YX(n,n.a,e),n}function cZ(n){return $M(),O(n,162)?u(ee(hE,MQn),295).Rg(n):Zc(hE,wo(n))?u(ee(hE,wo(n)),295).Rg(n):null}function iu(n){var e,t;return n.Db&32||(t=(e=u(Un(n,16),29),se(e||n.ii())-se(n.ii())),t!=0&&Xp(n,32,K(ki,Fn,1,t,5,1))),n}function Xp(n,e,t){var i;n.Db&e?t==null?jCe(n,e):(i=Rx(n,e),i==-1?n.Eb=t:$t(cd(n.Eb),i,t)):t!=null&>e(n,e,t)}function K8e(n,e,t,i){var r,c;e.c.length!=0&&(r=$Me(t,i),c=xEe(e),qt(fT(new Tn(null,new In(c,1)),new L3n),new MIn(n,t,r,i)))}function _8e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,EAn(t=c?(R6e(n,e),-1):(B6e(n,e),1)}function WT(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>PB)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function WBn(n,e){var t;return x(e)===x(n)?!0:!O(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function H8e(n,e){return n.ee.e?1:n.fe.f?1:mt(n)-mt(e)}function JT(n,e){return Jn(n),e==null?!1:An(n,e)?!0:n.length==e.length&&An(n.toLowerCase(),e.toLowerCase())}function Ml(n){var e,t;return Ec(n,-129)>0&&Ec(n,128)<0?(ZSn(),e=Ae(n)+128,t=mun[e],!t&&(t=mun[e]=new kG(n)),t):new kG(n)}function dd(){dd=F,Ow=new aC(kh,0),Don=new aC("INSIDE_PORT_SIDE_GROUPS",1),P_=new aC("GROUP_MODEL_ORDER",2),I_=new aC(tin,3)}function q8e(n){var e;return n.b||xhe(n,(e=$ae(n.e,n.a),!e||!An(cK,wf((!e.b&&(e.b=new lo((On(),ar),pc,e)),e.b),"qualified")))),n.c}function U8e(n,e){var t,i;for(t=(zn(e,n.length),n.charCodeAt(e)),i=e+1;i2e3&&(hQn=n,uP=y.setTimeout(_he,10))),cP++==0?(ime((az(),sun)),!0):!1}function r9e(n,e,t){var i;(DQn?(o8e(n),!0):LQn||$Qn?(a4(),!0):NQn&&(a4(),!1))&&(i=new aSn(e),i.b=t,aje(n,i))}function kx(n,e){var t;t=!n.A.Hc((go(),Gd))||n.q==(Oi(),qc),n.u.Hc((zu(),Fl))?t?XDe(n,e):UGn(n,e):n.u.Hc(Pa)&&(t?dDe(n,e):czn(n,e))}function eRn(n){var e;x(z(n,(qe(),B2)))===x((jl(),uO))&&(At(n)?(e=u(z(At(n),B2),346),ht(n,B2,e)):ht(n,B2,M9))}function c9e(n){var e,t;return kt(n.d.i,(cn(),Cv))?(e=u(v(n.c.i,Cv),17),t=u(v(n.d.i,Cv),17),jc(e.a,t.a)>0):!1}function tRn(n,e,t){return new Ho(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function iRn(n){var e;this.d=new Z,this.j=new Li,this.g=new Li,e=n.g.b,this.f=u(v(Hi(e),(cn(),Do)),88),this.e=$(R(nA(e,qw)))}function rRn(n){this.d=new Z,this.e=new Ql,this.c=K(ye,Ke,28,(tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=n}function sZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function cRn(n,e,t){var i,r;r=u(V7(e.f),205);try{r.rf(n,t),hIn(e.f,r)}catch(c){throw c=It(c),O(c,103)?(i=c,M(i)):M(c)}}function uRn(n,e,t){var i,r,c,s,f,h;return i=null,f=Zen(z4(),e),c=null,f&&(r=null,h=Qen(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function yx(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;ei&&$t(e,i,null),e}function oRn(n,e){var t,i;for(i=n.a.length,e.lengthi&&$t(e,i,null),e}function gm(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,O(i,99)?u(i,99).th():null),hCe(e,t))){Xp(n.a,4,t);return}Xp(n.a,4,u(e,129))}function u9e(n){var e;if(n==null)return null;if(e=lMe(Fc(n,!0)),e==null)throw M(new kD("Invalid hexBinary value: '"+n+"'"));return e}function QT(n,e,t){var i;e.a.length>0&&(nn(n.b,new SSn(e.a,t)),i=e.a.length,0i&&(e.a+=ITn(K(fs,gh,28,-i,15,1))))}function sRn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new C($g(e));r.a=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=0?n.Wh(r):hF(n,i)):t<0?hF(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function aRn(n){var e,t,i;for(i=(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return uk(i)}function rn(n){var e;if(O(n.a,4)){if(e=cZ(n.a),e==null)throw M(new Or(NVn+n.b+"'. "+LVn+(ll(lE),lE.k)+bcn));return e}else return n.a}function b9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t=64&&e<128&&(r=hf(r,Fs(1,e-64)));return r}function nA(n,e){var t,i;return i=null,kt(n,(qe(),$3))&&(t=u(v(n,$3),96),t.pf(e)&&(i=t.of(e))),i==null&&Hi(n)&&(i=v(Hi(n),e)),i}function w9e(n,e){var t;return t=u(v(n,(cn(),Fr)),75),yL(e,LZn)?t?vo(t):(t=new Mu,U(n,Fr,t)):t&&U(n,Fr,null),t}function M5(){M5=F,aon=(qe(),qan),g_=Ean,DYn=$2,lon=C1,xYn=(aA(),Uun),$Yn=Hun,FYn=zun,NYn=_un,LYn=(Q$(),son),w_=PYn,hon=IYn,pP=OYn}function eA(n){switch($z(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=qW(Oon),this.b=St;break;case 3:case 1:this.a=Oon,this.b=li}}function g9e(n){var e;Ep(u(v(n,(cn(),Kt)),101))&&(e=n.b,nHn((Ln(0,e.c.length),u(e.c[0],30))),nHn(u(sn(e,e.c.length-1),30)))}function p9e(n,e){e.Ug("Self-Loop post-processing",1),qt(ut(ut(rc(new Tn(null,new In(n.b,16)),new s2n),new f2n),new h2n),new l2n),e.Vg()}function dRn(n,e,t){var i,r;if(n.c)eu(n.c,n.c.i+e),tu(n.c,n.c.j+t);else for(r=new C(n.b);r.a=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function T5(){T5=F,Nhn=new d7(Crn,0),KH=new d7(sR,1),_H=new d7("LINEAR_SEGMENTS",2),Y8=new d7("BRANDES_KOEPF",3),Z8=new d7(sVn,4)}function A5(){A5=F,fj=new hC(eS,0),wP=new hC(HB,1),gP=new hC(qB,2),hj=new hC(UB,3),fj.a=!1,wP.a=!0,gP.a=!1,hj.a=!0}function Vp(){Vp=F,uj=new fC(eS,0),cj=new fC(HB,1),oj=new fC(qB,2),sj=new fC(UB,3),uj.a=!1,cj.a=!0,oj.a=!1,sj.a=!0}function Wp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function fZ(n,e){switch(e){case 7:!n.e&&(n.e=new Nn(Vt,n,7,4)),me(n.e);return;case 8:!n.d&&(n.d=new Nn(Vt,n,8,5)),me(n.d);return}JY(n,e)}function ht(n,e,t){return t==null?(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),VT(n.o,e)):(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),Vk(n.o,e,t)),n}function pRn(n,e){Dn();var t,i,r,c;for(t=n,c=e,O(n,21)&&!O(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function j9e(n,e,t,i){if(e.at.b)return!0}return!1}function Tx(n,e){return Ai(n)?!!iQn[e]:n.Sm?!!n.Sm[e]:$b(n)?!!tQn[e]:Nb(n)?!!eQn[e]:!1}function E9e(n){var e;e=n.a;do e=u(fe(new te(re(ji(e).a.Kc(),new En))),18).c.i,e.k==(Vn(),Mi)&&n.b.Fc(e);while(e.k==(Vn(),Mi));n.b=Qo(n.b)}function mRn(n,e){var t,i,r;for(r=n,i=new te(re(ji(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function C9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function M9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function vRn(n){var e,t,i,r;if(i=0,r=aw(n),r.c.length==0)return 1;for(t=new C(r);t.a=0?n.Lh(s,t,!0):H0(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function P9e(n,e,t,i){var r,c;c=e.pf((qe(),R2))?u(e.of(R2),21):n.j,r=d5e(c),r!=(VA(),l_)&&(t&&!tZ(r)||bnn(aMe(n,r,i),e))}function I9e(n){switch(n.g){case 1:return N0(),rj;case 3:return N0(),ij;case 2:return N0(),d_;case 4:return N0(),a_;default:return null}}function O9e(n,e,t){if(n.e)switch(n.b){case 1:yge(n.c,e,t);break;case 0:jge(n.c,e,t)}else KDn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function kRn(n){var e,t;if(n==null)return null;for(t=K(Qh,J,199,n.length,0,2),e=0;e=0)return r;if(n.ol()){for(i=0;i=r)throw M(new Kb(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw M(new Gn(Vy));return n.Xi(e,t)}function hZ(n,e){if(this.a=u(Se(n),253),this.b=u(Se(e),253),n.Ed(e)>0||n==(dD(),_K)||e==(bD(),HK))throw M(new Gn("Invalid range: "+qDn(n,e)))}function yRn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new C(n.a);t.a0),(e&-e)==e)return wi(e*to(n,31)*4656612873077393e-25);do t=to(n,31),i=t%e;while(t-i+(e-1)<0);return wi(i)}function F9e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function qk(n,e,t,i){var r,c;for(r=e;r1&&(c=L9e(n,e)),c}function CRn(n){var e;return e=$(R(z(n,(qe(),Qj))))*y.Math.sqrt((!n.a&&(n.a=new q(Qe,n,10,11)),n.a).i),new V(e,e/$(R(z(n,rO))))}function Sx(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(na(n,e),84),n.f!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,8,e,n.f))),n.f}function Px(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(na(n,e),84),n.i!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,7,e,n.i))),n.i}function br(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(na(n,e),19),n.b!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,21,e,n.b))),n.b}function uA(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),uTe(n,n.f+1),r=(i&et)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function dZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:rt(i,t)):e.qk()==n.e.Dh()&&t==null}function oA(){var n;Co(16,$zn),n=sxn(16),this.b=K(UK,Cy,303,n,0,1),this.c=K(UK,Cy,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Tl(n){vV.call(this),this.k=(Vn(),zt),this.j=(Co(6,mw),new Gc(6)),this.b=(Co(2,mw),new Gc(2)),this.d=new sD,this.f=new nz,this.a=n}function R9e(n){var e,t;n.c.length<=1||(e=Sqn(n,(tn(),ae)),w_n(n,u(e.a,17).a,u(e.b,17).a),t=Sqn(n,Wn),w_n(n,u(t.a,17).a,u(t.b,17).a))}function K9e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function Nx(n,e){if(n==null)throw M(new sp("null key in entry: null="+e));if(e==null)throw M(new sp("null value in entry: "+n+"=null"))}function q9e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(x(t)===x(i)||t!=null&&rt(t,i))))return!1;return!e.Ob()}function ARn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[Z$(n.a[0],e),Z$(n.a[1],e),Z$(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function SRn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[$T(n.a[0],e),$T(n.a[1],e),$T(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function wZ(n,e,t){Ep(u(v(e,(cn(),Kt)),101))||(PJ(n,e,h1(e,t)),PJ(n,e,h1(e,(tn(),ae))),PJ(n,e,h1(e,Xn)),Dn(),Yt(e.j,new N7n(n)))}function PRn(n){var e,t;for(n.c||sOe(n),t=new Mu,e=new C(n.a),E(e);e.a0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function i7e(n){var e;return n==null?null:new H1((e=Fc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function pZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&pZ(n,e,t,h,r,c,s,f),qx(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&pZ(n,e,t,l,r,c,s,f))}function Rg(n,e,t){try{return o0(C$(n,e,t),1)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function NRn(n,e,t){try{return o0(C$(n,e,t),0)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function $Rn(n,e,t){try{return o0(C$(n,e,t),2)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function xRn(n,e){if(n.g==-1)throw M(new Cu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=It(t),O(t,77)?M(new Bo):M(t)}}function r7e(n){var e,t,i,r,c;for(i=new C(n.b);i.ac&&$t(e,c,null),e}function c7e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=s,s+=f*(h+i)}function BRn(n){var e,t,i;for(i=n.f,n.n=K(Pi,Tr,28,i,15,1),n.d=K(Pi,Tr,28,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function qRn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[aZ(n,(bf(),bc),e),aZ(n,Wc,e),aZ(n,wc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function d7e(n,e,t){var i;try{xA(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=It(r),O(r,77)?(i=r,M(new Ir(i.g+iS+e+ur+t+")."))):M(r)}}function b7e(n,e,t){var i;try{xA(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=It(r),O(r,77)?(i=r,M(new Ir(i.g+iS+e+ur+t+")."))):M(r)}}function URn(n){var e;kt(n,(cn(),ab))&&(e=u(v(n,ab),21),e.Hc((lw(),Js))?(e.Mc(Js),e.Fc(Qs)):e.Hc(Qs)&&(e.Mc(Qs),e.Fc(Js)))}function GRn(n){var e;kt(n,(cn(),ab))&&(e=u(v(n,ab),21),e.Hc((lw(),Zs))?(e.Mc(Zs),e.Fc(Cs)):e.Hc(Cs)&&(e.Mc(Cs),e.Fc(Zs)))}function Kx(n,e,t,i){var r,c,s,f;return n.a==null&&gje(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function w7e(n){var e,t;if(!n.b)for(n.b=RM(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ce(t),135),nn(n.b,new pD(e));return n.b}function g7e(n){var e,t;if(!n.e)for(n.e=RM(mN(u(n.f,27)).i),t=new ne(mN(u(n.f,27)));t.e!=t.i.gc();)e=u(ce(t),123),nn(n.e,new Bkn(e));return n.e}function zRn(n){var e,t;if(!n.a)for(n.a=RM(AM(u(n.f,27)).i),t=new ne(AM(u(n.f,27)));t.e!=t.i.gc();)e=u(ce(t),27),nn(n.a,new ML(n,e));return n.a}function K0(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=iDe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=It(t),!O(t,63))throw M(t)}return n.C}function p7e(n){switch(n.q.g){case 5:gKn(n,(tn(),Xn)),gKn(n,ae);break;case 4:mGn(n,(tn(),Xn)),mGn(n,ae);break;default:y_n(n,(tn(),Xn)),y_n(n,ae)}}function m7e(n){switch(n.q.g){case 5:pKn(n,(tn(),Zn)),pKn(n,Wn);break;case 4:vGn(n,(tn(),Zn)),vGn(n,Wn);break;default:j_n(n,(tn(),Zn)),j_n(n,Wn)}}function Kg(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Sm(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function hA(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Sm(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function XRn(n){var e,t,i;for(i=et,t=new C(n.a);t.a>16==6?n.Cb.Th(n,5,jf,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function v7e(n){O4();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` `;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` diff --git a/starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-BIYXEZbj.js b/deploy/server/notebase/assets/ganttDiagram-c361ad54-CL2W0VK9.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-BIYXEZbj.js rename to deploy/server/notebase/assets/ganttDiagram-c361ad54-CL2W0VK9.js index e1cc6ade6c..80562f4648 100644 --- a/starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-BIYXEZbj.js +++ b/deploy/server/notebase/assets/ganttDiagram-c361ad54-CL2W0VK9.js @@ -1,4 +1,4 @@ -import{H as Re,I as ze,R as Be,J as qe,K as bn,L as $t,M as vn,c as wt,s as xn,g as wn,A as Cn,B as Dn,b as Mn,a as _n,C as Sn,m as Un,l as Xt,h as Rt,i as Fn,j as En,y as An}from"./mermaid.core-BRpiNjs-.js";import{m as K,y as In,z as Ln,A as Yn}from"./index-DFpvp1rn.js";import{b as Wn,t as _e,c as Nn,a as Hn,l as On}from"./linear-DCGWotbG.js";import{i as Vn}from"./init-Gi6I4Gst.js";function Pn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function zn(t){return t}var Bt=1,te=2,ue=3,zt=4,Se=1e-6;function Bn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Zn(t){return e=>+t(e)}function Xn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function jn(){return!this.__axis}function Ze(t,e){var n=[],r=null,i=null,s=6,a=6,D=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,x=t===Bt||t===zt?-1:1,T=t===zt||t===te?"x":"y",I=t===Bt||t===ue?Bn:qn;function w(y){var R=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):zn),tt=Math.max(s,0)+D,nt=e.range(),et=+nt[0]+S,q=+nt[nt.length-1]+S,Z=(e.bandwidth?Xn:Zn)(e.copy(),S),$=y.selection?y.selection():y,p=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(R,e).order(),k=O.exit(),U=O.enter().append("g").attr("class","tick"),_=O.select("line"),b=O.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),_=_.merge(U.append("line").attr("stroke","currentColor").attr(T+"2",x*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(T,x*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),y!==$&&(p=p.transition(y),O=O.transition(y),_=_.transition(y),b=b.transition(y),k=k.transition(y).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?I(c+S):this.getAttribute("transform")}),U.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return I((d&&isFinite(d=d(c))?d:Z(c))+S)})),k.remove(),p.attr("d",t===zt||t===te?a?"M"+x*a+","+et+"H"+S+"V"+q+"H"+x*a:"M"+S+","+et+"V"+q:a?"M"+et+","+x*a+"V"+S+"H"+q+"V"+x*a:"M"+et+","+S+"H"+q),O.attr("opacity",1).attr("transform",function(c){return I(Z(c)+S)}),_.attr(T+"2",x*s),b.attr(T,x*tt).text(E),$.filter(jn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===zt?"end":"middle"),$.each(function(){this.__axis=Z})}return w.scale=function(y){return arguments.length?(e=y,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(y){return arguments.length?(n=y==null?[]:Array.from(y),w):n.slice()},w.tickValues=function(y){return arguments.length?(r=y==null?null:Array.from(y),w):r&&r.slice()},w.tickFormat=function(y){return arguments.length?(i=y,w):i},w.tickSize=function(y){return arguments.length?(s=a=+y,w):s},w.tickSizeInner=function(y){return arguments.length?(s=+y,w):s},w.tickSizeOuter=function(y){return arguments.length?(a=+y,w):a},w.tickPadding=function(y){return arguments.length?(D=+y,w):D},w.offset=function(y){return arguments.length?(S=+y,w):S},w}function Qn(t){return Ze(Bt,t)}function Jn(t){return Ze(ue,t)}const Gn=Math.PI/180,Kn=180/Math.PI,jt=18,Xe=.96422,je=1,Qe=.82521,Je=4/29,Ct=6/29,Ge=3*Ct*Ct,$n=Ct*Ct*Ct;function Ke(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return $e(t);t instanceof Be||(t=bn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/je),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Xe),a=ee((.0139322*e+.0971045*n+.7141733*r)/Qe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function tr(t,e,n,r){return arguments.length===1?Ke(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Re(st,tr,ze(qe,{brighter(t){return new st(this.l+jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Xe*ne(e),t=je*ne(t),n=Qe*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>$n?Math.pow(t,1/3):t/Ge+Je}function ne(t){return t>Ct?t*t*t:Ge*(t-Je)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function er(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=Ke(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),D=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,D)=>{const S=[];if(s=i.ceil(s),D=D==null?1:Math.floor(D),!(s0))return S;let x;do S.push(x=new Date(+s)),e(s,D),t(s);while(xj(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,D)=>{if(a>=a)if(D<0)for(;++D<=0;)for(;e(a,-1),!s(a););else for(;--D>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=j(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?j(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=j(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const It=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());It.range;const sr=j(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());sr.range;const Lt=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());Lt.range;const ar=j(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());ar.range;const yt=j(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const or=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));or.range;function Tt(t){return j(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Yt=Tt(1),tn=Tt(2),en=Tt(3),kt=Tt(4),nn=Tt(5),rn=Tt(6);Nt.range;Yt.range;tn.range;en.range;kt.range;nn.range;rn.range;function bt(t){return j(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const sn=bt(0),Qt=bt(1),cr=bt(2),lr=bt(3),_t=bt(4),ur=bt(5),fr=bt(6);sn.range;Qt.range;cr.range;lr.range;_t.range;ur.range;fr.range;const Wt=j(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const hr=j(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hr.range;const ht=j(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=j(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function dr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function D(x,T,I){const w=Ttt).right(a,w);if(y===a.length)return t.every(_e(x/oe,T/oe,I));if(y===0)return Mt.every(Math.max(_e(x,T,I),1));const[R,E]=a[w/a[y-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(H=le(Ft(l.y,0,1)),B=H.getUTCDay(),H=B>4||B===0?Qt.ceil(H):Qt(H),H=ke.offset(H,(l.V-1)*7),l.y=H.getUTCFullYear(),l.m=H.getUTCMonth(),l.d=H.getUTCDate()+(l.w+6)%7):(H=ce(Ft(l.y,0,1)),B=H.getDay(),H=B>4||B===0?Yt.ceil(H):Yt(H),H=yt.offset(H,(l.V-1)*7),l.y=H.getFullYear(),l.m=H.getMonth(),l.d=H.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function k(g,F,v,l){for(var V=0,H=F.length,B=v.length,Q,G;V=B)return-1;if(Q=F.charCodeAt(V++),Q===37){if(Q=F.charAt(V++),G=$[Q in Fe?F.charAt(V++):Q],!G||(l=G(g,v,l))<0)return-1}else if(Q!=v.charCodeAt(l++))return-1}return l}function U(g,F,v){var l=x.exec(F.slice(v));return l?(g.p=T.get(l[0].toLowerCase()),v+l[0].length):-1}function _(g,F,v){var l=y.exec(F.slice(v));return l?(g.w=R.get(l[0].toLowerCase()),v+l[0].length):-1}function b(g,F,v){var l=I.exec(F.slice(v));return l?(g.w=w.get(l[0].toLowerCase()),v+l[0].length):-1}function c(g,F,v){var l=nt.exec(F.slice(v));return l?(g.m=et.get(l[0].toLowerCase()),v+l[0].length):-1}function d(g,F,v){var l=E.exec(F.slice(v));return l?(g.m=tt.get(l[0].toLowerCase()),v+l[0].length):-1}function m(g,F,v){return k(g,e,F,v)}function u(g,F,v){return k(g,n,F,v)}function C(g,F,v){return k(g,r,F,v)}function o(g){return a[g.getDay()]}function z(g){return s[g.getDay()]}function h(g){return S[g.getMonth()]}function f(g){return D[g.getMonth()]}function M(g){return i[+(g.getHours()>=12)]}function P(g){return 1+~~(g.getMonth()/3)}function L(g){return a[g.getUTCDay()]}function W(g){return s[g.getUTCDay()]}function A(g){return S[g.getUTCMonth()]}function N(g){return D[g.getUTCMonth()]}function mt(g){return i[+(g.getUTCHours()>=12)]}function gt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var F=p(g+="",q);return F.toString=function(){return g},F},parse:function(g){var F=O(g+="",!1);return F.toString=function(){return g},F},utcFormat:function(g){var F=p(g+="",Z);return F.toString=function(){return g},F},utcParse:function(g){var F=O(g+="",!0);return F.toString=function(){return g},F}}}var Fe={"-":"",_:" ",0:"0"},J=/^\s*\d+/,kr=/^%/,pr=/[\\^$*+?|[\]().{}]/g;function Y(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function br(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Mr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function _r(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=kr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ye(t,e){return Y(t.getDate(),e,2)}function Wr(t,e){return Y(t.getHours(),e,2)}function Nr(t,e){return Y(t.getHours()%12||12,e,2)}function Hr(t,e){return Y(1+yt.count(ht(t),t),e,3)}function an(t,e){return Y(t.getMilliseconds(),e,3)}function Or(t,e){return an(t,e)+"000"}function Vr(t,e){return Y(t.getMonth()+1,e,2)}function Pr(t,e){return Y(t.getMinutes(),e,2)}function Rr(t,e){return Y(t.getSeconds(),e,2)}function zr(t){var e=t.getDay();return e===0?7:e}function Br(t,e){return Y(Nt.count(ht(t)-1,t),e,2)}function on(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=on(t),Y(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function Xr(t,e){return Y(Yt.count(ht(t)-1,t),e,2)}function jr(t,e){return Y(t.getFullYear()%100,e,2)}function Qr(t,e){return t=on(t),Y(t.getFullYear()%100,e,2)}function Jr(t,e){return Y(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),Y(t.getFullYear()%1e4,e,4)}function Kr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Y(e/60|0,"0",2)+Y(e%60,"0",2)}function We(t,e){return Y(t.getUTCDate(),e,2)}function $r(t,e){return Y(t.getUTCHours(),e,2)}function ti(t,e){return Y(t.getUTCHours()%12||12,e,2)}function ei(t,e){return Y(1+ke.count(pt(t),t),e,3)}function cn(t,e){return Y(t.getUTCMilliseconds(),e,3)}function ni(t,e){return cn(t,e)+"000"}function ri(t,e){return Y(t.getUTCMonth()+1,e,2)}function ii(t,e){return Y(t.getUTCMinutes(),e,2)}function si(t,e){return Y(t.getUTCSeconds(),e,2)}function ai(t){var e=t.getUTCDay();return e===0?7:e}function oi(t,e){return Y(sn.count(pt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return e>=4||e===0?_t(t):_t.ceil(t)}function ci(t,e){return t=ln(t),Y(_t.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function li(t){return t.getUTCDay()}function ui(t,e){return Y(Qt.count(pt(t)-1,t),e,2)}function fi(t,e){return Y(t.getUTCFullYear()%100,e,2)}function hi(t,e){return t=ln(t),Y(t.getUTCFullYear()%100,e,2)}function di(t,e){return Y(t.getUTCFullYear()%1e4,e,4)}function mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?_t(t):_t.ceil(t),Y(t.getUTCFullYear()%1e4,e,4)}function gi(){return"+0000"}function Ne(){return"%"}function He(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var xt,Jt;yi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yi(t){return xt=yr(t),Jt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function ki(t){return new Date(t)}function pi(t){return t instanceof Date?+t:+new Date(+t)}function un(t,e,n,r,i,s,a,D,S,x){var T=Nn(),I=T.invert,w=T.domain,y=x(".%L"),R=x(":%S"),E=x("%I:%M"),tt=x("%I %p"),nt=x("%a %d"),et=x("%b %d"),q=x("%B"),Z=x("%Y");function $(p){return(S(p)"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var g=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function F(){var at;return at=u.pop()||A.lex()||L,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var v,l,V,H,B={},Q,G,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?V=this.defaultActions[l]:((v===null||typeof v>"u")&&(v=F()),V=z[l]&&z[l][v]),typeof V>"u"||!V.length||!V[0]){var Kt="";Pt=[];for(Q in z[l])this.terminals_[Q]&&Q>P&&Pt.push("'"+this.terminals_[Q]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: +import{H as Re,I as ze,R as Be,J as qe,K as bn,L as $t,M as vn,c as wt,s as xn,g as wn,A as Cn,B as Dn,b as Mn,a as _n,C as Sn,m as Un,l as Xt,h as Rt,i as Fn,j as En,y as An}from"./mermaid.core-CLEyumap.js";import{m as K,y as In,z as Ln,A as Yn}from"./index-hnRSc5ud.js";import{b as Wn,t as _e,c as Nn,a as Hn,l as On}from"./linear-91jlWj_6.js";import{i as Vn}from"./init-Gi6I4Gst.js";function Pn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function zn(t){return t}var Bt=1,te=2,ue=3,zt=4,Se=1e-6;function Bn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Zn(t){return e=>+t(e)}function Xn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function jn(){return!this.__axis}function Ze(t,e){var n=[],r=null,i=null,s=6,a=6,D=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,x=t===Bt||t===zt?-1:1,T=t===zt||t===te?"x":"y",I=t===Bt||t===ue?Bn:qn;function w(y){var R=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):zn),tt=Math.max(s,0)+D,nt=e.range(),et=+nt[0]+S,q=+nt[nt.length-1]+S,Z=(e.bandwidth?Xn:Zn)(e.copy(),S),$=y.selection?y.selection():y,p=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(R,e).order(),k=O.exit(),U=O.enter().append("g").attr("class","tick"),_=O.select("line"),b=O.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),_=_.merge(U.append("line").attr("stroke","currentColor").attr(T+"2",x*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(T,x*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),y!==$&&(p=p.transition(y),O=O.transition(y),_=_.transition(y),b=b.transition(y),k=k.transition(y).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?I(c+S):this.getAttribute("transform")}),U.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return I((d&&isFinite(d=d(c))?d:Z(c))+S)})),k.remove(),p.attr("d",t===zt||t===te?a?"M"+x*a+","+et+"H"+S+"V"+q+"H"+x*a:"M"+S+","+et+"V"+q:a?"M"+et+","+x*a+"V"+S+"H"+q+"V"+x*a:"M"+et+","+S+"H"+q),O.attr("opacity",1).attr("transform",function(c){return I(Z(c)+S)}),_.attr(T+"2",x*s),b.attr(T,x*tt).text(E),$.filter(jn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===zt?"end":"middle"),$.each(function(){this.__axis=Z})}return w.scale=function(y){return arguments.length?(e=y,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(y){return arguments.length?(n=y==null?[]:Array.from(y),w):n.slice()},w.tickValues=function(y){return arguments.length?(r=y==null?null:Array.from(y),w):r&&r.slice()},w.tickFormat=function(y){return arguments.length?(i=y,w):i},w.tickSize=function(y){return arguments.length?(s=a=+y,w):s},w.tickSizeInner=function(y){return arguments.length?(s=+y,w):s},w.tickSizeOuter=function(y){return arguments.length?(a=+y,w):a},w.tickPadding=function(y){return arguments.length?(D=+y,w):D},w.offset=function(y){return arguments.length?(S=+y,w):S},w}function Qn(t){return Ze(Bt,t)}function Jn(t){return Ze(ue,t)}const Gn=Math.PI/180,Kn=180/Math.PI,jt=18,Xe=.96422,je=1,Qe=.82521,Je=4/29,Ct=6/29,Ge=3*Ct*Ct,$n=Ct*Ct*Ct;function Ke(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return $e(t);t instanceof Be||(t=bn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/je),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Xe),a=ee((.0139322*e+.0971045*n+.7141733*r)/Qe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function tr(t,e,n,r){return arguments.length===1?Ke(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Re(st,tr,ze(qe,{brighter(t){return new st(this.l+jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Xe*ne(e),t=je*ne(t),n=Qe*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>$n?Math.pow(t,1/3):t/Ge+Je}function ne(t){return t>Ct?t*t*t:Ge*(t-Je)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function er(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=Ke(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),D=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,D)=>{const S=[];if(s=i.ceil(s),D=D==null?1:Math.floor(D),!(s0))return S;let x;do S.push(x=new Date(+s)),e(s,D),t(s);while(xj(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,D)=>{if(a>=a)if(D<0)for(;++D<=0;)for(;e(a,-1),!s(a););else for(;--D>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=j(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?j(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=j(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const It=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());It.range;const sr=j(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());sr.range;const Lt=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());Lt.range;const ar=j(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());ar.range;const yt=j(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const or=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));or.range;function Tt(t){return j(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Yt=Tt(1),tn=Tt(2),en=Tt(3),kt=Tt(4),nn=Tt(5),rn=Tt(6);Nt.range;Yt.range;tn.range;en.range;kt.range;nn.range;rn.range;function bt(t){return j(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const sn=bt(0),Qt=bt(1),cr=bt(2),lr=bt(3),_t=bt(4),ur=bt(5),fr=bt(6);sn.range;Qt.range;cr.range;lr.range;_t.range;ur.range;fr.range;const Wt=j(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const hr=j(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hr.range;const ht=j(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=j(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function dr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function D(x,T,I){const w=Ttt).right(a,w);if(y===a.length)return t.every(_e(x/oe,T/oe,I));if(y===0)return Mt.every(Math.max(_e(x,T,I),1));const[R,E]=a[w/a[y-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(H=le(Ft(l.y,0,1)),B=H.getUTCDay(),H=B>4||B===0?Qt.ceil(H):Qt(H),H=ke.offset(H,(l.V-1)*7),l.y=H.getUTCFullYear(),l.m=H.getUTCMonth(),l.d=H.getUTCDate()+(l.w+6)%7):(H=ce(Ft(l.y,0,1)),B=H.getDay(),H=B>4||B===0?Yt.ceil(H):Yt(H),H=yt.offset(H,(l.V-1)*7),l.y=H.getFullYear(),l.m=H.getMonth(),l.d=H.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function k(g,F,v,l){for(var V=0,H=F.length,B=v.length,Q,G;V=B)return-1;if(Q=F.charCodeAt(V++),Q===37){if(Q=F.charAt(V++),G=$[Q in Fe?F.charAt(V++):Q],!G||(l=G(g,v,l))<0)return-1}else if(Q!=v.charCodeAt(l++))return-1}return l}function U(g,F,v){var l=x.exec(F.slice(v));return l?(g.p=T.get(l[0].toLowerCase()),v+l[0].length):-1}function _(g,F,v){var l=y.exec(F.slice(v));return l?(g.w=R.get(l[0].toLowerCase()),v+l[0].length):-1}function b(g,F,v){var l=I.exec(F.slice(v));return l?(g.w=w.get(l[0].toLowerCase()),v+l[0].length):-1}function c(g,F,v){var l=nt.exec(F.slice(v));return l?(g.m=et.get(l[0].toLowerCase()),v+l[0].length):-1}function d(g,F,v){var l=E.exec(F.slice(v));return l?(g.m=tt.get(l[0].toLowerCase()),v+l[0].length):-1}function m(g,F,v){return k(g,e,F,v)}function u(g,F,v){return k(g,n,F,v)}function C(g,F,v){return k(g,r,F,v)}function o(g){return a[g.getDay()]}function z(g){return s[g.getDay()]}function h(g){return S[g.getMonth()]}function f(g){return D[g.getMonth()]}function M(g){return i[+(g.getHours()>=12)]}function P(g){return 1+~~(g.getMonth()/3)}function L(g){return a[g.getUTCDay()]}function W(g){return s[g.getUTCDay()]}function A(g){return S[g.getUTCMonth()]}function N(g){return D[g.getUTCMonth()]}function mt(g){return i[+(g.getUTCHours()>=12)]}function gt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var F=p(g+="",q);return F.toString=function(){return g},F},parse:function(g){var F=O(g+="",!1);return F.toString=function(){return g},F},utcFormat:function(g){var F=p(g+="",Z);return F.toString=function(){return g},F},utcParse:function(g){var F=O(g+="",!0);return F.toString=function(){return g},F}}}var Fe={"-":"",_:" ",0:"0"},J=/^\s*\d+/,kr=/^%/,pr=/[\\^$*+?|[\]().{}]/g;function Y(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function br(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Mr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function _r(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=kr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ye(t,e){return Y(t.getDate(),e,2)}function Wr(t,e){return Y(t.getHours(),e,2)}function Nr(t,e){return Y(t.getHours()%12||12,e,2)}function Hr(t,e){return Y(1+yt.count(ht(t),t),e,3)}function an(t,e){return Y(t.getMilliseconds(),e,3)}function Or(t,e){return an(t,e)+"000"}function Vr(t,e){return Y(t.getMonth()+1,e,2)}function Pr(t,e){return Y(t.getMinutes(),e,2)}function Rr(t,e){return Y(t.getSeconds(),e,2)}function zr(t){var e=t.getDay();return e===0?7:e}function Br(t,e){return Y(Nt.count(ht(t)-1,t),e,2)}function on(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=on(t),Y(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function Xr(t,e){return Y(Yt.count(ht(t)-1,t),e,2)}function jr(t,e){return Y(t.getFullYear()%100,e,2)}function Qr(t,e){return t=on(t),Y(t.getFullYear()%100,e,2)}function Jr(t,e){return Y(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),Y(t.getFullYear()%1e4,e,4)}function Kr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Y(e/60|0,"0",2)+Y(e%60,"0",2)}function We(t,e){return Y(t.getUTCDate(),e,2)}function $r(t,e){return Y(t.getUTCHours(),e,2)}function ti(t,e){return Y(t.getUTCHours()%12||12,e,2)}function ei(t,e){return Y(1+ke.count(pt(t),t),e,3)}function cn(t,e){return Y(t.getUTCMilliseconds(),e,3)}function ni(t,e){return cn(t,e)+"000"}function ri(t,e){return Y(t.getUTCMonth()+1,e,2)}function ii(t,e){return Y(t.getUTCMinutes(),e,2)}function si(t,e){return Y(t.getUTCSeconds(),e,2)}function ai(t){var e=t.getUTCDay();return e===0?7:e}function oi(t,e){return Y(sn.count(pt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return e>=4||e===0?_t(t):_t.ceil(t)}function ci(t,e){return t=ln(t),Y(_t.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function li(t){return t.getUTCDay()}function ui(t,e){return Y(Qt.count(pt(t)-1,t),e,2)}function fi(t,e){return Y(t.getUTCFullYear()%100,e,2)}function hi(t,e){return t=ln(t),Y(t.getUTCFullYear()%100,e,2)}function di(t,e){return Y(t.getUTCFullYear()%1e4,e,4)}function mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?_t(t):_t.ceil(t),Y(t.getUTCFullYear()%1e4,e,4)}function gi(){return"+0000"}function Ne(){return"%"}function He(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var xt,Jt;yi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yi(t){return xt=yr(t),Jt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function ki(t){return new Date(t)}function pi(t){return t instanceof Date?+t:+new Date(+t)}function un(t,e,n,r,i,s,a,D,S,x){var T=Nn(),I=T.invert,w=T.domain,y=x(".%L"),R=x(":%S"),E=x("%I:%M"),tt=x("%I %p"),nt=x("%a %d"),et=x("%b %d"),q=x("%B"),Z=x("%Y");function $(p){return(S(p)"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var g=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function F(){var at;return at=u.pop()||A.lex()||L,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var v,l,V,H,B={},Q,G,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?V=this.defaultActions[l]:((v===null||typeof v>"u")&&(v=F()),V=z[l]&&z[l][v]),typeof V>"u"||!V.length||!V[0]){var Kt="";Pt=[];for(Q in z[l])this.terminals_[Q]&&Q>P&&Pt.push("'"+this.terminals_[Q]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: `+A.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[v]||v)+"'":Kt="Parse error on line "+(f+1)+": Unexpected "+(v==L?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(Kt,{text:A.match,token:this.terminals_[v]||v,line:A.yylineno,loc:gt,expected:Pt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+v);switch(V[0]){case 1:m.push(v),C.push(A.yytext),o.push(A.yylloc),m.push(V[1]),v=null,M=A.yyleng,h=A.yytext,f=A.yylineno,gt=A.yylloc;break;case 2:if(G=this.productions_[V[1]][1],B.$=C[C.length-G],B._$={first_line:o[o.length-(G||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(G||1)].first_column,last_column:o[o.length-1].last_column},g&&(B._$.range=[o[o.length-(G||1)].range[0],o[o.length-1].range[1]]),H=this.performAction.apply(B,[h,M,f,N.yy,V[1],C,o].concat(W)),typeof H<"u")return H;G&&(m=m.slice(0,-1*G*2),C=C.slice(0,-1*G),o=o.slice(0,-1*G)),m.push(this.productions_[V[1]][0]),C.push(B.$),o.push(B._$),Ut=z[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},U=function(){var b={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},unput:function(c){var d=c.length,m=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(c){this.unput(this.match.slice(c))},pastInput:function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-B5qJwgjK.js b/deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-Cbit1_Nq.js similarity index 99% rename from deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-B5qJwgjK.js rename to deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-Cbit1_Nq.js index ad3351b401..d0de81a61e 100644 --- a/deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-B5qJwgjK.js +++ b/deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-Cbit1_Nq.js @@ -1,4 +1,4 @@ -import{c as C,s as vt,g as Ct,a as Ot,b as Pt,A as Gt,B as At,l as B,j as D,C as St,h as It,y as Nt,F as Ht,G as Bt}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";var mt=function(){var r=function(A,o,u,d){for(u=u||{},d=A.length;d--;u[A[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`: +import{c as C,s as vt,g as Ct,a as Ot,b as Pt,A as Gt,B as At,l as B,j as D,C as St,h as It,y as Nt,F as Ht,G as Bt}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";var mt=function(){var r=function(A,o,u,d){for(u=u||{},d=A.length;d--;u[A[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`: `+O.showPosition()+` Expecting `+st.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(N==pt?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ht,{text:O.match,token:this.terminals_[N]||N,line:O.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(V[0]){case 1:d.push(N),T.push(O.yytext),t.push(O.yylloc),d.push(V[1]),N=null,ft=O.yyleng,e=O.yytext,rt=O.yylineno,ot=O.yylloc;break;case 2:if(j=this.productions_[V[1]][1],J.$=T[T.length-j],J._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Rt&&(J._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(J,[e,ft,rt,F.yy,V[1],T,t].concat(Lt)),typeof lt<"u")return lt;j&&(d=d.slice(0,-1*j*2),T=T.slice(0,-1*j),t=t.slice(0,-1*j)),d.push(this.productions_[V[1]][0]),T.push(J.$),t.push(J._$),bt=X[d[d.length-2]][d[d.length-1]],d.push(bt);break;case 3:return!0}}return!0}},M=function(){var A={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var u=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===s.length?this.yylloc.first_column:0)+s[s.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/graph-Bqo8LFRO.js b/deploy/server/notebase/assets/graph-W254zRQ0.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/graph-Bqo8LFRO.js rename to deploy/server/notebase/assets/graph-W254zRQ0.js index cd81637d0b..01d7f11e58 100644 --- a/starter/src/main/resources/templates/notebase/assets/graph-Bqo8LFRO.js +++ b/deploy/server/notebase/assets/graph-W254zRQ0.js @@ -1 +1 @@ -import{l as qe,T as O,H as Ze,U as re,f as A,e as Te,V as Xe,h as q,W as P,j as Qe,X as x,K as X,k as Ee,Y as G,G as Q,Z as Je,$ as Oe,a0 as We,a1 as D,Q as me,N as ve,a2 as ze,a3 as Ve,a4 as ke,P as en,a5 as nn,O as rn,L as we,I as tn,E as sn,a6 as an,R as F,w as te}from"./index-DFpvp1rn.js";import{an as un,ao as I,ap as fn,aq as j,ar as ie}from"./mermaid.core-BRpiNjs-.js";var on="__lodash_hash_undefined__";function dn(e){return this.__data__.set(e,on),this}function hn(e){return this.__data__.has(e)}function C(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new qe;++nu))return!1;var g=s.get(e),l=s.get(n);if(g&&l)return g==n&&l==e;var o=-1,h=!0,y=r&cn?new C:void 0;for(s.set(e,n),s.set(n,e);++o-1}var Zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xn=/^\w*$/;function k(e,n){if(A(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||X(e)?!0:Xn.test(e)||!Zn.test(e)||n!=null&&e in Object(n)}var Qn=500;function Jn(e){var n=fn(e,function(t){return r.size===Qn&&r.clear(),t}),r=n.cache;return n}var Wn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zn=/\\(\\)?/g,Vn=Jn(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Wn,function(r,t,i,s){n.push(i?s.replace(zn,"$1"):t||r)}),n});function kn(e){return e==null?"":Ne(e)}function Re(e,n){return A(e)?e:k(e,n)?[e]:Vn(kn(e))}var er=1/0;function U(e){if(typeof e=="string"||X(e))return e;var n=e+"";return n=="0"&&1/e==-er?"-0":n}function Me(e,n){n=Re(n,e);for(var r=0,t=n.length;e!=null&&r=Bt){var g=jt(e);if(g)return J(g);a=!1,i=$e,f=new C}else f=u;e:for(;++t1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return E(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=w,this._children[n]={},this._children[w][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return E(this._nodes,n)}removeNode(n){var r=this;if(E(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],v(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),v(T(this._in[n]),t),delete this._in[n],delete this._preds[n],v(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($(r))r=w;else{r+="";for(var t=r;!$(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==w)return r}}children(n){if($(n)&&(n=w),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===w)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return Ht(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;v(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),v(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&v(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return te(n)||(n=F(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Gt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,$(t)||(t=""+t);var u=L(this._isDirected,n,r,t);if(E(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!$(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=qt(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,Ae(this._preds[r],n),Ae(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return E(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],ye(this._preds[r],n),ye(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?M(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?M(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ye.prototype._nodeCount=0;Ye.prototype._edgeCount=0;function Ae(e,n){e[n]?e[n]++:e[n]=1}function ye(e,n){--e[n]||delete e[n]}function L(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+($(t)?Yt:t)}function qt(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return L(e,n.v,n.w,n.name)}export{Ye as G,K as a,tr as b,He as c,Bn as d,ee as e,v as f,Se as g,E as h,$ as i,St as j,T as k,It as l,Re as m,Me as n,Ot as o,kn as p,M as q,Gt as r,U as t,H as v}; +import{l as qe,T as O,H as Ze,U as re,f as A,e as Te,V as Xe,h as q,W as P,j as Qe,X as x,K as X,k as Ee,Y as G,G as Q,Z as Je,$ as Oe,a0 as We,a1 as D,Q as me,N as ve,a2 as ze,a3 as Ve,a4 as ke,P as en,a5 as nn,O as rn,L as we,I as tn,E as sn,a6 as an,R as F,w as te}from"./index-hnRSc5ud.js";import{an as un,ao as I,ap as fn,aq as j,ar as ie}from"./mermaid.core-CLEyumap.js";var on="__lodash_hash_undefined__";function dn(e){return this.__data__.set(e,on),this}function hn(e){return this.__data__.has(e)}function C(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new qe;++nu))return!1;var g=s.get(e),l=s.get(n);if(g&&l)return g==n&&l==e;var o=-1,h=!0,y=r&cn?new C:void 0;for(s.set(e,n),s.set(n,e);++o-1}var Zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xn=/^\w*$/;function k(e,n){if(A(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||X(e)?!0:Xn.test(e)||!Zn.test(e)||n!=null&&e in Object(n)}var Qn=500;function Jn(e){var n=fn(e,function(t){return r.size===Qn&&r.clear(),t}),r=n.cache;return n}var Wn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zn=/\\(\\)?/g,Vn=Jn(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Wn,function(r,t,i,s){n.push(i?s.replace(zn,"$1"):t||r)}),n});function kn(e){return e==null?"":Ne(e)}function Re(e,n){return A(e)?e:k(e,n)?[e]:Vn(kn(e))}var er=1/0;function U(e){if(typeof e=="string"||X(e))return e;var n=e+"";return n=="0"&&1/e==-er?"-0":n}function Me(e,n){n=Re(n,e);for(var r=0,t=n.length;e!=null&&r=Bt){var g=jt(e);if(g)return J(g);a=!1,i=$e,f=new C}else f=u;e:for(;++t1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return E(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=w,this._children[n]={},this._children[w][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return E(this._nodes,n)}removeNode(n){var r=this;if(E(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],v(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),v(T(this._in[n]),t),delete this._in[n],delete this._preds[n],v(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($(r))r=w;else{r+="";for(var t=r;!$(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==w)return r}}children(n){if($(n)&&(n=w),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===w)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return Ht(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;v(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),v(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&v(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return te(n)||(n=F(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Gt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,$(t)||(t=""+t);var u=L(this._isDirected,n,r,t);if(E(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!$(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=qt(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,Ae(this._preds[r],n),Ae(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return E(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],ye(this._preds[r],n),ye(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?M(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?M(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ye.prototype._nodeCount=0;Ye.prototype._edgeCount=0;function Ae(e,n){e[n]?e[n]++:e[n]=1}function ye(e,n){--e[n]||delete e[n]}function L(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+($(t)?Yt:t)}function qt(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return L(e,n.v,n.w,n.name)}export{Ye as G,K as a,tr as b,He as c,Bn as d,ee as e,v as f,Se as g,E as h,$ as i,St as j,T as k,It as l,Re as m,Me as n,Ot as o,kn as p,M as q,Gt as r,U as t,H as v}; diff --git a/deploy/server/notebase/assets/index-3862675e-BjItSQO6.js b/deploy/server/notebase/assets/index-3862675e-CXAABjCf.js similarity index 96% rename from deploy/server/notebase/assets/index-3862675e-BjItSQO6.js rename to deploy/server/notebase/assets/index-3862675e-CXAABjCf.js index 3bd10aa15c..b15cb5d37f 100644 --- a/deploy/server/notebase/assets/index-3862675e-BjItSQO6.js +++ b/deploy/server/notebase/assets/index-3862675e-CXAABjCf.js @@ -1 +1 @@ -import{i as N,G as A}from"./graph-Bqo8LFRO.js";import{m as $,l as H}from"./layout-e9igZ_Vb.js";import{c as V}from"./clone-C_jSdwol.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-e0da2a9e-Bx6yyD_A.js";import{l as s,c as T,p as S,h as L}from"./mermaid.core-BRpiNjs-.js";import{a as I}from"./createText-2e5e7dd3-_UBRrGW4.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r}; +import{i as N,G as A}from"./graph-W254zRQ0.js";import{m as $,l as H}from"./layout-C3MVMtGC.js";import{c as V}from"./clone-BdtZehSS.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-e0da2a9e-Ddp_7vqN.js";import{l as s,c as T,p as S,h as L}from"./mermaid.core-CLEyumap.js";import{a as I}from"./createText-2e5e7dd3-BHoypJ7S.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r}; diff --git a/deploy/server/notebase/assets/index-CmLgq6cS.js b/deploy/server/notebase/assets/index-IY7Wnwjf.js similarity index 99% rename from deploy/server/notebase/assets/index-CmLgq6cS.js rename to deploy/server/notebase/assets/index-IY7Wnwjf.js index aaea2fb8ed..cfd7431092 100644 --- a/deploy/server/notebase/assets/index-CmLgq6cS.js +++ b/deploy/server/notebase/assets/index-IY7Wnwjf.js @@ -1,4 +1,4 @@ -import{g as xl}from"./index-DFpvp1rn.js";function ul(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],a=typeof t;(a==="object"||a==="function")&&!Object.isFrozen(t)&&ul(t)}),n}class yr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pl(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _e(n,...e){const t=Object.create(null);for(const a in n)t[a]=n[a];return e.forEach(function(a){for(const r in a)t[r]=a[r]}),t}const Pl="",hr=n=>!!n.scope,wl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((a,r)=>`${a}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class kl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=pl(e)}openNode(e){if(!hr(e))return;const t=wl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hr(e)&&(this.buffer+=Pl)}value(){return this.buffer}span(e){this.buffer+=``}}const Dr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _r{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Dr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(a=>this._walk(e,a)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{_r._collapse(t)}))}}class Ul extends _r{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new kl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Oe(n){return n?typeof n=="string"?n:n.source:null}function ml(n){return me("(?=",n,")")}function Fl(n){return me("(?:",n,")*")}function Bl(n){return me("(?:",n,")?")}function me(...n){return n.map(t=>Oe(t)).join("")}function Gl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function dr(...n){return"("+(Gl(n).capture?"":"?:")+n.map(a=>Oe(a)).join("|")+")"}function El(n){return new RegExp(n.toString()+"|").exec("").length-1}function Yl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ql=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ur(n,{joinWith:e}){let t=0;return n.map(a=>{t+=1;const r=t;let i=Oe(a),s="";for(;i.length>0;){const o=ql.exec(i);if(!o){s+=i;break}s+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+r):(s+=o[0],o[0]==="("&&t++)}return s}).map(a=>`(${a})`).join(e)}const Hl=/\b\B/,gl="[a-zA-Z]\\w*",pr="[a-zA-Z_]\\w*",Sl="\\b\\d+(\\.\\d+)?",Tl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bl="\\b(0b[01]+)",Vl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=me(e,/.*\b/,n.binary,/\b.*/)),_e({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,a)=>{t.index!==0&&a.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Kl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},$l={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},De=function(n,e,t={}){const a=_e({scope:"comment",begin:n,end:e,contains:[]},t);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=dr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:me(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},Ql=De("//","$"),Xl=De("/\\*","\\*/"),Zl=De("#","$"),Jl={scope:"number",begin:Sl,relevance:0},jl={scope:"number",begin:Tl,relevance:0},ec={scope:"number",begin:bl,relevance:0},tc={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},nc={scope:"title",begin:gl,relevance:0},ac={scope:"title",begin:pr,relevance:0},rc={begin:"\\.\\s*"+pr,relevance:0},ic=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Wl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:ec,BINARY_NUMBER_RE:bl,COMMENT:De,C_BLOCK_COMMENT_MODE:Xl,C_LINE_COMMENT_MODE:Ql,C_NUMBER_MODE:jl,C_NUMBER_RE:Tl,END_SAME_AS_BEGIN:ic,HASH_COMMENT_MODE:Zl,IDENT_RE:gl,MATCH_NOTHING_RE:Hl,METHOD_GUARD:rc,NUMBER_MODE:Jl,NUMBER_RE:Sl,PHRASAL_WORDS_MODE:$l,QUOTE_STRING_MODE:Kl,REGEXP_MODE:tc,RE_STARTERS_RE:Vl,SHEBANG:zl,TITLE_MODE:nc,UNDERSCORE_IDENT_RE:pr,UNDERSCORE_TITLE_MODE:ac});function oc(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function sc(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function lc(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oc,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function cc(n,e){Array.isArray(n.illegal)&&(n.illegal=dr(...n.illegal))}function _c(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function dc(n,e){n.relevance===void 0&&(n.relevance=1)}const uc=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(a=>{delete n[a]}),n.keywords=t.keywords,n.begin=me(t.beforeMatch,ml(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},pc=["of","and","for","in","not","or","if","then","parent","list","value"],mc="keyword";function Rl(n,e,t=mc){const a=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(a,Rl(n[i],e,i))}),a;function r(i,s){e&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");a[l[0]]=[i,Ec(l[0],l[1])]})}}function Ec(n,e){return e?Number(e):gc(n)?0:1}function gc(n){return pc.includes(n.toLowerCase())}const Mr={},pe=n=>{console.error(n)},Lr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},be=(n,e)=>{Mr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Mr[`${n}/${e}`]=!0)},he=new Error;function fl(n,e,{key:t}){let a=0;const r=n[t],i={},s={};for(let o=1;o<=e.length;o++)s[o+a]=r[o],i[o+a]=!0,a+=El(e[o-1]);n[t]=s,n[t]._emit=i,n[t]._multi=!0}function Sc(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if(typeof n.beginScope!="object"||n.beginScope===null)throw pe("beginScope must be object"),he;fl(n,n.begin,{key:"beginScope"}),n.begin=ur(n.begin,{joinWith:""})}}function Tc(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if(typeof n.endScope!="object"||n.endScope===null)throw pe("endScope must be object"),he;fl(n,n.end,{key:"endScope"}),n.end=ur(n.end,{joinWith:""})}}function bc(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Rc(n){bc(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Sc(n),Tc(n)}function fc(n){function e(s,o){return new RegExp(Oe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=El(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(ur(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const _=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[_];return l.splice(0,_),Object.assign(l,c)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([_,c])=>l.addRule(_,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let _=l.exec(o);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,_=c.exec(o)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function r(s){const o=new a;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function i(s,o){const l=s;if(s.isCompiled)return l;[sc,_c,Rc,uc].forEach(c=>c(s,o)),n.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[lc,cc,dc].forEach(c=>c(s,o)),s.isCompiled=!0;let _=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),_=s.keywords.$pattern,delete s.keywords.$pattern),_=_||/\w+/,s.keywords&&(s.keywords=Rl(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(_,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Oe(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return Cc(c==="self"?s:c)})),s.contains.forEach(function(c){i(c,l)}),s.starts&&i(s.starts,o),l.matcher=r(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=_e(n.classNameAliases||{}),i(n)}function Cl(n){return n?n.endsWithParent||Cl(n.starts):!1}function Cc(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return _e(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Cl(n)?_e(n,{starts:n.starts?_e(n.starts):null}):Object.isFrozen(n)?_e(n):n}var Nc="11.11.1";class Oc extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Le=pl,xr=_e,Pr=Symbol("nomatch"),Ic=7,Nl=function(n){const e=Object.create(null),t=Object.create(null),a=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ul};function l(T){return o.noHighlightRe.test(T)}function _(T){let O=T.className+" ";O+=T.parentNode?T.parentNode.className:"";const M=o.languageDetectRe.exec(O);if(M){const w=v(M[1]);return w||(Lr(i.replace("{}",M[1])),Lr("Falling back to no-highlight mode for this block.",T)),w?M[1]:"no-highlight"}return O.split(/\s+/).find(w=>l(w)||v(w))}function c(T,O,M){let w="",B="";typeof O=="object"?(w=T,M=O.ignoreIllegals,B=O.language):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead. +import{g as xl}from"./index-hnRSc5ud.js";function ul(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],a=typeof t;(a==="object"||a==="function")&&!Object.isFrozen(t)&&ul(t)}),n}class yr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pl(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _e(n,...e){const t=Object.create(null);for(const a in n)t[a]=n[a];return e.forEach(function(a){for(const r in a)t[r]=a[r]}),t}const Pl="",hr=n=>!!n.scope,wl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((a,r)=>`${a}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class kl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=pl(e)}openNode(e){if(!hr(e))return;const t=wl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hr(e)&&(this.buffer+=Pl)}value(){return this.buffer}span(e){this.buffer+=``}}const Dr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _r{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Dr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(a=>this._walk(e,a)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{_r._collapse(t)}))}}class Ul extends _r{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new kl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Oe(n){return n?typeof n=="string"?n:n.source:null}function ml(n){return me("(?=",n,")")}function Fl(n){return me("(?:",n,")*")}function Bl(n){return me("(?:",n,")?")}function me(...n){return n.map(t=>Oe(t)).join("")}function Gl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function dr(...n){return"("+(Gl(n).capture?"":"?:")+n.map(a=>Oe(a)).join("|")+")"}function El(n){return new RegExp(n.toString()+"|").exec("").length-1}function Yl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ql=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ur(n,{joinWith:e}){let t=0;return n.map(a=>{t+=1;const r=t;let i=Oe(a),s="";for(;i.length>0;){const o=ql.exec(i);if(!o){s+=i;break}s+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+r):(s+=o[0],o[0]==="("&&t++)}return s}).map(a=>`(${a})`).join(e)}const Hl=/\b\B/,gl="[a-zA-Z]\\w*",pr="[a-zA-Z_]\\w*",Sl="\\b\\d+(\\.\\d+)?",Tl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bl="\\b(0b[01]+)",Vl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=me(e,/.*\b/,n.binary,/\b.*/)),_e({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,a)=>{t.index!==0&&a.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Kl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},$l={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},De=function(n,e,t={}){const a=_e({scope:"comment",begin:n,end:e,contains:[]},t);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=dr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:me(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},Ql=De("//","$"),Xl=De("/\\*","\\*/"),Zl=De("#","$"),Jl={scope:"number",begin:Sl,relevance:0},jl={scope:"number",begin:Tl,relevance:0},ec={scope:"number",begin:bl,relevance:0},tc={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},nc={scope:"title",begin:gl,relevance:0},ac={scope:"title",begin:pr,relevance:0},rc={begin:"\\.\\s*"+pr,relevance:0},ic=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Wl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:ec,BINARY_NUMBER_RE:bl,COMMENT:De,C_BLOCK_COMMENT_MODE:Xl,C_LINE_COMMENT_MODE:Ql,C_NUMBER_MODE:jl,C_NUMBER_RE:Tl,END_SAME_AS_BEGIN:ic,HASH_COMMENT_MODE:Zl,IDENT_RE:gl,MATCH_NOTHING_RE:Hl,METHOD_GUARD:rc,NUMBER_MODE:Jl,NUMBER_RE:Sl,PHRASAL_WORDS_MODE:$l,QUOTE_STRING_MODE:Kl,REGEXP_MODE:tc,RE_STARTERS_RE:Vl,SHEBANG:zl,TITLE_MODE:nc,UNDERSCORE_IDENT_RE:pr,UNDERSCORE_TITLE_MODE:ac});function oc(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function sc(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function lc(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oc,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function cc(n,e){Array.isArray(n.illegal)&&(n.illegal=dr(...n.illegal))}function _c(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function dc(n,e){n.relevance===void 0&&(n.relevance=1)}const uc=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(a=>{delete n[a]}),n.keywords=t.keywords,n.begin=me(t.beforeMatch,ml(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},pc=["of","and","for","in","not","or","if","then","parent","list","value"],mc="keyword";function Rl(n,e,t=mc){const a=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(a,Rl(n[i],e,i))}),a;function r(i,s){e&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");a[l[0]]=[i,Ec(l[0],l[1])]})}}function Ec(n,e){return e?Number(e):gc(n)?0:1}function gc(n){return pc.includes(n.toLowerCase())}const Mr={},pe=n=>{console.error(n)},Lr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},be=(n,e)=>{Mr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Mr[`${n}/${e}`]=!0)},he=new Error;function fl(n,e,{key:t}){let a=0;const r=n[t],i={},s={};for(let o=1;o<=e.length;o++)s[o+a]=r[o],i[o+a]=!0,a+=El(e[o-1]);n[t]=s,n[t]._emit=i,n[t]._multi=!0}function Sc(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if(typeof n.beginScope!="object"||n.beginScope===null)throw pe("beginScope must be object"),he;fl(n,n.begin,{key:"beginScope"}),n.begin=ur(n.begin,{joinWith:""})}}function Tc(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if(typeof n.endScope!="object"||n.endScope===null)throw pe("endScope must be object"),he;fl(n,n.end,{key:"endScope"}),n.end=ur(n.end,{joinWith:""})}}function bc(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Rc(n){bc(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Sc(n),Tc(n)}function fc(n){function e(s,o){return new RegExp(Oe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=El(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(ur(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const _=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[_];return l.splice(0,_),Object.assign(l,c)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([_,c])=>l.addRule(_,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let _=l.exec(o);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,_=c.exec(o)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function r(s){const o=new a;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function i(s,o){const l=s;if(s.isCompiled)return l;[sc,_c,Rc,uc].forEach(c=>c(s,o)),n.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[lc,cc,dc].forEach(c=>c(s,o)),s.isCompiled=!0;let _=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),_=s.keywords.$pattern,delete s.keywords.$pattern),_=_||/\w+/,s.keywords&&(s.keywords=Rl(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(_,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Oe(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return Cc(c==="self"?s:c)})),s.contains.forEach(function(c){i(c,l)}),s.starts&&i(s.starts,o),l.matcher=r(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=_e(n.classNameAliases||{}),i(n)}function Cl(n){return n?n.endsWithParent||Cl(n.starts):!1}function Cc(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return _e(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Cl(n)?_e(n,{starts:n.starts?_e(n.starts):null}):Object.isFrozen(n)?_e(n):n}var Nc="11.11.1";class Oc extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Le=pl,xr=_e,Pr=Symbol("nomatch"),Ic=7,Nl=function(n){const e=Object.create(null),t=Object.create(null),a=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ul};function l(T){return o.noHighlightRe.test(T)}function _(T){let O=T.className+" ";O+=T.parentNode?T.parentNode.className:"";const M=o.languageDetectRe.exec(O);if(M){const w=v(M[1]);return w||(Lr(i.replace("{}",M[1])),Lr("Falling back to no-highlight mode for this block.",T)),w?M[1]:"no-highlight"}return O.split(/\s+/).find(w=>l(w)||v(w))}function c(T,O,M){let w="",B="";typeof O=="object"?(w=T,M=O.ignoreIllegals,B=O.language):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),B=T,w=O),M===void 0&&(M=!0);const Q={code:w,language:B};X("before:highlight",Q);const ne=Q.result?Q.result:d(Q.language,Q.code,M);return ne.code=Q.code,X("after:highlight",ne),ne}function d(T,O,M,w){const B=Object.create(null);function Q(N,y){return N.keywords[y]}function ne(){if(!x.keywords){te.addText(Y);return}let N=0;x.keywordPatternRe.lastIndex=0;let y=x.keywordPatternRe.exec(Y),P="";for(;y;){P+=Y.substring(N,y.index);const U=oe.case_insensitive?y[0].toLowerCase():y[0],Z=Q(x,U);if(Z){const[se,Ce]=Z;if(te.addText(P),P="",B[U]=(B[U]||0)+1,B[U]<=Ic&&(ue+=Ce),se.startsWith("_"))P+=y[0];else{const Ae=oe.classNameAliases[se]||se;H(y[0],Ae)}}else P+=y[0];N=x.keywordPatternRe.lastIndex,y=x.keywordPatternRe.exec(Y)}P+=Y.substring(N),te.addText(P)}function ae(){if(Y==="")return;let N=null;if(typeof x.subLanguage=="string"){if(!e[x.subLanguage]){te.addText(Y);return}N=d(x.subLanguage,Y,!0,fe[x.subLanguage]),fe[x.subLanguage]=N._top}else N=E(Y,x.subLanguage.length?x.subLanguage:null);x.relevance>0&&(ue+=N.relevance),te.__addSublanguage(N._emitter,N.language)}function z(){x.subLanguage!=null?ae():ne(),Y=""}function H(N,y){N!==""&&(te.startScope(y),te.addText(N),te.endScope())}function J(N,y){let P=1;const U=y.length-1;for(;P<=U;){if(!N._emit[P]){P++;continue}const Z=oe.classNameAliases[N[P]]||N[P],se=y[P];Z?H(se,Z):(Y=se,ne(),Y=""),P++}}function V(N,y){return N.scope&&typeof N.scope=="string"&&te.openNode(oe.classNameAliases[N.scope]||N.scope),N.beginScope&&(N.beginScope._wrap?(H(Y,oe.classNameAliases[N.beginScope._wrap]||N.beginScope._wrap),Y=""):N.beginScope._multi&&(J(N.beginScope,y),Y="")),x=Object.create(N,{parent:{value:x}}),x}function G(N,y,P){let U=Yl(N.endRe,P);if(U){if(N["on:end"]){const Z=new yr(N);N["on:end"](y,Z),Z.isMatchIgnored&&(U=!1)}if(U){for(;N.endsParent&&N.parent;)N=N.parent;return N}}if(N.endsWithParent)return G(N.parent,y,P)}function K(N){return x.matcher.regexIndex===0?(Y+=N[0],1):(ce=!0,0)}function j(N){const y=N[0],P=N.rule,U=new yr(P),Z=[P.__beforeBegin,P["on:begin"]];for(const se of Z)if(se&&(se(N,U),U.isMatchIgnored))return K(y);return P.skip?Y+=y:(P.excludeBegin&&(Y+=y),z(),!P.returnBegin&&!P.excludeBegin&&(Y=y)),V(P,N),P.returnBegin?0:y.length}function ee(N){const y=N[0],P=O.substring(N.index),U=G(x,N,P);if(!U)return Pr;const Z=x;x.endScope&&x.endScope._wrap?(z(),H(y,x.endScope._wrap)):x.endScope&&x.endScope._multi?(z(),J(x.endScope,N)):Z.skip?Y+=y:(Z.returnEnd||Z.excludeEnd||(Y+=y),z(),Z.excludeEnd&&(Y=y));do x.scope&&te.closeNode(),!x.skip&&!x.subLanguage&&(ue+=x.relevance),x=x.parent;while(x!==U.parent);return U.starts&&V(U.starts,N),Z.returnEnd?0:y.length}function re(){const N=[];for(let y=x;y!==oe;y=y.parent)y.scope&&N.unshift(y.scope);N.forEach(y=>te.openNode(y))}let ie={};function Ee(N,y){const P=y&&y[0];if(Y+=N,P==null)return z(),0;if(ie.type==="begin"&&y.type==="end"&&ie.index===y.index&&P===""){if(Y+=O.slice(y.index,y.index+1),!r){const U=new Error(`0 width match regex (${T})`);throw U.languageName=T,U.badRule=ie.rule,U}return 1}if(ie=y,y.type==="begin")return j(y);if(y.type==="illegal"&&!M){const U=new Error('Illegal lexeme "'+P+'" for mode "'+(x.scope||"")+'"');throw U.mode=x,U}else if(y.type==="end"){const U=ee(y);if(U!==Pr)return U}if(y.type==="illegal"&&P==="")return Y+=` `,1;if(Se>1e5&&Se>y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Y+=P,P.length}const oe=v(T);if(!oe)throw pe(i.replace("{}",T)),new Error('Unknown language: "'+T+'"');const ge=fc(oe);let de="",x=w||ge;const fe={},te=new o.__emitter(o);re();let Y="",ue=0,le=0,Se=0,ce=!1;try{if(oe.__emitTokens)oe.__emitTokens(O,te);else{for(x.matcher.considerAll();;){Se++,ce?ce=!1:x.matcher.considerAll(),x.matcher.lastIndex=le;const N=x.matcher.exec(O);if(!N)break;const y=O.substring(le,N.index),P=Ee(y,N);le=N.index+P}Ee(O.substring(le))}return te.finalize(),de=te.toHTML(),{language:T,value:de,relevance:ue,illegal:!1,_emitter:te,_top:x}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:T,value:Le(O),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:le,context:O.slice(le-100,le+100),mode:N.mode,resultSoFar:de},_emitter:te};if(r)return{language:T,value:Le(O),illegal:!1,relevance:0,errorRaised:N,_emitter:te,_top:x};throw N}}function p(T){const O={value:Le(T),illegal:!1,relevance:0,_top:s,_emitter:new o.__emitter(o)};return O._emitter.addText(T),O}function E(T,O){O=O||o.languages||Object.keys(e);const M=p(T),w=O.filter(v).filter(k).map(z=>d(z,T,!1));w.unshift(M);const B=w.sort((z,H)=>{if(z.relevance!==H.relevance)return H.relevance-z.relevance;if(z.language&&H.language){if(v(z.language).supersetOf===H.language)return 1;if(v(H.language).supersetOf===z.language)return-1}return 0}),[Q,ne]=B,ae=Q;return ae.secondBest=ne,ae}function m(T,O,M){const w=O&&t[O]||M;T.classList.add("hljs"),T.classList.add(`language-${w}`)}function S(T){let O=null;const M=_(T);if(l(M))return;if(X("before:highlightElement",{el:T,language:M}),T.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",T);return}if(T.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(T)),o.throwUnescapedHTML))throw new Oc("One of your code blocks includes unescaped HTML.",T.innerHTML);O=T;const w=O.textContent,B=M?c(w,{language:M,ignoreIllegals:!0}):E(w);T.innerHTML=B.value,T.dataset.highlighted="yes",m(T,M,B.language),T.result={language:B.language,re:B.relevance,relevance:B.relevance},B.secondBest&&(T.secondBest={language:B.secondBest.language,relevance:B.secondBest.relevance}),X("after:highlightElement",{el:T,result:B,text:w})}function g(T){o=xr(o,T)}const b=()=>{A(),be("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function R(){A(),be("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let f=!1;function A(){function T(){A()}if(document.readyState==="loading"){f||window.addEventListener("DOMContentLoaded",T,!1),f=!0;return}document.querySelectorAll(o.cssSelector).forEach(S)}function I(T,O){let M=null;try{M=O(n)}catch(w){if(pe("Language definition for '{}' could not be registered.".replace("{}",T)),r)pe(w);else throw w;M=s}M.name||(M.name=T),e[T]=M,M.rawDefinition=O.bind(null,n),M.aliases&&L(M.aliases,{languageName:T})}function C(T){delete e[T];for(const O of Object.keys(t))t[O]===T&&delete t[O]}function h(){return Object.keys(e)}function v(T){return T=(T||"").toLowerCase(),e[T]||e[t[T]]}function L(T,{languageName:O}){typeof T=="string"&&(T=[T]),T.forEach(M=>{t[M.toLowerCase()]=O})}function k(T){const O=v(T);return O&&!O.disableAutodetect}function D(T){T["before:highlightBlock"]&&!T["before:highlightElement"]&&(T["before:highlightElement"]=O=>{T["before:highlightBlock"](Object.assign({block:O.el},O))}),T["after:highlightBlock"]&&!T["after:highlightElement"]&&(T["after:highlightElement"]=O=>{T["after:highlightBlock"](Object.assign({block:O.el},O))})}function F(T){D(T),a.push(T)}function $(T){const O=a.indexOf(T);O!==-1&&a.splice(O,1)}function X(T,O){const M=T;a.forEach(function(w){w[M]&&w[M](O)})}function q(T){return be("10.7.0","highlightBlock will be removed entirely in v12.0"),be("10.7.0","Please use highlightElement now."),S(T)}Object.assign(n,{highlight:c,highlightAuto:E,highlightAll:A,highlightElement:S,highlightBlock:q,configure:g,initHighlighting:b,initHighlightingOnLoad:R,registerLanguage:I,unregisterLanguage:C,listLanguages:h,getLanguage:v,registerAliases:L,autoDetection:k,inherit:xr,addPlugin:F,removePlugin:$}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=Nc,n.regex={concat:me,lookahead:ml,either:dr,optional:Bl,anyNumberOfTimes:Fl};for(const T in ye)typeof ye[T]=="object"&&ul(ye[T]);return Object.assign(n,ye),n},Re=Nl({});Re.newInstance=()=>Nl({});var Ac=Re;Re.HighlightJS=Re;Re.default=Re;var xe,wr;function vc(){if(wr)return xe;wr=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",E="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",B="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",ae="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",z="null истина ложь неопределено",H=e.inherit(e.NUMBER_MODE),J={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},V={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},G={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},K=e.inherit(e.C_LINE_COMMENT_MODE),j={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:i+l},contains:[K]},ee={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},re={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:z},contains:[H,J,V]},K]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:i,built_in:E,class:B,type:ae,literal:z},contains:[j,re,K,ee,H,J,V,G]}}return xe=n,xe}var Pe,kr;function yc(){if(kr)return Pe;kr=1;function n(e){const t=e.regex,a=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},_={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:t.concat(a,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:"operator",match:/=\/?/},c,i,s,o,l,_,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Pe=n,Pe}var we,Ur;function hc(){if(Ur)return we;Ur=1;function n(e){const t=e.regex,a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...a)),end:/"/,keywords:a,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return we=n,we}var ke,Fr;function Dc(){if(Fr)return ke;Fr=1;function n(e){const t=e.regex,a=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(a,t.concat("(\\.",a,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:a,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}return ke=n,ke}var Ue,Br;function Mc(){if(Br)return Ue;Br=1;function n(e){const t="\\d(_|\\d)*",a="[eE][-+]?"+t,r=t+"(\\."+t+")?("+a+")?",i="\\w+",o="\\b("+(t+"#"+i+"(\\."+i+")?#("+a+")?")+"|"+r+")",l="[A-Za-z](_?[A-Za-z0-9.])*",_=`[]\\{\\}%#'"`,c=e.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:_,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:_},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:_},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:_}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:_},d]}}return Ue=n,Ue}var Fe,Gr;function Lc(){if(Gr)return Fe;Gr=1;function n(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[t,a]};return t.contains=[r],a.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,a,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return Fe=n,Fe}var Be,Yr;function xc(){if(Yr)return Be;Yr=1;function n(e){const t={className:"number",begin:/[$%]\d+/},a={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,a,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return Be=n,Be}var Ge,qr;function Pc(){if(qr)return Ge;qr=1;function n(e){const t=e.regex,a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,a]},i=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),o=[i,s,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],_=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[a,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(..._),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...o],illegal:/\/\/|->|=>|\[\[/}}return Ge=n,Ge}var Ye,Hr;function wc(){if(Hr)return Ye;Hr=1;function n(e){const t=e.regex,a="[A-Za-z_][0-9A-Za-z_]*",r={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},i=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],s={className:"symbol",begin:"\\$"+t.either(...i)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},_={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,o,e.REGEXP_MODE];const c=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:a+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:a,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+a+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:c}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:a}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Ye=n,Ye}var qe,Vr;function kc(){if(Vr)return qe;Vr=1;function n(t){const a=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+i+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",_={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:a.optional(s)+t.IDENT_RE,relevance:0},S=a.optional(s)+t.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],R=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],f=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:b,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:R},h={className:"function.dispatch",relevance:0,keywords:{_hint:f},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},v=[h,E,_,r,t.C_BLOCK_COMMENT_MODE,p,d],L={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:v.concat([{begin:/\(/,end:/\)/,keywords:C,contains:v.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+l+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:C,relevance:0},{begin:S,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,d,p,_,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,d,p,_]}]},_,r,t.C_BLOCK_COMMENT_MODE,E]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",_]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(t){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=n(t),i=r.keywords;return i.type=[...i.type,...a.type],i.literal=[...i.literal,...a.literal],i.built_in=[...i.built_in,...a.built_in],i._hints=a._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}return qe=e,qe}var He,zr;function Uc(){if(zr)return He;zr=1;function n(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return He=n,He}var Ve,Wr;function Fc(){if(Wr)return Ve;Wr=1;function n(e){const t=e.regex,a=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),_=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[s,_,l,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[s,o,_,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[_]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Ve=n,Ve}var ze,Kr;function Bc(){if(Kr)return ze;Kr=1;function n(e){const t=e.regex,a={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,o,...r,...i,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},a,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return ze=n,ze}var We,$r;function Gc(){if($r)return We;$r=1;function n(e){const t=e.regex,a=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:a,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:a.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:a,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:a.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:a,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:a,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return We=n,We}var Ke,Qr;function Yc(){if(Qr)return Ke;Qr=1;function n(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return Ke=n,Ke}var $e,Xr;function qc(){if(Xr)return $e;Xr=1;function n(e){const t="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",a=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},_={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:a},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,s]},d={className:"symbol",begin:"@[A-z0-9_]+"},p={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,l,_]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:r},contains:[s,o,l,_,c,d,p]}}return $e=n,$e}var Qe,Zr;function Hc(){if(Zr)return Qe;Zr=1;function n(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return Qe=n,Qe}var Xe,Jr;function Vc(){if(Jr)return Xe;Jr=1;function n(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:a},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return Xe=n,Xe}var Ze,jr;function zc(){if(jr)return Ze;jr=1;function n(e){const t=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return Ze=n,Ze}var Je,ei;function Wc(){if(ei)return Je;ei=1;function n(e){const t=e.regex,a={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,i]};i.contains.push(l);const _={match:/\\"/},c={className:"string",begin:/'/,end:/'/},d={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,a]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],m=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],R={match:/(\/[a-z._-]+)+/},f=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],A=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:g,literal:b,built_in:[...f,...A,"set","shopt",...I,...C]},contains:[m,e.SHEBANG(),S,p,s,o,R,l,_,c,d,a]}}return Je=n,Je}var je,ti;function Kc(){if(ti)return je;ti=1;function n(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return je=n,je}var et,ni;function $c(){if(ni)return et;ni=1;function n(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return et=n,et}var tt,ai;function Qc(){if(ai)return tt;ai=1;function n(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}return tt=n,tt}var nt,ri;function Xc(){if(ri)return nt;ri=1;function n(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},R=[p,l,a,e.C_BLOCK_COMMENT_MODE,d,c],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:R.concat([{begin:/\(/,end:/\)/,keywords:b,contains:R.concat(["self"]),relevance:0}]),relevance:0},A={begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,a,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:c,keywords:b}}}return nt=n,nt}var at,ii;function Zc(){if(ii)return at;ii=1;function n(e){const t=e.regex,a=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},_={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:[s,o,e.NUMBER_MODE]},...i]},d=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],p={match:[/OBJECT/,/\s+/,t.either(...d),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:a,literal:r},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,_,e.NUMBER_MODE,p,c]}}return at=n,at}var rt,oi;function Jc(){if(oi)return rt;oi=1;function n(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],a=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:t,type:a,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}return rt=n,rt}var it,si;function jc(){if(si)return it;si=1;function n(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],a=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=s,{name:"Ceylon",keywords:{keyword:t.concat(a),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return it=n,it}var ot,li;function e_(){if(li)return ot;li=1;function n(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return ot=n,ot}var st,ci;function t_(){if(ci)return st;ci=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",a="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:a,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:a,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},_={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:"punctuation",match:/,/,relevance:0},p=e.COMMENT(";","$",{relevance:0}),E={className:"literal",begin:/\b(true|false|nil)\b/},m={begin:"\\[|(#::?"+a+")?\\{",end:"[\\]\\}]",relevance:0},S={className:"symbol",begin:"[:]{1,2}"+a},g={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},R={keywords:i,className:"name",begin:a,relevance:0,starts:b},f=[d,g,l,_,c,p,S,m,o,E,s],A={beginKeywords:r,keywords:{$pattern:a,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:a,relevance:0,excludeEnd:!0,endsParent:!0}].concat(f)};return g.contains=[A,R,b],b.contains=f,m.contains=f,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[d,g,l,_,c,p,S,m,o,E]}}return st=n,st}var lt,_i;function n_(){if(_i)return lt;_i=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return lt=n,lt}var ct,di;function a_(){if(di)return ct;di=1;function n(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return ct=n,ct}var _t,ui;function r_(){if(ui)return _t;ui=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,a);function s(o){const l=["npm","print"],_=["yes","no","on","off"],c=["then","unless","until","loop","by","when","and","or","is","isnt","not"],d=["var","const","let","function","static"],p=I=>C=>!I.includes(C),E={keyword:n.concat(c).filter(p(d)),literal:e.concat(_),built_in:i.concat(l)},m="[A-Za-z$_][0-9A-Za-z$_]*",S={className:"subst",begin:/#\{/,end:/\}/,keywords:E},g=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,S]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[S,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+m},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];S.contains=g;const b=o.inherit(o.TITLE_MODE,{begin:m}),R="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(g)}]},A={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:E};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:E,illegal:/\/\*/,contains:[...g,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+m+"\\s*=\\s*"+R,end:"[-=]>",returnBegin:!0,contains:[b,f]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:R,end:"[-=]>",returnBegin:!0,contains:[f]}]},A,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return _t=s,_t}var dt,pi;function i_(){if(pi)return dt;pi=1;function n(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return dt=n,dt}var ut,mi;function o_(){if(mi)return ut;mi=1;function n(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return ut=n,ut}var pt,Ei;function s_(){if(Ei)return pt;Ei=1;function n(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],R=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:g,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},C={className:"function.dispatch",relevance:0,keywords:{_hint:R},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},h=[C,p,l,a,e.C_BLOCK_COMMENT_MODE,d,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:h.concat([{begin:/\(/,end:/\)/,keywords:I,contains:h.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:I,relevance:0},{begin:m,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,a,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"",keywords:I,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return pt=n,pt}var mt,gi;function l_(){if(gi)return mt;gi=1;function n(e){const t="primitive rsc_template",a="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+a.split(" ").join("|")+")\\s+",keywords:a,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return mt=n,mt}var Et,Si;function c_(){if(Si)return Et;Si=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",a="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function d(R,f){const A=[{begin:R,end:f}];return A[0].contains=A,A}const p={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:d("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},E={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%q<",end:">",contains:d("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},m={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},S={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%r<",end:">",contains:d("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},g={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},b=[c,p,E,S,m,g,_,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[p,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+a+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return l.contains=b,c.contains=b.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:b}}return Et=n,Et}var gt,Ti;function __(){if(Ti)return gt;Ti=1;function n(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:t,literal:r},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(d,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:o},m=e.inherit(E,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},b=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});E.contains=[g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_BLOCK_COMMENT_MODE],m.contains=[b,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const R={variants:[c,g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},A=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},R,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+A+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,f],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[R,_,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},I]}}return gt=n,gt}var St,bi;function d_(){if(bi)return St;bi=1;function n(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return St=n,St}var Tt,Ri;function u_(){if(Ri)return Tt;Ri=1;const n=_=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:_.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:_.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(_){const c=_.regex,d=n(_),p={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},E="and or not only",m=/@-?\w[\w]*(-\w+)*/,S="[a-zA-Z-][a-zA-Z0-9_-]*",g=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.BLOCK_COMMENT,p,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+S,relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[d.BLOCK_COMMENT,d.HEXCOLOR,d.IMPORTANT,d.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},d.FUNCTION_DISPATCH]},{begin:c.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:m},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:E,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Tt=l,Tt}var bt,fi;function p_(){if(fi)return bt;fi=1;function n(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},a="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+r+")",_="("+r+"(\\.\\d*|"+l+")|\\d+\\."+r+"|\\."+a+l+"?)",c="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+r+")",d="("+a+"|"+i+"|"+o+")",p="("+c+"|"+_+")",E=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,m={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},S={className:"number",begin:"\\b("+p+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},g={className:"string",begin:"'("+E+"|.)",end:"'",illegal:"."},R={className:"string",begin:'"',contains:[{begin:E,relevance:0}],end:'"[cwd]?'},f={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},A={className:"string",begin:"`",end:"`[cwd]?"},I={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},h={className:"meta",begin:"^#!",end:"$",relevance:5},v={className:"meta",begin:"#(line)",end:"$",relevance:5},L={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},k=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,k,I,R,f,A,C,S,m,g,h,v,L]}}return bt=n,bt}var Rt,Ci;function m_(){if(Ci)return Rt;Ci=1;function n(e){const t=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,_={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(c,{contains:[]}),E=e.inherit(d,{contains:[]});c.contains.push(E),d.contains.push(p);let m=[a,_];return[c,d,p,E].forEach(R=>{R.contains=R.contains.concat(m)}),m=m.concat(c,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},a,s,c,d,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},i,r,_,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Rt=n,Rt}var ft,Ni;function E_(){if(Ni)return ft;Ni=1;function n(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},a={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]}]};a.contains=[r,i];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(c=>`${c}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},r,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return ft=n,ft}var Ct,Oi;function g_(){if(Oi)return Ct;Oi=1;function n(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},_={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,o,r].concat(a)},r].concat(a)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,s,l,_,r].concat(a)}}return Ct=n,Ct}var Nt,Ii;function S_(){if(Ii)return Nt;Ii=1;function n(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Nt=n,Nt}var Ot,Ai;function T_(){if(Ai)return Ot;Ai=1;function n(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}return Ot=n,Ot}var It,vi;function b_(){if(vi)return It;vi=1;function n(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return It=n,It}var At,yi;function R_(){if(yi)return At;yi=1;function n(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[a,i]},_={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},d={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},p={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},E={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,i,s,o,_,p,d,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,t,r,E,{begin:e.IDENT_RE+"::",keywords:""}]}}return ht=n,ht}var Dt,Li;function O_(){if(Li)return Dt;Li=1;function n(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return Dt=n,Dt}var Mt,xi;function I_(){if(xi)return Mt;xi=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),a={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,a,i]}}return Mt=n,Mt}var Lt,Pi;function A_(){if(Pi)return Lt;Pi=1;function n(e){const t=e.regex,a="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:a,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},d={match:/\\[\s\S]/,scope:"char.escape",relevance:0},p=`[/|([{<"']`,E=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],m=C=>({scope:"char.escape",begin:t.concat(/\\/,C),relevance:0}),S={className:"string",begin:"~[a-z](?="+p+")",contains:E.map(C=>e.inherit(C,{contains:[m(C.end),d,l]}))},g={className:"string",begin:"~[A-Z](?="+p+")",contains:E.map(C=>e.inherit(C,{contains:[m(C.end)]}))},b={className:"regex",variants:[{begin:"~r(?="+p+")",contains:E.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[m(C.end),d,l]}))},{begin:"~R(?="+p+")",contains:E.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[m(C.end)]}))}]},R={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},f={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},A=e.inherit(f,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),I=[R,b,g,S,e.HASH_COMMENT_MODE,A,f,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[R,{begin:r}],relevance:0},{className:"symbol",begin:a+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},_,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=I,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:I}}return Lt=n,Lt}var xt,wi;function v_(){if(wi)return xt;wi=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[a,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,a,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}return xt=n,xt}var Pt,ki;function y_(){if(ki)return Pt;ki=1;function n(e){const t=e.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},_={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},E="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${E})(\\.(${m}))?([eE][+-]?(${m})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},h=[p,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:a}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(_,c),relevance:0}].concat(_,c);d.contains=h,g.contains=h;const D=[{begin:/^\s*=>/,starts:{end:"$",contains:h}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:h}}];return c.unshift(_),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(D).concat(c).concat(h)}}return Pt=n,Pt}var wt,Ui;function h_(){if(Ui)return wt;Ui=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return wt=n,wt}var kt,Fi;function D_(){if(Fi)return kt;Fi=1;function n(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return kt=n,kt}var Ut,Bi;function M_(){if(Bi)return Ut;Bi=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",a="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},i=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},l={begin:a+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:a,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},_={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},p={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},E={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},m={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},S={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:"fun receive if try case maybe",end:"end",keywords:r};g.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:""}),g,l,S,m,e.QUOTE_STRING_MODE,s,_,c,d,p,E];const b=[i,o,g,l,S,m,e.QUOTE_STRING_MODE,s,_,c,d,p,E];l.contains[1].contains=b,_.contains=b,p.contains[1].contains=b;const R=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],f={className:"params",begin:"\\(",end:"\\)",contains:b};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[f,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:b}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:R.map(A=>`${A}|1.5`).join(" ")},contains:[f,S,m,e.QUOTE_STRING_MODE]},s,S,m,e.QUOTE_STRING_MODE,p,c,d,_,E,{begin:/\.$/}]}}return Ut=n,Ut}var Ft,Gi;function L_(){if(Gi)return Ft;Gi=1;function n(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return Ft=n,Ft}var Bt,Yi;function x_(){if(Yi)return Bt;Yi=1;function n(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return Bt=n,Bt}var Gt,qi;function P_(){if(qi)return Gt;qi=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a={className:"string",variants:[{begin:'"',end:'"'}]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,a,i,e.C_NUMBER_MODE]}}return Gt=n,Gt}var Yt,Hi;function w_(){if(Hi)return Yt;Hi=1;function n(e){const t=e.regex,a={className:"params",begin:"\\(",end:"\\)"},r={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,s,i)},{begin:t.concat(/\b\d+/,s,i)},{begin:t.concat(/\.\d+/,s,i)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,a]},_={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[_,l,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}return Yt=n,Yt}var qt,Vi;function k_(){if(Vi)return qt;Vi=1;function n(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return a("(?=",o,")")}function a(...o){return o.map(_=>e(_)).join("")}function r(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function i(...o){return"("+(r(o).capture?"":"?:")+o.map(c=>e(c)).join("|")+")"}function s(o){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],_={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},c=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],d=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],p=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],E=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],S={keyword:l,literal:d,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":p},b={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},R=/[a-zA-Z_](\w|')*/,f={scope:"variable",begin:/``/,end:/``/},A=/\B('|\^)/,I={scope:"symbol",variants:[{match:a(A,/``.*?``/)},{match:a(A,o.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:H}){let J;H?J="!%&*+-/<=>@^|~?":J="!%&*+-/<>@^|~?";const V=Array.from(J),G=a("[",...V.map(n),"]"),K=i(G,/\./),j=a(K,t(K)),ee=i(a(j,K,"*"),a(G,"+"));return{scope:"operator",match:i(ee,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},h=C({includeEqual:!0}),v=C({includeEqual:!1}),L=function(H,J){return{begin:a(H,t(a(/\s*/,i(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:J,end:t(i(/\n/,/=/)),relevance:0,keywords:o.inherit(S,{type:E}),contains:[b,I,o.inherit(f,{scope:null}),v]}},k=L(/:/,"operator"),D=L(/\bof\b/,"keyword"),F={begin:[/(^|\s+)/,/type/,/\s+/,R],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:S,contains:[b,o.inherit(f,{scope:null}),I,{scope:"operator",match:/<|>/},k]},$={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},X={begin:[/^\s*/,a(/#/,i(...c)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},q={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},T={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},O={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},M={scope:"string",begin:/"""/,end:/"""/,relevance:2},w={scope:"subst",begin:/\{/,end:/\}/,keywords:S},B={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,w]},Q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,w]},ne={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},w],relevance:2},ae={scope:"string",match:a(/'/,i(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return w.contains=[Q,B,O,T,ae,_,b,f,k,$,X,q,I,h],{name:"F#",aliases:["fs","f#"],keywords:S,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[_,{variants:[ne,Q,B,M,O,T,ae]},b,f,F,{scope:"meta",begin:/\[\]/,relevance:2,contains:[f,M,O,T,ae,q]},D,k,$,X,q,I,h]}}return qt=s,qt}var Ht,zi;function U_(){if(zi)return Ht;zi=1;function n(e){const t=e.regex,a={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:a,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,_={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:t.concat(l,t.anyNumberOfTimes(t.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:a,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,_]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[_]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}return Ht=n,Ht}var Vt,Wi;function F_(){if(Wi)return Vt;Wi=1;function n(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},a=e.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,i]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(E,m,S){const g=e.inherit({className:"function",beginKeywords:E,end:m,excludeEnd:!0,contains:[].concat(s)},{});return g.contains.push(o),g.contains.push(e.C_NUMBER_MODE),g.contains.push(e.C_BLOCK_COMMENT_MODE),g.contains.push(a),g},_={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},_,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},p={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,_,d,c,"self"]};return d.contains.push(p),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,a,p]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,i]}}return Vt=n,Vt}var zt,Ki;function B_(){if(Ki)return zt;Ki=1;function n(e){const t=e.regex,a={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},r=/\b/;function i(m,S){if(m.index===0)return;const g=m.input[m.index-1];g>="0"&&g<="9"||g!=="_"&&S.ignoreMatch()}const s=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,l=/T\s*\d+/,_=/O\s*\d+/,c=/O<.+>/,d=/[ABCUVWXYZ]\s*/,p=/[FHIJKPQRS]\s*/,E=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,l)},{begin:l,"on:begin":i}]},{scope:"symbol",variants:[{match:t.concat(r,_)},{begin:_,"on:begin":i},{match:t.concat(r,c)},{begin:c,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:t.concat(r,d,s)},{begin:t.concat(d,s),"on:begin":i}]},{scope:"params",variants:[{match:t.concat(r,p,s)},{begin:t.concat(p,s),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:a,contains:E}}return zt=n,zt}var Wt,$i;function G_(){if($i)return Wt;$i=1;function n(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return Wt=n,Wt}var Kt,Qi;function Y_(){if(Qi)return Kt;Qi=1;function n(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return Kt=n,Kt}var $t,Xi;function q_(){if(Xi)return $t;Xi=1;function n(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return $t=n,$t}var Qt,Zi;function H_(){if(Zi)return Qt;Zi=1;function n(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return en=n,en}var tn,ao;function Q_(){if(ao)return tn;ao=1;function n(e){const t=e.regex,a={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,_=/(\.|\/)/,c=t.either(i,s,o,l),d=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(_,c))),p=t.concat("(",o,"|",l,")(?==)"),E={begin:d},m=e.inherit(E,{keywords:r}),S={begin:/\(/,end:/\)/},g={className:"attr",begin:p,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,S]}}},b={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},R={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,b,g,m,S],returnEnd:!0},f=e.inherit(E,{className:"name",keywords:a,starts:e.inherit(R,{end:/\)/})});S.contains=[f];const A=e.inherit(E,{keywords:a,className:"name",starts:e.inherit(R,{end:/\}\}/})}),I=e.inherit(E,{keywords:a,className:"name"}),C=e.inherit(E,{className:"name",keywords:a,starts:e.inherit(R,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[A],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[I]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[A]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[I]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}return tn=n,tn}var nn,ro;function X_(){if(ro)return nn;ro=1;function n(e){const t="([0-9]_*)+",a="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",_="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",c={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},d={className:"meta",begin:/\{-#/,end:/#-\}/},p={className:"meta",begin:"^#",end:"$"},E={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},m={begin:"\\(",end:"\\)",illegal:'"',contains:[d,p,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),c]},S={begin:/\{/,end:/\}/,contains:m.contains},g={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${a})(\\.(${a}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[m,c],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[m,c],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[E,m,c]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[d,E,m,S,c]},{beginKeywords:"default",end:"$",contains:[E,m,c]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,c]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[E,e.QUOTE_STRING_MODE,c]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},d,p,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,g,E,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${_}--+|--+(?!-)${_}`},c,{begin:"->|<-"}]}}return nn=n,nn}var an,io;function Z_(){if(io)return an;io=1;function n(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",a=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:a,relevance:0},{className:"variable",begin:"\\$"+t},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return an=n,an}var rn,oo;function J_(){if(oo)return rn;oo=1;function n(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return rn=n,rn}var on,so;function j_(){if(so)return on;so=1;function n(e){const t=e.regex,a="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:t.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})",end:/$/,contains:[{className:"meta",begin:a},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(i,{relevance:0})]}}return on=n,on}var sn,lo;function ed(){if(lo)return sn;lo=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",a="["+t+"]["+t+"0-9/;:]*",r={$pattern:a,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",s={begin:a,relevance:0},o={className:"number",begin:i,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},p={className:"comment",begin:"\\^"+a},E=e.COMMENT("\\^\\{","\\}"),m={className:"symbol",begin:"[:]{1,2}"+a},S={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},b={className:"name",relevance:0,keywords:r,begin:a,starts:g},R=[S,l,p,E,_,m,d,o,c,s];return S.contains=[e.COMMENT("comment",""),b,g],g.contains=R,d.contains=R,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),S,l,p,E,_,m,d,o,c]}}return sn=n,sn}var ln,co;function td(){if(co)return ln;co=1;function n(e){const t="\\[",a="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:a}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:a,contains:["self"]}]}}return ln=n,ln}var cn,_o;function nd(){if(_o)return cn;_o=1;function n(e){const t=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[r,s,i,o,a,"self"],relevance:0},_=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,p=t.either(_,c,d),E=t.concat(p,"(\\s*\\.\\s*",p,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:E,className:"attr",starts:{end:/$/,contains:[r,l,s,i,o,a]}}]}}return cn=n,cn}var _n,uo;function ad(){if(uo)return _n;uo=1;function n(e){const t=e.regex,a={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,a]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return _n=n,_n}var dn,po;function rd(){if(po)return dn;po=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",a="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",H="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",Ol="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",Il="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",Al="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",vl="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",yl=H+Ol,hl=Al,Dl="null true false nil ",fr={className:"number",begin:e.NUMBER_RE,relevance:0},Cr={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Nr={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Ml={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Nr]},Ll={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Nr]},Or={variants:[Ml,Ll]},ve={$pattern:t,keyword:r,built_in:yl,class:hl,literal:Dl},Me={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:ve,relevance:0},Ir={className:"type",begin:":[ \\t]*("+vl.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Ar={className:"variable",keywords:ve,begin:t,relevance:0,contains:[Ir,Me]},vr=a+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:ve,illegal:"\\$|\\?|%|,|;$|~|#|@|r(s,o,l-1))}function i(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",_=l+r("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),m={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},S={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[g,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+_+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[S,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,a,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},a,S]}}return un=i,un}var pn,Eo;function od(){if(Eo)return pn;Eo=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],t=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(i,a,r);function l(_){const c=_.regex,d=(V,{after:G})=>{const K="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,G)=>{const K=V[0].length+V.index,j=V.input[K];if(j==="<"||j===","){G.ignoreMatch();return}j===">"&&(d(V,{after:K})||G.ignoreMatch());let ee;const re=V.input.substring(K);if(ee=re.match(/^\s*=/)){G.ignoreMatch();return}if((ee=re.match(/^\s+extends\s+/))&&ee.index===0){G.ignoreMatch();return}}},g={$pattern:n,keyword:e,literal:t,built_in:o,"variable.language":s},b="[0-9](_?[0-9])*",R=`\\.(${b})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${f})((${R})|\\.)?|(${R}))[eE][+-]?(${b})\\b`},{begin:`\\b(${f})\\b((${R})\\b|\\.)?|(${R})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},I={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"xml"}},h={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE,I]},D={className:"comment",variants:[_.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),_.C_BLOCK_COMMENT_MODE,_.C_LINE_COMMENT_MODE]},F=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,C,h,v,L,{match:/\$\d+/},A];I.contains=F.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(F)});const $=[].concat(D,I.contains),X=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat($)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:X},T={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,c.concat(p,"(",c.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...r]}},M={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(V){return c.concat("(?!",V.join("|"),")")}const ne={match:c.concat(/\b/,Q([...i,"super","import"].map(V=>`${V}\\s*\\(`)),p,c.lookahead(/\s*\(/)),className:"title.function",relevance:0},ae={begin:c.concat(/\./,c.lookahead(c.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},z={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},H="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+_.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(H)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:X,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),M,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,C,h,v,L,D,{match:/\$\d+/},A,O,{scope:"attr",match:p+c.lookahead(":"),relevance:0},J,{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,_.REGEXP_MODE,{className:"function",begin:H,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:X}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:E.begin,end:E.end},{match:m},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,_.inherit(_.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},ae,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},ne,B,T,z,{match:/\$[(.]/}]}}return pn=l,pn}var mn,go;function sd(){if(go)return mn;go=1;function n(e){const a={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},r={className:"function",begin:/:[\w\-.]+/,relevance:0},i={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,r,i,a]}}return mn=n,mn}var En,So;function ld(){if(So)return En;So=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,a,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return En=n,En}var gn,To;function cd(){if(To)return gn;To=1;function n(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},_={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},d={className:"variable",begin:"\\$"+t},p={className:"string",contains:[e.BACKSLASH_ESCAPE,c,d],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},E={className:"string",contains:[e.BACKSLASH_ESCAPE,c,d],begin:"`",end:"`"},m={className:"meta",begin:"@"+t},S={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[l,_,p,E,m,S,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],c.contains=o.contains,o}return gn=n,gn}var Sn,bo;function _d(){if(bo)return Sn;bo=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return Sn=n,Sn}var Tn,Ro;function dd(){if(Ro)return Tn;Ro=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function r(i){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"@"},_={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},c={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},d={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[c,_]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,c,_]}]};_.contains.push(d);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},E={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(d,{className:"string"}),"self"]}]},m=a,S=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=g;return b.variants[1].contains=[g],g.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,S,o,l,p,E,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,i.C_LINE_COMMENT_MODE,S],relevance:0},i.C_LINE_COMMENT_MODE,S,p,E,d,i.C_NUMBER_MODE]},S]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,E]},d,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` `},m]}}return Tn=r,Tn}var bn,fo;function ud(){if(fo)return bn;fo=1;function n(e){const t="[a-zA-Z_][\\w.]*",a="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+a},_={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[_]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[s]}},o,l].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}return bn=n,bn}var Rn,Co;function pd(){if(Co)return Rn;Co=1;function n(e){const a=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(D=>D+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(D=>D+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:a},{endsParent:!0,begin:r},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:i}]},l={className:"params",relevance:0,begin:/#+\d?/},_={variants:s},c={className:"built_in",relevance:0,begin:/[$&^_]/},d={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},p=e.COMMENT("%","$",{relevance:0}),E=[o,l,_,c,d,p],m={begin:/\{/,end:/\}/,relevance:0,contains:["self",...E]},S=e.inherit(m,{relevance:0,endsParent:!0,contains:[m,...E]}),g={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[m,...E]},b={begin:/\s+/,relevance:0},R=[S],f=[g],A=function(D,F){return{contains:[b],starts:{relevance:0,contains:D,starts:F}}},I=function(D,F){return{begin:"\\\\"+D+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+D},relevance:0,contains:[b],starts:F}},C=function(D,F){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+D+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},A(R,F))},h=(D="string")=>e.END_SAME_AS_BEGIN({className:D,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),v=function(D){return{className:"string",end:"(?=\\\\end\\{"+D+"\\})"}},L=(D="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:D,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),k=[...["verb","lstinline"].map(D=>I(D,{contains:[h()]})),I("mint",A(R,{contains:[h()]})),I("mintinline",A(R,{contains:[L(),h()]})),I("url",{contains:[L("link"),L("link")]}),I("hyperref",{contains:[L("link")]}),I("href",A(f,{contains:[L("link")]})),...[].concat(...["","\\*"].map(D=>[C("verbatim"+D,v("verbatim"+D)),C("filecontents"+D,A(R,v("filecontents"+D))),...["","B","L"].map(F=>C(F+"Verbatim"+D,A(f,v(F+"Verbatim"+D))))])),C("minted",A(f,A(R,v("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...k,...E]}}return Rn=n,Rn}var fn,No;function md(){if(No)return fn;No=1;function n(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return fn=n,fn}var Cn,Oo;function Ed(){if(Oo)return Cn;Oo=1;function n(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,r={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[r]};return r.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[r]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return Cn=n,Cn}var Nn,Io;function gd(){if(Io)return Nn;Io=1;const n=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),l=i.concat(s).sort().reverse();function _(c){const d=n(c),p=l,E="and or not only",m="[\\w-]+",S="("+m+"|@\\{"+m+"\\})",g=[],b=[],R=function($){return{className:"string",begin:"~?"+$+".*?"+$}},f=function($,X,q){return{className:$,begin:X,relevance:q}},A={$pattern:/[a-z-]+/,keyword:E,attribute:r.join(" ")},I={begin:"\\(",end:"\\)",contains:b,keywords:A,relevance:0};b.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,R("'"),R('"'),d.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},d.HEXCOLOR,I,f("variable","@@?"+m,10),f("variable","@\\{"+m+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:m+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},d.IMPORTANT,{beginKeywords:"and not"},d.FUNCTION_DISPATCH);const C=b.concat({begin:/\{/,end:/\}/,contains:g}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(b)},v={begin:S+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:b}}]},L={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:A,returnEnd:!0,contains:b,relevance:0}},k={className:"variable",variants:[{begin:"@"+m+"\\s*:",relevance:15},{begin:"@"+m}],starts:{end:"[;}]",returnEnd:!0,contains:C}},D={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:S,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,h,f("keyword","all\\b"),f("variable","@\\{"+m+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},d.CSS_NUMBER_MODE,f("selector-tag",S,0),f("selector-id","#"+S),f("selector-class","\\."+S,0),f("selector-tag","&",0),d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},d.FUNCTION_DISPATCH]},F={begin:m+`:(:)?(${p.join("|")})`,returnBegin:!0,contains:[D]};return g.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,L,k,F,v,D,h,d.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:g}}return Nn=_,Nn}var On,Ao;function Sd(){if(Ao)return On;Ao=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",a="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),_={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},d={begin:t,relevance:0},p={begin:a},m={contains:[s,o,_,c,{begin:"\\(",end:"\\)",contains:["self",i,o,s,d]},d],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+a}]},S={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},g={begin:"\\(\\s*",end:"\\)"},b={endsWithParent:!0,relevance:0};return g.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:a}]},b],b.contains=[m,S,g,i,s,o,l,_,c,p,d],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),i,o,l,m,S,g,d]}}return On=n,On}var In,vo;function Td(){if(vo)return In;vo=1;function n(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},a=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(a),illegal:";$|^\\[|^=|&|\\{"}}return In=n,In}var An,yo;function bd(){if(yo)return An;yo=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,a);function s(o){const l=["npm","print"],_=["yes","no","on","off","it","that","void"],c=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],d={keyword:n.concat(c),literal:e.concat(_),built_in:i.concat(l)},p="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",E=o.inherit(o.TITLE_MODE,{begin:p}),m={className:"subst",begin:/#\{/,end:/\}/,keywords:d},S={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:d},g=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,m,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,m,S]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[m,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+p},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];m.contains=g;const b={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(g)}]},R={begin:"(#=>|=>|\\|>>|-?->|!->)"},f={variants:[{match:[/class\s+/,p,/\s+extends\s+/,p]},{match:[/class\s+/,p]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d};return{name:"LiveScript",aliases:["ls"],keywords:d,illegal:/\/\*/,contains:g.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,R,{className:"function",contains:[E,b],returnBegin:!0,variants:[{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},f,{begin:p+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return An=s,An}var vn,ho;function Rd(){if(ho)return vn;ho=1;function n(e){const t=e.regex,a=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},_={className:"variable",variants:[{begin:t.concat(/%/,a)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:t.concat(/@/,a)},{begin:/@\d+/},{begin:t.concat(/!/,a)},{begin:t.concat(/!\d+/,a)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,s,i,_,l,o]}}return vn=n,vn}var yn,Do;function fd(){if(Do)return yn;Do=1;function n(e){const a={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},r={className:"number",relevance:0,begin:e.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[a,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},r,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return yn=n,yn}var hn,Mo;function Cd(){if(Mo)return hn;Mo=1;function n(e){const t="\\[=*\\[",a="\\]=*\\]",r={begin:t,end:a,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,a,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:a,contains:[r],relevance:5}])}}return hn=n,hn}var Dn,Lo;function Nd(){if(Lo)return Dn;Lo=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{S.has(h[0])||v.ignoreMatch()}},{className:"symbol",relevance:0,begin:m}]},b={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},R={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},f={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},A={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},I={className:"brace",relevance:0,begin:/[[\](){}]/},C={className:"message-name",relevance:0,begin:a.concat("::",m)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),f,A,C,g,b,t.QUOTE_STRING_MODE,E,R,I]}}return Mn=e,Mn}var Ln,Po;function Id(){if(Po)return Ln;Po=1;function n(e){const t="('|\\.')+",a={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:a},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:a},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:a},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:a},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return Ln=n,Ln}var xn,wo;function Ad(){if(wo)return xn;wo=1;function n(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return xn=n,xn}var Pn,ko;function vd(){if(ko)return Pn;ko=1;function n(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},a,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,s,{begin:/:-/},{begin:/\.$/}]}}return wn=n,wn}var kn,Fo;function hd(){if(Fo)return kn;Fo=1;function n(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return kn=n,kn}var Un,Bo;function Dd(){if(Bo)return Un;Bo=1;function n(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return Un=n,Un}var Fn,Go;function Md(){if(Go)return Fn;Go=1;function n(e){const t=e.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:a.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},_={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,s,_],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(g,b,R="\\1")=>{const f=R==="\\1"?R:t.concat(R,b);return t.concat(t.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,f,/(?:\\.|[^\\\/])*?/,R,r)},m=(g,b,R)=>t.concat(t.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,R,r),S=[_,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",t.either(...p,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m("(?:m|qr)?",/\//,/\//)},{begin:m("m|qr",t.either(...p,{capture:!0}),/\1/)},{begin:m("m|qr",/\(/,/\)/)},{begin:m("m|qr",/\[/,/\]/)},{begin:m("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=S,o.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:S}}return Fn=n,Fn}var Bn,Yo;function Ld(){if(Yo)return Bn;Yo=1;function n(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return Bn=n,Bn}var Gn,qo;function xd(){if(qo)return Gn;qo=1;function n(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},a={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),a,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}return Gn=n,Gn}var Yn,Ho;function Pd(){if(Ho)return Yn;Ho=1;function n(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},a="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=i;const s=e.inherit(e.TITLE_MODE,{begin:a}),o="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+a+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return Yn=n,Yn}var qn,Vo;function wd(){if(Vo)return qn;Vo=1;function n(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return qn=n,qn}var Hn,zo;function kd(){if(zo)return Hn;zo=1;function n(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},a={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,t,a]}}return Hn=n,Hn}var Vn,Wo;function Ud(){if(Wo)return Vn;Wo=1;function n(e){const t=e.regex,a={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[a]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},a]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return Vn=n,Vn}var zn,Ko;function Fd(){if(Ko)return zn;Ko=1;function n(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return zn=n,zn}var Wn,$o;function Bd(){if($o)return Wn;$o=1;function n(e){const t=e.regex,a={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},r={scope:"built_in",match:t.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(h=>`builtins\\.${h}`)),relevance:10},i="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},o="[A-Za-z0-9_\\+\\.-]+",l={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},_=t.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),c={scope:"operator",match:t.concat(_,/(?!-)/),relevance:0},d={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},p={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[_,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},E={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},m={scope:"char.escape",match:/\\\$/},S={scope:"char.escape",match:/''\$/},g={scope:"subst",begin:/\$\{/,end:/\}/,keywords:a},b={scope:"char.escape",match:/'''/},R={scope:"char.escape",match:/\\(?!\$)./},f={scope:"string",variants:[{begin:"''",end:"''",contains:[S,g,b,R]},{begin:'"',end:'"',contains:[m,g,R]}]},A={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},I=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),r,f,s,l,A,E,p,c];g.contains=I;const C=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:a,contains:I.concat(C)}}return Wn=n,Wn}var Kn,Qo;function Gd(){if(Qo)return Kn;Qo=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Kn=n,Kn}var $n,Xo;function Yd(){if(Xo)return $n;Xo=1;function n(e){const t=e.regex,a=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:t.concat(/\$/,t.either(...a))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},_={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:t.either(...r)},d={className:"keyword",begin:t.concat(/!/,t.either(...i))},p={className:"char.escape",begin:/\$(\\[nrt]|\$)/},E={className:"title.function",begin:/\w+::\w+/},m={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[p,s,o,l,_]},S=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],g=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],b={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},f={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:S,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),f,b,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},m,d,o,l,_,c,E,e.NUMBER_MODE]}}return $n=n,$n}var Qn,Zo;function qd(){if(Zo)return Qn;Zo=1;function n(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},_={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return Qn=n,Qn}var Xn,Jo;function Hd(){if(Jo)return Xn;Jo=1;function n(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return Xn=n,Xn}var Zn,jo;function Vd(){if(jo)return Zn;jo=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},a={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,t,a]},l={begin:"[*!#%]",relevance:0},_={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,s,i,t,l,_]}}return Zn=n,Zn}var Jn,es;function zd(){if(es)return Jn;es=1;function n(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},a=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[i,s]},a,r]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[a,r,e.C_LINE_COMMENT_MODE,i,s,e.NUMBER_MODE,o,l]}}return Jn=n,Jn}var jn,ts;function Wd(){if(ts)return jn;ts=1;function n(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return jn=n,jn}var ea,ns;function Kd(){if(ns)return ea;ns=1;function n(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},a={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,a]}}return ea=n,ea}var ta,as;function $d(){if(as)return ta;as=1;function n(e){const t=e.COMMENT("--","$"),a="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+a+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",_="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=_.trim().split(" ").map(function(g){return g.split("|")[0]}).join("|"),d="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",p="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",E="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",S="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(g){return g.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+l+o,built_in:d+p+E},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+S+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:_.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}return ta=n,ta}var na,rs;function Qd(){if(rs)return na;rs=1;function n(e){const t=e.regex,a=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),s=t.concat(/[A-Z]+/,a),o={scope:"variable",match:"\\$+"+r},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},_={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(_)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(_),"on:begin":(q,T)=>{T.data._beginMatch=q[1]||q[2]},"on:end":(q,T)=>{T.data._beginMatch!==q[1]&&T.ignoreMatch()}},E=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[ diff --git a/deploy/server/notebase/assets/index-DFpvp1rn.js b/deploy/server/notebase/assets/index-hnRSc5ud.js similarity index 99% rename from deploy/server/notebase/assets/index-DFpvp1rn.js rename to deploy/server/notebase/assets/index-hnRSc5ud.js index 3cb2d61b87..4b4806e767 100644 --- a/deploy/server/notebase/assets/index-DFpvp1rn.js +++ b/deploy/server/notebase/assets/index-hnRSc5ud.js @@ -79,7 +79,7 @@ var sme;function Wn(){return sme.apply(null,arguments)}function jRe(e){sme=e}fun [`+o+"] ";for(a in arguments[0])Mi(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}cme(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var JQ={};function ume(e,t){Wn.deprecationHandler!=null&&Wn.deprecationHandler(e,t),JQ[e]||(cme(t),JQ[e]=!0)}Wn.suppressDeprecationWarnings=!1;Wn.deprecationHandler=null;function nh(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function HRe(e){var t,n;for(n in e)Mi(e,n)&&(t=e[n],nh(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 qL(e,t){var n=Am({},e),r;for(r in t)Mi(t,r)&&(Q1(e[r])&&Q1(t[r])?(n[r]={},Am(n[r],e[r]),Am(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Mi(e,r)&&!Mi(t,r)&&Q1(e[r])&&(n[r]=Am({},n[r]));return n}function Vz(e){e!=null&&this.set(e)}var GL;Object.keys?GL=Object.keys:GL=function(e){var t,n=[];for(t in e)Mi(e,t)&&n.push(t);return n};var zRe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function URe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return nh(r)?r.call(t,n):r}function Yf(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 Kz=/(\[[^\[]*\])|(\\)?([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,DT=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,eR={},sb={};function wr(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(sb[e]=i),t&&(sb[t[0]]=function(){return Yf(i.apply(this,arguments),t[1],t[2])}),n&&(sb[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function WRe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function VRe(e){var t=e.match(Kz),n,r;for(n=0,r=t.length;n=0&&DT.test(e);)e=e.replace(DT,r),DT.lastIndex=0,n-=1;return e}var KRe={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 qRe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Kz).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var GRe="Invalid date";function YRe(){return this._invalidDate}var XRe="%d",QRe=/\d{1,2}/;function ZRe(e){return this._ordinal.replace("%d",e)}var JRe={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 eAe(e,t,n,r){var i=this._relativeTime[n];return nh(i)?i(e,t,n,r):i.replace(/%d/i,e)}function tAe(e,t){var n=this._relativeTime[e>0?"future":"past"];return nh(n)?n(t):n.replace(/%s/i,t)}var eZ={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 Nu(e){return typeof e=="string"?eZ[e]||eZ[e.toLowerCase()]:void 0}function qz(e){var t={},n,r;for(r in e)Mi(e,r)&&(n=Nu(r),n&&(t[n]=e[r]));return t}var nAe={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 rAe(e){var t=[],n;for(n in e)Mi(e,n)&&t.push({unit:n,priority:nAe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var fme=/\d/,zc=/\d\d/,hme=/\d{3}/,Gz=/\d{4}/,q6=/[+-]?\d{6}/,_o=/\d\d?/,pme=/\d\d\d\d?/,mme=/\d\d\d\d\d\d?/,G6=/\d{1,3}/,Yz=/\d{1,4}/,Y6=/[+-]?\d{1,6}/,BS=/\d+/,X6=/[+-]?\d+/,iAe=/Z|[+-]\d\d:?\d\d/gi,Q6=/Z|[+-]\d\d(?::?\d\d)?/gi,oAe=/[+-]?\d+(\.\d{1,3})?/,hE=/[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,HS=/^[1-9]\d?/,Xz=/^([1-9]\d|\d)/,l9;l9={};function ir(e,t,n){l9[e]=nh(t)?t:function(r,i){return r&&n?n:t}}function aAe(e,t){return Mi(l9,e)?l9[e](t._strict,t._locale):new RegExp(sAe(e))}function sAe(e){return ep(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function ep(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 YL={};function Qi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),fp(t)&&(r=function(o,a){a[t]=ui(o)}),i=e.length,n=0;n68?1900:2e3)};var gme=zS("FullYear",!0);function dAe(){return Z6(this.year())}function zS(e,t){return function(n){return n!=null?(vme(this,e,n),Wn.updateOffset(this,t),this):Zw(this,e)}}function Zw(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 vme(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&&!Z6(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function fAe(e){return e=Nu(e),nh(this[e])?this[e]():this}function hAe(e,t){if(typeof e=="object"){e=qz(e);var n=rAe(e),r,i=n.length;for(r=0;r=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 Jw(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 c9(e,t,n){var r=7+t-n,i=(7+Jw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function wme(e,t,n,r,i){var o=(7+n-r)%7,a=c9(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=G2(l)+s):s>G2(e)?(l=e+1,c=s-G2(e)):(l=e,c=s),{year:l,dayOfYear:c}}function e_(e,t,n){var r=c9(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+tp(a,t,n)):i>tp(e.year(),t,n)?(o=i-tp(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function tp(e,t,n){var r=c9(e,t,n),i=c9(e+1,t,n);return(G2(e)-r+i)/7}wr("w",["ww",2],"wo","week");wr("W",["WW",2],"Wo","isoWeek");ir("w",_o,HS);ir("ww",_o,zc);ir("W",_o,HS);ir("WW",_o,zc);pE(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ui(e)});function TAe(e){return e_(e,this._week.dow,this._week.doy).week}var kAe={dow:0,doy:6};function OAe(){return this._week.dow}function PAe(){return this._week.doy}function MAe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function IAe(e){var t=e_(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");ir("d",_o);ir("e",_o);ir("E",_o);ir("dd",function(e,t){return t.weekdaysMinRegex(e)});ir("ddd",function(e,t){return t.weekdaysShortRegex(e)});ir("dddd",function(e,t){return t.weekdaysRegex(e)});pE(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Xr(n).invalidWeekday=e});pE(["d","e","E"],function(e,t,n,r){t[r]=ui(e)});function $Ae(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function RAe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Zz(e,t){return e.slice(t,7).concat(e.slice(0,t))}var AAe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_me="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),NAe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),DAe=hE,LAe=hE,FAe=hE;function jAe(e,t){var n=Ld(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Zz(n,this._week.dow):e?n[e.day()]:n}function BAe(e){return e===!0?Zz(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function HAe(e){return e===!0?Zz(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zAe(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=th([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=ca.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=ca.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=ca.call(this._weekdaysParse,a),i!==-1||(i=ca.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=ca.call(this._shortWeekdaysParse,a),i!==-1||(i=ca.call(this._weekdaysParse,a),i!==-1)?i:(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=ca.call(this._minWeekdaysParse,a),i!==-1||(i=ca.call(this._weekdaysParse,a),i!==-1)?i:(i=ca.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function UAe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return zAe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=th([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 WAe(e){if(!this.isValid())return e!=null?this:NaN;var t=Zw(this,"Day");return e!=null?(e=$Ae(e,this.localeData()),this.add(e-t,"d")):t}function VAe(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 KAe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=RAe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function qAe(e){return this._weekdaysParseExact?(Mi(this,"_weekdaysRegex")||Jz.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Mi(this,"_weekdaysRegex")||(this._weekdaysRegex=DAe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function GAe(e){return this._weekdaysParseExact?(Mi(this,"_weekdaysRegex")||Jz.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Mi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=LAe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function YAe(e){return this._weekdaysParseExact?(Mi(this,"_weekdaysRegex")||Jz.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Mi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=FAe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jz(){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=th([2e3,1]).day(o),s=ep(this.weekdaysMin(a,"")),l=ep(this.weekdaysShort(a,"")),c=ep(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 eU(){return this.hours()%12||12}function XAe(){return this.hours()||24}wr("H",["HH",2],0,"hour");wr("h",["hh",2],0,eU);wr("k",["kk",2],0,XAe);wr("hmm",0,0,function(){return""+eU.apply(this)+Yf(this.minutes(),2)});wr("hmmss",0,0,function(){return""+eU.apply(this)+Yf(this.minutes(),2)+Yf(this.seconds(),2)});wr("Hmm",0,0,function(){return""+this.hours()+Yf(this.minutes(),2)});wr("Hmmss",0,0,function(){return""+this.hours()+Yf(this.minutes(),2)+Yf(this.seconds(),2)});function Eme(e,t){wr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Eme("a",!0);Eme("A",!1);function Tme(e,t){return t._meridiemParse}ir("a",Tme);ir("A",Tme);ir("H",_o,Xz);ir("h",_o,HS);ir("k",_o,HS);ir("HH",_o,zc);ir("hh",_o,zc);ir("kk",_o,zc);ir("hmm",pme);ir("hmmss",mme);ir("Hmm",pme);ir("Hmmss",mme);Qi(["H","HH"],za);Qi(["k","kk"],function(e,t,n){var r=ui(e);t[za]=r===24?0:r});Qi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Qi(["h","hh"],function(e,t,n){t[za]=ui(e),Xr(n).bigHour=!0});Qi("hmm",function(e,t,n){var r=e.length-2;t[za]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r)),Xr(n).bigHour=!0});Qi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[za]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r,2)),t[Qh]=ui(e.substr(i)),Xr(n).bigHour=!0});Qi("Hmm",function(e,t,n){var r=e.length-2;t[za]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r))});Qi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[za]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r,2)),t[Qh]=ui(e.substr(i))});function QAe(e){return(e+"").toLowerCase().charAt(0)==="p"}var ZAe=/[ap]\.?m?\.?/i,JAe=zS("Hours",!0);function eNe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var kme={calendar:zRe,longDateFormat:KRe,invalidDate:GRe,ordinal:XRe,dayOfMonthOrdinalParse:QRe,relativeTime:JRe,months:mAe,monthsShort:yme,week:kAe,weekdays:AAe,weekdaysMin:NAe,weekdaysShort:_me,meridiemParse:ZAe},Oo={},Ix={},t_;function tNe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=J6(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&tNe(o,r)>=n-1)break;n--}t++}return t_}function rNe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function J6(e){var t=null,n;if(Oo[e]===void 0&&typeof module<"u"&&module&&module.exports&&rNe(e))try{t=t_._abbr,n=require,n("./locale/"+e),Zm(t)}catch{Oo[e]=null}return Oo[e]}function Zm(e,t){var n;return e&&(Pl(t)?n=kp(e):n=tU(e,t),n?t_=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),t_._abbr}function tU(e,t){if(t!==null){var n,r=kme;if(t.abbr=e,Oo[e]!=null)ume("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=Oo[e]._config;else if(t.parentLocale!=null)if(Oo[t.parentLocale]!=null)r=Oo[t.parentLocale]._config;else if(n=J6(t.parentLocale),n!=null)r=n._config;else return Ix[t.parentLocale]||(Ix[t.parentLocale]=[]),Ix[t.parentLocale].push({name:e,config:t}),null;return Oo[e]=new Vz(qL(r,t)),Ix[e]&&Ix[e].forEach(function(i){tU(i.name,i.config)}),Zm(e),Oo[e]}else return delete Oo[e],null}function iNe(e,t){if(t!=null){var n,r,i=kme;Oo[e]!=null&&Oo[e].parentLocale!=null?Oo[e].set(qL(Oo[e]._config,t)):(r=J6(e),r!=null&&(i=r._config),t=qL(i,t),r==null&&(t.abbr=e),n=new Vz(t),n.parentLocale=Oo[e],Oo[e]=n),Zm(e)}else Oo[e]!=null&&(Oo[e].parentLocale!=null?(Oo[e]=Oo[e].parentLocale,e===Zm()&&Zm(e)):Oo[e]!=null&&delete Oo[e]);return Oo[e]}function kp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return t_;if(!Ld(e)){if(t=J6(e),t)return t;e=[e]}return nNe(e)}function oNe(){return GL(Oo)}function nU(e){var t,n=e._a;return n&&Xr(e).overflow===-2&&(t=n[Xh]<0||n[Xh]>11?Xh:n[$f]<1||n[$f]>Qz(n[zs],n[Xh])?$f:n[za]<0||n[za]>24||n[za]===24&&(n[bd]!==0||n[Qh]!==0||n[O1]!==0)?za:n[bd]<0||n[bd]>59?bd:n[Qh]<0||n[Qh]>59?Qh:n[O1]<0||n[O1]>999?O1:-1,Xr(e)._overflowDayOfYear&&(t$f)&&(t=$f),Xr(e)._overflowWeeks&&t===-1&&(t=cAe),Xr(e)._overflowWeekday&&t===-1&&(t=uAe),Xr(e).overflow=t),e}var aNe=/^\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)?)?$/,sNe=/^\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)?)?$/,lNe=/Z|[+-]\d\d(?::?\d\d)?/,LT=[["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]],tR=[["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/]],cNe=/^\/?Date\((-?\d+)/i,uNe=/^(?:(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}))$/,dNe={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 Ome(e){var t,n,r=e._i,i=aNe.exec(r)||sNe.exec(r),o,a,s,l,c=LT.length,u=tR.length;if(i){for(Xr(e).iso=!0,t=0,n=c;tG2(a)||e._dayOfYear===0)&&(Xr(e)._overflowDayOfYear=!0),n=Jw(a,0,e._dayOfYear),e._a[Xh]=n.getUTCMonth(),e._a[$f]=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[bd]===0&&e._a[Qh]===0&&e._a[O1]===0&&(e._nextDay=!0,e._a[za]=0),e._d=(e._useUTC?Jw:EAe).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&&(Xr(e).weekdayMismatch=!0)}}function bNe(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=xy(t.GG,e._a[zs],e_(xo(),1,4).year),r=xy(t.W,1),i=xy(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=e_(xo(),o,a),n=xy(t.gg,e._a[zs],c.year),r=xy(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>tp(n,o,a)?Xr(e)._overflowWeeks=!0:l!=null?Xr(e)._overflowWeekday=!0:(s=wme(n,r,i,o,a),e._a[zs]=s.year,e._dayOfYear=s.dayOfYear)}Wn.ISO_8601=function(){};Wn.RFC_2822=function(){};function iU(e){if(e._f===Wn.ISO_8601){Ome(e);return}if(e._f===Wn.RFC_2822){Pme(e);return}e._a=[],Xr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=dme(e._f,e._locale).match(Kz)||[],u=i.length,n=0;n0&&Xr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),sb[o]?(r?Xr(e).empty=!1:Xr(e).unusedTokens.push(o),lAe(o,r,e)):e._strict&&!r&&Xr(e).unusedTokens.push(o);Xr(e).charsLeftOver=s-l,t.length>0&&Xr(e).unusedInput.push(t),e._a[za]<=12&&Xr(e).bigHour===!0&&e._a[za]>0&&(Xr(e).bigHour=void 0),Xr(e).parsedDateParts=e._a.slice(0),Xr(e).meridiem=e._meridiem,e._a[za]=SNe(e._locale,e._a[za],e._meridiem),c=Xr(e).era,c!==null&&(e._a[zs]=e._locale.erasConvertYear(c,e._a[zs])),rU(e),nU(e)}function SNe(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){Xr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:K6()});function $me(e,t){var n,r;if(t.length===1&&Ld(t[0])&&(t=t[0]),!t.length)return xo();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zNe(){if(!Pl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Wz(e,this),e=Mme(e),e._a?(t=e._isUTC?th(e._a):xo(e._a),this._isDSTShifted=this.isValid()&&RNe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function UNe(){return this.isValid()?!this._isUTC:!1}function WNe(){return this.isValid()?this._isUTC:!1}function Ame(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VNe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,KNe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zd(e,t){var n=e,r=null,i,o,a;return k8(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:fp(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=VNe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:ui(r[$f])*i,h:ui(r[za])*i,m:ui(r[bd])*i,s:ui(r[Qh])*i,ms:ui(XL(r[O1]*1e3))*i}):(r=KNe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Yg(r[2],i),M:Yg(r[3],i),w:Yg(r[4],i),d:Yg(r[5],i),h:Yg(r[6],i),m:Yg(r[7],i),s:Yg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=qNe(xo(n.from),xo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new eO(n),k8(e)&&Mi(e,"_locale")&&(o._locale=e._locale),k8(e)&&Mi(e,"_isValid")&&(o._isValid=e._isValid),o}Zd.fn=eO.prototype;Zd.invalid=$Ne;function Yg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function nZ(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 qNe(e,t){var n;return e.isValid()&&t.isValid()?(t=aU(t,e),e.isBefore(t)?n=nZ(e,t):(n=nZ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Nme(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(ume(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=Zd(n,r),Dme(this,i,e),this}}function Dme(e,t,n,r){var i=t._milliseconds,o=XL(t._days),a=XL(t._months);e.isValid()&&(r=r??!0,a&&Sme(e,Zw(e,"Month")+a*n),o&&vme(e,"Date",Zw(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Wn.updateOffset(e,o||a))}var GNe=Nme(1,"add"),YNe=Nme(-1,"subtract");function Lme(e){return typeof e=="string"||e instanceof String}function XNe(e){return Fd(e)||dE(e)||Lme(e)||fp(e)||ZNe(e)||QNe(e)||e===null||e===void 0}function QNe(e){var t=Q1(e)&&!zz(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;in.valueOf():n.valueOf()9999?T8(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nh(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",T8(n,"Z")):T8(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function f7e(){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 h7e(e){e||(e=this.isUtc()?Wn.defaultFormatUtc:Wn.defaultFormat);var t=T8(this,e);return this.localeData().postformat(t)}function p7e(e,t){return this.isValid()&&(Fd(e)&&e.isValid()||xo(e).isValid())?Zd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function m7e(e){return this.from(xo(),e)}function g7e(e,t){return this.isValid()&&(Fd(e)&&e.isValid()||xo(e).isValid())?Zd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function v7e(e){return this.to(xo(),e)}function Fme(e){var t;return e===void 0?this._locale._abbr:(t=kp(e),t!=null&&(this._locale=t),this)}var jme=Au("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 Bme(){return this._locale}var u9=1e3,lb=60*u9,d9=60*lb,Hme=(365*400+97)*24*d9;function cb(e,t){return(e%t+t)%t}function zme(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Hme:new Date(e,t,n).valueOf()}function Ume(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Hme:Date.UTC(e,t,n)}function y7e(e){var t,n;if(e=Nu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ume:zme,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-=cb(t+(this._isUTC?0:this.utcOffset()*lb),d9);break;case"minute":t=this._d.valueOf(),t-=cb(t,lb);break;case"second":t=this._d.valueOf(),t-=cb(t,u9);break}return this._d.setTime(t),Wn.updateOffset(this,!0),this}function b7e(e){var t,n;if(e=Nu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ume:zme,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+=d9-cb(t+(this._isUTC?0:this.utcOffset()*lb),d9)-1;break;case"minute":t=this._d.valueOf(),t+=lb-cb(t,lb)-1;break;case"second":t=this._d.valueOf(),t+=u9-cb(t,u9)-1;break}return this._d.setTime(t),Wn.updateOffset(this,!0),this}function S7e(){return this._d.valueOf()-(this._offset||0)*6e4}function C7e(){return Math.floor(this.valueOf()/1e3)}function x7e(){return new Date(this.valueOf())}function w7e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _7e(){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 E7e(){return this.isValid()?this.toISOString():null}function T7e(){return Uz(this)}function k7e(){return Am({},Xr(this))}function O7e(){return Xr(this).overflow}function P7e(){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");ir("N",sU);ir("NN",sU);ir("NNN",sU);ir("NNNN",B7e);ir("NNNNN",H7e);Qi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Xr(n).era=i:Xr(n).invalidEra=e});ir("y",BS);ir("yy",BS);ir("yyy",BS);ir("yyyy",BS);ir("yo",z7e);Qi(["y","yy","yyy","yyyy"],zs);Qi(["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 M7e(e,t){var n,r,i,o=this._eras||kp("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function $7e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Wn(e.since).year():Wn(e.since).year()+(t-e.offset)*n}function R7e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),Y7e.call(this,e,t,n,r,i))}function Y7e(e,t,n,r,i){var o=wme(e,t,n,r,i),a=Jw(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}wr("Q",0,"Qo","quarter");ir("Q",fme);Qi("Q",function(e,t){t[Xh]=(ui(e)-1)*3});function X7e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}wr("D",["DD",2],"Do","date");ir("D",_o,HS);ir("DD",_o,zc);ir("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Qi(["D","DD"],$f);Qi("Do",function(e,t){t[$f]=ui(e.match(_o)[0])});var Vme=zS("Date",!0);wr("DDD",["DDDD",3],"DDDo","dayOfYear");ir("DDD",G6);ir("DDDD",hme);Qi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ui(e)});function Q7e(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");ir("m",_o,Xz);ir("mm",_o,zc);Qi(["m","mm"],bd);var Z7e=zS("Minutes",!1);wr("s",["ss",2],0,"second");ir("s",_o,Xz);ir("ss",_o,zc);Qi(["s","ss"],Qh);var J7e=zS("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});ir("S",G6,fme);ir("SS",G6,zc);ir("SSS",G6,hme);var Nm,Kme;for(Nm="SSSS";Nm.length<=9;Nm+="S")ir(Nm,BS);function eDe(e,t){t[O1]=ui(("0."+e)*1e3)}for(Nm="S";Nm.length<=9;Nm+="S")Qi(Nm,eDe);Kme=zS("Milliseconds",!1);wr("z",0,0,"zoneAbbr");wr("zz",0,0,"zoneName");function tDe(){return this._isUTC?"UTC":""}function nDe(){return this._isUTC?"Coordinated Universal Time":""}var $n=fE.prototype;$n.add=GNe;$n.calendar=t7e;$n.clone=n7e;$n.diff=c7e;$n.endOf=b7e;$n.format=h7e;$n.from=p7e;$n.fromNow=m7e;$n.to=g7e;$n.toNow=v7e;$n.get=fAe;$n.invalidAt=O7e;$n.isAfter=r7e;$n.isBefore=i7e;$n.isBetween=o7e;$n.isSame=a7e;$n.isSameOrAfter=s7e;$n.isSameOrBefore=l7e;$n.isValid=T7e;$n.lang=jme;$n.locale=Fme;$n.localeData=Bme;$n.max=TNe;$n.min=ENe;$n.parsingFlags=k7e;$n.set=hAe;$n.startOf=y7e;$n.subtract=YNe;$n.toArray=w7e;$n.toObject=_7e;$n.toDate=x7e;$n.toISOString=d7e;$n.inspect=f7e;typeof Symbol<"u"&&Symbol.for!=null&&($n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});$n.toJSON=E7e;$n.toString=u7e;$n.unix=C7e;$n.valueOf=S7e;$n.creationData=P7e;$n.eraName=R7e;$n.eraNarrow=A7e;$n.eraAbbr=N7e;$n.eraYear=D7e;$n.year=gme;$n.isLeapYear=dAe;$n.weekYear=U7e;$n.isoWeekYear=W7e;$n.quarter=$n.quarters=X7e;$n.month=Cme;$n.daysInMonth=xAe;$n.week=$n.weeks=MAe;$n.isoWeek=$n.isoWeeks=IAe;$n.weeksInYear=q7e;$n.weeksInWeekYear=G7e;$n.isoWeeksInYear=V7e;$n.isoWeeksInISOWeekYear=K7e;$n.date=Vme;$n.day=$n.days=WAe;$n.weekday=VAe;$n.isoWeekday=KAe;$n.dayOfYear=Q7e;$n.hour=$n.hours=JAe;$n.minute=$n.minutes=Z7e;$n.second=$n.seconds=J7e;$n.millisecond=$n.milliseconds=Kme;$n.utcOffset=NNe;$n.utc=LNe;$n.local=FNe;$n.parseZone=jNe;$n.hasAlignedHourOffset=BNe;$n.isDST=HNe;$n.isLocal=UNe;$n.isUtcOffset=WNe;$n.isUtc=Ame;$n.isUTC=Ame;$n.zoneAbbr=tDe;$n.zoneName=nDe;$n.dates=Au("dates accessor is deprecated. Use date instead.",Vme);$n.months=Au("months accessor is deprecated. Use month instead",Cme);$n.years=Au("years accessor is deprecated. Use year instead",gme);$n.zone=Au("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",DNe);$n.isDSTShifted=Au("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zNe);function rDe(e){return xo(e*1e3)}function iDe(){return xo.apply(null,arguments).parseZone()}function qme(e){return e}var Ii=Vz.prototype;Ii.calendar=URe;Ii.longDateFormat=qRe;Ii.invalidDate=YRe;Ii.ordinal=ZRe;Ii.preparse=qme;Ii.postformat=qme;Ii.relativeTime=eAe;Ii.pastFuture=tAe;Ii.set=HRe;Ii.eras=M7e;Ii.erasParse=I7e;Ii.erasConvertYear=$7e;Ii.erasAbbrRegex=F7e;Ii.erasNameRegex=L7e;Ii.erasNarrowRegex=j7e;Ii.months=yAe;Ii.monthsShort=bAe;Ii.monthsParse=CAe;Ii.monthsRegex=_Ae;Ii.monthsShortRegex=wAe;Ii.week=TAe;Ii.firstDayOfYear=PAe;Ii.firstDayOfWeek=OAe;Ii.weekdays=jAe;Ii.weekdaysMin=HAe;Ii.weekdaysShort=BAe;Ii.weekdaysParse=UAe;Ii.weekdaysRegex=qAe;Ii.weekdaysShortRegex=GAe;Ii.weekdaysMinRegex=YAe;Ii.isPM=QAe;Ii.meridiem=eNe;function f9(e,t,n,r){var i=kp(),o=th().set(r,t);return i[n](o,e)}function Gme(e,t,n){if(fp(e)&&(t=e,e=void 0),e=e||"",t!=null)return f9(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=f9(e,r,n,"month");return i}function cU(e,t,n,r){typeof e=="boolean"?(fp(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,fp(t)&&(n=t,t=void 0),t=t||"");var i=kp(),o=e?i._week.dow:0,a,s=[];if(n!=null)return f9(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=f9(t,(a+o)%7,r,"day");return s}function oDe(e,t){return Gme(e,t,"months")}function aDe(e,t){return Gme(e,t,"monthsShort")}function sDe(e,t,n){return cU(e,t,n,"weekdays")}function lDe(e,t,n){return cU(e,t,n,"weekdaysShort")}function cDe(e,t,n){return cU(e,t,n,"weekdaysMin")}Zm("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}});Wn.lang=Au("moment.lang is deprecated. Use moment.locale instead.",Zm);Wn.langData=Au("moment.langData is deprecated. Use moment.localeData instead.",kp);var bh=Math.abs;function uDe(){var e=this._data;return this._milliseconds=bh(this._milliseconds),this._days=bh(this._days),this._months=bh(this._months),e.milliseconds=bh(e.milliseconds),e.seconds=bh(e.seconds),e.minutes=bh(e.minutes),e.hours=bh(e.hours),e.months=bh(e.months),e.years=bh(e.years),this}function Yme(e,t,n,r){var i=Zd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function dDe(e,t){return Yme(this,e,t,1)}function fDe(e,t){return Yme(this,e,t,-1)}function rZ(e){return e<0?Math.floor(e):Math.ceil(e)}function hDe(){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+=rZ(ZL(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(Xme(t)),n+=l,t-=rZ(ZL(l)),s=du(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Xme(e){return e*4800/146097}function ZL(e){return e*146097/4800}function pDe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Nu(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Xme(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ZL(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 Op(e){return function(){return this.as(e)}}var Qme=Op("ms"),mDe=Op("s"),gDe=Op("m"),vDe=Op("h"),yDe=Op("d"),bDe=Op("w"),SDe=Op("M"),CDe=Op("Q"),xDe=Op("y"),wDe=Qme;function _De(){return Zd(this)}function EDe(e){return e=Nu(e),this.isValid()?this[e+"s"]():NaN}function Yv(e){return function(){return this.isValid()?this._data[e]:NaN}}var TDe=Yv("milliseconds"),kDe=Yv("seconds"),ODe=Yv("minutes"),PDe=Yv("hours"),MDe=Yv("days"),IDe=Yv("months"),$De=Yv("years");function RDe(){return du(this.days()/7)}var Lh=Math.round,Uy={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ADe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function NDe(e,t,n,r){var i=Zd(e).abs(),o=Lh(i.as("s")),a=Lh(i.as("m")),s=Lh(i.as("h")),l=Lh(i.as("d")),c=Lh(i.as("M")),u=Lh(i.as("w")),d=Lh(i.as("y")),h=o<=n.ss&&["s",o]||o0,h[4]=r,ADe.apply(null,h)}function DDe(e){return e===void 0?Lh:typeof e=="function"?(Lh=e,!0):!1}function LDe(e,t){return Uy[e]===void 0?!1:t===void 0?Uy[e]:(Uy[e]=t,e==="s"&&(Uy.ss=t-1),!0)}function FDe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Uy,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Uy,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=NDe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var nR=Math.abs;function Y0(e){return(e>0)-(e<0)||+e}function nO(){if(!this.isValid())return this.localeData().invalidDate();var e=nR(this._milliseconds)/1e3,t=nR(this._days),n=nR(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=Y0(this._months)!==Y0(s)?"-":"",u=Y0(this._days)!==Y0(s)?"-":"",d=Y0(this._milliseconds)!==Y0(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 bi=eO.prototype;bi.isValid=INe;bi.abs=uDe;bi.add=dDe;bi.subtract=fDe;bi.as=pDe;bi.asMilliseconds=Qme;bi.asSeconds=mDe;bi.asMinutes=gDe;bi.asHours=vDe;bi.asDays=yDe;bi.asWeeks=bDe;bi.asMonths=SDe;bi.asQuarters=CDe;bi.asYears=xDe;bi.valueOf=wDe;bi._bubble=hDe;bi.clone=_De;bi.get=EDe;bi.milliseconds=TDe;bi.seconds=kDe;bi.minutes=ODe;bi.hours=PDe;bi.days=MDe;bi.weeks=RDe;bi.months=IDe;bi.years=$De;bi.humanize=FDe;bi.toISOString=nO;bi.toString=nO;bi.toJSON=nO;bi.locale=Fme;bi.localeData=Bme;bi.toIsoString=Au("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nO);bi.lang=jme;wr("X",0,0,"unix");wr("x",0,0,"valueOf");ir("x",X6);ir("X",oAe);Qi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Qi("x",function(e,t,n){n._d=new Date(ui(e))});//! moment.js -Wn.version="2.30.1";jRe(xo);Wn.fn=$n;Wn.min=kNe;Wn.max=ONe;Wn.now=PNe;Wn.utc=th;Wn.unix=rDe;Wn.months=oDe;Wn.isDate=dE;Wn.locale=Zm;Wn.invalid=K6;Wn.duration=Zd;Wn.isMoment=Fd;Wn.weekdays=sDe;Wn.parseZone=iDe;Wn.localeData=kp;Wn.isDuration=k8;Wn.monthsShort=aDe;Wn.weekdaysMin=cDe;Wn.defineLocale=tU;Wn.updateLocale=iNe;Wn.locales=oNe;Wn.weekdaysShort=lDe;Wn.normalizeUnits=Nu;Wn.relativeTimeRounding=DDe;Wn.relativeTimeThreshold=LDe;Wn.calendarFormat=e7e;Wn.prototype=$n;Wn.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 FT;const jDe=new Uint8Array(16);function BDe(){if(!FT&&(FT=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!FT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return FT(jDe)}const ps=[];for(let e=0;e<256;++e)ps.push((e+256).toString(16).slice(1));function HDe(e,t=0){return ps[e[t+0]]+ps[e[t+1]]+ps[e[t+2]]+ps[e[t+3]]+"-"+ps[e[t+4]]+ps[e[t+5]]+"-"+ps[e[t+6]]+ps[e[t+7]]+"-"+ps[e[t+8]]+ps[e[t+9]]+"-"+ps[e[t+10]]+ps[e[t+11]]+ps[e[t+12]]+ps[e[t+13]]+ps[e[t+14]]+ps[e[t+15]]}const zDe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),iZ={randomUUID:zDe};function UDe(e,t,n){if(iZ.randomUUID&&!t&&!e)return iZ.randomUUID();e=e||{};const r=e.random||(e.rng||BDe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,HDe(r)}const WDe="1.0.2";function VDe(){return WDe}function KDe(){const e=localStorage.getItem(f8);(e===null||e==="true")&&new Audio(HOe).play()}function qDe(){return Wn().format("YYYY-MM-DD HH:mm:ss")}function rO(){return UDe().replaceAll(/-/g,"")}function X0(e){return e.endsWith("/")?e.slice(0,-1):e}function oZ(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function GDe(e){if(qOe===e||GOe===e||YOe===e||XOe===e||QOe===e)return!0}function YDe(e){return e===Yw||e===Xw}function XDe(e){return e===Yw||e===Xw}function QDe(e){return e.startsWith(iPe)}function Zme(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const Yl=Hc()(Gd(Yd(Xd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:COe}))),Sd=Hc()(Gd(Yd(Xd((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===AX)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;aa.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===KOe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!YDe(r.type);if(XDe(r.type)&&(n.state=NX),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.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:NX}:i);e({threads:r})},addThreads(n){for(let r=0;ra.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}=Yl.getState();if(n!=null&&n.uid){const{threadService:r}=await Hz(async()=>{const{threadService:i}=await import("./threadService-B3hRGcv1.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:kOe}))),Pp=Hc()(Gd(Yd(Xd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===Gw){const o=t().messageList.findIndex(a=>a.type===Gw&&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===uD&&i.type===uD){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;ol.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=Wn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=Wn(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=Mfe,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=Wn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=Wn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:wOe}))),Ka=Hc()(Gd(Yd(Xd((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:EOe}))),Xv=Hc()(Gd(Yd(Xd((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 Jme={exports:{}};/*! +Wn.version="2.30.1";jRe(xo);Wn.fn=$n;Wn.min=kNe;Wn.max=ONe;Wn.now=PNe;Wn.utc=th;Wn.unix=rDe;Wn.months=oDe;Wn.isDate=dE;Wn.locale=Zm;Wn.invalid=K6;Wn.duration=Zd;Wn.isMoment=Fd;Wn.weekdays=sDe;Wn.parseZone=iDe;Wn.localeData=kp;Wn.isDuration=k8;Wn.monthsShort=aDe;Wn.weekdaysMin=cDe;Wn.defineLocale=tU;Wn.updateLocale=iNe;Wn.locales=oNe;Wn.weekdaysShort=lDe;Wn.normalizeUnits=Nu;Wn.relativeTimeRounding=DDe;Wn.relativeTimeThreshold=LDe;Wn.calendarFormat=e7e;Wn.prototype=$n;Wn.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 FT;const jDe=new Uint8Array(16);function BDe(){if(!FT&&(FT=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!FT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return FT(jDe)}const ps=[];for(let e=0;e<256;++e)ps.push((e+256).toString(16).slice(1));function HDe(e,t=0){return ps[e[t+0]]+ps[e[t+1]]+ps[e[t+2]]+ps[e[t+3]]+"-"+ps[e[t+4]]+ps[e[t+5]]+"-"+ps[e[t+6]]+ps[e[t+7]]+"-"+ps[e[t+8]]+ps[e[t+9]]+"-"+ps[e[t+10]]+ps[e[t+11]]+ps[e[t+12]]+ps[e[t+13]]+ps[e[t+14]]+ps[e[t+15]]}const zDe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),iZ={randomUUID:zDe};function UDe(e,t,n){if(iZ.randomUUID&&!t&&!e)return iZ.randomUUID();e=e||{};const r=e.random||(e.rng||BDe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,HDe(r)}const WDe="1.0.2";function VDe(){return WDe}function KDe(){const e=localStorage.getItem(f8);(e===null||e==="true")&&new Audio(HOe).play()}function qDe(){return Wn().format("YYYY-MM-DD HH:mm:ss")}function rO(){return UDe().replaceAll(/-/g,"")}function X0(e){return e.endsWith("/")?e.slice(0,-1):e}function oZ(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function GDe(e){if(qOe===e||GOe===e||YOe===e||XOe===e||QOe===e)return!0}function YDe(e){return e===Yw||e===Xw}function XDe(e){return e===Yw||e===Xw}function QDe(e){return e.startsWith(iPe)}function Zme(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const Yl=Hc()(Gd(Yd(Xd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:COe}))),Sd=Hc()(Gd(Yd(Xd((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===AX)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;aa.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===KOe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!YDe(r.type);if(XDe(r.type)&&(n.state=NX),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.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:NX}:i);e({threads:r})},addThreads(n){for(let r=0;ra.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}=Yl.getState();if(n!=null&&n.uid){const{threadService:r}=await Hz(async()=>{const{threadService:i}=await import("./threadService-PEBGuFRg.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:kOe}))),Pp=Hc()(Gd(Yd(Xd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===Gw){const o=t().messageList.findIndex(a=>a.type===Gw&&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===uD&&i.type===uD){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;ol.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=Wn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=Wn(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=Mfe,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=Wn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=Wn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:wOe}))),Ka=Hc()(Gd(Yd(Xd((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:EOe}))),Xv=Hc()(Gd(Yd(Xd((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 Jme={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -761,7 +761,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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 zM=Wr.default;Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=$jt;Rd.unitless=Rd.ignore=Rd.getComputedToken=void 0;var Ejt=zM(f),Tjt=Tg,kjt=zM(jM),Yoe=Wf,Ojt=zM(Jf),cEe=zM(FK),Xoe=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{const r=n.getDerivativeToken(e),{override:i}=t,o=Xoe(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,cEe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Xoe(c,["theme"]);let h=d;u&&(h=jK(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=h}),a};Rd.getComputedToken=jK;function $jt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Ejt.default.useContext(Yoe.DesignTokenContext),o=`${kjt.default}-${t||""}`,a=n||Yoe.defaultTheme,[s,l,c]=(0,Tjt.useCacheToken)(a,[Ojt.default,e],{salt:o,override:r,getComputedToken:jK,formatToken:cEe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pjt,ignore:Mjt,preserve:Ijt}});return[a,c,t?l:"",s,i]}var ng={},Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.textEllipsis=Bo.resetIcon=Bo.resetComponent=Bo.operationUnit=Bo.genLinkStyle=Bo.genIconStyle=Bo.genFocusStyle=Bo.genFocusOutline=Bo.genCommonStyle=Bo.clearFix=void 0;var Rjt=Tg;Bo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Ajt=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}};Bo.resetComponent=Ajt;const uEe=()=>({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"}});Bo.resetIcon=uEe;const Njt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Bo.clearFix=Njt;const Djt=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"}}});Bo.genLinkStyle=Djt;const Ljt=(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})}};Bo.genCommonStyle=Ljt;const dEe=(e,t)=>({outline:`${(0,Rjt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Bo.genFocusOutline=dEe;const fEe=(e,t)=>({"&:focus-visible":Object.assign({},dEe(e,t))});Bo.genFocusStyle=fEe;const Fjt=e=>({[`.${e}`]:Object.assign(Object.assign({},uEe()),{[`.${e} .${e}-icon`]:{display:"block"}})});Bo.genIconStyle=Fjt;const jjt=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"},fEe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Bo.operationUnit=jjt;var Bjt=va.default;Object.defineProperty(ng,"__esModule",{value:!0});ng.genSubStyleComponent=ng.genStyleHooks=ng.genComponentStyleHook=void 0;var Qoe=f,Hjt=sEe,QA=xc,ZA=Bo,Zoe=Bjt(Rd);const{genStyleHooks:zjt,genComponentStyleHook:Ujt,genSubStyleComponent:Wjt}=(0,Hjt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Qoe.useContext)(QA.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,Zoe.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Qoe.useContext)(QA.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,ZA.genLinkStyle)(e)},(0,ZA.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:QA.defaultIconPrefixCls)]},getCommonStyle:ZA.genCommonStyle,getCompUnitless:()=>Zoe.unitless});ng.genSubStyleComponent=Wjt;ng.genComponentStyleHook=Ujt;ng.genStyleHooks=zjt;var BK={};Object.defineProperty(BK,"__esModule",{value:!0});BK.default=Kjt;var Vjt=LK;function Kjt(e,t){return Vjt.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 UM={},qjt=Wr.default;Object.defineProperty(UM,"__esModule",{value:!0});UM.default=void 0;var Gjt=Tg,Yjt=Bo,Xjt=qjt(Rd);const Qjt=(e,t)=>{const[n,r]=(0,Xjt.default)();return(0,Gjt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Yjt.genIconStyle)(e)])};UM.default=Qjt;(function(e){var t=Wr.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=Tg,r=sEe,i=LK,o=y4,a=t(Rd),s=ng,l=t(BK),c=t(UM),u=Wf})(RC);var WM={},Zjt=va.default;Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var Jjt=Zjt(f);const eBt=Object.assign({},Jjt),{useId:Joe}=eBt,tBt=()=>"",nBt=typeof Joe>"u"?tBt:Joe;WM.default=nBt;var HK=Wr.default;Object.defineProperty(DK,"__esModule",{value:!0});DK.default=sBt;var rBt=HK(kM),iBt=HK(LM),oBt=Su,eae=RC,aBt=HK(WM);function sBt(e,t,n){var r;(0,oBt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},eae.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:eae.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,aBt.default)();return(0,rBt.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,iBt.default)(c,d,!0)}))}var zK={};const lBt=Y_($Be);var cBt=va.default;Object.defineProperty(zK,"__esModule",{value:!0});zK.default=fBt;var tae=cBt(f),uBt=lBt,dBt=RC;function fBt(e){const{children:t}=e,[,n]=(0,dBt.useToken)(),{motion:r}=n,i=tae.useRef(!1);return i.current=i.current||r===!1,i.current?tae.createElement(uBt.Provider,{motion:r},t):t}var VM={},hBt=va.default;Object.defineProperty(VM,"__esModule",{value:!0});VM.default=void 0;hBt(f);VM.default=()=>null;var hEe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=RC})(hEe);(function(e){"use client";var t=Wr.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=Tg,o=t(MC),a=t(kM),s=OM,l=n(Su),c=t(PM),u=n(J_e),d=t($C),h=t(zv),p=Wf,m=t(Jf),v=xc,y=NM,S=Dv,b=t(DM),C=t(DK),_=t(zK),T=t(VM),x=n(Lv),E=t(hEe),k=function(j,W){var G={};for(var re in j)Object.prototype.hasOwnProperty.call(j,re)&&W.indexOf(re)<0&&(G[re]=j[re]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(j);seW.endsWith("Color"))}const z=j=>{const{prefixCls:W,iconPrefixCls:G,theme:re,holderRender:se}=j;W!==void 0&&(P=W),G!==void 0&&(D=G),"holderRender"in j&&(A=se),re&&(U(re)?(0,y.registerTheme)(H(),re):R=re)},K=()=>({getPrefixCls:(j,W)=>W||(j?`${H()}-${j}`:H()),getIconPrefixCls:F,getRootPrefixCls:()=>P||H(),getTheme:()=>R,holderRender:A});e.globalConfig=K;const Z=j=>{const{children:W,csp:G,autoInsertSpaceInButton:re,alert:se,anchor:de,form:ee,locale:ne,componentSize:ue,direction:ye,space:ge,splitter:pe,virtual:he,dropdownMatchSelectWidth:_e,popupMatchSelectWidth:ce,popupOverflow:xe,legacyLocale:we,parentContext:De,iconPrefixCls:Fe,theme:Ce,componentDisabled:Te,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:q,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:le,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:Ln,popover:Zn,popconfirm:O,floatButtonGroup:B,variant:oe,inputNumber:Ae,treeSelect:Ge}=j,ft=r.useCallback((bn,Cn)=>{const{prefixCls:rr}=j;if(Cn)return Cn;const Ir=rr||De.getPrefixCls("");return bn?`${Ir}-${bn}`:Ir},[De.getPrefixCls,j.prefixCls]),Jt=Fe||De.iconPrefixCls||v.defaultIconPrefixCls,on=G||De.csp;(0,E.default)(Jt,on);const Jn=(0,C.default)(Ce,De.theme,{prefixCls:ft("")}),ni={csp:on,autoInsertSpaceInButton:re,alert:se,anchor:de,locale:ne||we,direction:ye,space:ge,splitter:pe,virtual:he,popupMatchSelectWidth:ce??_e,popupOverflow:xe,getPrefixCls:ft,iconPrefixCls:Jt,theme:Jn,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:q,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:le,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:Ln,popover:Zn,popconfirm:O,floatButtonGroup:B,variant:oe,inputNumber:Ae,treeSelect:Ge},Hr=Object.assign({},De);Object.keys(ni).forEach(bn=>{ni[bn]!==void 0&&(Hr[bn]=ni[bn])}),M.forEach(bn=>{const Cn=j[bn];Cn&&(Hr[bn]=Cn)}),typeof re<"u"&&(Hr.button=Object.assign({autoInsertSpace:re},Hr.button));const Gr=(0,a.default)(()=>Hr,Hr,(bn,Cn)=>{const rr=Object.keys(bn),Ir=Object.keys(Cn);return rr.length!==Ir.length||rr.some(li=>bn[li]!==Cn[li])}),Rr=r.useMemo(()=>({prefixCls:Jt,csp:on}),[Jt,on]);let _n=r.createElement(r.Fragment,null,r.createElement(T.default,{dropdownMatchSelectWidth:_e}),W);const Mn=r.useMemo(()=>{var bn,Cn,rr,Ir;return(0,s.merge)(((bn=h.default.Form)===null||bn===void 0?void 0:bn.defaultValidateMessages)||{},((rr=(Cn=Gr.locale)===null||Cn===void 0?void 0:Cn.Form)===null||rr===void 0?void 0:rr.defaultValidateMessages)||{},((Ir=Gr.form)===null||Ir===void 0?void 0:Ir.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[Gr,ee==null?void 0:ee.validateMessages]);Object.keys(Mn).length>0&&(_n=r.createElement(c.default.Provider,{value:Mn},_n)),ne&&(_n=r.createElement(u.default,{locale:ne,_ANT_MARK__:u.ANT_MARK},_n)),(Jt||on)&&(_n=r.createElement(o.default.Provider,{value:Rr},_n)),ue&&(_n=r.createElement(x.SizeContextProvider,{size:ue},_n)),_n=r.createElement(_.default,null,_n);const Ar=r.useMemo(()=>{const bn=Jn||{},{algorithm:Cn,token:rr,components:Ir,cssVar:li}=bn,zi=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(wn=>{let[Un,Yn]=wn;const or=Object.assign({},Yn);"algorithm"in or&&(or.algorithm===!0?or.theme=gr:(Array.isArray(or.algorithm)||typeof or.algorithm=="function")&&(or.theme=(0,i.createTheme)(or.algorithm)),delete or.algorithm),Di[Un]=or});const hr=Object.assign(Object.assign({},m.default),rr);return Object.assign(Object.assign({},zi),{theme:gr,token:hr,components:Di,override:Object.assign({override:hr},Di),cssVar:li})},[Jn]);return Ce&&(_n=r.createElement(p.DesignTokenContext.Provider,{value:Ar},_n)),Gr.warning&&(_n=r.createElement(l.WarningContext.Provider,{value:Gr.warning},_n)),Te!==void 0&&(_n=r.createElement(S.DisabledContextProvider,{disabled:Te},_n)),r.createElement(v.ConfigContext.Provider,{value:Gr},_n)},N=j=>{const W=r.useContext(v.ConfigContext),G=r.useContext(d.default);return r.createElement(Z,Object.assign({parentContext:W,legacyLocale:G},j))};N.ConfigContext=v.ConfigContext,N.SizeContext=x.default,N.config=z,N.useConfig=b.default,Object.defineProperty(N,"SizeContext",{get:()=>x.default}),e.default=N})(kK);var S4={},pBt=va.default;Object.defineProperty(S4,"__esModule",{value:!0});S4.LayoutContext=void 0;var mBt=pBt(f);S4.LayoutContext=mBt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var UK={},WK={},VK={},gBt=Wr.default;Object.defineProperty(VK,"__esModule",{value:!0});VK.default=CBt;var vBt=gBt(Uv),yBt=Symbol.for("react.element"),bBt=Symbol.for("react.transitional.element"),SBt=Symbol.for("react.fragment");function CBt(e){return e&&(0,vBt.default)(e)==="object"&&(e.$$typeof===yBt||e.$$typeof===bBt)&&e.type===SBt}var pEe=Wr.default;Object.defineProperty(WK,"__esModule",{value:!0});WK.default=OB;var xBt=pEe(VK),wBt=pEe(f);function OB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return wBt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(OB(r)):(0,xBt.default)(r)&&r.props?n=n.concat(OB(r.props.children,t)):n.push(r))}),n}var vS={},PB={exports:{}},KM={},KK={};Object.defineProperty(KK,"__esModule",{value:!0});var _Bt={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"};KK.default=_Bt;var EBt=va.default,qK=Wr.default;Object.defineProperty(KM,"__esModule",{value:!0});KM.default=void 0;var TBt=qK(iM),mEe=EBt(f),kBt=qK(KK),OBt=qK(PC),PBt=function(t,n){return mEe.createElement(OBt.default,(0,TBt.default)({},t,{ref:n,icon:kBt.default}))},MBt=mEe.forwardRef(PBt);KM.default=MBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(KM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(PB,PB.exports);var IBt=PB.exports,MB={exports:{}},qM={},GK={};Object.defineProperty(GK,"__esModule",{value:!0});var $Bt={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"};GK.default=$Bt;var RBt=va.default,YK=Wr.default;Object.defineProperty(qM,"__esModule",{value:!0});qM.default=void 0;var ABt=YK(iM),gEe=RBt(f),NBt=YK(GK),DBt=YK(PC),LBt=function(t,n){return gEe.createElement(DBt.default,(0,ABt.default)({},t,{ref:n,icon:NBt.default}))},FBt=gEe.forwardRef(LBt);qM.default=FBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(qM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(MB,MB.exports);var jBt=MB.exports,IB={exports:{}},GM={},XK={};Object.defineProperty(XK,"__esModule",{value:!0});var BBt={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"};XK.default=BBt;var HBt=va.default,QK=Wr.default;Object.defineProperty(GM,"__esModule",{value:!0});GM.default=void 0;var zBt=QK(iM),vEe=HBt(f),UBt=QK(XK),WBt=QK(PC),VBt=function(t,n){return vEe.createElement(WBt.default,(0,zBt.default)({},t,{ref:n,icon:UBt.default}))},KBt=vEe.forwardRef(VBt);GM.default=KBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(GM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(IB,IB.exports);var qBt=IB.exports,YM={},ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.prepareComponentToken=ip.default=ip.DEPRECATED_TOKENS=void 0;var GBt=Tg,YBt=RC;const XBt=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,GBt.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}}},yEe=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}};ip.prepareComponentToken=yEe;const QBt=ip.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];ip.default=(0,YBt.genStyleHooks)("Layout",e=>[XBt(e)],yEe,{deprecatedTokens:QBt});Object.defineProperty(YM,"__esModule",{value:!0});YM.default=void 0;var Zx=Tg,nae=ip,ZBt=RC;const JBt=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,Zx.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,Zx.unit)(h)} ${(0,Zx.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,Zx.unit)(h)} 0 0 ${(0,Zx.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}}}}};YM.default=(0,ZBt.genStyleHooks)(["Layout","Sider"],e=>[JBt(e)],nae.prepareComponentToken,{deprecatedTokens:nae.DEPRECATED_TOKENS});var AC=Wr.default,eHt=va.default;Object.defineProperty(vS,"__esModule",{value:!0});vS.default=vS.SiderContext=void 0;var $h=eHt(f),hc=$h,tHt=AC(IBt),rae=AC(jBt),iae=AC(qBt),oae=AC(iO),nHt=AC(TM),rHt=kK,iHt=S4,oHt=AC(YM),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!Number.isNaN(Number.parseFloat(e))&&isFinite(e),lHt=vS.SiderContext=hc.createContext({}),cHt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),uHt=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=aHt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,$h.useContext)(iHt.LayoutContext),[C,_]=(0,$h.useState)("collapsed"in e?e.collapsed:a),[T,x]=(0,$h.useState)(!1);(0,$h.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,$h.useContext)(rHt.ConfigContext),P=k("layout-sider",n),[D,R,A]=(0,oHt.default)(P),H=(0,$h.useRef)(null);H.current=ne=>{x(ne.matches),y==null||y(ne.matches),C!==ne.matches&&E(ne.matches,"responsive")},(0,$h.useEffect)(()=>{function ne(ye){return H.current(ye)}let ue;if(typeof window<"u"){const{matchMedia:ye}=window;if(ye&&m&&m in aae){ue=ye(`screen and (max-width: ${aae[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,$h.useEffect)(()=>{const ne=cHt("ant-sider-");return b.addSider(ne),()=>b.removeSider(ne)},[]);const F=()=>{E(!C,"clickTrigger")},U=(0,nHt.default)(S,["collapsed"]),z=C?h:d,K=sHt(z)?`${z}px`:String(z),Z=parseFloat(String(h||0))===0?hc.createElement("span",{onClick:F,className:(0,oae.default)(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||hc.createElement(tHt.default,null)):null,N=M==="rtl"==!u,G={expanded:N?hc.createElement(iae.default,null):hc.createElement(rae.default,null),collapsed:N?hc.createElement(rae.default,null):hc.createElement(iae.default,null)}[C?"collapsed":"expanded"],re=i!==null?Z||hc.createElement("div",{className:`${P}-trigger`,onClick:F,style:{width:K}},i||G):null,se=Object.assign(Object.assign({},l),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),de=(0,oae.default)(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:c&&i!==null&&!Z,[`${P}-below`]:!!T,[`${P}-zero-width`]:parseFloat(K)===0},r,R,A),ee=hc.useMemo(()=>({siderCollapsed:C}),[C]);return D(hc.createElement(lHt.Provider,{value:ee},hc.createElement("aside",Object.assign({className:de},U,{style:se,ref:t}),hc.createElement("div",{className:`${P}-children`},o),c||T&&Z?re:null)))});vS.default=uHt;var bEe=Wr.default;Object.defineProperty(UK,"__esModule",{value:!0});UK.default=hHt;var dHt=bEe(WK),fHt=bEe(vS);function hHt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,dHt.default)(t).some(i=>i.type===fHt.default)}var XM,QM,pHt=va.default,C4=Wr.default;Object.defineProperty(Zh,"__esModule",{value:!0});Zh.default=Zh.Header=QM=Zh.Footer=XM=Zh.Content=void 0;var mHt=C4(q_e),lu=pHt(f),SEe=C4(iO),gHt=C4(TM),$B=kK,vHt=S4,yHt=C4(UK),CEe=C4(ip),xEe=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);ilu.forwardRef((a,s)=>lu.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const ZK=lu.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=xEe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=lu.useContext($B.ConfigContext),l=s("layout",n),[c,u,d]=(0,CEe.default)(l),h=r?`${l}-${r}`:l;return c(lu.createElement(o,Object.assign({className:(0,SEe.default)(n||h,i,u,d),ref:t},a)))}),bHt=lu.forwardRef((e,t)=>{const{direction:n}=lu.useContext($B.ConfigContext),[r,i]=lu.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,h=xEe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,gHt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:v}=lu.useContext($B.ConfigContext),y=m("layout",o),S=(0,yHt.default)(r,l,c),[b,C,_]=(0,CEe.default)(y),T=(0,SEe.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,mHt.default)(k),[E]))},removeSider:E=>{i(k=>k.filter(M=>M!==E))}}}),[]);return b(lu.createElement(vHt.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)))}),SHt=ZM({tagName:"div",displayName:"Layout"})(bHt);Zh.Header=ZM({suffixCls:"header",tagName:"header",displayName:"Header"})(ZK);QM=Zh.Footer=ZM({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ZK);XM=Zh.Content=ZM({suffixCls:"content",tagName:"main",displayName:"Content"})(ZK);Zh.default=SHt;function x4(){const{isDarkMode:e}=Ufe(),{token:t}=Ds.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:CHt,Sider:xHt,Content:wHt}=wo,wEe=()=>{const e=no();f.useContext(Ks);const t=ss(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=x4(),[a,s]=f.useState([]);f.useEffect(()=>{const c=[{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"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return V.jsxs(wo,{children:[V.jsx(xHt,{style:r,width:i,children:V.jsx(tf,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),V.jsxs(wo,{children:[V.jsx(CHt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),V.jsx(wHt,{style:o,children:V.jsx(LP,{})})]})]})},_Ee=()=>{const e=ss(),{userInfo:t}=YCe(),{translateString:n}=Kc(),{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]),V.jsx(V.Fragment,{children:V.jsx(Pu,{title:i,content:a,placement:"rightBottom",children:V.jsx(V.Fragment,{children:V.jsx(Rp,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function JK(){const e=nE(b=>b.accessToken),t=Ka(b=>b.userInfo),n=Xv(b=>b.agentInfo),r=EM(),[i,o]=f.useState(!1),{showNotification:a}=TK(),{translateString:s}=Kc();Pp(b=>b.addMessage),Sd(b=>b.updateThreadContent),f.useContext(Ks),f.useRef(!1);const l=Sd(b=>b.threads),[c,u]=f.useState(l),d=f.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$pt()&&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"),Mpt({uid:t.uid,username:t.username,accessToken:e})},y=()=>{console.log("useMqtt useEffect doDisconnect"),gA()},S=b=>{var C,_;(b==null?void 0:b.type)!==Yw&&((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)&&(KDe(),console.log("playAudio"))};return f.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?v():gA()},[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()=>{gA(),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===Gw||C.type===Mfe||C.type===uD||C.type===Yw||C.type===Xw)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(OT),s(OT)),S(C)):(console.log("useMqtt matchingThread no"),a(s(OT),s(OT)),S(C))};return Dr.on(Kw,b),()=>{Dr.off(Kw)}},[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(eD,b),Dr.on(nD,C),Dr.on(rD,C),Dr.on(tD,C),Dr.on(iD,C),Dr.on(oD,C),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(eD),Dr.off(nD),Dr.off(rD),Dr.off(tD),Dr.off(iD),Dr.off(oD)}},[]),{doConnect:v,doDisconnect:y,isMqttConnected:i}}const EEe=Hc()(Gd(Yd(Xd((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===Pfe){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===IOe){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:_Oe})));function TEe(){console.log("useElectronApi");const e=ss(),t=Ka(r=>r.userInfo),n=EEe(r=>r.addDevice);f.useEffect(()=>(console.log("useElectronApi useEffect"),os?(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:Pfe,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===hOe){xn.success("截图成功");const i=r.data;Dr.emit(bOe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),os?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const _Ht=Hc()(Gd(Yd(Xd((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:xOe}))),kEe=Hc()(Gd(Yd(Xd((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}))),EHt=()=>{const e=Yl(u=>u.deleteOrg),t=Sd(u=>u.resetThreads),n=Pp(u=>u.resetMessageList),r=_Ht(u=>u.resetMembers),i=nE(u=>u.removeAccessToken),o=Ka(u=>u.resetUserInfo),a=EEe(u=>u.resetContactInfo),s=Xv(u=>u.resetAgentInfo),l=kEe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function OEe(){console.log("useEventBus");const{clearStorage:e}=EHt(),{doDisconnect:t}=JK(),{setPingLoading:n}=f.useContext(Ks),r=f.useCallback(async()=>{try{const i=await GLt();console.log("logout result:",i.data),n(!1),t(),e(),zpt()}catch(i){console.log("logout error:",i)}},[]);return f.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),Dr.off(Xm,i),r()};return Dr.on(Xm,i),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(Xm)}},[]),{doLogout:r}}const THt=()=>{const e=no(),{doLogout:t}=OEe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=f.useContext(Ks),{agentInfo:l}=Xv(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:V.jsx(qW,{}),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===yv){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:zX,icon:l.status===zX?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:UX,icon:l.status===UX?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:R$,icon:l.status===R$?V.jsx(np,{}):V.jsx(V.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===ab||p.key===yv||p.key===e9?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===R$&&ea.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return V.jsx(V.Fragment,{children:n?V.jsx(V.Fragment,{children:V.jsx(tf,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):V.jsx(V.Fragment,{})})};async function kHt(e){return ri("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:ti}})}const PEe=()=>{const[e,t]=f.useState([]),n=new WCe;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(Kw,a),()=>{console.log("useIndexedDB useEffect return"),Dr.off(Kw,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function MEe(){return ri("/api/v1/user/profile",{method:"GET",params:{client:ti}})}async function IEe(e){return ri("/api/v1/user/update",{method:"POST",data:{...e,client:ti}})}async function OHt(e){return ri("/api/v1/user/change/password",{method:"POST",data:{...e,client:ti}})}async function $Ee(e){return ri("/api/v1/user/change/email",{method:"POST",data:{...e,client:ti}})}async function REe(e){return ri("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:ti}})}const PHt=()=>{const e=no(),{locale:t,changeLocale:n}=f.useContext(Ks),r=[{key:"lang",icon:V.jsx(zst,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return V.jsx(tf,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Fl=function(){return Fl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?ts(NC,--Iu):0,bS--,Ea===10&&(bS=1,eI--),Ea}function Ad(){return Ea=Iu2||AB(Ea)>3?"":" "}function HHt(e,t){for(;--t&&Ad()&&!(Ea<48||Ea>102||Ea>57&&Ea<65||Ea>70&&Ea<97););return nI(e,i3()+(t<6&&av()==32&&Ad()==32))}function NB(e){for(;Ad();)switch(Ea){case e:return Iu;case 34:case 39:e!==34&&e!==39&&NB(Ea);break;case 40:e===41&&NB(e);break;case 92:Ad();break}return Iu}function zHt(e,t){for(;Ad()&&e+Ea!==57;)if(e+Ea===84&&av()===47)break;return"/*"+nI(t,Iu-1)+"*"+tq(e===47?e:Ad())}function UHt(e){for(;!AB(av());)Ad();return nI(e,Iu)}function WHt(e){return jHt(o3("",null,null,null,[""],e=FHt(e),0,[0],e))}function o3(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=Ad()){case 40:if(m!=108&&ts(E,d-1)==58){r3(E+=Jr(JA(b),"&","&\f"),"&\f",DEe(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=JA(b);break;case 9:case 10:case 13:case 32:E+=BHt(m);break;case 92:E+=HHt(i3()-1,7);continue;case 47:switch(av()){case 42:case 47:$2(VHt(zHt(Ad(),i3()),t,n,l),l);break;default:E+="/"}break;case 123*v:s[c++]=Of(E)*S;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:S==-1&&(E=Jr(E,/\f/g,"")),p>0&&Of(E)-d&&$2(p>32?cae(E+";",r,n,d-1,l):cae(Jr(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if($2(x=lae(E,t,n,c,u,i,s,C,_=[],T=[],d,o),o),b===123)if(u===0)o3(E,t,x,x,_,o,d,s,T);else switch(h===99&&ts(E,3)===110?100:h){case 100:case 108:case 109:case 115:o3(e,x,x,r&&$2(lae(e,x,x,0,0,i,s,C,i,_=[],d,T),T),i,T,d,s,r?_:T);break;default:o3(E,x,x,x,[""],T,0,s,T)}}c=u=p=0,v=S=1,C=E="",d=a;break;case 58:d=1+Of(E),p=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&LHt()==125)continue}switch(E+=tq(b),b*v){case 38:S=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Of(E)-1)*S,S=1;break;case 64:av()===45&&(E+=JA(Ad())),h=av(),u=d=Of(C=E+=UHt(i3())),b++;break;case 45:m===45&&Of(E)==2&&(v=0)}}return o}function lae(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=i===0?o:[""],m=FEe(p),v=0,y=0,S=0;v0?p[b]+" "+C:Jr(C,/&\f/g,p[b])))&&(l[S++]=_);return tI(e,t,n,i===0?JM:s,l,c,u,d)}function VHt(e,t,n,r){return tI(e,t,n,AEe,tq(DHt()),yS(e,2,-2),0,r)}function cae(e,t,n,r,i){return tI(e,t,n,eq,yS(e,0,r),yS(e,r+1,-1),r,i)}function BEe(e,t,n){switch(AHt(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 uw+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+uw+e+ho+e+e;case 5936:switch(ts(e,t+11)){case 114:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ai+e+ho+e+e;case 6165:return Ai+e+ho+"flex-"+e+e;case 5187:return Ai+e+Jr(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+ho+"flex-$1$2")+e;case 5443:return Ai+e+ho+"flex-item-"+Jr(e,/flex-|-self/g,"")+(jh(e,/flex-|baseline/)?"":ho+"grid-row-"+Jr(e,/flex-|-self/g,""))+e;case 4675:return Ai+e+ho+"flex-line-pack"+Jr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ai+e+ho+Jr(e,"shrink","negative")+e;case 5292:return Ai+e+ho+Jr(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+Jr(e,"-grow","")+Ai+e+ho+Jr(e,"grow","positive")+e;case 4554:return Ai+Jr(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return Jr(Jr(Jr(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return Jr(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return Jr(Jr(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4200:if(!jh(e,/flex-|baseline/))return ho+"grid-column-align"+yS(e,t)+e;break;case 2592:case 3360:return ho+Jr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,jh(r.props,/grid-\w+-end/)})?~r3(e+(n=n[t].value),"span",0)?e:ho+Jr(e,"-start","")+e+ho+"grid-row-span:"+(~r3(n,"span",0)?jh(n,/\d+/):+jh(n,/\d+/)-+jh(e,/\d+/))+";":ho+Jr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return jh(r.props,/grid-\w+-start/)})?e:ho+Jr(Jr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Jr(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(Of(e)-1-t>6)switch(ts(e,t+1)){case 109:if(ts(e,t+4)!==45)break;case 102:return Jr(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+uw+(ts(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r3(e,"stretch",0)?BEe(Jr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Jr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return ho+i+":"+o+c+(a?ho+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(ts(e,t+6)===121)return Jr(e,":",":"+Ai)+e;break;case 6444:switch(ts(e,ts(e,14)===45?18:11)){case 120:return Jr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ai+(ts(e,14)===45?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+ho+"$2box$3")+e;case 100:return Jr(e,":",":"+ho)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Jr(e,"scroll-","scroll-snap-")+e}return e}function $k(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case eq:e.return=BEe(e.value,e.length,n);return;case NEe:return $k([gm(e,{value:Jr(e.value,"@","@"+Ai)})],r);case JM:if(e.length)return NHt(n=e.props,function(i){switch(jh(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":py(gm(e,{props:[Jr(i,/:(read-\w+)/,":"+uw+"$1")]})),py(gm(e,{props:[i]})),RB(e,{props:sae(n,r)});break;case"::placeholder":py(gm(e,{props:[Jr(i,/:(plac\w+)/,":"+Ai+"input-$1")]})),py(gm(e,{props:[Jr(i,/:(plac\w+)/,":"+uw+"$1")]})),py(gm(e,{props:[Jr(i,/:(plac\w+)/,ho+"input-$1")]})),py(gm(e,{props:[i]})),RB(e,{props:sae(n,r)});break}return""})}}var XHt={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.46.8",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:"d7e51ff1d4584488bf1f41d0e936d01a",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",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/.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/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/Library/pnpm:/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:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/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.azPGSP2Los/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--1741183368815-0.5194056271115852:/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/.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/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/Library/pnpm:/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:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/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",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",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.todesktop.230313mzl4w4u92",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",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",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",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:/opt/homebrew/share/info:",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__ant_design_compatible:"^5.1.4",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",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"},SS=typeof process<"u"&&mc!==void 0&&(mc.REACT_APP_SC_ATTR||mc.SC_ATTR)||"data-styled",HEe="active",zEe="data-styled-version",rI="6.1.13",nq=`/*!sc*/ + `,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 zM=Wr.default;Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=$jt;Rd.unitless=Rd.ignore=Rd.getComputedToken=void 0;var Ejt=zM(f),Tjt=Tg,kjt=zM(jM),Yoe=Wf,Ojt=zM(Jf),cEe=zM(FK),Xoe=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{const r=n.getDerivativeToken(e),{override:i}=t,o=Xoe(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,cEe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Xoe(c,["theme"]);let h=d;u&&(h=jK(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=h}),a};Rd.getComputedToken=jK;function $jt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Ejt.default.useContext(Yoe.DesignTokenContext),o=`${kjt.default}-${t||""}`,a=n||Yoe.defaultTheme,[s,l,c]=(0,Tjt.useCacheToken)(a,[Ojt.default,e],{salt:o,override:r,getComputedToken:jK,formatToken:cEe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pjt,ignore:Mjt,preserve:Ijt}});return[a,c,t?l:"",s,i]}var ng={},Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.textEllipsis=Bo.resetIcon=Bo.resetComponent=Bo.operationUnit=Bo.genLinkStyle=Bo.genIconStyle=Bo.genFocusStyle=Bo.genFocusOutline=Bo.genCommonStyle=Bo.clearFix=void 0;var Rjt=Tg;Bo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Ajt=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}};Bo.resetComponent=Ajt;const uEe=()=>({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"}});Bo.resetIcon=uEe;const Njt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Bo.clearFix=Njt;const Djt=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"}}});Bo.genLinkStyle=Djt;const Ljt=(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})}};Bo.genCommonStyle=Ljt;const dEe=(e,t)=>({outline:`${(0,Rjt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Bo.genFocusOutline=dEe;const fEe=(e,t)=>({"&:focus-visible":Object.assign({},dEe(e,t))});Bo.genFocusStyle=fEe;const Fjt=e=>({[`.${e}`]:Object.assign(Object.assign({},uEe()),{[`.${e} .${e}-icon`]:{display:"block"}})});Bo.genIconStyle=Fjt;const jjt=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"},fEe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Bo.operationUnit=jjt;var Bjt=va.default;Object.defineProperty(ng,"__esModule",{value:!0});ng.genSubStyleComponent=ng.genStyleHooks=ng.genComponentStyleHook=void 0;var Qoe=f,Hjt=sEe,QA=xc,ZA=Bo,Zoe=Bjt(Rd);const{genStyleHooks:zjt,genComponentStyleHook:Ujt,genSubStyleComponent:Wjt}=(0,Hjt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Qoe.useContext)(QA.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,Zoe.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Qoe.useContext)(QA.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,ZA.genLinkStyle)(e)},(0,ZA.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:QA.defaultIconPrefixCls)]},getCommonStyle:ZA.genCommonStyle,getCompUnitless:()=>Zoe.unitless});ng.genSubStyleComponent=Wjt;ng.genComponentStyleHook=Ujt;ng.genStyleHooks=zjt;var BK={};Object.defineProperty(BK,"__esModule",{value:!0});BK.default=Kjt;var Vjt=LK;function Kjt(e,t){return Vjt.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 UM={},qjt=Wr.default;Object.defineProperty(UM,"__esModule",{value:!0});UM.default=void 0;var Gjt=Tg,Yjt=Bo,Xjt=qjt(Rd);const Qjt=(e,t)=>{const[n,r]=(0,Xjt.default)();return(0,Gjt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Yjt.genIconStyle)(e)])};UM.default=Qjt;(function(e){var t=Wr.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=Tg,r=sEe,i=LK,o=y4,a=t(Rd),s=ng,l=t(BK),c=t(UM),u=Wf})(RC);var WM={},Zjt=va.default;Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var Jjt=Zjt(f);const eBt=Object.assign({},Jjt),{useId:Joe}=eBt,tBt=()=>"",nBt=typeof Joe>"u"?tBt:Joe;WM.default=nBt;var HK=Wr.default;Object.defineProperty(DK,"__esModule",{value:!0});DK.default=sBt;var rBt=HK(kM),iBt=HK(LM),oBt=Su,eae=RC,aBt=HK(WM);function sBt(e,t,n){var r;(0,oBt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},eae.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:eae.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,aBt.default)();return(0,rBt.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,iBt.default)(c,d,!0)}))}var zK={};const lBt=Y_($Be);var cBt=va.default;Object.defineProperty(zK,"__esModule",{value:!0});zK.default=fBt;var tae=cBt(f),uBt=lBt,dBt=RC;function fBt(e){const{children:t}=e,[,n]=(0,dBt.useToken)(),{motion:r}=n,i=tae.useRef(!1);return i.current=i.current||r===!1,i.current?tae.createElement(uBt.Provider,{motion:r},t):t}var VM={},hBt=va.default;Object.defineProperty(VM,"__esModule",{value:!0});VM.default=void 0;hBt(f);VM.default=()=>null;var hEe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=RC})(hEe);(function(e){"use client";var t=Wr.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=Tg,o=t(MC),a=t(kM),s=OM,l=n(Su),c=t(PM),u=n(J_e),d=t($C),h=t(zv),p=Wf,m=t(Jf),v=xc,y=NM,S=Dv,b=t(DM),C=t(DK),_=t(zK),T=t(VM),x=n(Lv),E=t(hEe),k=function(j,W){var G={};for(var re in j)Object.prototype.hasOwnProperty.call(j,re)&&W.indexOf(re)<0&&(G[re]=j[re]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(j);seW.endsWith("Color"))}const z=j=>{const{prefixCls:W,iconPrefixCls:G,theme:re,holderRender:se}=j;W!==void 0&&(P=W),G!==void 0&&(D=G),"holderRender"in j&&(A=se),re&&(U(re)?(0,y.registerTheme)(H(),re):R=re)},K=()=>({getPrefixCls:(j,W)=>W||(j?`${H()}-${j}`:H()),getIconPrefixCls:F,getRootPrefixCls:()=>P||H(),getTheme:()=>R,holderRender:A});e.globalConfig=K;const Z=j=>{const{children:W,csp:G,autoInsertSpaceInButton:re,alert:se,anchor:de,form:ee,locale:ne,componentSize:ue,direction:ye,space:ge,splitter:pe,virtual:he,dropdownMatchSelectWidth:_e,popupMatchSelectWidth:ce,popupOverflow:xe,legacyLocale:we,parentContext:De,iconPrefixCls:Fe,theme:Ce,componentDisabled:Te,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:q,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:le,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:Ln,popover:Zn,popconfirm:O,floatButtonGroup:B,variant:oe,inputNumber:Ae,treeSelect:Ge}=j,ft=r.useCallback((bn,Cn)=>{const{prefixCls:rr}=j;if(Cn)return Cn;const Ir=rr||De.getPrefixCls("");return bn?`${Ir}-${bn}`:Ir},[De.getPrefixCls,j.prefixCls]),Jt=Fe||De.iconPrefixCls||v.defaultIconPrefixCls,on=G||De.csp;(0,E.default)(Jt,on);const Jn=(0,C.default)(Ce,De.theme,{prefixCls:ft("")}),ni={csp:on,autoInsertSpaceInButton:re,alert:se,anchor:de,locale:ne||we,direction:ye,space:ge,splitter:pe,virtual:he,popupMatchSelectWidth:ce??_e,popupOverflow:xe,getPrefixCls:ft,iconPrefixCls:Jt,theme:Jn,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:q,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:le,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:Ln,popover:Zn,popconfirm:O,floatButtonGroup:B,variant:oe,inputNumber:Ae,treeSelect:Ge},Hr=Object.assign({},De);Object.keys(ni).forEach(bn=>{ni[bn]!==void 0&&(Hr[bn]=ni[bn])}),M.forEach(bn=>{const Cn=j[bn];Cn&&(Hr[bn]=Cn)}),typeof re<"u"&&(Hr.button=Object.assign({autoInsertSpace:re},Hr.button));const Gr=(0,a.default)(()=>Hr,Hr,(bn,Cn)=>{const rr=Object.keys(bn),Ir=Object.keys(Cn);return rr.length!==Ir.length||rr.some(li=>bn[li]!==Cn[li])}),Rr=r.useMemo(()=>({prefixCls:Jt,csp:on}),[Jt,on]);let _n=r.createElement(r.Fragment,null,r.createElement(T.default,{dropdownMatchSelectWidth:_e}),W);const Mn=r.useMemo(()=>{var bn,Cn,rr,Ir;return(0,s.merge)(((bn=h.default.Form)===null||bn===void 0?void 0:bn.defaultValidateMessages)||{},((rr=(Cn=Gr.locale)===null||Cn===void 0?void 0:Cn.Form)===null||rr===void 0?void 0:rr.defaultValidateMessages)||{},((Ir=Gr.form)===null||Ir===void 0?void 0:Ir.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[Gr,ee==null?void 0:ee.validateMessages]);Object.keys(Mn).length>0&&(_n=r.createElement(c.default.Provider,{value:Mn},_n)),ne&&(_n=r.createElement(u.default,{locale:ne,_ANT_MARK__:u.ANT_MARK},_n)),(Jt||on)&&(_n=r.createElement(o.default.Provider,{value:Rr},_n)),ue&&(_n=r.createElement(x.SizeContextProvider,{size:ue},_n)),_n=r.createElement(_.default,null,_n);const Ar=r.useMemo(()=>{const bn=Jn||{},{algorithm:Cn,token:rr,components:Ir,cssVar:li}=bn,zi=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(wn=>{let[Un,Yn]=wn;const or=Object.assign({},Yn);"algorithm"in or&&(or.algorithm===!0?or.theme=gr:(Array.isArray(or.algorithm)||typeof or.algorithm=="function")&&(or.theme=(0,i.createTheme)(or.algorithm)),delete or.algorithm),Di[Un]=or});const hr=Object.assign(Object.assign({},m.default),rr);return Object.assign(Object.assign({},zi),{theme:gr,token:hr,components:Di,override:Object.assign({override:hr},Di),cssVar:li})},[Jn]);return Ce&&(_n=r.createElement(p.DesignTokenContext.Provider,{value:Ar},_n)),Gr.warning&&(_n=r.createElement(l.WarningContext.Provider,{value:Gr.warning},_n)),Te!==void 0&&(_n=r.createElement(S.DisabledContextProvider,{disabled:Te},_n)),r.createElement(v.ConfigContext.Provider,{value:Gr},_n)},N=j=>{const W=r.useContext(v.ConfigContext),G=r.useContext(d.default);return r.createElement(Z,Object.assign({parentContext:W,legacyLocale:G},j))};N.ConfigContext=v.ConfigContext,N.SizeContext=x.default,N.config=z,N.useConfig=b.default,Object.defineProperty(N,"SizeContext",{get:()=>x.default}),e.default=N})(kK);var S4={},pBt=va.default;Object.defineProperty(S4,"__esModule",{value:!0});S4.LayoutContext=void 0;var mBt=pBt(f);S4.LayoutContext=mBt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var UK={},WK={},VK={},gBt=Wr.default;Object.defineProperty(VK,"__esModule",{value:!0});VK.default=CBt;var vBt=gBt(Uv),yBt=Symbol.for("react.element"),bBt=Symbol.for("react.transitional.element"),SBt=Symbol.for("react.fragment");function CBt(e){return e&&(0,vBt.default)(e)==="object"&&(e.$$typeof===yBt||e.$$typeof===bBt)&&e.type===SBt}var pEe=Wr.default;Object.defineProperty(WK,"__esModule",{value:!0});WK.default=OB;var xBt=pEe(VK),wBt=pEe(f);function OB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return wBt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(OB(r)):(0,xBt.default)(r)&&r.props?n=n.concat(OB(r.props.children,t)):n.push(r))}),n}var vS={},PB={exports:{}},KM={},KK={};Object.defineProperty(KK,"__esModule",{value:!0});var _Bt={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"};KK.default=_Bt;var EBt=va.default,qK=Wr.default;Object.defineProperty(KM,"__esModule",{value:!0});KM.default=void 0;var TBt=qK(iM),mEe=EBt(f),kBt=qK(KK),OBt=qK(PC),PBt=function(t,n){return mEe.createElement(OBt.default,(0,TBt.default)({},t,{ref:n,icon:kBt.default}))},MBt=mEe.forwardRef(PBt);KM.default=MBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(KM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(PB,PB.exports);var IBt=PB.exports,MB={exports:{}},qM={},GK={};Object.defineProperty(GK,"__esModule",{value:!0});var $Bt={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"};GK.default=$Bt;var RBt=va.default,YK=Wr.default;Object.defineProperty(qM,"__esModule",{value:!0});qM.default=void 0;var ABt=YK(iM),gEe=RBt(f),NBt=YK(GK),DBt=YK(PC),LBt=function(t,n){return gEe.createElement(DBt.default,(0,ABt.default)({},t,{ref:n,icon:NBt.default}))},FBt=gEe.forwardRef(LBt);qM.default=FBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(qM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(MB,MB.exports);var jBt=MB.exports,IB={exports:{}},GM={},XK={};Object.defineProperty(XK,"__esModule",{value:!0});var BBt={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"};XK.default=BBt;var HBt=va.default,QK=Wr.default;Object.defineProperty(GM,"__esModule",{value:!0});GM.default=void 0;var zBt=QK(iM),vEe=HBt(f),UBt=QK(XK),WBt=QK(PC),VBt=function(t,n){return vEe.createElement(WBt.default,(0,zBt.default)({},t,{ref:n,icon:UBt.default}))},KBt=vEe.forwardRef(VBt);GM.default=KBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(GM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(IB,IB.exports);var qBt=IB.exports,YM={},ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.prepareComponentToken=ip.default=ip.DEPRECATED_TOKENS=void 0;var GBt=Tg,YBt=RC;const XBt=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,GBt.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}}},yEe=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}};ip.prepareComponentToken=yEe;const QBt=ip.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];ip.default=(0,YBt.genStyleHooks)("Layout",e=>[XBt(e)],yEe,{deprecatedTokens:QBt});Object.defineProperty(YM,"__esModule",{value:!0});YM.default=void 0;var Zx=Tg,nae=ip,ZBt=RC;const JBt=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,Zx.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,Zx.unit)(h)} ${(0,Zx.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,Zx.unit)(h)} 0 0 ${(0,Zx.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}}}}};YM.default=(0,ZBt.genStyleHooks)(["Layout","Sider"],e=>[JBt(e)],nae.prepareComponentToken,{deprecatedTokens:nae.DEPRECATED_TOKENS});var AC=Wr.default,eHt=va.default;Object.defineProperty(vS,"__esModule",{value:!0});vS.default=vS.SiderContext=void 0;var $h=eHt(f),hc=$h,tHt=AC(IBt),rae=AC(jBt),iae=AC(qBt),oae=AC(iO),nHt=AC(TM),rHt=kK,iHt=S4,oHt=AC(YM),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!Number.isNaN(Number.parseFloat(e))&&isFinite(e),lHt=vS.SiderContext=hc.createContext({}),cHt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),uHt=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=aHt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,$h.useContext)(iHt.LayoutContext),[C,_]=(0,$h.useState)("collapsed"in e?e.collapsed:a),[T,x]=(0,$h.useState)(!1);(0,$h.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,$h.useContext)(rHt.ConfigContext),P=k("layout-sider",n),[D,R,A]=(0,oHt.default)(P),H=(0,$h.useRef)(null);H.current=ne=>{x(ne.matches),y==null||y(ne.matches),C!==ne.matches&&E(ne.matches,"responsive")},(0,$h.useEffect)(()=>{function ne(ye){return H.current(ye)}let ue;if(typeof window<"u"){const{matchMedia:ye}=window;if(ye&&m&&m in aae){ue=ye(`screen and (max-width: ${aae[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,$h.useEffect)(()=>{const ne=cHt("ant-sider-");return b.addSider(ne),()=>b.removeSider(ne)},[]);const F=()=>{E(!C,"clickTrigger")},U=(0,nHt.default)(S,["collapsed"]),z=C?h:d,K=sHt(z)?`${z}px`:String(z),Z=parseFloat(String(h||0))===0?hc.createElement("span",{onClick:F,className:(0,oae.default)(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||hc.createElement(tHt.default,null)):null,N=M==="rtl"==!u,G={expanded:N?hc.createElement(iae.default,null):hc.createElement(rae.default,null),collapsed:N?hc.createElement(rae.default,null):hc.createElement(iae.default,null)}[C?"collapsed":"expanded"],re=i!==null?Z||hc.createElement("div",{className:`${P}-trigger`,onClick:F,style:{width:K}},i||G):null,se=Object.assign(Object.assign({},l),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),de=(0,oae.default)(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:c&&i!==null&&!Z,[`${P}-below`]:!!T,[`${P}-zero-width`]:parseFloat(K)===0},r,R,A),ee=hc.useMemo(()=>({siderCollapsed:C}),[C]);return D(hc.createElement(lHt.Provider,{value:ee},hc.createElement("aside",Object.assign({className:de},U,{style:se,ref:t}),hc.createElement("div",{className:`${P}-children`},o),c||T&&Z?re:null)))});vS.default=uHt;var bEe=Wr.default;Object.defineProperty(UK,"__esModule",{value:!0});UK.default=hHt;var dHt=bEe(WK),fHt=bEe(vS);function hHt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,dHt.default)(t).some(i=>i.type===fHt.default)}var XM,QM,pHt=va.default,C4=Wr.default;Object.defineProperty(Zh,"__esModule",{value:!0});Zh.default=Zh.Header=QM=Zh.Footer=XM=Zh.Content=void 0;var mHt=C4(q_e),lu=pHt(f),SEe=C4(iO),gHt=C4(TM),$B=kK,vHt=S4,yHt=C4(UK),CEe=C4(ip),xEe=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);ilu.forwardRef((a,s)=>lu.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const ZK=lu.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=xEe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=lu.useContext($B.ConfigContext),l=s("layout",n),[c,u,d]=(0,CEe.default)(l),h=r?`${l}-${r}`:l;return c(lu.createElement(o,Object.assign({className:(0,SEe.default)(n||h,i,u,d),ref:t},a)))}),bHt=lu.forwardRef((e,t)=>{const{direction:n}=lu.useContext($B.ConfigContext),[r,i]=lu.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,h=xEe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,gHt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:v}=lu.useContext($B.ConfigContext),y=m("layout",o),S=(0,yHt.default)(r,l,c),[b,C,_]=(0,CEe.default)(y),T=(0,SEe.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,mHt.default)(k),[E]))},removeSider:E=>{i(k=>k.filter(M=>M!==E))}}}),[]);return b(lu.createElement(vHt.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)))}),SHt=ZM({tagName:"div",displayName:"Layout"})(bHt);Zh.Header=ZM({suffixCls:"header",tagName:"header",displayName:"Header"})(ZK);QM=Zh.Footer=ZM({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ZK);XM=Zh.Content=ZM({suffixCls:"content",tagName:"main",displayName:"Content"})(ZK);Zh.default=SHt;function x4(){const{isDarkMode:e}=Ufe(),{token:t}=Ds.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:CHt,Sider:xHt,Content:wHt}=wo,wEe=()=>{const e=no();f.useContext(Ks);const t=ss(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=x4(),[a,s]=f.useState([]);f.useEffect(()=>{const c=[{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"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return V.jsxs(wo,{children:[V.jsx(xHt,{style:r,width:i,children:V.jsx(tf,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),V.jsxs(wo,{children:[V.jsx(CHt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),V.jsx(wHt,{style:o,children:V.jsx(LP,{})})]})]})},_Ee=()=>{const e=ss(),{userInfo:t}=YCe(),{translateString:n}=Kc(),{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]),V.jsx(V.Fragment,{children:V.jsx(Pu,{title:i,content:a,placement:"rightBottom",children:V.jsx(V.Fragment,{children:V.jsx(Rp,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function JK(){const e=nE(b=>b.accessToken),t=Ka(b=>b.userInfo),n=Xv(b=>b.agentInfo),r=EM(),[i,o]=f.useState(!1),{showNotification:a}=TK(),{translateString:s}=Kc();Pp(b=>b.addMessage),Sd(b=>b.updateThreadContent),f.useContext(Ks),f.useRef(!1);const l=Sd(b=>b.threads),[c,u]=f.useState(l),d=f.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$pt()&&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"),Mpt({uid:t.uid,username:t.username,accessToken:e})},y=()=>{console.log("useMqtt useEffect doDisconnect"),gA()},S=b=>{var C,_;(b==null?void 0:b.type)!==Yw&&((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)&&(KDe(),console.log("playAudio"))};return f.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?v():gA()},[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()=>{gA(),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===Gw||C.type===Mfe||C.type===uD||C.type===Yw||C.type===Xw)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(OT),s(OT)),S(C)):(console.log("useMqtt matchingThread no"),a(s(OT),s(OT)),S(C))};return Dr.on(Kw,b),()=>{Dr.off(Kw)}},[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(eD,b),Dr.on(nD,C),Dr.on(rD,C),Dr.on(tD,C),Dr.on(iD,C),Dr.on(oD,C),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(eD),Dr.off(nD),Dr.off(rD),Dr.off(tD),Dr.off(iD),Dr.off(oD)}},[]),{doConnect:v,doDisconnect:y,isMqttConnected:i}}const EEe=Hc()(Gd(Yd(Xd((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===Pfe){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===IOe){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:_Oe})));function TEe(){console.log("useElectronApi");const e=ss(),t=Ka(r=>r.userInfo),n=EEe(r=>r.addDevice);f.useEffect(()=>(console.log("useElectronApi useEffect"),os?(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:Pfe,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===hOe){xn.success("截图成功");const i=r.data;Dr.emit(bOe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),os?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const _Ht=Hc()(Gd(Yd(Xd((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:xOe}))),kEe=Hc()(Gd(Yd(Xd((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}))),EHt=()=>{const e=Yl(u=>u.deleteOrg),t=Sd(u=>u.resetThreads),n=Pp(u=>u.resetMessageList),r=_Ht(u=>u.resetMembers),i=nE(u=>u.removeAccessToken),o=Ka(u=>u.resetUserInfo),a=EEe(u=>u.resetContactInfo),s=Xv(u=>u.resetAgentInfo),l=kEe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function OEe(){console.log("useEventBus");const{clearStorage:e}=EHt(),{doDisconnect:t}=JK(),{setPingLoading:n}=f.useContext(Ks),r=f.useCallback(async()=>{try{const i=await GLt();console.log("logout result:",i.data),n(!1),t(),e(),zpt()}catch(i){console.log("logout error:",i)}},[]);return f.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),Dr.off(Xm,i),r()};return Dr.on(Xm,i),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(Xm)}},[]),{doLogout:r}}const THt=()=>{const e=no(),{doLogout:t}=OEe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=f.useContext(Ks),{agentInfo:l}=Xv(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:V.jsx(qW,{}),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===yv){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:zX,icon:l.status===zX?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:UX,icon:l.status===UX?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:R$,icon:l.status===R$?V.jsx(np,{}):V.jsx(V.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===ab||p.key===yv||p.key===e9?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===R$&&ea.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return V.jsx(V.Fragment,{children:n?V.jsx(V.Fragment,{children:V.jsx(tf,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):V.jsx(V.Fragment,{})})};async function kHt(e){return ri("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:ti}})}const PEe=()=>{const[e,t]=f.useState([]),n=new WCe;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(Kw,a),()=>{console.log("useIndexedDB useEffect return"),Dr.off(Kw,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function MEe(){return ri("/api/v1/user/profile",{method:"GET",params:{client:ti}})}async function IEe(e){return ri("/api/v1/user/update",{method:"POST",data:{...e,client:ti}})}async function OHt(e){return ri("/api/v1/user/change/password",{method:"POST",data:{...e,client:ti}})}async function $Ee(e){return ri("/api/v1/user/change/email",{method:"POST",data:{...e,client:ti}})}async function REe(e){return ri("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:ti}})}const PHt=()=>{const e=no(),{locale:t,changeLocale:n}=f.useContext(Ks),r=[{key:"lang",icon:V.jsx(zst,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return V.jsx(tf,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Fl=function(){return Fl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?ts(NC,--Iu):0,bS--,Ea===10&&(bS=1,eI--),Ea}function Ad(){return Ea=Iu2||AB(Ea)>3?"":" "}function HHt(e,t){for(;--t&&Ad()&&!(Ea<48||Ea>102||Ea>57&&Ea<65||Ea>70&&Ea<97););return nI(e,i3()+(t<6&&av()==32&&Ad()==32))}function NB(e){for(;Ad();)switch(Ea){case e:return Iu;case 34:case 39:e!==34&&e!==39&&NB(Ea);break;case 40:e===41&&NB(e);break;case 92:Ad();break}return Iu}function zHt(e,t){for(;Ad()&&e+Ea!==57;)if(e+Ea===84&&av()===47)break;return"/*"+nI(t,Iu-1)+"*"+tq(e===47?e:Ad())}function UHt(e){for(;!AB(av());)Ad();return nI(e,Iu)}function WHt(e){return jHt(o3("",null,null,null,[""],e=FHt(e),0,[0],e))}function o3(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=Ad()){case 40:if(m!=108&&ts(E,d-1)==58){r3(E+=Jr(JA(b),"&","&\f"),"&\f",DEe(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=JA(b);break;case 9:case 10:case 13:case 32:E+=BHt(m);break;case 92:E+=HHt(i3()-1,7);continue;case 47:switch(av()){case 42:case 47:$2(VHt(zHt(Ad(),i3()),t,n,l),l);break;default:E+="/"}break;case 123*v:s[c++]=Of(E)*S;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:S==-1&&(E=Jr(E,/\f/g,"")),p>0&&Of(E)-d&&$2(p>32?cae(E+";",r,n,d-1,l):cae(Jr(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if($2(x=lae(E,t,n,c,u,i,s,C,_=[],T=[],d,o),o),b===123)if(u===0)o3(E,t,x,x,_,o,d,s,T);else switch(h===99&&ts(E,3)===110?100:h){case 100:case 108:case 109:case 115:o3(e,x,x,r&&$2(lae(e,x,x,0,0,i,s,C,i,_=[],d,T),T),i,T,d,s,r?_:T);break;default:o3(E,x,x,x,[""],T,0,s,T)}}c=u=p=0,v=S=1,C=E="",d=a;break;case 58:d=1+Of(E),p=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&LHt()==125)continue}switch(E+=tq(b),b*v){case 38:S=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Of(E)-1)*S,S=1;break;case 64:av()===45&&(E+=JA(Ad())),h=av(),u=d=Of(C=E+=UHt(i3())),b++;break;case 45:m===45&&Of(E)==2&&(v=0)}}return o}function lae(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=i===0?o:[""],m=FEe(p),v=0,y=0,S=0;v0?p[b]+" "+C:Jr(C,/&\f/g,p[b])))&&(l[S++]=_);return tI(e,t,n,i===0?JM:s,l,c,u,d)}function VHt(e,t,n,r){return tI(e,t,n,AEe,tq(DHt()),yS(e,2,-2),0,r)}function cae(e,t,n,r,i){return tI(e,t,n,eq,yS(e,0,r),yS(e,r+1,-1),r,i)}function BEe(e,t,n){switch(AHt(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 uw+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+uw+e+ho+e+e;case 5936:switch(ts(e,t+11)){case 114:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ai+e+ho+e+e;case 6165:return Ai+e+ho+"flex-"+e+e;case 5187:return Ai+e+Jr(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+ho+"flex-$1$2")+e;case 5443:return Ai+e+ho+"flex-item-"+Jr(e,/flex-|-self/g,"")+(jh(e,/flex-|baseline/)?"":ho+"grid-row-"+Jr(e,/flex-|-self/g,""))+e;case 4675:return Ai+e+ho+"flex-line-pack"+Jr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ai+e+ho+Jr(e,"shrink","negative")+e;case 5292:return Ai+e+ho+Jr(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+Jr(e,"-grow","")+Ai+e+ho+Jr(e,"grow","positive")+e;case 4554:return Ai+Jr(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return Jr(Jr(Jr(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return Jr(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return Jr(Jr(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4200:if(!jh(e,/flex-|baseline/))return ho+"grid-column-align"+yS(e,t)+e;break;case 2592:case 3360:return ho+Jr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,jh(r.props,/grid-\w+-end/)})?~r3(e+(n=n[t].value),"span",0)?e:ho+Jr(e,"-start","")+e+ho+"grid-row-span:"+(~r3(n,"span",0)?jh(n,/\d+/):+jh(n,/\d+/)-+jh(e,/\d+/))+";":ho+Jr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return jh(r.props,/grid-\w+-start/)})?e:ho+Jr(Jr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Jr(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(Of(e)-1-t>6)switch(ts(e,t+1)){case 109:if(ts(e,t+4)!==45)break;case 102:return Jr(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+uw+(ts(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r3(e,"stretch",0)?BEe(Jr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Jr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return ho+i+":"+o+c+(a?ho+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(ts(e,t+6)===121)return Jr(e,":",":"+Ai)+e;break;case 6444:switch(ts(e,ts(e,14)===45?18:11)){case 120:return Jr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ai+(ts(e,14)===45?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+ho+"$2box$3")+e;case 100:return Jr(e,":",":"+ho)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Jr(e,"scroll-","scroll-snap-")+e}return e}function $k(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case eq:e.return=BEe(e.value,e.length,n);return;case NEe:return $k([gm(e,{value:Jr(e.value,"@","@"+Ai)})],r);case JM:if(e.length)return NHt(n=e.props,function(i){switch(jh(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":py(gm(e,{props:[Jr(i,/:(read-\w+)/,":"+uw+"$1")]})),py(gm(e,{props:[i]})),RB(e,{props:sae(n,r)});break;case"::placeholder":py(gm(e,{props:[Jr(i,/:(plac\w+)/,":"+Ai+"input-$1")]})),py(gm(e,{props:[Jr(i,/:(plac\w+)/,":"+uw+"$1")]})),py(gm(e,{props:[Jr(i,/:(plac\w+)/,ho+"input-$1")]})),py(gm(e,{props:[i]})),RB(e,{props:sae(n,r)});break}return""})}}var XHt={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",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",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",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",TERM_PROGRAM:"vscode",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",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",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",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",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.46.9",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",CURSOR_TRACE_ID:"b6170bb5af8248188f5d13bb89628d42",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",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",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",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",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",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/.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/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/Library/pnpm:/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",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.gus17fTUKu/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",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",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--1741265662751-0.7561994563367156:/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/.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/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/Library/pnpm:/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",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",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",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",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",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",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",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",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",npm_package_type:"module",SHLVL:"6",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_dependencies_react_markdown:"^9.0.1",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",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",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",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",VSCODE_GIT_ASKPASS_NODE:"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",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__ant_design_compatible:"^5.1.4",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",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"},SS=typeof process<"u"&&mc!==void 0&&(mc.REACT_APP_SC_ATTR||mc.SC_ATTR)||"data-styled",HEe="active",zEe="data-styled-version",rI="6.1.13",nq=`/*!sc*/ `,Rk=typeof window<"u"&&"HTMLElement"in window,QHt=!!(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),iI=Object.freeze([]),CS=Object.freeze({});function ZHt(e,t,n){return n===void 0&&(n=CS),e.theme!==n.theme&&e.theme||t||n.theme}var UEe=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"]),JHt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ezt=/(^-|-$)/g;function uae(e){return e.replace(JHt,"-").replace(ezt,"")}var tzt=/(a)(d)/gi,T5=52,dae=function(e){return String.fromCharCode(e+(e>25?39:97))};function DB(e){var t,n="";for(t=Math.abs(e);t>T5;t=t/T5|0)n=dae(t%T5)+n;return(dae(t%T5)+n).replace(tzt,"$1-$2")}var eN,WEe=5381,qy=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},VEe=function(e){return qy(WEe,e)};function nzt(e){return DB(VEe(e)>>>0)}function rzt(e){return e.displayName||e.name||"Component"}function tN(e){return typeof e=="string"&&!0}var KEe=typeof Symbol=="function"&&Symbol.for,qEe=KEe?Symbol.for("react.memo"):60115,izt=KEe?Symbol.for("react.forward_ref"):60112,ozt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},azt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},GEe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},szt=((eN={})[izt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eN[qEe]=GEe,eN);function fae(e){return("type"in(t=e)&&t.type.$$typeof)===qEe?GEe:"$$typeof"in e?szt[e.$$typeof]:ozt;var t}var lzt=Object.defineProperty,czt=Object.getOwnPropertyNames,hae=Object.getOwnPropertySymbols,uzt=Object.getOwnPropertyDescriptor,dzt=Object.getPrototypeOf,pae=Object.prototype;function YEe(e,t,n){if(typeof t!="string"){if(pae){var r=dzt(t);r&&r!==pae&&YEe(e,r,n)}var i=czt(t);hae&&(i=i.concat(hae(t)));for(var o=fae(e),a=fae(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var fzt=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=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw w4(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a=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 t0&&(y+="".concat(S,","))}),l+="".concat(m).concat(v,'{content:"').concat(y,'"}').concat(nq)},u=0;u0?".".concat(t):h},u=l.slice();u.push(function(h){h.type===JM&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(wzt,n).replace(r,c))}),a.prefix&&u.push(YHt),u.push(KHt);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(_zt,""),S=WHt(m||p?"".concat(m," ").concat(p," { ").concat(y," }"):y);a.namespace&&(S=ZEe(S,a.namespace));var b=[];return $k(S,qHt(u.concat(GHt(function(C){return b.push(C)})))),b};return d.hash=l.length?l.reduce(function(h,p){return p.name||w4(15),qy(h,p.name)},WEe).toString():"",d}var Tzt=new QEe,FB=Ezt(),JEe=me.createContext({shouldForwardProp:void 0,styleSheet:Tzt,stylis:FB});JEe.Consumer;me.createContext(void 0);function yae(){return f.useContext(JEe)}var kzt=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=FB);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,iq(this,function(){throw w4(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=FB),this.name+t.hash},e}(),Ozt=function(e){return e>="A"&&e<="Z"};function bae(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=L1(i,a),this.staticRulesId=a}else{for(var l=qy(this.baseHash,r.hash),c="",u=0;u>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),i=L1(i,p)}}return i},e}(),n4e=me.createContext(void 0);n4e.Consumer;var nN={};function $zt(e,t,n){var r=rq(e),i=e,o=!tN(e),a=t.attrs,s=a===void 0?iI:a,l=t.componentId,c=l===void 0?function(_,T){var x=typeof _!="string"?"sc":uae(_);nN[x]=(nN[x]||0)+1;var E="".concat(x,"-").concat(nzt(rI+x+nN[x]));return T?"".concat(T,"-").concat(E):E}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(_){return tN(_)?"styled.".concat(_):"Styled(".concat(rzt(_),")")}(e):u,h=t.displayName&&t.componentId?"".concat(uae(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 Izt(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=me.useContext(n4e),U=yae(),z=x.shouldForwardProp||U.shouldForwardProp,K=ZHt(E,F,D)||CS,Z=function(se,de,ee){for(var ne,ue=Fl(Fl({},de),{className:void 0,theme:ee}),ye=0;ye{const[o]=ei.useForm(),a=Yl(l=>l.currentOrg);f.useEffect(()=>{t&&n?o.setFieldsValue({name:n==null?void 0:n.name,description:n==null?void 0:n.description,type:n==null?void 0:n.type}):o.setFieldsValue({type:Qm})},[o,t,n]);const s=async()=>{try{const l=await o.validateFields();if(console.log("values:",l),t&&n){const c={...l,orgUid:a==null?void 0:a.uid,uid:n==null?void 0:n.uid},u=await o4e(c);if(console.log("updateKbase response:",u.data),u.data.code===200)return xn.success("知识库更新成功"),i(),!0}else{const c={...l,orgUid:a==null?void 0:a.uid},u=await i4e(c);return console.log("createKbase response:",u.data),u.data.code===200?(xn.success("知识库创建成功"),i(),!0):(xn.error(u.data.message),!1)}}catch(l){return console.error("Create space failed:",l),xn.error("创建知识库失败"),!1}};return V.jsx(Ma,{title:"创建知识库",open:e,onOk:s,onCancel:r,children:V.jsxs(ei,{form:o,submitter:!1,children:[V.jsx(_i,{name:"name",label:"知识库名称",placeholder:"请输入知识库名称",rules:[{required:!0,message:"请输入知识库名称"}]}),V.jsx(OC,{name:"description",label:"知识库描述",placeholder:"请输入知识库描述",rules:[{required:!0,message:"请输入知识库描述"}],fieldProps:{rows:4}}),V.jsx(rM.Group,{name:"type",label:"知识库类型",rules:[{required:!0,message:"请选择知识库类型"}],options:[{label:"帮助文档",value:oPe},{label:"私有知识库",value:Qm}]})]})})},kg=Hc(e=>({kbases:[],currentKbase:null,setKbases:t=>e({kbases:t}),setCurrentKbase:t=>e({currentKbase:t}),fetchKbases:async t=>{const r=await Azt({pageNumber:0,pageSize:10,type:Qm,orgUid:t,queryNotebase:!0});console.log("queryKbasesByOrg response",r.data),r.data.code===200?e({kbases:r.data.data.content||[]}):xn.error(r.data.message)},toggleStarKbase:t=>e(n=>({kbases:n.kbases.map(r=>r.uid===t?{...r,favorite:!r.favorite}:r)})),createKbase:async t=>{const n={...t,type:Qm,queryNotebase:!0},r=await i4e(n);console.log("createKbase response",r.data),r.data.code===200?e(i=>({kbases:[...i.kbases,t]})):xn.error(r.data.message)},updateKbase:async t=>{const n={...t,type:Qm,queryNotebase:!0},r=await o4e(n);console.log("updateKbase response",r.data),r.data.code===200?xn.success("更新成功"):xn.error(r.data.message)},deleteKbase:async t=>{const r=await Dzt({uid:t});console.log("deleteKbase response",r.data),r.data.code===200?xn.success("删除成功"):xn.error(r.data.message)},fetchKbaseDetail:async t=>{const r=await Nzt({uid:t});if(console.log("queryKbaseDetail response",r.data),r.data.code===200)e({currentKbase:r.data.data});else throw new Error("KBASE.KbaseResponse not found")}})),{Title:Lzt,Paragraph:Fzt}=qE,jzt=No(hP)` .ant-card-body { height: 120px; @@ -918,7 +918,7 @@ b`.split(/\n/).length!=3?function(g){for(var w=0,$=[],I=g.length;w<=I;){var L=g. `))}function l(p,m,v,y){const S=v.enter("tableCell"),b=v.enter("phrasing"),C=l8e(p,v,{...y,before:o,after:o});return b(),S(),C}function c(p,m){return srn(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-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 brn={exit:{taskListCheckValueChecked:Ece,taskListCheckValueUnchecked:Ece,paragraph:Crn}},Srn={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xrn}};function Ece(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',CheckCorrect:'',InsertTable:''},Trn="Strikethrough",krn="text",Orn="Table",Prn="Heading",Mrn="Task list",Irn="todo",$rn={strike:Trn,strikeText:krn,table:Orn,tableHeading:Prn,task:Mrn,taskText:Irn};function d8e({locale:e,...t}={}){const n={...$rn,...e};return{remark:r=>r.use(Ern,t),actions:[{title:n.strike,icon:VN.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:VN.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:VN.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 f8e({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await Hz(()=>import("./index-CmLgq6cS.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 h8e(e){return typeof e>"u"||e===null}function Rrn(e){return typeof e=="object"&&e!==null}function Arn(e){return Array.isArray(e)?e:h8e(e)?[]:[e]}function Nrn(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await Hz(()=>import("./index-IY7Wnwjf.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 h8e(e){return typeof e>"u"||e===null}function Rrn(e){return typeof e=="object"&&e!==null}function Arn(e){return Array.isArray(e)?e:h8e(e)?[]:[e]}function Nrn(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;ns&&(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 qN(e,t){return dl.repeat(" ",t-e.length)+e}function Wrn(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=KN(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),d),s=dl.repeat(" ",t.indent)+qN((e.line-l+1).toString(),u)+" | "+c.str+` `+s;for(c=KN(e.buffer,r[a],i[a],e.position,d),s+=dl.repeat(" ",t.indent)+qN((e.line+1).toString(),u)+" | "+c.str+` @@ -1001,7 +1001,7 @@ another task : 24d`},{title:n.pie,code:`pie title Pets adopted by volunteer : Google 2005 : Youtube 2006 : Twitter - `}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await Hz(()=>import("./mermaid.core-BRpiNjs-.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:Non.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(` + `}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await Hz(()=>import("./mermaid.core-CLEyumap.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:Non.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 Dce={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:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"},Q5=/:(\+1|[-\w]+):/g,qon={}.hasOwnProperty;function Gon(){return e=>{_4(e,"text",t=>{const n=t.value,r=[];Q5.lastIndex=0;let i=Q5.exec(n),o=0;for(;i;){const a=i[1],s=i.index;qon.call(Dce,a)?(o!==s&&r.push(n.slice(o,s)),r.push(Dce[a]),o=s+i[0].length):Q5.lastIndex=s+1,i=Q5.exec(n)}r.length>0&&(r.push(n.slice(o)),t.value=r.join(""))})}}function Yon(){return{remark:e=>e.use(Gon)}}function Xon(e){n8e(e,/\r?\n|\r/g,Qon)}function Qon(){return{type:"break"}}function Zon(){return Xon}function Jon(){return{remark:e=>e.use(Zon)}}const ean="粗体",tan="粗体文本",nan="Markdown 语法",ran="关闭帮助",ian="关闭目录",oan="代码",aan="代码块",san="编程语言",lan="代码",can="退出全屏",uan="恢复默认",dan="恢复默认",fan="全屏",han="一级标题",pan="二级标题",man="三级标题",gan="四级标题",van="五级标题",yan="六级标题",ban="标题",San="帮助",Can="分割线",xan="图片",wan="alt",_an="图片描述",Ean="斜体",Tan="斜体文本",kan="已达最大字符数限制",Oan="行数",Pan="链接",Man="链接描述",Ian="有序列表",$an="项目",Ran="预览",Aan="仅预览区",Nan="引用",Dan="引用文本",Lan="快捷键",Fan="源代码",jan="同步滚动",Ban="目录",Han="回到顶部",zan="无序列表",Uan="项目",Wan="字数",Van="编辑",Kan="仅编辑区",qan={bold:ean,boldText:tan,cheatsheet:nan,closeHelp:ran,closeToc:ian,code:oan,codeBlock:aan,codeLang:san,codeText:lan,exitFullscreen:can,exitPreviewOnly:uan,exitWriteOnly:dan,fullscreen:fan,h1:han,h2:pan,h3:man,h4:gan,h5:van,h6:yan,headingText:ban,help:San,hr:Can,image:xan,imageAlt:wan,imageTitle:_an,italic:Ean,italicText:Tan,limited:kan,lines:Oan,link:Pan,linkText:Man,ol:Ian,olItem:$an,preview:Ran,previewOnly:Aan,quote:Nan,quotedText:Dan,shortcuts:Lan,source:Fan,sync:jan,toc:Ban,top:Han,ul:zan,ulItem:Uan,words:Wan,write:Van,writeOnly:Kan},Gan=[d8e(),f8e(),Aon(),T8e(),Yon(),Jon()],Yan=No.div` height: 100%; .bytemd { diff --git a/starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-CiEeDDYE.js b/deploy/server/notebase/assets/infoDiagram-f8f76790-_WLEWeGB.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-CiEeDDYE.js rename to deploy/server/notebase/assets/infoDiagram-f8f76790-_WLEWeGB.js index b56f547d10..fd9fd26782 100644 --- a/starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-CiEeDDYE.js +++ b/deploy/server/notebase/assets/infoDiagram-f8f76790-_WLEWeGB.js @@ -1,4 +1,4 @@ -import{l as Y,N as D,i as M}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,j=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>j&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: +import{l as Y,N as D,i as M}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,j=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>j&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: `+o.showPosition()+` Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/journeyDiagram-49397b02-D1bocf1Q.js b/deploy/server/notebase/assets/journeyDiagram-49397b02-Bvmnb9ly.js similarity index 98% rename from deploy/server/notebase/assets/journeyDiagram-49397b02-D1bocf1Q.js rename to deploy/server/notebase/assets/journeyDiagram-49397b02-Bvmnb9ly.js index 24cd83c051..1bfe7e710a 100644 --- a/deploy/server/notebase/assets/journeyDiagram-49397b02-D1bocf1Q.js +++ b/deploy/server/notebase/assets/journeyDiagram-49397b02-Bvmnb9ly.js @@ -1,4 +1,4 @@ -import{c as A,A as yt,B as ft,s as dt,g as pt,b as gt,a as mt,C as xt,h as W,i as kt}from"./mermaid.core-BRpiNjs-.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-BxUoIeIU.js";import"./index-DFpvp1rn.js";import{a as Q}from"./arc-Cb_wyWgX.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,C={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`: +import{c as A,A as yt,B as ft,s as dt,g as pt,b as gt,a as mt,C as xt,h as W,i as kt}from"./mermaid.core-CLEyumap.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-CmoRP8WR.js";import"./index-hnRSc5ud.js";import{a as Q}from"./arc-BVZmYbDK.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,C={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`: `+x.showPosition()+` Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],C.$=d[d.length-$],C._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(C._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(C,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),d.push(C.$),o.push(C._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/layout-e9igZ_Vb.js b/deploy/server/notebase/assets/layout-C3MVMtGC.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/layout-e9igZ_Vb.js rename to deploy/server/notebase/assets/layout-C3MVMtGC.js index 42480b8767..341fbdb88a 100644 --- a/starter/src/main/resources/templates/notebase/assets/layout-e9igZ_Vb.js +++ b/deploy/server/notebase/assets/layout-C3MVMtGC.js @@ -1 +1 @@ -import{b as bn,a as Wn,c as L,k as zn,d as Xn,e as Un,g as O,j as gn,l as xn,m as En,t as Hn,n as kn,o as Jn,p as Kn,f as s,G as x,h as w,i as g,q as M,v as y,r as G}from"./graph-Bqo8LFRO.js";import{B as jn,C as Qn,D as Zn,E as yn,F as S,G as Nn,H as ne,e as Ln,f as J,I as ee,J as re,K as X,L as K,N as on,O as ie,P as _n,Q as te,R as ae,n as U}from"./index-DFpvp1rn.js";var un=1/0,oe=17976931348623157e292;function F(n){if(!n)return n===0?n:0;if(n=jn(n),n===un||n===-un){var e=n<0?-1:1;return e*oe}return n===n?n:0}function ue(n){var e=F(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?bn(n):[]}function de(n){return Qn(Zn(n,void 0,_),n+"")}var fe=1,se=4;function ce(n){return Wn(n,fe|se)}var Cn=Object.prototype,he=Cn.hasOwnProperty,le=yn(function(n,e){n=Object(n);var r=-1,i=e.length,t=i>2?e[2]:void 0;for(t&&S(e[0],e[1],t)&&(i=1);++r-1?t[o?e[a]:a]:void 0}}var pe=Math.max;function we(n,e,r){var i=n==null?0:n.length;if(!i)return-1;var t=r==null?0:ue(r);return t<0&&(t=pe(i+t,0)),Xn(n,L(e),t)}var j=ve(we);function Rn(n,e){var r=-1,i=Ln(n)?Array(n.length):[];return Un(n,function(t,o,a){i[++r]=e(t,o,a)}),i}function m(n,e){var r=J(n)?O:Rn;return r(n,L(e))}function me(n,e){return n==null?n:ee(n,gn(e),Nn)}function be(n,e){return n&&xn(n,gn(e))}function ge(n,e){return n>e}function In(n,e){return ne||o&&a&&d&&!u&&!f||i&&a&&d||!r&&d||!t)return 1;if(!i&&!o&&!f&&n=u)return d;var f=r[i];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Le(n,e,r){e.length?e=O(e,function(o){return J(o)?function(a){return kn(a,o.length===1?o[0]:o)}:o}):e=[K];var i=-1;e=O(e,te(L));var t=Rn(n,function(o,a,u){var d=O(e,function(f){return f(o)});return{criteria:d,index:++i,value:o}});return ke(t,function(o,a){return Ne(o,a,r)})}function _e(n,e){return Ee(n,e,function(r,i){return Jn(n,i)})}var B=de(function(n,e){return n==null?{}:_e(n,e)}),Ce=Math.ceil,Re=Math.max;function Ie(n,e,r,i){for(var t=-1,o=Re(Ce((e-n)/(r||1)),0),a=Array(o);o--;)a[++t]=n,n+=r;return a}function Te(n){return function(e,r,i){return i&&typeof i!="number"&&S(e,r,i)&&(r=i=void 0),e=F(e),r===void 0?(r=e,e=0):r=F(r),i=i===void 0?e1&&S(n,e[0],e[1])?e=[]:r>2&&S(e[0],e[1],e[2])&&(e=[e[0]]),Le(n,bn(e),[])}),Me=0;function nn(n){var e=++Me;return Kn(n)+e}function Pe(n,e,r){for(var i=-1,t=n.length,o=e.length,a={};++i0;--u)if(a=e[u].dequeue(),a){i=i.concat(D(n,e,r,a,!0));break}}}return i}function D(n,e,r,i,t){var o=t?[]:void 0;return s(n.inEdges(i.v),function(a){var u=n.edge(a),d=n.node(a.v);t&&o.push({v:a.v,w:a.w}),d.out-=u,H(e,r,d)}),s(n.outEdges(i.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,H(e,r,f)}),n.removeNode(i.v),o}function Ve(n,e){var r=new x,i=0,t=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),t=Math.max(t,r.node(u.v).out+=f),i=Math.max(i,r.node(u.w).in+=f)});var o=N(t+i+3).map(function(){return new Fe}),a=i+1;return s(r.nodes(),function(u){H(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function H(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Ye(n){var e=n.graph().acyclicer==="greedy"?Be(n,r(n)):De(n);s(e,function(i){var t=n.edge(i);n.removeEdge(i),t.forwardName=i.name,t.reversed=!0,n.setEdge(i.w,i.v,t,nn("rev"))});function r(i){return function(t){return i.edge(t).weight}}}function De(n){var e=[],r={},i={};function t(o){w(i,o)||(i[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):t(a.w)}),delete r[o])}return s(n.nodes(),t),e}function qe(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,i)}})}function C(n,e,r,i){var t;do t=nn(i);while(n.hasNode(t));return r.dummy=e,n.setNode(t,r),t}function $e(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},t=n.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+t.weight,minlen:Math.max(i.minlen,t.minlen)})}),e}function Tn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function fn(n,e){var r=n.x,i=n.y,t=e.x-r,o=e.y-i,a=n.width/2,u=n.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,f=u):(t<0&&(a=-a),d=a,f=a*o/t),{x:r+d,y:i+f}}function Y(n){var e=m(N(Mn(n)+1),function(){return[]});return s(n.nodes(),function(r){var i=n.node(r),t=i.rank;g(t)||(e[t][i.order]=r)}),e}function We(n){var e=I(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var i=n.node(r);w(i,"rank")&&(i.rank-=e)})}function ze(n){var e=I(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var i=0,t=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%t!==0?--i:i&&s(o,function(u){n.node(u).rank+=i})})}function sn(n,e,r,i){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=i),C(n,"border",t,e)}function Mn(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function Xe(n,e){var r={lhs:[],rhs:[]};return s(n,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r}function Ue(n,e){return e()}function He(n){function e(r){var i=n.children(r),t=n.node(r);if(i.length&&s(i,e),w(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,a=t.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===ln(n,n.node(c.v),u)&&d!==ln(n,n.node(c.w),u)});return Z(f,function(c){return T(e,c)})}function Yn(n,e,r,i){var t=r.v,o=r.w;n.removeEdge(t,o),n.setEdge(i.v,i.w,{}),tn(n),rn(n,e),fr(n,e)}function fr(n,e){var r=j(n.nodes(),function(t){return!e.node(t).parent}),i=ur(n,r);i=i.slice(1),s(i,function(t){var o=n.node(t).parent,a=e.edge(t,o),u=!1;a||(a=e.edge(o,t),u=!0),e.node(t).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function sr(n,e,r){return n.hasEdge(e,r)}function ln(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function cr(n){switch(n.graph().ranker){case"network-simplex":vn(n);break;case"tight-tree":lr(n);break;case"longest-path":hr(n);break;default:vn(n)}}var hr=en;function lr(n){en(n),On(n)}function vn(n){k(n)}function vr(n){var e=C(n,"root",{},"_root"),r=pr(n),i=E(y(r))-1,t=2*i+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=t});var o=wr(n)+1;s(n.children(),function(a){Dn(n,e,t,o,i,r,a)}),n.graph().nodeRankFactor=t}function Dn(n,e,r,i,t,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=sn(n,"_bt"),f=sn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){Dn(n,e,r,i,t,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?i:2*i,R=v!==p?1:t-o[a]+1;n.setEdge(d,v,{weight:b,minlen:R,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:R,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:t+o[a]})}function pr(n){var e={};function r(i,t){var o=n.children(i);o&&o.length&&s(o,function(a){r(a,t+1)}),e[i]=t}return s(n.children(),function(i){r(i,1)}),e}function wr(n){return G(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function mr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var i=n.edge(r);i.nestingEdge&&n.removeEdge(r)})}function br(n,e,r){var i={},t;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=i[u],i[u]=a):(d=t,t=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function gr(n,e,r){var i=xr(n),t=new x({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(t.setNode(o),t.setParent(o,u||i),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=t.edge(f,o),h=g(c)?0:c.weight;t.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&t.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),t}function xr(n){for(var e;n.hasNode(e=nn("_root")););return e}function Er(n,e){for(var r=0,i=1;i0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function yr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),i=E(m(r,function(u){return n.node(u).rank})),t=m(N(i+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);t[d.rank].push(u),s(n.successors(u),o)}}var a=P(r,function(u){return n.node(u).rank});return s(a,o),t}function Nr(n,e){return m(e,function(r){var i=n.inEdges(r);if(i.length){var t=G(i,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function Lr(n,e){var r={};s(n,function(t,o){var a=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};g(t.barycenter)||(a.barycenter=t.barycenter,a.weight=t.weight)}),s(e.edges(),function(t){var o=r[t.v],a=r[t.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[t.w]))});var i=M(r,function(t){return!t.indegree});return _r(i)}function _r(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Cr(o,a)}}function i(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var t=n.pop();e.push(t),s(t.in.reverse(),r(t)),s(t.out,i(t))}return m(M(e,function(o){return!o.merged}),function(o){return B(o,["vs","i","barycenter","weight"])})}function Cr(n,e){var r=0,i=0;n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/i,n.weight=i,n.i=Math.min(e.i,n.i),e.merged=!0}function Rr(n,e){var r=Xe(n,function(c){return w(c,"barycenter")}),i=r.lhs,t=P(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;i.sort(Ir(!!e)),d=pn(o,t,d),s(i,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=pn(o,t,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function pn(n,e,r){for(var i;e.length&&(i=A(e)).i<=r;)e.pop(),n.push(i.vs),r++;return r}function Ir(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,i){var t=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(t=M(t,function(p){return p!==a&&p!==u}));var f=Nr(n,t);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,i);d[p.v]=b,w(b,"barycenter")&&Mr(p,b)}});var c=Lr(f,r);Tr(c,d);var h=Rr(c,i);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Tr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(i){return e[i]?e[i].vs:i}))})}function Mr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Pr(n){var e=Mn(n),r=wn(n,N(1,e+1),"inEdges"),i=wn(n,N(e-1,-1,-1),"outEdges"),t=yr(n);mn(n,t);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Or(u%2?r:i,u%4>=2),t=Y(n);var f=Er(n,t);fa||u>e[d].lim));for(f=d,d=i;(d=n.parent(d))!==f;)o.push(d);return{path:t.concat(o.reverse()),lca:f}}function Ar(n){var e={},r=0;function i(t){var o=r;s(n.children(t),i),e[t]={low:o,lim:r++}}return s(n.children(),i),e}function Br(n,e){var r={};function i(t,o){var a=0,u=0,d=t.length,f=A(o);return s(o,function(c,h){var l=Vr(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var R=n.node(b),an=R.order;(anf)&&$n(r,l,c)})})}function t(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,i(a,f,h,u,d),f=h,u=d)}i(a,f,a.length,d,o.length)}),a}return G(e,t),r}function Vr(n,e){if(n.node(e).dummy)return j(n.predecessors(e),function(r){return n.node(r).dummy})}function $n(n,e,r){if(e>r){var i=e;e=r,r=i}var t=n[e];t||(n[e]=t={}),t[r]=!0}function Yr(n,e,r){if(e>r){var i=e;e=r,r=i}return w(n[e],r)}function Dr(n,e,r,i){var t={},o={},a={};return s(e,function(u){s(u,function(d,f){t[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=i(f);if(c.length){c=P(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&d2?e[2]:void 0;for(t&&S(e[0],e[1],t)&&(i=1);++r-1?t[o?e[a]:a]:void 0}}var pe=Math.max;function we(n,e,r){var i=n==null?0:n.length;if(!i)return-1;var t=r==null?0:ue(r);return t<0&&(t=pe(i+t,0)),Xn(n,L(e),t)}var j=ve(we);function Rn(n,e){var r=-1,i=Ln(n)?Array(n.length):[];return Un(n,function(t,o,a){i[++r]=e(t,o,a)}),i}function m(n,e){var r=J(n)?O:Rn;return r(n,L(e))}function me(n,e){return n==null?n:ee(n,gn(e),Nn)}function be(n,e){return n&&xn(n,gn(e))}function ge(n,e){return n>e}function In(n,e){return ne||o&&a&&d&&!u&&!f||i&&a&&d||!r&&d||!t)return 1;if(!i&&!o&&!f&&n=u)return d;var f=r[i];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Le(n,e,r){e.length?e=O(e,function(o){return J(o)?function(a){return kn(a,o.length===1?o[0]:o)}:o}):e=[K];var i=-1;e=O(e,te(L));var t=Rn(n,function(o,a,u){var d=O(e,function(f){return f(o)});return{criteria:d,index:++i,value:o}});return ke(t,function(o,a){return Ne(o,a,r)})}function _e(n,e){return Ee(n,e,function(r,i){return Jn(n,i)})}var B=de(function(n,e){return n==null?{}:_e(n,e)}),Ce=Math.ceil,Re=Math.max;function Ie(n,e,r,i){for(var t=-1,o=Re(Ce((e-n)/(r||1)),0),a=Array(o);o--;)a[++t]=n,n+=r;return a}function Te(n){return function(e,r,i){return i&&typeof i!="number"&&S(e,r,i)&&(r=i=void 0),e=F(e),r===void 0?(r=e,e=0):r=F(r),i=i===void 0?e1&&S(n,e[0],e[1])?e=[]:r>2&&S(e[0],e[1],e[2])&&(e=[e[0]]),Le(n,bn(e),[])}),Me=0;function nn(n){var e=++Me;return Kn(n)+e}function Pe(n,e,r){for(var i=-1,t=n.length,o=e.length,a={};++i0;--u)if(a=e[u].dequeue(),a){i=i.concat(D(n,e,r,a,!0));break}}}return i}function D(n,e,r,i,t){var o=t?[]:void 0;return s(n.inEdges(i.v),function(a){var u=n.edge(a),d=n.node(a.v);t&&o.push({v:a.v,w:a.w}),d.out-=u,H(e,r,d)}),s(n.outEdges(i.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,H(e,r,f)}),n.removeNode(i.v),o}function Ve(n,e){var r=new x,i=0,t=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),t=Math.max(t,r.node(u.v).out+=f),i=Math.max(i,r.node(u.w).in+=f)});var o=N(t+i+3).map(function(){return new Fe}),a=i+1;return s(r.nodes(),function(u){H(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function H(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Ye(n){var e=n.graph().acyclicer==="greedy"?Be(n,r(n)):De(n);s(e,function(i){var t=n.edge(i);n.removeEdge(i),t.forwardName=i.name,t.reversed=!0,n.setEdge(i.w,i.v,t,nn("rev"))});function r(i){return function(t){return i.edge(t).weight}}}function De(n){var e=[],r={},i={};function t(o){w(i,o)||(i[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):t(a.w)}),delete r[o])}return s(n.nodes(),t),e}function qe(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,i)}})}function C(n,e,r,i){var t;do t=nn(i);while(n.hasNode(t));return r.dummy=e,n.setNode(t,r),t}function $e(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},t=n.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+t.weight,minlen:Math.max(i.minlen,t.minlen)})}),e}function Tn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function fn(n,e){var r=n.x,i=n.y,t=e.x-r,o=e.y-i,a=n.width/2,u=n.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,f=u):(t<0&&(a=-a),d=a,f=a*o/t),{x:r+d,y:i+f}}function Y(n){var e=m(N(Mn(n)+1),function(){return[]});return s(n.nodes(),function(r){var i=n.node(r),t=i.rank;g(t)||(e[t][i.order]=r)}),e}function We(n){var e=I(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var i=n.node(r);w(i,"rank")&&(i.rank-=e)})}function ze(n){var e=I(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var i=0,t=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%t!==0?--i:i&&s(o,function(u){n.node(u).rank+=i})})}function sn(n,e,r,i){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=i),C(n,"border",t,e)}function Mn(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function Xe(n,e){var r={lhs:[],rhs:[]};return s(n,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r}function Ue(n,e){return e()}function He(n){function e(r){var i=n.children(r),t=n.node(r);if(i.length&&s(i,e),w(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,a=t.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===ln(n,n.node(c.v),u)&&d!==ln(n,n.node(c.w),u)});return Z(f,function(c){return T(e,c)})}function Yn(n,e,r,i){var t=r.v,o=r.w;n.removeEdge(t,o),n.setEdge(i.v,i.w,{}),tn(n),rn(n,e),fr(n,e)}function fr(n,e){var r=j(n.nodes(),function(t){return!e.node(t).parent}),i=ur(n,r);i=i.slice(1),s(i,function(t){var o=n.node(t).parent,a=e.edge(t,o),u=!1;a||(a=e.edge(o,t),u=!0),e.node(t).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function sr(n,e,r){return n.hasEdge(e,r)}function ln(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function cr(n){switch(n.graph().ranker){case"network-simplex":vn(n);break;case"tight-tree":lr(n);break;case"longest-path":hr(n);break;default:vn(n)}}var hr=en;function lr(n){en(n),On(n)}function vn(n){k(n)}function vr(n){var e=C(n,"root",{},"_root"),r=pr(n),i=E(y(r))-1,t=2*i+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=t});var o=wr(n)+1;s(n.children(),function(a){Dn(n,e,t,o,i,r,a)}),n.graph().nodeRankFactor=t}function Dn(n,e,r,i,t,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=sn(n,"_bt"),f=sn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){Dn(n,e,r,i,t,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?i:2*i,R=v!==p?1:t-o[a]+1;n.setEdge(d,v,{weight:b,minlen:R,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:R,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:t+o[a]})}function pr(n){var e={};function r(i,t){var o=n.children(i);o&&o.length&&s(o,function(a){r(a,t+1)}),e[i]=t}return s(n.children(),function(i){r(i,1)}),e}function wr(n){return G(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function mr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var i=n.edge(r);i.nestingEdge&&n.removeEdge(r)})}function br(n,e,r){var i={},t;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=i[u],i[u]=a):(d=t,t=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function gr(n,e,r){var i=xr(n),t=new x({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(t.setNode(o),t.setParent(o,u||i),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=t.edge(f,o),h=g(c)?0:c.weight;t.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&t.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),t}function xr(n){for(var e;n.hasNode(e=nn("_root")););return e}function Er(n,e){for(var r=0,i=1;i0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function yr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),i=E(m(r,function(u){return n.node(u).rank})),t=m(N(i+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);t[d.rank].push(u),s(n.successors(u),o)}}var a=P(r,function(u){return n.node(u).rank});return s(a,o),t}function Nr(n,e){return m(e,function(r){var i=n.inEdges(r);if(i.length){var t=G(i,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function Lr(n,e){var r={};s(n,function(t,o){var a=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};g(t.barycenter)||(a.barycenter=t.barycenter,a.weight=t.weight)}),s(e.edges(),function(t){var o=r[t.v],a=r[t.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[t.w]))});var i=M(r,function(t){return!t.indegree});return _r(i)}function _r(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Cr(o,a)}}function i(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var t=n.pop();e.push(t),s(t.in.reverse(),r(t)),s(t.out,i(t))}return m(M(e,function(o){return!o.merged}),function(o){return B(o,["vs","i","barycenter","weight"])})}function Cr(n,e){var r=0,i=0;n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/i,n.weight=i,n.i=Math.min(e.i,n.i),e.merged=!0}function Rr(n,e){var r=Xe(n,function(c){return w(c,"barycenter")}),i=r.lhs,t=P(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;i.sort(Ir(!!e)),d=pn(o,t,d),s(i,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=pn(o,t,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function pn(n,e,r){for(var i;e.length&&(i=A(e)).i<=r;)e.pop(),n.push(i.vs),r++;return r}function Ir(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,i){var t=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(t=M(t,function(p){return p!==a&&p!==u}));var f=Nr(n,t);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,i);d[p.v]=b,w(b,"barycenter")&&Mr(p,b)}});var c=Lr(f,r);Tr(c,d);var h=Rr(c,i);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Tr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(i){return e[i]?e[i].vs:i}))})}function Mr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Pr(n){var e=Mn(n),r=wn(n,N(1,e+1),"inEdges"),i=wn(n,N(e-1,-1,-1),"outEdges"),t=yr(n);mn(n,t);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Or(u%2?r:i,u%4>=2),t=Y(n);var f=Er(n,t);fa||u>e[d].lim));for(f=d,d=i;(d=n.parent(d))!==f;)o.push(d);return{path:t.concat(o.reverse()),lca:f}}function Ar(n){var e={},r=0;function i(t){var o=r;s(n.children(t),i),e[t]={low:o,lim:r++}}return s(n.children(),i),e}function Br(n,e){var r={};function i(t,o){var a=0,u=0,d=t.length,f=A(o);return s(o,function(c,h){var l=Vr(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var R=n.node(b),an=R.order;(anf)&&$n(r,l,c)})})}function t(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,i(a,f,h,u,d),f=h,u=d)}i(a,f,a.length,d,o.length)}),a}return G(e,t),r}function Vr(n,e){if(n.node(e).dummy)return j(n.predecessors(e),function(r){return n.node(r).dummy})}function $n(n,e,r){if(e>r){var i=e;e=r,r=i}var t=n[e];t||(n[e]=t={}),t[r]=!0}function Yr(n,e,r){if(e>r){var i=e;e=r,r=i}return w(n[e],r)}function Dr(n,e,r,i){var t={},o={},a={};return s(e,function(u){s(u,function(d,f){t[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=i(f);if(c.length){c=P(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&dt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function Q(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=Q(F),dn=sn.right;Q(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function _(n){return n}var H=Array.prototype.map,J=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?_:jn(H.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?_:Pn(H.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?J[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=J[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var K=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Xn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Bn:Xn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Vn(){return On()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Vn();return n.copy=function(){return Gn(n,Un())},cn.apply(n,arguments),Zn(n)}export{Gn as a,Q as b,Vn as c,Un as l,wn as t}; +import{W as un,X as I,Y,Z,_ as fn}from"./mermaid.core-CLEyumap.js";import{i as cn}from"./init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function Q(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=Q(F),dn=sn.right;Q(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function _(n){return n}var H=Array.prototype.map,J=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?_:jn(H.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?_:Pn(H.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?J[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=J[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var K=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Xn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Bn:Xn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Vn(){return On()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Vn();return n.copy=function(){return Gn(n,Un())},cn.apply(n,arguments),Zn(n)}export{Gn as a,Q as b,Vn as c,Un as l,wn as t}; diff --git a/deploy/server/notebase/assets/mermaid.core-BRpiNjs-.js b/deploy/server/notebase/assets/mermaid.core-CLEyumap.js similarity index 98% rename from deploy/server/notebase/assets/mermaid.core-BRpiNjs-.js rename to deploy/server/notebase/assets/mermaid.core-CLEyumap.js index 5959c7df12..4ad5f7d72f 100644 --- a/deploy/server/notebase/assets/mermaid.core-BRpiNjs-.js +++ b/deploy/server/notebase/assets/mermaid.core-CLEyumap.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-3d4e48cf-BSqYziN3.js","assets/svgDrawCommon-08f97a94-BxUoIeIU.js","assets/index-DFpvp1rn.js","assets/index-eP8xmSAc.css","assets/flowDiagram-66a62f08-BS834x_8.js","assets/flowDb-956e92f1-CrjTimDC.js","assets/graph-Bqo8LFRO.js","assets/layout-e9igZ_Vb.js","assets/styles-c10674c1-DaH9xpKF.js","assets/index-3862675e-BjItSQO6.js","assets/clone-C_jSdwol.js","assets/edges-e0da2a9e-Bx6yyD_A.js","assets/createText-2e5e7dd3-_UBRrGW4.js","assets/line-kJpnB43P.js","assets/array-BKyUJesY.js","assets/path-CbwjOpE9.js","assets/channel-BcV_jLhP.js","assets/flowDiagram-v2-96b9c2cf-lmbQs4by.js","assets/erDiagram-9861fffd-seY5Sb-y.js","assets/gitGraphDiagram-72cf32ee-B5qJwgjK.js","assets/ganttDiagram-c361ad54-BIYXEZbj.js","assets/linear-DCGWotbG.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-f8f76790-CiEeDDYE.js","assets/pieDiagram-8a3498a8-Byowwp7E.js","assets/arc-Cb_wyWgX.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-120e2f19-CSu98yVs.js","assets/xychartDiagram-e933f94c-AH_oESFX.js","assets/requirementDiagram-deff3bca-91ycfj4X.js","assets/sequenceDiagram-704730f1-CGZmNzMJ.js","assets/classDiagram-70f12bd4-B-Rd6-NF.js","assets/styles-9a916d00-CMxTlbUn.js","assets/classDiagram-v2-f2320105-BqCjzFcO.js","assets/stateDiagram-587899a1-DGSZybvb.js","assets/styles-6aaf32cf-BPvqRBVt.js","assets/stateDiagram-v2-d93cdb3a-CAo6W-m6.js","assets/journeyDiagram-49397b02-D1bocf1Q.js","assets/flowchart-elk-definition-4a651766-DPls5GBE.js","assets/timeline-definition-85554ec2-B6W68VWC.js","assets/mindmap-definition-fc14e90a-BTWakWr7.js","assets/sankeyDiagram-04a897e0-BLCglvL0.js","assets/Tableau10-B-NsZVaP.js","assets/blockDiagram-38ab4fdb-Dy_KKNjq.js"])))=>i.map(i=>d[i]); -import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h as ja,j as Ga,k as Xa,l as Oo,m as Ka,n as Za,s as Qa,p as Ja,q as tl,_ as I}from"./index-DFpvp1rn.js";var el=Ua(Object.keys,Object),il=Object.prototype,rl=il.hasOwnProperty;function nl(t){if(!Mo(t))return el(t);var e=[];for(var i in Object(t))rl.call(t,i)&&i!="constructor"&&e.push(i);return e}var ur=Si(wi,"DataView"),dr=Si(wi,"Promise"),fr=Si(wi,"Set"),pr=Si(wi,"WeakMap"),En="[object Map]",ol="[object Object]",Mn="[object Promise]",In="[object Set]",On="[object WeakMap]",Dn="[object DataView]",sl=le(ur),al=le(cr),ll=le(dr),hl=le(fr),cl=le(pr),Ot=Io;(ur&&Ot(new ur(new ArrayBuffer(1)))!=Dn||cr&&Ot(new cr)!=En||dr&&Ot(dr.resolve())!=Mn||fr&&Ot(new fr)!=In||pr&&Ot(new pr)!=On)&&(Ot=function(t){var e=Io(t),i=e==ol?t.constructor:void 0,r=i?le(i):"";if(r)switch(r){case sl:return Dn;case al:return En;case ll:return Mn;case hl:return In;case cl:return On}return e});var ul="[object Map]",dl="[object Set]",fl=Object.prototype,pl=fl.hasOwnProperty;function Zi(t){if(t==null)return!0;if(Ya(t)&&(Va(t)||typeof t=="string"||typeof t.splice=="function"||ja(t)||Ga(t)||Xa(t)))return!t.length;var e=Ot(t);if(e==ul||e==dl)return!t.size;if(Mo(t))return!nl(t).length;for(var i in t)if(pl.call(t,i))return!1;return!0}var gl="Expected a function";function Re(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gl);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Re.Cache||Oo),i}Re.Cache=Oo;function ml(t){for(var e=[],i=1;ii.map(i=>d[i]); +import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h as ja,j as Ga,k as Xa,l as Oo,m as Ka,n as Za,s as Qa,p as Ja,q as tl,_ as I}from"./index-hnRSc5ud.js";var el=Ua(Object.keys,Object),il=Object.prototype,rl=il.hasOwnProperty;function nl(t){if(!Mo(t))return el(t);var e=[];for(var i in Object(t))rl.call(t,i)&&i!="constructor"&&e.push(i);return e}var ur=Si(wi,"DataView"),dr=Si(wi,"Promise"),fr=Si(wi,"Set"),pr=Si(wi,"WeakMap"),En="[object Map]",ol="[object Object]",Mn="[object Promise]",In="[object Set]",On="[object WeakMap]",Dn="[object DataView]",sl=le(ur),al=le(cr),ll=le(dr),hl=le(fr),cl=le(pr),Ot=Io;(ur&&Ot(new ur(new ArrayBuffer(1)))!=Dn||cr&&Ot(new cr)!=En||dr&&Ot(dr.resolve())!=Mn||fr&&Ot(new fr)!=In||pr&&Ot(new pr)!=On)&&(Ot=function(t){var e=Io(t),i=e==ol?t.constructor:void 0,r=i?le(i):"";if(r)switch(r){case sl:return Dn;case al:return En;case ll:return Mn;case hl:return In;case cl:return On}return e});var ul="[object Map]",dl="[object Set]",fl=Object.prototype,pl=fl.hasOwnProperty;function Zi(t){if(t==null)return!0;if(Ya(t)&&(Va(t)||typeof t=="string"||typeof t.splice=="function"||ja(t)||Ga(t)||Xa(t)))return!t.length;var e=Ot(t);if(e==ul||e==dl)return!t.size;if(Mo(t))return!nl(t).length;for(var i in t)if(pl.call(t,i))return!1;return!0}var gl="Expected a function";function Re(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gl);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Re.Cache||Oo),i}Re.Cache=Oo;function ml(t){for(var e=[],i=1;i `:`
${r}
`).join("").replace(Sr,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:po()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))},zr={getRows:kd,sanitizeText:De,sanitizeTextOrArray:wd,hasBreaks:Bd,splitBreaks:Ad,lineBreakRegex:ze,removeScript:Bs,getUrl:Fd,evaluate:Ls,getMax:Ed,getMin:Md},j=(t,e)=>e?f(t,{s:-40,l:10}):f(t,{s:-40,l:-10}),Ii="#ffffff",Oi="#f2f2f2";let Nd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||f(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||f(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||j(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||j(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||j(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||_(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||_(this.tertiaryColor),this.lineColor=this.lineColor||_(this.background),this.arrowheadColor=this.arrowheadColor||_(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?S(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||S(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||_(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||b(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Rd=t=>{const e=new Nd;return e.calculate(t),e};let Pd=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=b(this.primaryColor,16),this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=_(this.background),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=b(_("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Be(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=S("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=S(this.sectionBkgColor,10),this.taskBorderColor=Be(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Be(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.secondBkg=b(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=b(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=b(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=f(this.primaryColor,{h:64}),this.fillType3=f(this.secondaryColor,{h:64}),this.fillType4=f(this.primaryColor,{h:-64}),this.fillType5=f(this.secondaryColor,{h:-64}),this.fillType6=f(this.primaryColor,{h:128}),this.fillType7=f(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330});for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const qd=t=>{const e=new Pd;return e.calculate(t),e};let $d=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=f(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Be(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const zd=t=>{const e=new $d;return e.calculate(t),e};let Wd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=b("#cde498",10),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.primaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.actorBorder=S(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Hd=t=>{const e=new Wd;return e.calculate(t),e};class Ud{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=b(this.contrast,55),this.background="#ffffff",this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.secondBkg=b(this.contrast,55),this.border2=this.contrast,this.actorBorder=b(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Yd=t=>{const e=new Ud;return e.calculate(t),e},wt={base:{getThemeVariables:Rd},dark:{getThemeVariables:qd},default:{getThemeVariables:zd},forest:{getThemeVariables:Hd},neutral:{getThemeVariables:Yd}},vt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Fs={...vt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:wt.default.getThemeVariables(),sequence:{...vt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...vt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...vt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...vt.pie,useWidth:984},xyChart:{...vt.xyChart,useWidth:void 0},requirement:{...vt.requirement,useWidth:void 0},gitGraph:{...vt.gitGraph,useMaxWidth:!1},sankey:{...vt.sankey,useMaxWidth:!1}},Es=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Es(t[r],"")]:[...i,e+r],[]),Vd=new Set(Es(Fs,"")),jd=Fs,mi=t=>{if(k.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>mi(e));return}for(const e of Object.keys(t)){if(k.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Vd.has(e)||t[e]==null){k.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){k.debug("sanitizing object",e),mi(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(k.debug("sanitizing css option",e),t[e]=Gd(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}k.debug("After sanitization",t)}},Gd=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)Ds(e,i,r)},Ds=(t,e,i)=>{ne[t]?k.error(`Detector with key ${t} already exists`):ne[t]={detector:e,loader:i},k.debug(`Detector with key ${t} added${i?" with loader":""}`)},Kd=t=>ne[t].loader,wr=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>wr(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=wr(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},W=wr,Zd="​",Qd={curveBasis:Ou,curveBasisClosed:Du,curveBasisOpen:Nu,curveBumpX:Mu,curveBumpY:Iu,curveBundle:Ru,curveCardinalClosed:qu,curveCardinalOpen:$u,curveCardinal:Pu,curveCatmullRomClosed:Wu,curveCatmullRomOpen:Hu,curveCatmullRom:zu,curveLinear:Eu,curveLinearClosed:Uu,curveMonotoneX:Yu,curveMonotoneY:Vu,curveNatural:ju,curveStep:Gu,curveStepAfter:Ku,curveStepBefore:Xu},Jd=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tf=function(t,e){const i=Ns(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);mi(s),r=W(r,[...s])}else r=i.args;if(!r)return;let n=Di(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},Ns=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Jd.source})(?=[}][%]{2}).* -`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),k.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Ae.exec(t))!==null;)if(r.index===Ae.lastIndex&&Ae.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return k.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ef=function(t){return t.replace(Ae,"")},rf=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function nf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Qd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Do.sanitizeUrl(i):i}const sf=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=Rs(n,e),e=n});const r=i/2;return Wr(t,r)}function lf(t){return t.length===1?t[0]:af(t)}const mo=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Wr=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Rs(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:mo((1-s)*i.x+s*n.x,5),y:mo((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},hf=(t,e,i)=>{k.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Wr(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function cf(t,e,i){const r=structuredClone(i);k.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Wr(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let _o=0;const df=()=>(_o++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_o);function ff(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nff(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},mf=function(t,e){const i=e.text.replace(zr.lineBreakRegex," "),[,r]=Ur(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},_f=Re((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=_i(`${s} `,i),c=_i(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:g}=yf(s,e,"-",i);n.push(o,...h),o=g}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=Re((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(_i(c,r)>=e){const p=l+1,h=n.length===p,g=`${c}${i}`;o.push(h?c:g),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return Hr(t,e).height}function _i(t,e){return Hr(t,e).width}const Hr=Re((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Ur(i),s=["sans-serif",r],a=t.split(zr.lineBreakRegex),l=[],c=ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const v=gf();v.text=w||Zd;const E=mf(u,v).style("font-size",o).style("font-weight",n).style("font-family",h),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class xf{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ti;const bf=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)};function Ps(t){return"str"in t}const Tf=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Ur=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qs(t,e){return Za({},t,e)}const Le={assignWithDepth:W,wrapLabel:_f,calculateTextHeight:Cf,calculateTextWidth:_i,calculateTextDimensions:Hr,cleanAndMerge:qs,detectInit:tf,detectDirective:Ns,isSubstringInArray:rf,interpolateToCurve:nf,calcLabelPosition:lf,calcCardinalityPosition:hf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:uf,generateId:df,random:pf,runFunc:sf,entityDecode:bf,insertTitle:Tf,parseFontSize:Ur,InitIDGenerator:xf},kf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},vf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},yo="10.9.3",oe=Object.freeze(jd);let K=W({},oe),$s,se=[],Fe=W({},oe);const Ni=(t,e)=>{let i=W({},t),r={};for(const n of e)Hs(n),r=W(r,n);if(i=W(i,r),r.theme&&r.theme in wt){const n=W({},$s),o=W(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in wt&&(i.themeVariables=wt[i.theme].getThemeVariables(o))}return Fe=i,Us(Fe),Fe},Sf=t=>(K=W({},oe),K=W(K,t),t.theme&&wt[t.theme]&&(K.themeVariables=wt[t.theme].getThemeVariables(t.themeVariables)),Ni(K,se),K),wf=t=>{$s=W({},t)},Bf=t=>(K=W(K,t),Ni(K,se),K),zs=()=>W({},K),Ws=t=>(Us(t),W(Fe,t),_t()),_t=()=>W({},Fe),Hs=t=>{t&&(["secure",...K.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Hs(t[e])}))},Af=t=>{mi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),se.push(t),Ni(K,se)},yi=(t=K)=>{se=[],Ni(t,se)},Lf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Co={},Ff=t=>{Co[t]||(k.warn(Lf[t]),Co[t]=!0)},Us=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ff("LAZY_LOAD_DEPRECATED")},Ys="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Mf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-BSqYziN3.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ys,diagram:t}},If={id:Ys,detector:Ef,loader:Mf},Of=If,Vs="flowchart",Df=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-BS834x_8.js");return{diagram:e}},__vite__mapDeps([4,5,6,2,3,7,8,9,10,11,12,13,14,15,16]));return{id:Vs,diagram:t}},Rf={id:Vs,detector:Df,loader:Nf},Pf=Rf,js="flowchart-v2",qf=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},$f=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-lmbQs4by.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,2,3,9,7,10,11,12,13,14,15,16]));return{id:js,diagram:t}},zf={id:js,detector:qf,loader:$f},Wf=zf,Gs="er",Hf=t=>/^\s*erDiagram/.test(t),Uf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-seY5Sb-y.js");return{diagram:e}},__vite__mapDeps([18,6,2,3,7,13,14,15]));return{id:Gs,diagram:t}},Yf={id:Gs,detector:Hf,loader:Uf},Vf=Yf,Xs="gitGraph",jf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-B5qJwgjK.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Xs,diagram:t}},Xf={id:Xs,detector:jf,loader:Gf},Kf=Xf,Ks="gantt",Zf=t=>/^\s*gantt/.test(t),Qf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-BIYXEZbj.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Ks,diagram:t}},Jf={id:Ks,detector:Zf,loader:Qf},tp=Jf,Zs="info",ep=t=>/^\s*info/.test(t),ip=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-CiEeDDYE.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Zs,diagram:t}},rp={id:Zs,detector:ep,loader:ip},Qs="pie",np=t=>/^\s*pie/.test(t),op=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-Byowwp7E.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qs,diagram:t}},sp={id:Qs,detector:np,loader:op},Js="quadrantChart",ap=t=>/^\s*quadrantChart/.test(t),lp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-CSu98yVs.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:Js,diagram:t}},hp={id:Js,detector:ap,loader:lp},cp=hp,ta="xychart",up=t=>/^\s*xychart-beta/.test(t),dp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-AH_oESFX.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:ta,diagram:t}},fp={id:ta,detector:up,loader:dp},pp=fp,ea="requirement",gp=t=>/^\s*requirement(Diagram)?/.test(t),mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-91ycfj4X.js");return{diagram:e}},__vite__mapDeps([29,6,2,3,7,13,14,15]));return{id:ea,diagram:t}},_p={id:ea,detector:gp,loader:mp},yp=_p,ia="sequence",Cp=t=>/^\s*sequenceDiagram/.test(t),xp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-CGZmNzMJ.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:ia,diagram:t}},bp={id:ia,detector:Cp,loader:xp},Tp=bp,ra="class",kp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},vp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-B-Rd6-NF.js");return{diagram:e}},__vite__mapDeps([31,32,6,2,3,7,13,14,15]));return{id:ra,diagram:t}},Sp={id:ra,detector:kp,loader:vp},wp=Sp,na="classDiagram",Bp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ap=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-BqCjzFcO.js");return{diagram:e}},__vite__mapDeps([33,32,6,2,3,9,7,10,11,12,13,14,15]));return{id:na,diagram:t}},Lp={id:na,detector:Bp,loader:Ap},Fp=Lp,oa="state",Ep=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-DGSZybvb.js");return{diagram:e}},__vite__mapDeps([34,35,6,2,3,7,13,14,15]));return{id:oa,diagram:t}},Ip={id:oa,detector:Ep,loader:Mp},Op=Ip,sa="stateDiagram",Dp=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Np=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-CAo6W-m6.js");return{diagram:e}},__vite__mapDeps([36,35,6,2,3,9,7,10,11,12,13,14,15]));return{id:sa,diagram:t}},Rp={id:sa,detector:Dp,loader:Np},Pp=Rp,aa="journey",qp=t=>/^\s*journey/.test(t),$p=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-D1bocf1Q.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:aa,diagram:t}},zp={id:aa,detector:qp,loader:$p},Wp=zp,Hp=function(t,e){for(let i of e)t.attr(i[0],i[1])},Up=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},la=function(t,e,i,r){const n=Up(e,i,r);Hp(t,n)},Yp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;k.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;k.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,k.info(`Calculated bounds: ${a}x${l}`),la(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},si={},Vp=(t,e,i)=>{let r="";return t in si&&si[t]?r=si[t](i):k.warn(`No theme found for ${t}`),` & { +`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),k.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Ae.exec(t))!==null;)if(r.index===Ae.lastIndex&&Ae.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return k.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ef=function(t){return t.replace(Ae,"")},rf=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function nf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Qd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Do.sanitizeUrl(i):i}const sf=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=Rs(n,e),e=n});const r=i/2;return Wr(t,r)}function lf(t){return t.length===1?t[0]:af(t)}const mo=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Wr=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Rs(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:mo((1-s)*i.x+s*n.x,5),y:mo((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},hf=(t,e,i)=>{k.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Wr(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function cf(t,e,i){const r=structuredClone(i);k.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Wr(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let _o=0;const df=()=>(_o++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_o);function ff(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nff(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},mf=function(t,e){const i=e.text.replace(zr.lineBreakRegex," "),[,r]=Ur(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},_f=Re((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=_i(`${s} `,i),c=_i(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:g}=yf(s,e,"-",i);n.push(o,...h),o=g}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=Re((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(_i(c,r)>=e){const p=l+1,h=n.length===p,g=`${c}${i}`;o.push(h?c:g),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return Hr(t,e).height}function _i(t,e){return Hr(t,e).width}const Hr=Re((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Ur(i),s=["sans-serif",r],a=t.split(zr.lineBreakRegex),l=[],c=ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const v=gf();v.text=w||Zd;const E=mf(u,v).style("font-size",o).style("font-weight",n).style("font-family",h),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class xf{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ti;const bf=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)};function Ps(t){return"str"in t}const Tf=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Ur=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qs(t,e){return Za({},t,e)}const Le={assignWithDepth:W,wrapLabel:_f,calculateTextHeight:Cf,calculateTextWidth:_i,calculateTextDimensions:Hr,cleanAndMerge:qs,detectInit:tf,detectDirective:Ns,isSubstringInArray:rf,interpolateToCurve:nf,calcLabelPosition:lf,calcCardinalityPosition:hf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:uf,generateId:df,random:pf,runFunc:sf,entityDecode:bf,insertTitle:Tf,parseFontSize:Ur,InitIDGenerator:xf},kf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},vf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},yo="10.9.3",oe=Object.freeze(jd);let K=W({},oe),$s,se=[],Fe=W({},oe);const Ni=(t,e)=>{let i=W({},t),r={};for(const n of e)Hs(n),r=W(r,n);if(i=W(i,r),r.theme&&r.theme in wt){const n=W({},$s),o=W(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in wt&&(i.themeVariables=wt[i.theme].getThemeVariables(o))}return Fe=i,Us(Fe),Fe},Sf=t=>(K=W({},oe),K=W(K,t),t.theme&&wt[t.theme]&&(K.themeVariables=wt[t.theme].getThemeVariables(t.themeVariables)),Ni(K,se),K),wf=t=>{$s=W({},t)},Bf=t=>(K=W(K,t),Ni(K,se),K),zs=()=>W({},K),Ws=t=>(Us(t),W(Fe,t),_t()),_t=()=>W({},Fe),Hs=t=>{t&&(["secure",...K.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Hs(t[e])}))},Af=t=>{mi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),se.push(t),Ni(K,se)},yi=(t=K)=>{se=[],Ni(t,se)},Lf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Co={},Ff=t=>{Co[t]||(k.warn(Lf[t]),Co[t]=!0)},Us=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ff("LAZY_LOAD_DEPRECATED")},Ys="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Mf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-DCoD1Ed5.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ys,diagram:t}},If={id:Ys,detector:Ef,loader:Mf},Of=If,Vs="flowchart",Df=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-BQR4i0rK.js");return{diagram:e}},__vite__mapDeps([4,5,6,2,3,7,8,9,10,11,12,13,14,15,16]));return{id:Vs,diagram:t}},Rf={id:Vs,detector:Df,loader:Nf},Pf=Rf,js="flowchart-v2",qf=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},$f=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-Bs652uf5.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,2,3,9,7,10,11,12,13,14,15,16]));return{id:js,diagram:t}},zf={id:js,detector:qf,loader:$f},Wf=zf,Gs="er",Hf=t=>/^\s*erDiagram/.test(t),Uf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-UFcxwGGb.js");return{diagram:e}},__vite__mapDeps([18,6,2,3,7,13,14,15]));return{id:Gs,diagram:t}},Yf={id:Gs,detector:Hf,loader:Uf},Vf=Yf,Xs="gitGraph",jf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-Cbit1_Nq.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Xs,diagram:t}},Xf={id:Xs,detector:jf,loader:Gf},Kf=Xf,Ks="gantt",Zf=t=>/^\s*gantt/.test(t),Qf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-CL2W0VK9.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Ks,diagram:t}},Jf={id:Ks,detector:Zf,loader:Qf},tp=Jf,Zs="info",ep=t=>/^\s*info/.test(t),ip=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-_WLEWeGB.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Zs,diagram:t}},rp={id:Zs,detector:ep,loader:ip},Qs="pie",np=t=>/^\s*pie/.test(t),op=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-BXxc3qFT.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qs,diagram:t}},sp={id:Qs,detector:np,loader:op},Js="quadrantChart",ap=t=>/^\s*quadrantChart/.test(t),lp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-E02pNj4k.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:Js,diagram:t}},hp={id:Js,detector:ap,loader:lp},cp=hp,ta="xychart",up=t=>/^\s*xychart-beta/.test(t),dp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-Dt8EMtG3.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:ta,diagram:t}},fp={id:ta,detector:up,loader:dp},pp=fp,ea="requirement",gp=t=>/^\s*requirement(Diagram)?/.test(t),mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-CDvJoZhV.js");return{diagram:e}},__vite__mapDeps([29,6,2,3,7,13,14,15]));return{id:ea,diagram:t}},_p={id:ea,detector:gp,loader:mp},yp=_p,ia="sequence",Cp=t=>/^\s*sequenceDiagram/.test(t),xp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-ijolM7hd.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:ia,diagram:t}},bp={id:ia,detector:Cp,loader:xp},Tp=bp,ra="class",kp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},vp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-BdU7mERo.js");return{diagram:e}},__vite__mapDeps([31,32,6,2,3,7,13,14,15]));return{id:ra,diagram:t}},Sp={id:ra,detector:kp,loader:vp},wp=Sp,na="classDiagram",Bp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ap=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-CSFL06mI.js");return{diagram:e}},__vite__mapDeps([33,32,6,2,3,9,7,10,11,12,13,14,15]));return{id:na,diagram:t}},Lp={id:na,detector:Bp,loader:Ap},Fp=Lp,oa="state",Ep=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-DdZTtkcS.js");return{diagram:e}},__vite__mapDeps([34,35,6,2,3,7,13,14,15]));return{id:oa,diagram:t}},Ip={id:oa,detector:Ep,loader:Mp},Op=Ip,sa="stateDiagram",Dp=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Np=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-CY4CBQtD.js");return{diagram:e}},__vite__mapDeps([36,35,6,2,3,9,7,10,11,12,13,14,15]));return{id:sa,diagram:t}},Rp={id:sa,detector:Dp,loader:Np},Pp=Rp,aa="journey",qp=t=>/^\s*journey/.test(t),$p=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-Bvmnb9ly.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:aa,diagram:t}},zp={id:aa,detector:qp,loader:$p},Wp=zp,Hp=function(t,e){for(let i of e)t.attr(i[0],i[1])},Up=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},la=function(t,e,i,r){const n=Up(e,i,r);Hp(t,n)},Yp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;k.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;k.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,k.info(`Calculated bounds: ${a}x${l}`),la(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},si={},Vp=(t,e,i)=>{let r="";return t in si&&si[t]?r=si[t](i):k.warn(`No theme found for ${t}`),` & { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} @@ -62,7 +62,7 @@ import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h ${e} `},jp=(t,e)=>{e!==void 0&&(si[t]=e)},Gp=Vp;let Yr="",Vr="",jr="";const Gr=t=>De(t,_t()),Xp=()=>{Yr="",jr="",Vr=""},Kp=t=>{Yr=Gr(t).replace(/^\s+/g,"")},Zp=()=>Yr,Qp=t=>{jr=Gr(t).replace(/\n\s+/g,` `)},Jp=()=>jr,tg=t=>{Vr=Gr(t)},eg=()=>Vr,ig=Object.freeze(Object.defineProperty({__proto__:null,clear:Xp,getAccDescription:Jp,getAccTitle:Zp,getDiagramTitle:eg,setAccDescription:Qp,setAccTitle:Kp,setDiagramTitle:tg},Symbol.toStringTag,{value:"Module"})),rg=k,ng=$r,Xr=_t,A_=Ws,L_=oe,og=t=>De(t,Xr()),sg=Yp,ag=()=>ig,Ci={},xi=(t,e,i)=>{var r;if(Ci[t])throw new Error(`Diagram ${t} already registered.`);Ci[t]=e,i&&Ds(t,i),jp(t,e.styles),(r=e.injectUtils)==null||r.call(e,rg,ng,Xr,og,sg,ag(),()=>{})},Kr=t=>{if(t in Ci)return Ci[t];throw new lg(t)};class lg extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const hg=t=>{var e;const{securityLevel:i}=Xr();let r=ot("body");if(i==="sandbox"){const s=((e=ot(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=ot(s.body)}return r.select(`#${t}`)},cg=(t,e,i)=>{k.debug(`rendering svg for syntax error -`);const r=hg(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),la(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},ha={draw:cg},ug=ha,dg={db:{},renderer:ha,parser:{parser:{yy:{}},parse:()=>{}}},fg=dg,ca="flowchart-elk",pg=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-DPls5GBE.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ca,diagram:t}},mg={id:ca,detector:pg,loader:gg},_g=mg,ua="timeline",yg=t=>/^\s*timeline/.test(t),Cg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-B6W68VWC.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:ua,diagram:t}},xg={id:ua,detector:yg,loader:Cg},bg=xg,da="mindmap",Tg=t=>/^\s*mindmap/.test(t),kg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-BTWakWr7.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:da,diagram:t}},vg={id:da,detector:Tg,loader:kg},Sg=vg,fa="sankey",wg=t=>/^\s*sankey-beta/.test(t),Bg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-BLCglvL0.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:fa,diagram:t}},Ag={id:fa,detector:wg,loader:Bg},Lg=Ag,pa="block",Fg=t=>/^\s*block-beta/.test(t),Eg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-Dy_KKNjq.js");return{diagram:e}},__vite__mapDeps([43,10,6,2,3,11,12,13,14,15,26,22,16,42]));return{id:pa,diagram:t}},Mg={id:pa,detector:Fg,loader:Eg},Ig=Mg;let xo=!1;const Zr=()=>{xo||(xo=!0,xi("error",fg,t=>t.toLowerCase().trim()==="error"),xi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Os(Of,Fp,wp,Vf,tp,rp,sp,yp,Tp,_g,Wf,Pf,Sg,bg,Kf,Pp,Op,Wp,cp,Lg,pp,Ig))};class ga{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=kf(e),this.text+=` +`);const r=hg(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),la(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},ha={draw:cg},ug=ha,dg={db:{},renderer:ha,parser:{parser:{yy:{}},parse:()=>{}}},fg=dg,ca="flowchart-elk",pg=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-Da4DL3XI.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ca,diagram:t}},mg={id:ca,detector:pg,loader:gg},_g=mg,ua="timeline",yg=t=>/^\s*timeline/.test(t),Cg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-CtFMoSI1.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:ua,diagram:t}},xg={id:ua,detector:yg,loader:Cg},bg=xg,da="mindmap",Tg=t=>/^\s*mindmap/.test(t),kg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-BloMY9tO.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:da,diagram:t}},vg={id:da,detector:Tg,loader:kg},Sg=vg,fa="sankey",wg=t=>/^\s*sankey-beta/.test(t),Bg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-DOdrz2qg.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:fa,diagram:t}},Ag={id:fa,detector:wg,loader:Bg},Lg=Ag,pa="block",Fg=t=>/^\s*block-beta/.test(t),Eg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-CH60GUfO.js");return{diagram:e}},__vite__mapDeps([43,10,6,2,3,11,12,13,14,15,26,22,16,42]));return{id:pa,diagram:t}},Mg={id:pa,detector:Fg,loader:Eg},Ig=Mg;let xo=!1;const Zr=()=>{xo||(xo=!0,xi("error",fg,t=>t.toLowerCase().trim()==="error"),xi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Os(Of,Fp,wp,Vf,tp,rp,sp,yp,Tp,_g,Wf,Pf,Sg,bg,Kf,Pp,Op,Wp,cp,Lg,pp,Ig))};class ga{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=kf(e),this.text+=` `;const r=_t();try{this.type=Di(e,r)}catch(o){this.type="error",this.detectError=o}const n=Kr(this.type);k.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=_t();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Og=async(t,e={})=>{const i=Di(t,_t());try{Kr(i)}catch{const n=Kd(i);if(!n)throw new Is(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();xi(o,s)}return new ga(t,e)};let bo=[];const Dg=()=>{bo.forEach(t=>{t()}),bo=[]},Ng="graphics-document document";function Rg(t,e){t.attr("role",Ng),e!==""&&t.attr("aria-roledescription",e)}function Pg(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const qg=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ma(t){return typeof t>"u"||t===null}function $g(t){return typeof t=="object"&&t!==null}function zg(t){return Array.isArray(t)?t:ma(t)?[]:[t]}function Wg(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;ia&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function ar(t,e){return V.repeat(" ",e-t.length)+t}function Zg(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,p=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=sr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),p),a=V.repeat(" ",e.indent)+ar((t.line-l+1).toString(),u)+" | "+c.str+` diff --git a/deploy/server/notebase/assets/mindmap-definition-fc14e90a-BTWakWr7.js b/deploy/server/notebase/assets/mindmap-definition-fc14e90a-BloMY9tO.js similarity index 99% rename from deploy/server/notebase/assets/mindmap-definition-fc14e90a-BTWakWr7.js rename to deploy/server/notebase/assets/mindmap-definition-fc14e90a-BloMY9tO.js index 7824e261c8..6ebe51890d 100644 --- a/deploy/server/notebase/assets/mindmap-definition-fc14e90a-BTWakWr7.js +++ b/deploy/server/notebase/assets/mindmap-definition-fc14e90a-BloMY9tO.js @@ -1,4 +1,4 @@ -import{l as Sr,c as Ai,N as Pu,t as Nu,P as hn,d as dn,h as Mu,a6 as ku,a7 as Bu,a8 as Fu,T as Gu}from"./mermaid.core-BRpiNjs-.js";import{S as Li,g as zu}from"./index-DFpvp1rn.js";import{a as _u}from"./createText-2e5e7dd3-_UBRrGW4.js";function We(t){"@babel/helpers - typeof";return We=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(t)}function fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vu(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(l){throw l},f:n}}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 i=!0,s=!1,o;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}}}var $e=typeof window>"u"?null:window,is=$e?$e.navigator:null;$e&&$e.document;var qu=We(""),Lo=We({}),Ku=We(function(){}),Zu=typeof HTMLElement>"u"?"undefined":We(HTMLElement),Oa=function(e){return e&&e.instanceString&&Ve(e.instanceString)?e.instanceString():null},ce=function(e){return e!=null&&We(e)==qu},Ve=function(e){return e!=null&&We(e)===Ku},Me=function(e){return!xt(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Ae=function(e){return e!=null&&We(e)===Lo&&!Me(e)&&e.constructor===Object},Qu=function(e){return e!=null&&We(e)===Lo},re=function(e){return e!=null&&We(e)===We(1)&&!isNaN(e)},Ju=function(e){return re(e)&&Math.floor(e)===e},gn=function(e){if(Zu!=="undefined")return e!=null&&e instanceof HTMLElement},xt=function(e){return Pa(e)||Ro(e)},Pa=function(e){return Oa(e)==="collection"&&e._private.single},Ro=function(e){return Oa(e)==="collection"&&!e._private.single},Ii=function(e){return Oa(e)==="core"},Io=function(e){return Oa(e)==="stylesheet"},ju=function(e){return Oa(e)==="event"},ar=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},ef=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},tf=function(e){return Ae(e)&&re(e.x1)&&re(e.x2)&&re(e.y1)&&re(e.y2)},rf=function(e){return Qu(e)&&Ve(e.then)},af=function(){return is&&is.userAgent.match(/msie|trident|edge/i)},wa=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},cf=function(e,r){return-1*Po(e,r)},he=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(p-=1),p<1/6?d+(g-d)*6*p:p<1/2?g:p<2/3?d+(g-d)*(2/3-p)*6:d}var c=new RegExp("^"+of+"$").exec(e);if(c){if(a=parseInt(c[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(c[2]),n<0||n>100||(n=n/100,i=parseFloat(c[3]),i<0||i>100)||(i=i/100,s=c[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,v=2*i-h;o=Math.round(255*f(v,h,a+1/3)),l=Math.round(255*f(v,h,a)),u=Math.round(255*f(v,h,a-1/3))}r=[o,l,u,s]}return r},df=function(e){var r,a=new RegExp("^"+nf+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},gf=function(e){return pf[e.toLowerCase()]},No=function(e){return(Me(e)?e:null)||gf(e)||vf(e)||df(e)||hf(e)},pf={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Mo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i=e||w<0||c&&x>=i}function y(){var D=Xn();if(p(D))return b(D);o=setTimeout(y,g(D))}function b(D){return o=void 0,h&&a?v(D):(a=n=void 0,s)}function m(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function E(){return o===void 0?s:b(Xn())}function C(){var D=Xn(),w=p(D);if(a=arguments,n=this,l=D,w){if(o===void 0)return d(l);if(c)return clearTimeout(o),o=setTimeout(y,e),v(l)}return o===void 0&&(o=setTimeout(y,e)),s}return C.cancel=m,C.flush=E,C}var Ma=ec,Wn=$e?$e.performance:null,Go=Wn&&Wn.now?function(){return Wn.now()}:function(){return Date.now()},tc=function(){if($e){if($e.requestAnimationFrame)return function(t){$e.requestAnimationFrame(t)};if($e.mozRequestAnimationFrame)return function(t){$e.mozRequestAnimationFrame(t)};if($e.webkitRequestAnimationFrame)return function(t){$e.webkitRequestAnimationFrame(t)};if($e.msRequestAnimationFrame)return function(t){$e.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(Go())},1e3/60)}}(),pn=function(e){return tc(e)},Xt=Go,kr=9261,zo=65599,va=5381,_o=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr,a=r,n;n=e.next(),!n.done;)a=a*zo+n.value|0;return a},Ea=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr;return r*zo+e|0},xa=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:va;return(r<<5)+r+e|0},rc=function(e,r){return e*2097152+r},Qt=function(e){return e[0]*2097152+e[1]},Ya=function(e,r){return[Ea(e[0],r[0]),xa(e[1],r[1])]},ac=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0;n--)e[n]===r&&e.splice(n,1)},Mi=function(e){e.splice(0,e.length)},fc=function(e,r){for(var a=0;a"u"?"undefined":We(Set))!==vc?Set:hc,Rn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Ii(e)){_e("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){_e("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Xr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Me(r.classes)?u=r.classes:ce(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,c=u.length;fb?1:0},f=function(y,b,m,E,C){var D;if(m==null&&(m=0),C==null&&(C=a),m<0)throw new Error("lo must be non-negative");for(E==null&&(E=y.length);mS;0<=S?T++:T--)x.push(T);return x}).apply(this).reverse(),w=[],E=0,C=D.length;EA;0<=A?++x:--x)L.push(s(y,m));return L},g=function(y,b,m,E){var C,D,w;for(E==null&&(E=a),C=y[m];m>b;){if(w=m-1>>1,D=y[w],E(C,D)<0){y[m]=D,m=w;continue}break}return y[m]=C},p=function(y,b,m){var E,C,D,w,x;for(m==null&&(m=a),C=y.length,x=b,D=y[b],E=2*b+1;E0;){var D=b.pop(),w=p(D),x=D.id();if(h[x]=w,w!==1/0)for(var T=D.neighborhood().intersect(d),S=0;S0)for(M.unshift(k);c[z];){var F=c[z];M.unshift(F.edge),M.unshift(F.node),B=F.node,z=B.id()}return o.spawn(M)}}}},yc={kruskal:function(e){e=e||function(m){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(E){for(var C=0;C0;){if(C(),w++,E===f){for(var x=[],T=i,S=f,A=y[S];x.unshift(T),A!=null&&x.unshift(A),T=p[S],T!=null;)S=T.id(),A=y[S];return{found:!0,distance:c[E],path:this.spawn(x),steps:w}}v[E]=!0;for(var L=m._private.edges,I=0;IA&&(d[S]=A,b[S]=T,m[S]=C),!i){var L=T*f+x;!i&&d[L]>A&&(d[L]=A,b[L]=x,m[L]=C)}}}for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:s,pe=m(ue),ye=[],de=pe;;){if(de==null)return r.spawn();var me=b(de),xe=me.edge,De=me.pred;if(ye.unshift(de[0]),de.same(le)&&ye.length>0)break;xe!=null&&ye.unshift(xe),de=De}return l.spawn(ye)},D=0;D=0;f--){var c=u[f],h=c[1],v=c[2];(r[h]===o&&r[v]===l||r[h]===l&&r[v]===o)&&u.splice(f,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*r.length);r=Dc(i,e,r),a--}return r},Sc={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(M){return M.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Cc);if(i<2){_e("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(h,v){return h-v});var f=e.length,c=Math.floor(f/2);return f%2!==0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},Pc=function(e){return Math.PI*e/180},$a=function(e,r){return Math.atan2(r,e)-Math.PI/2},ki=Math.log2||function(t){return Math.log(t)/Math.log(2)},Wo=function(e){return e>0?1:e<0?-1:0},Er=function(e,r){return Math.sqrt(gr(e,r))},gr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Nc=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},kc=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Bc=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Fc=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},qo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Gc=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},an=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},nn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=je(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},hs=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Bi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Yr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},zc=function(e,r){return Yr(e,r.x,r.y)},Ko=function(e,r){return Yr(e,r.x1,r.y1)&&Yr(e,r.x2,r.y2)},Zo=function(e,r,a,n,i,s,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?xr(i,s):l,f=i/2,c=s/2;u=Math.min(u,f,c);var h=u!==f,v=u!==c,d;if(h){var g=a-f+u-o,p=n-c-o,y=a+f-u+o,b=p;if(d=er(e,r,a,n,g,p,y,b,!1),d.length>0)return d}if(v){var m=a+f+o,E=n-c+u-o,C=m,D=n+c-u+o;if(d=er(e,r,a,n,m,E,C,D,!1),d.length>0)return d}if(h){var w=a-f+u-o,x=n+c+o,T=a+f-u+o,S=x;if(d=er(e,r,a,n,w,x,T,S,!1),d.length>0)return d}if(v){var A=a-f-o,L=n-c+u-o,I=A,R=n+c-u+o;if(d=er(e,r,a,n,A,L,I,R,!1),d.length>0)return d}var P;{var N=a-f+u,k=n-c+u;if(P=ha(e,r,a,n,N,k,u+o),P.length>0&&P[0]<=N&&P[1]<=k)return[P[0],P[1]]}{var M=a+f-u,B=n-c+u;if(P=ha(e,r,a,n,M,B,u+o),P.length>0&&P[0]>=M&&P[1]<=B)return[P[0],P[1]]}{var z=a+f-u,F=n+c-u;if(P=ha(e,r,a,n,z,F,u+o),P.length>0&&P[0]>=z&&P[1]>=F)return[P[0],P[1]]}{var G=a-f+u,H=n+c-u;if(P=ha(e,r,a,n,G,H,u+o),P.length>0&&P[0]<=G&&P[1]>=H)return[P[0],P[1]]}return[]},_c=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),c=Math.min(n,s),h=Math.max(n,s);return u-l<=e&&e<=f+l&&c-l<=r&&r<=h+l},Vc=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ef.x2||rf.y2)},Uc=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},Yc=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,c,h,v,d;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,v=r/3,o>0){c=u+Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),h=u-Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-v+c+h,v+=(c+h)/2,i[4]=i[2]=-v,v=Math.sqrt(3)*(-h+c)/2,i[3]=v,i[5]=-v;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-v+2*d,i[4]=i[2]=-(d+v);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),d=2*Math.sqrt(l),i[0]=-v+d*Math.cos(f/3),i[2]=-v+d*Math.cos((f+2*Math.PI)/3),i[4]=-v+d*Math.cos((f+4*Math.PI)/3)},$c=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,c=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,h=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,v=[];Yc(u,f,c,h,v);for(var d=1e-7,g=[],p=0;p<6;p+=2)Math.abs(v[p+1])=0&&v[p]<=1&&g.push(v[p]);g.push(1),g.push(0);for(var y=-1,b,m,E,C=0;C=0?Eu?(e-i)*(e-i)+(r-s)*(r-s):f-h},pt=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},Wt=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),c;l[0]!=null?(c=Math.atan(l[1]/l[0]),l[0]<0?c=c+Math.PI/2:c=-c-Math.PI/2):c=l;for(var h=Math.cos(-c),v=Math.sin(-c),d=0;d0){var p=bn(f,-u);g=mn(p)}else g=f;return pt(e,r,g)},Xc=function(e,r,a,n,i,s,o,l){for(var u=new Array(a.length*2),f=0;f=0&&p<=1&&b.push(p),y>=0&&y<=1&&b.push(y),b.length===0)return[];var m=b[0]*l[0]+e,E=b[0]*l[1]+r;if(b.length>1){if(b[0]==b[1])return[m,E];var C=b[1]*l[0]+e,D=b[1]*l[1]+r;return[m,E,C,D]}else return[m,E]},Kn=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},er=function(e,r,a,n,i,s,o,l,u){var f=e-i,c=a-e,h=o-i,v=r-s,d=n-r,g=l-s,p=h*v-g*f,y=c*v-d*f,b=g*c-h*d;if(b!==0){var m=p/b,E=y/b,C=.001,D=0-C,w=1+C;return D<=m&&m<=w&&D<=E&&E<=w?[e+m*c,r+m*d]:u?[e+m*c,r+m*d]:[]}else return p===0||y===0?Kn(e,a,o)===o?[o,l]:Kn(e,a,i)===i?[i,s]:Kn(i,o,a)===a?[a,n]:[]:[]},Da=function(e,r,a,n,i,s,o,l){var u=[],f,c=new Array(a.length),h=!0;s==null&&(h=!1);var v;if(h){for(var d=0;d0){var g=bn(c,-l);v=mn(g)}else v=c}else v=a;for(var p,y,b,m,E=0;E2){for(var d=[f[0],f[1]],g=Math.pow(d[0]-e,2)+Math.pow(d[1]-r,2),p=1;pf&&(f=E)},get:function(m){return u[m]}},h=0;h0?N=P.edgesTo(R)[0]:N=R.edgesTo(P)[0];var k=n(N);R=R.id(),x[R]>x[L]+k&&(x[R]=x[L]+k,T.nodes.indexOf(R)<0?T.push(R):T.updateItem(R),w[R]=0,D[R]=[]),x[R]==x[L]+k&&(w[R]=w[R]+w[L],D[R].push(L))}else for(var M=0;M0;){for(var G=C.pop(),H=0;H0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},lv=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:cv,o=n,l,u,f=0;f=2?ia(e,r,a,0,ms,vv):ia(e,r,a,0,ys)},squaredEuclidean:function(e,r,a){return ia(e,r,a,0,ms)},manhattan:function(e,r,a){return ia(e,r,a,0,ys)},max:function(e,r,a){return ia(e,r,a,-1/0,hv)}};$r["squared-euclidean"]=$r.squaredEuclidean;$r.squaredeuclidean=$r.squaredEuclidean;function On(t,e,r,a,n,i){var s;return Ve(t)?s=t:s=$r[t]||$r.euclidean,e===0&&Ve(t)?s(n,i):s(e,r,a,n,i)}var dv=et({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Gi=function(e){return dv(e)},wn=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(c){return a[c]}:function(c){return n[c](a)},l=function(h){return n[h](r)},u=a,f=r;return On(e,n.length,o,l,u,f)},Zn=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1}return!0},yv=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var c=0;c=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],g=r[n[s]],p;i.mode==="dendrogram"?p={left:d,right:g,key:d.key}:p={value:d.value.concat(g.value),key:d.key},e[d.index]=p,e.splice(g.index,1),r[d.key]=p;for(var y=0;ya[g.key][b.key]&&(l=a[g.key][b.key])):i.linkage==="max"?(l=a[d.key][b.key],a[d.key][b.key]0&&n.push(i);return n},Cs=function(e,r,a){for(var n=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;fu&&(l=f,u=c)}a[i]=s[l]}return n=Cs(e,r,a),n},Ds=function(e){for(var r=this.cy(),a=this.nodes(),n=Ov(e),i={},s=0;s=A?(L=A,A=R,I=P):R>L&&(L=R);for(var N=0;N0?1:0;w[T%n.minIterations*o+G]=H,F+=H}if(F>0&&(T>=n.minIterations-1||T==n.maxIterations-1)){for(var X=0,K=0;K1||D>1)&&(o=!0),c[m]=[],b.outgoers().forEach(function(x){x.isEdge()&&c[m].push(x.id())})}else h[m]=[void 0,b.target().id()]}):s.forEach(function(b){var m=b.id();if(b.isNode()){var E=b.degree(!0);E%2&&(l?u?o=!0:u=m:l=m),c[m]=[],b.connectedEdges().forEach(function(C){return c[m].push(C.id())})}else h[m]=[b.source().id(),b.target().id()]});var v={found:!1,trail:void 0};if(o)return v;if(u&&l)if(i){if(f&&u!=f)return v;f=u}else{if(f&&u!=f&&l!=f)return v;f||(f=u)}else f||(f=s[0].id());var d=function(m){for(var E=m,C=[m],D,w,x;c[E].length;)D=c[E].shift(),w=h[D][0],x=h[D][1],E!=x?(c[x]=c[x].filter(function(T){return T!=D}),E=x):!i&&E!=w&&(c[w]=c[w].filter(function(T){return T!=D}),E=w),C.unshift(D),C.unshift(E);return C},g=[],p=[];for(p=d(f);p.length!=1;)c[p[0]].length==0?(g.unshift(s.getElementById(p.shift())),g.unshift(s.getElementById(p.shift()))):p=d(p.shift()).concat(p);g.unshift(s.getElementById(p.shift()));for(var y in c)if(c[y].length)return v;return v.found=!0,v.trail=this.spawn(g,!0),v}},Wa=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(h,v){for(var d=s.length-1,g=[],p=e.spawn();s[d].x!=h||s[d].y!=v;)g.push(s.pop().edge),d--;g.push(s.pop().edge),g.forEach(function(y){var b=y.connectedNodes().intersection(e);p.merge(y),b.forEach(function(m){var E=m.id(),C=m.connectedEdges().intersection(e);p.merge(m),r[E].cutVertex?p.merge(C.filter(function(D){return D.isLoop()})):p.merge(C)})}),i.push(p)},u=function c(h,v,d){h===d&&(n+=1),r[v]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(v).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(v)));else{var p,y,b,m;g.forEach(function(E){p=E.source().id(),y=E.target().id(),b=p===v?y:p,b!==d&&(m=E.id(),o[m]||(o[m]=!0,s.push({x:v,y:b,edge:E})),b in r?r[v].low=Math.min(r[v].low,r[b].id):(c(h,b,v),r[v].low=Math.min(r[v].low,r[b].low),r[v].id<=r[b].low&&(r[v].cutVertex=!0,l(v,b))))})}};e.forEach(function(c){if(c.isNode()){var h=c.id();h in r||(n=0,u(h,h),r[h].cutVertex=n>1)}});var f=Object.keys(r).filter(function(c){return r[c].cutVertex}).map(function(c){return e.getElementById(c)});return{cut:e.spawn(f),components:i}},zv={hopcroftTarjanBiconnected:Wa,htbc:Wa,htb:Wa,hopcroftTarjanBiconnectedComponents:Wa},qa=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(g){var p=g.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var c=e.spawn();;){var h=i.pop();if(c.merge(e.getElementById(h)),r[h].low=r[u].index,r[h].explored=!0,h===u)break}var v=c.edgesWith(c),d=c.merge(v);n.push(d),s=s.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},_v={tarjanStronglyConnected:qa,tsc:qa,tscc:qa,tarjanStronglyConnectedComponents:qa},al={};[Ta,pc,yc,bc,Ec,Tc,Sc,Qc,zr,_r,vi,fv,Tv,Rv,Bv,Gv,zv,_v].forEach(function(t){he(al,t)});/*! diff --git a/deploy/server/notebase/assets/pieDiagram-8a3498a8-Byowwp7E.js b/deploy/server/notebase/assets/pieDiagram-8a3498a8-BXxc3qFT.js similarity index 99% rename from deploy/server/notebase/assets/pieDiagram-8a3498a8-Byowwp7E.js rename to deploy/server/notebase/assets/pieDiagram-8a3498a8-BXxc3qFT.js index e1cd29d15d..00f55a3228 100644 --- a/deploy/server/notebase/assets/pieDiagram-8a3498a8-Byowwp7E.js +++ b/deploy/server/notebase/assets/pieDiagram-8a3498a8-BXxc3qFT.js @@ -1,4 +1,4 @@ -import{O as H,P as at,A as lt,B as ot,s as ct,g as ht,b as ut,a as yt,C as ft,d as pt,c as et,l as it,Q as gt,N as dt,T as mt,i as _t}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";import{a as tt}from"./arc-Cb_wyWgX.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import{a as kt}from"./array-BKyUJesY.js";import{c as F}from"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";function vt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/d,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-d*b)/T:0;l0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,$=null,y):u},y.sort=function(a){return arguments.length?($=a,u=null,y):$},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:$,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Q=h.yylloc;s.push(Q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`: +import{O as H,P as at,A as lt,B as ot,s as ct,g as ht,b as ut,a as yt,C as ft,d as pt,c as et,l as it,Q as gt,N as dt,T as mt,i as _t}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";import{a as tt}from"./arc-BVZmYbDK.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import{a as kt}from"./array-BKyUJesY.js";import{c as F}from"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";function vt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/d,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-d*b)/T:0;l0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,$=null,y):u},y.sort=function(a){return arguments.length?($=a,u=null,y):$},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:$,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Q=h.yylloc;s.push(Q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`: `+h.showPosition()+` Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":q="Parse error on line "+(f+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(q,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:Q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,V=h.yyleng,x=h.yytext,f=h.yylineno,Q=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],z.$=o[o.length-D],z._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(z._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(z,[x,V,f,N.yy,S[1],o,s].concat(U)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(z.$),s.push(z._$),X=P[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-CSu98yVs.js b/deploy/server/notebase/assets/quadrantDiagram-120e2f19-E02pNj4k.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-CSu98yVs.js rename to deploy/server/notebase/assets/quadrantDiagram-120e2f19-E02pNj4k.js index 61e8c1ce4c..6d89b2f039 100644 --- a/starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-CSu98yVs.js +++ b/deploy/server/notebase/assets/quadrantDiagram-120e2f19-E02pNj4k.js @@ -1,4 +1,4 @@ -import{U as vt,c as yt,P as D,l as ot,s as Lt,g as Ct,A as zt,B as bt,a as Et,b as Dt,C as It,h as gt,i as Bt,d as wt}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";import{l as mt}from"./linear-DCGWotbG.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: +import{U as vt,c as yt,P as D,l as ot,s as Lt,g as Ct,A as zt,B as bt,a as Et,b as Dt,C as It,h as gt,i as Bt,d as wt}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";import{l as mt}from"./linear-91jlWj_6.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: `+E.showPosition()+` Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:lt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:l.push(W),q.push(E.yytext),a.push(E.yylloc),l.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(l=l.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),l.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),_t=et[l[l.length-2]][l[l.length-1]],l.push(_t);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-91ycfj4X.js b/deploy/server/notebase/assets/requirementDiagram-deff3bca-CDvJoZhV.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-91ycfj4X.js rename to deploy/server/notebase/assets/requirementDiagram-deff3bca-CDvJoZhV.js index 04d92ab36d..354b4ff51e 100644 --- a/starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-91ycfj4X.js +++ b/deploy/server/notebase/assets/requirementDiagram-deff3bca-CDvJoZhV.js @@ -1,4 +1,4 @@ -import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,C as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-BRpiNjs-.js";import{G as Ue}from"./graph-Bqo8LFRO.js";import{l as Be}from"./layout-e9igZ_Vb.js";import"./index-DFpvp1rn.js";import{l as Qe}from"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: +import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,C as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-CLEyumap.js";import{G as Ue}from"./graph-W254zRQ0.js";import{l as Be}from"./layout-C3MVMtGC.js";import"./index-hnRSc5ud.js";import{l as Qe}from"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: `+E.showPosition()+` Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,me=E.yyleng,_=E.yytext,Z=E.yylineno,se=E.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-BLCglvL0.js b/deploy/server/notebase/assets/sankeyDiagram-04a897e0-DOdrz2qg.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-BLCglvL0.js rename to deploy/server/notebase/assets/sankeyDiagram-04a897e0-DOdrz2qg.js index d8852b0edb..270b52eba6 100644 --- a/starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-BLCglvL0.js +++ b/deploy/server/notebase/assets/sankeyDiagram-04a897e0-DOdrz2qg.js @@ -1,4 +1,4 @@ -import{c as rt,g as mt,s as kt,a as _t,b as xt,B as vt,A as bt,C as wt,j as St,a4 as Lt,h as G,t as Et}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;rl.length)-1)),j(f);for(let l=0;l0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*p-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function g(){var p,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`: +import{c as rt,g as mt,s as kt,a as _t,b as xt,B as vt,A as bt,C as wt,j as St,a4 as Lt,h as G,t as Et}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;rl.length)-1)),j(f);for(let l=0;l0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*p-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function g(){var p,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`: `+S.showPosition()+` Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},P&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(j)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-CGZmNzMJ.js b/deploy/server/notebase/assets/sequenceDiagram-704730f1-ijolM7hd.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-CGZmNzMJ.js rename to deploy/server/notebase/assets/sequenceDiagram-704730f1-ijolM7hd.js index 217637b8bc..09de8120b0 100644 --- a/starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-CGZmNzMJ.js +++ b/deploy/server/notebase/assets/sequenceDiagram-704730f1-ijolM7hd.js @@ -1,4 +1,4 @@ -import{g as we,B as ve,A as _e,c as st,s as $t,b as ke,a as Pe,C as Le,l as X,d as At,j as v,e as Ie,h as Lt,i as Ae,y as B,$ as nt,a0 as wt,m as te,r as ee,V as Bt,T as se,a1 as Ne}from"./mermaid.core-BRpiNjs-.js";import{d as Se,a as Me,g as Nt,b as zt,c as Re,e as Ce}from"./svgDrawCommon-08f97a94-BxUoIeIU.js";import"./index-DFpvp1rn.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`: +import{g as we,B as ve,A as _e,c as st,s as $t,b as ke,a as Pe,C as Le,l as X,d as At,j as v,e as Ie,h as Lt,i as Ae,y as B,$ as nt,a0 as wt,m as te,r as ee,V as Bt,T as se,a1 as Ne}from"./mermaid.core-CLEyumap.js";import{d as Se,a as Me,g as Nt,b as zt,c as Re,e as Ce}from"./svgDrawCommon-08f97a94-CmoRP8WR.js";import"./index-hnRSc5ud.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`: `+Y.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Ot="Parse error on line "+(_t+1)+": Unexpected "+(G==Jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Ot,{text:Y.match,token:this.terminals_[G]||G,line:Y.yylineno,loc:Dt,expected:Pt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ut+", token: "+G);switch(et[0]){case 1:L.push(G),M.push(Y.yytext),h.push(Y.yylloc),L.push(et[1]),G=null,Xt=Y.yyleng,d=Y.yytext,_t=Y.yylineno,Dt=Y.yylloc;break;case 2:if(ct=this.productions_[et[1]][1],yt.$=M[M.length-ct],yt._$={first_line:h[h.length-(ct||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(ct||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(yt._$.range=[h[h.length-(ct||1)].range[0],h[h.length-1].range[1]]),Vt=this.performAction.apply(yt,[d,Xt,_t,pt.yy,et[1],M,h].concat(be)),typeof Vt<"u")return Vt;ct&&(L=L.slice(0,-1*ct*2),M=M.slice(0,-1*ct),h=h.slice(0,-1*ct)),L.push(this.productions_[et[1]][0]),M.push(yt.$),h.push(yt._$),Zt=Et[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},ye=function(){var dt={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/stateDiagram-587899a1-DGSZybvb.js b/deploy/server/notebase/assets/stateDiagram-587899a1-DdZTtkcS.js similarity index 97% rename from deploy/server/notebase/assets/stateDiagram-587899a1-DGSZybvb.js rename to deploy/server/notebase/assets/stateDiagram-587899a1-DdZTtkcS.js index 3e5a737b4d..6d58e89690 100644 --- a/deploy/server/notebase/assets/stateDiagram-587899a1-DGSZybvb.js +++ b/deploy/server/notebase/assets/stateDiagram-587899a1-DdZTtkcS.js @@ -1 +1 @@ -import{p as P,d as N,s as W}from"./styles-6aaf32cf-BPvqRBVt.js";import{c as t,h as H,l as b,i as R,j as T,D as v,y as U}from"./mermaid.core-BRpiNjs-.js";import{G as C}from"./graph-Bqo8LFRO.js";import{l as F}from"./layout-e9igZ_Vb.js";import"./index-DFpvp1rn.js";import{l as $}from"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const D=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),D(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},lt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{lt as diagram}; +import{p as P,d as N,s as W}from"./styles-6aaf32cf-DTPfI4UM.js";import{c as t,h as H,l as b,i as R,j as T,D as v,y as U}from"./mermaid.core-CLEyumap.js";import{G as C}from"./graph-W254zRQ0.js";import{l as F}from"./layout-C3MVMtGC.js";import"./index-hnRSc5ud.js";import{l as $}from"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const D=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),D(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},lt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{lt as diagram}; diff --git a/deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CAo6W-m6.js b/deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CY4CBQtD.js similarity index 90% rename from deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CAo6W-m6.js rename to deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CY4CBQtD.js index 1c6983c751..273ccf7f76 100644 --- a/deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CAo6W-m6.js +++ b/deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CY4CBQtD.js @@ -1 +1 @@ -import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-6aaf32cf-BPvqRBVt.js";import{G as tt}from"./graph-Bqo8LFRO.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-BRpiNjs-.js";import{r as st}from"./index-3862675e-BjItSQO6.js";import"./index-DFpvp1rn.js";import"./layout-e9igZ_Vb.js";import"./clone-C_jSdwol.js";import"./edges-e0da2a9e-Bx6yyD_A.js";import"./createText-2e5e7dd3-_UBRrGW4.js";import"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,m="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=it),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,p),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:m,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:m,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Vt as diagram}; +import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-6aaf32cf-DTPfI4UM.js";import{G as tt}from"./graph-W254zRQ0.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-CLEyumap.js";import{r as st}from"./index-3862675e-CXAABjCf.js";import"./index-hnRSc5ud.js";import"./layout-C3MVMtGC.js";import"./clone-BdtZehSS.js";import"./edges-e0da2a9e-Ddp_7vqN.js";import"./createText-2e5e7dd3-BHoypJ7S.js";import"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,m="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=it),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,p),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:m,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:m,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Vt as diagram}; diff --git a/deploy/server/notebase/assets/styles-6aaf32cf-BPvqRBVt.js b/deploy/server/notebase/assets/styles-6aaf32cf-DTPfI4UM.js similarity index 99% rename from deploy/server/notebase/assets/styles-6aaf32cf-BPvqRBVt.js rename to deploy/server/notebase/assets/styles-6aaf32cf-DTPfI4UM.js index ce8d2afef3..e3493c3551 100644 --- a/deploy/server/notebase/assets/styles-6aaf32cf-BPvqRBVt.js +++ b/deploy/server/notebase/assets/styles-6aaf32cf-DTPfI4UM.js @@ -1,4 +1,4 @@ -import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,A as Xt,B as Kt,l as D,j as ot,C as Wt,a2 as Jt}from"./mermaid.core-BRpiNjs-.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");A=st[0],O=[O,st[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",A=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),v={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(v.yy[dt]=this.yy[dt]);S.setInput(r,v.yy),v.yy.lexer=S,v.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(A+1)+`: +import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,A as Xt,B as Kt,l as D,j as ot,C as Wt,a2 as Jt}from"./mermaid.core-CLEyumap.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");A=st[0],O=[O,st[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",A=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),v={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(v.yy[dt]=this.yy[dt]);S.setInput(r,v.yy),v.yy.lexer=S,v.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(A+1)+`: `+S.showPosition()+` Expecting `+rt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(A+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:rt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,A=S.yylineno,yt=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=p[p.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},Gt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,A,v.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;b&&(i=i.slice(0,-1*b*2),p=p.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=$[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Yt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/styles-9a916d00-CMxTlbUn.js b/deploy/server/notebase/assets/styles-9a916d00-lZKOBCaM.js similarity index 99% rename from deploy/server/notebase/assets/styles-9a916d00-CMxTlbUn.js rename to deploy/server/notebase/assets/styles-9a916d00-lZKOBCaM.js index 6248307f56..b986b69725 100644 --- a/deploy/server/notebase/assets/styles-9a916d00-CMxTlbUn.js +++ b/deploy/server/notebase/assets/styles-9a916d00-lZKOBCaM.js @@ -1,4 +1,4 @@ -import{s as ut,g as rt,a as at,b as lt,c as F,A as ct,B as ot,j as v,C as ht,l as At,y as We,h as z,d as pt,E as Re}from"./mermaid.core-BRpiNjs-.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: +import{s as ut,g as rt,a as at,b as lt,c as F,A as ct,B as ot,j as v,C as ht,l as At,y as We,h as z,d as pt,E as Re}from"./mermaid.core-CLEyumap.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: `+b.showPosition()+` Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),je=U[h[h.length-2]][h[h.length-1]],h.push(je);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/styles-c10674c1-DaH9xpKF.js b/deploy/server/notebase/assets/styles-c10674c1-D4guNeYR.js similarity index 97% rename from starter/src/main/resources/templates/notebase/assets/styles-c10674c1-DaH9xpKF.js rename to deploy/server/notebase/assets/styles-c10674c1-D4guNeYR.js index 8e9a43772a..293c153a74 100644 --- a/starter/src/main/resources/templates/notebase/assets/styles-c10674c1-DaH9xpKF.js +++ b/deploy/server/notebase/assets/styles-c10674c1-D4guNeYR.js @@ -1,4 +1,4 @@ -import{G as R}from"./graph-Bqo8LFRO.js";import{S as z,v as F,x as j,o as A,l as g,p as U,c as S,j as G,r as q,q as E,n as L,h as C,y as H,t as K,z as W}from"./mermaid.core-BRpiNjs-.js";import{r as X}from"./index-3862675e-BjItSQO6.js";import{v as J,w as Q}from"./index-DFpvp1rn.js";import{c as Y}from"./channel-BcV_jLhP.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([j(e)],F)}function be(e,l){return!!e.children(l).length}function fe(e){return N(e.v)+":"+N(e.w)+":"+N(e.name)}var O=/:/g;function N(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(J(c)){var a=c.transition;if(Q(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(U(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const $ of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=A(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,` +import{G as R}from"./graph-W254zRQ0.js";import{S as z,v as F,x as j,o as A,l as g,p as U,c as S,j as G,r as q,q as E,n as L,h as C,y as H,t as K,z as W}from"./mermaid.core-CLEyumap.js";import{r as X}from"./index-3862675e-CXAABjCf.js";import{v as J,w as Q}from"./index-hnRSc5ud.js";import{c as Y}from"./channel-B03o6XSd.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([j(e)],F)}function be(e,l){return!!e.children(l).length}function fe(e){return N(e.v)+":"+N(e.w)+":"+N(e.name)}var O=/:/g;function N(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(J(c)){var a=c.transition;if(Q(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(U(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const $ of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=A(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,` `),S()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+w,l.setEdge(n.start,n.end,t,a)}},le=function(e,l){return l.db.getClasses()},ae=async function(e,l,c,a){g.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=S(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let r;d==="sandbox"&&(r=C("#i"+l));const y=d==="sandbox"?C(r.nodes()[0].contentDocument.body):C("body"),w=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new R({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();g.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],g.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),T=a.db.getEdges();g.info("Edges",T);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Z("cluster").append("text");for(let f=0;f{const c=Y,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return W(a,i,d,l)},ne=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; diff --git a/deploy/server/notebase/assets/svgDrawCommon-08f97a94-BxUoIeIU.js b/deploy/server/notebase/assets/svgDrawCommon-08f97a94-CmoRP8WR.js similarity index 95% rename from deploy/server/notebase/assets/svgDrawCommon-08f97a94-BxUoIeIU.js rename to deploy/server/notebase/assets/svgDrawCommon-08f97a94-CmoRP8WR.js index b002bc7f2c..d88d1d3964 100644 --- a/deploy/server/notebase/assets/svgDrawCommon-08f97a94-BxUoIeIU.js +++ b/deploy/server/notebase/assets/svgDrawCommon-08f97a94-CmoRP8WR.js @@ -1 +1 @@ -import{a3 as o,m as i}from"./mermaid.core-BRpiNjs-.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g}; +import{a3 as o,m as i}from"./mermaid.core-CLEyumap.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g}; diff --git a/deploy/server/kanban/assets/threadService-BvUCCLW3.js b/deploy/server/notebase/assets/threadService-PEBGuFRg.js similarity index 94% rename from deploy/server/kanban/assets/threadService-BvUCCLW3.js rename to deploy/server/notebase/assets/threadService-PEBGuFRg.js index 2602597f82..488fcc49c8 100644 --- a/deploy/server/kanban/assets/threadService-BvUCCLW3.js +++ b/deploy/server/notebase/assets/threadService-PEBGuFRg.js @@ -1 +1 @@ -import{r as T,u as n,a as h}from"./index-DD9Ops83.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; +import{r as T,u as n,a as h}from"./index-hnRSc5ud.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; diff --git a/starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-B6W68VWC.js b/deploy/server/notebase/assets/timeline-definition-85554ec2-CtFMoSI1.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-B6W68VWC.js rename to deploy/server/notebase/assets/timeline-definition-85554ec2-CtFMoSI1.js index a125be30a1..69c04062c0 100644 --- a/starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-B6W68VWC.js +++ b/deploy/server/notebase/assets/timeline-definition-85554ec2-CtFMoSI1.js @@ -1,4 +1,4 @@ -import{a5 as ft,C as gt,c as mt,l as E,h as G,t as xt,a6 as _t,a7 as bt,a8 as kt}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";import{a as D}from"./arc-Cb_wyWgX.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;o.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: +import{a5 as ft,C as gt,c as mt,l as E,h as G,t as xt,a6 as _t,a7 as bt,a8 as kt}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";import{a as D}from"./arc-BVZmYbDK.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;o.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(b==A?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),o.push(k.yylloc),c.push(S[1]),b=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},P&&(R._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,o].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),o.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-AH_oESFX.js b/deploy/server/notebase/assets/xychartDiagram-e933f94c-Dt8EMtG3.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-AH_oESFX.js rename to deploy/server/notebase/assets/xychartDiagram-e933f94c-Dt8EMtG3.js index 1b272050b8..008b0f4fb1 100644 --- a/starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-AH_oESFX.js +++ b/deploy/server/notebase/assets/xychartDiagram-e933f94c-Dt8EMtG3.js @@ -1,4 +1,4 @@ -import{U as zt,V as ot,Q as wt,P as Ft,s as Nt,g as Xt,A as Yt,B as St,a as Ht,b as $t,C as Ut,l as Ct,N as qt,i as jt,d as Gt}from"./mermaid.core-BRpiNjs-.js";import{c as Qt}from"./createText-2e5e7dd3-_UBRrGW4.js";import"./index-DFpvp1rn.js";import{i as Kt}from"./init-Gi6I4Gst.js";import{o as Zt}from"./ordinal-Cboi1Yqb.js";import{l as ft}from"./linear-DCGWotbG.js";import{l as pt}from"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: +import{U as zt,V as ot,Q as wt,P as Ft,s as Nt,g as Xt,A as Yt,B as St,a as Ht,b as $t,C as Ut,l as Ct,N as qt,i as jt,d as Gt}from"./mermaid.core-CLEyumap.js";import{c as Qt}from"./createText-2e5e7dd3-BHoypJ7S.js";import"./index-hnRSc5ud.js";import{i as Kt}from"./init-Gi6I4Gst.js";import{o as Zt}from"./ordinal-Cboi1Yqb.js";import{l as ft}from"./linear-91jlWj_6.js";import{l as pt}from"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+D);switch(v[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(v[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[v[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,B.yy,v[1],b,a].concat(Bt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[v[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/deploy/server/notebase/index.html b/deploy/server/notebase/index.html index 0cdfeb10c0..e34696e345 100644 --- a/deploy/server/notebase/index.html +++ b/deploy/server/notebase/index.html @@ -21,7 +21,7 @@ 微语 - + diff --git a/starter/src/main/resources/templates/admin/asset-manifest.json b/starter/src/main/resources/templates/admin/asset-manifest.json index f26e583d67..bb47508595 100644 --- a/starter/src/main/resources/templates/admin/asset-manifest.json +++ b/starter/src/main/resources/templates/admin/asset-manifest.json @@ -1,6 +1,6 @@ { "/admin/umi.css": "/admin/umi.999685c6.css", - "/admin/umi.js": "/admin/umi.d35a2173.js", + "/admin/umi.js": "/admin/umi.4c5d67bb.js", "/admin/9013.b745fd63.async.js": "/admin/9013.b745fd63.async.js", "/admin/p__Auth__Login__index.js": "/admin/p__Auth__Login__index.e0e459ca.async.js", "/admin/p__Auth__Register__index.js": "/admin/p__Auth__Register__index.850d87bf.async.js", @@ -95,7 +95,7 @@ "/admin/p__Dashboard__Kbase__Upload__UploadStatistic.js": "/admin/p__Dashboard__Kbase__Upload__UploadStatistic.a0011631.async.js", "/admin/p__Dashboard__Kbase__Statistic__index.js": "/admin/p__Dashboard__Kbase__Statistic__index.894f38ac.async.js", "/admin/p__Dashboard__Ticket__Ticket.css": "/admin/p__Dashboard__Ticket__Ticket.f9c908ef.chunk.css", - "/admin/p__Dashboard__Ticket__Ticket.js": "/admin/p__Dashboard__Ticket__Ticket.43038712.async.js", + "/admin/p__Dashboard__Ticket__Ticket.js": "/admin/p__Dashboard__Ticket__Ticket.15c33abe.async.js", "/admin/p__Dashboard__Ticket__Statistic__index.js": "/admin/p__Dashboard__Ticket__Statistic__index.f88c4907.async.js", "/admin/p__Dashboard__Flow__index.js": "/admin/p__Dashboard__Flow__index.de751981.async.js", "/admin/p__Dashboard__Voc__index.js": "/admin/p__Dashboard__Voc__index.00c7b346.async.js", diff --git a/starter/src/main/resources/templates/admin/index.html b/starter/src/main/resources/templates/admin/index.html index 42543040ad..06ff53b9a0 100644 --- a/starter/src/main/resources/templates/admin/index.html +++ b/starter/src/main/resources/templates/admin/index.html @@ -7,10 +7,10 @@ Bytedesk - +
- + \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Ticket__Ticket.15c33abe.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Ticket__Ticket.15c33abe.async.js new file mode 100644 index 0000000000..b8c3fecdeb --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Ticket__Ticket.15c33abe.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[987],{15722:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(11757),o=r(44194),a={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 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=r(54183),s=function(e,t){return o.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(s)},11090:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(11757),o=r(44194),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},i=r(54183),s=function(e,t){return o.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(s)},42085:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(11757),o=r(44194),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=r(54183),s=function(e,t){return o.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(s)},59908:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(11757),o=r(44194),a={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"},i=r(54183),s=function(e,t){return o.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(s)},84881:function(e,t,r){var n=r(17082),o=r(73457),a=r(82308),i=r(44194),s=r(63653),l=r(87413),c=r(31549),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,t){var r=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.showSearch,x=e.options,y=(0,o.Z)(e,u),b=(0,i.useContext)(s.Z);return(0,c.jsx)(l.Z,(0,n.Z)((0,n.Z)({valueEnum:(0,a.h)(m),request:h,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,n.Z)({options:x,mode:g,showSearch:v,getPopupContainer:b.getPopupContainer},r),ref:t,proFieldProps:f},y),{},{children:d}))},f=i.forwardRef((function(e,t){var r=e.fieldProps,u=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.options,x=(0,o.Z)(e,d),y=(0,n.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},r),b=(0,i.useContext)(s.Z);return(0,c.jsx)(l.Z,(0,n.Z)((0,n.Z)({valueEnum:(0,a.h)(m),request:h,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,n.Z)({getPopupContainer:b.getPopupContainer},y),ref:t,proFieldProps:f},x),{},{children:u}))})),g=i.forwardRef(p);g.SearchSelect=f,g.displayName="ProFormComponent",t.Z=g},32350:function(e,t,r){var n=r(17082),o=r(73457),a=r(44194),i=r(87413),s=r(31549),l=["fieldProps","proFieldProps"],c=function(e,t){var r=e.fieldProps,a=e.proFieldProps,c=(0,o.Z)(e,l);return(0,s.jsx)(i.Z,(0,n.Z)({ref:t,valueType:"textarea",fieldProps:r,proFieldProps:a},c))};t.Z=a.forwardRef(c)},72614:function(e,t,r){r.d(t,{W5:function(){return m},n1:function(){return v},p0:function(){return f},u7:function(){return d},zl:function(){return y}});var n=r(90819),o=r.n(n),a=r(73193),i=r.n(a),s=r(89933),l=r.n(s),c=r(55735),u=r(30921);function d(e){return p.apply(this,arguments)}function p(){return(p=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/query/org",{method:"GET",params:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return g.apply(this,arguments)}function g(){return(g=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/create",{method:"POST",data:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/update",{method:"POST",data:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return x.apply(this,arguments)}function x(){return(x=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/update/avatar",{method:"POST",data:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/delete",{method:"POST",data:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},17220:function(e,t,r){r(44194);var n=r(75365),o=r(54881),a=r(30921),i=r(31549);t.Z=function(e){var t,r,s=e.file,l=e.onDelete,c=e.showDelete,u=void 0===c||c,d=(0,a.useIntl)();return(0,i.jsxs)("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:d.formatMessage({id:null!=s&&null!==(t=s.fileType)&&void 0!==t&&t.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[u&&(0,i.jsx)(n.ZP,{type:"text",size:"small",icon:(0,i.jsx)(o.Z,{}),onClick:function(){return l(s.uid)},style:{position:"absolute",top:0,right:0,padding:"2px",background:"rgba(255, 255, 255, 0.8)",border:"none",borderRadius:"0 4px 0 4px",zIndex:1}}),(0,i.jsx)("div",{onClick:function(){return window.open(s.fileUrl,"_blank")},style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:null!=s&&null!==(r=s.fileType)&&void 0!==r&&r.startsWith("image/")?(0,i.jsx)("img",{src:null==s?void 0:s.fileUrl,alt:null==s?void 0:s.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):(0,i.jsx)("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:s.fileName})}),(0,i.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.5)",color:"#fff",fontSize:"10px",padding:"2px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:s.fileName})]},s.uid)}},27650:function(e,t,r){var n=r(76711),o=r.n(n),a=r(73193),i=r.n(a),s=r(45332),l=r.n(s),c=r(44194),u=r(42085),d=r(30348),p=r(53530),f=r(28977),g=r.n(f),m=r(55735),h=r(86803),v=r(44521),x=r(17220),y=r(30921),b=r(6397),k=r(31549),w=d.Z.Dragger;t.Z=function(e){var t=e.type,r=(e.acceptType,e.isModalOpen),n=e.attachments,a=e.handleSubmit,s=e.handleCancel,d=(0,y.useIntl)(),f=(0,b.j)((function(e){return e.currentKbase})),j=(0,c.useState)([]),C=l()(j,2),S=C[0],M=C[1],Z=(0,c.useState)({file:null,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"",kb_uid:null==f?void 0:f.uid,client:m.bVn}),T=l()(Z,2),P=T[0],O=T[1];(0,c.useEffect)((function(){console.log("UploadDrag currentKbase",f),f&&O((function(e){return i()(i()({},e),{},{kb_uid:null==f?void 0:f.uid})}))}),[f]);var F=(0,c.useMemo)((function(){return{name:"file",multiple:!0,action:(0,v.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(m.LA8)},data:P,showUploadList:!1,beforeUpload:function(e){var t=g()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name;return O((function(r){return i()(i()({},r),{},{file:e,file_name:t,file_type:e.type,category_uid:""})})),!0},onChange:function(e){"uploading"===e.file.status&&h.yw.loading(d.formatMessage({id:"upload.uploading"},{filename:e.file.name})),"done"===e.file.status?200===e.file.response.code?(h.yw.destroy(),h.yw.success(d.formatMessage({id:"upload.success"},{filename:e.file.name})),M((function(t){return[].concat(o()(t),[e.file.response.data])}))):(h.yw.destroy(),h.yw.error(d.formatMessage({id:"upload.failed"},{filename:e.file.name}))):"error"===e.file.status&&h.yw.error(d.formatMessage({id:"upload.failed"},{filename:e.file.name}))},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}}}),[P,d]);(0,c.useEffect)((function(){O((function(e){return i()(i()({},e),{},{kb_type:t,category_uid:""})})),n&&M(n.map((function(e){return e.upload})))}),[t]);var I=function(e){console.log("handleDelete",e),M((function(t){return t.filter((function(t){return t.uid!==e}))}))};return(0,k.jsxs)(p.Z,{title:d.formatMessage({id:"upload.modal.title"}),open:r,onOk:function(){a(S)},onCancel:s,children:[(0,k.jsxs)(w,i()(i()({},F),{},{children:[(0,k.jsx)("p",{className:"ant-upload-drag-icon",children:(0,k.jsx)(u.Z,{})}),(0,k.jsx)("p",{className:"ant-upload-text",children:d.formatMessage({id:"upload.drag.text"})}),(0,k.jsx)("p",{className:"ant-upload-hint",children:d.formatMessage({id:"upload.drag.hint"})})]})),(0,k.jsx)("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:(0,k.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:S.map((function(e){return(0,k.jsx)(x.Z,{file:e,onDelete:I},e.uid)}))})})]})}},21041:function(e,t,r){r.r(t),r.d(t,{default:function(){return he}});var n=r(75574),o=r(73193),a=r.n(o),i=r(84176),s=r.n(i),l=r(10154),c=r.n(l),u=r(90819),d=r.n(u),p=r(89933),f=r.n(p),g=r(45332),m=r.n(g),h=r(86803),v=r(55735),x=r(30921);function y(e){return b.apply(this,arguments)}function b(){return(b=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/query/org",{method:"GET",params:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return w.apply(this,arguments)}function w(){return(w=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/update",{method:"POST",data:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return C.apply(this,arguments)}function C(){return(C=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/delete",{method:"POST",data:{uid:t,client:v.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return M.apply(this,arguments)}function M(){return(M=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/history/process",{method:"GET",params:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return T.apply(this,arguments)}function T(){return(T=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/history/task",{method:"GET",params:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return O.apply(this,arguments)}function O(){return(O=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/history/activity",{method:"GET",params:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var F=r(40612),I=r(90838),$=r(32045),E=r(76750),z=r(11090),q=r(72381),N=r(53530),U=r(29266),H=r(75365),B=r(28977),V=r.n(B),L=r(44194),D=r(76711),_=r.n(D),R=r(16309),A=r(73442),W=r(3849),G=r(72614),Y=r(6807),X=r(4499),J=r(32350),K=r(84881),Q=r(17220),ee=r(27650),te=r(59908),re=r(31549),ne=function(e){var t=e.open,r=e.isEdit,n=e.ticket,o=e.onClose,a=e.onSuccess,i=R.Z.useForm(),s=m()(i,1)[0],l=(0,x.useIntl)(),c=(0,E.Z)().translateString,u=(0,F.u)((function(e){return e.currentOrg})),p=(0,L.useState)([]),g=m()(p,2),y=g[0],b=g[1],w=(0,L.useState)([]),j=m()(w,2),C=j[0],S=j[1],M=(0,L.useState)([]),Z=m()(M,2),T=Z[0],P=Z[1],O=(0,L.useState)(!1),I=m()(O,2),z=I[0],q=I[1],N=(0,L.useState)([]),U=m()(N,2),B=U[0],V=U[1],D=[{value:v.sM_,label:l.formatMessage({id:"ticket.status.new"})},{value:v.sFW,label:l.formatMessage({id:"ticket.status.claimed"})},{value:v.z1,label:l.formatMessage({id:"ticket.status.processing"})},{value:v.pIN,label:l.formatMessage({id:"ticket.status.pending"})},{value:v.XrC,label:l.formatMessage({id:"ticket.status.holding"})},{value:v.yib,label:l.formatMessage({id:"ticket.status.reopened"})},{value:v.hwr,label:l.formatMessage({id:"ticket.status.resolved"})},{value:v.frw,label:l.formatMessage({id:"ticket.status.closed"})},{value:v.xw4,label:l.formatMessage({id:"ticket.status.cancelled"})}],ne=[{value:v.JTO,label:l.formatMessage({id:"ticket.priority.lowest"})},{value:v.sbT,label:l.formatMessage({id:"ticket.priority.low"})},{value:v.GMZ,label:l.formatMessage({id:"ticket.priority.medium"})},{value:v.Bt2,label:l.formatMessage({id:"ticket.priority.high"})},{value:v._Xr,label:l.formatMessage({id:"ticket.priority.urgent"})},{value:v.Lx6,label:l.formatMessage({id:"ticket.priority.critical"})}],oe=function(){var e=f()(d()().mark((function e(){var t,r;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,$.XS)({type:v.hcJ,orgUid:null==u?void 0:u.uid,pageNumber:0,pageSize:100});case 3:200===(r=e.sent).code&&null!==(t=r.data)&&void 0!==t&&t.content&&b(r.data.content),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Fetch categories error:",e.t0),h.yw.error(l.formatMessage({id:"ticket.category.load.error"}));case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=f()(d()().mark((function e(){var t,r;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:0,pageSize:50,orgUid:null==u?void 0:u.uid},e.next=3,(0,G.u7)(t);case 3:200===(r=e.sent).code?(S(r.data.content),P(r.data.content.reduce((function(e,t){var r;return null===(r=t.agents)||void 0===r||r.forEach((function(t){e.find((function(e){return e.uid===t.uid}))||e.push(t)})),e}),[]))):h.yw.error(r.message);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,L.useEffect)((function(){t&&(ae(),oe())}),[t]);var ie=y.filter((function(e){return e.uid!==v.zBg})),se=function(){var e=f()(d()().mark((function e(){var t,r,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s.validateFields();case 3:return t=e.sent,h.yw.loading(l.formatMessage({id:"updating"})),r={uid:null==n?void 0:n.uid,title:null==t?void 0:t.title,description:null==t?void 0:t.description,categoryUid:null==t?void 0:t.categoryUid,workgroupUid:null==t?void 0:t.workgroupUid,assigneeUid:null==t?void 0:t.assigneeUid,status:null==t?void 0:t.status,priority:null==t?void 0:t.priority,uploadUids:B.map((function(e){return e.uid}))},console.log("updateTicket request",r),e.next=9,k(r);case 9:i=e.sent,console.log("updateTicket response",i),200===i.code?(h.yw.success(l.formatMessage({id:"update.success"})),a(),o()):h.yw.error(i.message),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.error("Update failed:",e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}();L.useEffect((function(){var e,r,o;t&&n&&(s.setFieldsValue({title:null==n?void 0:n.title,description:null==n?void 0:n.description,status:null==n?void 0:n.status,priority:null==n?void 0:n.priority,categoryUid:null==n?void 0:n.categoryUid,workgroupUid:null==n||null===(e=n.workgroup)||void 0===e?void 0:e.uid,assigneeUid:null==n||null===(r=n.assignee)||void 0===r?void 0:r.uid}),V(null==n||null===(o=n.attachments)||void 0===o?void 0:o.map((function(e){return e.upload}))))}),[t,n]);var le=function(e){console.log("handleDelete",e),V((function(t){return t.filter((function(t){return t.uid!==e}))}))};return(0,re.jsx)(A.Z,{title:l.formatMessage({id:"ticket.edit.title"}),width:600,open:t,onClose:o,extra:(0,re.jsxs)(W.Z,{children:[(0,re.jsx)(H.ZP,{onClick:o,children:(0,re.jsx)(x.FormattedMessage,{id:"cancel"})}),(0,re.jsx)(H.ZP,{type:"primary",onClick:se,children:(0,re.jsx)(x.FormattedMessage,{id:"save"})})]}),children:(0,re.jsxs)(Y.ZP,{form:s,submitter:!1,layout:"vertical",children:[(0,re.jsx)(X.Z,{name:"title",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.title"}),rules:[{required:!0}]}),(0,re.jsx)(J.Z,{name:"description",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.description"}),rules:[{required:!0}]}),(0,re.jsx)(K.Z,{name:"categoryUid",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.category"}),rules:[{required:!0}],options:ie.map((function(e){return{label:c(e.name),value:e.uid}}))}),(0,re.jsx)(K.Z,{name:"workgroupUid",label:l.formatMessage({id:"ticket.workgroup"}),rules:[{required:!0}],options:C.map((function(e){return{label:c(e.nickname),value:e.uid}})),placeholder:l.formatMessage({id:"ticket.workgroup.placeholder"}),onChange:function(e){var t=C.find((function(t){return t.uid===e}));null!=t&&t.agents?(P(t.agents),s.setFieldValue("assigneeUid",void 0)):P([])}}),(0,re.jsx)(K.Z,{name:"assigneeUid",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.assignee"}),options:T.map((function(e){return{label:e.nickname,value:e.uid}}))}),(0,re.jsx)(K.Z,{name:"status",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.status"}),rules:[{required:!0}],options:D}),(0,re.jsx)(K.Z,{name:"priority",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.priority"}),rules:[{required:!0}],options:ne}),z&&(0,re.jsx)(ee.Z,{type:v.hcJ,isModalOpen:z,attachments:null==n?void 0:n.attachments,handleSubmit:function(e){console.log("handleSubmit",e),V(r&&n?e:function(t){return[].concat(_()(t),_()(e))}),q(!1)},handleCancel:function(){q(!1)}}),(0,re.jsx)("div",{style:{marginTop:"16px",marginBottom:"16px",maxHeight:"200px",overflowY:"auto"},children:(0,re.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:B.map((function(e){return(0,re.jsx)(Q.Z,{file:e,onDelete:le},e.uid)}))})}),(0,re.jsx)(H.ZP,{icon:(0,re.jsx)(te.Z,{}),onClick:function(){return q(!0)},children:l.formatMessage({id:"ticket.upload.button"})})]})})},oe=r(44521),ae=r(80601),ie=r(51004),se=r(73589),le=function(e){var t=e.ticket,r=e.isThreadTicket,n=void 0!==r&&r,o=(0,F.u)((function(e){return e.currentOrg})),a=(0,L.useState)([]),i=m()(a,2),s=(i[0],i[1]),l=(0,L.useState)([]),c=m()(l,2),u=(c[0],c[1]),p=(0,L.useState)([]),g=m()(p,2),y=g[0],b=g[1],k=(0,L.useState)(!1),w=m()(k,2),j=w[0],C=w[1],M=(0,x.useIntl)();console.log("currentTicket",t,j);var T=function(){var e=f()(d()().mark((function e(){var r,n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,C(!0),r={pageNumber:0,pageSize:100,uid:null==t?void 0:t.uid,processInstanceId:null==t?void 0:t.processInstanceId,orgUid:null==o?void 0:o.uid},e.next=7,S(r);case 7:n=e.sent,console.log("queryTicketHistoryProcess response:",n.data),200===n.code?s(n.data||[]):(console.log("queryTicketHistoryTask error:",n.data),h.yw.error(n.message)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("Fetch ticket history error:",e.t0),h.yw.error("获取工单历史记录失败");case 16:return e.prev=16,C(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,12,16,19]])})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=f()(d()().mark((function e(){var r,n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,C(!0),r={pageNumber:0,pageSize:100,uid:null==t?void 0:t.uid,processInstanceId:null==t?void 0:t.processInstanceId,orgUid:null==o?void 0:o.uid},e.next=7,Z(r);case 7:n=e.sent,console.log("queryTicketHistoryTask response:",n.data),200===n.code?u(n.data||[]):(console.log("queryTicketHistoryTask error:",n.data),h.yw.error(n.message)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("Fetch ticket history error:",e.t0),h.yw.error("获取工单历史记录失败");case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=f()(d()().mark((function e(){var r,n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,C(!0),r={pageNumber:0,pageSize:100,uid:null==t?void 0:t.uid},e.next=7,P(r);case 7:n=e.sent,console.log("queryTicketHistoryActivity response:",n.data),200===n.code?b(n.data||[]):(console.log("queryTicketHistoryActivity error:",n.data),h.yw.error(n.message)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("Fetch ticket history error:",e.t0),h.yw.error("获取工单历史记录失败");case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();(0,L.useEffect)((function(){n||(T(),O(),I())}),[t]);var $=function(e){return e?e===v.sM_||e===v.sFW||e===v.W66||e===v.z1||e===v.pIN||e===v.XrC||e===v.L1h||e===v.yib||e===v.hwr||e===v.AzB||e===v.frw||e===v.xw4?M.formatMessage({id:"ticket.status.".concat(e.toLowerCase())}):e:""};return(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)(ae.Z,{spinning:j,children:[(0,re.jsx)("p",{style:{fontSize:"16px",fontWeight:"bold",textAlign:"center"},children:"活动历史"}),(0,re.jsx)(ie.Z,{direction:"vertical",size:"small",current:y.length-1,style:{padding:"16px"},items:y.map((function(e,t){var r;return{title:$(null==e?void 0:e.activityName)||"活动",description:(0,re.jsxs)("div",{children:[(0,re.jsxs)("div",{children:["处理人: ",(null==e?void 0:e.assignee)||"未分配"]}),(0,re.jsxs)("div",{children:["处理时间: ",(null===(r=e.startTime)||void 0===r?void 0:r.toLocaleString())||"未分配"]})]}),status:t===y.length-1?"process":"finish"}}))}),0===y.length&&(0,re.jsx)(se.Z,{description:"请选择工单查看流转过程"})]})})},ce=function(e){var t=e.open,r=e.ticket,n=e.onClose;return(0,re.jsx)(re.Fragment,{children:(0,re.jsx)(A.Z,{open:t,onClose:function(){n()},title:"工单详情",children:(0,re.jsx)(le,{ticket:r,isThreadTicket:!1})})})},ue=["current"],de=function(){var e=(0,x.useIntl)(),t=(0,L.useRef)(),r=(0,F.u)((function(e){return e.currentOrg})),n=(0,E.Z)().translateString,o=(0,I.v)().setCategoryResult,i=(0,I.v)((function(e){return e.currentCategory})),l=(0,L.useState)(!1),u=m()(l,2),p=u[0],g=u[1],b=(0,L.useState)(),k=m()(b,2),w=k[0],C=k[1],S=(0,L.useState)(!1),M=m()(S,2),Z=M[0],T=M[1],P=N.Z.useModal(),O=m()(P,2),B=O[0],D=O[1],_=(0,L.useState)(!1),R=m()(_,2),A=R[0],W=R[1],G=function(){var e=f()(d()().mark((function e(){var t,n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:0,pageSize:50,type:v.hcJ,orgUid:null==r?void 0:r.uid},e.next=3,(0,$.XS)(t);case 3:200===(n=e.sent).code?o(n):h.yw.error(n.message);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,L.useEffect)((function(){G()}),[]);var Y=(0,I.v)((function(e){return e.categoryResult.data.content}));(0,L.useEffect)((function(){var e;null===(e=t.current)||void 0===e||e.reload()}),[null==i?void 0:i.uid]);var X=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.title"}),dataIndex:"title",copyable:!0,ellipsis:!0},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.description"}),dataIndex:"description",ellipsis:!0},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.status"}),dataIndex:"status",hideInSearch:!0,render:function(e,t){var r=c()(c()(c()(c()(c()(c()(c()(c()(c()({},v.sM_,"blue"),v.sFW,"cyan"),v.z1,"processing"),v.pIN,"warning"),v.XrC,"orange"),v.yib,"volcano"),v.hwr,"success"),v.frw,"default"),v.xw4,"error");return(0,re.jsx)(U.Z,{color:r[t.status],children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.status.".concat(t.status.toLowerCase())})})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.priority"}),dataIndex:"priority",hideInSearch:!0,render:function(e,t){var r,n=c()(c()(c()(c()(c()(c()({},v.JTO,"default"),v.sbT,"blue"),v.GMZ,"orange"),v.Bt2,"volcano"),v._Xr,"red"),v.Lx6,"purple");return(0,re.jsx)(U.Z,{color:n[null==t?void 0:t.priority],children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.priority.".concat(null==t||null===(r=t.priority)||void 0===r?void 0:r.toLowerCase())})})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.assignee"}),dataIndex:"assignee",hideInSearch:!0,render:function(e,t,r,n){var o;return(0,re.jsx)(U.Z,{color:"blue",children:null==t||null===(o=t.assignee)||void 0===o?void 0:o.nickname})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.reporter"}),dataIndex:"reporter",hideInSearch:!0,render:function(e,t,r,n){var o;return(0,re.jsx)(U.Z,{color:"red",children:null==t||null===(o=t.reporter)||void 0===o?void 0:o.nickname})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.category"}),dataIndex:"categoryUid",hideInSearch:!0,render:function(t,r){var o=Y.find((function(e){return e.uid===r.categoryUid}));return o?(0,re.jsx)(U.Z,{color:"green",children:n(o.name)}):(0,re.jsx)(U.Z,{color:"default",children:e.formatMessage({id:"uncategorized",defaultMessage:"Uncategorized"})})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"createdAt"}),dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,render:function(e,t,r,n){return V()(t.createdAt).format("YYYY-MM-DD HH:mm:ss")}},{title:(0,re.jsx)(x.FormattedMessage,{id:"updatedAt"}),dataIndex:"updatedAt",valueType:"dateTime",hideInSearch:!0,render:function(e,t,r,n){return V()(t.updatedAt).format("YYYY-MM-DD HH:mm:ss")}},{title:(0,re.jsx)(x.FormattedMessage,{id:"action"}),key:"option",dataIndex:"option",hideInSearch:!0,width:200,render:function(e,r){return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(H.ZP,{type:"link",onClick:function(){return C(r),g(!0),void T(!0)},children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.edit"})}),(0,re.jsx)(H.ZP,{type:"link",onClick:function(){return e=r,console.log("handleViewTicket",e),C(e),void W(!0);var e},children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.view"})}),(0,re.jsx)(H.ZP,{type:"link",onClick:function(){return e=r,console.log("handleDeleteTicket",e),void B.confirm({title:"确定要删除该工单吗?",onOk:(n=f()(d()().mark((function r(){var n,o;return d()().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return console.log("onOk"),r.next=3,j(e.uid);case 3:n=r.sent,console.log("deleteTicket response:",n),200===n.code?(h.yw.success(n.message),null===(o=t.current)||void 0===o||o.reload()):h.yw.error(n.message);case 6:case"end":return r.stop()}}),r)}))),function(){return n.apply(this,arguments)})});var e,n},children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.delete"})})]})}}],J=function(){console.log("handleExportExcel");var e=localStorage.getItem(v.LA8);window.open((0,oe.kG)()+"/api/v1/ticket/export?orgUid="+(null==r?void 0:r.uid)+"&pageNumber=0&pageSize=20&accessToken="+e)};return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(q.Z,{columns:X,actionRef:t,cardBordered:!0,columnsState:{defaultValue:{description:{show:!1},createdAt:{show:!1},reporter:{show:!1}},persistenceKey:"ticket-table-columns",persistenceType:"localStorage"},request:function(){var e=f()(d()().mark((function e(t,n,o){var l,c,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.current,l=s()(t,ue),c=a()(a()({pageNumber:t.current-1,orgUid:null==r?void 0:r.uid},(null==i?void 0:i.uid)!==v.zBg&&{categoryUid:null==i?void 0:i.uid}),l),e.next=4,y(c);case 4:return u=e.sent,console.log("queryTicketsByOrgUid response:",u,c),200===u.code||h.yw.error(u.message),e.abrupt("return",{data:u.data.content,success:!0,total:u.data.totalElements});case 8:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:e.formatMessage({id:"ticket.list"}),toolBarRender:function(){return[(0,re.jsx)(H.ZP,{type:"primary",onClick:function(){return window.open((0,oe.rl)())},children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.open.flow.editor"})}),(0,re.jsx)(H.ZP,{icon:(0,re.jsx)(z.Z,{}),type:"primary",onClick:J,children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.export"})},"button")]}}),p&&(0,re.jsx)(ne,{open:p,isEdit:Z,ticket:w,onClose:function(){g(!1),C(void 0),T(!1)},onSuccess:function(){var e;null===(e=t.current)||void 0===e||e.reload()}}),A&&(0,re.jsx)(ce,{open:A,ticket:w,onClose:function(){return W(!1)}}),D]})},pe=r(8377),fe=r(96865),ge=n.Z.Sider,me=n.Z.Content,he=function(){var e=(0,fe.Z)(),t=e.leftSiderStyle,r=e.contentStyle;return(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)(n.Z,{children:[(0,re.jsx)(ge,{style:t,width:250,children:(0,re.jsx)(pe.Z,{type:v.hcJ})}),(0,re.jsx)(n.Z,{children:(0,re.jsx)(me,{style:r,children:(0,re.jsx)(de,{})})})]})})}},27487:function(e,t,r){r.d(t,{Z:function(){return j}});var n=r(44194),o=r(51865),a=r.n(o),i=r(97859),s=r(90899),l=r(37167),c=r(65759),u=r(77167);const d=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return a()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const r=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&d.includes(r)}})(e,t)),((e,t)=>{const r={};return f.forEach((n=>{r[`${e}-align-${n}`]=t.align===n})),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r})(e,t)),((e,t)=>{const r={};return p.forEach((n=>{r[`${e}-justify-${n}`]=t.justify===n})),r})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,r={};return d.forEach((e=>{r[`${t}-wrap-${e}`]={flexWrap:e}})),r},x=e=>{const{componentCls:t}=e,r={};return f.forEach((e=>{r[`${t}-align-${e}`]={alignItems:e}})),r},y=e=>{const{componentCls:t}=e,r={};return p.forEach((e=>{r[`${t}-justify-${e}`]={justifyContent:e}})),r};var b=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,o=(0,u.IX)(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[m(o),h(o),v(o),x(o),y(o)]}),(()=>({})),{resetStyle:!1}),k=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,rootClassName:o,className:c,style:u,flex:d,gap:p,children:f,vertical:m=!1,component:h="div"}=e,v=k(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:x,direction:y,getPrefixCls:w}=n.useContext(l.E_),j=w("flex",r),[C,S,M]=b(j),Z=null!=m?m:null==x?void 0:x.vertical,T=a()(c,o,null==x?void 0:x.className,j,S,M,g(j,e),{[`${j}-rtl`]:"rtl"===y,[`${j}-gap-${p}`]:(0,s.n)(p),[`${j}-vertical`]:Z}),P=Object.assign(Object.assign({},null==x?void 0:x.style),u);return d&&(P.flex=d),p&&!(0,s.n)(p)&&(P.gap=p),C(n.createElement(h,Object.assign({ref:t,className:T,style:P},(0,i.Z)(v,["justify","wrap","align"])),f))}));var j=w},29266:function(e,t,r){r.d(t,{Z:function(){return O}});var n=r(44194),o=r(51865),a=r.n(o),i=r(97859),s=r(63125),l=r(80314),c=r(79145),u=r(18011),d=r(37167),p=r(47825),f=r(87471),g=r(88874),m=r(77167),h=r(65759);const v=e=>{const{lineWidth:t,fontSizeIcon:r,calc:n}=e,o=e.fontSizeSM;return(0,m.IX)(e,{tagFontSize:o,tagLineHeight:(0,p.bf)(n(e.lineHeightSM).mul(o).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},x=e=>({defaultBg:new f.t(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var y=(0,h.I$)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:o,calc:a}=e,i=a(n).sub(r).equal(),s=a(t).sub(r).equal();return{[o]:Object.assign(Object.assign({},(0,g.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(v(e))),x),b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,style:o,className:i,checked:s,onChange:l,onClick:c}=e,u=b(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:f}=n.useContext(d.E_),g=p("tag",r),[m,h,v]=y(g),x=a()(g,`${g}-checkable`,{[`${g}-checkable-checked`]:s},null==f?void 0:f.className,i,h,v);return m(n.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},o),null==f?void 0:f.style),className:x,onClick:e=>{null==l||l(!s),null==c||c(e)}})))}));var w=k,j=r(85772);var C=(0,h.bk)(["Tag","preset"],(e=>(e=>(0,j.Z)(e,((t,r)=>{let{textColor:n,lightBorderColor:o,lightColor:a,darkColor:i}=r;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(v(e))),x);const S=(e,t,r)=>{const n="string"!=typeof(o=r)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var M=(0,h.bk)(["Tag","status"],(e=>{const t=v(e);return[S(t,"success","Success"),S(t,"processing","Info"),S(t,"error","Error"),S(t,"warning","Warning")]}),x),Z=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,className:o,rootClassName:p,style:f,children:g,icon:m,color:h,onClose:v,bordered:x=!0,visible:b}=e,k=Z(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:w,direction:j,tag:S}=n.useContext(d.E_),[T,P]=n.useState(!0),O=(0,i.Z)(k,["closeIcon","closable"]);n.useEffect((()=>{void 0!==b&&P(b)}),[b]);const F=(0,s.o2)(h),I=(0,s.yT)(h),$=F||I,E=Object.assign(Object.assign({backgroundColor:h&&!$?h:void 0},null==S?void 0:S.style),f),z=w("tag",r),[q,N,U]=y(z),H=a()(z,null==S?void 0:S.className,{[`${z}-${h}`]:$,[`${z}-has-color`]:h&&!$,[`${z}-hidden`]:!T,[`${z}-rtl`]:"rtl"===j,[`${z}-borderless`]:!x},o,p,N,U),B=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||P(!1)},[,V]=(0,l.Z)((0,l.w)(e),(0,l.w)(S),{closable:!1,closeIconRender:e=>{const t=n.createElement("span",{className:`${z}-close-icon`,onClick:B},e);return(0,c.wm)(e,t,(e=>({onClick:t=>{var r;null===(r=null==e?void 0:e.onClick)||void 0===r||r.call(e,t),B(t)},className:a()(null==e?void 0:e.className,`${z}-close-icon`)})))}}),L="function"==typeof k.onClick||g&&"a"===g.type,D=m||null,_=D?n.createElement(n.Fragment,null,D,g&&n.createElement("span",null,g)):g,R=n.createElement("span",Object.assign({},O,{ref:t,className:H,style:E}),_,V,F&&n.createElement(C,{key:"preset",prefixCls:z}),I&&n.createElement(M,{key:"status",prefixCls:z}));return q(L?n.createElement(u.Z,{component:"Tag"},R):R)})),P=T;P.CheckableTag=w;var O=P}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Ticket__Ticket.43038712.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Ticket__Ticket.43038712.async.js deleted file mode 100644 index c176752d45..0000000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Ticket__Ticket.43038712.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[987],{15722:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(11757),o=r(44194),a={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 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=r(54183),s=function(e,t){return o.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(s)},11090:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(11757),o=r(44194),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},i=r(54183),s=function(e,t){return o.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(s)},42085:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(11757),o=r(44194),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=r(54183),s=function(e,t){return o.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(s)},59908:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(11757),o=r(44194),a={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"},i=r(54183),s=function(e,t){return o.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(s)},84881:function(e,t,r){var n=r(17082),o=r(73457),a=r(82308),i=r(44194),s=r(63653),l=r(87413),c=r(31549),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,t){var r=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.showSearch,x=e.options,y=(0,o.Z)(e,u),b=(0,i.useContext)(s.Z);return(0,c.jsx)(l.Z,(0,n.Z)((0,n.Z)({valueEnum:(0,a.h)(m),request:h,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,n.Z)({options:x,mode:g,showSearch:v,getPopupContainer:b.getPopupContainer},r),ref:t,proFieldProps:f},y),{},{children:d}))},f=i.forwardRef((function(e,t){var r=e.fieldProps,u=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.options,x=(0,o.Z)(e,d),y=(0,n.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},r),b=(0,i.useContext)(s.Z);return(0,c.jsx)(l.Z,(0,n.Z)((0,n.Z)({valueEnum:(0,a.h)(m),request:h,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,n.Z)({getPopupContainer:b.getPopupContainer},y),ref:t,proFieldProps:f},x),{},{children:u}))})),g=i.forwardRef(p);g.SearchSelect=f,g.displayName="ProFormComponent",t.Z=g},32350:function(e,t,r){var n=r(17082),o=r(73457),a=r(44194),i=r(87413),s=r(31549),l=["fieldProps","proFieldProps"],c=function(e,t){var r=e.fieldProps,a=e.proFieldProps,c=(0,o.Z)(e,l);return(0,s.jsx)(i.Z,(0,n.Z)({ref:t,valueType:"textarea",fieldProps:r,proFieldProps:a},c))};t.Z=a.forwardRef(c)},72614:function(e,t,r){r.d(t,{W5:function(){return m},n1:function(){return v},p0:function(){return f},u7:function(){return d},zl:function(){return y}});var n=r(90819),o=r.n(n),a=r(73193),i=r.n(a),s=r(89933),l=r.n(s),c=r(55735),u=r(30921);function d(e){return p.apply(this,arguments)}function p(){return(p=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/query/org",{method:"GET",params:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return g.apply(this,arguments)}function g(){return(g=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/create",{method:"POST",data:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/update",{method:"POST",data:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return x.apply(this,arguments)}function x(){return(x=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/update/avatar",{method:"POST",data:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/workgroup/delete",{method:"POST",data:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},17220:function(e,t,r){r(44194);var n=r(75365),o=r(54881),a=r(30921),i=r(31549);t.Z=function(e){var t,r,s=e.file,l=e.onDelete,c=e.showDelete,u=void 0===c||c,d=(0,a.useIntl)();return(0,i.jsxs)("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:d.formatMessage({id:null!=s&&null!==(t=s.fileType)&&void 0!==t&&t.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[u&&(0,i.jsx)(n.ZP,{type:"text",size:"small",icon:(0,i.jsx)(o.Z,{}),onClick:function(){return l(s.uid)},style:{position:"absolute",top:0,right:0,padding:"2px",background:"rgba(255, 255, 255, 0.8)",border:"none",borderRadius:"0 4px 0 4px",zIndex:1}}),(0,i.jsx)("div",{onClick:function(){return window.open(s.fileUrl,"_blank")},style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:null!=s&&null!==(r=s.fileType)&&void 0!==r&&r.startsWith("image/")?(0,i.jsx)("img",{src:null==s?void 0:s.fileUrl,alt:null==s?void 0:s.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):(0,i.jsx)("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:s.fileName})}),(0,i.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.5)",color:"#fff",fontSize:"10px",padding:"2px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:s.fileName})]},s.uid)}},27650:function(e,t,r){var n=r(76711),o=r.n(n),a=r(73193),i=r.n(a),s=r(45332),l=r.n(s),c=r(44194),u=r(42085),d=r(30348),p=r(53530),f=r(28977),g=r.n(f),m=r(55735),h=r(86803),v=r(44521),x=r(17220),y=r(30921),b=r(6397),k=r(31549),w=d.Z.Dragger;t.Z=function(e){var t=e.type,r=(e.acceptType,e.isModalOpen),n=e.attachments,a=e.handleSubmit,s=e.handleCancel,d=(0,y.useIntl)(),f=(0,b.j)((function(e){return e.currentKbase})),j=(0,c.useState)([]),C=l()(j,2),S=C[0],M=C[1],Z=(0,c.useState)({file:null,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"",kb_uid:null==f?void 0:f.uid,client:m.bVn}),T=l()(Z,2),P=T[0],O=T[1];(0,c.useEffect)((function(){console.log("UploadDrag currentKbase",f),f&&O((function(e){return i()(i()({},e),{},{kb_uid:null==f?void 0:f.uid})}))}),[f]);var F=(0,c.useMemo)((function(){return{name:"file",multiple:!0,action:(0,v.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(m.LA8)},data:P,showUploadList:!1,beforeUpload:function(e){var t=g()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name;return O((function(r){return i()(i()({},r),{},{file:e,file_name:t,file_type:e.type,category_uid:""})})),!0},onChange:function(e){"uploading"===e.file.status&&h.yw.loading(d.formatMessage({id:"upload.uploading"},{filename:e.file.name})),"done"===e.file.status?200===e.file.response.code?(h.yw.destroy(),h.yw.success(d.formatMessage({id:"upload.success"},{filename:e.file.name})),M((function(t){return[].concat(o()(t),[e.file.response.data])}))):(h.yw.destroy(),h.yw.error(d.formatMessage({id:"upload.failed"},{filename:e.file.name}))):"error"===e.file.status&&h.yw.error(d.formatMessage({id:"upload.failed"},{filename:e.file.name}))},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}}}),[P,d]);(0,c.useEffect)((function(){O((function(e){return i()(i()({},e),{},{kb_type:t,category_uid:""})})),n&&M(n.map((function(e){return e.upload})))}),[t]);var I=function(e){console.log("handleDelete",e),M((function(t){return t.filter((function(t){return t.uid!==e}))}))};return(0,k.jsxs)(p.Z,{title:d.formatMessage({id:"upload.modal.title"}),open:r,onOk:function(){a(S)},onCancel:s,children:[(0,k.jsxs)(w,i()(i()({},F),{},{children:[(0,k.jsx)("p",{className:"ant-upload-drag-icon",children:(0,k.jsx)(u.Z,{})}),(0,k.jsx)("p",{className:"ant-upload-text",children:d.formatMessage({id:"upload.drag.text"})}),(0,k.jsx)("p",{className:"ant-upload-hint",children:d.formatMessage({id:"upload.drag.hint"})})]})),(0,k.jsx)("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:(0,k.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:S.map((function(e){return(0,k.jsx)(x.Z,{file:e,onDelete:I},e.uid)}))})})]})}},21041:function(e,t,r){r.r(t),r.d(t,{default:function(){return he}});var n=r(75574),o=r(73193),a=r.n(o),i=r(84176),s=r.n(i),l=r(10154),c=r.n(l),u=r(90819),d=r.n(u),p=r(89933),f=r.n(p),g=r(45332),m=r.n(g),h=r(86803),v=r(55735),x=r(30921);function y(e){return b.apply(this,arguments)}function b(){return(b=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/query/org",{method:"GET",params:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return w.apply(this,arguments)}function w(){return(w=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/update",{method:"POST",data:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return C.apply(this,arguments)}function C(){return(C=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/delete",{method:"POST",data:{uid:t,client:v.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return M.apply(this,arguments)}function M(){return(M=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/history/process",{method:"GET",params:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return T.apply(this,arguments)}function T(){return(T=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/history/task",{method:"GET",params:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return O.apply(this,arguments)}function O(){return(O=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,x.request)("/api/v1/ticket/history/activity",{method:"GET",params:a()(a()({},t),{},{client:v.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var F=r(40612),I=r(90838),$=r(32045),E=r(76750),z=r(11090),q=r(72381),N=r(53530),H=r(29266),B=r(75365),V=r(28977),U=r.n(V),L=r(44194),D=r(76711),_=r.n(D),A=r(16309),R=r(73442),W=r(3849),G=r(72614),Y=r(6807),X=r(4499),J=r(32350),K=r(84881),Q=r(17220),ee=r(27650),te=r(59908),re=r(31549),ne=function(e){var t=e.open,r=e.isEdit,n=e.ticket,o=e.onClose,i=e.onSuccess,s=A.Z.useForm(),l=m()(s,1)[0],c=(0,x.useIntl)(),u=(0,E.Z)().translateString,p=(0,F.u)((function(e){return e.currentOrg})),g=(0,L.useState)([]),y=m()(g,2),b=y[0],w=y[1],j=(0,L.useState)([]),C=m()(j,2),S=C[0],M=C[1],Z=(0,L.useState)([]),T=m()(Z,2),P=T[0],O=T[1],I=(0,L.useState)(!1),z=m()(I,2),q=z[0],N=z[1],H=(0,L.useState)([]),V=m()(H,2),U=V[0],D=V[1],ne=[{value:v.sM_,label:c.formatMessage({id:"ticket.status.new"})},{value:v.sFW,label:c.formatMessage({id:"ticket.status.claimed"})},{value:v.z1,label:c.formatMessage({id:"ticket.status.processing"})},{value:v.pIN,label:c.formatMessage({id:"ticket.status.pending"})},{value:v.XrC,label:c.formatMessage({id:"ticket.status.holding"})},{value:v.yib,label:c.formatMessage({id:"ticket.status.reopened"})},{value:v.hwr,label:c.formatMessage({id:"ticket.status.resolved"})},{value:v.frw,label:c.formatMessage({id:"ticket.status.closed"})},{value:v.xw4,label:c.formatMessage({id:"ticket.status.cancelled"})}],oe=[{value:v.JTO,label:c.formatMessage({id:"ticket.priority.lowest"})},{value:v.sbT,label:c.formatMessage({id:"ticket.priority.low"})},{value:v.GMZ,label:c.formatMessage({id:"ticket.priority.medium"})},{value:v.Bt2,label:c.formatMessage({id:"ticket.priority.high"})},{value:v._Xr,label:c.formatMessage({id:"ticket.priority.urgent"})},{value:v.Lx6,label:c.formatMessage({id:"ticket.priority.critical"})}],ae=function(){var e=f()(d()().mark((function e(){var t,r;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,$.XS)({type:v.hcJ,orgUid:null==p?void 0:p.uid,pageNumber:0,pageSize:100});case 3:200===(r=e.sent).code&&null!==(t=r.data)&&void 0!==t&&t.content&&w(r.data.content),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Fetch categories error:",e.t0),h.yw.error(c.formatMessage({id:"ticket.category.load.error"}));case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),ie=function(){var e=f()(d()().mark((function e(){var t,r;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:0,pageSize:50,orgUid:null==p?void 0:p.uid},e.next=3,(0,G.u7)(t);case 3:200===(r=e.sent).code?(M(r.data.content),O(r.data.content.reduce((function(e,t){var r;return null===(r=t.agents)||void 0===r||r.forEach((function(t){e.find((function(e){return e.uid===t.uid}))||e.push(t)})),e}),[]))):h.yw.error(r.message);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,L.useEffect)((function(){t&&(ie(),ae())}),[t]);var se=b.filter((function(e){return e.uid!==DEPT_ALL})),le=function(){var e=f()(d()().mark((function e(){var t,r,s;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l.validateFields();case 3:return t=e.sent,h.yw.loading(c.formatMessage({id:"updating"})),r=a()(a()(a()({},n),t),{},{uploadUids:U.map((function(e){return e.uid}))}),console.log("updateTicket request",r),e.next=9,k(r);case 9:s=e.sent,console.log("updateTicket response",s),200===s.code?(h.yw.success(c.formatMessage({id:"update.success"})),i(),o()):h.yw.error(s.message),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.error("Update failed:",e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}();L.useEffect((function(){var e,r,o;t&&n&&(l.setFieldsValue({title:n.title,description:n.description,status:n.status,priority:n.priority,categoryUid:n.categoryUid,workgroupUid:null===(e=n.workgroup)||void 0===e?void 0:e.uid,assigneeUid:null===(r=n.assignee)||void 0===r?void 0:r.uid}),D(null===(o=n.attachments)||void 0===o?void 0:o.map((function(e){return e.upload}))))}),[t,n]);var ce=function(e){console.log("handleDelete",e),D((function(t){return t.filter((function(t){return t.uid!==e}))}))};return(0,re.jsx)(R.Z,{title:c.formatMessage({id:"ticket.edit.title"}),width:600,open:t,onClose:o,extra:(0,re.jsxs)(W.Z,{children:[(0,re.jsx)(B.ZP,{onClick:o,children:(0,re.jsx)(x.FormattedMessage,{id:"cancel"})}),(0,re.jsx)(B.ZP,{type:"primary",onClick:le,children:(0,re.jsx)(x.FormattedMessage,{id:"save"})})]}),children:(0,re.jsxs)(Y.ZP,{form:l,submitter:!1,layout:"vertical",children:[(0,re.jsx)(X.Z,{name:"title",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.title"}),rules:[{required:!0}]}),(0,re.jsx)(J.Z,{name:"description",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.description"}),rules:[{required:!0}]}),(0,re.jsx)(K.Z,{name:"categoryUid",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.category"}),rules:[{required:!0}],options:se.map((function(e){return{label:u(e.name),value:e.uid}}))}),(0,re.jsx)(K.Z,{name:"workgroupUid",label:c.formatMessage({id:"ticket.workgroup"}),rules:[{required:!0}],options:S.map((function(e){return{label:u(e.nickname),value:e.uid}})),placeholder:c.formatMessage({id:"ticket.workgroup.placeholder"}),onChange:function(e){var t=S.find((function(t){return t.uid===e}));null!=t&&t.agents?(O(t.agents),l.setFieldValue("assigneeUid",void 0)):O([])}}),(0,re.jsx)(K.Z,{name:"assigneeUid",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.assignee"}),rules:[{required:!0}],options:P.map((function(e){return{label:e.nickname,value:e.uid}}))}),(0,re.jsx)(K.Z,{name:"status",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.status"}),rules:[{required:!0}],options:ne}),(0,re.jsx)(K.Z,{name:"priority",label:(0,re.jsx)(x.FormattedMessage,{id:"ticket.priority"}),rules:[{required:!0}],options:oe}),q&&(0,re.jsx)(ee.Z,{type:v.hcJ,isModalOpen:q,attachments:null==n?void 0:n.attachments,handleSubmit:function(e){console.log("handleSubmit",e),D(r&&n?e:function(t){return[].concat(_()(t),_()(e))}),N(!1)},handleCancel:function(){N(!1)}}),(0,re.jsx)("div",{style:{marginTop:"16px",marginBottom:"16px",maxHeight:"200px",overflowY:"auto"},children:(0,re.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:U.map((function(e){return(0,re.jsx)(Q.Z,{file:e,onDelete:ce},e.uid)}))})}),(0,re.jsx)(B.ZP,{icon:(0,re.jsx)(te.Z,{}),onClick:function(){return N(!0)},children:c.formatMessage({id:"ticket.upload.button"})})]})})},oe=r(44521),ae=r(80601),ie=r(51004),se=r(73589),le=function(e){var t=e.ticket,r=e.isThreadTicket,n=void 0!==r&&r,o=(0,F.u)((function(e){return e.currentOrg})),a=(0,L.useState)([]),i=m()(a,2),s=(i[0],i[1]),l=(0,L.useState)([]),c=m()(l,2),u=(c[0],c[1]),p=(0,L.useState)([]),g=m()(p,2),y=g[0],b=g[1],k=(0,L.useState)(!1),w=m()(k,2),j=w[0],C=w[1],M=(0,x.useIntl)();console.log("currentTicket",t,j);var T=function(){var e=f()(d()().mark((function e(){var r,n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,C(!0),r={pageNumber:0,pageSize:100,uid:null==t?void 0:t.uid,processInstanceId:null==t?void 0:t.processInstanceId,orgUid:null==o?void 0:o.uid},e.next=7,S(r);case 7:n=e.sent,console.log("queryTicketHistoryProcess response:",n.data),200===n.code?s(n.data||[]):(console.log("queryTicketHistoryTask error:",n.data),h.yw.error(n.message)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("Fetch ticket history error:",e.t0),h.yw.error("获取工单历史记录失败");case 16:return e.prev=16,C(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,12,16,19]])})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=f()(d()().mark((function e(){var r,n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,C(!0),r={pageNumber:0,pageSize:100,uid:null==t?void 0:t.uid,processInstanceId:null==t?void 0:t.processInstanceId,orgUid:null==o?void 0:o.uid},e.next=7,Z(r);case 7:n=e.sent,console.log("queryTicketHistoryTask response:",n.data),200===n.code?u(n.data||[]):(console.log("queryTicketHistoryTask error:",n.data),h.yw.error(n.message)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("Fetch ticket history error:",e.t0),h.yw.error("获取工单历史记录失败");case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=f()(d()().mark((function e(){var r,n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,C(!0),r={pageNumber:0,pageSize:100,uid:null==t?void 0:t.uid},e.next=7,P(r);case 7:n=e.sent,console.log("queryTicketHistoryActivity response:",n.data),200===n.code?b(n.data||[]):(console.log("queryTicketHistoryActivity error:",n.data),h.yw.error(n.message)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("Fetch ticket history error:",e.t0),h.yw.error("获取工单历史记录失败");case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();(0,L.useEffect)((function(){n||(T(),O(),I())}),[t]);var $=function(e){return e?e===v.sM_||e===v.sFW||e===v.W66||e===v.z1||e===v.pIN||e===v.XrC||e===v.L1h||e===v.yib||e===v.hwr||e===v.AzB||e===v.frw||e===v.xw4?M.formatMessage({id:"ticket.status.".concat(e.toLowerCase())}):e:""};return(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)(ae.Z,{spinning:j,children:[(0,re.jsx)("p",{style:{fontSize:"16px",fontWeight:"bold",textAlign:"center"},children:"活动历史"}),(0,re.jsx)(ie.Z,{direction:"vertical",size:"small",current:y.length-1,style:{padding:"16px"},items:y.map((function(e,t){var r;return{title:$(null==e?void 0:e.activityName)||"活动",description:(0,re.jsxs)("div",{children:[(0,re.jsxs)("div",{children:["处理人: ",(null==e?void 0:e.assignee)||"未分配"]}),(0,re.jsxs)("div",{children:["处理时间: ",(null===(r=e.startTime)||void 0===r?void 0:r.toLocaleString())||"未分配"]})]}),status:t===y.length-1?"process":"finish"}}))}),0===y.length&&(0,re.jsx)(se.Z,{description:"请选择工单查看流转过程"})]})})},ce=function(e){var t=e.open,r=e.ticket,n=e.onClose;return(0,re.jsx)(re.Fragment,{children:(0,re.jsx)(R.Z,{open:t,onClose:function(){n()},title:"工单详情",children:(0,re.jsx)(le,{ticket:r,isThreadTicket:!1})})})},ue=["current"],de=function(){var e=(0,x.useIntl)(),t=(0,L.useRef)(),r=(0,F.u)((function(e){return e.currentOrg})),n=(0,E.Z)().translateString,o=(0,I.v)().setCategoryResult,i=(0,I.v)((function(e){return e.currentCategory})),l=(0,L.useState)(!1),u=m()(l,2),p=u[0],g=u[1],b=(0,L.useState)(),k=m()(b,2),w=k[0],C=k[1],S=(0,L.useState)(!1),M=m()(S,2),Z=M[0],T=M[1],P=N.Z.useModal(),O=m()(P,2),V=O[0],D=O[1],_=(0,L.useState)(!1),A=m()(_,2),R=A[0],W=A[1],G=function(){var e=f()(d()().mark((function e(){var t,n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:0,pageSize:50,type:v.hcJ,orgUid:null==r?void 0:r.uid},e.next=3,(0,$.XS)(t);case 3:200===(n=e.sent).code?o(n):h.yw.error(n.message);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,L.useEffect)((function(){G()}),[]);var Y=(0,I.v)((function(e){return e.categoryResult.data.content}));(0,L.useEffect)((function(){var e;null===(e=t.current)||void 0===e||e.reload()}),[null==i?void 0:i.uid]);var X=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.title"}),dataIndex:"title",copyable:!0,ellipsis:!0},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.description"}),dataIndex:"description",ellipsis:!0},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.status"}),dataIndex:"status",hideInSearch:!0,render:function(e,t){var r=c()(c()(c()(c()(c()(c()(c()(c()(c()({},v.sM_,"blue"),v.sFW,"cyan"),v.z1,"processing"),v.pIN,"warning"),v.XrC,"orange"),v.yib,"volcano"),v.hwr,"success"),v.frw,"default"),v.xw4,"error");return(0,re.jsx)(H.Z,{color:r[t.status],children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.status.".concat(t.status.toLowerCase())})})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.priority"}),dataIndex:"priority",hideInSearch:!0,render:function(e,t){var r=c()(c()(c()(c()(c()(c()({},v.JTO,"default"),v.sbT,"blue"),v.GMZ,"orange"),v.Bt2,"volcano"),v._Xr,"red"),v.Lx6,"purple");return(0,re.jsx)(H.Z,{color:r[t.priority],children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.priority.".concat(t.priority.toLowerCase())})})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.assignee"}),dataIndex:"assignee",hideInSearch:!0,render:function(e,t,r,n){var o;return(0,re.jsx)(H.Z,{color:"blue",children:null===(o=t.assignee)||void 0===o?void 0:o.nickname})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.reporter"}),dataIndex:"reporter",hideInSearch:!0,render:function(e,t,r,n){var o;return(0,re.jsx)(H.Z,{color:"red",children:null===(o=t.reporter)||void 0===o?void 0:o.nickname})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"ticket.category"}),dataIndex:"categoryUid",hideInSearch:!0,render:function(t,r){var o=Y.find((function(e){return e.uid===r.categoryUid}));return o?(0,re.jsx)(H.Z,{color:"green",children:n(o.name)}):(0,re.jsx)(H.Z,{color:"default",children:e.formatMessage({id:"uncategorized",defaultMessage:"Uncategorized"})})}},{title:(0,re.jsx)(x.FormattedMessage,{id:"createdAt"}),dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,render:function(e,t,r,n){return U()(t.createdAt).format("YYYY-MM-DD HH:mm:ss")}},{title:(0,re.jsx)(x.FormattedMessage,{id:"updatedAt"}),dataIndex:"updatedAt",valueType:"dateTime",hideInSearch:!0,render:function(e,t,r,n){return U()(t.updatedAt).format("YYYY-MM-DD HH:mm:ss")}},{title:(0,re.jsx)(x.FormattedMessage,{id:"action"}),key:"option",dataIndex:"option",hideInSearch:!0,width:200,render:function(e,r){return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(B.ZP,{type:"link",onClick:function(){return C(r),g(!0),void T(!0)},children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.edit"})}),(0,re.jsx)(B.ZP,{type:"link",onClick:function(){return e=r,console.log("handleViewTicket",e),C(e),void W(!0);var e},children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.view"})}),(0,re.jsx)(B.ZP,{type:"link",onClick:function(){return e=r,console.log("handleDeleteTicket",e),void V.confirm({title:"确定要删除该工单吗?",onOk:(n=f()(d()().mark((function r(){var n,o;return d()().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return console.log("onOk"),r.next=3,j(e.uid);case 3:n=r.sent,console.log("deleteTicket response:",n),200===n.code?(h.yw.success(n.message),null===(o=t.current)||void 0===o||o.reload()):h.yw.error(n.message);case 6:case"end":return r.stop()}}),r)}))),function(){return n.apply(this,arguments)})});var e,n},children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.delete"})})]})}}],J=function(){console.log("handleExportExcel");var e=localStorage.getItem(v.LA8);window.open((0,oe.kG)()+"/api/v1/ticket/export?orgUid="+(null==r?void 0:r.uid)+"&pageNumber=0&pageSize=20&accessToken="+e)};return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(q.Z,{columns:X,actionRef:t,cardBordered:!0,columnsState:{defaultValue:{description:{show:!1},createdAt:{show:!1},reporter:{show:!1}},persistenceKey:"ticket-table-columns",persistenceType:"localStorage"},request:function(){var e=f()(d()().mark((function e(t,n,o){var l,c,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.current,l=s()(t,ue),c=a()(a()({pageNumber:t.current-1,orgUid:null==r?void 0:r.uid},(null==i?void 0:i.uid)!==v.zBg&&{categoryUid:null==i?void 0:i.uid}),l),e.next=4,y(c);case 4:return u=e.sent,console.log("queryTicketsByOrgUid response:",u,c),200===u.code||h.yw.error(u.message),e.abrupt("return",{data:u.data.content,success:!0,total:u.data.totalElements});case 8:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:e.formatMessage({id:"ticket.list"}),toolBarRender:function(){return[(0,re.jsx)(B.ZP,{type:"primary",onClick:function(){return window.open((0,oe.rl)())},children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.open.flow.editor"})}),(0,re.jsx)(B.ZP,{icon:(0,re.jsx)(z.Z,{}),type:"primary",onClick:J,children:(0,re.jsx)(x.FormattedMessage,{id:"ticket.action.export"})},"button")]}}),p&&(0,re.jsx)(ne,{open:p,isEdit:Z,ticket:w,onClose:function(){g(!1),C(void 0),T(!1)},onSuccess:function(){var e;null===(e=t.current)||void 0===e||e.reload()}}),R&&(0,re.jsx)(ce,{open:R,ticket:w,onClose:function(){return W(!1)}}),D]})},pe=r(8377),fe=r(96865),ge=n.Z.Sider,me=n.Z.Content,he=function(){var e=(0,fe.Z)(),t=e.leftSiderStyle,r=e.contentStyle;return(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)(n.Z,{children:[(0,re.jsx)(ge,{style:t,width:250,children:(0,re.jsx)(pe.Z,{type:v.hcJ})}),(0,re.jsx)(n.Z,{children:(0,re.jsx)(me,{style:r,children:(0,re.jsx)(de,{})})})]})})}},27487:function(e,t,r){r.d(t,{Z:function(){return j}});var n=r(44194),o=r(51865),a=r.n(o),i=r(97859),s=r(90899),l=r(37167),c=r(65759),u=r(77167);const d=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return a()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const r=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&d.includes(r)}})(e,t)),((e,t)=>{const r={};return f.forEach((n=>{r[`${e}-align-${n}`]=t.align===n})),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r})(e,t)),((e,t)=>{const r={};return p.forEach((n=>{r[`${e}-justify-${n}`]=t.justify===n})),r})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,r={};return d.forEach((e=>{r[`${t}-wrap-${e}`]={flexWrap:e}})),r},x=e=>{const{componentCls:t}=e,r={};return f.forEach((e=>{r[`${t}-align-${e}`]={alignItems:e}})),r},y=e=>{const{componentCls:t}=e,r={};return p.forEach((e=>{r[`${t}-justify-${e}`]={justifyContent:e}})),r};var b=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,o=(0,u.IX)(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[m(o),h(o),v(o),x(o),y(o)]}),(()=>({})),{resetStyle:!1}),k=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,rootClassName:o,className:c,style:u,flex:d,gap:p,children:f,vertical:m=!1,component:h="div"}=e,v=k(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:x,direction:y,getPrefixCls:w}=n.useContext(l.E_),j=w("flex",r),[C,S,M]=b(j),Z=null!=m?m:null==x?void 0:x.vertical,T=a()(c,o,null==x?void 0:x.className,j,S,M,g(j,e),{[`${j}-rtl`]:"rtl"===y,[`${j}-gap-${p}`]:(0,s.n)(p),[`${j}-vertical`]:Z}),P=Object.assign(Object.assign({},null==x?void 0:x.style),u);return d&&(P.flex=d),p&&!(0,s.n)(p)&&(P.gap=p),C(n.createElement(h,Object.assign({ref:t,className:T,style:P},(0,i.Z)(v,["justify","wrap","align"])),f))}));var j=w},29266:function(e,t,r){r.d(t,{Z:function(){return O}});var n=r(44194),o=r(51865),a=r.n(o),i=r(97859),s=r(63125),l=r(80314),c=r(79145),u=r(18011),d=r(37167),p=r(47825),f=r(87471),g=r(88874),m=r(77167),h=r(65759);const v=e=>{const{lineWidth:t,fontSizeIcon:r,calc:n}=e,o=e.fontSizeSM;return(0,m.IX)(e,{tagFontSize:o,tagLineHeight:(0,p.bf)(n(e.lineHeightSM).mul(o).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},x=e=>({defaultBg:new f.t(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var y=(0,h.I$)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:o,calc:a}=e,i=a(n).sub(r).equal(),s=a(t).sub(r).equal();return{[o]:Object.assign(Object.assign({},(0,g.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(v(e))),x),b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,style:o,className:i,checked:s,onChange:l,onClick:c}=e,u=b(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:f}=n.useContext(d.E_),g=p("tag",r),[m,h,v]=y(g),x=a()(g,`${g}-checkable`,{[`${g}-checkable-checked`]:s},null==f?void 0:f.className,i,h,v);return m(n.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},o),null==f?void 0:f.style),className:x,onClick:e=>{null==l||l(!s),null==c||c(e)}})))}));var w=k,j=r(85772);var C=(0,h.bk)(["Tag","preset"],(e=>(e=>(0,j.Z)(e,((t,r)=>{let{textColor:n,lightBorderColor:o,lightColor:a,darkColor:i}=r;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(v(e))),x);const S=(e,t,r)=>{const n="string"!=typeof(o=r)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var M=(0,h.bk)(["Tag","status"],(e=>{const t=v(e);return[S(t,"success","Success"),S(t,"processing","Info"),S(t,"error","Error"),S(t,"warning","Warning")]}),x),Z=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,className:o,rootClassName:p,style:f,children:g,icon:m,color:h,onClose:v,bordered:x=!0,visible:b}=e,k=Z(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:w,direction:j,tag:S}=n.useContext(d.E_),[T,P]=n.useState(!0),O=(0,i.Z)(k,["closeIcon","closable"]);n.useEffect((()=>{void 0!==b&&P(b)}),[b]);const F=(0,s.o2)(h),I=(0,s.yT)(h),$=F||I,E=Object.assign(Object.assign({backgroundColor:h&&!$?h:void 0},null==S?void 0:S.style),f),z=w("tag",r),[q,N,H]=y(z),B=a()(z,null==S?void 0:S.className,{[`${z}-${h}`]:$,[`${z}-has-color`]:h&&!$,[`${z}-hidden`]:!T,[`${z}-rtl`]:"rtl"===j,[`${z}-borderless`]:!x},o,p,N,H),V=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||P(!1)},[,U]=(0,l.Z)((0,l.w)(e),(0,l.w)(S),{closable:!1,closeIconRender:e=>{const t=n.createElement("span",{className:`${z}-close-icon`,onClick:V},e);return(0,c.wm)(e,t,(e=>({onClick:t=>{var r;null===(r=null==e?void 0:e.onClick)||void 0===r||r.call(e,t),V(t)},className:a()(null==e?void 0:e.className,`${z}-close-icon`)})))}}),L="function"==typeof k.onClick||g&&"a"===g.type,D=m||null,_=D?n.createElement(n.Fragment,null,D,g&&n.createElement("span",null,g)):g,A=n.createElement("span",Object.assign({},O,{ref:t,className:B,style:E}),_,U,F&&n.createElement(C,{key:"preset",prefixCls:z}),I&&n.createElement(M,{key:"status",prefixCls:z}));return q(L?n.createElement(u.Z,{component:"Tag"},A):A)})),P=T;P.CheckableTag=w;var O=P}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/preload_helper.8bed64d1.js b/starter/src/main/resources/templates/admin/preload_helper.47c4ba69.js similarity index 99% rename from starter/src/main/resources/templates/admin/preload_helper.8bed64d1.js rename to starter/src/main/resources/templates/admin/preload_helper.47c4ba69.js index 5f8b4ab693..66c5e85e45 100644 --- a/starter/src/main/resources/templates/admin/preload_helper.8bed64d1.js +++ b/starter/src/main/resources/templates/admin/preload_helper.47c4ba69.js @@ -1 +1 @@ -!function(){"use strict";var t="/admin/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"admin","b":"webpack","f":[["69.80558717.async.js",69],["138.d5089098.async.js",138],["269.1aea9cc2.async.js",269],["p__Dashboard__Service__Unified__index.814da319.async.js",331],["p__Dashboard__Team__Message__MessageTable.05088cec.async.js",363],["p__Dashboard__Marketing__Blog__BlogStatistic.61d8b571.async.js",510],["p__Dashboard__Voc__index.00c7b346.async.js",513],["p__Dashboard__Ai__Statistic__index.2036284a.async.js",524],["p__Dashboard__Service__Crm__Visitor.f7479f4b.async.js",569],["p__Dashboard__Kbase__Taboo__TabooData.f9c908ef.chunk.css",666],["p__Dashboard__Kbase__Taboo__TabooData.169c8077.async.js",666],["870.a4858a01.async.js",870],["p__Dashboard__Ai__LlmModel__index.4a167feb.async.js",950],["p__Dashboard__Super__LlmModel__index.125ce179.async.js",981],["p__Dashboard__Ticket__Ticket.f9c908ef.chunk.css",987],["p__Dashboard__Ticket__Ticket.43038712.async.js",987],["1004.02aea1a8.async.js",1004],["1182.8cd8243e.async.js",1182],["p__Dashboard__Ai__Message__index.ff0afc2c.async.js",1206],["p__Dashboard__Marketing__Blog__index.773a9d9c.async.js",1312],["p__Dashboard__Marketing__Video__VideoData.167a819c.async.js",1426],["p__Dashboard__Ai__Prompt__index.77a5dd17.async.js",1466],["p__Dashboard__Service__Queue__QueueMemberTable.f2c47ed6.async.js",1474],["p__Dashboard__Service__Queue__QueueStatistic.945efcc0.async.js",1488],["p__Dashboard__Service__Crm__CustomerStatistic.3adfbd92.async.js",1490],["p__Dashboard__Team__Notification__index.fbc46118.async.js",1531],["p__Dashboard__Setting__Money__index.fdc089a3.async.js",1589],["p__Dashboard__Service__Agent__index.1f06e5e5.async.js",1642],["1699.aca5d62a.async.js",1699],["p__Auth__Register__index.850d87bf.async.js",1730],["p__Dashboard__Super__Notification__index.4e7e4367.async.js",1926],["p__Dashboard__Kbase__Statistic__index.894f38ac.async.js",1942],["2026.115bf7c6.chunk.css",2026],["2026.1cc5fa55.async.js",2026],["p__Dashboard__Kbase__Upload__UploadStatistic.a0011631.async.js",2041],["p__Dashboard__Service__Thread__ThreadStatistic.e7984a3f.async.js",2097],["p__Dashboard__Service__Thread__index.025c9e80.async.js",2148],["p__Dashboard__Kbase__Llm__LlmData.f9c908ef.chunk.css",2255],["p__Dashboard__Kbase__Llm__LlmData.04c5464b.async.js",2255],["p__Dashboard__Super__Recharge__index.f36ef5c9.async.js",2319],["p__Dashboard__Team__Thread__ThreadMonitor.5d65a9fe.async.js",2375],["2381.3a0b796d.async.js",2381],["2433.aac2961e.async.js",2433],["p__Dashboard__Plugins__index.ebd43fc5.async.js",2494],["p__Dashboard__Ai__index.cb670aa5.chunk.css",2522],["p__Dashboard__Ai__index.19ac54a6.async.js",2522],["p__404.e2cb84c2.async.js",2571],["p__Dashboard__Team__Thread__ThreadSummary.64cecfe2.async.js",2618],["p__Dashboard__Marketing__Blog__BlogData.f9c908ef.chunk.css",2647],["p__Dashboard__Marketing__Blog__BlogData.2fd04fe5.async.js",2647],["p__Dashboard__Team__Action__ActionStatistic.fa0d126a.async.js",2658],["2673.faa8efa0.async.js",2673],["p__Dashboard__Service__Tag__TagTable.c61acb3f.async.js",2701],["p__Dashboard__Team__Thread__index.a045c06d.async.js",2708],["p__Dashboard__Ai__Thread__index.92708cbe.async.js",2728],["p__Dashboard__Service__Message__index.36d3751f.async.js",2949],["p__Dashboard__Team__Message__MessageStatistic.2a09a109.async.js",2992],["p__Dashboard__Kbase__Taboo__TabooStatistic.9e8ecc4f.async.js",3003],["p__Dashboard__Marketing__Video__index.949a0803.async.js",3034],["p__Dashboard__Super__User__UserData.a521d428.async.js",3088],["p__Dashboard__Kbase__Llm__LlmStatistic.d9a56de6.async.js",3135],["p__Dashboard__Marketing__Email__EmailStatistic.4e87ac06.async.js",3151],["p__Dashboard__Kbase__Taboo__index.84d14897.async.js",3153],["p__Dashboard__Service__Crm__index.ec8b13c8.async.js",3186],["p__Dashboard__Ticket__Statistic__index.f88c4907.async.js",3280],["3317.3f400b23.async.js",3317],["p__Dashboard__Service__Crm__VisitorStatistic.119f2437.async.js",3395],["3442.7a52d66b.async.js",3442],["p__Dashboard__Service__LeaveMsg__index.27a33c74.async.js",3621],["p__Dashboard__Quartz__index.2f2871f6.chunk.css",3848],["p__Dashboard__Quartz__index.6c5eaba3.async.js",3848],["p__Dashboard__Service__Thread__ThreadTab.4d701afc.async.js",3868],["p__GettingStarted.44dac29d.async.js",4015],["4197.1fe53433.async.js",4197],["p__Dashboard__Super__Notification__NotificationTable.2a17973d.async.js",4204],["p__Dashboard__Super__Recharge__RechargeStatistic.035f3cc5.async.js",4215],["p__Dashboard__Marketing__Video__VideoStatistic.a784ddf7.async.js",4262],["4288.9e74c381.async.js",4288],["p__Dashboard__Team__Role__index.2f156a5a.async.js",4325],["p__Dashboard__Team__Action__ActionTable.cc36a324.async.js",4376],["p__Dashboard__Service__Message__MessageStatistic.bb0c4a67.async.js",4460],["4490.62ee2780.async.js",4490],["4522.3de17988.async.js",4522],["4587.fcd64cbc.async.js",4587],["p__Dashboard__Super__User__index.fb5d5f8f.async.js",4693],["p__Dashboard__Team__Company__index.96e71c0e.async.js",4747],["p__Dashboard__Kbase__QuickReply__QuickReplyData.f9c908ef.chunk.css",4790],["p__Dashboard__Kbase__QuickReply__QuickReplyData.cc419948.async.js",4790],["p__Dashboard__Ai__Thread__ThreadStatistic.6871b031.async.js",4894],["4954.a51d55af.async.js",4954],["p__Dashboard__Service__Channel__index.8c8342e6.async.js",5131],["p__Dashboard__Super__Push__index.b91ebf39.async.js",5159],["p__OAuth__Google.fc6c3163.async.js",5279],["p__Dashboard__Service__Tag__index.3e95f9e8.async.js",5387],["p__Dashboard__Kbase__QuickReply__index.03accc69.async.js",5405],["5422.42dd8cb9.async.js",5422],["5454.21a0f846.async.js",5454],["p__Dashboard__Service__Rate__index.867394ae.async.js",5684],["p__Dashboard__Kbase__QuickReply__QuickReplyStatistic.75808ede.async.js",5726],["p__Dashboard__Team__Notification__NotificationTable.9fc08896.async.js",5774],["p__Dashboard__Kbase__AutoReply__AutoReplyData.f9c908ef.chunk.css",5852],["p__Dashboard__Kbase__AutoReply__AutoReplyData.12bf817d.async.js",5852],["p__Dashboard__Super__Role__index.4531dd70.async.js",6021],["p__Dashboard__Kbase__Llm__index.556d1fbf.async.js",6038],["t__plugin-layout__Layout.5012e1ab.chunk.css",6301],["t__plugin-layout__Layout.9ec1ba1b.async.js",6301],["6378.995b676b.async.js",6378],["6517.343b5999.async.js",6517],["p__Dashboard__Team__Notification__NotificationStatistic.ffd3b78e.async.js",6545],["6588.38e748db.async.js",6588],["p__Dashboard__Setting__Server__index.3bf6796a.async.js",6676],["p__Dashboard__Setting__Basic__index.25f6f1d3.async.js",6766],["p__Dashboard__Team__Thread__ThreadStatistic.35c2d46a.async.js",6771],["p__Dashboard__Ai__Message__MessageStatistic.2ab4d1f3.async.js",6781],["p__Dashboard__Team__Statistic__index.489f0bb6.async.js",6805],["6865.a4a48a73.async.js",6865],["p__Dashboard__Service__Tag__TagStatistic.5ed6e7d6.async.js",7080],["p__Dashboard__Kbase__Article__ArticleData.f9c908ef.chunk.css",7116],["p__Dashboard__Kbase__Article__ArticleData.c5e9b08d.async.js",7116],["p__Dashboard__Team__Group__GroupTable.59712ca1.async.js",7139],["7186.1e337a49.async.js",7186],["p__Dashboard__Kbase__Upload__UploadTable.bb315477.async.js",7193],["p__Dashboard__Service__Thread__ThreadMonitor.1582d692.async.js",7270],["p__Dashboard__Ai__Thread__ThreadTable.3e74e81b.async.js",7357],["p__Dashboard__Super__Recharge__RechargeData.40dd2df6.async.js",7358],["7402.4311692c.async.js",7402],["p__Dashboard__Setting__index.a41e0c06.async.js",7469],["p__Dashboard__Service__Queue__Queue.5e01c822.async.js",7489],["7625.4f5190b0.async.js",7625],["p__Dashboard__Service__Message__MessageTable.832cebb8.async.js",7788],["p__Dashboard__Ai__Message__MessageTable.1fd02567.async.js",7806],["7885.7a890543.async.js",7885],["p__Dashboard__Kbase__index.51c776c2.async.js",7955],["p__Dashboard__Team__Member__index.f9c908ef.chunk.css",7960],["p__Dashboard__Team__Member__index.7407db73.async.js",7960],["p__Dashboard__Kbase__Article__ArticleStatistic.5dfd9a34.async.js",7990],["8020.c7c602cf.async.js",8020],["p__Dashboard__Kbase__Article__index.db3c94ce.async.js",8032],["p__Dashboard__Kbase__AutoReply__index.c58591d2.async.js",8125],["p__Dashboard__Marketing__index.2c2ca104.async.js",8164],["p__Welcome.ee943794.async.js",8185],["8247.69a34766.async.js",8247],["p__OAuth__Github.99998f31.async.js",8250],["p__Dashboard__Service__LeaveMsg__LeaveMsgTable.47806a27.async.js",8326],["8377.f6444afb.async.js",8377],["p__Dashboard__Service__Thread__ThreadSummary.28015b1c.async.js",8390],["p__Dashboard__Service__LeaveMsg__LeaveMsgStatistic.f5999ad1.async.js",8412],["p__Dashboard__Team__Action__index.1d9fbaa5.async.js",8483],["p__Dashboard__Team__Message__index.c8346071.async.js",8491],["8505.2fa2526d.async.js",8505],["8577.12c99b4c.async.js",8577],["p__Dashboard__Super__User__UserStatistic.bf635061.async.js",8622],["8697.cf98b55e.async.js",8697],["p__Dashboard__Super__Notification__NotificationStatistic.8c142b1f.async.js",8700],["8853.836250fb.async.js",8853],["p__Dashboard__Marketing__Email__index.dc47d158.async.js",8873],["8950.cdea7680.async.js",8950],["8958.53c776fb.async.js",8958],["9013.b745fd63.async.js",9013],["p__Dashboard__Team__Thread__ThreadTable.8102d2ab.async.js",9077],["9133.933ccb18.async.js",9133],["p__Dashboard__Super__Push__PushData.c0f5e763.async.js",9137],["p__Dashboard__Flow__index.de751981.async.js",9145],["p__Dashboard__Super__Push__PushStatistic.070327cc.async.js",9212],["p__Dashboard__Setting__Profile__index.97b70045.async.js",9290],["p__Dashboard__Team__Group__GroupStatistic.7039df7b.async.js",9346],["9350.77a77093.async.js",9350],["p__Auth__Login__index.e0e459ca.async.js",9368],["p__Dashboard__Setting__Certification__index.a01ccde2.async.js",9400],["p__Dashboard__Setting__Notification__index.8dfd6d29.async.js",9408],["9449.e4dd1a91.async.js",9449],["9452.82f5c645.async.js",9452],["p__Dashboard__Service__Quality__index.5abc6eb2.async.js",9505],["9577.c10efe20.async.js",9577],["p__Dashboard__Marketing__Email__EmailData.f9c908ef.chunk.css",9590],["p__Dashboard__Marketing__Email__EmailData.07f70eda.async.js",9590],["p__Dashboard__Service__Queue__index.42bb26f7.async.js",9614],["p__Dashboard__Team__Company__CompanyInfo.305473da.async.js",9814],["p__Dashboard__Service__Workgroup__index.639e320a.async.js",9828],["p__Dashboard__Team__Group__index.2a408930.async.js",9870],["p__Dashboard__Service__Crm__CustomerTable.db763070.async.js",9949],["p__Dashboard__Service__Statistic__index.c3259b1a.async.js",9967]],"r":{"/*":[46,160],"/":[65,67,77,104,105,160],"/welcome":[51,82,89,95,120,125,131,140,141,152,170,173,65,67,77,104,105,160],"/kb":[132,65,67,77,104,105,160],"/flow":[77,89,120,162,171,65,67,104,105,160],"/voc":[6,65,67,77,104,105,160],"/marketing":[139,65,67,77,104,105,160],"/plugins":[43,65,67,77,104,105,160],"/quartz":[1,2,16,41,67,69,70,77,89,96,120,125,131,141,152,160,170,65,104,105],"/setting":[126,65,67,77,104,105,160],"/getting-started":[16,51,72,96,141,65,67,77,104,105,160],"/auth/login":[1,2,77,89,96,125,141,150,157,167,170],"/auth/register":[1,2,29,77,89,96,125,150,170],"/oauth/github":[142],"/oauth/google":[92],"/team/member":[1,2,11,16,41,67,77,81,89,96,120,125,131,133,134,141,152,160,170,65,104,105],"/team/role":[1,2,11,51,77,78,89,96,120,125,141,170,171,65,67,104,105,160],"/team/group":[179,65,67,77,104,105,160],"/team/thread":[53,65,67,77,104,105,160],"/team/message":[148,65,67,77,104,105,160],"/team/action":[147,65,67,77,104,105,160],"/team/notification":[25,65,67,77,104,105,160],"/team/company":[85,65,67,77,104,105,160],"/team/statistic":[2,51,89,96,107,114,120,125,131,141,170,173,65,67,77,104,105,160],"/cs/unified":[1,2,3,32,33,51,77,81,82,89,96,115,120,125,141,170,171,65,67,104,105,160],"/cs/agent":[1,2,16,27,32,33,41,51,67,77,81,82,89,96,115,120,125,128,131,141,149,152,156,160,166,170,171,65,104,105],"/cs/workgroup":[1,2,16,32,33,41,51,67,77,81,82,89,96,115,120,125,128,131,141,149,152,156,160,166,170,171,178,65,104,105],"/cs/queue":[1,2,16,22,41,67,77,89,96,120,125,131,141,152,160,170,176,65,104,105],"/cs/thread":[36,65,67,77,104,105,160],"/cs/message":[55,65,67,77,104,105,160],"/cs/leavemsg":[68,65,67,77,104,105,160],"/cs/tag":[93,65,67,77,104,105,160],"/cs/channel":[0,1,2,51,67,77,82,89,90,96,115,120,125,141,149,152,170,171,65,104,105,160],"/cs/quality":[1,2,16,41,67,77,89,96,120,125,131,141,152,160,170,172,65,104,105],"/cs/rate":[1,2,16,41,67,77,89,96,97,120,125,131,141,152,160,170,65,104,105],"/cs/crm":[63,65,67,77,104,105,160],"/cs/statistic":[51,82,89,95,120,125,131,141,152,170,173,181,65,67,77,104,105,160],"/ai/robot":[1,2,16,32,33,41,44,45,51,67,77,81,82,89,96,115,120,125,128,131,141,149,152,160,166,170,171,65,104,105],"/ai/model":[1,2,12,42,67,77,89,96,120,125,141,154,170,171,65,104,105,160],"/ai/prompt":[1,2,21,67,77,81,83,89,96,120,125,170,171,65,104,105,160],"/ai/thread":[54,65,67,77,104,105,160],"/ai/message":[18,65,67,77,104,105,160],"/ai/statistic":[7,51,82,89,96,120,125,131,141,170,171,173,65,67,77,104,105,160],"/kb/article":[1,2,77,89,96,106,120,125,137,144,170,171,132,65,67,104,105,160],"/kb/llm":[1,2,77,89,96,103,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/autoreply":[1,2,77,89,96,106,120,125,138,144,170,171,132,65,67,104,105,160],"/kb/quickreply":[1,2,77,89,94,96,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/taboo":[1,2,62,77,89,96,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/upload":[1,2,16,41,67,77,89,96,120,121,125,131,141,152,160,170,132,65,104,105],"/kb/statistic":[31,51,82,89,96,120,125,131,141,170,173,132,65,67,77,104,105,160],"/ticket/ticket":[1,2,14,15,16,41,67,77,81,83,89,96,109,120,125,131,141,152,160,170,65,104,105],"/ticket/statistic":[51,64,82,89,120,125,131,141,170,173,65,67,77,104,105,160],"/marketing/blog":[1,2,19,77,89,96,106,120,125,144,170,171,139,65,67,104,105,160],"/marketing/email":[1,2,77,89,96,106,120,125,144,155,170,171,139,65,67,104,105,160],"/marketing/video":[58,139,65,67,77,104,105,160],"/setting/profile":[1,2,77,81,89,96,125,164,170,126,65,67,104,105,160],"/setting/basic":[111,125,126,65,67,77,104,105,160],"/setting/certification":[1,2,77,89,96,125,141,168,170,126,65,67,104,105,160],"/setting/money":[1,2,16,26,41,67,77,89,96,120,125,131,141,152,157,160,170,126,65,104,105],"/setting/server":[110,126,65,67,77,104,105,160],"/setting/notification":[1,2,16,41,67,77,89,96,120,125,131,141,152,160,169,170,126,65,104,105],"/super/user":[84,65,67,77,104,105,160],"/super/role":[1,2,11,51,77,89,96,102,120,125,141,170,171,65,67,104,105,160],"/super/provider":[1,2,13,42,67,77,89,96,120,125,141,154,170,171,65,104,105,160],"/super/recharge":[39,65,67,77,104,105,160],"/super/notification":[30,65,67,77,104,105,160],"/super/push":[91,65,67,77,104,105,160],"/team/group/data":[1,2,16,41,67,77,89,96,119,120,125,131,141,152,160,170,179,65,104,105],"/team/group/statistic":[165,179,65,67,77,104,105,160],"/team/thread/data":[1,2,16,17,41,67,77,89,96,120,125,131,141,152,159,160,170,53,65,104,105],"/team/thread/monitor":[40,53,65,67,77,104,105,160],"/team/thread/statistic":[112,53,65,67,77,104,105,160],"/team/thread/summary":[1,2,16,41,47,67,77,89,96,120,125,131,141,152,160,170,53,65,104,105],"/team/message/data":[1,2,4,16,28,41,67,77,89,96,120,125,131,141,152,160,170,148,65,104,105],"/team/message/statistic":[56,148,65,67,77,104,105,160],"/team/action/data":[1,2,16,41,67,77,79,89,96,120,125,131,141,152,160,170,147,65,104,105],"/team/action/statistic":[50,147,65,67,77,104,105,160],"/team/notification/data":[1,2,16,41,67,77,89,96,99,120,125,131,141,152,160,170,25,65,104,105],"/team/notification/statistic":[108,25,65,67,77,104,105,160],"/team/company/info":[1,2,77,81,89,96,125,170,177,85,65,67,104,105,160],"/cs/queue/data":[1,2,16,22,41,67,77,89,96,120,125,127,131,141,152,160,170,176,65,104,105],"/cs/queue/member":[1,2,16,22,41,67,77,89,96,120,125,131,141,152,160,170,176,65,104,105],"/cs/queue/statistic":[23,1,2,16,22,41,67,77,89,96,120,125,131,141,152,160,170,176,65,104,105],"/cs/thread/data":[1,2,16,17,41,67,71,77,89,96,120,125,131,141,152,160,170,36,65,104,105],"/cs/thread/monitor":[122,36,65,67,77,104,105,160],"/cs/thread/statistic":[35,36,65,67,77,104,105,160],"/cs/thread/summary":[1,2,16,41,67,77,89,96,120,125,131,141,145,152,160,170,36,65,104,105],"/cs/message/data":[1,2,16,28,41,67,77,89,96,120,125,129,131,141,152,160,170,55,65,104,105],"/cs/message/statistic":[80,55,65,67,77,104,105,160],"/cs/leavemsg/data":[1,2,16,41,67,77,89,96,120,125,131,141,143,152,160,170,68,65,104,105],"/cs/leavemsg/statistic":[146,68,65,67,77,104,105,160],"/cs/tag/data":[1,2,16,41,52,67,77,89,96,120,125,131,136,141,152,160,170,93,65,104,105],"/cs/tag/statistic":[116,93,65,67,77,104,105,160],"/ai/thread/data":[1,2,16,17,41,67,77,89,96,120,123,125,131,141,152,160,170,54,65,104,105],"/ai/thread/statistic":[88,54,65,67,77,104,105,160],"/ai/message/data":[1,2,16,28,41,67,77,89,96,120,125,130,131,141,152,160,170,18,65,104,105],"/ai/message/statistic":[113,18,65,67,77,104,105,160],"/kb/article/data":[1,2,16,41,67,77,83,89,96,109,117,118,120,125,131,141,152,160,170,106,137,144,171,132,65,104,105],"/kb/article/statistic":[135,1,2,77,89,96,106,120,125,137,144,170,171,132,65,67,104,105,160],"/kb/llm/data":[1,2,16,32,33,37,38,41,67,73,77,81,83,89,96,109,120,125,131,141,152,160,170,103,106,144,171,132,65,104,105],"/kb/llm/statistic":[60,1,2,77,89,96,103,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/autoreply/data":[1,2,16,41,67,77,81,83,89,96,100,101,109,120,125,131,141,152,160,170,106,138,144,171,132,65,104,105],"/kb/quickreply/data":[1,2,16,32,33,41,67,77,81,83,86,87,89,96,109,120,125,131,141,152,160,170,94,106,144,171,132,65,104,105],"/kb/quickreply/statistic":[98,1,2,77,89,94,96,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/taboo/data":[1,2,9,10,16,41,67,77,81,83,89,96,109,120,125,131,141,152,160,170,62,106,144,171,132,65,104,105],"/kb/taboo/statistic":[57,1,2,62,77,89,96,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/upload/data":[1,2,16,41,67,77,89,96,120,121,125,131,141,152,160,170,132,65,104,105],"/kb/upload/statistic":[34,1,2,16,41,67,77,89,96,120,121,125,131,141,152,160,170,132,65,104,105],"/marketing/blog/data":[1,2,48,49,77,83,89,96,109,125,170,19,106,120,144,171,139,65,67,104,105,160],"/marketing/blog/statistic":[5,1,2,19,77,89,96,106,120,125,144,170,171,139,65,67,104,105,160],"/marketing/email/data":[1,2,16,41,67,77,83,89,96,109,120,125,131,141,152,160,170,174,175,106,144,155,171,139,65,104,105],"/marketing/email/statistic":[61,1,2,77,89,96,106,120,125,144,155,170,171,139,65,67,104,105,160],"/marketing/video/data":[20,58,139,65,67,77,104,105,160],"/marketing/video/statistic":[76,58,139,65,67,77,104,105,160],"/super/user/data":[1,2,16,41,59,67,77,89,96,120,125,131,141,152,160,170,84,65,104,105],"/super/user/statistic":[151,84,65,67,77,104,105,160],"/super/recharge/data":[1,2,16,41,67,77,89,96,120,124,125,131,141,152,160,170,39,65,104,105],"/super/recharge/statistic":[75,39,65,67,77,104,105,160],"/super/notification/data":[1,2,16,41,67,74,77,89,96,120,125,131,141,152,160,170,30,65,104,105],"/super/notification/statistic":[153,30,65,67,77,104,105,160],"/super/push/data":[1,2,16,41,67,77,89,96,120,125,131,141,152,160,161,170,91,65,104,105],"/super/push/statistic":[163,91,65,67,77,104,105,160],"/cs/crm/visitor/data":[1,2,8,16,41,67,77,89,96,120,125,131,141,152,160,170,63,65,104,105],"/cs/crm/visitor/statistic":[66,63,65,67,77,104,105,160],"/cs/crm/customer/data":[1,2,16,41,67,77,89,96,120,125,131,141,152,160,170,180,63,65,104,105],"/cs/crm/customer/statistic":[24,63,65,67,77,104,105,160]}},{publicPath:"/admin/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file +!function(){"use strict";var t="/admin/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"admin","b":"webpack","f":[["69.80558717.async.js",69],["138.d5089098.async.js",138],["269.1aea9cc2.async.js",269],["p__Dashboard__Service__Unified__index.814da319.async.js",331],["p__Dashboard__Team__Message__MessageTable.05088cec.async.js",363],["p__Dashboard__Marketing__Blog__BlogStatistic.61d8b571.async.js",510],["p__Dashboard__Voc__index.00c7b346.async.js",513],["p__Dashboard__Ai__Statistic__index.2036284a.async.js",524],["p__Dashboard__Service__Crm__Visitor.f7479f4b.async.js",569],["p__Dashboard__Kbase__Taboo__TabooData.f9c908ef.chunk.css",666],["p__Dashboard__Kbase__Taboo__TabooData.169c8077.async.js",666],["870.a4858a01.async.js",870],["p__Dashboard__Ai__LlmModel__index.4a167feb.async.js",950],["p__Dashboard__Super__LlmModel__index.125ce179.async.js",981],["p__Dashboard__Ticket__Ticket.f9c908ef.chunk.css",987],["p__Dashboard__Ticket__Ticket.15c33abe.async.js",987],["1004.02aea1a8.async.js",1004],["1182.8cd8243e.async.js",1182],["p__Dashboard__Ai__Message__index.ff0afc2c.async.js",1206],["p__Dashboard__Marketing__Blog__index.773a9d9c.async.js",1312],["p__Dashboard__Marketing__Video__VideoData.167a819c.async.js",1426],["p__Dashboard__Ai__Prompt__index.77a5dd17.async.js",1466],["p__Dashboard__Service__Queue__QueueMemberTable.f2c47ed6.async.js",1474],["p__Dashboard__Service__Queue__QueueStatistic.945efcc0.async.js",1488],["p__Dashboard__Service__Crm__CustomerStatistic.3adfbd92.async.js",1490],["p__Dashboard__Team__Notification__index.fbc46118.async.js",1531],["p__Dashboard__Setting__Money__index.fdc089a3.async.js",1589],["p__Dashboard__Service__Agent__index.1f06e5e5.async.js",1642],["1699.aca5d62a.async.js",1699],["p__Auth__Register__index.850d87bf.async.js",1730],["p__Dashboard__Super__Notification__index.4e7e4367.async.js",1926],["p__Dashboard__Kbase__Statistic__index.894f38ac.async.js",1942],["2026.115bf7c6.chunk.css",2026],["2026.1cc5fa55.async.js",2026],["p__Dashboard__Kbase__Upload__UploadStatistic.a0011631.async.js",2041],["p__Dashboard__Service__Thread__ThreadStatistic.e7984a3f.async.js",2097],["p__Dashboard__Service__Thread__index.025c9e80.async.js",2148],["p__Dashboard__Kbase__Llm__LlmData.f9c908ef.chunk.css",2255],["p__Dashboard__Kbase__Llm__LlmData.04c5464b.async.js",2255],["p__Dashboard__Super__Recharge__index.f36ef5c9.async.js",2319],["p__Dashboard__Team__Thread__ThreadMonitor.5d65a9fe.async.js",2375],["2381.3a0b796d.async.js",2381],["2433.aac2961e.async.js",2433],["p__Dashboard__Plugins__index.ebd43fc5.async.js",2494],["p__Dashboard__Ai__index.cb670aa5.chunk.css",2522],["p__Dashboard__Ai__index.19ac54a6.async.js",2522],["p__404.e2cb84c2.async.js",2571],["p__Dashboard__Team__Thread__ThreadSummary.64cecfe2.async.js",2618],["p__Dashboard__Marketing__Blog__BlogData.f9c908ef.chunk.css",2647],["p__Dashboard__Marketing__Blog__BlogData.2fd04fe5.async.js",2647],["p__Dashboard__Team__Action__ActionStatistic.fa0d126a.async.js",2658],["2673.faa8efa0.async.js",2673],["p__Dashboard__Service__Tag__TagTable.c61acb3f.async.js",2701],["p__Dashboard__Team__Thread__index.a045c06d.async.js",2708],["p__Dashboard__Ai__Thread__index.92708cbe.async.js",2728],["p__Dashboard__Service__Message__index.36d3751f.async.js",2949],["p__Dashboard__Team__Message__MessageStatistic.2a09a109.async.js",2992],["p__Dashboard__Kbase__Taboo__TabooStatistic.9e8ecc4f.async.js",3003],["p__Dashboard__Marketing__Video__index.949a0803.async.js",3034],["p__Dashboard__Super__User__UserData.a521d428.async.js",3088],["p__Dashboard__Kbase__Llm__LlmStatistic.d9a56de6.async.js",3135],["p__Dashboard__Marketing__Email__EmailStatistic.4e87ac06.async.js",3151],["p__Dashboard__Kbase__Taboo__index.84d14897.async.js",3153],["p__Dashboard__Service__Crm__index.ec8b13c8.async.js",3186],["p__Dashboard__Ticket__Statistic__index.f88c4907.async.js",3280],["3317.3f400b23.async.js",3317],["p__Dashboard__Service__Crm__VisitorStatistic.119f2437.async.js",3395],["3442.7a52d66b.async.js",3442],["p__Dashboard__Service__LeaveMsg__index.27a33c74.async.js",3621],["p__Dashboard__Quartz__index.2f2871f6.chunk.css",3848],["p__Dashboard__Quartz__index.6c5eaba3.async.js",3848],["p__Dashboard__Service__Thread__ThreadTab.4d701afc.async.js",3868],["p__GettingStarted.44dac29d.async.js",4015],["4197.1fe53433.async.js",4197],["p__Dashboard__Super__Notification__NotificationTable.2a17973d.async.js",4204],["p__Dashboard__Super__Recharge__RechargeStatistic.035f3cc5.async.js",4215],["p__Dashboard__Marketing__Video__VideoStatistic.a784ddf7.async.js",4262],["4288.9e74c381.async.js",4288],["p__Dashboard__Team__Role__index.2f156a5a.async.js",4325],["p__Dashboard__Team__Action__ActionTable.cc36a324.async.js",4376],["p__Dashboard__Service__Message__MessageStatistic.bb0c4a67.async.js",4460],["4490.62ee2780.async.js",4490],["4522.3de17988.async.js",4522],["4587.fcd64cbc.async.js",4587],["p__Dashboard__Super__User__index.fb5d5f8f.async.js",4693],["p__Dashboard__Team__Company__index.96e71c0e.async.js",4747],["p__Dashboard__Kbase__QuickReply__QuickReplyData.f9c908ef.chunk.css",4790],["p__Dashboard__Kbase__QuickReply__QuickReplyData.cc419948.async.js",4790],["p__Dashboard__Ai__Thread__ThreadStatistic.6871b031.async.js",4894],["4954.a51d55af.async.js",4954],["p__Dashboard__Service__Channel__index.8c8342e6.async.js",5131],["p__Dashboard__Super__Push__index.b91ebf39.async.js",5159],["p__OAuth__Google.fc6c3163.async.js",5279],["p__Dashboard__Service__Tag__index.3e95f9e8.async.js",5387],["p__Dashboard__Kbase__QuickReply__index.03accc69.async.js",5405],["5422.42dd8cb9.async.js",5422],["5454.21a0f846.async.js",5454],["p__Dashboard__Service__Rate__index.867394ae.async.js",5684],["p__Dashboard__Kbase__QuickReply__QuickReplyStatistic.75808ede.async.js",5726],["p__Dashboard__Team__Notification__NotificationTable.9fc08896.async.js",5774],["p__Dashboard__Kbase__AutoReply__AutoReplyData.f9c908ef.chunk.css",5852],["p__Dashboard__Kbase__AutoReply__AutoReplyData.12bf817d.async.js",5852],["p__Dashboard__Super__Role__index.4531dd70.async.js",6021],["p__Dashboard__Kbase__Llm__index.556d1fbf.async.js",6038],["t__plugin-layout__Layout.5012e1ab.chunk.css",6301],["t__plugin-layout__Layout.9ec1ba1b.async.js",6301],["6378.995b676b.async.js",6378],["6517.343b5999.async.js",6517],["p__Dashboard__Team__Notification__NotificationStatistic.ffd3b78e.async.js",6545],["6588.38e748db.async.js",6588],["p__Dashboard__Setting__Server__index.3bf6796a.async.js",6676],["p__Dashboard__Setting__Basic__index.25f6f1d3.async.js",6766],["p__Dashboard__Team__Thread__ThreadStatistic.35c2d46a.async.js",6771],["p__Dashboard__Ai__Message__MessageStatistic.2ab4d1f3.async.js",6781],["p__Dashboard__Team__Statistic__index.489f0bb6.async.js",6805],["6865.a4a48a73.async.js",6865],["p__Dashboard__Service__Tag__TagStatistic.5ed6e7d6.async.js",7080],["p__Dashboard__Kbase__Article__ArticleData.f9c908ef.chunk.css",7116],["p__Dashboard__Kbase__Article__ArticleData.c5e9b08d.async.js",7116],["p__Dashboard__Team__Group__GroupTable.59712ca1.async.js",7139],["7186.1e337a49.async.js",7186],["p__Dashboard__Kbase__Upload__UploadTable.bb315477.async.js",7193],["p__Dashboard__Service__Thread__ThreadMonitor.1582d692.async.js",7270],["p__Dashboard__Ai__Thread__ThreadTable.3e74e81b.async.js",7357],["p__Dashboard__Super__Recharge__RechargeData.40dd2df6.async.js",7358],["7402.4311692c.async.js",7402],["p__Dashboard__Setting__index.a41e0c06.async.js",7469],["p__Dashboard__Service__Queue__Queue.5e01c822.async.js",7489],["7625.4f5190b0.async.js",7625],["p__Dashboard__Service__Message__MessageTable.832cebb8.async.js",7788],["p__Dashboard__Ai__Message__MessageTable.1fd02567.async.js",7806],["7885.7a890543.async.js",7885],["p__Dashboard__Kbase__index.51c776c2.async.js",7955],["p__Dashboard__Team__Member__index.f9c908ef.chunk.css",7960],["p__Dashboard__Team__Member__index.7407db73.async.js",7960],["p__Dashboard__Kbase__Article__ArticleStatistic.5dfd9a34.async.js",7990],["8020.c7c602cf.async.js",8020],["p__Dashboard__Kbase__Article__index.db3c94ce.async.js",8032],["p__Dashboard__Kbase__AutoReply__index.c58591d2.async.js",8125],["p__Dashboard__Marketing__index.2c2ca104.async.js",8164],["p__Welcome.ee943794.async.js",8185],["8247.69a34766.async.js",8247],["p__OAuth__Github.99998f31.async.js",8250],["p__Dashboard__Service__LeaveMsg__LeaveMsgTable.47806a27.async.js",8326],["8377.f6444afb.async.js",8377],["p__Dashboard__Service__Thread__ThreadSummary.28015b1c.async.js",8390],["p__Dashboard__Service__LeaveMsg__LeaveMsgStatistic.f5999ad1.async.js",8412],["p__Dashboard__Team__Action__index.1d9fbaa5.async.js",8483],["p__Dashboard__Team__Message__index.c8346071.async.js",8491],["8505.2fa2526d.async.js",8505],["8577.12c99b4c.async.js",8577],["p__Dashboard__Super__User__UserStatistic.bf635061.async.js",8622],["8697.cf98b55e.async.js",8697],["p__Dashboard__Super__Notification__NotificationStatistic.8c142b1f.async.js",8700],["8853.836250fb.async.js",8853],["p__Dashboard__Marketing__Email__index.dc47d158.async.js",8873],["8950.cdea7680.async.js",8950],["8958.53c776fb.async.js",8958],["9013.b745fd63.async.js",9013],["p__Dashboard__Team__Thread__ThreadTable.8102d2ab.async.js",9077],["9133.933ccb18.async.js",9133],["p__Dashboard__Super__Push__PushData.c0f5e763.async.js",9137],["p__Dashboard__Flow__index.de751981.async.js",9145],["p__Dashboard__Super__Push__PushStatistic.070327cc.async.js",9212],["p__Dashboard__Setting__Profile__index.97b70045.async.js",9290],["p__Dashboard__Team__Group__GroupStatistic.7039df7b.async.js",9346],["9350.77a77093.async.js",9350],["p__Auth__Login__index.e0e459ca.async.js",9368],["p__Dashboard__Setting__Certification__index.a01ccde2.async.js",9400],["p__Dashboard__Setting__Notification__index.8dfd6d29.async.js",9408],["9449.e4dd1a91.async.js",9449],["9452.82f5c645.async.js",9452],["p__Dashboard__Service__Quality__index.5abc6eb2.async.js",9505],["9577.c10efe20.async.js",9577],["p__Dashboard__Marketing__Email__EmailData.f9c908ef.chunk.css",9590],["p__Dashboard__Marketing__Email__EmailData.07f70eda.async.js",9590],["p__Dashboard__Service__Queue__index.42bb26f7.async.js",9614],["p__Dashboard__Team__Company__CompanyInfo.305473da.async.js",9814],["p__Dashboard__Service__Workgroup__index.639e320a.async.js",9828],["p__Dashboard__Team__Group__index.2a408930.async.js",9870],["p__Dashboard__Service__Crm__CustomerTable.db763070.async.js",9949],["p__Dashboard__Service__Statistic__index.c3259b1a.async.js",9967]],"r":{"/*":[46,160],"/":[65,67,77,104,105,160],"/welcome":[51,82,89,95,120,125,131,140,141,152,170,173,65,67,77,104,105,160],"/kb":[132,65,67,77,104,105,160],"/flow":[77,89,120,162,171,65,67,104,105,160],"/voc":[6,65,67,77,104,105,160],"/marketing":[139,65,67,77,104,105,160],"/plugins":[43,65,67,77,104,105,160],"/quartz":[1,2,16,41,67,69,70,77,89,96,120,125,131,141,152,160,170,65,104,105],"/setting":[126,65,67,77,104,105,160],"/getting-started":[16,51,72,96,141,65,67,77,104,105,160],"/auth/login":[1,2,77,89,96,125,141,150,157,167,170],"/auth/register":[1,2,29,77,89,96,125,150,170],"/oauth/github":[142],"/oauth/google":[92],"/team/member":[1,2,11,16,41,67,77,81,89,96,120,125,131,133,134,141,152,160,170,65,104,105],"/team/role":[1,2,11,51,77,78,89,96,120,125,141,170,171,65,67,104,105,160],"/team/group":[179,65,67,77,104,105,160],"/team/thread":[53,65,67,77,104,105,160],"/team/message":[148,65,67,77,104,105,160],"/team/action":[147,65,67,77,104,105,160],"/team/notification":[25,65,67,77,104,105,160],"/team/company":[85,65,67,77,104,105,160],"/team/statistic":[2,51,89,96,107,114,120,125,131,141,170,173,65,67,77,104,105,160],"/cs/unified":[1,2,3,32,33,51,77,81,82,89,96,115,120,125,141,170,171,65,67,104,105,160],"/cs/agent":[1,2,16,27,32,33,41,51,67,77,81,82,89,96,115,120,125,128,131,141,149,152,156,160,166,170,171,65,104,105],"/cs/workgroup":[1,2,16,32,33,41,51,67,77,81,82,89,96,115,120,125,128,131,141,149,152,156,160,166,170,171,178,65,104,105],"/cs/queue":[1,2,16,22,41,67,77,89,96,120,125,131,141,152,160,170,176,65,104,105],"/cs/thread":[36,65,67,77,104,105,160],"/cs/message":[55,65,67,77,104,105,160],"/cs/leavemsg":[68,65,67,77,104,105,160],"/cs/tag":[93,65,67,77,104,105,160],"/cs/channel":[0,1,2,51,67,77,82,89,90,96,115,120,125,141,149,152,170,171,65,104,105,160],"/cs/quality":[1,2,16,41,67,77,89,96,120,125,131,141,152,160,170,172,65,104,105],"/cs/rate":[1,2,16,41,67,77,89,96,97,120,125,131,141,152,160,170,65,104,105],"/cs/crm":[63,65,67,77,104,105,160],"/cs/statistic":[51,82,89,95,120,125,131,141,152,170,173,181,65,67,77,104,105,160],"/ai/robot":[1,2,16,32,33,41,44,45,51,67,77,81,82,89,96,115,120,125,128,131,141,149,152,160,166,170,171,65,104,105],"/ai/model":[1,2,12,42,67,77,89,96,120,125,141,154,170,171,65,104,105,160],"/ai/prompt":[1,2,21,67,77,81,83,89,96,120,125,170,171,65,104,105,160],"/ai/thread":[54,65,67,77,104,105,160],"/ai/message":[18,65,67,77,104,105,160],"/ai/statistic":[7,51,82,89,96,120,125,131,141,170,171,173,65,67,77,104,105,160],"/kb/article":[1,2,77,89,96,106,120,125,137,144,170,171,132,65,67,104,105,160],"/kb/llm":[1,2,77,89,96,103,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/autoreply":[1,2,77,89,96,106,120,125,138,144,170,171,132,65,67,104,105,160],"/kb/quickreply":[1,2,77,89,94,96,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/taboo":[1,2,62,77,89,96,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/upload":[1,2,16,41,67,77,89,96,120,121,125,131,141,152,160,170,132,65,104,105],"/kb/statistic":[31,51,82,89,96,120,125,131,141,170,173,132,65,67,77,104,105,160],"/ticket/ticket":[1,2,14,15,16,41,67,77,81,83,89,96,109,120,125,131,141,152,160,170,65,104,105],"/ticket/statistic":[51,64,82,89,120,125,131,141,170,173,65,67,77,104,105,160],"/marketing/blog":[1,2,19,77,89,96,106,120,125,144,170,171,139,65,67,104,105,160],"/marketing/email":[1,2,77,89,96,106,120,125,144,155,170,171,139,65,67,104,105,160],"/marketing/video":[58,139,65,67,77,104,105,160],"/setting/profile":[1,2,77,81,89,96,125,164,170,126,65,67,104,105,160],"/setting/basic":[111,125,126,65,67,77,104,105,160],"/setting/certification":[1,2,77,89,96,125,141,168,170,126,65,67,104,105,160],"/setting/money":[1,2,16,26,41,67,77,89,96,120,125,131,141,152,157,160,170,126,65,104,105],"/setting/server":[110,126,65,67,77,104,105,160],"/setting/notification":[1,2,16,41,67,77,89,96,120,125,131,141,152,160,169,170,126,65,104,105],"/super/user":[84,65,67,77,104,105,160],"/super/role":[1,2,11,51,77,89,96,102,120,125,141,170,171,65,67,104,105,160],"/super/provider":[1,2,13,42,67,77,89,96,120,125,141,154,170,171,65,104,105,160],"/super/recharge":[39,65,67,77,104,105,160],"/super/notification":[30,65,67,77,104,105,160],"/super/push":[91,65,67,77,104,105,160],"/team/group/data":[1,2,16,41,67,77,89,96,119,120,125,131,141,152,160,170,179,65,104,105],"/team/group/statistic":[165,179,65,67,77,104,105,160],"/team/thread/data":[1,2,16,17,41,67,77,89,96,120,125,131,141,152,159,160,170,53,65,104,105],"/team/thread/monitor":[40,53,65,67,77,104,105,160],"/team/thread/statistic":[112,53,65,67,77,104,105,160],"/team/thread/summary":[1,2,16,41,47,67,77,89,96,120,125,131,141,152,160,170,53,65,104,105],"/team/message/data":[1,2,4,16,28,41,67,77,89,96,120,125,131,141,152,160,170,148,65,104,105],"/team/message/statistic":[56,148,65,67,77,104,105,160],"/team/action/data":[1,2,16,41,67,77,79,89,96,120,125,131,141,152,160,170,147,65,104,105],"/team/action/statistic":[50,147,65,67,77,104,105,160],"/team/notification/data":[1,2,16,41,67,77,89,96,99,120,125,131,141,152,160,170,25,65,104,105],"/team/notification/statistic":[108,25,65,67,77,104,105,160],"/team/company/info":[1,2,77,81,89,96,125,170,177,85,65,67,104,105,160],"/cs/queue/data":[1,2,16,22,41,67,77,89,96,120,125,127,131,141,152,160,170,176,65,104,105],"/cs/queue/member":[1,2,16,22,41,67,77,89,96,120,125,131,141,152,160,170,176,65,104,105],"/cs/queue/statistic":[23,1,2,16,22,41,67,77,89,96,120,125,131,141,152,160,170,176,65,104,105],"/cs/thread/data":[1,2,16,17,41,67,71,77,89,96,120,125,131,141,152,160,170,36,65,104,105],"/cs/thread/monitor":[122,36,65,67,77,104,105,160],"/cs/thread/statistic":[35,36,65,67,77,104,105,160],"/cs/thread/summary":[1,2,16,41,67,77,89,96,120,125,131,141,145,152,160,170,36,65,104,105],"/cs/message/data":[1,2,16,28,41,67,77,89,96,120,125,129,131,141,152,160,170,55,65,104,105],"/cs/message/statistic":[80,55,65,67,77,104,105,160],"/cs/leavemsg/data":[1,2,16,41,67,77,89,96,120,125,131,141,143,152,160,170,68,65,104,105],"/cs/leavemsg/statistic":[146,68,65,67,77,104,105,160],"/cs/tag/data":[1,2,16,41,52,67,77,89,96,120,125,131,136,141,152,160,170,93,65,104,105],"/cs/tag/statistic":[116,93,65,67,77,104,105,160],"/ai/thread/data":[1,2,16,17,41,67,77,89,96,120,123,125,131,141,152,160,170,54,65,104,105],"/ai/thread/statistic":[88,54,65,67,77,104,105,160],"/ai/message/data":[1,2,16,28,41,67,77,89,96,120,125,130,131,141,152,160,170,18,65,104,105],"/ai/message/statistic":[113,18,65,67,77,104,105,160],"/kb/article/data":[1,2,16,41,67,77,83,89,96,109,117,118,120,125,131,141,152,160,170,106,137,144,171,132,65,104,105],"/kb/article/statistic":[135,1,2,77,89,96,106,120,125,137,144,170,171,132,65,67,104,105,160],"/kb/llm/data":[1,2,16,32,33,37,38,41,67,73,77,81,83,89,96,109,120,125,131,141,152,160,170,103,106,144,171,132,65,104,105],"/kb/llm/statistic":[60,1,2,77,89,96,103,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/autoreply/data":[1,2,16,41,67,77,81,83,89,96,100,101,109,120,125,131,141,152,160,170,106,138,144,171,132,65,104,105],"/kb/quickreply/data":[1,2,16,32,33,41,67,77,81,83,86,87,89,96,109,120,125,131,141,152,160,170,94,106,144,171,132,65,104,105],"/kb/quickreply/statistic":[98,1,2,77,89,94,96,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/taboo/data":[1,2,9,10,16,41,67,77,81,83,89,96,109,120,125,131,141,152,160,170,62,106,144,171,132,65,104,105],"/kb/taboo/statistic":[57,1,2,62,77,89,96,106,120,125,144,170,171,132,65,67,104,105,160],"/kb/upload/data":[1,2,16,41,67,77,89,96,120,121,125,131,141,152,160,170,132,65,104,105],"/kb/upload/statistic":[34,1,2,16,41,67,77,89,96,120,121,125,131,141,152,160,170,132,65,104,105],"/marketing/blog/data":[1,2,48,49,77,83,89,96,109,125,170,19,106,120,144,171,139,65,67,104,105,160],"/marketing/blog/statistic":[5,1,2,19,77,89,96,106,120,125,144,170,171,139,65,67,104,105,160],"/marketing/email/data":[1,2,16,41,67,77,83,89,96,109,120,125,131,141,152,160,170,174,175,106,144,155,171,139,65,104,105],"/marketing/email/statistic":[61,1,2,77,89,96,106,120,125,144,155,170,171,139,65,67,104,105,160],"/marketing/video/data":[20,58,139,65,67,77,104,105,160],"/marketing/video/statistic":[76,58,139,65,67,77,104,105,160],"/super/user/data":[1,2,16,41,59,67,77,89,96,120,125,131,141,152,160,170,84,65,104,105],"/super/user/statistic":[151,84,65,67,77,104,105,160],"/super/recharge/data":[1,2,16,41,67,77,89,96,120,124,125,131,141,152,160,170,39,65,104,105],"/super/recharge/statistic":[75,39,65,67,77,104,105,160],"/super/notification/data":[1,2,16,41,67,74,77,89,96,120,125,131,141,152,160,170,30,65,104,105],"/super/notification/statistic":[153,30,65,67,77,104,105,160],"/super/push/data":[1,2,16,41,67,77,89,96,120,125,131,141,152,160,161,170,91,65,104,105],"/super/push/statistic":[163,91,65,67,77,104,105,160],"/cs/crm/visitor/data":[1,2,8,16,41,67,77,89,96,120,125,131,141,152,160,170,63,65,104,105],"/cs/crm/visitor/statistic":[66,63,65,67,77,104,105,160],"/cs/crm/customer/data":[1,2,16,41,67,77,89,96,120,125,131,141,152,160,170,180,63,65,104,105],"/cs/crm/customer/statistic":[24,63,65,67,77,104,105,160]}},{publicPath:"/admin/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/umi.d35a2173.js b/starter/src/main/resources/templates/admin/umi.4c5d67bb.js similarity index 99% rename from starter/src/main/resources/templates/admin/umi.d35a2173.js rename to starter/src/main/resources/templates/admin/umi.4c5d67bb.js index 1000b14d16..2f3f48e3eb 100644 --- a/starter/src/main/resources/templates/admin/umi.d35a2173.js +++ b/starter/src/main/resources/templates/admin/umi.4c5d67bb.js @@ -1 +1 @@ -!function(){var e,t,n,r,i={69521:function(e,t,n){"use strict";n.d(t,{iN:function(){return y},R_:function(){return c},EV:function(){return p},Ti:function(){return S},ez:function(){return l}});var r=n(87471),i=[{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 o(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function a(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function s(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function c(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],c=new r.t(e),l=c.toHsv(),u=5;u>0;u-=1){var f=new r.t({h:o(l,u,!0),s:a(l,u,!0),v:s(l,u,!0)});n.push(f)}n.push(c);for(var d=1;d<=4;d+=1){var p=new r.t({h:o(l,d),s:a(l,d),v:s(l,d)});n.push(p)}return"dark"===t.theme?i.map((function(e){var i=e.index,o=e.amount;return new r.t(t.backgroundColor||"#141414").mix(n[i],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var l={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"},u=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];u.primary=u[5];var f=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];f.primary=f[5];var d=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];d.primary=d[5];var p=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];p.primary=p[5];var h=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];h.primary=h[5];var m=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];m.primary=m[5];var g=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];g.primary=g[5];var v=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];v.primary=v[5];var y=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];y.primary=y[5];var b=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];b.primary=b[5];var w=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];w.primary=w[5];var k=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];k.primary=k[5];var E=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];E.primary=E[5];var S={red:u,volcano:f,orange:d,gold:p,yellow:h,lime:m,green:g,cyan:v,blue:y,geekblue:b,purple:w,magenta:k,grey:E},x=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];x.primary=x[5];var _=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];_.primary=_[5];var T=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];T.primary=T[5];var C=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];C.primary=C[5];var A=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];A.primary=A[5];var O=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];O.primary=O[5];var R=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];R.primary=R[5];var P=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];P.primary=P[5];var I=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];I.primary=I[5];var M=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];M.primary=M[5];var L=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];L.primary=L[5];var N=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];N.primary=N[5];var D=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];D.primary=D[5]},77167:function(e,t,n){"use strict";n.d(t,{rb:function(){return L},IX:function(){return _}});var r=n(6918),i=n(42601),o=n(20173),a=n(17082),s=n(44194),c=n(47825),l=n(74592),u=n(32099),f=n(54665),d=n(14755),p=n(3518),h=(0,u.Z)((function e(){(0,l.Z)(this,e)})),m="CALC_UNIT",g=new RegExp(m,"g");function v(e){return"number"==typeof e?"".concat(e).concat(m):e}var y=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e,i){var a;(0,l.Z)(this,n),a=t.call(this),(0,o.Z)((0,f.Z)(a),"result",""),(0,o.Z)((0,f.Z)(a),"unitlessCssVar",void 0),(0,o.Z)((0,f.Z)(a),"lowPriority",void 0);var s=(0,r.Z)(e);return a.unitlessCssVar=i,e instanceof n?a.result="(".concat(e.result,")"):"number"===s?a.result=v(e):"string"===s&&(a.result=e),a}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(g,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(h),b=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,l.Z)(this,n),r=t.call(this),(0,o.Z)((0,f.Z)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h),w=function(e,t){var n="css"===e?y:b;return function(e){return new n(e,t)}},k=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(81654);var E=function(e,t,n,r){var o=(0,a.Z)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=(0,i.Z)(e,2),r=n[0],a=n[1];(null!=o&&o[r]||null!=o&&o[a])&&(null!==(t=o[a])&&void 0!==t||(o[a]=null==o?void 0:o[r]))}));var s=(0,a.Z)((0,a.Z)({},n),o);return Object.keys(s).forEach((function(e){s[e]===t[e]&&delete s[e]})),s},S="undefined"!=typeof CSSINJS_STATISTIC,x=!0;function _(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var I=function(e,t){return s.useMemo((function(){var n=P.get(t);if(n)return n;var r=e();return P.set(t,r),r}),t)},M=function(){return{}};var L=function(e){var t=e.useCSP,n=void 0===t?M:t,l=e.useToken,u=e.usePrefix,f=e.getResetStyles,d=e.getCommonStyle,p=e.getCompUnitless;function h(t,o,s){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=Array.isArray(t)?t:[t,t],m=(0,i.Z)(h,1),g=m[0],v=h.join("-"),y=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=l(),h=i.theme,m=i.realToken,b=i.hashId,S=i.token,x=i.cssVar,T=u(),C=T.rootPrefixCls,P=T.iconPrefixCls,M=n(),L=x?"css":"js",N=I((function(){var e=new Set;return x&&Object.keys(p.unitless||{}).forEach((function(t){e.add((0,c.ks)(t,x.prefix)),e.add((0,c.ks)(t,k(g,x.prefix)))})),w(L,e)}),[L,g,null==x?void 0:x.prefix]),D=R(L),j=D.max,B=D.min,F={theme:h,token:S,hashId:b,nonce:function(){return M.nonce},clientOnly:p.clientOnly,layer:y,order:p.order||-999};"function"==typeof f&&(0,c.xy)((0,a.Z)((0,a.Z)({},F),{},{clientOnly:!1,path:["Shared",C]}),(function(){return f(S,{prefix:{rootPrefixCls:C,iconPrefixCls:P},csp:M})}));var $=(0,c.xy)((0,a.Z)((0,a.Z)({},F),{},{path:[v,e,P]}),(function(){if(!1===p.injectStyle)return[];var n=A(S),i=n.token,a=n.flush,l=O(g,m,s),u=".".concat(e),f=E(g,m,l,{deprecatedTokens:p.deprecatedTokens});x&&l&&"object"===(0,r.Z)(l)&&Object.keys(l).forEach((function(e){l[e]="var(".concat((0,c.ks)(e,k(g,x.prefix)),")")}));var h=_(i,{componentCls:u,prefixCls:e,iconCls:".".concat(P),antCls:".".concat(C),calc:N,max:j,min:B},x?l:f),v=o(h,{hashId:b,prefixCls:e,rootPrefixCls:C,iconPrefixCls:P});a(g,f);var y="function"==typeof d?d(h,e,t,p.resetFont):null;return[!1===p.resetStyle?null:y,v]}));return[$,b]}}return{genStyleHooks:function(e,t,n,r){var u=Array.isArray(e)?e[0]:e;function f(e){return"".concat(String(u)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==r?void 0:r.unitless)||{},m="function"==typeof p?p(e):{},g=(0,a.Z)((0,a.Z)({},m),{},(0,o.Z)({},f("zIndexPopup"),!0));Object.keys(d).forEach((function(e){g[f(e)]=d[e]}));var v=(0,a.Z)((0,a.Z)({},r),{},{unitless:g,prefixToken:f}),y=h(e,t,n,v),b=function(e,t,n){var r=n.unitless,i=n.injectStyle,o=void 0===i||i,a=n.prefixToken,u=n.ignore,f=function(i){var o=i.rootCls,s=i.cssVar,f=void 0===s?{}:s,d=l().realToken;return(0,c.CI)({path:[e],prefix:f.prefix,key:f.key,unitless:r,ignore:u,token:d,scope:o},(function(){var r=O(e,d,t),i=E(e,d,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){i[a(e)]=i[e],delete i[e]})),i})),null},d=function(t){var n=l().cssVar;return[function(r){return o&&n?s.createElement(s.Fragment,null,s.createElement(f,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return d}(u,n,v);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=y(e,t),r=(0,i.Z)(n,2),o=r[1],a=b(t),s=(0,i.Z)(a,2),c=s[0],l=s[1];return[c,o,l]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=h(e,t,n,(0,a.Z)({resetStyle:!1,order:-998},r)),o=function(e){var t=e.prefixCls,n=e.rootCls;return i(t,void 0===n?t:n),null};return o},genComponentStyleHook:h}}},47825:function(e,t,n){"use strict";n.d(t,{E4:function(){return bt},jG:function(){return U},t2:function(){return ue},ks:function(){return X},bf:function(){return K},CI:function(){return vt},fp:function(){return de},xy:function(){return ht}});var r=n(20173),i=n(42601),o=n(56299),a=n(17082);var s=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},c=n(33229);var l="data-rc-order",u="data-rc-priority",f="rc-util-key",d=new Map;function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):f}function h(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function m(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function g(e){return Array.from((d.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,c.Z)())return null;var n=t.csp,r=t.prepend,i=t.priority,o=void 0===i?0:i,a=m(r),s="prependQueue"===a,f=document.createElement("style");f.setAttribute(l,a),s&&o&&f.setAttribute(u,"".concat(o)),null!=n&&n.nonce&&(f.nonce=null==n?void 0:n.nonce),f.innerHTML=e;var d=h(t),p=d.firstChild;if(r){if(s){var v=(t.styles||g(d)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(l)))return!1;var t=Number(e.getAttribute(u)||0);return o>=t}));if(v.length)return d.insertBefore(f,v[v.length-1].nextSibling),f}d.insertBefore(f,p)}else d.appendChild(f);return f}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(t);return(t.styles||g(n)).find((function(n){return n.getAttribute(p(t))===e}))}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=y(e,t);if(n){var r=h(t);r.removeChild(n)}}function w(e,t){var n=d.get(e);if(!n||!function(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}(document,n)){var r=v("",t),i=r.parentNode;d.set(e,i),e.removeChild(r)}}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=h(n),i=g(r),o=(0,a.Z)((0,a.Z)({},n),{},{styles:i});w(r,o);var s=y(t,o);if(s){var c,l,u;if(null!==(c=o.csp)&&void 0!==c&&c.nonce&&s.nonce!==(null===(l=o.csp)||void 0===l?void 0:l.nonce))s.nonce=null===(u=o.csp)||void 0===u?void 0:u.nonce;return s.innerHTML!==e&&(s.innerHTML=e),s}var f=v(e,o);return f.setAttribute(p(o),t),f}var E=n(44194),S=n.t(E,2),x=(n(20638),n(28740));var _=n(74592),T=n(32099);function C(e){return e.join("%")}var A=function(){function e(t){(0,_.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,T.Z)(e,[{key:"get",value:function(e){return this.opGet(C(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(C(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),O="data-token-hash",R="data-css-hash",P="__cssinjs_instance__";function I(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(R,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[P]=t[P]||e,t[P]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(R,"]"))).forEach((function(t){var n,i=t.getAttribute(R);r[i]?t[P]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0}))}return new A(e)}var M=E.createContext({hashPriority:"low",cache:I(),defaultCache:!0}),L=M,N=n(6918),D="CALC_UNIT";new RegExp(D,"g");var j=function(){function e(){(0,_.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,T.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach((function(e){var t;i?i=null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):i=void 0})),null!==(t=i)&&void 0!==t&&t.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=(0,i.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),B+=1}return(0,T.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),$=new j;function U(e){var t=Array.isArray(e)?e:[e];return $.has(t)||$.set(t,new F(t)),$.get(t)}var q=new WeakMap,Z={};function z(e,t){for(var n=q,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(s)return e;var c=(0,a.Z)((0,a.Z)({},o),{},(i={},(0,r.Z)(i,O,t),(0,r.Z)(i,R,n),i)),l=Object.keys(c).map((function(e){var t=c[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Q=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},J=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,a,s=(0,i.Z)(e,2),c=s[0],l=s[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[c])){var u,f=X(c,null==n?void 0:n.prefix);r[f]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[c]?String(l):"".concat(l,"px"),o[c]="var(".concat(f,")")}})),[o,Q(r,t,{scope:null==n?void 0:n.scope})]},ee=n(16713),te=(0,a.Z)({},S).useInsertionEffect,ne=te?function(e,t,n){return te((function(){return e(),t()}),n)}:function(e,t,n){E.useMemo(e,n),(0,ee.Z)((function(){return t(!0)}),n)},re=void 0!==(0,a.Z)({},S).useInsertionEffect?function(e){var t=[],n=!1;return E.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var ie=function(){return!1};function oe(e,t,n,r,a){var s=E.useContext(L).cache,c=C([e].concat((0,o.Z)(t))),l=re([c]),u=(ie(),function(e){s.opUpdate(c,(function(t){var r=t||[void 0,void 0],o=(0,i.Z)(r,2),a=o[0];var s=[void 0===a?0:a,o[1]||n()];return e?e(s):s}))});E.useMemo((function(){u()}),[c]);var f=s.opGet(c)[1];return ne((function(){null==a||a(f)}),(function(e){return u((function(t){var n=(0,i.Z)(t,2),r=n[0],o=n[1];return e&&0===r&&(null==a||a(f)),[r+1,o]})),function(){s.opUpdate(c,(function(t){var n=t||[],o=(0,i.Z)(n,2),a=o[0],u=void 0===a?0:a,f=o[1];return 0===u-1?(l((function(){!e&&s.opGet(c)||null==r||r(f,!1)})),null):[u-1,f]}))}}),[c]),f}var ae={},se=new Map;function ce(e){se.set(e,(se.get(e)||0)+1)}function le(e,t){se.set(e,(se.get(e)||0)-1);var n=Array.from(se.keys()),r=n.filter((function(e){return(se.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(O,'="').concat(e,'"]')).forEach((function(e){var n;e[P]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),se.delete(e)}))}var ue=function(e,t,n,r){var i=n.getDerivativeToken(e),o=(0,a.Z)((0,a.Z)({},i),t);return r&&(o=r(o)),o},fe="token";function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,E.useContext)(L),c=r.cache.instanceId,l=r.container,u=n.salt,f=void 0===u?"":u,d=n.override,p=void 0===d?ae:d,h=n.formatToken,m=n.getComputedToken,g=n.cssVar,v=z((function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))}),t),y=W(v),b=W(p),w=g?W(g):"",S=oe(fe,[f,e.id,y,b,w],(function(){var t,n=m?m(v,p,e):ue(v,p,e,h),r=(0,a.Z)({},n),o="";if(g){var c=J(n,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),l=(0,i.Z)(c,2);n=l[0],o=l[1]}var u=V(n,f);n._tokenKey=u,r._tokenKey=V(r,f);var d=null!==(t=null==g?void 0:g.key)&&void 0!==t?t:u;n._themeKey=d,ce(d);var y="".concat("css","-").concat(s(u));return n._hashId=y,[n,y,r,o,(null==g?void 0:g.key)||""]}),(function(e){le(e[0]._themeKey,c)}),(function(e){var t=(0,i.Z)(e,4),n=t[0],r=t[3];if(g&&r){var o=k(r,s("css-variables-".concat(n._themeKey)),{mark:R,prepend:"queue",attachTo:l,priority:-999});o[P]=c,o.setAttribute(O,n._themeKey)}}));return S}var pe=n(11757),he={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},me="comm",ge="rule",ve="decl",ye=Math.abs,be=String.fromCharCode;Object.assign;function we(e){return e.trim()}function ke(e,t,n){return e.replace(t,n)}function Ee(e,t,n){return e.indexOf(t,n)}function Se(e,t){return 0|e.charCodeAt(t)}function xe(e,t,n){return e.slice(t,n)}function _e(e){return e.length}function Te(e,t){return t.push(e),e}function Ce(e,t){for(var n="",r=0;r0?Se(Le,--Ie):0,Re--,10===Me&&(Re=1,Oe--),Me}function je(){return Me=Ie2||Ue(Me)>3?"":" "}function We(e,t){for(;--t&&je()&&!(Me<48||Me>102||Me>57&&Me<65||Me>70&&Me<97););return $e(e,Fe()+(t<6&&32==Be()&&32==je()))}function Ve(e){for(;je();)switch(Me){case e:return Ie;case 34:case 39:34!==e&&39!==e&&Ve(Me);break;case 40:41===e&&Ve(e);break;case 92:je()}return Ie}function Ge(e,t){for(;je()&&e+Me!==57&&(e+Me!==84||47!==Be()););return"/*"+$e(t,Ie-1)+"*"+be(47===e?e:je())}function Ke(e){for(;!Ue(Be());)je();return $e(e,Ie)}function Ye(e){return Ze(Xe("",null,null,null,[""],e=qe(e),0,[0],e))}function Xe(e,t,n,r,i,o,a,s,c){for(var l=0,u=0,f=a,d=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=i,k=o,E=r,S=b;g;)switch(h=y,y=je()){case 40:if(108!=h&&58==Se(S,f-1)){-1!=Ee(S+=ke(ze(y),"&","&\f"),"&\f",ye(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=ze(y);break;case 9:case 10:case 13:case 32:S+=He(h);break;case 92:S+=We(Fe()-1,7);continue;case 47:switch(Be()){case 42:case 47:Te(Je(Ge(je(),Fe()),t,n,c),c),5!=Ue(h||1)&&5!=Ue(Be()||1)||!_e(S)||" "===xe(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[l++]=_e(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=ke(S,/\f/g,"")),p>0&&(_e(S)-f||0===m&&47===h)&&Te(p>32?et(S+";",r,n,f-1,c):et(ke(S," ","")+";",r,n,f-2,c),c);break;case 59:S+=";";default:if(Te(E=Qe(S,t,n,l,u,i,s,b,w=[],k=[],f,o),o),123===y)if(0===u)Xe(S,t,E,E,w,o,f,s,k);else switch(99===d&&110===Se(S,3)?100:d){case 100:case 108:case 109:case 115:Xe(e,E,E,r&&Te(Qe(e,E,E,0,0,i,s,b,i,w=[],f,k),k),i,k,f,s,r?w:k);break;default:Xe(S,E,E,E,[""],k,0,s,k)}}l=u=p=0,m=v=1,b=S="",f=a;break;case 58:f=1+_e(S),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==De())continue;switch(S+=be(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[l++]=(_e(S)-1)*v,v=1;break;case 64:45===Be()&&(S+=ze(je())),d=Be(),u=f=_e(b=S+=Ke(Fe())),y++;break;case 45:45===h&&2==_e(S)&&(m=0)}}return o}function Qe(e,t,n,r,i,o,a,s,c,l,u,f){for(var d=i-1,p=0===i?o:[""],h=function(e){return e.length}(p),m=0,g=0,v=0;m0?p[y]+" "+b:ke(b,/&\f/g,p[y])))&&(c[v++]=w);return Ne(e,t,n,0===i?ge:s,c,l,u,f)}function Je(e,t,n,r){return Ne(e,t,n,me,be(Me),xe(e,2,-2),0,r)}function et(e,t,n,r,i){return Ne(e,t,n,ve,xe(e,0,r),xe(e,r+1,-1),r,i)}var tt,nt="data-ant-cssinjs-cache-path",rt="_FILE_STYLE__";var it=!0;function ot(e){return function(){if(!tt&&(tt={},(0,c.Z)())){var e=document.createElement("div");e.className=nt,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(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,i.Z)(t,2),r=n[0],o=n[1];tt[r]=o}));var n,r=document.querySelector("style[".concat(nt,"]"));r&&(it=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!tt[e]}var at="_multi_value_";function st(e){return Ce(Ye(e),Ae).replace(/\{%%%\:[^;];}/g,";")}function ct(e){return"object"===(0,N.Z)(e)&&e&&("_skip_check_"in e||at in e)}function lt(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(i).concat(r.slice(a.length))].concat((0,o.Z)(n.slice(1))).join(" ")})).join(",")}var ut=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,c=r.injectHash,l=r.parentSelectors,u=n.hashId,f=n.layer,d=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,m=(n.linters,""),g={};function v(t){var r=t.getName(u);if(!g[r]){var o=e(t.style,n,{root:!1,parentSelectors:l}),a=(0,i.Z)(o,1)[0];g[r]="@keyframes ".concat(t.getName(u)).concat(a)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?y(e,t):e&&t.push(e)})),t}var b=y(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||s?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var f=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(f).forEach((function(t){var r=f[t];if("object"!==(0,N.Z)(r)||!r||"animationName"===t&&r._keyframe||ct(r)){var p;function _(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;he[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var h=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,N.Z)(r)&&null!=r&&r[at]&&Array.isArray(h)?h.forEach((function(e){_(t,e)})):_(t,h)}else{var y=!1,b=t.trim(),w=!1;(s||c)&&u?b.startsWith("@")?y=!0:b=lt("&"===b?"":t,u,d):!s||u||"&"!==b&&""!==b||(b="",w=!0);var k=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,o.Z)(l),[b])}),E=(0,i.Z)(k,2),S=E[0],x=E[1];g=(0,a.Z)((0,a.Z)({},g),x),m+="".concat(b).concat(S)}}))}})),s?f&&(m="@layer ".concat(f.name," {").concat(m,"}"),f.dependencies&&(g["@layer ".concat(f.name)]=f.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(f.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,g]};function ft(e,t){return s("".concat(e.join("%")).concat(t))}function dt(){return null}var pt="style";function ht(e,t){var n=e.token,s=e.path,l=e.hashId,u=e.layer,f=e.nonce,d=e.clientOnly,p=e.order,h=void 0===p?0:p,m=E.useContext(L),g=m.autoClear,v=(m.mock,m.defaultCache),y=m.hashPriority,w=m.container,S=m.ssrInline,x=m.transformers,_=m.linters,T=m.cache,C=m.layer,A=n._tokenKey,I=[A];C&&I.push("layer"),I.push.apply(I,(0,o.Z)(s));var M=G;var N=oe(pt,I,(function(){var e=I.join("|");if(ot(e)){var n=function(e){var t=tt[e],n=null;if(t&&(0,c.Z)())if(it)n=rt;else{var r=document.querySelector("style[".concat(R,'="').concat(tt[e],'"]'));r?n=r.innerHTML:delete tt[e]}return[n,t]}(e),r=(0,i.Z)(n,2),o=r[0],a=r[1];if(o)return[o,A,a,{},d,h]}var f=t(),p=ut(f,{hashId:l,hashPriority:y,layer:C?u:void 0,path:s.join("-"),transformers:x,linters:_}),m=(0,i.Z)(p,2),g=m[0],v=m[1],b=st(g),w=ft(I,b);return[b,A,w,v,d,h]}),(function(e,t){var n=(0,i.Z)(e,3)[2];(t||g)&&G&&b(n,{mark:R})}),(function(e){var t=(0,i.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(M&&n!==rt){var s={mark:R,prepend:!C&&"queue",attachTo:w,priority:h},c="function"==typeof f?f():f;c&&(s.csp={nonce:c});var l=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):u.push(e)})),l.forEach((function(e){k(st(o[e]),"_layer-".concat(e),(0,a.Z)((0,a.Z)({},s),{},{prepend:!0}))}));var d=k(n,r,s);d[P]=T.instanceId,d.setAttribute(O,A),u.forEach((function(e){k(st(o[e]),"_effect-".concat(e),s)}))}})),D=(0,i.Z)(N,3),j=D[0],B=D[1],F=D[2];return function(e){var t,n;S&&!M&&v?t=E.createElement("style",(0,pe.Z)({},(n={},(0,r.Z)(n,O,B),(0,r.Z)(n,R,F),n),{dangerouslySetInnerHTML:{__html:j}})):t=E.createElement(dt,null);return E.createElement(E.Fragment,null,t,e)}}var mt,gt="cssVar",vt=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,s=e.ignore,c=e.token,l=e.scope,u=void 0===l?"":l,f=(0,E.useContext)(L),d=f.cache.instanceId,p=f.container,h=c._tokenKey,m=[].concat((0,o.Z)(e.path),[n,u,h]);return oe(gt,m,(function(){var e=t(),o=J(e,n,{prefix:r,unitless:a,ignore:s,scope:u}),c=(0,i.Z)(o,2),l=c[0],f=c[1];return[l,f,ft(m,f),n]}),(function(e){var t=(0,i.Z)(e,3)[2];G&&b(t,{mark:R})}),(function(e){var t=(0,i.Z)(e,3),r=t[1],o=t[2];if(r){var a=k(r,o,{mark:R,prepend:"queue",attachTo:p,priority:-999});a[P]=d,a.setAttribute(O,n)}}))};mt={},(0,r.Z)(mt,pt,(function(e,t,n){var r=(0,i.Z)(e,6),o=r[0],a=r[1],s=r[2],c=r[3],l=r[4],u=r[5],f=(n||{}).plain;if(l)return null;var d=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=Y(o,a,s,p,f),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=Y(st(c[e]),a,"_effect-".concat(e),p,f);e.startsWith("@layer")?d=n+d:d+=n}})),[u,s,d]})),(0,r.Z)(mt,fe,(function(e,t,n){var r=(0,i.Z)(e,5),o=r[2],a=r[3],s=r[4],c=(n||{}).plain;if(!a)return null;var l=o._tokenKey;return[-999,l,Y(a,s,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.Z)(mt,gt,(function(e,t,n){var r=(0,i.Z)(e,4),o=r[1],a=r[2],s=r[3],c=(n||{}).plain;if(!o)return null;return[-999,a,Y(o,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));var yt=function(){function e(t,n){(0,_.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,T.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),bt=yt;function wt(e){return e.notSplit=!0,e}wt(["borderTop","borderBottom"]),wt(["borderTop"]),wt(["borderBottom"]),wt(["borderLeft","borderRight"]),wt(["borderLeft"]),wt(["borderRight"])},87471:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(20173);const i=Math.round;function o(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const a=(e,t,n)=>0===n?e:e/100;function s(e,t){const n=t||255;return e>n?n:e<0?0:e}class c{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,r.Z)(this,"isValid",!0),(0,r.Z)(this,"r",0),(0,r.Z)(this,"g",0),(0,r.Z)(this,"b",0),(0,r.Z)(this,"a",1),(0,r.Z)(this,"_h",void 0),(0,r.Z)(this,"_s",void 0),(0,r.Z)(this,"_l",void 0),(0,r.Z)(this,"_v",void 0),(0,r.Z)(this,"_max",void 0),(0,r.Z)(this,"_min",void 0),(0,r.Z)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function i(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(e instanceof c)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=s(e.r),this.g=s(e.g),this.b=s(e.b),this.a="number"==typeof e.a?s(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:i(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],a={r:i(o("r")),g:i(o("g")),b:i(o("b")),a:i(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>i((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=i(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=i(100*this.getSaturation()),n=i(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=s(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=i(255*n);this.r=e,this.g=e,this.b=e}let o=0,a=0,s=0;const c=e/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(o=l,a=u):c>=1&&c<2?(o=u,a=l):c>=2&&c<3?(a=l,s=u):c>=3&&c<4?(a=u,s=l):c>=4&&c<5?(o=u,s=l):c>=5&&c<6&&(o=l,s=u);const f=n-l/2;this.r=i(255*(o+f)),this.g=i(255*(a+f)),this.b=i(255*(s+f))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=i(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=e/60,s=Math.floor(a),c=a-s,l=i(n*(1-t)*255),u=i(n*(1-t*c)*255),f=i(n*(1-t*(1-c))*255);switch(s){case 0:this.g=f,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=f;break;case 3:this.r=l,this.g=u;break;case 4:this.r=f,this.g=l;break;default:this.g=l,this.b=u}}fromHsvString(e){const t=o(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=o(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=o(e,((e,t)=>t.includes("%")?i(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},65173:function(e,t){"use strict";t.Z={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"}},29:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"}},20614:function(e,t){"use strict";t.Z={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"}},16892:function(e,t){"use strict";t.Z={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"}},79553:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 00-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z"}}]},name:"question",theme:"outlined"}},15323:function(e,t){"use strict";t.Z={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"}},89291:function(e,t){"use strict";t.Z={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"}},85333:function(e,t){"use strict";t.Z={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"}},64423:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(17082),i=n(42601),o=n(20173),a=n(73457),s=n(44194),c=n(51865),l=n.n(c),u=(0,s.createContext)({}),f=n(6918),d=n(20117),p=n(76981),h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function m(e){var t=e.r,n=e.g,r=e.b,i=(0,d.py)(t,n,r);return{h:360*i.h,s:i.s,v:i.v}}function g(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,d.vq)(t,n,r,!1))}function v(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function y(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function b(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function w(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function k(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,p.uA)(e),i=5;i>0;i-=1){var o=m(r),a=g((0,p.uA)({h:y(o,i,!0),s:b(o,i,!0),v:w(o,i,!0)}));n.push(a)}n.push(g(r));for(var s=1;s<=4;s+=1){var c=m(r),l=g((0,p.uA)({h:y(c,s),s:b(c,s),v:w(c,s)}));n.push(l)}return"dark"===t.theme?h.map((function(e){var r=e.index,i=e.opacity;return g(v((0,p.uA)(t.backgroundColor||"#141414"),(0,p.uA)(n[r]),100*i))})):n}var E={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},S={},x={};Object.keys(E).forEach((function(e){S[e]=k(E[e]),S[e].primary=S[e][5],x[e]=k(E[e],{theme:"dark",backgroundColor:"#141414"}),x[e].primary=x[e][5]}));S.red,S.volcano,S.gold,S.orange,S.yellow,S.lime,S.green,S.cyan,S.blue,S.geekblue,S.purple,S.magenta,S.grey;var _=n(32970),T=n(67860),C=n(89309),A=n.n(C);function O(e){return"object"===(0,f.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"==typeof e.icon)}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[A()(n)]=r;return t}),{})}function P(e,t,n){return n?s.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},R(e.attrs)),n),(e.children||[]).map((function(n,r){return P(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):s.createElement(e.tag,(0,r.Z)({key:t},R(e.attrs)),(e.children||[]).map((function(n,r){return P(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function I(e){return k(e)[0]}function M(e){return e?Array.isArray(e)?e:[e]:[]}var L="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",N=["icon","className","onClick","style","primaryColor","secondaryColor"],D={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var j=function(e){var t,n,i=e.icon,o=e.className,c=e.onClick,l=e.style,f=e.primaryColor,d=e.secondaryColor,p=(0,a.Z)(e,N),h=D;if(f&&(h={primaryColor:f,secondaryColor:d||I(f)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=(0,s.useContext)(u).csp;(0,s.useEffect)((function(){(0,T.hq)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=O(i),n="icon should be icon definiton, but got ".concat(i),(0,_.ZP)(t,"[@ant-design/icons] ".concat(n)),!O(i))return null;var m=i;return m&&"function"==typeof m.icon&&(m=(0,r.Z)((0,r.Z)({},m),{},{icon:m.icon(h.primaryColor,h.secondaryColor)})),P(m.icon,"svg-".concat(m.name),(0,r.Z)({className:o,onClick:c,style:l,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p))};j.displayName="IconReact",j.getTwoToneColors=function(){return(0,r.Z)({},D)},j.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;D.primaryColor=t,D.secondaryColor=n||I(t),D.calculated=!!n};var B=j;function F(e){var t=M(e),n=(0,i.Z)(t,2),r=n[0],o=n[1];return B.setTwoToneColors({primaryColor:r,secondaryColor:o})}var $=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];F("#1890ff");var U=s.forwardRef((function(e,t){var n=e.className,c=e.icon,f=e.spin,d=e.rotate,p=e.tabIndex,h=e.onClick,m=e.twoToneColor,g=(0,a.Z)(e,$),v=s.useContext(u),y=v.prefixCls,b=void 0===y?"anticon":y,w=v.rootClassName,k=l()(w,b,(0,o.Z)((0,o.Z)({},"".concat(b,"-").concat(c.name),!!c.name),"".concat(b,"-spin"),!!f||"loading"===c.name),n),E=p;void 0===E&&h&&(E=-1);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,x=M(m),_=(0,i.Z)(x,2),T=_[0],C=_[1];return s.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":c.name},g),{},{ref:t,tabIndex:E,onClick:h,className:k}),s.createElement(B,{icon:c,primaryColor:T,secondaryColor:C,style:S}))}));U.displayName="AntdIcon",U.getTwoToneColor=function(){var e=B.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},U.setTwoToneColor=F;var q=U},54183:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(11757),i=n(42601),o=n(20173),a=n(73457),s=n(44194),c=n(51865),l=n.n(c),u=n(69521),f=n(22230),d=n(17082),p=n(25425),h=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var g=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,o=e.primaryColor,c=e.secondaryColor,l=(0,a.Z)(e,h),u=s.useRef(),f=m;if(o&&(f={primaryColor:o,secondaryColor:c||(0,p.pw)(o)}),(0,p.C3)(u),(0,p.Kp)((0,p.r)(t),"icon should be icon definiton, but got ".concat(t)),!(0,p.r)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,d.Z)((0,d.Z)({},g),{},{icon:g.icon(f.primaryColor,f.secondaryColor)})),(0,p.R_)(g.icon,"svg-".concat(g.name),(0,d.Z)((0,d.Z)({className:n,onClick:r,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};g.displayName="IconReact",g.getTwoToneColors=function(){return(0,d.Z)({},m)},g.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;m.primaryColor=t,m.secondaryColor=n||(0,p.pw)(t),m.calculated=!!n};var v=g;function y(e){var t=(0,p.H9)(e),n=(0,i.Z)(t,2),r=n[0],o=n[1];return v.setTwoToneColors({primaryColor:r,secondaryColor:o})}var b=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];y(u.iN.primary);var w=s.forwardRef((function(e,t){var n=e.className,c=e.icon,u=e.spin,d=e.rotate,h=e.tabIndex,m=e.onClick,g=e.twoToneColor,y=(0,a.Z)(e,b),w=s.useContext(f.Z),k=w.prefixCls,E=void 0===k?"anticon":k,S=w.rootClassName,x=l()(S,E,(0,o.Z)((0,o.Z)({},"".concat(E,"-").concat(c.name),!!c.name),"".concat(E,"-spin"),!!u||"loading"===c.name),n),_=h;void 0===_&&m&&(_=-1);var T=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,C=(0,p.H9)(g),A=(0,i.Z)(C,2),O=A[0],R=A[1];return s.createElement("span",(0,r.Z)({role:"img","aria-label":c.name},y,{ref:t,tabIndex:_,onClick:m,className:x}),s.createElement(v,{icon:c,primaryColor:O,secondaryColor:R,style:T}))}));w.displayName="AntdIcon",w.getTwoToneColor=function(){var e=v.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},w.setTwoToneColor=y;var k=w},22230:function(e,t,n){"use strict";var r=(0,n(44194).createContext)({});t.Z=r},58644:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},92520:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},14377:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},59423:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},64985:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},61831:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},55510:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},18701:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},81121:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},54883:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},46193:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},68779:function(e,t,n){"use strict";var r=n(11757),i=n(44194),o=n(89291),a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o.Z}))},c=i.forwardRef(s);t.Z=c},10022:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(11757),i=n(44194),o={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"},a=n(54183),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=i.forwardRef(s)},25425:function(e,t,n){"use strict";n.d(t,{C3:function(){return b},H9:function(){return v},Kp:function(){return d},R_:function(){return m},pw:function(){return g},r:function(){return p},vD:function(){return y}});var r=n(17082),i=n(6918),o=n(69521),a=n(67860),s=n(96614),c=n(32970),l=n(44194),u=n(22230);function f(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function d(e,t){(0,c.ZP)(e,"[@ant-design/icons] ".concat(t))}function p(e){return"object"===(0,i.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.Z)(e.icon)||"function"==typeof e.icon)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[f(n)]=r;return t}),{})}function m(e,t,n){return n?l.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},h(e.attrs)),n),(e.children||[]).map((function(n,r){return m(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,r.Z)({key:t},h(e.attrs)),(e.children||[]).map((function(n,r){return m(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function g(e){return(0,o.R_)(e)[0]}function v(e){return e?Array.isArray(e)?e:[e]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},b=function(e){var t=(0,l.useContext)(u.Z),n=t.csp,r=t.prefixCls,i=t.layer,o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),i&&(o="@layer ".concat(i," {\n").concat(o,"\n}")),(0,l.useEffect)((function(){var t=e.current,r=(0,s.A)(t);(0,a.hq)(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:r})}),[])}},69277:function(e,t,n){"use strict";n.d(t,{q:function(){return w}});var r=n(17082),i=n(11757),o=n(44194),a={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"},s=n(54183),c=function(e,t){return o.createElement(s.Z,(0,i.Z)({},e,{ref:t,icon:a}))};var l=o.forwardRef(c),u=n(75574),f=n(96839),d=n(51865),p=n.n(d),h=n(20173),m=n(60183),g=function(e){return(0,h.Z)({},e.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:e.colorTextSecondary,"&-link":{color:e.colorTextSecondary,textDecoration:e.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:e.colorPrimary}},"&-copyright":{fontSize:"14px",color:e.colorText}})};var v=n(31549),y=function(e){var t=e.className,n=e.prefixCls,i=e.links,a=e.copyright,s=e.style,c=(0,o.useContext)(f.ZP.ConfigContext).getPrefixCls(n||"pro-global-footer"),l=function(e){return(0,m.Xj)("ProLayoutFooter",(function(t){var n=(0,r.Z)((0,r.Z)({},t),{},{componentCls:".".concat(e)});return[g(n)]}))}(c),u=l.wrapSSR,d=l.hashId;return!(null==i||!1===i||Array.isArray(i)&&0===i.length)||null!=a&&!1!==a?u((0,v.jsxs)("div",{className:p()(c,d,t),style:s,children:[i&&(0,v.jsx)("div",{className:"".concat(c,"-list ").concat(d).trim(),children:i.map((function(e){return(0,v.jsx)("a",{className:"".concat(c,"-list-link ").concat(d).trim(),title:e.key,target:e.blankTarget?"_blank":"_self",href:e.href,rel:"noreferrer",children:e.title},e.key)}))}),a&&(0,v.jsx)("div",{className:"".concat(c,"-copyright ").concat(d).trim(),children:a})]})):null},b=u.Z.Footer,w=function(e){var t=e.links,n=e.copyright,i=e.style,a=e.className,s=e.prefixCls;return(0,v.jsx)(b,{className:a,style:(0,r.Z)({padding:0},i),children:(0,v.jsx)(y,{links:t,prefixCls:s,copyright:!1===n?null:(0,v.jsxs)(o.Fragment,{children:[(0,v.jsx)(l,{})," ",n]})})})}},65821:function(e,t,n){"use strict";n.d(t,{_Y:function(){return A},L_:function(){return R},ZP:function(){return P},nu:function(){return x},YB:function(){return O}});var r=n(56299),i=n(42601),o=n(73457),a=n(17082),s=n(47825),c=n(96839),l=n(96277),u=n(44194),f=n(57241),d=n(21078),p=n(28977),h=n.n(p),m=n(60183),g=n(64847),v=n(6918),y=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,c.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,c.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,c.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,c.V2)(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){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({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})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(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){void 0===t&&(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;a1&&void 0!==arguments[1]?arguments[1]:1,r=3735928559^n,i=1103547991^n,o=0;o>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&(i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)},l=(0,o.jG)((function(e){return e})),u={theme:l,token:(0,i.Z)((0,i.Z)({},s),null===a.Z||void 0===a.Z||null===(r=a.Z.defaultAlgorithm)||void 0===r?void 0:r.call(a.Z,null===a.Z||void 0===a.Z?void 0:a.Z.defaultSeed)),hashId:"pro-".concat(c(JSON.stringify(s)))},f=function(){return u}},93769:function(e,t,n){"use strict";n.d(t,{l:function(){return _e}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--y):0,g--,10===b&&(g=1,m--),b}function x(){return b=y2||A(b)>3?"":" "}function M(e,t){for(;--t&&x()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return C(e,T()+(t<6&&32==_()&&32==x()))}function L(e){for(;x();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&L(b);break;case 40:41===e&&L(e);break;case 92:x()}return y}function N(e,t){for(;x()&&e+b!==57&&(e+b!==84||47!==_()););return"/*"+C(t,y-1)+"*"+o(47===e?e:x())}function D(e){for(;!A(_());)x();return C(e,y)}var j="-ms-",B="-moz-",F="-webkit-",$="comm",U="rule",q="decl",Z="@keyframes";function z(e,t){for(var n="",r=p(e),i=0;i0&&d(B)-v&&h(b>32?Y(B+";",r,n,v-1):Y(c(B," ","")+";",r,n,v-2),p);break;case 59:B+=";";default:if(h(j=G(B,t,n,m,g,i,f,O,R=[],L=[],v),a),123===A)if(0===g)V(B,t,j,j,R,a,v,f,L);else switch(99===y&&110===u(B,3)?100:y){case 100:case 108:case 109:case 115:V(e,j,j,r&&h(G(e,j,j,0,0,i,f,O,i,R=[],v),L),i,L,v,f,r?R:L);break;default:V(B,j,j,j,[""],L,0,f,L)}}m=g=b=0,k=C=1,O=B="",v=s;break;case 58:v=1+d(B),b=w;default:if(k<1)if(123==A)--k;else if(125==A&&0==k++&&125==S())continue;switch(B+=o(A),A*k){case 38:C=g>0?1:(B+="\f",-1);break;case 44:f[m++]=(d(B)-1)*C,C=1;break;case 64:45===_()&&(B+=P(x())),y=_(),g=v=d(O=B+=D(T())),A++;break;case 45:45===w&&2==d(B)&&(k=0)}}return a}function G(e,t,n,r,o,a,l,u,d,h,m){for(var g=o-1,v=0===o?a:[""],y=p(v),b=0,w=0,E=0;b0?v[S]+" "+x:c(x,/&\f/g,v[S])))&&(d[E++]=_);return k(e,t,n,0===o?U:u,d,h,m)}function K(e,t,n){return k(e,t,n,$,o(b),f(e,2,-2),0)}function Y(e,t,n,r){return k(e,t,n,q,f(e,0,r),f(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,i=0;r=i,i=_(),38===r&&12===i&&(t[n]=1),!A(i);)x();return C(e,y)},Q=function(e,t){return R(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===_()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===_()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=x());return e}(O(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var i=[],o=Q(t,i),a=n.props,s=0,c=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+B+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?ne(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,d(e)-3-(~l(e,"!important")&&10))){case 107:return c(e,":",":"+F)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+j+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+j+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=ne(e.value,e.length);break;case Z:return z([E(e,{value:c(e.value,"@","@"+F)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return z([E(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return z([E(e,{props:[c(t,/:(plac\w+)/,":"+F+"input-$1")]}),E(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),E(e,{props:[c(t,/:(plac\w+)/,j+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||re,s={},c=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return{name:l,styles:i,next:he}}function ve(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var ye=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};function be(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function we(e,t,n){var r=[],i=ve(e,r,n);return r.length<2?n:i+t(r)}var ke=function e(t){for(var n="",r=0;r.5?l/(2-i-o):l/(i+o),i){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var i,o,s;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)o=n,s=n,i=n;else{var c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;i=a(l,c,e+1/3),o=a(l,c,e),s=a(l,c,e-1/3)}return{r:255*i,g:255*o,b:255*s}}function c(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=i,c=i-o,l=0===i?0:c/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/c+(t>16,g:(65280&e)>>8,b:255&e}}},53099:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={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"}},76981:function(e,t,n){"use strict";n.d(t,{uA:function(){return a}});var r=n(20117),i=n(53099),o=n(33146);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,c=null,l=!1,d=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(i.R[e])e=i.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),l=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,o.JX)(e.s),s=(0,o.JX)(e.v),t=(0,r.WE)(e.h,a,s),l=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,o.JX)(e.s),c=(0,o.JX)(e.l),t=(0,r.ve)(e.h,a,c),l=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,o.Yq)(n),{ok:l,format:e.format||d,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 s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+l),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 f(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},33146:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return Math.min(1,Math.max(0,e))}function o(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return s},JX:function(){return a},V2:function(){return i},Yq:function(){return o},sh:function(){return r}})},23068:function(e,t,n){"use strict";n.d(t,{Il:function(){return y},G5:function(){return _},ZP:function(){return j}});var r=n(11757),i=n(20173),o=n(42601),a=n(44194),s=n(17082),c=n(74592),l=n(32099),u=n(14755),f=n(3518),d=n(73457),p=n(6918),h=n(87471),m=["b"],g=["v"],v=function(e){return Math.round(Number(e||0))},y=function(e){(0,u.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,c.Z)(this,n),t.call(this,function(e){if(e instanceof h.t)return e;if(e&&"object"===(0,p.Z)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,d.Z)(t,m);return(0,s.Z)((0,s.Z)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,l.Z)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=v(100*e.s),n=v(100*e.b),r=v(e.h),i=e.a,o="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,d.Z)(e,g);return(0,s.Z)((0,s.Z)({},n),{},{b:t,a:this.a})}}]),n}(h.t),b=function(e){return e instanceof y?e:new y(e)},w=b("#1677ff"),k=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,i=e.color,o=e.type,a=r.current.getBoundingClientRect(),c=a.width,l=a.height,u=n.current.getBoundingClientRect(),f=u.width/2,d=u.height/2,p=(t.x+f)/c,h=1-(t.y+d)/l,m=i.toHsb(),g=p,v=(t.x+f)/c*360;if(o)switch(o){case"hue":return b((0,s.Z)((0,s.Z)({},m),{},{h:v<=0?0:v}));case"alpha":return b((0,s.Z)((0,s.Z)({},m),{},{a:g<=0?0:g}))}return b({h:m.h,s:p<=0?0:p,b:h>=1?1:h,a:m.a})},E=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},S=n(51865),x=n.n(S),_=function(e){var t=e.color,n=e.prefixCls,r=e.className,i=e.style,o=e.onClick,s="".concat(n,"-color-block");return a.createElement("div",{className:x()(s,r),style:i,onClick:o},a.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};var T=function(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,s=e.onDragChangeComplete,c=e.calculate,l=e.color,u=e.disabledDrag,f=(0,a.useState)({x:0,y:0}),d=(0,o.Z)(f,2),p=d[0],h=d[1],m=(0,a.useRef)(null),g=(0,a.useRef)(null);(0,a.useEffect)((function(){h(c())}),[l]),(0,a.useEffect)((function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null}}),[]);var v=function(e){var o=function(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}}(e),a=o.pageX,s=o.pageY,c=n.current.getBoundingClientRect(),l=c.x,u=c.y,f=c.width,d=c.height,h=t.current.getBoundingClientRect(),m=h.width,g=h.height,v=m/2,y=g/2,b=Math.max(0,Math.min(a-l,f))-v,w=Math.max(0,Math.min(s-u,d))-y,k={x:b,y:"x"===r?p.y:w};if(0===m&&0===g||m!==g)return!1;null==i||i(k)},y=function(e){e.preventDefault(),v(e)},b=function(e){e.preventDefault(),document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null,null==s||s()};return[p,function(e){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),u||(v(e),document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b),m.current=y,g.current=b)}]},C=n(81654),A=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,o=e.prefixCls;return a.createElement("div",{className:x()("".concat(o,"-handler"),(0,i.Z)({},"".concat(o,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},O=function(e){var t=e.children,n=e.style,r=e.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,s.Z)({position:"relative"},n)},t)},R=(0,a.forwardRef)((function(e,t){var n=e.children,r=e.x,i=e.y;return a.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)})),P=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,i=e.onChangeComplete,s=e.disabled,c=(0,a.useRef)(),l=(0,a.useRef)(),u=(0,a.useRef)(t),f=(0,C.zX)((function(e){var r=k({offset:e,targetRef:l,containerRef:c,color:t});u.current=r,n(r)})),d=T({color:t,containerRef:c,targetRef:l,calculate:function(){return E(t)},onDragChange:f,onDragChangeComplete:function(){return null==i?void 0:i(u.current)},disabledDrag:s}),p=(0,o.Z)(d,2),h=p[0],m=p[1];return a.createElement("div",{ref:c,className:"".concat(r,"-select"),onMouseDown:m,onTouchStart:m},a.createElement(O,{prefixCls:r},a.createElement(R,{x:h.x,y:h.y,ref:l},a.createElement(A,{color:t.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},I=function(e,t){var n=(0,C.C8)(e,{value:t}),r=(0,o.Z)(n,2),i=r[0],s=r[1];return[(0,a.useMemo)((function(){return b(i)}),[i]),s]},M=function(e){var t=e.colors,n=e.children,r=e.direction,i=void 0===r?"to right":r,o=e.type,s=e.prefixCls,c=(0,a.useMemo)((function(){return t.map((function(e,n){var r=b(e);return"alpha"===o&&n===t.length-1&&(r=new y(r.setA(1))),r.toRgbString()})).join(",")}),[t,o]);return a.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},n)},L=function(e){var t=e.prefixCls,n=e.colors,r=e.disabled,i=e.onChange,s=e.onChangeComplete,c=e.color,l=e.type,u=(0,a.useRef)(),f=(0,a.useRef)(),d=(0,a.useRef)(c),p=function(e){return"hue"===l?e.getHue():100*e.a},h=(0,C.zX)((function(e){var t=k({offset:e,targetRef:f,containerRef:u,color:c,type:l});d.current=t,i(p(t))})),m=T({color:c,targetRef:f,containerRef:u,calculate:function(){return E(c,l)},onDragChange:h,onDragChangeComplete:function(){s(p(d.current))},direction:"x",disabledDrag:r}),g=(0,o.Z)(m,2),v=g[0],b=g[1],w=a.useMemo((function(){if("hue"===l){var e=c.toHsb();return e.s=1,e.b=1,e.a=1,new y(e)}return c}),[c,l]),S=a.useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return a.createElement("div",{ref:u,className:x()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(l)),onMouseDown:b,onTouchStart:b},a.createElement(O,{prefixCls:t},a.createElement(R,{x:v.x,y:v.y,ref:f},a.createElement(A,{size:"small",color:w.toHexString(),prefixCls:t})),a.createElement(M,{colors:S,type:l,prefixCls:t})))};var N=[{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}],D=(0,a.forwardRef)((function(e,t){var n=e.value,s=e.defaultValue,c=e.prefixCls,l=void 0===c?"rc-color-picker":c,u=e.onChange,f=e.onChangeComplete,d=e.className,p=e.style,h=e.panelRender,m=e.disabledAlpha,g=void 0!==m&&m,v=e.disabled,b=void 0!==v&&v,k=function(e){return a.useMemo((function(){return[(e||{}).slider||L]}),[e])}(e.components),E=(0,o.Z)(k,1)[0],S=I(s||w,n),T=(0,o.Z)(S,2),C=T[0],A=T[1],O=(0,a.useMemo)((function(){return C.setA(1).toRgbString()}),[C]),R=function(e,t){n||A(e),null==u||u(e,t)},M=function(e){return new y(C.setHue(e))},D=function(e){return new y(C.setA(e/100))},j=x()("".concat(l,"-panel"),d,(0,i.Z)({},"".concat(l,"-panel-disabled"),b)),B={prefixCls:l,disabled:b,color:C},F=a.createElement(a.Fragment,null,a.createElement(P,(0,r.Z)({onChange:R},B,{onChangeComplete:f})),a.createElement("div",{className:"".concat(l,"-slider-container")},a.createElement("div",{className:x()("".concat(l,"-slider-group"),(0,i.Z)({},"".concat(l,"-slider-group-disabled-alpha"),g))},a.createElement(E,(0,r.Z)({},B,{type:"hue",colors:N,min:0,max:359,value:C.getHue(),onChange:function(e){R(M(e),{type:"hue",value:e})},onChangeComplete:function(e){f&&f(M(e))}})),!g&&a.createElement(E,(0,r.Z)({},B,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:O}],min:0,max:100,value:100*C.a,onChange:function(e){R(D(e),{type:"alpha",value:e})},onChangeComplete:function(e){f&&f(D(e))}}))),a.createElement(_,{color:C.toRgbString(),prefixCls:l})));return a.createElement("div",{className:j,style:p,ref:t},"function"==typeof h?h(F):F)}));var j=D},6193:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(42601),i=n(44194),o=n(56321),a=n(33866),s=(n(32970),n(34221)),c=i.createContext(null),l=n(56299),u=n(16374),f=[];var d=n(67860),p=n(66666);var h="rc-util-locker-".concat(Date.now()),m=0;function g(e){var t=!!e,n=i.useState((function(){return m+=1,"".concat(h,"_").concat(m)})),o=(0,r.Z)(n,1)[0];(0,u.Z)((function(){if(t){var e=(0,p.o)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,d.jL)(o);return function(){(0,d.jL)(o)}}),[t,o])}var v=!1;var y=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};var b=i.forwardRef((function(e,t){var n=e.open,d=e.autoLock,p=e.getContainer,h=(e.debug,e.autoDestroy),m=void 0===h||h,b=e.children,w=i.useState(n),k=(0,r.Z)(w,2),E=k[0],S=k[1],x=E||n;i.useEffect((function(){(m||n)&&S(n)}),[n,m]);var _=i.useState((function(){return y(p)})),T=(0,r.Z)(_,2),C=T[0],A=T[1];i.useEffect((function(){var e=y(p);A(null!=e?e:null)}));var O=function(e,t){var n=i.useState((function(){return(0,a.Z)()?document.createElement("div"):null})),o=(0,r.Z)(n,1)[0],s=i.useRef(!1),d=i.useContext(c),p=i.useState(f),h=(0,r.Z)(p,2),m=h[0],g=h[1],v=d||(s.current?void 0:function(e){g((function(t){return[e].concat((0,l.Z)(t))}))});function y(){o.parentElement||document.body.appendChild(o),s.current=!0}function b(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),s.current=!1}return(0,u.Z)((function(){return e?d?d(y):y():b(),b}),[e]),(0,u.Z)((function(){m.length&&(m.forEach((function(e){return e()})),g(f))}),[m]),[o,v]}(x&&!C),R=(0,r.Z)(O,2),P=R[0],I=R[1],M=null!=C?C:P;g(d&&n&&(0,a.Z)()&&(M===P||M===document.body));var L=null;b&&(0,s.Yr)(b)&&t&&(L=b.ref);var N=(0,s.x1)(L,t);if(!x||!(0,a.Z)()||void 0===C)return null;var D,j=!1===M||("boolean"==typeof D&&(v=D),v),B=b;return t&&(B=i.cloneElement(b,{ref:N})),i.createElement(c.Provider,{value:I},j?B:(0,o.createPortal)(B,M))}))},55420:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(17082),i=n(42601),o=n(73457),a=n(6193),s=n(51865),c=n.n(s),l=n(26954),u=n(39277),f=n(96614),d=n(33417),p=n(31991),h=n(16374),m=n(5250),g=n(44194),v=n(11757),y=n(77588),b=n(34221);function w(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,u=void 0===l?0:l,f=i.y,d=void 0===f?0:f,p=g.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],y=m[0],b=m[1],w=v[0],k=v[1];y!==w&&["t","b"].includes(y)?"t"===y?h.top=0:h.bottom=0:h.top=d,b!==k&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return g.createElement("div",{ref:p,className:c()("".concat(t,"-arrow"),a),style:h},s)}function k(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?g.createElement(y.ZP,(0,v.Z)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:c()("".concat(t,"-mask"),n)})})):null}var E=g.memo((function(e){return e.children}),(function(e,t){return t.cache}));var S=g.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,s=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,m=e.fresh,S=e.onClick,x=e.mask,_=e.arrow,T=e.arrowPos,C=e.align,A=e.motion,O=e.maskMotion,R=e.forceRender,P=e.getPopupContainer,I=e.autoDestroy,M=e.portal,L=e.zIndex,N=e.onMouseEnter,D=e.onMouseLeave,j=e.onPointerEnter,B=e.onPointerDownCapture,F=e.ready,$=e.offsetX,U=e.offsetY,q=e.offsetR,Z=e.offsetB,z=e.onAlign,H=e.onPrepare,W=e.stretch,V=e.targetWidth,G=e.targetHeight,K="function"==typeof n?n():n,Y=d||p,X=(null==P?void 0:P.length)>0,Q=g.useState(!P||!X),J=(0,i.Z)(Q,2),ee=J[0],te=J[1];if((0,h.Z)((function(){!ee&&X&&u&&te(!0)}),[ee,X,u]),!ee)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(F||!d){var ie,oe=C.points,ae=C.dynamicInset||(null===(ie=C._experimental)||void 0===ie?void 0:ie.dynamicInset),se=ae&&"r"===oe[0][1],ce=ae&&"b"===oe[0][0];se?(re.right=q,re.left=ne):(re.left=$,re.right=ne),ce?(re.bottom=Z,re.top=ne):(re.top=U,re.bottom=ne)}var le={};return W&&(W.includes("height")&&G?le.height=G:W.includes("minHeight")&&G&&(le.minHeight=G),W.includes("width")&&V?le.width=V:W.includes("minWidth")&&V&&(le.minWidth=V)),d||(le.pointerEvents="none"),g.createElement(M,{open:R||Y,getContainer:P&&function(){return P(u)},autoDestroy:I},g.createElement(k,{prefixCls:a,open:d,zIndex:L,mask:x,motion:O}),g.createElement(l.Z,{onResize:z,disabled:!d},(function(e){return g.createElement(y.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:R,leavedClassName:"".concat(a,"-hidden")},A,{onAppearPrepare:H,onEnterPrepare:H,visible:d,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),f(e)}}),(function(n,i){var l=n.className,u=n.style,f=c()(a,l,o);return g.createElement("div",{ref:(0,b.sQ)(e,t,i),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(T.x||0,"px"),"--arrow-y":"".concat(T.y||0,"px")},re),le),u),{},{boxSizing:"border-box",zIndex:L},s),onMouseEnter:N,onMouseLeave:D,onPointerEnter:j,onClick:S,onPointerDownCapture:B},_&&g.createElement(w,{prefixCls:a,arrow:_,arrowPos:T,align:C}),g.createElement(E,{cache:!d&&!m},K))}))})))}));var x=g.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=(0,b.Yr)(n),o=g.useCallback((function(e){(0,b.mH)(t,r?r(e):e)}),[r]),a=(0,b.x1)(o,(0,b.C4)(n));return i?g.cloneElement(n,{ref:a}):n})),_=g.createContext(null);function T(e){return e?Array.isArray(e)?e:[e]:[]}function C(e,t,n,r){return g.useMemo((function(){var i=T(null!=n?n:t),o=T(null!=r?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])}var A=n(27299);function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?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 R(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function N(e){return L(parseFloat(e),0)}function D(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,c=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=N(o),m=N(a),g=N(s),v=N(c),y=L(Math.round(l.width/d*1e3)/1e3),b=L(Math.round(l.height/u*1e3)/1e3),w=(d-p-g-v)*y,k=(u-f-h-m)*b,E=h*b,S=m*b,x=g*y,_=v*y,T=0,C=0;if("clip"===r){var A=N(i);T=A*y,C=A*b}var O=l.x+x-T,R=l.y+E-C,P=O+l.width+2*T-x-_-w,M=R+l.height+2*C-E-S-k;n.left=Math.max(n.left,O),n.top=Math.max(n.top,R),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,M)}})),n}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function B(e,t){var n=t||[],r=(0,i.Z)(n,2),o=r[0],a=r[1];return[j(e.width,o),j(e.height,a)]}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function $(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function U(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function q(e,t,n,o,a,s,c){var l=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),f=(0,i.Z)(l,2),p=f[0],m=f[1],v=g.useRef(0),y=g.useMemo((function(){return t?M(t):[]}),[t]),b=g.useRef({});e||(b.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var l,f,d,p,h,g=t,v=g.ownerDocument,w=I(g).getComputedStyle(g),k=w.width,E=w.height,S=w.position,x=g.style.left,_=g.style.top,T=g.style.right,C=g.style.bottom,O=g.style.overflow,R=(0,r.Z)((0,r.Z)({},a[o]),s),P=v.createElement("div");if(null===(l=g.parentElement)||void 0===l||l.appendChild(P),P.style.left="".concat(g.offsetLeft,"px"),P.style.top="".concat(g.offsetTop,"px"),P.style.position=S,P.style.height="".concat(g.offsetHeight,"px"),P.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var M,N,j=n.getBoundingClientRect();j.x=null!==(M=j.x)&&void 0!==M?M:j.left,j.y=null!==(N=j.y)&&void 0!==N?N:j.top,h={x:j.x,y:j.y,width:j.width,height:j.height}}var q=g.getBoundingClientRect();q.x=null!==(f=q.x)&&void 0!==f?f:q.left,q.y=null!==(d=q.y)&&void 0!==d?d:q.top;var Z=v.documentElement,z=Z.clientWidth,H=Z.clientHeight,W=Z.scrollWidth,V=Z.scrollHeight,G=Z.scrollTop,K=Z.scrollLeft,Y=q.height,X=q.width,Q=h.height,J=h.width,ee={left:0,top:0,right:z,bottom:H},te={left:-K,top:-G,right:W-K,bottom:V-G},ne=R.htmlRegion,re="visible",ie="visibleFirst";"scroll"!==ne&&ne!==ie&&(ne=re);var oe=ne===ie,ae=D(te,y),se=D(ee,y),ce=ne===re?se:ae,le=oe?se:ce;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var ue=g.getBoundingClientRect();g.style.left=x,g.style.top=_,g.style.right=T,g.style.bottom=C,g.style.overflow=O,null===(p=g.parentElement)||void 0===p||p.removeChild(P);var fe=L(Math.round(X/parseFloat(k)*1e3)/1e3),de=L(Math.round(Y/parseFloat(E)*1e3)/1e3);if(0===fe||0===de||(0,u.Sh)(n)&&!(0,A.Z)(n))return;var pe=R.offset,he=R.targetOffset,me=B(q,pe),ge=(0,i.Z)(me,2),ve=ge[0],ye=ge[1],be=B(h,he),we=(0,i.Z)(be,2),ke=we[0],Ee=we[1];h.x-=ke,h.y-=Ee;var Se=R.points||[],xe=(0,i.Z)(Se,2),_e=xe[0],Te=F(xe[1]),Ce=F(_e),Ae=$(h,Te),Oe=$(q,Ce),Re=(0,r.Z)({},R),Pe=Ae.x-Oe.x+ve,Ie=Ae.y-Oe.y+ye;function _t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ce,r=q.x+e,i=q.y+t,o=r+X,a=i+Y,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(l-s)*(u-c))}var Me,Le,Ne,De,je=_t(Pe,Ie),Be=_t(Pe,Ie,se),Fe=$(h,["t","l"]),$e=$(q,["t","l"]),Ue=$(h,["b","r"]),qe=$(q,["b","r"]),Ze=R.overflow||{},ze=Ze.adjustX,He=Ze.adjustY,We=Ze.shiftX,Ve=Ze.shiftY,Ge=function(e){return"boolean"==typeof e?e:e>=0};function Tt(){Me=q.y+Ie,Le=Me+Y,Ne=q.x+Pe,De=Ne+X}Tt();var Ke=Ge(He),Ye=Ce[0]===Te[0];if(Ke&&"t"===Ce[0]&&(Le>le.bottom||b.current.bt)){var Xe=Ie;Ye?Xe-=Y-Q:Xe=Fe.y-qe.y-ye;var Qe=_t(Pe,Xe),Je=_t(Pe,Xe,se);Qe>je||Qe===je&&(!oe||Je>=Be)?(b.current.bt=!0,Ie=Xe,ye=-ye,Re.points=[U(Ce,0),U(Te,0)]):b.current.bt=!1}if(Ke&&"b"===Ce[0]&&(Meje||tt===je&&(!oe||nt>=Be)?(b.current.tb=!0,Ie=et,ye=-ye,Re.points=[U(Ce,0),U(Te,0)]):b.current.tb=!1}var rt=Ge(ze),it=Ce[1]===Te[1];if(rt&&"l"===Ce[1]&&(De>le.right||b.current.rl)){var ot=Pe;it?ot-=X-J:ot=Fe.x-qe.x-ve;var at=_t(ot,Ie),st=_t(ot,Ie,se);at>je||at===je&&(!oe||st>=Be)?(b.current.rl=!0,Pe=ot,ve=-ve,Re.points=[U(Ce,1),U(Te,1)]):b.current.rl=!1}if(rt&&"r"===Ce[1]&&(Neje||lt===je&&(!oe||ut>=Be)?(b.current.lr=!0,Pe=ct,ve=-ve,Re.points=[U(Ce,1),U(Te,1)]):b.current.lr=!1}Tt();var ft=!0===We?0:We;"number"==typeof ft&&(Nese.right&&(Pe-=De-se.right-ve,h.x>se.right-ft&&(Pe+=h.x-se.right+ft)));var dt=!0===Ve?0:Ve;"number"==typeof dt&&(Mese.bottom&&(Ie-=Le-se.bottom-ye,h.y>se.bottom-dt&&(Ie+=h.y-se.bottom+dt)));var pt=q.x+Pe,ht=pt+X,mt=q.y+Ie,gt=mt+Y,vt=h.x,yt=vt+J,bt=h.y,wt=bt+Q,kt=(Math.max(pt,vt)+Math.min(ht,yt))/2-pt,Et=(Math.max(mt,bt)+Math.min(gt,wt))/2-mt;null==c||c(t,Re);var St=ue.right-q.x-(Pe+q.width),xt=ue.bottom-q.y-(Ie+q.height);1===fe&&(Pe=Math.round(Pe),St=Math.round(St)),1===de&&(Ie=Math.round(Ie),xt=Math.round(xt)),m({ready:!0,offsetX:Pe/fe,offsetY:Ie/de,offsetR:St/fe,offsetB:xt/de,arrowX:kt/fe,arrowY:Et/de,scaleX:fe,scaleY:de,align:Re})}})),k=function(){m((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,h.Z)(k,[o]),(0,h.Z)((function(){e||k()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&w()}))}]}var Z=n(56299);function z(e,t,n,r,i){(0,h.Z)((function(){if(e&&t&&n){var o=n,a=M(t),s=M(o),c=I(o),l=new Set([c].concat((0,Z.Z)(a),(0,Z.Z)(s)));function u(){r(),i()}return l.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){l.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}n(32970);function H(e,t,n,r,i,o,a,s){var c=g.useRef(e);c.current=e;var l=g.useRef(!1);return g.useEffect((function(){if(t&&r&&(!i||o)){var e=function(){l.current=!1},u=function(e){var t;!c.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||l.current||s(!1)},d=I(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=(0,f.A)(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}}),[t,n,r,i,o]),function(){l.current=!0}}var W=["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"];var V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=g.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=t.children,y=t.action,b=void 0===y?"hover":y,w=t.showAction,k=t.hideAction,E=t.popupVisible,T=t.defaultPopupVisible,A=t.onPopupVisibleChange,O=t.afterPopupVisibleChange,I=t.mouseEnterDelay,M=t.mouseLeaveDelay,L=void 0===M?.1:M,N=t.focusDelay,D=t.blurDelay,j=t.mask,B=t.maskClosable,F=void 0===B||B,$=t.getPopupContainer,U=t.forceRender,Z=t.autoDestroy,V=t.destroyPopupOnHide,G=t.popup,K=t.popupClassName,Y=t.popupStyle,X=t.popupPlacement,Q=t.builtinPlacements,J=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,ie=t.fresh,oe=t.alignPoint,ae=t.onPopupClick,se=t.onPopupAlign,ce=t.arrow,le=t.popupMotion,ue=t.maskMotion,fe=t.popupTransitionName,de=t.popupAnimation,pe=t.maskTransitionName,he=t.maskAnimation,me=t.className,ge=t.getTriggerDOMNode,ve=(0,o.Z)(t,W),ye=Z||V||!1,be=g.useState(!1),we=(0,i.Z)(be,2),ke=we[0],Ee=we[1];(0,h.Z)((function(){Ee((0,m.Z)())}),[]);var Se=g.useRef({}),xe=g.useContext(_),_e=g.useMemo((function(){return{registerSubPopup:function(e,t){Se.current[e]=t,null==xe||xe.registerSubPopup(e,t)}}}),[xe]),Te=(0,p.Z)(),Ce=g.useState(null),Ae=(0,i.Z)(Ce,2),Oe=Ae[0],Re=Ae[1],Pe=g.useRef(null),Ie=(0,d.Z)((function(e){Pe.current=e,(0,u.Sh)(e)&&Oe!==e&&Re(e),null==xe||xe.registerSubPopup(Te,e)})),Me=g.useState(null),Le=(0,i.Z)(Me,2),Ne=Le[0],De=Le[1],je=g.useRef(null),Be=(0,d.Z)((function(e){(0,u.Sh)(e)&&Ne!==e&&(De(e),je.current=e)})),Fe=g.Children.only(v),$e=(null==Fe?void 0:Fe.props)||{},Ue={},qe=(0,d.Z)((function(e){var t,n,r=Ne;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Oe?void 0:Oe.contains(e))||(null===(n=(0,f.A)(Oe))||void 0===n?void 0:n.host)===e||e===Oe||Object.values(Se.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ze=P(s,le,de,fe),ze=P(s,ue,he,pe),He=g.useState(T||!1),We=(0,i.Z)(He,2),Ve=We[0],Ge=We[1],Ke=null!=E?E:Ve,Ye=(0,d.Z)((function(e){void 0===E&&Ge(e)}));(0,h.Z)((function(){Ge(E||!1)}),[E]);var Xe=g.useRef(Ke);Xe.current=Ke;var Qe=g.useRef([]);Qe.current=[];var Je=(0,d.Z)((function(e){var t;Ye(e),(null!==(t=Qe.current[Qe.current.length-1])&&void 0!==t?t:Ke)!==e&&(Qe.current.push(e),null==A||A(e))})),et=g.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?Je(e):et.current=setTimeout((function(){Je(e)}),1e3*t)};g.useEffect((function(){return tt}),[]);var rt=g.useState(!1),it=(0,i.Z)(rt,2),ot=it[0],at=it[1];(0,h.Z)((function(e){e&&!Ke||at(!0)}),[Ke]);var st=g.useState(null),ct=(0,i.Z)(st,2),lt=ct[0],ut=ct[1],ft=g.useState(null),dt=(0,i.Z)(ft,2),pt=dt[0],ht=dt[1],mt=function(e){ht([e.clientX,e.clientY])},gt=q(Ke,Oe,oe&&null!==pt?pt:Ne,X,J,ee,se),vt=(0,i.Z)(gt,11),yt=vt[0],bt=vt[1],wt=vt[2],kt=vt[3],Et=vt[4],St=vt[5],xt=vt[6],_t=vt[7],Tt=vt[8],Ct=vt[9],At=vt[10],Ot=C(ke,b,w,k),Rt=(0,i.Z)(Ot,2),Pt=Rt[0],It=Rt[1],Mt=Pt.has("click"),Lt=It.has("click")||It.has("contextMenu"),Nt=(0,d.Z)((function(){ot||At()}));z(Ke,Ne,Oe,Nt,(function(){Xe.current&&oe&&Lt&&nt(!1)})),(0,h.Z)((function(){Nt()}),[pt,X]),(0,h.Z)((function(){!Ke||null!=J&&J[X]||Nt()}),[JSON.stringify(ee)]);var Dt=g.useMemo((function(){var e=R(J,s,Ct,oe);return c()(e,null==re?void 0:re(Ct))}),[Ct,re,J,s,oe]);g.useImperativeHandle(n,(function(){return{nativeElement:je.current,popupElement:Pe.current,forceAlign:Nt}}));var jt=g.useState(0),Bt=(0,i.Z)(jt,2),Ft=Bt[0],$t=Bt[1],Ut=g.useState(0),qt=(0,i.Z)(Ut,2),Zt=qt[0],zt=qt[1],Ht=function(){if(ne&&Ne){var e=Ne.getBoundingClientRect();$t(e.width),zt(e.height)}};function Wt(e,t,n,r){Ue[e]=function(i){var o;null==r||r(i),nt(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c1?n-1:0),i=1;i1?n-1:0),i=1;i()=>(e&&(t=e(e=0)),t),K=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var n in t)z(e,n,{get:t[n],enumerable:!0})},X=e=>((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of W(t))!V.call(e,i)&&i!==n&&z(e,i,{get:()=>t[i],enumerable:!(r=H(t,i))||r.enumerable});return e})(z({},"__esModule",{value:!0}),e),Q=G((()=>{})),J={};function ee(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function te(){!ve||!ye||(ve=!1,ye.length?ge=ye.concat(ge):be=-1,ge.length&&ne())}function ne(){if(!ve){var e=setTimeout(te,0);ve=!0;for(var t=ge.length;t;){for(ye=ge,ge=[];++be1)for(var n=1;nJe,_debugProcess:()=>Qe,_events:()=>vt,_eventsCount:()=>yt,_exiting:()=>je,_fatalExceptions:()=>Ke,_getActiveHandles:()=>le,_getActiveRequests:()=>ce,_kill:()=>$e,_linkedBinding:()=>ae,_maxListeners:()=>gt,_preload_modules:()=>ft,_rawDebug:()=>Le,_startProfilerIdleNotifier:()=>et,_stopProfilerIdleNotifier:()=>tt,_tickCallback:()=>Xe,abort:()=>ot,addListener:()=>bt,allowedNodeEnvironmentFlags:()=>Ve,arch:()=>ke,argv:()=>xe,argv0:()=>ut,assert:()=>ue,binding:()=>Oe,chdir:()=>Ie,config:()=>Be,cpuUsage:()=>Ue,cwd:()=>Pe,debugPort:()=>lt,default:()=>Ct,dlopen:()=>se,domain:()=>De,emit:()=>xt,emitWarning:()=>Ae,env:()=>Se,execArgv:()=>_e,execPath:()=>ct,exit:()=>He,features:()=>Ge,hasUncaughtExceptionCaptureCallback:()=>fe,hrtime:()=>pe,kill:()=>ze,listeners:()=>me,memoryUsage:()=>Ze,moduleLoadList:()=>Ne,nextTick:()=>re,off:()=>kt,on:()=>he,once:()=>wt,openStdin:()=>We,pid:()=>at,platform:()=>Ee,ppid:()=>st,prependListener:()=>_t,prependOnceListener:()=>Tt,reallyExit:()=>Fe,release:()=>Me,removeAllListeners:()=>St,removeListener:()=>Et,resourceUsage:()=>qe,setSourceMapsEnabled:()=>dt,setUncaughtExceptionCaptureCallback:()=>Ye,stderr:()=>rt,stdin:()=>it,stdout:()=>nt,title:()=>we,umask:()=>Re,uptime:()=>de,version:()=>Te,versions:()=>Ce});var ge,ve,ye,be,we,ke,Ee,Se,xe,_e,Te,Ce,Ae,Oe,Re,Pe,Ie,Me,Le,Ne,De,je,Be,Fe,$e,Ue,qe,Ze,ze,He,We,Ve,Ge,Ke,Ye,Xe,Qe,Je,et,tt,nt,rt,it,ot,at,st,ct,lt,ut,ft,dt,pt,ht,mt,gt,vt,yt,bt,wt,kt,Et,St,xt,_t,Tt,Ct,At=G((()=>{Q(),Zt(),Ot(),ge=[],ve=!1,be=-1,ie.prototype.run=function(){this.fun.apply(null,this.array)},we="browser",ke="x64",Ee="browser",Se={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},xe=["/usr/bin/node"],_e=[],Te="v16.8.0",Ce={},Ae=function(e,t){console.warn((t?t+": ":"")+e)},Oe=function(e){ee("binding")},Re=function(e){return 0},Pe=function(){return"/"},Ie=function(e){},Me={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Le=oe,Ne=[],De={},je=!1,Be={},Fe=oe,$e=oe,qe=Ue=function(){return{}},Ze=Ue,ze=oe,He=oe,We=oe,Ve={},Ge={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Ke=oe,Ye=oe,Xe=oe,Qe=oe,Je=oe,et=oe,tt=oe,nt=void 0,rt=void 0,it=void 0,ot=oe,at=2,st=1,ct="/bin/usr/node",lt=9229,ut="node",ft=[],dt=oe,void 0===(pt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0}).now&&(ht=Date.now(),pt.timing&&pt.timing.navigationStart&&(ht=pt.timing.navigationStart),pt.now=()=>Date.now()-ht),mt=1e9,pe.bigint=function(e){var t=pe(e);return typeof BigInt>"u"?t[0]*mt+t[1]:BigInt(t[0]*mt)+BigInt(t[1])},Ct={version:Te,versions:Ce,arch:ke,platform:Ee,release:Me,_rawDebug:Le,moduleLoadList:Ne,binding:Oe,_linkedBinding:ae,_events:vt={},_eventsCount:yt=0,_maxListeners:gt=10,on:he,addListener:bt=he,once:wt=he,off:kt=he,removeListener:Et=he,removeAllListeners:St=he,emit:xt=oe,prependListener:_t=he,prependOnceListener:Tt=he,listeners:me,domain:De,_exiting:je,config:Be,dlopen:se,uptime:de,_getActiveRequests:ce,_getActiveHandles:le,reallyExit:Fe,_kill:$e,cpuUsage:Ue,resourceUsage:qe,memoryUsage:Ze,kill:ze,exit:He,openStdin:We,allowedNodeEnvironmentFlags:Ve,assert:ue,features:Ge,_fatalExceptions:Ke,setUncaughtExceptionCaptureCallback:Ye,hasUncaughtExceptionCaptureCallback:fe,emitWarning:Ae,nextTick:re,_tickCallback:Xe,_debugProcess:Qe,_debugEnd:Je,_startProfilerIdleNotifier:et,_stopProfilerIdleNotifier:tt,stdout:nt,stdin:it,stderr:rt,abort:ot,umask:Re,chdir:Ie,cwd:Pe,env:Se,title:we,argv:xe,execArgv:_e,pid:at,ppid:st,execPath:ct,debugPort:lt,hrtime:pe,argv0:ut,_preload_modules:ft,setSourceMapsEnabled:dt}})),Ot=G((()=>{At()})),Rt={};function Pt(){if(jt)return Dt;jt=!0;let e=function(){if(Mt)return It;Mt=!0,It.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},It.toByteArray=function(e){var r,i,o=a(e),s=o[0],c=o[1],l=new n(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),u=0,f=c>0?s-4:s;for(i=0;i>16&255,l[u++]=r>>8&255,l[u++]=255&r;return 2===c&&(r=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,l[u++]=255&r),1===c&&(r=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,l[u++]=r>>8&255,l[u++]=255&r),l},It.fromByteArray=function(t){for(var n,r=t.length,i=r%3,o=[],a=16383,s=0,l=r-i;sl?l:s+a));return 1===i?(n=t[r-1],o.push(e[n>>2]+e[n<<4&63]+"==")):2===i&&(n=(t[r-2]<<8)+t[r-1],o.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),o.join("")};for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function c(e,t,n){for(var r,i=[],o=t;o>1,u=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},Lt.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&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*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*m}),Lt),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Dt.Buffer=o,Dt.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},Dt.INSPECT_MAX_BYTES=50;let r=2147483647;function i(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let n=0|d(e,t),r=i(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){let t=new Uint8Array(e);return u(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return u(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return o.from(r,t,n);let a=function(e){if(o.isBuffer(e)){let t=0|f(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||V(e.length)?i(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(a)return a;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.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 s(e){if("number"!=typeof e)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 c(e){return s(e),i(e<0?0:0|f(e))}function l(e){let t=e.length<0?0:0|f(e.length),n=i(t);for(let r=0;r=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function d(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(i)return r?-1:Z(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function h(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),V(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("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){let o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;let o,a=t.length;for(r>a/2&&(r=a/2),o=0;o>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(t,n,r){return 0===n&&r===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(n,r))}function S(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){let t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!o.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(e,t,n,r,i){if(W(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(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;let a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),c=Math.min(a,s),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}let i=this.length-t;if((void 0===n||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");let o=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":case"latin1":case"binary":return b(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let x=4096;function _(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i){F(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function I(e,t,n,r,i){F(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function M(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 L(e,n,r,i,o){return n=+n,r>>>=0,o||M(e,0,r,4),t.write(e,n,r,i,23,4),r+4}function N(e,n,r,i,o){return n=+n,r>>>=0,o||M(e,0,r,8),t.write(e,n,r,i,52,8),r+8}o.prototype.slice=function(e,t){let n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=K((function(e){$(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&U(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&U(e,this.length-8);let r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=K((function(e){$(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&U(e,this.length-8);let r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&U(e,this.length-8);let r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,n||O(e,4,this.length),t.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,n){return e>>>=0,n||O(e,4,this.length),t.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,n){return e>>>=0,n||O(e,8,this.length),t.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,n){return e>>>=0,n||O(e,8,this.length),t.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(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},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(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},o.prototype.writeBigUInt64LE=K((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=K((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(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},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(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},o.prototype.writeBigInt64LE=K((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=K((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!r&&0!==r&&(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=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>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function F(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(o+1)}${i}`:`>= -(2${i} ** ${8*(o+1)-1}${i}) and < 2 ** ${8*(o+1)-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new D.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){$(t,"offset"),(void 0===e[t]||void 0===e[t+n])&&U(t,e.length-(n+1))}(r,i,o)}function $(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function U(e,t,n){throw Math.floor(e)!==e?($(e,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",e)):t<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=B(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=B(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);let q=/[^+/0-9A-Za-z-_]/g;function Z(e,t){t=t||1/0;let n,r=e.length,i=null,o=[];for(let a=0;a55295&&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 z(t){return e.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function H(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!=e}let G=function(){let e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function K(e){return typeof BigInt>"u"?Y:e}function Y(){throw new Error("BigInt not supported")}return Dt}Y(Rt,{Buffer:()=>Ft,INSPECT_MAX_BYTES:()=>$t,default:()=>Bt,kMaxLength:()=>Ut});var It,Mt,Lt,Nt,Dt,jt,Bt,Ft,$t,Ut,qt=G((()=>{Q(),Zt(),Ot(),It={},Mt=!1,Lt={},Nt=!1,Dt={},jt=!1,(Bt=Pt()).Buffer,Bt.SlowBuffer,Bt.INSPECT_MAX_BYTES,Bt.kMaxLength,Ft=Bt.Buffer,$t=Bt.INSPECT_MAX_BYTES,Ut=Bt.kMaxLength})),Zt=G((()=>{qt()})),zt=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(e){this.aliasToTopic={},this.max=e}put(e,t){return!(0===t||t>this.max)&&(this.aliasToTopic[t]=e,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(e){return this.aliasToTopic[e]}clear(){this.aliasToTopic={}}}})),Ht=K(((e,t)=>{Q(),Zt(),Ot(),t.exports={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,n){return e.slice(t,n)},Error:Error,FunctionPrototypeCall(e,t,...n){return e.call(t,...n)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number: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(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,n){return Object.defineProperty(e,t,n)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise:Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,n){return e.then(t,n)},PromiseReject(e){return Promise.reject(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String:String,StringPrototypeSlice(e,t,n){return e.slice(t,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(e,t,n){return e.set(t,n)},Uint8Array:Uint8Array}})),Wt=K(((e,t)=>{Q(),Zt(),Ot();var n=(qt(),X(Rt)),r=Object.getPrototypeOf((async function(){})).constructor,i=globalThis.Blob||n.Blob,o=typeof i<"u"?function(e){return e instanceof i}:function(e){return!1},a=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n{e=n,t=r})),resolve:e,reject:t}},promisify(e){return new Promise(((t,n)=>{e(((e,...r)=>e?n(e):t(...r)))}))},debuglog(){return function(){}},format(e,...t){return e.replace(/%([sdifj])/g,(function(...[e,n]){let r=t.shift();return"f"===n?r.toFixed(6):"j"===n?JSON.stringify(r):"s"===n&&"object"==typeof r?`${r.constructor!==Object?r.constructor.name:""} {}`.trim():r.toString()}))},inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction(e){return e instanceof r},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:o},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})),Vt=K(((e,t)=>{Q(),Zt(),Ot();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})),Gt=K(((e,t)=>{Q(),Zt(),Ot();var{format:n,inspect:r,AggregateError:i}=Wt(),o=globalThis.AggregateError||i,a=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,l={};function u(e,t){if(!e)throw new l.ERR_INTERNAL_ASSERTION(t)}function f(e){let t="",n=e.length,r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function d(e,t,r){r||(r=Error);class i extends r{constructor(...r){super(function(e,t,r){if("function"==typeof t)return u(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return u(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?t:n(t,...r)}(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,l[e]=i}function p(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}var h=class extends Error{constructor(e="The operation was aborted",t){if(void 0!==t&&"object"!=typeof t)throw new l.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}};d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",((e,t,n)=>{u("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";let o=[],a=[],l=[];for(let e of t)u("string"==typeof e,"All expected entries have to be of type string"),s.includes(e)?o.push(e.toLowerCase()):c.test(e)?a.push(e):(u("object"!==e,'The value "object" should be written as "Object"'),l.push(e));if(a.length>0){let e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),a.push("Object"))}if(o.length>0){switch(o.length){case 1:i+=`of type ${o[0]}`;break;case 2:i+=`one of type ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();i+=`one of type ${o.join(", ")}, or ${e}`}}(a.length>0||l.length>0)&&(i+=" or ")}if(a.length>0){switch(a.length){case 1:i+=`an instance of ${a[0]}`;break;case 2:i+=`an instance of ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();i+=`an instance of ${a.join(", ")}, or ${e}`}}l.length>0&&(i+=" or ")}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(i+="an "),i+=`${l[0]}`;break;case 2:i+=`one of ${l[0]} or ${l[1]}`;break;default:{let e=l.pop();i+=`one of ${l.join(", ")}, or ${e}`}}if(null==n)i+=`. Received ${n}`;else if("function"==typeof n&&n.name)i+=`. Received function ${n.name}`;else if("object"==typeof n){var f;if(null!==(f=n.constructor)&&void 0!==f&&f.name)i+=`. Received an instance of ${n.constructor.name}`;else{i+=`. Received ${r(n,{depth:-1})}`}}else{let e=r(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),i+=`. Received type ${typeof n} (${e})`}return i}),TypeError),d("ERR_INVALID_ARG_VALUE",((e,t,n="is invalid")=>{let i=r(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${i}`}),TypeError),d("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${null!=n&&null!==(r=n.constructor)&&void 0!==r&&r.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),d("ERR_MISSING_ARGS",((...e)=>{u(e.length>0,"At least one arg needs to be specified");let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}}return`${t} must be specified`}),TypeError),d("ERR_OUT_OF_RANGE",((e,t,n)=>{let i;return u(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?i=f(String(n)):"bigint"==typeof n?(i=String(n),(n>2n**32n||n<-(2n**32n))&&(i=f(i)),i+="n"):i=r(n),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`}),RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:h,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new o([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:p,codes:l}})),Kt=K(((e,t)=>{Q(),Zt(),Ot();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:l,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:h,StringPrototypeTrim:m}=Ht(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:v,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:w,ERR_UNKNOWN_SIGNAL:k}}=Gt(),{normalizeEncoding:E}=Wt(),{isAsyncFunction:S,isArrayBufferView:x}=Wt().types,_={};var T=/^[0-7]+$/;var C=g(((e,t,n=l,r=c)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!a(e))throw new w(t,"an integer",e);if(er)throw new w(t,`>= ${n} && <= ${r}`,e)})),A=g(((e,t,n=-2147483648,r=2147483647)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!a(e))throw new w(t,"an integer",e);if(er)throw new w(t,`>= ${n} && <= ${r}`,e)})),O=g(((e,t,n=!1)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!a(e))throw new w(t,"an integer",e);let r=n?1:0,i=4294967295;if(ei)throw new w(t,`>= ${r} && <= ${i}`,e)}));function R(e,t){if("string"!=typeof e)throw new y(t,"string",e)}var P=g(((e,t,n)=>{if(!r(n,e)){let r="must be one of: "+i(o(n,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new b(t,e,r)}}));function I(e,t){if("boolean"!=typeof e)throw new y(t,"boolean",e)}function M(e,t,n){return null!=e&&f(e,t)?e[t]:n}var L=g(((e,t,r=null)=>{let i=M(r,"allowArray",!1),o=M(r,"allowFunction",!1);if(!M(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new y(t,"Object",e)})),N=g(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new y(t,"a dictionary",e)})),D=g(((e,t,r=0)=>{if(!n(e))throw new y(t,"Array",e);if(e.length{if(!x(e))throw new y(t,["Buffer","TypedArray","DataView"],e)}));var B=g(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new y(t,"AbortSignal",e)})),F=g(((e,t)=>{if("function"!=typeof e)throw new y(t,"Function",e)})),$=g(((e,t)=>{if("function"!=typeof e||S(e))throw new y(t,"Function",e)})),U=g(((e,t)=>{if(void 0!==e)throw new y(t,"undefined",e)}));var q=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Z(e,t){if(typeof e>"u"||!d(q,e))throw new b(t,e,'must be an array or string of format "; rel=preload; as=style"')}t.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if(typeof e>"u"&&(e=n),"string"==typeof e){if(null===d(T,e))throw new b(t,e,"must be a 32-bit unsigned integer or an octal string");e=u(e,8)}return O(e,t),e},validateArray:D,validateStringArray:function(e,t){D(e,t);for(let n=0;nr||(null!=n||null!=r)&&s(e))throw new w(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=r?" && ":""}${null!=r?`<= ${r}`:""}`,e)},validateObject:L,validateOneOf:P,validatePlainFunction:$,validatePort:function(e,t="Port",n=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===m(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new v(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(R(e,t),void 0===_[e])throw void 0!==_[h(e)]?new k(e+" (signals must use all capital letters)"):new k(e)},validateString:R,validateUint32:O,validateUndefined:U,validateUnion:function(e,t,n){if(!r(n,e))throw new y(t,`('${i(n,"|")}')`,e)},validateAbortSignal:B,validateLinkHeaderValue:function(e){if("string"==typeof e)return Z(e,"hints"),e;if(n(e)){let t=e.length,n="";if(0===t)return n;for(let r=0;r; rel=preload; as=style"')}}})),Yt=K(((e,t)=>{Q(),Zt(),Ot();var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch{try{return n.call(null,e,0)}catch{return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch{n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch{r=a}}();var c,l=[],u=!1,f=-1;function d(){!u||!c||(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f1)for(var n=1;n{Q(),Zt(),Ot();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:o}=Ht(),a=n("kDestroyed"),s=n("kIsErrored"),c=n("kIsReadable"),l=n("kIsDisturbed"),u=o("nodejs.webstream.isClosedPromise"),f=o("nodejs.webstream.controllerErrorFunction");function d(e,t=!1){var n;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function h(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function m(e){return!(!e||h(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function g(e){return!(!e||h(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function v(e){return!(!e||h(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function y(e){if(!h(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[a]||null!=r&&r.destroyed)}function b(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;let t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof t?.ended?null:t.ended)}function w(e,t){if(!d(e))return null;let n=e._readableState;return(null==n||!n.errored)&&("boolean"!=typeof n?.endEmitted?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function k(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof e?.readable?null:!y(e)&&(d(e)&&e.readable&&!w(e))}function E(e){return"boolean"!=typeof e?.writable?null:!y(e)&&(p(e)&&e.writable&&!b(e))}function S(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function x(e){return"boolean"==typeof e._sent100&&S(e)}t.exports={kDestroyed:a,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[l])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:l,isErrored:function(e){var t,n,r,i,o,a,c,l,u,f;return!(!e||!(null!==(t=null!==(n=null!==(r=null!==(i=null!==(o=null!==(a=e[s])&&void 0!==a?a:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(c=e._readableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==r?r:null===(l=e._writableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null!==(f=e._writableState)&&void 0!==f&&f.errored))},kIsErrored:s,isReadable:k,kIsReadable:c,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:function(e){if(!h(e))return null;if("boolean"==typeof e.closed)return e.closed;let t=e._writableState,n=e._readableState;return"boolean"==typeof t?.closed||"boolean"==typeof n?.closed?t?.closed||n?.closed:"boolean"==typeof e._closed&&S(e)?e._closed:null},isDestroyed:y,isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return h(e)?!!y(e)||!(!1!==t?.readable&&k(e)||!1!==t?.writable&&E(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[r]:!1===t?"function"==typeof e[i]:"function"==typeof e[r]||"function"==typeof e[i])},isReadableNodeStream:d,isReadableStream:m,isReadableEnded:function(e){if(!d(e))return null;if(!0===e.readableEnded)return!0;let t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof t?.ended?null:t.ended)},isReadableFinished:w,isReadableErrored:function(e){var t,n;return h(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:h,isWebStream:function(e){return m(e)||g(e)||v(e)},isWritable:E,isWritableNodeStream:p,isWritableStream:g,isWritableEnded:b,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;let n=e._writableState;return(null==n||!n.errored)&&("boolean"!=typeof n?.finished?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return h(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:x,willEmitClose:function(e){if(!h(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&x(e)||!!(r&&r.autoDestroy&&r.emitClose&&!1===r.closed)},isTransformStream:v}})),Qt=K(((e,t)=>{Q(),Zt(),Ot();var n=Yt(),{AbortError:r,codes:i}=Gt(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=i,{kEmptyObject:s,once:c}=Wt(),{validateAbortSignal:l,validateFunction:u,validateObject:f,validateBoolean:d}=Kt(),{Promise:p,PromisePrototypeThen:h}=Ht(),{isClosed:m,isReadable:g,isReadableNodeStream:v,isReadableStream:y,isReadableFinished:b,isReadableErrored:w,isWritable:k,isWritableNodeStream:E,isWritableStream:S,isWritableFinished:x,isWritableErrored:_,isNodeStream:T,willEmitClose:C,kIsClosedPromise:A}=Xt();function O(e){return e.setHeader&&"function"==typeof e.abort}var R=()=>{};function P(e,t,i){var d,p;if(2===arguments.length?(i=t,t=s):null==t?t=s:f(t,"options"),u(i,"callback"),l(t.signal,"options.signal"),i=c(i),y(e)||S(e))return I(e,t,i);if(!T(e))throw new o("stream",["ReadableStream","WritableStream","Stream"],e);let h=null!==(d=t.readable)&&void 0!==d?d:v(e),A=null!==(p=t.writable)&&void 0!==p?p:E(e),P=e._writableState,M=e._readableState,L=()=>{e.writable||j()},N=C(e)&&v(e)===h&&E(e)===A,D=x(e,!1),j=()=>{D=!0,e.destroyed&&(N=!1),(!N||e.readable&&!h)&&(!h||B)&&i.call(e)},B=b(e,!1),F=()=>{B=!0,e.destroyed&&(N=!1),(!N||e.writable&&!A)&&(!A||D)&&i.call(e)},$=t=>{i.call(e,t)},U=m(e),q=()=>{U=!0;let t=_(e)||w(e);return t&&"boolean"!=typeof t?i.call(e,t):h&&!B&&v(e,!0)&&!b(e,!1)?i.call(e,new a):!A||D||x(e,!1)?void i.call(e):i.call(e,new a)},Z=()=>{U=!0;let t=_(e)||w(e);if(t&&"boolean"!=typeof t)return i.call(e,t);i.call(e)},z=()=>{e.req.on("finish",j)};O(e)?(e.on("complete",j),N||e.on("abort",q),e.req?z():e.on("request",z)):A&&!P&&(e.on("end",L),e.on("close",L)),!N&&"boolean"==typeof e.aborted&&e.on("aborted",q),e.on("end",F),e.on("finish",j),!1!==t.error&&e.on("error",$),e.on("close",q),U?n.nextTick(q):null!=P&&P.errorEmitted||null!=M&&M.errorEmitted?N||n.nextTick(Z):(!h&&(!N||g(e))&&(D||!1===k(e))||!A&&(!N||k(e))&&(B||!1===g(e))||M&&e.req&&e.aborted)&&n.nextTick(Z);let H=()=>{i=R,e.removeListener("aborted",q),e.removeListener("complete",j),e.removeListener("abort",q),e.removeListener("request",z),e.req&&e.req.removeListener("finish",j),e.removeListener("end",L),e.removeListener("close",L),e.removeListener("finish",j),e.removeListener("end",F),e.removeListener("error",$),e.removeListener("close",q)};if(t.signal&&!U){let o=()=>{let n=i;H(),n.call(e,new r(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(o);else{let n=i;i=c(((...r)=>{t.signal.removeEventListener("abort",o),n.apply(e,r)})),t.signal.addEventListener("abort",o)}}return H}function I(e,t,i){let o=!1,a=R;if(t.signal)if(a=()=>{o=!0,i.call(e,new r(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(a);else{let n=i;i=c(((...r)=>{t.signal.removeEventListener("abort",a),n.apply(e,r)})),t.signal.addEventListener("abort",a)}let s=(...t)=>{o||n.nextTick((()=>i.apply(e,t)))};return h(e[A].promise,s,s),R}t.exports=P,t.exports.finished=function(e,t){var n;let r=!1;return null===t&&(t=s),null!==(n=t)&&void 0!==n&&n.cleanup&&(d(t.cleanup,"cleanup"),r=t.cleanup),new p(((n,i)=>{let o=P(e,t,(e=>{r&&o(),e?i(e):n()}))}))}})),Jt=K(((e,t)=>{Q(),Zt(),Ot();var n=Yt(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:o}=Gt(),{Symbol:a}=Ht(),{kDestroyed:s,isDestroyed:c,isFinished:l,isServerRequest:u}=Xt(),f=a("kDestroy"),d=a("kConstruct");function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function h(e,t,r){let i=!1;function o(t){if(i)return;i=!0;let o=e._readableState,a=e._writableState;p(t,a,o),a&&(a.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(m,e,t):n.nextTick(g,e)}try{e._destroy(t||null,o)}catch(e){o(e)}}function m(e,t){v(e,t),g(e)}function g(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=n&&n.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function v(e,t){let n=e._readableState,r=e._writableState;null!=r&&r.errorEmitted||null!=n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function y(e,t,r){let i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(v,e,t):v(e,t))}function b(e){let t=!1;function r(r){if(t)return void y(e,r??new i);t=!0;let o=e._readableState,a=e._writableState,s=a||o;o&&(o.constructed=!0),a&&(a.constructed=!0),s.destroyed?e.emit(f,r):r?y(e,r,!0):n.nextTick(w,e)}try{e._construct((e=>{n.nextTick(r,e)}))}catch(e){n.nextTick(r,e)}}function w(e){e.emit(d)}function k(e){return e?.setHeader&&"function"==typeof e.abort}function E(e){e.emit("close")}function S(e,t){e.emit("error",t),n.nextTick(E,e)}t.exports={construct:function(e,t){if("function"!=typeof e._construct)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(d,t),!(e.listenerCount(d)>1)&&n.nextTick(b,e)},destroyer:function(e,t){!e||c(e)||(!t&&!l(e)&&(t=new o),u(e)?(e.socket=null,e.destroy(t)):k(e)?e.abort():k(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(S,e,t):n.nextTick(E,e),e.destroyed||(e[s]=!0))},destroy:function(e,t){let n=this._readableState,i=this._writableState,o=i||n;return null!=i&&i.destroyed||null!=n&&n.destroyed?("function"==typeof t&&t(),this):(p(e,i,n),i&&(i.destroyed=!0),n&&(n.destroyed=!0),o.constructed?h(this,e,t):this.once(f,(function(n){h(this,r(n,e),t)})),this)},undestroy:function(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:y}}));function en(){en.init.call(this)}function tn(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function nn(e){return void 0===e._maxListeners?en.defaultMaxListeners:e._maxListeners}function rn(e,t,n,r){var i,o,a,s;if(tn(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=nn(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function on(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function an(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=on.bind(r);return i.listener=n,r.wrapFn=i,i}function sn(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n{Q(),Zt(),Ot(),dn="object"==typeof Reflect?Reflect:null,pn=dn&&"function"==typeof dn.apply?dn.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},fn=dn&&"function"==typeof dn.ownKeys?dn.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},hn=Number.isNaN||function(e){return e!=e},un=en,en.EventEmitter=en,en.prototype._events=void 0,en.prototype._eventsCount=0,en.prototype._maxListeners=void 0,mn=10,Object.defineProperty(en,"defaultMaxListeners",{enumerable:!0,get:function(){return mn},set:function(e){if("number"!=typeof e||e<0||hn(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");mn=e}}),en.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},en.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||hn(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},en.prototype.getMaxListeners=function(){return nn(this)},en.prototype.emit=function(e){for(var t=[],n=1;n0&&(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(void 0===s)return!1;if("function"==typeof s)pn(s,this,t);else{var c=s.length,l=ln(s,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},en.prototype.listeners=function(e){return sn(this,e,!0)},en.prototype.rawListeners=function(e){return sn(this,e,!1)},en.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):cn.call(e,t)},en.prototype.listenerCount=cn,en.prototype.eventNames=function(){return this._eventsCount>0?fn(this._events):[]},(gn=un).EventEmitter,gn.defaultMaxListeners,gn.init,gn.listenerCount,gn.EventEmitter,gn.defaultMaxListeners,gn.init,gn.listenerCount})),yn={};Y(yn,{EventEmitter:()=>bn,default:()=>gn,defaultMaxListeners:()=>wn,init:()=>kn,listenerCount:()=>En,on:()=>Sn,once:()=>xn});var bn,wn,kn,En,Sn,xn,_n=G((()=>{Q(),Zt(),Ot(),vn(),vn(),gn.once=function(e,t){return new Promise(((n,r)=>{function i(...t){void 0!==o&&e.removeListener("error",o),n(t)}let o;"error"!==t&&(o=t=>{e.removeListener(name,i),r(t)},e.once("error",o)),e.once(t,i)}))},gn.on=function(e,t){let n=[],r=[],i=null,o=!1,a={async next(){let e=n.shift();if(e)return createIterResult(e,!1);if(i){let e=Promise.reject(i);return i=null,e}return o?createIterResult(void 0,!0):new Promise(((e,t)=>r.push({resolve:e,reject:t})))},async return(){e.removeListener(t,s),e.removeListener("error",c),o=!0;for(let e of r)e.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(n){i=n,e.removeListener(t,s),e.removeListener("error",c)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",c),a;function s(...e){let t=r.shift();t?t.resolve(createIterResult(e,!1)):n.push(e)}function c(e){o=!0;let t=r.shift();t?t.reject(e):i=e,a.return()}},({EventEmitter:bn,defaultMaxListeners:wn,init:kn,listenerCount:En,on:Sn,once:xn}=gn)})),Tn=K(((e,t)=>{Q(),Zt(),Ot();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=Ht(),{EventEmitter:i}=(_n(),X(yn));function o(e){i.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}r(o.prototype,i.prototype),r(o,i),o.prototype.pipe=function(e,t){let n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),!e._isStdio&&(!t||!1!==t.end)&&(n.on("end",c),n.on("close",l));let s=!1;function c(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){f(),0===i.listenerCount(this,"error")&&this.emit("error",e)}function f(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",c),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",f),n.removeListener("close",f),e.removeListener("close",f)}return a(n,"error",u),a(e,"error",u),n.on("end",f),n.on("close",f),e.on("close",f),e.emit("pipe",n),e},t.exports={Stream:o,prependListener:a}})),Cn=K(((e,t)=>{Q(),Zt(),Ot();var{AbortError:n,codes:r}=Gt(),{isNodeStream:i,isWebStream:o,kControllerErrorFunction:a}=Xt(),s=Qt(),{ERR_INVALID_ARG_TYPE:c}=r;t.exports.addAbortSignal=function(e,n){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new c(t,"AbortSignal",e)})(e,"signal"),!i(n)&&!o(n))throw new c("stream",["ReadableStream","WritableStream","Stream"],n);return t.exports.addAbortSignalNoValidate(e,n)},t.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;let r=i(t)?()=>{t.destroy(new n(void 0,{cause:e.reason}))}:()=>{t[a](new n(void 0,{cause:e.reason}))};return e.aborted?r():(e.addEventListener("abort",r),s(t,(()=>e.removeEventListener("abort",r)))),t}})),An=K(((e,t)=>{Q(),Zt(),Ot();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:o}=Ht(),{Buffer:a}=(qt(),X(Rt)),{inspect:s}=Wt();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;let e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return a.alloc(0);let t=a.allocUnsafe(e>>>0),n=this.head,r=0;for(;n;)i(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){let n=this.head.data;if(eo.length)){e===o.length?(t+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(o,0,e),this.head=r,r.data=n(o,e));break}t+=o,e-=o.length,++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){let t=a.allocUnsafe(e),n=e,r=this.head,s=0;do{let a=r.data;if(!(e>a.length)){e===a.length?(i(t,a,n-e),++s,r.next?this.head=r.next:this.head=this.tail=null):(i(t,new o(a.buffer,a.byteOffset,e),n-e),this.head=r,r.data=a.slice(e));break}i(t,a,n-e),e-=a.length,++s}while(null!==(r=r.next));return this.length-=s,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return s(this,{...t,depth:0,customInspect:!1})}}})),On=K(((e,t)=>{Q(),Zt(),Ot();var{MathFloor:n,NumberIsInteger:r}=Ht(),{ERR_INVALID_ARG_VALUE:i}=Gt().codes;function o(e){return e?16:16384}t.exports={getHighWaterMark:function(e,t,a,s){let c=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,s,a);if(null!=c){if(!r(c)||c<0){throw new i(s?`options.${a}`:"options.highWaterMark",c)}return n(c)}return o(e.objectMode)},getDefaultHighWaterMark:o}}));function Rn(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-1===n&&(n=t),[n,n===t?0:4-n%4]}function Pn(e,t,n){for(var r,i,o=[],a=t;a>18&63]+xr[i>>12&63]+xr[i>>6&63]+xr[63&i]);return o.join("")}function In(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Mn.prototype),t}function Mn(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return Dn(e)}return Ln(e,t,n)}function Ln(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Mn.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|Fn(e,t),r=In(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return jn(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ur(e,ArrayBuffer)||e&&ur(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ur(e,SharedArrayBuffer)||e&&ur(e.buffer,SharedArrayBuffer)))return function(e,t,n){if(t<0||e.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function Fn(e,t){if(Mn.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ur(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)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&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return sr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return cr(e).length;default:if(i)return r?-1:sr(e).length;t=(""+t).toLowerCase(),i=!0}}function $n(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return er(this,t,n);case"utf8":case"utf-8":return Xn(this,t,n);case"ascii":return Qn(this,t,n);case"latin1":case"binary":return Jn(this,t,n);case"base64":return Yn(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tr(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Un(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function qn(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),fr(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("string"==typeof t&&(t=Mn.from(t,r)),Mn.isBuffer(t))return 0===t.length?-1:Zn(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Zn(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Zn(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Yn(e,t,n){return 0===t&&n===e.length?Ir.fromByteArray(e):Ir.fromByteArray(e.slice(t,n))}function Xn(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function rr(e,t,n,r,i,o){if(!Mn.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function ir(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 or(e,t,n,r,i){return t=+t,n>>>=0,i||ir(e,0,n,4),Mr.write(e,t,n,r,23,4),n+4}function ar(e,t,n,r,i){return t=+t,n>>>=0,i||ir(e,0,n,8),Mr.write(e,t,n,r,52,8),n+8}function sr(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a55295&&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 cr(e){return Ir.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Nr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function lr(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ur(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function fr(e){return e!=e}function dr(e,t){for(var n in e)t[n]=e[n]}function pr(e,t,n){return Fr(e,t,n)}function hr(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(Ur.isEncoding===qr||!qr(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=vr,this.end=yr,t=4;break;case"utf8":this.fillLast=gr,t=4;break;case"base64":this.text=br,this.end=wr,t=3;break;default:return this.write=kr,void(this.end=Er)}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ur.allocUnsafe(t)}function mr(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function gr(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?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),void(this.lastNeed-=e.length))}function vr(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 yr(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 br(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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 wr(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function kr(e){return e.toString(this.encoding)}function Er(e){return e&&e.length?this.write(e):""}var Sr,xr,_r,Tr,Cr,Ar,Or,Rr,Pr,Ir,Mr,Lr,Nr,Dr,jr,Br,Fr,$r,Ur,qr,Zr=G((()=>{for(Q(),Zt(),Ot(),Sr={byteLength:function(e){var t=Rn(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=Rn(e),i=r[0],o=r[1],a=new Tr(function(e,t,n){return 3*(t+n)/4-n}(0,i,o)),s=0,c=o>0?i-4:i;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===o&&(t=_r[e.charCodeAt(n)]<<2|_r[e.charCodeAt(n+1)]>>4,a[s++]=255&t),1===o&&(t=_r[e.charCodeAt(n)]<<10|_r[e.charCodeAt(n+1)]<<4|_r[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;oa?a:o+16383));return 1===r?(t=e[n-1],i.push(xr[t>>2]+xr[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(xr[t>>10]+xr[t>>4&63]+xr[t<<2&63]+"=")),i.join("")}},xr=[],_r=[],Tr=typeof Uint8Array<"u"?Uint8Array:Array,Ar=0,Or=(Cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").length;Ar>1,u=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},write:function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&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*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*m}},Pr={},Ir=Sr,Mr=Rr,Lr="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null,Pr.Buffer=Mn,Pr.SlowBuffer=function(e){return+e!=e&&(e=0),Mn.alloc(+e)},Pr.INSPECT_MAX_BYTES=50,Pr.kMaxLength=2147483647,Mn.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),42===e.foo()}catch{return!1}}(),Mn.TYPED_ARRAY_SUPPORT||typeof console>"u"||"function"!=typeof console.error||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(Mn.prototype,"parent",{enumerable:!0,get:function(){if(Mn.isBuffer(this))return this.buffer}}),Object.defineProperty(Mn.prototype,"offset",{enumerable:!0,get:function(){if(Mn.isBuffer(this))return this.byteOffset}}),Mn.poolSize=8192,Mn.from=function(e,t,n){return Ln(e,t,n)},Object.setPrototypeOf(Mn.prototype,Uint8Array.prototype),Object.setPrototypeOf(Mn,Uint8Array),Mn.alloc=function(e,t,n){return i=t,o=n,Nn(r=e),r<=0?In(r):void 0!==i?"string"==typeof o?In(r).fill(i,o):In(r).fill(i):In(r);var r,i,o},Mn.allocUnsafe=function(e){return Dn(e)},Mn.allocUnsafeSlow=function(e){return Dn(e)},Mn.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Mn.prototype},Mn.compare=function(e,t){if(ur(e,Uint8Array)&&(e=Mn.from(e,e.offset,e.byteLength)),ur(t,Uint8Array)&&(t=Mn.from(t,t.offset,t.byteLength)),!Mn.isBuffer(e)||!Mn.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);it&&(e+=" ... "),""},Lr&&(Mn.prototype[Lr]=Mn.prototype.inspect),Mn.prototype.compare=function(e,t,n,r,i){if(ur(e,Uint8Array)&&(e=Mn.from(e,e.offset,e.byteLength)),!Mn.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(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),c=this.slice(r,i),l=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||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 zn(this,e,t,n);case"utf8":case"utf-8":return Hn(this,e,t,n);case"ascii":return Wn(this,e,t,n);case"latin1":case"binary":return Vn(this,e,t,n);case"base64":return Gn(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kn(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Mn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Mn.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||nr(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||nr(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},Mn.prototype.readUInt8=function(e,t){return e>>>=0,t||nr(e,1,this.length),this[e]},Mn.prototype.readUInt16LE=function(e,t){return e>>>=0,t||nr(e,2,this.length),this[e]|this[e+1]<<8},Mn.prototype.readUInt16BE=function(e,t){return e>>>=0,t||nr(e,2,this.length),this[e]<<8|this[e+1]},Mn.prototype.readUInt32LE=function(e,t){return e>>>=0,t||nr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Mn.prototype.readUInt32BE=function(e,t){return e>>>=0,t||nr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Mn.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||nr(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},Mn.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||nr(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},Mn.prototype.readInt8=function(e,t){return e>>>=0,t||nr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Mn.prototype.readInt16LE=function(e,t){e>>>=0,t||nr(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Mn.prototype.readInt16BE=function(e,t){e>>>=0,t||nr(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Mn.prototype.readInt32LE=function(e,t){return e>>>=0,t||nr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Mn.prototype.readInt32BE=function(e,t){return e>>>=0,t||nr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Mn.prototype.readFloatLE=function(e,t){return e>>>=0,t||nr(e,4,this.length),Mr.read(this,e,!0,23,4)},Mn.prototype.readFloatBE=function(e,t){return e>>>=0,t||nr(e,4,this.length),Mr.read(this,e,!1,23,4)},Mn.prototype.readDoubleLE=function(e,t){return e>>>=0,t||nr(e,8,this.length),Mr.read(this,e,!0,52,8)},Mn.prototype.readDoubleBE=function(e,t){return e>>>=0,t||nr(e,8,this.length),Mr.read(this,e,!1,52,8)},Mn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||rr(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||rr(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},Mn.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||rr(this,e,t,1,255,0),this[t]=255&e,t+1},Mn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||rr(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Mn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||rr(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Mn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||rr(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},Mn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||rr(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},Mn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);rr(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},Mn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);rr(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&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Mn.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||rr(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Mn.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||rr(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Mn.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||rr(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Mn.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||rr(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},Mn.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||rr(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},Mn.prototype.writeFloatLE=function(e,t,n){return or(this,e,t,!0,n)},Mn.prototype.writeFloatBE=function(e,t,n){return or(this,e,t,!1,n)},Mn.prototype.writeDoubleLE=function(e,t,n){return ar(this,e,t,!0,n)},Mn.prototype.writeDoubleBE=function(e,t,n){return ar(this,e,t,!1,n)},Mn.prototype.copy=function(e,t,n,r){if(!Mn.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=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=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},Mn.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Mn.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):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)},hr.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},$r.StringDecoder,$r.StringDecoder})),zr={};Y(zr,{StringDecoder:()=>Hr,default:()=>$r});var Hr,Wr=G((()=>{Q(),Zt(),Ot(),Zr(),Zr(),Hr=$r.StringDecoder})),Vr=K(((e,t)=>{Q(),Zt(),Ot();var n=Yt(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:o}=Ht(),{Buffer:a}=(qt(),X(Rt)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:c}=Gt().codes;t.exports=function(e,t,l){let u,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...l,read(){this.push(t),this.push(null)}});if(t&&t[i])f=!0,u=t[i]();else{if(!t||!t[o])throw new s("iterable",["Iterable"],t);f=!1,u=t[o]()}let d=new e({objectMode:!0,highWaterMark:1,...l}),p=!1;return d._read=function(){p||(p=!0,async function(){for(;;){try{let{value:e,done:t}=f?await u.next():u.next();if(t)d.push(null);else{let t=e&&"function"==typeof e.then?await e:e;if(null===t)throw p=!1,new c;if(d.push(t))continue;p=!1}}catch(e){d.destroy(e)}break}}())},d._destroy=function(e,t){r(async function(e){let t=null!=e,n="function"==typeof u.throw;if(t&&n){let{value:t,done:n}=await u.throw(e);if(await t,n)return}if("function"==typeof u.return){let{value:e}=await u.return();await e}}(e),(()=>n.nextTick(t,e)),(r=>n.nextTick(t,r||e)))},d}})),Gr=K(((e,t)=>{Q(),Zt(),Ot();var n=Yt(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:c,ObjectSetPrototypeOf:l,Promise:u,SafeSet:f,SymbolAsyncIterator:d,Symbol:p}=Ht();t.exports=B,B.ReadableState=j;var{EventEmitter:h}=(_n(),X(yn)),{Stream:m,prependListener:g}=Tn(),{Buffer:v}=(qt(),X(Rt)),{addAbortSignal:y}=Cn(),b=Qt(),w=Wt().debuglog("stream",(e=>{w=e})),k=An(),E=Jt(),{getHighWaterMark:S,getDefaultHighWaterMark:x}=On(),{aggregateTwoErrors:_,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:C,ERR_OUT_OF_RANGE:A,ERR_STREAM_PUSH_AFTER_EOF:O,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R}}=Gt(),{validateObject:P}=Kt(),I=p("kPaused"),{StringDecoder:M}=(Wr(),X(zr)),L=Vr();l(B.prototype,m.prototype),l(B,m);var N=()=>{},{errorOrDestroy:D}=E;function j(e,t,n){"boolean"!=typeof n&&(n=t instanceof Xr()),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.readableObjectMode)),this.highWaterMark=e?S(this,e,"readableHighWaterMark",n):x(!1),this.buffer=new k,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[I]=null,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new M(e.encoding),this.encoding=e.encoding)}function B(e){if(!(this instanceof B))return new B(e);let t=this instanceof Xr();this._readableState=new j(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&y(e.signal,this)),m.call(this,e),E.construct(this,(()=>{this._readableState.needReadable&&H(this,this._readableState)}))}function F(e,t,n,r){w("readableAddChunk",t);let i,o=e._readableState;if(o.objectMode||("string"==typeof t?(n=n||o.defaultEncoding,o.encoding!==n&&(r&&o.encoding?t=v.from(t,n).toString(o.encoding):(t=v.from(t,n),n=""))):t instanceof v?n="":m._isUint8Array(t)?(t=m._uint8ArrayToBuffer(t),n=""):null!=t&&(i=new T("chunk",["string","Buffer","Uint8Array"],t))),i)D(e,i);else if(null===t)o.reading=!1,function(e,t){if(w("onEofChunk"),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?Z(e):(t.needReadable=!1,t.emittedReadable=!0,z(e))}}(e,o);else if(o.objectMode||t&&t.length>0)if(r)if(o.endEmitted)D(e,new R);else{if(o.destroyed||o.errored)return!1;$(e,o,t,!0)}else if(o.ended)D(e,new O);else{if(o.destroyed||o.errored)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?$(e,o,t,!1):H(e,o)):$(e,o,t,!1)}else r||(o.reading=!1,H(e,o));return!o.ended&&(o.length0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Z(e)),H(e,t)}B.prototype.destroy=E.destroy,B.prototype._undestroy=E.undestroy,B.prototype._destroy=function(e,t){t(e)},B.prototype[h.captureRejectionSymbol]=function(e){this.destroy(e)},B.prototype.push=function(e,t){return F(this,e,t,!1)},B.prototype.unshift=function(e,t){return F(this,e,t,!0)},B.prototype.isPaused=function(){let e=this._readableState;return!0===e[I]||!1===e.flowing},B.prototype.setEncoding=function(e){let t=new M(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r="";for(let e of n)r+=t.write(e);return n.clear(),""!==r&&n.push(r),this._readableState.length=r.length,this};var U;function q(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:o(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function Z(e){let t=e._readableState;w("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(z,e))}function z(e){let t=e._readableState;w("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Y(e)}function H(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(W,e,t))}function W(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!1===t[I]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function G(e){w("readable nexttick read 0"),e.read(0)}function K(e,t){w("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Y(e),t.flowing&&!t.reading&&e.read(0)}function Y(e){let t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function J(e,t){"function"!=typeof e.read&&(e=B.wrap(e,{objectMode:!0}));let n=async function*(e,t){let n=N;function r(t){this===e?(n(),n=N):n=t}e.on("readable",r);let i,o=b(e,{writable:!1},(e=>{i=e?_(i,e):null,n(),n=N}));try{for(;;){let t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(i)throw i;if(null===i)return;await new u(r)}}}catch(e){throw i=_(i,e),i}finally{!i&&!1===t?.destroyOnReturn||void 0!==i&&!e._readableState.autoDestroy?(e.off("readable",r),o()):E.destroyer(e,null)}}(e,t);return n.stream=e,n}function ee(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function te(e){let t=e._readableState;w("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(ne,t,e))}function ne(e,t){if(w("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)n.nextTick(re,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function re(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}function ie(){return void 0===U&&(U={}),U}B.prototype.read=function(e){w("read",e),void 0===e?e=NaN:i(e)||(e=a(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new A("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return w("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?te(this):Z(this),null;if(0===(e=q(e,t))&&t.ended)return 0===t.length&&te(this),null;let r,o=t.needReadable;if(w("need readable",o),(0===t.length||t.length-e0?ee(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&te(this)),null!==r&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit("data",r)),r},B.prototype._read=function(e){throw new C("_read()")},B.prototype.pipe=function(e,t){let r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new f(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),w("pipe count=%d opts=%j",i.pipes.length,t);let o=t&&!1===t.end||e===n.stdout||e===n.stderr?v:s;function a(t,n){w("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,w("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),c&&e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",v),r.removeListener("data",d),l=!0,c&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&c())}function s(){w("onend"),e.end()}i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",a);let c,l=!1;function u(){l||(1===i.pipes.length&&i.pipes[0]===e?(w("false write response, pause",0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(w("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),r.pause()),c||(c=function(e,t){return function(){let n=e._readableState;n.awaitDrainWriters===t?(w("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(w("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),(!n.awaitDrainWriters||0===n.awaitDrainWriters.size)&&e.listenerCount("data")&&e.resume()}}(r,e),e.on("drain",c))}function d(t){w("ondata");let n=e.write(t);w("dest.write",n),!1===n&&u()}function p(t){if(w("onerror",t),v(),e.removeListener("error",p),0===e.listenerCount("error")){let n=e._writableState||e._readableState;n&&!n.errorEmitted?D(e,t):e.emit("error",t)}}function h(){e.removeListener("finish",m),v()}function m(){w("onfinish"),e.removeListener("close",h),v()}function v(){w("unpipe"),r.unpipe(e)}return r.on("data",d),g(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",r),!0===e.writableNeedDrain?i.flowing&&u():i.flowing||(w("pipe resume"),r.resume()),e},B.prototype.unpipe=function(e){let t=this._readableState;if(0===t.pipes.length)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t0,!1!==i.flowing&&this.resume()):"readable"===e&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,w("on readable",i.length,i.reading),i.length?Z(this):i.reading||n.nextTick(G,this)),r},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(e,t){let r=m.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(V,this),r},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(e){let t=m.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(V,this),t},B.prototype.resume=function(){let e=this._readableState;return e.flowing||(w("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(K,e,t))}(this,e)),e[I]=!1,this},B.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[I]=!0,this},B.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{D(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=c(e);for(let t=1;t{Q(),Zt(),Ot();var n=Yt(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:l,Symbol:u,SymbolHasInstance:f}=Ht();t.exports=M,M.WritableState=P;var{EventEmitter:d}=(_n(),X(yn)),p=Tn().Stream,{Buffer:h}=(qt(),X(Rt)),m=Jt(),{addAbortSignal:g}=Cn(),{getHighWaterMark:v,getDefaultHighWaterMark:y}=On(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:S,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:_,ERR_STREAM_WRITE_AFTER_END:T,ERR_UNKNOWN_ENCODING:C}=Gt().codes,{errorOrDestroy:A}=m;function O(){}c(M.prototype,p.prototype),c(M,p);var R=u("kOnFinished");function P(e,t,n){"boolean"!=typeof n&&(n=t instanceof Xr()),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?v(this,e,"writableHighWaterMark",n):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!(!e||!1!==e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=j.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,I(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[R]=[]}function I(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function M(e){let t=this instanceof Xr();if(!t&&!o(M,this))return new M(e);this._writableState=new P(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&g(e.signal,this)),p.call(this,e),m.construct(this,(()=>{let e=this._writableState;e.writing||U(this,e),z(this,e)}))}function L(e,t,r,i){let o,a=e._writableState;if("function"==typeof r)i=r,r=a.defaultEncoding;else{if(r){if("buffer"!==r&&!h.isEncoding(r))throw new C(r)}else r=a.defaultEncoding;"function"!=typeof i&&(i=O)}if(null===t)throw new _;if(!a.objectMode)if("string"==typeof t)!1!==a.decodeStrings&&(t=h.from(t,r),r="buffer");else if(t instanceof h)r="buffer";else{if(!p._isUint8Array(t))throw new b("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),r="buffer"}return a.ending?o=new T:a.destroyed&&(o=new S("write")),o?(n.nextTick(i,o),A(e,o,!0),o):(a.pendingcb++,function(e,t,n,r,i){let o=t.objectMode?1:n.length;t.length+=o;let a=t.lengthr.bufferedIndex&&U(e,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},n.nextTick(B,r.afterWriteTickInfo)):F(e,r,1,o))):A(e,new k)}function B({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,F(e,t,n,r)}function F(e,t,n,r){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,r();t.destroyed&&$(t),z(e,t)}function $(e){if(e.writing)return;for(let n=e.bufferedIndex;n1&&e._writev){t.pendingcb-=a-1;let i=t.allNoop?O:e=>{for(let t=s;t256?(n.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}function q(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function Z(e,t){!t.prefinished&&!t.finalCalled&&("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let r=!1;function i(i){if(r)A(e,i??k());else if(r=!0,t.pendingcb--,i){let n=t[R].splice(0);for(let e=0;e{q(t)?H(e,t):t.pendingcb--}),e,t)):q(t)&&(t.pendingcb++,H(e,t))))}function H(e,t){t.pendingcb--,t.finished=!0;let n=t[R].splice(0);for(let e=0;e{Q(),Zt(),Ot();var n=Yt(),r=(qt(),X(Rt)),{isReadable:i,isWritable:o,isIterable:a,isNodeStream:s,isReadableNodeStream:c,isWritableNodeStream:l,isDuplexNodeStream:u}=Xt(),f=Qt(),{AbortError:d,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:h}}=Gt(),{destroyer:m}=Jt(),g=Xr(),v=Gr(),{createDeferredPromise:y}=Wt(),b=Vr(),w=globalThis.Blob||r.Blob,k=typeof w<"u"?function(e){return e instanceof w}:function(e){return!1},E=globalThis.AbortController||Vt().AbortController,{FunctionPrototypeCall:S}=Ht(),x=class extends g{constructor(e){super(e),!1===e?.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e?.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};function _(e){let t,n,r,a,s,c=e.readable&&"function"!=typeof e.readable.read?v.wrap(e.readable):e.readable,l=e.writable,u=!!i(c),p=!!o(l);function h(e){let t=a;a=null,t?t(e):e&&s.destroy(e)}return s=new x({readableObjectMode:!(null==c||!c.readableObjectMode),writableObjectMode:!(null==l||!l.writableObjectMode),readable:u,writable:p}),p&&(f(l,(e=>{p=!1,e&&m(c,e),h(e)})),s._write=function(e,n,r){l.write(e,n)?r():t=r},s._final=function(e){l.end(),n=e},l.on("drain",(function(){if(t){let e=t;t=null,e()}})),l.on("finish",(function(){if(n){let e=n;n=null,e()}}))),u&&(f(c,(e=>{u=!1,e&&m(c,e),h(e)})),c.on("readable",(function(){if(r){let e=r;r=null,e()}})),c.on("end",(function(){s.push(null)})),s._read=function(){for(;;){let e=c.read();if(null===e)return void(r=s._read);if(!s.push(e))return}}),s._destroy=function(e,i){!e&&null!==a&&(e=new d),r=null,t=null,n=null,null===a?i(e):(a=i,m(l,e),m(c,e))},s}t.exports=function e(t,r){if(u(t))return t;if(c(t))return _({readable:t});if(l(t))return _({writable:t});if(s(t))return _({writable:!1,readable:!1});if("function"==typeof t){let{value:e,write:i,final:o,destroy:s}=function(e){let{promise:t,resolve:r}=y(),i=new E,o=i.signal;return{value:e(async function*(){for(;;){let e=t;t=null;let{chunk:i,done:a,cb:s}=await e;if(n.nextTick(s),a)return;if(o.aborted)throw new d(void 0,{cause:o.reason});({promise:t,resolve:r}=y()),yield i}}(),{signal:o}),write(e,t,n){let i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){let t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}(t);if(a(e))return b(x,e,{objectMode:!0,write:i,final:o,destroy:s});let c=e?.then;if("function"==typeof c){let t,r=S(c,e,(e=>{if(null!=e)throw new h("nully","body",e)}),(e=>{m(t,e)}));return t=new x({objectMode:!0,readable:!1,write:i,final(e){o((async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}}))},destroy:s})}throw new h("Iterable, AsyncIterable or AsyncFunction",r,e)}if(k(t))return e(t.arrayBuffer());if(a(t))return b(x,t,{objectMode:!0,writable:!1});if("object"==typeof t?.writable||"object"==typeof t?.readable){return _({readable:null!=t&&t.readable?c(t?.readable)?t?.readable:e(t.readable):void 0,writable:null!=t&&t.writable?l(t?.writable)?t?.writable:e(t.writable):void 0})}let i=t?.then;if("function"==typeof i){let e;return S(i,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{m(e,t)})),e=new x({objectMode:!0,writable:!1,read(){}})}throw new p(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}})),Xr=K(((e,t)=>{Q(),Zt(),Ot();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:o}=Ht();t.exports=u;var a,s,c=Gr(),l=Kr();o(u.prototype,c.prototype),o(u,c);{let e=i(l.prototype);for(let t=0;t{Q(),Zt(),Ot();var{ObjectSetPrototypeOf:n,Symbol:r}=Ht();t.exports=c;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Gt().codes,o=Xr(),{getHighWaterMark:a}=On();n(c.prototype,o.prototype),n(c,o);var s=r("kCallback");function c(e){if(!(this instanceof c))return new c(e);let t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),o.call(this,e),this._readableState.sync=!1,this[s]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function l(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function u(){this._final!==l&&l.call(this)}c.prototype._final=l,c.prototype._transform=function(e,t,n){throw new i("_transform()")},c.prototype._write=function(e,t,n){let r=this._readableState,i=this._writableState,o=r.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),i.ended||o===r.length||r.length{Q(),Zt(),Ot();var{ObjectSetPrototypeOf:n}=Ht();t.exports=i;var r=Qr();function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(i.prototype,r.prototype),n(i,r),i.prototype._transform=function(e,t,n){n(null,e)}})),ei=K(((e,t)=>{Q(),Zt(),Ot();var n,r,i=Yt(),{ArrayIsArray:o,Promise:a,SymbolAsyncIterator:s}=Ht(),c=Qt(),{once:l}=Wt(),u=Jt(),f=Xr(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:y}=Gt(),{validateFunction:b,validateAbortSignal:w}=Kt(),{isIterable:k,isReadable:E,isReadableNodeStream:S,isNodeStream:x,isTransformStream:_,isWebStream:T,isReadableStream:C,isReadableEnded:A}=Xt(),O=globalThis.AbortController||Vt().AbortController;function R(e,t,n){let r=!1;return e.on("close",(()=>{r=!0})),{destroy:t=>{r||(r=!0,u.destroyer(e,t||new g("pipe")))},cleanup:c(e,{readable:t,writable:n},(e=>{r=!e}))}}function P(e){if(k(e))return e;if(S(e))return async function*(e){r||(r=Gr()),yield*r.prototype[s].call(e)}(e);throw new p("val",["Readable","Iterable","AsyncIterable"],e)}async function I(e,t,n,{end:r}){let i,o=null,s=e=>{if(e&&(i=e),o){let e=o;o=null,e()}},l=()=>new a(((e,t)=>{i?t(i):o=()=>{i?t(i):e()}}));t.on("drain",s);let u=c(t,{readable:!1},s);try{t.writableNeedDrain&&await l();for await(let n of e)t.write(n)||await l();r&&t.end(),await l(),n()}catch(e){n(i!==e?d(i,e):e)}finally{u(),t.off("drain",s)}}async function M(e,t,n,{end:r}){_(t)&&(t=t.writable);let i=t.getWriter();try{for await(let t of e)await i.ready,i.write(t).catch((()=>{}));await i.ready,r&&await i.close(),n()}catch(e){try{await i.abort(e),n(e)}catch(e){n(e)}}}function L(e,t,r){if(1===e.length&&o(e[0])&&(e=e[0]),e.length<2)throw new m("streams");let a=new O,s=a.signal,c=r?.signal,l=[];function u(){D(new y)}w(c,"options.signal"),c?.addEventListener("abort",u);let d,g,v,b=[],A=0;function L(e){D(e,0==--A)}function D(e,n){if(e&&(!d||"ERR_STREAM_PREMATURE_CLOSE"===d.code)&&(d=e),d||n){for(;b.length;)b.shift()(d);c?.removeEventListener("abort",u),a.abort(),n&&(d||l.forEach((e=>e())),i.nextTick(t,d,g))}}for(let t=0;t0,u=a||!1!==r?.end,d=t===e.length-1;if(x(o)){let e=function(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&L(e)};if(u){let{destroy:e,cleanup:t}=R(o,a,c);b.push(e),E(o)&&d&&l.push(t)}o.on("error",e),E(o)&&d&&l.push((()=>{o.removeListener("error",e)}))}if(0===t)if("function"==typeof o){if(v=o({signal:s}),!k(v))throw new h("Iterable, AsyncIterable or Stream","source",v)}else v=k(o)||S(o)||_(o)?o:f.from(o);else if("function"==typeof o){var j;if(_(v))v=P(null===(j=v)||void 0===j?void 0:j.readable);else v=P(v);if(v=o(v,{signal:s}),a){if(!k(v,!0))throw new h("AsyncIterable",`transform[${t-1}]`,v)}else{var B;n||(n=Jr());let e=new n({objectMode:!0}),t=null===(B=v)||void 0===B?void 0:B.then;if("function"==typeof t)A++,t.call(v,(t=>{g=t,null!=t&&e.write(t),u&&e.end(),i.nextTick(L)}),(t=>{e.destroy(t),i.nextTick(L,t)}));else if(k(v,!0))A++,I(v,e,L,{end:u});else{if(!C(v)&&!_(v))throw new h("AsyncIterable or Promise","destination",v);{let t=v.readable||v;A++,I(t,e,L,{end:u})}}v=e;let{destroy:r,cleanup:o}=R(v,!1,!0);b.push(r),d&&l.push(o)}}else if(x(o)){if(S(v)){A+=2;let e=N(v,o,L,{end:u});E(o)&&d&&l.push(e)}else if(_(v)||C(v)){let e=v.readable||v;A++,I(e,o,L,{end:u})}else{if(!k(v))throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],v);A++,I(v,o,L,{end:u})}v=o}else if(T(o)){if(S(v))A++,M(P(v),o,L,{end:u});else if(C(v)||k(v))A++,M(v,o,L,{end:u});else{if(!_(v))throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],v);A++,M(v.readable,o,L,{end:u})}v=o}else v=f.from(o)}return(null!=s&&s.aborted||null!=c&&c.aborted)&&i.nextTick(u),v}function N(e,t,n,{end:r}){let o=!1;if(t.on("close",(()=>{o||n(new v)})),e.pipe(t,{end:!1}),r){let n=function(){o=!0,t.end()};A(e)?i.nextTick(n):e.once("end",n)}else n();return c(e,{readable:!0,writable:!1},(t=>{let r=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once("end",n).once("error",n):n(t)})),c(t,{readable:!1,writable:!0},n)}t.exports={pipelineImpl:L,pipeline:function(...e){return L(e,l(function(e){return b(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}})),ti=K(((e,t)=>{Q(),Zt(),Ot();var{pipeline:n}=ei(),r=Xr(),{destroyer:i}=Jt(),{isNodeStream:o,isReadable:a,isWritable:s,isWebStream:c,isTransformStream:l,isWritableStream:u,isReadableStream:f}=Xt(),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:h}}=Gt(),m=Qt();t.exports=function(...e){if(0===e.length)throw new h("streams");if(1===e.length)return r.from(e[0]);let t,g,v,y,b,w=[...e];if("function"==typeof e[0]&&(e[0]=r.from(e[0])),"function"==typeof e[e.length-1]){let t=e.length-1;e[t]=r.from(e[t])}for(let t=0;t0&&!(s(e[t])||u(e[t])||l(e[t])))throw new p(`streams[${t}]`,w[t],"must be writable")}let k=e[0],E=n(e,(function(e){let t=y;y=null,t?t(e):e?b.destroy(e):!x&&!S&&b.destroy()})),S=!!(s(k)||u(k)||l(k)),x=!!(a(E)||f(E)||l(E));if(b=new r({writableObjectMode:!(null==k||!k.writableObjectMode),readableObjectMode:!(null==E||!E.writableObjectMode),writable:S,readable:x}),S){if(o(k))b._write=function(e,n,r){k.write(e,n)?r():t=r},b._final=function(e){k.end(),g=e},k.on("drain",(function(){if(t){let e=t;t=null,e()}}));else if(c(k)){let e=(l(k)?k.writable:k).getWriter();b._write=async function(t,n,r){try{await e.ready,e.write(t).catch((()=>{})),r()}catch(e){r(e)}},b._final=async function(t){try{await e.ready,e.close().catch((()=>{})),g=t}catch(e){t(e)}}}let e=l(E)?E.readable:E;m(e,(()=>{if(g){let e=g;g=null,e()}}))}if(x)if(o(E))E.on("readable",(function(){if(v){let e=v;v=null,e()}})),E.on("end",(function(){b.push(null)})),b._read=function(){for(;;){let e=E.read();if(null===e)return void(v=b._read);if(!b.push(e))return}};else if(c(E)){let e=(l(E)?E.readable:E).getReader();b._read=async function(){for(;;)try{let{value:t,done:n}=await e.read();if(!b.push(t))return;if(n)return void b.push(null)}catch{return}}}return b._destroy=function(e,n){!e&&null!==y&&(e=new d),v=null,t=null,g=null,null===y?n(e):(y=n,o(E)&&i(E,e))},b}})),ni=K(((e,t)=>{Q(),Zt(),Ot();var n=globalThis.AbortController||Vt().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:s}=Gt(),{validateAbortSignal:c,validateInteger:l,validateObject:u}=Kt(),f=Ht().Symbol("kWeak"),{finished:d}=Qt(),p=ti(),{addAbortSignalNoValidate:h}=Cn(),{isWritable:m,isNodeStream:g}=Xt(),{ArrayPrototypePush:v,MathFloor:y,Number:b,NumberIsNaN:w,Promise:k,PromiseReject:E,PromisePrototypeThen:S,Symbol:x}=Ht(),_=x("kEmpty"),T=x("kEof");function C(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);null!=t&&u(t,"options"),null!=t?.signal&&c(t.signal,"options.signal");let r=1;return null!=t?.concurrency&&(r=y(t.concurrency)),l(r,"concurrency",1),async function*(){var i,o;let a=new n,c=this,l=[],u=a.signal,f={signal:u},d=()=>a.abort();null!=t&&null!==(i=t.signal)&&void 0!==i&&i.aborted&&d(),null==t||null===(o=t.signal)||void 0===o||o.addEventListener("abort",d);let p,h,m=!1;function g(){m=!0}!async function(){try{for await(let t of c){var n;if(m)return;if(u.aborted)throw new s;try{t=e(t,f)}catch(e){t=E(e)}t!==_&&("function"==typeof(null===(n=t)||void 0===n?void 0:n.catch)&&t.catch(g),l.push(t),p&&(p(),p=null),!m&&l.length&&l.length>=r&&await new k((e=>{h=e})))}l.push(T)}catch(e){let t=E(e);S(t,void 0,g),l.push(t)}finally{var i;m=!0,p&&(p(),p=null),null==t||null===(i=t.signal)||void 0===i||i.removeEventListener("abort",d)}}();try{for(;;){for(;l.length>0;){let e=await l[0];if(e===T)return;if(u.aborted)throw new s;e!==_&&(yield e),l.shift(),h&&(h(),h=null)}await new k((e=>{p=e}))}}finally{a.abort(),m=!0,h&&(h(),h=null)}}.call(this)}async function A(e,t){for await(let n of O.call(this,e,t))return!0;return!1}function O(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);return C.call(this,(async function(t,n){return await e(t,n)?t:_}),t)}var R=class extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};function P(e){if(e=b(e),w(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}t.exports.streamReturningOperators={asIndexedPairs:function(e){return null!=e&&u(e,"options"),null!=e?.signal&&c(e.signal,"options.signal"),async function*(){let t=0;for await(let r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)},drop:function(e,t){return null!=t&&u(t,"options"),null!=t?.signal&&c(t.signal,"options.signal"),e=P(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(let n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;e--<=0&&(yield n)}}.call(this)},filter:O,flatMap:function(e,t){let n=C.call(this,e,t);return async function*(){for await(let e of n)yield*e}.call(this)},map:C,take:function(e,t){return null!=t&&u(t,"options"),null!=t?.signal&&c(t.signal,"options.signal"),e=P(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(let n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;if(!(e-- >0))return;yield n}}.call(this)},compose:function(e,t){if(null!=t&&u(t,"options"),null!=t?.signal&&c(t.signal,"options.signal"),g(e)&&!m(e))throw new r("stream",e,"must be writable");let n=p(this,e);return null!=t&&t.signal&&h(t.signal,n),n}},t.exports.promiseReturningOperators={every:async function(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);return!await A.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);for await(let n of C.call(this,(async function(t,n){return await e(t,n),_}),t));},reduce:async function(e,t,r){var o;if("function"!=typeof e)throw new i("reducer",["Function","AsyncFunction"],e);null!=r&&u(r,"options"),null!=r?.signal&&c(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(o=r.signal)&&void 0!==o&&o.aborted){let e=new s(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await d(this.destroy(e)),e}let l=new n,p=l.signal;if(null!=r&&r.signal){let e={once:!0,[f]:this};r.signal.addEventListener("abort",(()=>l.abort()),e)}let h=!1;try{for await(let n of this){var m;if(h=!0,null!=r&&null!==(m=r.signal)&&void 0!==m&&m.aborted)throw new s;a?t=await e(t,n,{signal:p}):(t=n,a=!0)}if(!h&&!a)throw new R}finally{l.abort()}return t},toArray:async function(e){null!=e&&u(e,"options"),null!=e?.signal&&c(e.signal,"options.signal");let t=[];for await(let r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s(void 0,{cause:e.signal.reason});v(t,r)}return t},some:A,find:async function(e,t){for await(let n of O.call(this,e,t))return n}}})),ri=K(((e,t)=>{Q(),Zt(),Ot();var{ArrayPrototypePop:n,Promise:r}=Ht(),{isIterable:i,isNodeStream:o,isWebStream:a}=Xt(),{pipelineImpl:s}=ei(),{finished:c}=Qt();ii(),t.exports={finished:c,pipeline:function(...e){return new r(((t,r)=>{let c,l,u=e[e.length-1];if(u&&"object"==typeof u&&!o(u)&&!i(u)&&!a(u)){let t=n(e);c=t.signal,l=t.end}s(e,((e,n)=>{e?r(e):t(n)}),{signal:c,end:l})}))}}})),ii=K(((e,t)=>{Q(),Zt(),Ot();var{Buffer:n}=(qt(),X(Rt)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:o}=Ht(),{promisify:{custom:a}}=Wt(),{streamReturningOperators:s,promiseReturningOperators:c}=ni(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=Gt(),u=ti(),{pipeline:f}=ei(),{destroyer:d}=Jt(),p=Qt(),h=ri(),m=Xt(),g=t.exports=Tn().Stream;g.isDisturbed=m.isDisturbed,g.isErrored=m.isErrored,g.isReadable=m.isReadable,g.Readable=Gr();for(let e of i(s)){let t=function(...e){if(new.target)throw l();return g.Readable.from(o(n,this,e))};t;let n=s[e];r(t,"name",{__proto__:null,value:n.name}),r(t,"length",{__proto__:null,value:n.length}),r(g.Readable.prototype,e,{__proto__:null,value:t,enumerable:!1,configurable:!0,writable:!0})}for(let e of i(c)){let t=function(...e){if(new.target)throw l();return o(n,this,e)};t;let n=c[e];r(t,"name",{__proto__:null,value:n.name}),r(t,"length",{__proto__:null,value:n.length}),r(g.Readable.prototype,e,{__proto__:null,value:t,enumerable:!1,configurable:!0,writable:!0})}g.Writable=Kr(),g.Duplex=Xr(),g.Transform=Qr(),g.PassThrough=Jr(),g.pipeline=f;var{addAbortSignal:v}=Cn();g.addAbortSignal=v,g.finished=p,g.destroy=d,g.compose=u,r(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return h}}),r(f,a,{__proto__:null,enumerable:!0,get(){return h.pipeline}}),r(p,a,{__proto__:null,enumerable:!0,get(){return h.finished}}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}})),oi=K(((e,t)=>{Q(),Zt(),Ot();var n=ii(),r=ri(),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})),ai=K(((e,t)=>{Q(),Zt(),Ot(),"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),si=K(((e,t)=>{Q(),Zt(),Ot();var{Buffer:n}=(qt(),X(Rt)),r=Symbol.for("BufferList");function i(e){if(!(this instanceof i))return new i(e);i._init.call(this,e)}i._init=function(e){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},i.prototype._new=function(e){return new i(e)},i.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]},i.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},i.prototype.copy=function(e,t,r,i){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof i||i>this.length)&&(i=this.length),r>=this.length||i<=0)return e||n.alloc(0);let o=!!e,a=this._offset(r),s=i-r,c=s,l=o&&t||0,u=a[1];if(0===r&&i===this.length){if(!o)return 1===this._bufs.length?this._bufs[0]:n.concat(this._bufs,this.length);for(let t=0;tn)){this._bufs[t].copy(e,l,u,u+c),l+=n;break}this._bufs[t].copy(e,l,u),l+=n,c-=n,u&&(u=0)}return e.length>l?e.slice(0,l):e},i.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!=typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),r=this._offset(t),i=this._bufs.slice(n[0],r[0]+1);return 0===r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!==n[1]&&(i[0]=i[0].slice(n[1])),this._new(i)},i.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},i.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},i.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:t;let i=this._offset(t),o=i[0],a=i[1];for(;o=e.length){let n=t.indexOf(e,a);if(-1!==n)return this._reverseOffset([o,n]);a=t.length-e.length+1}else{let t=this._reverseOffset([o,a]);if(this._match(t,e))return t;a++}a=0}return-1},i.prototype._match=function(e,t){if(this.length-e{Q(),Zt(),Ot();var n=oi().Duplex,r=ai(),i=si();function o(e){if(!(this instanceof o))return new o(e);if("function"==typeof e){this._callback=e;let t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)})),e=null}i._init.call(this,e),n.call(this)}r(o,n),Object.assign(o.prototype,i.prototype),o.prototype._new=function(e){return new o(e)},o.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},o.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},o.prototype.end=function(e){n.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},o.prototype._isBufferList=function(e){return e instanceof o||e instanceof i||o.isBufferList(e)},o.isBufferList=i.isBufferList,t.exports=o,t.exports.BufferListStream=o,t.exports.BufferList=i})),li=K(((e,t)=>{Q(),Zt(),Ot();t.exports=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}})),ui=K(((e,t)=>{Q(),Zt(),Ot();var n=t.exports,{Buffer:r}=(qt(),X(Rt));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 e in n.requiredHeaderFlags){let t=n.requiredHeaderFlags[e];n.requiredHeaderFlagsErrors[e]="Invalid header flag bits, must be 0x"+t.toString(16)+" for "+n.types[e]+" packet"}n.codes={};for(let e in n.types){let t=n.types[e];n.codes[t]=e}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<[0,1].map((i=>[0,1].map((o=>{let a=r.alloc(1);return a.writeUInt8(n.codes[e]<r.from([e]))),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"}})),fi=K(((e,t)=>{Q(),Zt(),Ot();var n=1e3,r=6e4,i=60*r,o=24*i,a=7*o,s=365.25*o;function c(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}t.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*i;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=o?c(e,t,o,"day"):t>=i?c(e,t,i,"hour"):t>=r?c(e,t,r,"minute"):t>=n?c(e,t,n,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+"d":t>=i?Math.round(e/i)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}})),di=K(((e,t)=>{Q(),Zt(),Ot(),t.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;let n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;let o=t.formatters[i];if("function"==typeof o){let t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){let r=t(this.namespace+(typeof n>"u"?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n,r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{Q(),Zt(),Ot(),e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch{}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch{}return!t&&typeof J<"u"&&"env"in J&&(t=J.env.DEBUG),t},e.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(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+)/))},e.storage=function(){try{return localStorage}catch{}}(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!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"],e.log=console.debug||console.log||(()=>{}),t.exports=di()(e);var{formatters:n}=t.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),hi=K(((e,t)=>{Q(),Zt(),Ot();var n=ci(),{EventEmitter:r}=(_n(),X(yn)),i=li(),o=ui(),a=pi()("mqtt-packet:parser");t.exports=class e extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(t){return this instanceof e?(this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):(new e).parser(t)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new i,this.error=null,this._list=n(),this._stateCounter=0}parse(e){for(this.error&&this._resetState(),this._list.append(e),a("parse: current state: %s",this._states[this._stateCounter]);(-1!==this.packet.length||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 e=this._list.readUInt8(0),t=e>>o.CMD_SHIFT;this.packet.cmd=o.types[t];let n=15&e,r=o.requiredHeaderFlags[t];return null!=r&&n!==r?this._emitError(new Error(o.requiredHeaderFlagsErrors[t])):(this.packet.retain=0!=(e&o.RETAIN_MASK),this.packet.qos=e>>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=0!=(e&o.DUP_MASK),a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),a("_parseLength %d",e.value),!!e}_parsePayload(){a("_parsePayload: payload %O",this._list);let e=!1;if(0===this.packet.length||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"))}e=!0}return a("_parsePayload complete result: %s",e),e}_parseConnect(){a("_parseConnect");let e,t,n,r,i={},s=this.packet,c=this._parseString();if(null===c)return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==c&&"MQIsdp"!==c)return this._emitError(new Error("Invalid protocolId"));if(s.protocolId=c,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(s.protocolVersion=this._list.readUInt8(this._pos),s.protocolVersion>=128&&(s.bridgeMode=!0,s.protocolVersion=s.protocolVersion-128),3!==s.protocolVersion&&4!==s.protocolVersion&&5!==s.protocolVersion)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(1&this._list.readUInt8(this._pos))return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));i.username=this._list.readUInt8(this._pos)&o.USERNAME_MASK,i.password=this._list.readUInt8(this._pos)&o.PASSWORD_MASK,i.will=this._list.readUInt8(this._pos)&o.WILL_FLAG_MASK;let l=!!(this._list.readUInt8(this._pos)&o.WILL_RETAIN_MASK),u=(this._list.readUInt8(this._pos)&o.WILL_QOS_MASK)>>o.WILL_QOS_SHIFT;if(i.will)s.will={},s.will.retain=l,s.will.qos=u;else{if(l)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(u)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(s.clean=0!=(this._list.readUInt8(this._pos)&o.CLEAN_SESSION_MASK),this._pos++,s.keepalive=this._parseNum(),-1===s.keepalive)return this._emitError(new Error("Packet too short"));if(5===s.protocolVersion){let e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(s.properties=e)}let f=this._parseString();if(null===f)return this._emitError(new Error("Packet too short"));if(s.clientId=f,a("_parseConnect: packet.clientId: %s",s.clientId),i.will){if(5===s.protocolVersion){let e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(s.will.properties=e)}if(e=this._parseString(),null===e)return this._emitError(new Error("Cannot parse will topic"));if(s.will.topic=e,a("_parseConnect: packet.will.topic: %s",s.will.topic),t=this._parseBuffer(),null===t)return this._emitError(new Error("Cannot parse will payload"));s.will.payload=t,a("_parseConnect: packet.will.paylaod: %s",s.will.payload)}if(i.username){if(r=this._parseString(),null===r)return this._emitError(new Error("Cannot parse username"));s.username=r,a("_parseConnect: packet.username: %s",s.username)}if(i.password){if(n=this._parseBuffer(),null===n)return this._emitError(new Error("Cannot parse password"));s.password=n}return this.settings=s,a("_parseConnect: complete"),s}_parseConnack(){a("_parseConnack");let e=this.packet;if(this._list.length<1)return null;let t=this._list.readUInt8(this._pos++);if(t>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(e.sessionPresent=!!(t&o.SESSIONPRESENT_MASK),5===this.settings.protocolVersion)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(-1===e.returnCode||-1===e.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let e=this.packet;if(e.topic=this._parseString(),null===e.topic)return this._emitError(new Error("Cannot parse topic"));if(!(e.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}e.payload=this._list.slice(this._pos,e.length),a("_parsePublish: payload from buffer list: %o",e.payload)}}_parseSubscribe(){a("_parseSubscribe");let e,t,n,r,i,s,c,l=this.packet;if(l.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){let e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(l.properties=e)}if(l.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=l.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(t=this._parseByte(),5===this.settings.protocolVersion){if(192&t)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(252&t)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(n=t&o.SUBSCRIBE_OPTIONS_QOS_MASK,n>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(s=0!=(t>>o.SUBSCRIBE_OPTIONS_NL_SHIFT&o.SUBSCRIBE_OPTIONS_NL_MASK),i=0!=(t>>o.SUBSCRIBE_OPTIONS_RAP_SHIFT&o.SUBSCRIBE_OPTIONS_RAP_MASK),r=t>>o.SUBSCRIBE_OPTIONS_RH_SHIFT&o.SUBSCRIBE_OPTIONS_RH_MASK,r>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));c={topic:e,qos:n},5===this.settings.protocolVersion?(c.nl=s,c.rap=i,c.rh=r):this.settings.bridgeMode&&(c.rh=0,c.rap=!0,c.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",c),l.subscriptions.push(c)}}}_parseSuback(){a("_parseSuback");let e=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}if(e.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&128!==e)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(e)}}}_parseUnsubscribe(){a("_parseUnsubscribe");let e=this.packet;if(e.unsubscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}if(e.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(e.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!o.MQTT5_PUBACK_PUBREC_CODES[e.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!o.MQTT5_PUBREL_PUBCOMP_CODES[e.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"))}a("_parseConfirmation: packet.reasonCode `%d`",e.reasonCode)}else e.reasonCode=0;if(e.length>3){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}}return!0}_parseDisconnect(){let e=this.packet;if(a("_parseDisconnect"),5===this.settings.protocolVersion){this._list.length>0?(e.reasonCode=this._parseByte(),o.MQTT5_DISCONNECT_CODES[e.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):e.reasonCode=0;let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");let e=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(e.reasonCode=this._parseByte(),!o.MQTT5_AUTH_CODES[e.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let t=this._parseProperties();return Object.getOwnPropertyNames(t).length&&(e.properties=t),a("_parseAuth: result: true"),!0}_parseMessageId(){let e=this.packet;return e.messageId=this._parseNum(),null===e.messageId?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",e.messageId),!0)}_parseString(e){let t=this._parseNum(),n=t+this._pos;if(-1===t||n>this._list.length||n>this.packet.length)return null;let r=this._list.toString("utf8",this._pos,n);return this._pos+=t,a("_parseString: result: %s",r),r}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let e=this._parseNum(),t=e+this._pos;if(-1===e||t>this._list.length||t>this.packet.length)return null;let n=this._list.slice(this._pos,t);return this._pos+=e,a("_parseBuffer: result: %o",n),n}_parseNum(){if(this._list.length-this._pos<2)return-1;let e=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let e=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",e),e}_parseVarByteNum(e){a("_parseVarByteNum");let t,n=0,r=1,i=0,s=!1,c=this._pos?this._pos:0;for(;n<4&&c+n=n&&this._emitError(new Error("Invalid variable byte integer")),c&&(this._pos+=n),s=!!s&&(e?{bytes:n,value:i}:i),a("_parseVarByteNum: result: %o",s),s}_parseByte(){let e;return this._pos{Q(),Zt(),Ot();var{Buffer:n}=(qt(),X(Rt)),r={},i=n.isBuffer(n.from([1,2]).subarray(0,1));function o(e){let t=n.allocUnsafe(2);return t.writeUInt8(e>>8,0),t.writeUInt8(255&e,1),t}t.exports={cache:r,generateCache:function(){for(let e=0;e<65536;e++)r[e]=o(e)},generateNumber:o,genBufVariableByteInt:function(e){let t=0,r=0,o=n.allocUnsafe(4);do{t=e%128|0,(e=e/128|0)>0&&(t|=128),o.writeUInt8(t,r++)}while(e>0&&r<4);return e>0&&(r=0),i?o.subarray(0,r):o.slice(0,r)},generate4ByteBuffer:function(e){let t=n.allocUnsafe(4);return t.writeUInt32BE(e,0),t}}})),gi=K(((e,t)=>{Q(),Zt(),Ot(),typeof J>"u"||!J.version||0===J.version.indexOf("v0.")||0===J.version.indexOf("v1.")&&0!==J.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return J.nextTick(e);case 2:return J.nextTick((function(){e.call(null,t)}));case 3:return J.nextTick((function(){e.call(null,t,n)}));case 4:return J.nextTick((function(){e.call(null,t,n,r)}));default:for(i=new Array(a-1),o=0;o{Q(),Zt(),Ot();var n=ui(),{Buffer:r}=(qt(),X(Rt)),i=r.allocUnsafe(0),o=r.from([0]),a=mi(),s=gi().nextTick,c=pi()("mqtt-packet:writeToStream"),l=a.cache,u=a.generateNumber,f=a.generateCache,d=a.genBufVariableByteInt,p=a.generate4ByteBuffer,h=E,m=!0;function g(e,t,a){switch(c("generate called"),t.cork&&(t.cork(),s(v,t)),m&&(m=!1,f()),c("generate: packet.cmd: %s",e.cmd),e.cmd){case"connect":return function(e,t,i){let o=e||{},a=o.protocolId||"MQTT",s=o.protocolVersion||4,c=o.will,l=o.clean,u=o.keepalive||0,f=o.clientId||"",d=o.username,p=o.password,m=o.properties;void 0===l&&(l=!0);let g,v,y=0;if(!a||"string"!=typeof a&&!r.isBuffer(a))return t.destroy(new Error("Invalid protocolId")),!1;if(y+=a.length+2,3!==s&&4!==s&&5!==s)return t.destroy(new Error("Invalid protocol version")),!1;if(y+=1,("string"==typeof f||r.isBuffer(f))&&(f||s>=4)&&(f||l))y+=r.byteLength(f)+2;else{if(s<4)return t.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(1*l==0)return t.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if("number"!=typeof u||u<0||u>65535||u%1!=0)return t.destroy(new Error("Invalid keepalive")),!1;if(y+=2,y+=1,5===s){if(g=_(t,m),!g)return!1;y+=g.length}if(c){if("object"!=typeof c)return t.destroy(new Error("Invalid will")),!1;if(!c.topic||"string"!=typeof c.topic)return t.destroy(new Error("Invalid will topic")),!1;if(y+=r.byteLength(c.topic)+2,y+=2,c.payload){if(!(c.payload.length>=0))return t.destroy(new Error("Invalid will payload")),!1;"string"==typeof c.payload?y+=r.byteLength(c.payload):y+=c.payload.length}if(v={},5===s){if(v=_(t,c.properties),!v)return!1;y+=v.length}}let k=!1;if(null!=d){if(!R(d))return t.destroy(new Error("Invalid username")),!1;k=!0,y+=r.byteLength(d)+2}if(null!=p){if(!k)return t.destroy(new Error("Username is required to use password")),!1;if(!R(p))return t.destroy(new Error("Invalid password")),!1;y+=O(p)+2}t.write(n.CONNECT_HEADER),b(t,y),x(t,a),o.bridgeMode&&(s+=128),t.write(131===s?n.VERSION131:132===s?n.VERSION132:4===s?n.VERSION4:5===s?n.VERSION5:n.VERSION3);let E=0;return E|=null!=d?n.USERNAME_MASK:0,E|=null!=p?n.PASSWORD_MASK:0,E|=c&&c.retain?n.WILL_RETAIN_MASK:0,E|=c&&c.qos?c.qos<0&&h(t,p),v?.write(),c("publish: payload: %o",d),t.write(d)}(e,t,a);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(e,t,i){let o=i?i.protocolVersion:4,a=e||{},s=a.cmd||"puback",c=a.messageId,l=a.dup&&"pubrel"===s?n.DUP_MASK:0,u=0,f=a.reasonCode,d=a.properties,p=5===o?3:2;if("pubrel"===s&&(u=1),"number"!=typeof c)return t.destroy(new Error("Invalid messageId")),!1;let m=null;if(5===o&&"object"==typeof d){if(m=T(t,d,i,p),!m)return!1;p+=m.length}return t.write(n.ACKS[s][u][l][0]),3===p&&(p+=0!==f?1:-1),b(t,p),h(t,c),5===o&&2!==p&&t.write(r.from([f])),null!==m?m.write():4===p&&t.write(r.from([0])),!0}(e,t,a);case"subscribe":return function(e,t,i){c("subscribe: packet: ");let o=i?i.protocolVersion:4,a=e||{},s=a.dup?n.DUP_MASK:0,l=a.messageId,u=a.subscriptions,f=a.properties,d=0;if("number"!=typeof l)return t.destroy(new Error("Invalid messageId")),!1;d+=2;let p=null;if(5===o){if(p=_(t,f),!p)return!1;d+=p.length}if("object"!=typeof u||!u.length)return t.destroy(new Error("Invalid subscriptions")),!1;for(let e=0;e2)return t.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}d+=r.byteLength(n)+2+1}c("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),t.write(n.SUBSCRIBE_HEADER[1][s?1:0][0]),b(t,d),h(t,l),null!==p&&p.write();let m=!0;for(let e of u){let i,a=e.topic,s=e.qos,c=+e.nl,l=+e.rap,u=e.rh;w(t,a),i=n.SUBSCRIBE_OPTIONS_QOS[s],5===o&&(i|=c?n.SUBSCRIBE_OPTIONS_NL:0,i|=l?n.SUBSCRIBE_OPTIONS_RAP:0,i|=u?n.SUBSCRIBE_OPTIONS_RH[u]:0),m=t.write(r.from([i]))}return m}(e,t,a);case"suback":return function(e,t,i){let o=i?i.protocolVersion:4,a=e||{},s=a.messageId,c=a.granted,l=a.properties,u=0;if("number"!=typeof s)return t.destroy(new Error("Invalid messageId")),!1;if(u+=2,"object"!=typeof c||!c.length)return t.destroy(new Error("Invalid qos vector")),!1;for(let e=0;en.VARBYTEINT_MAX)return e.destroy(new Error(`Invalid variable byte integer: ${t}`)),!1;let r=y[t];return r||(r=d(t),t<16384&&(y[t]=r)),c("writeVarByteInt: writing to stream: %o",r),e.write(r)}function w(e,t){let n=r.byteLength(t);return h(e,n),c("writeString: %s",t),e.write(t,"utf8")}function k(e,t,n){w(e,t),w(e,n)}function E(e,t){return c("writeNumberCached: number: %d",t),c("writeNumberCached: %o",l[t]),e.write(l[t])}function S(e,t){let n=u(t);return c("writeNumberGenerated: %o",n),e.write(n)}function x(e,t){"string"==typeof t?w(e,t):t?(h(e,t.length),e.write(t)):h(e,0)}function _(e,t){if("object"!=typeof t||null!=t.length)return{length:1,write(){A(e,{},0)}};let i=0;function o(t,i){let o=0;switch(n.propertiesTypes[t]){case"byte":if("boolean"!=typeof i)return e.destroy(new Error(`Invalid ${t}: ${i}`)),!1;o+=2;break;case"int8":if("number"!=typeof i||i<0||i>255)return e.destroy(new Error(`Invalid ${t}: ${i}`)),!1;o+=2;break;case"binary":if(i&&null===i)return e.destroy(new Error(`Invalid ${t}: ${i}`)),!1;o+=1+r.byteLength(i)+2;break;case"int16":if("number"!=typeof i||i<0||i>65535)return e.destroy(new Error(`Invalid ${t}: ${i}`)),!1;o+=3;break;case"int32":if("number"!=typeof i||i<0||i>4294967295)return e.destroy(new Error(`Invalid ${t}: ${i}`)),!1;o+=5;break;case"var":if("number"!=typeof i||i<0||i>268435455)return e.destroy(new Error(`Invalid ${t}: ${i}`)),!1;o+=1+r.byteLength(d(i));break;case"string":if("string"!=typeof i)return e.destroy(new Error(`Invalid ${t}: ${i}`)),!1;o+=3+r.byteLength(i.toString());break;case"pair":if("object"!=typeof i)return e.destroy(new Error(`Invalid ${t}: ${i}`)),!1;o+=Object.getOwnPropertyNames(i).reduce(((e,t)=>{let n=i[t];return Array.isArray(n)?e+=n.reduce(((e,n)=>e+=3+r.byteLength(t.toString())+2+r.byteLength(n.toString())),0):e+=3+r.byteLength(t.toString())+2+r.byteLength(i[t].toString()),e}),0);break;default:return e.destroy(new Error(`Invalid property ${t}: ${i}`)),!1}return o}if(t)for(let e in t){let n=0,r=0,a=t[e];if(Array.isArray(a))for(let t=0;to;){let n=i.shift();if(!n||!t[n])return!1;delete t[n],a=_(e,t)}return a}function C(e,t,i){switch(n.propertiesTypes[t]){case"byte":e.write(r.from([n.properties[t]])),e.write(r.from([+i]));break;case"int8":e.write(r.from([n.properties[t]])),e.write(r.from([i]));break;case"binary":e.write(r.from([n.properties[t]])),x(e,i);break;case"int16":e.write(r.from([n.properties[t]])),h(e,i);break;case"int32":e.write(r.from([n.properties[t]])),function(e,t){let n=p(t);c("write4ByteNumber: %o",n),e.write(n)}(e,i);break;case"var":e.write(r.from([n.properties[t]])),b(e,i);break;case"string":e.write(r.from([n.properties[t]])),w(e,i);break;case"pair":Object.getOwnPropertyNames(i).forEach((o=>{let a=i[o];Array.isArray(a)?a.forEach((i=>{e.write(r.from([n.properties[t]])),k(e,o.toString(),i.toString())})):(e.write(r.from([n.properties[t]])),k(e,o.toString(),a.toString()))}));break;default:return e.destroy(new Error(`Invalid property ${t} value: ${i}`)),!1}}function A(e,t,n){b(e,n);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&null!==t[n]){let r=t[n];if(Array.isArray(r))for(let t=0;t{Q(),Zt(),Ot();var n=vi(),{EventEmitter:r}=(_n(),X(yn)),{Buffer:i}=(qt(),X(Rt));var o=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(e){return this._array[this._i++]=e,!0}concat(){let e,t=0,n=new Array(this._array.length),r=this._array,o=0;for(e=0;e{Q(),Zt(),Ot(),e.parser=hi().parser,e.generate=yi(),e.writeToStream=vi()})),wi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(){this.nextId=Math.max(1,Math.floor(65535*Math.random()))}allocate(){let e=this.nextId++;return 65536===this.nextId&&(this.nextId=1),e}getLastAllocated(){return 1===this.nextId?65535:this.nextId-1}register(e){return!0}deallocate(e){}clear(){}}})),ki=K(((e,t)=>{function n(e){return e instanceof Ft?Ft.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}Q(),Zt(),Ot(),t.exports=function(e){return(e=e||{}).circles?function(e){var t=[],r=[];return e.proto?function e(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return i(o,e);if(o instanceof Map)return new Map(i(Array.from(o),e));if(o instanceof Set)return new Set(i(Array.from(o),e));var a={};for(var s in t.push(o),r.push(a),o){var c=o[s];if("object"!=typeof c||null===c)a[s]=c;else if(c instanceof Date)a[s]=new Date(c);else if(c instanceof Map)a[s]=new Map(i(Array.from(c),e));else if(c instanceof Set)a[s]=new Set(i(Array.from(c),e));else if(ArrayBuffer.isView(c))a[s]=n(c);else{var l=t.indexOf(c);a[s]=-1!==l?r[l]:e(c)}}return t.pop(),r.pop(),a}:function e(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return i(o,e);if(o instanceof Map)return new Map(i(Array.from(o),e));if(o instanceof Set)return new Set(i(Array.from(o),e));var a={};for(var s in t.push(o),r.push(a),o)if(!1!==Object.hasOwnProperty.call(o,s)){var c=o[s];if("object"!=typeof c||null===c)a[s]=c;else if(c instanceof Date)a[s]=new Date(c);else if(c instanceof Map)a[s]=new Map(i(Array.from(c),e));else if(c instanceof Set)a[s]=new Set(i(Array.from(c),e));else if(ArrayBuffer.isView(c))a[s]=n(c);else{var l=t.indexOf(c);a[s]=-1!==l?r[l]:e(c)}}return t.pop(),r.pop(),a};function i(e,i){for(var o=Object.keys(e),a=new Array(o.length),s=0;s{Q(),Zt(),Ot(),t.exports=ki()()})),Si=K((e=>{function t(e){let t=e.split("/");for(let e=0;e{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});var t=oi(),n={objectMode:!0},r={clean:!0};e.default=class{constructor(e){this.options=e||{},this.options=Object.assign(Object.assign({},r),e),this._inflights=new Map}put(e,t){return this._inflights.set(e.messageId,e),t&&t(),this}createStream(){let e=new t.Readable(n),r=[],i=!1,o=0;return this._inflights.forEach(((e,t)=>{r.push(e)})),e._read=()=>{!i&&o{if(!i)return i=!0,setTimeout((()=>{e.emit("close")}),0),e},e}del(e,t){let n=this._inflights.get(e.messageId);return n?(this._inflights.delete(e.messageId),t(null,n)):t&&t(new Error("missing packet")),this}get(e,t){let n=this._inflights.get(e.messageId);return n?t(null,n):t&&t(new Error("missing packet")),this}close(e){this.options.clean&&(this._inflights=null),e&&e()}}})),_i=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153];e.default=(e,n,r)=>{e.log("handlePublish: packet %o",n),r=typeof r<"u"?r:e.noop;let i=n.topic.toString(),o=n.payload,{qos:a}=n,{messageId:s}=n,{options:c}=e;if(5===e.options.protocolVersion){let t;if(n.properties&&(t=n.properties.topicAlias),typeof t<"u")if(0===i.length){if(!(t>0&&t<=65535))return e.log("handlePublish :: topic alias out of range. alias: %d",t),void e.emit("error",new Error("Received Topic Alias is out of range"));{let n=e.topicAliasRecv.getTopicByAlias(t);if(!n)return e.log("handlePublish :: unregistered topic alias. alias: %d",t),void e.emit("error",new Error("Received unregistered Topic Alias"));i=n,e.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",i,t)}}else{if(!e.topicAliasRecv.put(i,t))return e.log("handlePublish :: topic alias out of range. alias: %d",t),void e.emit("error",new Error("Received Topic Alias is out of range"));e.log("handlePublish :: registered topic: %s - alias: %d",i,t)}}switch(e.log("handlePublish: qos %d",a),a){case 2:c.customHandleAcks(i,o,n,((i,o)=>("number"==typeof i&&(o=i,i=null),i?e.emit("error",i):-1===t.indexOf(o)?e.emit("error",new Error("Wrong reason code for pubrec")):void(o?e._sendPacket({cmd:"pubrec",messageId:s,reasonCode:o},r):e.incomingStore.put(n,(()=>{e._sendPacket({cmd:"pubrec",messageId:s},r)}))))));break;case 1:c.customHandleAcks(i,o,n,((a,c)=>("number"==typeof a&&(c=a,a=null),a?e.emit("error",a):-1===t.indexOf(c)?e.emit("error",new Error("Wrong reason code for puback")):(c||e.emit("message",i,o,n),void e.handleMessage(n,(t=>{if(t)return r&&r(t);e._sendPacket({cmd:"puback",messageId:s,reasonCode:c},r)}))))));break;case 0:e.emit("message",i,o,n),e.handleMessage(n,r);break;default:e.log("handlePublish: unknown QoS. Doing nothing.")}}})),Ti=K(((e,t)=>{t.exports={version:"5.10.3"}})),Ci=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class e extends Error{constructor(t,n){super(t),this.code=n,Object.setPrototypeOf(this,e.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t,e.applyMixin=function(e,t,n=!1){var r;let i=[t];for(;;){let e=i[0],t=Object.getPrototypeOf(e);if(!t?.prototype)break;i.unshift(t)}for(let t of i)for(let i of Object.getOwnPropertyNames(t.prototype))(n||"constructor"!==i)&&Object.defineProperty(e.prototype,i,null!==(r=Object.getOwnPropertyDescriptor(t.prototype,i))&&void 0!==r?r:Object.create(null))},e.nextTick="function"==typeof(null==J?void 0:J.nextTick)?J.nextTick:e=>{setTimeout(e,0)},e.MQTTJS_VERSION=Ti().version})),Ai=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=Ci();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"};e.default=(n,r)=>{let{messageId:i}=r,o=r.cmd,a=null,s=n.outgoing[i]?n.outgoing[i].cb:null,c=null;if(s){switch(n.log("_handleAck :: packet type",o),o){case"pubcomp":case"puback":{let o=r.reasonCode;o&&o>0&&16!==o?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[o]}`,o),n._removeOutgoingAndStoreMessage(i,(()=>{s(c,r)}))):n._removeOutgoingAndStoreMessage(i,s);break}case"pubrec":{a={cmd:"pubrel",qos:2,messageId:i};let o=r.reasonCode;o&&o>0&&16!==o?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[o]}`,o),n._removeOutgoingAndStoreMessage(i,(()=>{s(c,r)}))):n._sendPacket(a);break}case"suback":{delete n.outgoing[i],n.messageIdProvider.deallocate(i);let t=r.granted;for(let r=0;r{delete n._resubscribeTopics[e]}))}}delete n.messageIdToTopic[i],n._invokeStoreProcessingQueue(),s(c,r);break}case"unsuback":delete n.outgoing[i],n.messageIdProvider.deallocate(i),n._invokeStoreProcessingQueue(),s(null,r);break;default:n.emit("error",new Error("unrecognized packet type"))}n.disconnecting&&0===Object.keys(n.outgoing).length&&n.emit("outgoingEmpty")}else n.log("_handleAck :: Server sent an ack in error. Ignoring.")}})),Oi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ci(),n=Ai();e.default=(e,r)=>{let{options:i}=e,o=i.protocolVersion,a=5===o?r.reasonCode:r.returnCode;if(5===o)e.handleAuth(r,((r,i)=>{if(r)e.emit("error",r);else if(24===a)e.reconnecting=!1,e._sendPacket(i);else{let r=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[a]}`,a);e.emit("error",r)}}));else{let n=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${o}`,a);e.emit("error",n)}}})),Ri=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,r="object"==typeof J&&J?J:{},i=(e,t,n,i)=>{"function"==typeof r.emitWarning?r.emitWarning(e,t,n,i):console.error(`[${n}] ${t}: ${e}`)},o=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof o>"u"){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},o=class{constructor(){t()}signal=new a;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(let t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==r.env?.LRU_CACHE_IGNORE_AC_WARNING,t=()=>{e&&(e=!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",t))}}Symbol("type");var s=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),c=e=>s(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?l:null:null,l=class extends Array{constructor(e){super(e),this.fill(0)}},u=class e{heap;length;static#e=!1;static create(t){let n=c(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},f=class e{#e;#t;#n;#r;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#a;#s;#c;#l;#u;#f;#d;#p;#h;#m;#g;#v;#y;#b;#w;#k;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#y,sizes:e.#g,keyMap:e.#s,keyList:e.#c,valList:e.#l,next:e.#u,prev:e.#f,get head(){return e.#d},get tail(){return e.#p},free:e.#h,isBackgroundFetch:t=>e.#E(t),backgroundFetch:(t,n,r,i)=>e.#S(t,n,r,i),moveToTail:t=>e.#x(t),indexes:t=>e.#_(t),rindexes:t=>e.#T(t),isStale:t=>e.#C(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#a}get size(){return this.#o}get fetchMethod(){return this.#i}get dispose(){return this.#n}get disposeAfter(){return this.#r}constructor(t){let{max:r=0,ttl:o,ttlResolution:a=1,ttlAutopurge:l,updateAgeOnGet:f,updateAgeOnHas:d,allowStale:p,dispose:h,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:v,maxSize:y=0,maxEntrySize:b=0,sizeCalculation:w,fetchMethod:k,noDeleteOnFetchRejection:E,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:_,ignoreFetchAbort:T}=t;if(0!==r&&!s(r))throw new TypeError("max option must be a nonnegative integer");let C=r?c(r):Array;if(!C)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=y,this.maxEntrySize=b||this.#t,this.sizeCalculation=w,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==k&&"function"!=typeof k)throw new TypeError("fetchMethod must be a function if specified");if(this.#i=k,this.#w=!!k,this.#s=new Map,this.#c=new Array(r).fill(void 0),this.#l=new Array(r).fill(void 0),this.#u=new C(r),this.#f=new C(r),this.#d=0,this.#p=0,this.#h=u.create(r),this.#o=0,this.#a=0,"function"==typeof h&&(this.#n=h),"function"==typeof m?(this.#r=m,this.#m=[]):(this.#r=void 0,this.#m=void 0),this.#b=!!this.#n,this.#k=!!this.#r,this.noDisposeOnSet=!!g,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!E,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!T,0!==this.maxEntrySize){if(0!==this.#t&&!s(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!s(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#A()}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!f,this.updateAgeOnHas=!!d,this.ttlResolution=s(a)||0===a?a:1,this.ttlAutopurge=!!l,this.ttl=o||0,this.ttl){if(!s(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#O()}if(0===this.#e&&0===this.ttl&&0===this.#t)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t="LRU_CACHE_UNBOUNDED";(e=>!n.has(e))(t)&&(n.add(t),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,e))}}getRemainingTTL(e){return this.#s.has(e)?1/0:0}#O(){let e=new l(this.#e),n=new l(this.#e);this.#y=e,this.#v=n,this.#R=(r,i,o=t.now())=>{if(n[r]=0!==i?o:0,e[r]=i,0!==i&&this.ttlAutopurge){let e=setTimeout((()=>{this.#C(r)&&this.delete(this.#c[r])}),i+1);e.unref&&e.unref()}},this.#P=r=>{n[r]=0!==e[r]?t.now():0},this.#I=(t,o)=>{if(e[o]){let a=e[o],s=n[o];t.ttl=a,t.start=s,t.now=r||i();let c=t.now-s;t.remainingTTL=a-c}};let r=0,i=()=>{let e=t.now();if(this.ttlResolution>0){r=e;let t=setTimeout((()=>r=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=t=>{let o=this.#s.get(t);if(void 0===o)return 0;let a=e[o],s=n[o];return 0===a||0===s?1/0:a-((r||i())-s)},this.#C=t=>0!==e[t]&&0!==n[t]&&(r||i())-n[t]>e[t]}#P=()=>{};#I=()=>{};#R=()=>{};#C=()=>!1;#A(){let e=new l(this.#e);this.#a=0,this.#g=e,this.#M=t=>{this.#a-=e[t],e[t]=0},this.#L=(e,t,n,r)=>{if(this.#E(t))return 0;if(!s(n)){if(!r)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!s(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.#N=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#a>n;)this.#D(!0)}this.#a+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#a)}}#M=e=>{};#N=(e,t,n)=>{};#L=(e,t,n,r)=>{if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#_({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#p;this.#j(t)&&((e||!this.#C(t))&&(yield t),t!==this.#d);)t=this.#f[t]}*#T({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#d;this.#j(t)&&((e||!this.#C(t))&&(yield t),t!==this.#p);)t=this.#u[t]}#j(e){return void 0!==e&&this.#s.get(this.#c[e])===e}*entries(){for(let e of this.#_())void 0!==this.#l[e]&&void 0!==this.#c[e]&&!this.#E(this.#l[e])&&(yield[this.#c[e],this.#l[e]])}*rentries(){for(let e of this.#T())void 0!==this.#l[e]&&void 0!==this.#c[e]&&!this.#E(this.#l[e])&&(yield[this.#c[e],this.#l[e]])}*keys(){for(let e of this.#_()){let t=this.#c[e];void 0!==t&&!this.#E(this.#l[e])&&(yield t)}}*rkeys(){for(let e of this.#T()){let t=this.#c[e];void 0!==t&&!this.#E(this.#l[e])&&(yield t)}}*values(){for(let e of this.#_())void 0!==this.#l[e]&&!this.#E(this.#l[e])&&(yield this.#l[e])}*rvalues(){for(let e of this.#T())void 0!==this.#l[e]&&!this.#E(this.#l[e])&&(yield this.#l[e])}[Symbol.iterator](){return this.entries()}find(e,t={}){for(let n of this.#_()){let r=this.#l[n],i=this.#E(r)?r.__staleWhileFetching:r;if(void 0!==i&&e(i,this.#c[n],this))return this.get(this.#c[n],t)}}forEach(e,t=this){for(let n of this.#_()){let r=this.#l[n],i=this.#E(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#c[n],this)}}rforEach(e,t=this){for(let n of this.#T()){let r=this.#l[n],i=this.#E(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#c[n],this)}}purgeStale(){let e=!1;for(let t of this.#T({allowStale:!0}))this.#C(t)&&(this.delete(this.#c[t]),e=!0);return e}dump(){let e=[];for(let n of this.#_({allowStale:!0})){let r=this.#c[n],i=this.#l[n],o=this.#E(i)?i.__staleWhileFetching:i;if(void 0===o||void 0===r)continue;let a={value:o};if(this.#y&&this.#v){a.ttl=this.#y[n];let e=t.now()-this.#v[n];a.start=Math.floor(Date.now()-e)}this.#g&&(a.size=this.#g[n]),e.unshift([r,a])}return e}load(e){this.clear();for(let[n,r]of e){if(r.start){let e=Date.now()-r.start;r.start=t.now()-e}this.set(n,r.value,r)}}set(e,t,n={}){if(void 0===t)return this.delete(e),this;let{ttl:r=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:s}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,l=this.#L(e,t,n.size||0,a);if(this.maxEntrySize&&l>this.maxEntrySize)return s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this.delete(e),this;let u=0===this.#o?void 0:this.#s.get(e);if(void 0===u)u=0===this.#o?this.#p:0!==this.#h.length?this.#h.pop():this.#o===this.#e?this.#D(!1):this.#o,this.#c[u]=e,this.#l[u]=t,this.#s.set(e,u),this.#u[this.#p]=u,this.#f[u]=this.#p,this.#p=u,this.#o++,this.#N(u,l,s),s&&(s.set="add"),c=!1;else{this.#x(u);let n=this.#l[u];if(t!==n){if(this.#w&&this.#E(n)){n.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:t}=n;void 0!==t&&!o&&(this.#b&&this.#n?.(t,e,"set"),this.#k&&this.#m?.push([t,e,"set"]))}else o||(this.#b&&this.#n?.(n,e,"set"),this.#k&&this.#m?.push([n,e,"set"]));if(this.#M(u),this.#N(u,l,s),this.#l[u]=t,s){s.set="replace";let e=n&&this.#E(n)?n.__staleWhileFetching:n;void 0!==e&&(s.oldValue=e)}}else s&&(s.set="update")}if(0!==r&&!this.#y&&this.#O(),this.#y&&(c||this.#R(u,r,i),s&&this.#I(s,u)),!o&&this.#k&&this.#m){let e,t=this.#m;for(;e=t?.shift();)this.#r?.(...e)}return this}pop(){try{for(;this.#o;){let e=this.#l[this.#d];if(this.#D(!0),this.#E(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#k&&this.#m){let e,t=this.#m;for(;e=t?.shift();)this.#r?.(...e)}}}#D(e){let t=this.#d,n=this.#c[t],r=this.#l[t];return this.#w&&this.#E(r)?r.__abortController.abort(new Error("evicted")):(this.#b||this.#k)&&(this.#b&&this.#n?.(r,n,"evict"),this.#k&&this.#m?.push([r,n,"evict"])),this.#M(t),e&&(this.#c[t]=void 0,this.#l[t]=void 0,this.#h.push(t)),1===this.#o?(this.#d=this.#p=0,this.#h.length=0):this.#d=this.#u[t],this.#s.delete(n),this.#o--,t}has(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#s.get(e);if(void 0!==i){let e=this.#l[i];if(this.#E(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#C(i))return n&&this.#P(i),r&&(r.has="hit",this.#I(r,i)),!0;r&&(r.has="stale",this.#I(r,i))}else r&&(r.has="miss");return!1}peek(e,t={}){let{allowStale:n=this.allowStale}=t,r=this.#s.get(e);if(void 0!==r&&(n||!this.#C(r))){let e=this.#l[r];return this.#E(e)?e.__staleWhileFetching:e}}#S(e,t,n,r){let i=void 0===t?void 0:this.#l[t];if(this.#E(i))return i;let a=new o,{signal:s}=n;s?.addEventListener("abort",(()=>a.abort(s.reason)),{signal:a.signal});let c={signal:a.signal,options:n,context:r},l=(r,i=!1)=>{let{aborted:o}=a.signal,s=n.ignoreFetchAbort&&void 0!==r;if(n.status&&(o&&!i?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,s&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),o&&!s&&!i)return u(a.signal.reason);let l=f;return this.#l[t]===f&&(void 0===r?l.__staleWhileFetching?this.#l[t]=l.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,c.options))),r},u=r=>{let{aborted:i}=a.signal,o=i&&n.allowStaleOnFetchAbort,s=o||n.allowStaleOnFetchRejection,c=s||n.noDeleteOnFetchRejection,l=f;if(this.#l[t]===f&&(c&&void 0!==l.__staleWhileFetching?o||(this.#l[t]=l.__staleWhileFetching):this.delete(e)),s)return n.status&&void 0!==l.__staleWhileFetching&&(n.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw r};n.status&&(n.status.fetchDispatched=!0);let f=new Promise(((t,r)=>{let o=this.#i?.(e,i,c);o&&o instanceof Promise&&o.then((e=>t(void 0===e?void 0:e)),r),a.signal.addEventListener("abort",(()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))}))})).then(l,(e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),u(e)))),d=Object.assign(f,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.set(e,d,{...c.options,status:void 0}),t=this.#s.get(e)):this.#l[t]=d,d}#E(e){if(!this.#w)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof o}async fetch(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:h,forceRefresh:m=!1,status:g,signal:v}=t;if(!this.#w)return g&&(g.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:g});let y={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:s,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:g,signal:v},b=this.#s.get(e);if(void 0===b){g&&(g.fetch="miss");let t=this.#S(e,b,y,h);return t.__returned=t}{let t=this.#l[b];if(this.#E(t)){let e=n&&void 0!==t.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=this.#C(b);if(!m&&!i)return g&&(g.fetch="hit"),this.#x(b),r&&this.#P(b),g&&this.#I(g,b),t;let o=this.#S(e,b,y,h),a=void 0!==o.__staleWhileFetching&&n;return g&&(g.fetch=i?"stale":"refresh",a&&i&&(g.returnedStale=!0)),a?o.__staleWhileFetching:o.__returned=o}}get(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=t,a=this.#s.get(e);if(void 0!==a){let t=this.#l[a],s=this.#E(t);return o&&this.#I(o,a),this.#C(a)?(o&&(o.get="stale"),s?(o&&n&&void 0!==t.__staleWhileFetching&&(o.returnedStale=!0),n?t.__staleWhileFetching:void 0):(i||this.delete(e),o&&n&&(o.returnedStale=!0),n?t:void 0)):(o&&(o.get="hit"),s?t.__staleWhileFetching:(this.#x(a),r&&this.#P(a),t))}o&&(o.get="miss")}#B(e,t){this.#f[t]=e,this.#u[e]=t}#x(e){e!==this.#p&&(e===this.#d?this.#d=this.#u[e]:this.#B(this.#f[e],this.#u[e]),this.#B(this.#p,e),this.#p=e)}delete(e){let t=!1;if(0!==this.#o){let n=this.#s.get(e);if(void 0!==n)if(t=!0,1===this.#o)this.clear();else{this.#M(n);let t=this.#l[n];this.#E(t)?t.__abortController.abort(new Error("deleted")):(this.#b||this.#k)&&(this.#b&&this.#n?.(t,e,"delete"),this.#k&&this.#m?.push([t,e,"delete"])),this.#s.delete(e),this.#c[n]=void 0,this.#l[n]=void 0,n===this.#p?this.#p=this.#f[n]:n===this.#d?this.#d=this.#u[n]:(this.#u[this.#f[n]]=this.#u[n],this.#f[this.#u[n]]=this.#f[n]),this.#o--,this.#h.push(n)}}if(this.#k&&this.#m?.length){let e,t=this.#m;for(;e=t?.shift();)this.#r?.(...e)}return t}clear(){for(let e of this.#T({allowStale:!0})){let t=this.#l[e];if(this.#E(t))t.__abortController.abort(new Error("deleted"));else{let n=this.#c[e];this.#b&&this.#n?.(t,n,"delete"),this.#k&&this.#m?.push([t,n,"delete"])}}if(this.#s.clear(),this.#l.fill(void 0),this.#c.fill(void 0),this.#y&&this.#v&&(this.#y.fill(0),this.#v.fill(0)),this.#g&&this.#g.fill(0),this.#d=0,this.#p=0,this.#h.length=0,this.#a=0,this.#o=0,this.#k&&this.#m){let e,t=this.#m;for(;e=t?.shift();)this.#r?.(...e)}}};e.LRUCache=f})),Pi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;e.ContainerIterator=class{constructor(e=0){this.iteratorType=e}equals(e){return this.o===e.o}};var t=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return 0===this.i}};e.Base=t;e.Container=class extends t{}})),Ii=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Pi(),n=class extends t.Base{constructor(e=[]){super(),this.S=[];let t=this;e.forEach((function(e){t.push(e)}))}clear(){this.i=0,this.S=[]}push(e){return this.S.push(e),this.i+=1,this.i}pop(){if(0!==this.i)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}};e.default=n})),Mi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Pi(),n=class extends t.Base{constructor(e=[]){super(),this.j=0,this.q=[];let t=this;e.forEach((function(e){t.push(e)}))}clear(){this.q=[],this.i=this.j=0}push(e){let t=this.q.length;if(this.j/t>.5&&this.j+this.i>=t&&t>4096){let t=this.i;for(let e=0;e{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Pi(),n=class extends t.Base{constructor(e=[],t=function(e,t){return e>t?-1:e>1;for(let e=this.i-1>>1;e>=0;--e)this.k(e,r)}m(e){let t=this.C[e];for(;e>0;){let n=e-1>>1,r=this.C[n];if(this.v(r,t)<=0)break;this.C[e]=r,e=n}this.C[e]=t}k(e,t){let n=this.C[e];for(;e0&&(t=r,i=this.C[r]),this.v(i,n)>=0)break;this.C[e]=i,e=t}this.C[e]=n}clear(){this.i=0,this.C.length=0}push(e){this.C.push(e),this.m(this.i),this.i+=1}pop(){if(0===this.i)return;let e=this.C[0],t=this.C.pop();return this.i-=1,this.i&&(this.C[0]=t,this.k(0,this.i>>1)),e}top(){return this.C[0]}find(e){return this.C.indexOf(e)>=0}remove(e){let t=this.C.indexOf(e);return!(t<0)&&(0===t?this.pop():t===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(t,1,this.C.pop()),this.i-=1,this.m(t),this.k(t,this.i>>1)),!0)}updateItem(e){let t=this.C.indexOf(e);return!(t<0)&&(this.m(t),this.k(t,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r})),Ni=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Pi(),n=class extends t.Container{};e.default=n})),Di=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=function(){throw new RangeError("Iterator access denied!")}})),ji=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=Pi(),n=Di(),r=class extends t.ContainerIterator{constructor(e,t){super(t),this.o=e,0===this.iteratorType?(this.pre=function(){return 0===this.o&&(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-1===this.o&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(e){this.container.setElementByPos(this.o,e)}};e.RandomIterator=r})),Bi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t,n=(t=Ni())&&t.t?t:{default:t},r=ji();var i=class e extends r.RandomIterator{constructor(e,t,n){super(e,n),this.container=t}copy(){return new e(this.o,this.container,this.iteratorType)}},o=class extends n.default{constructor(e=[],t=!0){if(super(),Array.isArray(e))this.J=t?[...e]:e,this.i=e.length;else{this.J=[];let t=this;e.forEach((function(e){t.pushBack(e)}))}}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(e){if(e<0||e>this.i-1)throw new RangeError;return this.J[e]}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;return this.J.splice(e,1),this.i-=1,this.i}eraseElementByValue(e){let t=0;for(let n=0;nthis.i-1)throw new RangeError;this.J[e]=t}insert(e,t,n=1){if(e<0||e>this.i)throw new RangeError;return this.J.splice(e,0,...new Array(n).fill(t)),this.i+=n,this.i}find(e){for(let t=0;t{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t,n=(t=Ni())&&t.t?t:{default:t},r=Pi(),i=Di();var o=class e extends r.ContainerIterator{constructor(e,t,n,r){super(r),this.o=e,this.h=t,this.container=n,0===this.iteratorType?(this.pre=function(){return this.o.L===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.l}set pointer(e){this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.l=e}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},a=class extends n.default{constructor(e=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let t=this;e.forEach((function(e){t.pushBack(e)}))}V(e){let{L:t,B:n}=e;t.B=n,n.L=t,e===this.p&&(this.p=n),e===this._&&(this._=t),this.i-=1}G(e,t){let n=t.B,r={l:e,L:t,B:n};t.B=r,n.L=r,t===this.h&&(this.p=r),n===this.h&&(this._=r),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(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return t.l}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return this.V(t),this.i}eraseElementByValue(e){let t=this.p;for(;t!==this.h;)t.l===e&&this.V(t),t=t.B;return this.i}eraseElementByIterator(e){let t=e.o;return t===this.h&&(0,i.throwIteratorAccessError)(),e=e.next(),this.V(t),e}pushBack(e){return this.G(e,this._),this.i}popBack(){if(0===this.i)return;let e=this._.l;return this.V(this._),e}pushFront(e){return this.G(e,this.h),this.i}popFront(){if(0===this.i)return;let e=this.p.l;return this.V(this.p),e}setElementByPos(e,t){if(e<0||e>this.i-1)throw new RangeError;let n=this.p;for(;e--;)n=n.B;n.l=t}insert(e,t,n=1){if(e<0||e>this.i)throw new RangeError;if(n<=0)return this.i;if(0===e)for(;n--;)this.pushFront(t);else if(e===this.i)for(;n--;)this.pushBack(t);else{let r=this.p;for(let t=1;t{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t,n=(t=Ni())&&t.t?t:{default:t},r=ji();var i=class e extends r.RandomIterator{constructor(e,t,n){super(e,n),this.container=t}copy(){return new e(this.o,this.container,this.iteratorType)}},o=class extends n.default{constructor(e=[],t=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let n=(()=>{if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("function"==typeof e.size)return e.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=t,this.P=Math.max(Math.ceil(n/this.F),1);for(let e=0;e>1)-(r>>1),this.D=this.N=this.F-n%this.F>>1;let i=this;e.forEach((function(e){i.pushBack(e)}))}T(){let e=[],t=Math.max(this.P>>1,1);for(let n=0;n>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(0!==this.i)return this.A[this.j][this.D]}back(){if(0!==this.i)return this.A[this.R][this.N]}pushBack(e){return this.i&&(this.N0?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,e}pushFront(e){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]=e,this.i}popFront(){if(0===this.i)return;let e=this.A[this.j][this.D];return 1!==this.i&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:t,curNodePointerIndex:n}=this.O(e);return this.A[t][n]}setElementByPos(e,t){if(e<0||e>this.i-1)throw new RangeError;let{curNodeBucketIndex:n,curNodePointerIndex:r}=this.O(e);this.A[n][r]=t}insert(e,t,n=1){if(e<0||e>this.i)throw new RangeError;if(0===e)for(;n--;)this.pushFront(t);else if(e===this.i)for(;n--;)this.pushBack(t);else{let r=[];for(let t=e;tthis.i-1)throw new RangeError;if(0===e)this.popFront();else if(e===this.i-1)this.popBack();else{let t=[];for(let n=e+1;ne;)this.popBack();return this.i}sort(e){let t=[];for(let e=0;e{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(e,t){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=e,this.l=t}L(){let e=this;if(1===e.ee&&e.tt.tt===e)e=e.W;else if(e.U)for(e=e.U;e.W;)e=e.W;else{let t=e.tt;for(;t.U===e;)e=t,t=e.tt;e=t}return e}B(){let e=this;if(e.W){for(e=e.W;e.U;)e=e.U;return e}{let t=e.tt;for(;t.W===e;)e=t,t=e.tt;return e.W!==t?t:e}}te(){let e=this.tt,t=this.W,n=t.U;return e.tt===this?e.tt=t:e.U===this?e.U=t:e.W=t,t.tt=e,t.U=this,this.tt=t,this.W=n,n&&(n.tt=this),t}se(){let e=this.tt,t=this.U,n=t.W;return e.tt===this?e.tt=t:e.U===this?e.U=t:e.W=t,t.tt=e,t.W=this,this.tt=t,this.U=n,n&&(n.tt=this),t}};e.TreeNode=t;e.TreeNodeEnableIndex=class extends t{constructor(){super(...arguments),this.rt=1}te(){let e=super.te();return this.ie(),e.ie(),e}se(){let e=super.se();return this.ie(),e.ie(),e}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}}})),qi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Ui(),n=Pi(),r=Di(),i=class extends n.Container{constructor(e=function(e,t){return et?1:0},n=!1){super(),this.Y=void 0,this.v=e,n?(this.re=t.TreeNodeEnableIndex,this.M=function(e,t,n){let r=this.ne(e,t,n);if(r){let e=r.tt;for(;e!==this.h;)e.rt+=1,e=e.tt;let t=this.he(r);if(t){let{parentNode:e,grandParent:n,curNode:r}=t;e.ie(),n.ie(),r.ie()}}return this.i},this.V=function(e){let t=this.fe(e);for(;t!==this.h;)t.rt-=1,t=t.tt}):(this.re=t.TreeNode,this.M=function(e,t,n){let r=this.ne(e,t,n);return r&&this.he(r),this.i},this.V=this.fe),this.h=new this.re}X(e,t){let n=this.h;for(;e;){let r=this.v(e.u,t);if(r<0)e=e.W;else{if(!(r>0))return e;n=e,e=e.U}}return n}Z(e,t){let n=this.h;for(;e;)this.v(e.u,t)<=0?e=e.W:(n=e,e=e.U);return n}$(e,t){let n=this.h;for(;e;){let r=this.v(e.u,t);if(r<0)n=e,e=e.W;else{if(!(r>0))return e;e=e.U}}return n}rr(e,t){let n=this.h;for(;e;)this.v(e.u,t)<0?(n=e,e=e.W):e=e.U;return n}ue(e){for(;;){let t=e.tt;if(t===this.h)return;if(1===e.ee)return void(e.ee=0);if(e===t.U){let n=t.W;if(1===n.ee)n.ee=0,t.ee=1,t===this.Y?this.Y=t.te():t.te();else{if(n.W&&1===n.W.ee)return n.ee=t.ee,t.ee=0,n.W.ee=0,void(t===this.Y?this.Y=t.te():t.te());n.U&&1===n.U.ee?(n.ee=1,n.U.ee=0,n.se()):(n.ee=1,e=t)}}else{let n=t.U;if(1===n.ee)n.ee=0,t.ee=1,t===this.Y?this.Y=t.se():t.se();else{if(n.U&&1===n.U.ee)return n.ee=t.ee,t.ee=0,n.U.ee=0,void(t===this.Y?this.Y=t.se():t.se());n.W&&1===n.W.ee?(n.ee=1,n.W.ee=0,n.te()):(n.ee=1,e=t)}}}}fe(e){if(1===this.i)return this.clear(),this.h;let t=e;for(;t.U||t.W;){if(t.W)for(t=t.W;t.U;)t=t.U;else t=t.U;[e.u,t.u]=[t.u,e.u],[e.l,t.l]=[t.l,e.l],e=t}this.h.U===t?this.h.U=t.tt:this.h.W===t&&(this.h.W=t.tt),this.ue(t);let n=t.tt;return t===n.U?n.U=void 0:n.W=void 0,this.i-=1,this.Y.ee=0,n}oe(e,t){return void 0!==e&&(!(!this.oe(e.U,t)&&!t(e))||this.oe(e.W,t))}he(e){for(;;){let t=e.tt;if(0===t.ee)return;let n=t.tt;if(t===n.U){let r=n.W;if(r&&1===r.ee){if(r.ee=t.ee=0,n===this.Y)return;n.ee=1,e=n;continue}if(e===t.W){if(e.ee=0,e.U&&(e.U.tt=t),e.W&&(e.W.tt=n),t.W=e.U,n.U=e.W,e.U=t,e.W=n,n===this.Y)this.Y=e,this.h.tt=e;else{let t=n.tt;t.U===n?t.U=e:t.W=e}return e.tt=n.tt,t.tt=e,n.tt=e,n.ee=1,{parentNode:t,grandParent:n,curNode:e}}t.ee=0,n===this.Y?this.Y=n.se():n.se(),n.ee=1}else{let r=n.U;if(r&&1===r.ee){if(r.ee=t.ee=0,n===this.Y)return;n.ee=1,e=n;continue}if(e===t.U){if(e.ee=0,e.U&&(e.U.tt=n),e.W&&(e.W.tt=t),n.W=e.U,t.U=e.W,e.U=n,e.W=t,n===this.Y)this.Y=e,this.h.tt=e;else{let t=n.tt;t.U===n?t.U=e:t.W=e}return e.tt=n.tt,t.tt=e,n.tt=e,n.ee=1,{parentNode:t,grandParent:n,curNode:e}}t.ee=0,n===this.Y?this.Y=n.te():n.te(),n.ee=1}return}}ne(e,t,n){if(void 0===this.Y)return this.i+=1,this.Y=new this.re(e,t),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,void(this.h.W=this.Y);let r,i=this.h.U,o=this.v(i.u,e);if(0!==o){if(o>0)i.U=new this.re(e,t),i.U.tt=i,r=i.U,this.h.U=r;else{let i=this.h.W,o=this.v(i.u,e);if(0===o)return void(i.l=t);if(o<0)i.W=new this.re(e,t),i.W.tt=i,r=i.W,this.h.W=r;else{if(void 0!==n){let i=n.o;if(i!==this.h){let n=this.v(i.u,e);if(0===n)return void(i.l=t);if(n>0){let n=i.L(),o=this.v(n.u,e);if(0===o)return void(n.l=t);o<0&&(r=new this.re(e,t),void 0===n.W?(n.W=r,r.tt=n):(i.U=r,r.tt=i))}}}if(void 0===r)for(r=this.Y;;){let n=this.v(r.u,e);if(n>0){if(void 0===r.U){r.U=new this.re(e,t),r.U.tt=r,r=r.U;break}r=r.U}else{if(!(n<0))return void(r.l=t);if(void 0===r.W){r.W=new this.re(e,t),r.W.tt=r,r=r.W;break}r=r.W}}}}return this.i+=1,r}i.l=t}I(e,t){for(;e;){let n=this.v(e.u,t);if(n<0)e=e.W;else{if(!(n>0))return e;e=e.U}}return e||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(e,t){let n=e.o;if(n===this.h&&(0,r.throwIteratorAccessError)(),1===this.i)return n.u=t,!0;if(n===this.h.U)return this.v(n.B().u,t)>0&&(n.u=t,!0);if(n===this.h.W)return this.v(n.L().u,t)<0&&(n.u=t,!0);let i=n.L().u;if(this.v(i,t)>=0)return!1;let o=n.B().u;return!(this.v(o,t)<=0)&&(n.u=t,!0)}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=0,n=this;return this.oe(this.Y,(function(r){return e===t?(n.V(r),!0):(t+=1,!1)})),this.i}eraseElementByKey(e){if(0===this.i)return!1;let t=this.I(this.Y,e);return t!==this.h&&(this.V(t),!0)}eraseElementByIterator(e){let t=e.o;t===this.h&&(0,r.throwIteratorAccessError)();let n=void 0===t.W;return 0===e.iteratorType?n&&e.next():(!n||void 0===t.U)&&e.next(),this.V(t),e}forEach(e){let t=0;for(let n of this)e(n,t++,this)}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t,n=0;for(let r of this){if(n===e){t=r;break}n+=1}return t}getHeight(){if(0===this.i)return 0;let e=function(t){return t?Math.max(e(t.U),e(t.W))+1:0};return e(this.Y)}},o=i;e.default=o})),Zi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Pi(),n=Di(),r=class extends t.ContainerIterator{constructor(e,t,r){super(r),this.o=e,this.h=t,0===this.iteratorType?(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 e=this.o,t=this.h.tt;if(e===this.h)return t?t.rt-1:0;let n=0;for(e.U&&(n+=e.U.rt);e!==t;){let t=e.tt;e===t.W&&(n+=1,t.U&&(n+=t.U.rt)),e=t}return n}};e.default=r})),zi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(qi()),n=i(Zi()),r=Di();function i(e){return e&&e.t?e:{default:e}}var o=class e extends n.default{constructor(e,t,n,r){super(e,t,r),this.container=n}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(e=[],t,n){super(t,n);let r=this;e.forEach((function(e){r.insert(e)}))}*K(e){void 0!==e&&(yield*this.K(e.U),yield e.u,yield*this.K(e.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(e,t){return this.M(e,void 0,t)}find(e){let t=this.I(this.Y,e);return new o(t,this.h,this)}lowerBound(e){let t=this.X(this.Y,e);return new o(t,this.h,this)}upperBound(e){let t=this.Z(this.Y,e);return new o(t,this.h,this)}reverseLowerBound(e){let t=this.$(this.Y,e);return new o(t,this.h,this)}reverseUpperBound(e){let t=this.rr(this.Y,e);return new o(t,this.h,this)}union(e){let t=this;return e.forEach((function(e){t.insert(e)})),this.i}[Symbol.iterator](){return this.K(this.Y)}};e.default=a})),Hi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(qi()),n=i(Zi()),r=Di();function i(e){return e&&e.t?e:{default:e}}var o=class e extends n.default{constructor(e,t,n,r){super(e,t,r),this.container=n}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let e=this;return new Proxy([],{get(t,n){return"0"===n?e.o.u:"1"===n?e.o.l:void 0},set(t,n,r){if("1"!==n)throw new TypeError("props must be 1");return e.o.l=r,!0}})}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(e=[],t,n){super(t,n);let r=this;e.forEach((function(e){r.setElement(e[0],e[1])}))}*K(e){void 0!==e&&(yield*this.K(e.U),yield[e.u,e.l],yield*this.K(e.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(0===this.i)return;let e=this.h.U;return[e.u,e.l]}back(){if(0===this.i)return;let e=this.h.W;return[e.u,e.l]}lowerBound(e){let t=this.X(this.Y,e);return new o(t,this.h,this)}upperBound(e){let t=this.Z(this.Y,e);return new o(t,this.h,this)}reverseLowerBound(e){let t=this.$(this.Y,e);return new o(t,this.h,this)}reverseUpperBound(e){let t=this.rr(this.Y,e);return new o(t,this.h,this)}setElement(e,t,n){return this.M(e,t,n)}find(e){let t=this.I(this.Y,e);return new o(t,this.h,this)}getElementByKey(e){return this.I(this.Y,e).l}union(e){let t=this;return e.forEach((function(e){t.setElement(e[0],e[1])})),this.i}[Symbol.iterator](){return this.K(this.Y)}};e.default=a})),Wi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=function(e){let t=typeof e;return"object"===t&&null!==e||"function"===t}})),Vi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t,n=Pi(),r=(t=Wi())&&t.t?t:{default:t},i=Di();var o=class extends n.ContainerIterator{constructor(e,t,n){super(n),this.o=e,this.h=t,0===this.iteratorType?(this.pre=function(){return this.o.L===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=o;var a=class extends n.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(e){let{L:t,B:n}=e;t.B=n,n.L=t,e===this.p&&(this.p=n),e===this._&&(this._=t),this.i-=1}M(e,t,n){let i;if(void 0===n&&(n=(0,r.default)(e)),n){let n=e[this.HASH_TAG];if(void 0!==n)return this.H[n].l=t,this.i;Object.defineProperty(e,this.HASH_TAG,{value:this.H.length,configurable:!0}),i={u:e,l:t,L:this._,B:this.h},this.H.push(i)}else{let n=this.g[e];if(n)return n.l=t,this.i;i={u:e,l:t,L:this._,B:this.h},this.g[e]=i}return 0===this.i?(this.p=i,this.h.B=i):this._.B=i,this._=i,this.h.L=i,++this.i}I(e,t){if(void 0===t&&(t=(0,r.default)(e)),t){let t=e[this.HASH_TAG];return void 0===t?this.h:this.H[t]}return this.g[e]||this.h}clear(){let e=this.HASH_TAG;this.H.forEach((function(t){delete t.u[e]})),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(e,t){let n;if(void 0===t&&(t=(0,r.default)(e)),t){let t=e[this.HASH_TAG];if(void 0===t)return!1;delete e[this.HASH_TAG],n=this.H[t],delete this.H[t]}else{if(n=this.g[e],void 0===n)return!1;delete this.g[e]}return this.V(n),!0}eraseElementByIterator(e){let t=e.o;return t===this.h&&(0,i.throwIteratorAccessError)(),this.V(t),e.next()}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return this.V(t),this.i}};e.HashContainer=a})),Gi=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Vi(),n=Di(),r=class e extends t.HashContainerIterator{constructor(e,t,n,r){super(e,t,r),this.container=n}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},i=class extends t.HashContainer{constructor(e=[]){super();let t=this;e.forEach((function(e){t.insert(e)}))}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(e,t){return this.M(e,void 0,t)}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return t.u}find(e,t){let n=this.I(e,t);return new r(n,this.h,this)}forEach(e){let t=0,n=this.p;for(;n!==this.h;)e(n.u,t++,this),n=n.B}[Symbol.iterator](){return function*(){let e=this.p;for(;e!==this.h;)yield e.u,e=e.B}.bind(this)()}};e.default=i})),Ki=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t,n=Vi(),r=(t=Wi())&&t.t?t:{default:t},i=Di();var o=class e extends n.HashContainerIterator{constructor(e,t,n,r){super(e,t,r),this.container=n}get pointer(){this.o===this.h&&(0,i.throwIteratorAccessError)();let e=this;return new Proxy([],{get(t,n){return"0"===n?e.o.u:"1"===n?e.o.l:void 0},set(t,n,r){if("1"!==n)throw new TypeError("props must be 1");return e.o.l=r,!0}})}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},a=class extends n.HashContainer{constructor(e=[]){super();let t=this;e.forEach((function(e){t.setElement(e[0],e[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(0!==this.i)return[this.p.u,this.p.l]}back(){if(0!==this.i)return[this._.u,this._.l]}setElement(e,t,n){return this.M(e,t,n)}getElementByKey(e,t){if(void 0===t&&(t=(0,r.default)(e)),t){let t=e[this.HASH_TAG];return void 0!==t?this.H[t].l:void 0}let n=this.g[e];return n?n.l:void 0}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return[t.u,t.l]}find(e,t){let n=this.I(e,t);return new o(n,this.h,this)}forEach(e){let t=0,n=this.p;for(;n!==this.h;)e([n.u,n.l],t++,this),n=n.B}[Symbol.iterator](){return function*(){let e=this.p;for(;e!==this.h;)yield[e.u,e.l],e=e.B}.bind(this)()}};e.default=a})),Yi=K((e=>{Q(),Zt(),Ot(),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 l.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return c.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=f(Ii()),n=f(Mi()),r=f(Li()),i=f(Bi()),o=f(Fi()),a=f($i()),s=f(zi()),c=f(Hi()),l=f(Gi()),u=f(Ki());function f(e){return e&&e.t?e:{default:e}}})),Xi=K(((e,t)=>{Q(),Zt(),Ot();var n=Yi().OrderedSet,r=pi()("number-allocator:trace"),i=pi()("number-allocator:error");function o(e,t){this.low=e,this.high=t}function a(e,t){if(!(this instanceof a))return new a(e,t);this.min=e,this.max=t,this.ss=new n([],((e,t)=>e.compare(t))),r("Create"),this.clear()}o.prototype.equals=function(e){return this.low===e.low&&this.high===e.high},o.prototype.compare=function(e){return this.lowe)&&(i===e?(this.ss.updateKeyByIterator(n,new o(i+1,a)),r("use():"+e),!0):a===e?(this.ss.updateKeyByIterator(n,new o(i,a-1)),r("use():"+e),!0):(this.ss.updateKeyByIterator(n,new o(e+1,a)),this.ss.insert(new o(i,e-1)),r("use():"+e),!0))}return r("use():failed"),!1},a.prototype.free=function(e){if(ethis.max)return void i("free():"+e+" is out of range");let t=new o(e,e),n=this.ss.upperBound(t);if(n.equals(this.ss.end())){if(n.equals(this.ss.begin()))return void this.ss.insert(t);n.pre();let r=n.pointer.high;n.pointer.high+1===e?this.ss.updateKeyByIterator(n,new o(r,e)):this.ss.insert(t)}else if(n.equals(this.ss.begin()))if(e+1===n.pointer.low){let t=n.pointer.high;this.ss.updateKeyByIterator(n,new o(e,t))}else this.ss.insert(t);else{let r=n.pointer.low,i=n.pointer.high;n.pre();let a=n.pointer.low;n.pointer.high+1===e?e+1===r?(this.ss.eraseElementByIterator(n),this.ss.updateKeyByIterator(n,new o(a,i))):this.ss.updateKeyByIterator(n,new o(a,e)):e+1===r?(this.ss.eraseElementByIterator(n.next()),this.ss.insert(new o(e,i))):this.ss.insert(t)}r("free():"+e)},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 e of this.ss)console.log(e)},t.exports=a})),Qi=K(((e,t)=>{Q(),Zt(),Ot();var n=Xi();t.exports.NumberAllocator=n})),Ji=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ri(),n=Qi();e.default=class{constructor(e){e>0&&(this.aliasToTopic=new t.LRUCache({max:e}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,e),this.max=e,this.length=0)}put(e,t){if(0===t||t>this.max)return!1;let n=this.aliasToTopic.get(t);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(t,e),this.topicToAlias[e]=t,this.numberAllocator.use(t),this.length=this.aliasToTopic.size,!0}getTopicByAlias(e){return this.aliasToTopic.get(e)}getAliasByTopic(e){let t=this.topicToAlias[e];return typeof t<"u"&&this.aliasToTopic.get(t),t}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}}})),eo=K((e=>{Q(),Zt(),Ot();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=Ai(),r=t(Ji()),i=Ci();e.default=(e,t)=>{e.log("_handleConnack");let{options:o}=e,a=5===o.protocolVersion?t.reasonCode:t.returnCode;if(clearTimeout(e.connackTimer),delete e.topicAliasSend,t.properties){if(t.properties.topicAliasMaximum){if(t.properties.topicAliasMaximum>65535)return void e.emit("error",new Error("topicAliasMaximum from broker is out of range"));t.properties.topicAliasMaximum>0&&(e.topicAliasSend=new r.default(t.properties.topicAliasMaximum))}t.properties.serverKeepAlive&&o.keepalive&&(o.keepalive=t.properties.serverKeepAlive),t.properties.maximumPacketSize&&(o.properties||(o.properties={}),o.properties.maximumPacketSize=t.properties.maximumPacketSize)}if(0===a)e.reconnecting=!1,e._onConnect(t);else if(a>0){let t=new i.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[a]}`,a);e.emit("error",t),e.options.reconnectOnConnackError&&e._cleanUp(!0)}}})),to=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});e.default=(e,t,n)=>{e.log("handling pubrel packet");let r=typeof n<"u"?n:e.noop,{messageId:i}=t,o={cmd:"pubcomp",messageId:i};e.incomingStore.get(t,((t,n)=>{t?e._sendPacket(o,r):(e.emit("message",n.topic,n.payload,n),e.handleMessage(n,(t=>{if(t)return r(t);e.incomingStore.del(n,e.noop),e._sendPacket(o,r)})))}))}})),no=K((e=>{Q(),Zt(),Ot();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(_i()),r=t(Oi()),i=t(eo()),o=t(Ai()),a=t(to());e.default=(e,t,s)=>{let{options:c}=e;if(5===c.protocolVersion&&c.properties&&c.properties.maximumPacketSize&&c.properties.maximumPacketSize{Q(),Zt(),Ot();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((_n(),X(yn))),r=Ci(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)})),io=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t,n=()=>{var e,t;return!("object"!=typeof self||null===(t=null===(e=self?.constructor)||void 0===e?void 0:e.name)||void 0===t||!t.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&"ReactNative"===navigator.product,i=typeof window<"u"&&(typeof navigator<"u"&&(null===(t=navigator.userAgent)||void 0===t?void 0:t.toLowerCase().indexOf(" electron/"))>-1&&null!=J&&J.versions?!Object.prototype.hasOwnProperty.call(J.versions,"electron"):typeof window.document<"u")||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=i})),oo=K(((e,t)=>{var r,i;Q(),Zt(),Ot(),r=e,i=function(e){var t=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=536870912,r=2*n,i=new WeakMap,o=function(e){return function(t,n){return e.set(t,n),n}}(i),a=function(e,i){return function(o){var a=i.get(o),s=void 0===a?o.size:at)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;o.has(s);)s=Math.floor(Math.random()*t);return e(o,s)}}(o,i),s=function(e){return function(t){var n=e(t);return t.add(n),n}}(a);e.addUniqueNumber=s,e.generateUniqueNumber=a},"object"==typeof e&&typeof t<"u"?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})})),ao=K(((e,t)=>{var r,i;Q(),Zt(),Ot(),r=e,i=function(e,t){e.load=function(e){var n=new Map([[0,function(){}]]),r=new Map([[0,function(){}]]),i=new Map,o=new Worker(e);return o.addEventListener("message",(function(e){var t=e.data;if(function(e){return void 0!==e.method&&"call"===e.method}(t)){var o=t.params,a=o.timerId,s=o.timerType;if("interval"===s){var c=n.get(a);if("number"==typeof c){var l=i.get(c);if(void 0===l||l.timerId!==a||l.timerType!==s)throw new Error("The timer is in an undefined state.")}else{if(!(typeof c<"u"))throw new Error("The timer is in an undefined state.");c()}}else if("timeout"===s){var u=r.get(a);if("number"==typeof u){var f=i.get(u);if(void 0===f||f.timerId!==a||f.timerType!==s)throw new Error("The timer is in an undefined state.")}else{if(!(typeof u<"u"))throw new Error("The timer is in an undefined state.");u(),r.delete(a)}}}else{if(!function(e){return null===e.error&&"number"==typeof e.id}(t)){var d=t.error.message;throw new Error(d)}var p=t.id,h=i.get(p);if(void 0===h)throw new Error("The timer is in an undefined state.");var m=h.timerId,g=h.timerType;i.delete(p),"interval"===g?n.delete(m):r.delete(m)}})),{clearInterval:function(e){var r=t.generateUniqueNumber(i);i.set(r,{timerId:e,timerType:"interval"}),n.set(e,r),o.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:function(e){var n=t.generateUniqueNumber(i);i.set(n,{timerId:e,timerType:"timeout"}),r.set(e,n),o.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.generateUniqueNumber(n);return n.set(i,(function(){e(),"function"==typeof n.get(i)&&o.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:i,timerType:"interval"}})})),o.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:i,timerType:"interval"}}),i},setTimeout:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.generateUniqueNumber(r);return r.set(i,e),o.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:i,timerType:"timeout"}}),i}}}},"object"==typeof e&&typeof t<"u"?i(e,oo()):"function"==typeof define&&n.amdO?define(["exports","fast-unique-numbers"],i):i((r=typeof globalThis<"u"?globalThis:r||self).workerTimersBroker={},r.fastUniqueNumbers)})),so=K(((e,t)=>{var r,i;Q(),Zt(),Ot(),r=e,i=function(e,t){var n=function(e,t){var n=null;return function(){if(null!==n)return n;var r=new Blob([t],{type:"application/javascript; charset=utf-8"}),i=URL.createObjectURL(r);return n=e(i),setTimeout((function(){return URL.revokeObjectURL(i)})),n}}(t.load,'(()=>{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)})()})();');e.clearInterval=function(e){return n().clearInterval(e)},e.clearTimeout=function(e){return n().clearTimeout(e)},e.setInterval=function(){var e;return(e=n()).setInterval.apply(e,arguments)},e.setTimeout=function(){var e;return(e=n()).setTimeout.apply(e,arguments)}},"object"==typeof e&&typeof t<"u"?i(e,ao()):"function"==typeof define&&n.amdO?define(["exports","worker-timers-broker"],i):i((r=typeof globalThis<"u"?globalThis:r||self).workerTimers={},r.workerTimersBroker)})),co=K((e=>{Q(),Zt(),Ot();var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0});var i=r(io()),o=so(),a={set:o.setInterval,clear:o.clearInterval},s={set:(e,t)=>setInterval(e,t),clear:e=>clearInterval(e)};e.default=e=>{switch(e){case"native":return s;case"worker":return a;default:return!i.default||i.isWebWorker||i.isReactNativeBrowser?s:a}}})),lo=K((e=>{Q(),Zt(),Ot();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(co());e.default=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(e,t){this.destroyed=!1,this.client=e,this.timer="object"==typeof t&&"set"in t&&"clear"in t?t:(0,n.default)(t),this.setKeepalive(e.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(e){if(e*=1e3,isNaN(e)||e<=0||e>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${e}`);this._keepalive=e,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${e}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let e=Math.ceil(1.5*this._keepalive);this._keepaliveTimeoutTimestamp=Date.now()+e,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set((()=>{this.destroyed||(this.counter+=1,2===this.counter?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())}),this._intervalEvery)}}})),uo=K((e=>{Q(),Zt(),Ot();var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(zt()),a=i(bi()),s=i(wi()),c=oi(),l=i(Ei()),u=r(Si()),f=i(pi()),d=i(xi()),p=i(no()),h=Ci(),m=ro(),g=i(lo()),v=r(io()),y=globalThis.setImmediate||((...e)=>{let t=e.shift();(0,h.nextTick)((()=>{t(...e)}))}),b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},w=class e extends m.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(t,n){super(),this.options=n||{};for(let e in b)typeof this.options[e]>"u"?this.options[e]=b[e]:this.options[e]=n[e];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",e.VERSION),v.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",v.default?"browser":"node"),this.log("MqttClient :: options.protocol",n.protocol),this.log("MqttClient :: options.protocolVersion",n.protocolVersion),this.log("MqttClient :: options.username",n.username),this.log("MqttClient :: options.keepalive",n.keepalive),this.log("MqttClient :: options.reconnectPeriod",n.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",n.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",n.properties?n.properties.topicAliasMaximum:void 0),this.options.clientId="string"==typeof n.clientId?n.clientId:e.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=5===n.protocolVersion&&n.customHandleAcks?n.customHandleAcks:(...e)=>{e[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=t,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=n.outgoingStore||new d.default,this.incomingStore=n.incomingStore||new d.default,this.queueQoSZero=void 0===n.queueQoSZero||n.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,n.properties&&n.properties.topicAliasMaximum>0&&(n.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new o.default(n.properties.topicAliasMaximum)),this.on("connect",(()=>{let{queue:e}=this,t=()=>{let n=e.shift();this.log("deliver :: entry %o",n);let r=null;if(!n)return void this._resubscribe();r=n.packet,this.log("deliver :: call _sendPacket for %o",r);let i=!0;r.messageId&&0!==r.messageId&&(this.messageIdProvider.register(r.messageId)||(i=!1)),i?this._sendPacket(r,(e=>{n.cb&&n.cb(e),t()})):(this.log("messageId: %d has already used. The message is skipped and removed.",r.messageId),t())};this.log("connect :: sending queued packets"),t()})),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(e,t){t()}handleMessage(e,t){t()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var e;let t=new c.Writable,n=a.default.parser(this.options),r=null,i=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",(e=>{this.log("parser :: on packet push to packets array."),i.push(e)}));let o=()=>{this.log("work :: getting next packet in queue");let e=i.shift();if(e)this.log("work :: packet pulled from queue"),(0,p.default)(this,e,s);else{this.log("work :: no packets in queue");let e=r;r=null,this.log("work :: done flag is %s",!!e),e&&e()}},s=()=>{if(i.length)(0,h.nextTick)(o);else{let e=r;r=null,e()}};t._write=(e,t,i)=>{r=i,this.log("writable stream :: parsing buffer"),n.parse(e),o()};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(t),this.stream.on("error",(e=>{this.log("streamErrorHandler :: error",e.message),e.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",e)):this.noop(e)})),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 l={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&&(l.will=Object.assign(Object.assign({},this.options.will),{payload:null===(e=this.options.will)||void 0===e?void 0:e.payload})),this.topicAliasRecv&&(l.properties||(l.properties={}),this.topicAliasRecv&&(l.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(l),n.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&&"object"==typeof this.options.authPacket){let e=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(e)}}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(e,t,n,r){this.log("publish :: message `%s` to topic `%s`",t,e);let{options:i}=this;"function"==typeof n&&(r=n,n=null),n=n||{},n=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),n);let{qos:o,retain:a,dup:s,properties:c,cbStorePut:l}=n;if(this._checkDisconnecting(r))return this;let u=()=>{let n=0;if((1===o||2===o)&&(n=this._nextId(),null===n))return this.log("No messageId left"),!1;let u={cmd:"publish",topic:e,payload:t,qos:o,retain:a,messageId:n,dup:s};switch(5===i.protocolVersion&&(u.properties=c),this.log("publish :: qos",o),o){case 1:case 2:this.outgoing[u.messageId]={volatile:!1,cb:r||this.noop},this.log("MqttClient:publish: packet cmd: %s",u.cmd),this._sendPacket(u,void 0,l);break;default:this.log("MqttClient:publish: packet cmd: %s",u.cmd),this._sendPacket(u,r,l)}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!u())&&this._storeProcessingQueue.push({invoke:u,cbStorePut:n.cbStorePut,callback:r}),this}publishAsync(e,t,n){return new Promise(((r,i)=>{this.publish(e,t,n,((e,t)=>{e?i(e):r(t)}))}))}subscribe(e,t,n){let r=this.options.protocolVersion;"function"==typeof t&&(n=t),n=n||this.noop;let i=!1,o=[];"string"==typeof e?o=e=[e]:Array.isArray(e)?o=e:"object"==typeof e&&(i=e.resubscribe,delete e.resubscribe,o=Object.keys(e));let a=u.validateTopics(o);if(null!==a)return y(n,new Error(`Invalid topic ${a}`)),this;if(this._checkDisconnecting(n))return this.log("subscribe: discconecting true"),this;let s={qos:0};5===r&&(s.nl=!1,s.rap=!1,s.rh=0);let c=(t=Object.assign(Object.assign({},s),t)).properties,l=[],f=(e,n)=>{if(n=n||t,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,e)||this._resubscribeTopics[e].qos{this.log("subscribe: array topic %s",e),f(e)})):Object.keys(e).forEach((t=>{this.log("subscribe: object topic %s, %o",t,e[t]),f(t,e[t])})),!l.length)return n(null,[]),this;let d=()=>{let e=this._nextId();if(null===e)return this.log("No messageId left"),!1;let t={cmd:"subscribe",subscriptions:l,messageId:e};if(c&&(t.properties=c),this.options.resubscribe){this.log("subscribe :: resubscribe true");let e=[];l.forEach((t=>{if(this.options.reconnectPeriod>0){let n={qos:t.qos};5===r&&(n.nl=t.nl||!1,n.rap=t.rap||!1,n.rh=t.rh||0,n.properties=t.properties),this._resubscribeTopics[t.topic]=n,e.push(t.topic)}})),this.messageIdToTopic[t.messageId]=e}return this.outgoing[t.messageId]={volatile:!0,cb(e,t){if(!e){let{granted:e}=t;for(let t=0;t0||!d())&&this._storeProcessingQueue.push({invoke:d,callback:n}),this}subscribeAsync(e,t){return new Promise(((n,r)=>{this.subscribe(e,t,((e,t)=>{e?r(e):n(t)}))}))}unsubscribe(e,t,n){"string"==typeof e&&(e=[e]),"function"==typeof t&&(n=t),n=n||this.noop;let r=u.validateTopics(e);if(null!==r)return y(n,new Error(`Invalid topic ${r}`)),this;if(this._checkDisconnecting(n))return this;let i=()=>{let r=this._nextId();if(null===r)return this.log("No messageId left"),!1;let i={cmd:"unsubscribe",messageId:r,unsubscriptions:[]};return"string"==typeof e?i.unsubscriptions=[e]:Array.isArray(e)&&(i.unsubscriptions=e),this.options.resubscribe&&i.unsubscriptions.forEach((e=>{delete this._resubscribeTopics[e]})),"object"==typeof t&&t.properties&&(i.properties=t.properties),this.outgoing[i.messageId]={volatile:!0,cb:n},this.log("unsubscribe: call _sendPacket"),this._sendPacket(i),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!i())&&this._storeProcessingQueue.push({invoke:i,callback:n}),this}unsubscribeAsync(e,t){return new Promise(((n,r)=>{this.unsubscribe(e,t,((e,t)=>{e?r(e):n(t)}))}))}end(e,t,n){this.log("end :: (%s)",this.options.clientId),(null==e||"boolean"!=typeof e)&&(n=n||t,t=e,e=!1),"object"!=typeof t&&(n=n||t,t=null),this.log("end :: cb? %s",!!n),(!n||"function"!=typeof n)&&(n=this.noop);let r=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close((e=>{this.outgoingStore.close((t=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),n){let r=e||t;this.log("end :: closeStores: invoking callback with args"),n(r)}}))})),this._deferredReconnect?this._deferredReconnect():(0===this.options.reconnectPeriod||this.options.manualConnect)&&(this.disconnecting=!1)},i=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,e),this._cleanUp(e,(()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,h.nextTick)(r)}),t)};return this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&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,i,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),i()),this)}endAsync(e,t){return new Promise(((n,r)=>{this.end(e,t,(e=>{e?r(e):n()}))}))}removeOutgoingMessage(e){if(this.outgoing[e]){let{cb:t}=this.outgoing[e];this._removeOutgoingAndStoreMessage(e,(()=>{t(new Error("Message removed"))}))}return this}reconnect(e){this.log("client reconnect");let t=()=>{e?(this.options.incomingStore=e.incomingStore,this.options.outgoingStore=e.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=t:t(),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((e=>{this.outgoing[e].volatile&&"function"==typeof this.outgoing[e].cb&&(this.outgoing[e].cb(new Error("Connection closed")),delete this.outgoing[e])})))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach((e=>{"function"==typeof this.outgoing[e].cb&&(this.outgoing[e].cb(new Error("Connection closed")),delete this.outgoing[e])})))}_removeTopicAliasAndRecoverTopicName(e){let t;e.properties&&(t=e.properties.topicAlias);let n=e.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",t,n),0===n.length){if(typeof t>"u")return new Error("Unregistered Topic Alias");if(n=this.topicAliasSend.getTopicByAlias(t),typeof n>"u")return new Error("Unregistered Topic Alias");e.topic=n}t&&delete e.properties.topicAlias}_checkDisconnecting(e){return this.disconnecting&&(e&&e!==this.noop?e(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(e,t,n={}){if(t&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",t)),this.log("_cleanUp :: forced? %s",e),e)0===this.options.reconnectPeriod&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let e=Object.assign({cmd:"disconnect"},n);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(e,(()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),y((()=>{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(),t&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",t),t())}_storeAndSend(e,t,n){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",e.cmd);let r,i=e;if("publish"===i.cmd&&(i=(0,l.default)(e),r=this._removeTopicAliasAndRecoverTopicName(i),r))return t&&t(r);this.outgoingStore.put(i,(r=>{if(r)return t&&t(r);n(),this._writePacket(e,t)}))}_applyTopicAlias(e){if(5===this.options.protocolVersion&&"publish"===e.cmd){let t;e.properties&&(t=e.properties.topicAlias);let n=e.topic.toString();if(this.topicAliasSend)if(t){if(0!==n.length&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",n,t),!this.topicAliasSend.put(n,t)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",n,t),new Error("Sending Topic Alias out of range")}else 0!==n.length&&(this.options.autoAssignTopicAlias?(t=this.topicAliasSend.getAliasByTopic(n),t?(e.topic="",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:t}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",n,t)):(t=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(n,t),e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:t}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",n,t))):this.options.autoUseTopicAlias&&(t=this.topicAliasSend.getAliasByTopic(n),t&&(e.topic="",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:t}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",n,t))));else if(t)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",n,t),new Error("Sending Topic Alias out of range")}}_noop(e){this.log("noop ::",e)}_writePacket(e,t){this.log("_writePacket :: packet: %O",e),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",e),this.log("_writePacket :: writing to stream");let n=a.default.writeToStream(e,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",n),!n&&t&&t!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",t)):t&&(this.log("_writePacket :: invoking cb"),t())}_sendPacket(e,t,n,r){this.log("_sendPacket :: (%s) :: start",this.options.clientId),n=n||this.noop,t=t||this.noop;let i=this._applyTopicAlias(e);if(i)t(i);else{if(!this.connected)return"auth"===e.cmd?void this._writePacket(e,t):(this.log("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(e,t,n));if(r)this._writePacket(e,t);else{switch(e.cmd){case"publish":break;case"pubrel":return void this._storeAndSend(e,t,n);default:return void this._writePacket(e,t)}switch(e.qos){case 2:case 1:this._storeAndSend(e,t,n);break;default:this._writePacket(e,t)}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}}}_storePacket(e,t,n){this.log("_storePacket :: packet: %o",e),this.log("_storePacket :: cb? %s",!!t),n=n||this.noop;let r=e;if("publish"===r.cmd){r=(0,l.default)(e);let n=this._removeTopicAliasAndRecoverTopicName(r);if(n)return t&&t(n)}let i=r.qos||0;0===i&&this.queueQoSZero||"publish"!==r.cmd?this.queue.push({packet:r,cb:t}):i>0?(t=this.outgoing[r.messageId]?this.outgoing[r.messageId].cb:null,this.outgoingStore.put(r,(e=>{if(e)return t&&t(e);n()}))):t&&t(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new g.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(e=!1){this.keepaliveManager&&this.options.keepalive&&(e||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 e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(5===this.options.protocolVersion){this.log("_resubscribe: protocolVersion 5");for(let t=0;t{let n=this.outgoingStore.createStream(),r=()=>{n.destroy(),n=null,this._flushStoreProcessingQueue(),i()},i=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",r),n.on("error",(e=>{i(),this._flushStoreProcessingQueue(),this.removeListener("close",r),this.emit("error",e)}));let o=()=>{if(!n)return;let e,t=n.read(1);t?(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[t.messageId]?o():this.disconnecting||this.reconnectTimer?n.destroy&&n.destroy():(e=this.outgoing[t.messageId]?this.outgoing[t.messageId].cb:null,this.outgoing[t.messageId]={volatile:!1,cb(t,n){e&&e(t,n),o()}},this._packetIdsDuringStoreProcessing[t.messageId]=!0,this.messageIdProvider.register(t.messageId)?this._sendPacket(t,void 0,void 0,!0):this.log("messageId: %d has already used.",t.messageId))):n.once("readable",o)};n.on("end",(()=>{let n=!0;for(let e in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[e]){n=!1;break}this.removeListener("close",r),n?(i(),this._invokeAllStoreProcessingQueue(),this.emit("connect",e)):t()})),o()};t()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error("Connection closed")),e.callback&&e.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(e,t){delete this.outgoing[e],this.outgoingStore.del({messageId:e},((n,r)=>{t(n,r),this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue()}))}};w.VERSION=h.MQTTJS_VERSION,e.default=w})),fo=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});var t=Qi();e.default=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(e){return this.numberAllocator.use(e)}deallocate(e){this.numberAllocator.free(e)}clear(){this.numberAllocator.clear()}}}));function po(e){throw new RangeError(bo[e])}function ho(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let i=function(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(yo,".")).split("."),t).join(".");return r+i}function mo(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{Q(),Zt(),Ot(),go=/^xn--/,vo=/[^\0-\x7E]/,yo=/[\x2E\u3002\uFF0E\uFF61]/g,bo={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wo=Math.floor,ko=String.fromCharCode,Eo=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},So=function(e,t,n){let r=0;for(e=n?wo(e/700):e>>1,e+=wo(e/t);e>455;r+=36)e=wo(e/35);return wo(r+36*e/(e+38))},xo=function(e){let t=[],n=e.length,r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n=128&&po("not-basic"),t.push(e.charCodeAt(n));for(let c=a>0?a+1:0;c=n&&po("invalid-input");let a=(s=e.charCodeAt(c++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(a>=36||a>wo((2147483647-r)/t))&&po("overflow"),r+=a*t;let l=i<=o?1:i>=o+26?26:i-o;if(awo(2147483647/u)&&po("overflow"),t*=u}let l=t.length+1;o=So(r-a,l,0==a),wo(r/l)>2147483647-i&&po("overflow"),i+=wo(r/l),r%=l,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},_o=function(e){let t=[],n=(e=mo(e)).length,r=128,i=0,o=72;for(let n of e)n<128&&t.push(ko(n));let a=t.length,s=a;for(a&&t.push("-");s=r&&two((2147483647-i)/c)&&po("overflow"),i+=(n-r)*c,r=n;for(let n of e)if(n2147483647&&po("overflow"),n==r){let e=i;for(let n=36;;n+=36){let r=n<=o?1:n>=o+26?26:n-o;if(eString.fromCodePoint(...e)},decode:xo,encode:_o,toASCII:function(e){return ho(e,(function(e){return vo.test(e)?"xn--"+_o(e):e}))},toUnicode:function(e){return ho(e,(function(e){return go.test(e)?xo(e.slice(4).toLowerCase()):e}))}},To.encode,To.toASCII,To.toUnicode,To.ucs2,To.version}));function Ao(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Oo,Ro,Po,Io,Mo=G((()=>{Q(),Zt(),Ot(),Oo=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var c=0;c=0?(l=p.substr(0,h),u=p.substr(h+1)):(l=p,u=""),f=decodeURIComponent(l),d=decodeURIComponent(u),Ao(i,f)?Array.isArray(i[f])?i[f].push(d):i[f]=[i[f],d]:i[f]=d}return i},Ro=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Po=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var i=encodeURIComponent(Ro(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return i+encodeURIComponent(Ro(e))})).join(t):i+encodeURIComponent(Ro(e[r]))})).join(t):r?encodeURIComponent(Ro(r))+n+encodeURIComponent(Ro(e)):""},(Io={}).decode=Io.parse=Oo,Io.encode=Io.stringify=Po,Io.decode,Io.encode,Io.parse,Io.stringify}));function Lo(){throw new Error("setTimeout has not been defined")}function No(){throw new Error("clearTimeout has not been defined")}function Do(e){if(qo===setTimeout)return setTimeout(e,0);if((qo===Lo||!qo)&&setTimeout)return qo=setTimeout,setTimeout(e,0);try{return qo(e,0)}catch{try{return qo.call(null,e,0)}catch{return qo.call(this||zo,e,0)}}}function jo(){Go&&Wo&&(Go=!1,Wo.length?Vo=Wo.concat(Vo):Ko=-1,Vo.length&&Bo())}function Bo(){if(!Go){var e=Do(jo);Go=!0;for(var t=Vo.length;t;){for(Wo=Vo,Vo=[];++Ko{Q(),Zt(),Ot(),zo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:n.g,Ho=Uo={},function(){try{qo="function"==typeof setTimeout?setTimeout:Lo}catch{qo=Lo}try{Zo="function"==typeof clearTimeout?clearTimeout:No}catch{Zo=No}}(),Vo=[],Go=!1,Ko=-1,Ho.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var n=1;n{Q(),Zt(),Ot(),Jo={},ea=!1,ta=typeof globalThis<"u"?globalThis:typeof self<"u"?self:n.g,(na=Qo()).platform="browser",na.addListener,na.argv,na.binding,na.browser,na.chdir,na.cwd,na.emit,na.env,na.listeners,na.nextTick,na.off,na.on,na.once,na.prependListener,na.prependOnceListener,na.removeAllListeners,na.removeListener,na.title,na.umask,na.version,na.versions}));var ia,oa,aa,sa=G((()=>{Q(),Zt(),Ot(),ra(),ia={},oa=!1,aa=function(){if(oa)return ia;oa=!0;var e=na;function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===r&&(r=e.cwd()),s=r),t(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=n(e,!r)).length&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;il){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else a>l&&(47===e.charCodeAt(i+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(i+f);if(d!==n.charCodeAt(s+f))break;47===d&&(u=f)}var p="";for(f=i+u+1;f<=o;++f)(f===o||47===e.charCodeAt(f))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){i=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,l=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(i=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===i?-1===a?a=u:1!==f&&(f=1):-1!==a&&(f=-1);else if(!l){s=u+1;break}return-1===a||-1===c||0===f||1===f&&a===c-1&&a===s+1?-1!==c&&(n.base=n.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,c)):(n.name=e.slice(s,a),n.base=e.slice(s,c)),n.ext=e.slice(a,c)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,ia=r}()})),ca={};function la(){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 ua(e,t,n){if(e&&va.isObject(e)&&e instanceof la)return e;var r=new la;return r.parse(e,t,n),r}function fa(e){if("string"==typeof e)e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if("file:"!==e.protocol)throw new Deno.errors.InvalidData("invalid url scheme");return Fa?function(e){let t=e.hostname,n=e.pathname;for(let e=0;eBa||":"!==t)throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}(e):function(e){if(""!==e.hostname)throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let e=0;ens||":"!==t)throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}(e):function(e){if(""!==e.hostname)throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let e=0;eQa,Url:()=>Va,default:()=>ma,fileURLToPath:()=>pa,format:()=>Ga,parse:()=>Xa,pathToFileURL:()=>ha,resolve:()=>Ka,resolveObject:()=>Ya});var ma,ga,va,ya,ba,wa,ka,Ea,Sa,xa,_a,Ta,Ca,Aa,Oa,Ra,Pa,Ia,Ma,La,Na,Da,ja,Ba,Fa,$a,Ua,qa,Za,za,Ha,Wa,Va,Ga,Ka,Ya,Xa,Qa,Ja,es,ts,ns,rs,is,os,as,ss,cs,ls,us=G((()=>{Q(),Zt(),Ot(),Co(),Mo(),Xo(),sa(),ra(),ga=To,va={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}},(ma={}).parse=ua,ma.resolve=function(e,t){return ua(e,!1,!0).resolve(t)},ma.resolveObject=function(e,t){return e?ua(e,!1,!0).resolveObject(t):t},ma.format=function(e){return va.isString(e)&&(e=ua(e)),e instanceof la?e.format():la.prototype.format.call(e)},ma.Url=la,ya=/^([a-z0-9.+-]+:)/i,ba=/:[0-9]*$/,wa=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ka=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Ea=["'"].concat(ka),Sa=["%","/","?",";","#"].concat(Ea),xa=["/","?","#"],_a=/^[+a-z0-9A-Z_-]{0,63}$/,Ta=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ca={javascript:!0,"javascript:":!0},Aa={javascript:!0,"javascript:":!0},Oa={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ra=Io,la.prototype.parse=function(e,t,n){if(!va.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r127?w+="x":w+=b[k];if(!w.match(_a)){var S=v.slice(0,h),x=v.slice(h+1),_=b.match(Ta);_&&(S.push(_[1]),x.unshift(_[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=S.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=ga.toASCII(this.hostname));var T=this.port?":"+this.port:"",C=this.hostname||"";this.host=C+T,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Ca[l])for(h=0,y=Ea.length;h0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift())),n.search=e.search,n.query=e.query,va.isNull(n.pathname)&&va.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=b.slice(-1)[0],E=(n.host||e.host||b.length>1)&&("."===k||".."===k)||""===k,S=0,x=b.length;x>=0;x--)"."===(k=b[x])?b.splice(x,1):".."===k?(b.splice(x,1),S++):S&&(b.splice(x,1),S--);if(!v&&!y)for(;S--;S)b.unshift("..");!v||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),E&&"/"!==b.join("/").substr(-1)&&b.push("");var _,T=""===b[0]||b[0]&&"/"===b[0].charAt(0);return w&&(n.hostname=n.host=T?"":b.length?b.shift():"",(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift())),(v=v||n.host&&b.length)&&!T&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),va.isNull(n.pathname)&&va.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},la.prototype.parseHost=function(){var e=this.host,t=ba.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},ma.Url,ma.format,ma.resolve,ma.resolveObject,Pa={},Ia=!1,Ma=function(){if(Ia)return Pa;Ia=!0;var e=Yo;function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===r&&(r=e.cwd()),s=r),t(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=n(e,!r)).length&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;il){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else a>l&&(47===e.charCodeAt(i+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(i+f);if(d!==n.charCodeAt(s+f))break;47===d&&(u=f)}var p="";for(f=i+u+1;f<=o;++f)(f===o||47===e.charCodeAt(f))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){i=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,l=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(i=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===i?-1===a?a=u:1!==f&&(f=1):-1!==a&&(f=-1);else if(!l){s=u+1;break}return-1===a||-1===c||0===f||1===f&&a===c-1&&a===s+1?-1!==c&&(n.base=n.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,c)):(n.name=e.slice(s,a),n.base=e.slice(s,c)),n.ext=e.slice(a,c)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,Pa=r}(),La=typeof Deno<"u"?"windows"===Deno.build.os?"win32":Deno.build.os:void 0,ma.URL=typeof URL<"u"?URL:null,ma.pathToFileURL=da,ma.fileURLToPath=fa,ma.Url,ma.format,ma.resolve,ma.resolveObject,ma.URL,Na=92,Da=47,ja=97,Ba=122,Fa="win32"===La,$a=/\//g,Ua=/%/g,qa=/\\/g,Za=/\n/g,za=/\r/g,Ha=/\t/g,Wa=typeof Deno<"u"?"windows"===Deno.build.os?"win32":Deno.build.os:void 0,ma.URL=typeof URL<"u"?URL:null,ma.pathToFileURL=ha,ma.fileURLToPath=pa,Va=ma.Url,Ga=ma.format,Ka=ma.resolve,Ya=ma.resolveObject,Xa=ma.parse,Qa=ma.URL,Ja=92,es=47,ts=97,ns=122,rs="win32"===Wa,is=/\//g,os=/%/g,as=/\\/g,ss=/\n/g,cs=/\r/g,ls=/\t/g})),fs=K(((e,t)=>{Q(),Zt(),Ot(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}})),ds=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=oi(),n=(qt(),X(Rt));function r(e,t){let r=new Array(e.length);for(let t=0;t{this.destroyed||this.push(e)}))}_read(e){this.proxy.read(e)}_write(e,t,n){this.isSocketOpen?this.writeToProxy(e,t,n):this.writeQueue.push({chunk:e,encoding:t,cb:n})}_final(e){this.writeQueue=[],this.proxy.end(e)}_destroy(e,t){this.writeQueue=[],this.proxy.destroy(),t(e)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(e,t,n){!1===this.proxy.write(e,t)?this.proxy.once("drain",n):n()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:e,encoding:t,cb:n}=this.writeQueue.shift();this.writeToProxy(e,t,n)}}};e.BufferedDuplex=i})),ps=K((e=>{Q(),Zt(),Ot();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(qt(),X(Rt)),r=t(fs()),i=t(pi()),o=oi(),a=t(io()),s=ds(),c=(0,i.default)("mqttjs:ws"),l=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(e,t){let n=`${e.protocol}://${e.hostname}:${e.port}${e.path}`;return"function"==typeof e.transformWsUrl&&(n=e.transformWsUrl(n,e,t)),n}function f(e){let t=e;return e.port||("wss"===e.protocol?t.port=443:t.port=80),e.path||(t.path="/"),e.wsOptions||(t.wsOptions={}),!a.default&&!e.forceNativeWebSocket&&"wss"===e.protocol&&l.forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&!Object.prototype.hasOwnProperty.call(e.wsOptions,n)&&(t.wsOptions[n]=e[n])})),t}e.streamBuilder=(e,t)=>{c("streamBuilder");let n=f(t);n.hostname=n.hostname||n.host||"localhost";let i=u(n,e),o=function(e,t,n){c("createWebSocket"),c(`protocol: ${n.protocolId} ${n.protocolVersion}`);let i,o="MQIsdp"===n.protocolId&&3===n.protocolVersion?"mqttv3.1":"mqtt";return c(`creating new Websocket for url: ${t} and protocol: ${o}`),i=n.createWebsocket?n.createWebsocket(t,[o],n):new r.default(t,[o],n.wsOptions),i}(0,i,n),a=r.default.createWebSocketStream(o,n.wsOptions);return a.url=i,o.on("close",(()=>{a.destroy()})),a};e.browserStreamBuilder=(e,t)=>{c("browserStreamBuilder");let r,i=function(e){let t=f(e);if(t.hostname||(t.hostname=t.host),!t.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let e=new URL(document.URL);t.hostname=e.hostname,t.port||(t.port=Number(e.port))}return void 0===t.objectMode&&(t.objectMode=!(!0===t.binary||void 0===t.binary)),t}(t).browserBufferSize||524288,a=t.browserBufferTimeout||1e3,l=!t.objectMode,d=function(e,t){let n,r="MQIsdp"===t.protocolId&&3===t.protocolVersion?"mqttv3.1":"mqtt",i=u(t,e);return n=t.createWebsocket?t.createWebsocket(i,[r],t):new WebSocket(i,[r]),n.binaryType="arraybuffer",n}(e,t),p=function(e,t,n){let r=new o.Transform({objectMode:e.objectMode});return r._write=t,r._flush=n,r}(t,(function e(t,r,o){if(d.bufferedAmount>i)return void setTimeout(e,a,t,r,o);l&&"string"==typeof t&&(t=n.Buffer.from(t,"utf8"));try{d.send(t)}catch(e){return o(e)}o()}),(function(e){d.close(),e()}));t.objectMode||(p._writev=s.writev.bind(p)),p.on("close",(()=>{d.close()}));let h=typeof d.addEventListener<"u";function m(){c("WebSocket onOpen"),r instanceof s.BufferedDuplex&&r.socketReady()}function g(e){c("WebSocket onClose",e),r.end(),r.destroy()}function v(e){c("WebSocket onError",e);let t=new Error("WebSocket error");t.event=e,r.destroy(t)}async function y(e){let{data:t}=e;t=t instanceof ArrayBuffer?n.Buffer.from(t):t instanceof Blob?n.Buffer.from(await new Response(t).arrayBuffer()):n.Buffer.from(t,"utf8"),p&&!p.destroyed&&p.push(t)}return d.readyState===d.OPEN?(r=p,r.socket=d):(r=new s.BufferedDuplex(t,p,d),h?d.addEventListener("open",m):d.onopen=m),h?(d.addEventListener("close",g),d.addEventListener("error",v),d.addEventListener("message",y)):(d.onclose=g,d.onerror=v,d.onmessage=y),r}})),hs={};function ms(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}Y(hs,{Server:()=>ms,Socket:()=>ms,Stream:()=>ms,_createServerHandle:()=>ms,_normalizeArgs:()=>ms,_setSimultaneousAccepts:()=>ms,connect:()=>ms,createConnection:()=>ms,createServer:()=>ms,default:()=>gs,isIP:()=>ms,isIPv4:()=>ms,isIPv6:()=>ms});var gs,vs=G((()=>{Q(),Zt(),Ot(),gs={_createServerHandle:ms,_normalizeArgs:ms,_setSimultaneousAccepts:ms,connect:ms,createConnection:ms,createServer:ms,isIP:ms,isIPv4:ms,isIPv6:ms,Server:ms,Socket:ms,Stream:ms}})),ys=K((e=>{Q(),Zt(),Ot();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((vs(),X(hs))),r=(0,t(pi()).default)("mqttjs:tcp");e.default=(e,t)=>{t.port=t.port||1883,t.hostname=t.hostname||t.host||"localhost";let{port:i,path:o}=t,a=t.hostname;return r("port %d and host %s",i,a),n.default.createConnection({port:i,host:a,path:o})}})),bs={};Y(bs,{default:()=>ws});var ws,ks=G((()=>{Q(),Zt(),Ot(),ws={}})),Es=K((e=>{Q(),Zt(),Ot();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((ks(),X(bs))),r=t((vs(),X(hs))),i=(0,t(pi()).default)("mqttjs:tls");e.default=(e,t)=>{t.port=t.port||8883,t.host=t.hostname||t.host||"localhost",0===r.default.isIP(t.host)&&(t.servername=t.host),t.rejectUnauthorized=!1!==t.rejectUnauthorized,delete t.path,i("port %d host %s rejectUnauthorized %b",t.port,t.host,t.rejectUnauthorized);let o=n.default.connect(t);function a(n){t.rejectUnauthorized&&e.emit("error",n),o.end()}return o.on("secureConnect",(()=>{t.rejectUnauthorized&&!o.authorized?o.emit("error",new Error("TLS not authorized")):o.removeListener("error",a)})),o.on("error",a),o}})),Ss=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});var t,n,r,i=(qt(),X(Rt)),o=oi(),a=ds();e.default=(e,s)=>{if(s.hostname=s.hostname||s.host,!s.hostname)throw new Error("Could not determine host. Specify host manually.");let c="MQIsdp"===s.protocolId&&3===s.protocolVersion?"mqttv3.1":"mqtt";!function(e){e.hostname||(e.hostname="localhost"),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={})}(s);let l=function(e,t){let n="wxs"===e.protocol?"wss":"ws",r=`${n}://${e.hostname}${e.path}`;return e.port&&80!==e.port&&443!==e.port&&(r=`${n}://${e.hostname}:${e.port}${e.path}`),"function"==typeof e.transformWsUrl&&(r=e.transformWsUrl(r,e,t)),r}(s,e);t=wx.connectSocket({url:l,protocols:[c]}),n=function(){let e=new o.Transform;return e._write=(e,n,r)=>{t.send({data:e.buffer,success(){r()},fail(e){r(new Error(e))}})},e._flush=e=>{t.close({success(){e()}})},e}(),(r=new a.BufferedDuplex(s,n,t))._destroy=(e,n)=>{t.close({success(){n&&n(e)}})};let u=r.destroy;return r.destroy=(e,n)=>(r.destroy=u,setTimeout((()=>{t.close({fail(){r._destroy(e,n)}})}),0),r),t.onOpen((()=>{r.socketReady()})),t.onMessage((e=>{let{data:t}=e;t=t instanceof ArrayBuffer?i.Buffer.from(t):i.Buffer.from(t,"utf8"),n.push(t)})),t.onClose((()=>{r.emit("close"),r.end(),r.destroy()})),t.onError((e=>{let t=new Error(e.errMsg);r.destroy(t)})),r}})),xs=K((e=>{Q(),Zt(),Ot(),Object.defineProperty(e,"__esModule",{value:!0});var t,n,r,i=(qt(),X(Rt)),o=oi(),a=ds(),s=!1;e.default=(e,c)=>{if(c.hostname=c.hostname||c.host,!c.hostname)throw new Error("Could not determine host. Specify host manually.");let l="MQIsdp"===c.protocolId&&3===c.protocolVersion?"mqttv3.1":"mqtt";!function(e){e.hostname||(e.hostname="localhost"),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={})}(c);let u=function(e,t){let n="alis"===e.protocol?"wss":"ws",r=`${n}://${e.hostname}${e.path}`;return e.port&&80!==e.port&&443!==e.port&&(r=`${n}://${e.hostname}:${e.port}${e.path}`),"function"==typeof e.transformWsUrl&&(r=e.transformWsUrl(r,e,t)),r}(c,e);return(t=c.my).connectSocket({url:u,protocols:l}),n=function(){let e=new o.Transform;return e._write=(e,n,r)=>{t.sendSocketMessage({data:e.buffer,success(){r()},fail(){r(new Error)}})},e._flush=e=>{t.closeSocket({success(){e()}})},e}(),r=new a.BufferedDuplex(c,n,t),s||(s=!0,t.onSocketOpen((()=>{r.socketReady()})),t.onSocketMessage((e=>{if("string"==typeof e.data){let t=i.Buffer.from(e.data,"base64");n.push(t)}else{let t=new FileReader;t.addEventListener("load",(()=>{let e=t.result;e=e instanceof ArrayBuffer?i.Buffer.from(e):i.Buffer.from(e,"utf8"),n.push(e)})),t.readAsArrayBuffer(e.data)}})),t.onSocketClose((()=>{r.end(),r.destroy()})),t.onSocketError((e=>{r.destroy(e)}))),r}})),_s=K((e=>{Q(),Zt(),Ot();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(pi()),r=t((us(),X(ca))),i=t(uo()),o=t(io());"function"!=typeof(null==J?void 0:J.nextTick)&&(J.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function c(e,t){var n,c,l,u;if(a("connecting to an MQTT broker..."),"object"==typeof e&&!t&&(t=e,e=""),t=t||{},e&&"string"==typeof e){let i=r.default.parse(e,!0),o={};if(null!=i.port&&(o.port=Number(i.port)),o.host=i.hostname,o.query=i.query,o.auth=i.auth,o.protocol=i.protocol,o.path=i.path,o.protocol=null===(n=o.protocol)||void 0===n?void 0:n.replace(/:$/,""),!(t=Object.assign(Object.assign({},o),t)).protocol)throw new Error("Missing protocol")}if(t.unixSocket=t.unixSocket||(null===(c=t.protocol)||void 0===c?void 0:c.includes("+unix")),t.unixSocket?t.protocol=t.protocol.replace("+unix",""):null!==(l=t.protocol)&&void 0!==l&&l.startsWith("ws")||null!==(u=t.protocol)&&void 0!==u&&u.startsWith("wx")||delete t.path,function(e){let t;e.auth&&(t=e.auth.match(/^(.+):(.+)$/),t?(e.username=t[1],e.password=t[2]):e.username=e.auth)}(t),t.query&&"string"==typeof t.query.clientId&&(t.clientId=t.query.clientId),t.cert&&t.key){if(!t.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(t.protocol))switch(t.protocol){case"mqtt":t.protocol="mqtts";break;case"ws":t.protocol="wss";break;case"wx":t.protocol="wxs";break;case"ali":t.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${t.protocol}"!`)}}if(s||(s={},o.default||t.forceNativeWebSocket?(s.ws=ps().browserStreamBuilder,s.wss=ps().browserStreamBuilder,s.wx=Ss().default,s.wxs=Ss().default,s.ali=xs().default,s.alis=xs().default):(s.ws=ps().streamBuilder,s.wss=ps().streamBuilder,s.mqtt=ys().default,s.tcp=ys().default,s.ssl=Es().default,s.tls=s.ssl,s.mqtts=Es().default)),!s[t.protocol]){let e=-1!==["mqtts","wss"].indexOf(t.protocol);t.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter(((t,n)=>(!e||n%2!=0)&&"function"==typeof s[t]))[0]}if(!1===t.clean&&!t.clientId)throw new Error("Missing clientId for unclean clients");t.protocol&&(t.defaultProtocol=t.protocol);let f=new i.default((function(e){return t.servers&&((!e._reconnectCount||e._reconnectCount===t.servers.length)&&(e._reconnectCount=0),t.host=t.servers[e._reconnectCount].host,t.port=t.servers[e._reconnectCount].port,t.protocol=t.servers[e._reconnectCount].protocol?t.servers[e._reconnectCount].protocol:t.defaultProtocol,t.hostname=t.host,e._reconnectCount++),a("calling streambuilder for",t.protocol),s[t.protocol](e,t)}),t);return f.on("error",(()=>{})),f}e.connectAsync=function(e,t,n=!0){return new Promise(((r,i)=>{let o=c(e,t),a={connect:e=>{s(),r(o)},end:()=>{s(),r(o)},error:e=>{s(),o.end(),i(e)}};function s(){Object.keys(a).forEach((e=>{o.off(e,a[e])}))}!1===n&&(a.close=()=>{a.error(new Error("Couldn't connect to server"))}),Object.keys(a).forEach((e=>{o.on(e,a[e])}))}))},e.default=c})),Ts=K((e=>{Q(),Zt(),Ot();var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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(uo());e.MqttClient=a.default;var s=o(wi());e.DefaultMessageIdProvider=s.default;var c=o(fo());e.UniqueMessageIdProvider=c.default;var l=o(xi());e.Store=l.default;var u=r(_s());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=o(lo());e.KeepaliveManager=f.default,e.Client=a.default,i(uo(),e),i(Ci(),e);var d=Ai();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return d.ReasonCodes}})})),Cs=K((e=>{Q(),Zt(),Ot();var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(Ts());e.default=o,i(Ts(),e)}))(),As=n(78537),Os=As,Rs=function(){return this?this:"undefined"!=typeof window?window:void 0!==Rs?Rs:"undefined"!=typeof self?self:Function("return this")()}.call(null);Os.exportSymbol("proto.User",null,Rs),proto.User=function(e){As.Message.initialize(this,e,0,-1,null,null)},Os.inherits(proto.User,As.Message),Os.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User"),As.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:As.Message.getFieldWithDefault(t,1,""),nickname:As.Message.getFieldWithDefault(t,2,""),avatar:As.Message.getFieldWithDefault(t,3,""),type:As.Message.getFieldWithDefault(t,4,""),extra:As.Message.getFieldWithDefault(t,5,"")};return e&&(n.$jspbMessageInstance=t),n}),proto.User.deserializeBinary=function(e){var t=new As.BinaryReader(e),n=new proto.User;return proto.User.deserializeBinaryFromReader(n,t)},proto.User.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var n=t.readString();e.setUid(n);break;case 2:n=t.readString();e.setNickname(n);break;case 3:n=t.readString();e.setAvatar(n);break;case 4:n=t.readString();e.setType(n);break;case 5:n=t.readString();e.setExtra(n);break;default:t.skipField()}}return e},proto.User.prototype.serializeBinary=function(){var e=new As.BinaryWriter;return proto.User.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.User.serializeBinaryToWriter=function(e,t){var n=void 0;(n=e.getUid()).length>0&&t.writeString(1,n),(n=e.getNickname()).length>0&&t.writeString(2,n),(n=e.getAvatar()).length>0&&t.writeString(3,n),(n=e.getType()).length>0&&t.writeString(4,n),(n=e.getExtra()).length>0&&t.writeString(5,n)},proto.User.prototype.getUid=function(){return As.Message.getFieldWithDefault(this,1,"")},proto.User.prototype.setUid=function(e){return As.Message.setProto3StringField(this,1,e)},proto.User.prototype.getNickname=function(){return As.Message.getFieldWithDefault(this,2,"")},proto.User.prototype.setNickname=function(e){return As.Message.setProto3StringField(this,2,e)},proto.User.prototype.getAvatar=function(){return As.Message.getFieldWithDefault(this,3,"")},proto.User.prototype.setAvatar=function(e){return As.Message.setProto3StringField(this,3,e)},proto.User.prototype.getType=function(){return As.Message.getFieldWithDefault(this,4,"")},proto.User.prototype.setType=function(e){return As.Message.setProto3StringField(this,4,e)},proto.User.prototype.getExtra=function(){return As.Message.getFieldWithDefault(this,5,"")},proto.User.prototype.setExtra=function(e){return As.Message.setProto3StringField(this,5,e)};var Ps=As,Is=function(){return this?this:"undefined"!=typeof window?window:void 0!==Is?Is:"undefined"!=typeof self?self:Function("return this")()}.call(null);Ps.exportSymbol("proto.Thread",null,Is),proto.Thread=function(e){As.Message.initialize(this,e,0,-1,null,null)},Ps.inherits(proto.Thread,As.Message),Ps.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread"),As.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:As.Message.getFieldWithDefault(t,1,""),topic:As.Message.getFieldWithDefault(t,2,""),type:As.Message.getFieldWithDefault(t,3,""),state:As.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:As.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.Thread.deserializeBinary=function(e){var t=new As.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)},proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var n=t.readString();e.setUid(n);break;case 2:n=t.readString();e.setTopic(n);break;case 3:n=t.readString();e.setType(n);break;case 4:n=t.readString();e.setState(n);break;case 5:n=new proto.User;t.readMessage(n,proto.User.deserializeBinaryFromReader),e.setUser(n);break;case 6:n=t.readString();e.setExtra(n);break;default:t.skipField()}}return e},proto.Thread.prototype.serializeBinary=function(){var e=new As.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;(n=e.getUid()).length>0&&t.writeString(1,n),(n=e.getTopic()).length>0&&t.writeString(2,n),(n=e.getType()).length>0&&t.writeString(3,n),(n=e.getState()).length>0&&t.writeString(4,n),null!=(n=e.getUser())&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),(n=e.getExtra()).length>0&&t.writeString(6,n)},proto.Thread.prototype.getUid=function(){return As.Message.getFieldWithDefault(this,1,"")},proto.Thread.prototype.setUid=function(e){return As.Message.setProto3StringField(this,1,e)},proto.Thread.prototype.getTopic=function(){return As.Message.getFieldWithDefault(this,2,"")},proto.Thread.prototype.setTopic=function(e){return As.Message.setProto3StringField(this,2,e)},proto.Thread.prototype.getType=function(){return As.Message.getFieldWithDefault(this,3,"")},proto.Thread.prototype.setType=function(e){return As.Message.setProto3StringField(this,3,e)},proto.Thread.prototype.getState=function(){return As.Message.getFieldWithDefault(this,4,"")},proto.Thread.prototype.setState=function(e){return As.Message.setProto3StringField(this,4,e)},proto.Thread.prototype.getUser=function(){return As.Message.getWrapperField(this,proto.User,5)},proto.Thread.prototype.setUser=function(e){return As.Message.setWrapperField(this,5,e)},proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)},proto.Thread.prototype.hasUser=function(){return null!=As.Message.getField(this,5)},proto.Thread.prototype.getExtra=function(){return As.Message.getFieldWithDefault(this,6,"")},proto.Thread.prototype.setExtra=function(e){return As.Message.setProto3StringField(this,6,e)};var Ms=As,Ls=function(){return this?this:"undefined"!=typeof window?window:void 0!==Ls?Ls:"undefined"!=typeof self?self:Function("return this")()}.call(null);Ms.exportSymbol("proto.Message",null,Ls),proto.Message=function(e){As.Message.initialize(this,e,0,-1,null,null)},Ms.inherits(proto.Message,As.Message),Ms.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message"),As.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:As.Message.getFieldWithDefault(t,1,""),type:As.Message.getFieldWithDefault(t,2,""),content:As.Message.getFieldWithDefault(t,3,""),status:As.Message.getFieldWithDefault(t,4,""),createdat:As.Message.getFieldWithDefault(t,5,""),client:As.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:As.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.Message.deserializeBinary=function(e){var t=new As.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)},proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var n=t.readString();e.setUid(n);break;case 2:n=t.readString();e.setType(n);break;case 3:n=t.readString();e.setContent(n);break;case 4:n=t.readString();e.setStatus(n);break;case 5:n=t.readString();e.setCreatedat(n);break;case 6:n=t.readString();e.setClient(n);break;case 7:n=new proto.Thread;t.readMessage(n,proto.Thread.deserializeBinaryFromReader),e.setThread(n);break;case 8:n=new proto.User;t.readMessage(n,proto.User.deserializeBinaryFromReader),e.setUser(n);break;case 9:n=t.readString();e.setExtra(n);break;default:t.skipField()}}return e},proto.Message.prototype.serializeBinary=function(){var e=new As.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;(n=e.getUid()).length>0&&t.writeString(1,n),(n=e.getType()).length>0&&t.writeString(2,n),(n=e.getContent()).length>0&&t.writeString(3,n),(n=e.getStatus()).length>0&&t.writeString(4,n),(n=e.getCreatedat()).length>0&&t.writeString(5,n),(n=e.getClient()).length>0&&t.writeString(6,n),null!=(n=e.getThread())&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),null!=(n=e.getUser())&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),(n=e.getExtra()).length>0&&t.writeString(9,n)},proto.Message.prototype.getUid=function(){return As.Message.getFieldWithDefault(this,1,"")},proto.Message.prototype.setUid=function(e){return As.Message.setProto3StringField(this,1,e)},proto.Message.prototype.getType=function(){return As.Message.getFieldWithDefault(this,2,"")},proto.Message.prototype.setType=function(e){return As.Message.setProto3StringField(this,2,e)},proto.Message.prototype.getContent=function(){return As.Message.getFieldWithDefault(this,3,"")},proto.Message.prototype.setContent=function(e){return As.Message.setProto3StringField(this,3,e)},proto.Message.prototype.getStatus=function(){return As.Message.getFieldWithDefault(this,4,"")},proto.Message.prototype.setStatus=function(e){return As.Message.setProto3StringField(this,4,e)},proto.Message.prototype.getCreatedat=function(){return As.Message.getFieldWithDefault(this,5,"")},proto.Message.prototype.setCreatedat=function(e){return As.Message.setProto3StringField(this,5,e)},proto.Message.prototype.getClient=function(){return As.Message.getFieldWithDefault(this,6,"")},proto.Message.prototype.setClient=function(e){return As.Message.setProto3StringField(this,6,e)},proto.Message.prototype.getThread=function(){return As.Message.getWrapperField(this,proto.Thread,7)},proto.Message.prototype.setThread=function(e){return As.Message.setWrapperField(this,7,e)},proto.Message.prototype.clearThread=function(){return this.setThread(void 0)},proto.Message.prototype.hasThread=function(){return null!=As.Message.getField(this,7)},proto.Message.prototype.getUser=function(){return As.Message.getWrapperField(this,proto.User,8)},proto.Message.prototype.setUser=function(e){return As.Message.setWrapperField(this,8,e)},proto.Message.prototype.clearUser=function(){return this.setUser(void 0)},proto.Message.prototype.hasUser=function(){return null!=As.Message.getField(this,8)},proto.Message.prototype.getExtra=function(){return As.Message.getFieldWithDefault(this,9,"")},proto.Message.prototype.setExtra=function(e){return As.Message.setProto3StringField(this,9,e)};var Ns,Ds=proto,js=!1,Bs=function(e){var t=e.uid,n=e.username,r=e.accessToken;if(Z.L.getState().userInfo,js)console.log("mqtt is connecting");else if(Ns&&Ns.connected)console.log("mqtt already connected");else if(Ns&&Ns.reconnecting)console.log("mqtt already reconnecting");else{js=!0;var i=Z.L.getState().deviceUid,o={keepalive:30,clientId:t+"/"+T.bVn+"/"+i,username:n,password:r,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:3e4,reschedulePings:!0,rejectUnauthorized:!1,log:function(){0}};console.log("mqtt start connect:",o),(Ns=Cs.connect((0,C.Hg)(),o)).on("connect",(function(){console.log("mqtt event connected"),js=!1})),Ns.on("message",(function(e,n,r){var i=Ds.Message.deserializeBinary(n);console.log("mqtt event message",e,i);var o=i.getType();if(o===T.n$Z){var a=i.getContent();a&&(console.log("mqtt receive notice",a),O.Z.emit(T.YwV,a))}else if(o===T.PYi){if(i.getUser().getUid()===t)return void console.log("mqtt receive self message");console.log("mqtt receive other message");var s=i.getContent();O.Z.emit(T.VZf,s)}})),Ns.on("packetsend",(function(e){console.log("mqtt event packetsend",e)})),Ns.on("packetreceive",(function(e){"publish"===e.cmd||e.cmd})),Ns.on("reconnect",(function(){console.log("mqtt event reconnect")})),Ns.on("close",(function(){console.log("mqtt event close"),js=!1})),Ns.on("disconnect",(function(){console.error("mqtt event disconnected"),js=!1})),Ns.on("offline",(function(){console.log("mqtt event offline"),js=!1})),Ns.on("error",(function(){console.log("mqtt event error")})),Ns.on("end",(function(){console.log("mqtt event end")}))}};var Fs=function(){var e=(0,D.useState)(!1),t=m()(e,2),n=t[0],r=t[1],i=(0,D.useState)(!1),o=m()(i,2),a=o[0],s=o[1],c=function(){var e=v()(p()().mark((function e(t,n){return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a?(console.log("handleNewMessage isBrowserTabHidden"),l(t,n)):console.log("handleNewMessage not isBrowserTabHidden");case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),l=function(e,t){console.log("showWebNotification");var n=new Notification(e,{body:t,icon:"./logo.png"});n.onshow=function(){console.log("Notification shown")},n.onclick=function(){console.log("notification click")},n.onclose=function(){console.log("notification close")},n.onerror=function(){console.log("notification error")}};return(0,D.useEffect)((function(){return window.Notification&&"granted"!==Notification.permission?Notification.requestPermission((function(e){"granted"===e?(console.log("Notification permission granted."),r(!0)):(console.log("notification denied"),r(!1))})):(console.log("已经授权或浏览器不支持通知"),r(!0)),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState?s(!0):"visible"===document.visibilityState&&s(!1)}),!1),function(){document.removeEventListener("visibilitychange",(function(){}))}}),[]),{isNotificationGranted:n,showWebNotification:l,showNotification:c}},$s=n(11757),Us={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},qs=n(54183),Zs=function(e,t){return D.createElement(qs.Z,(0,$s.Z)({},e,{ref:t,icon:Us}))};var zs=D.forwardRef(Zs),Hs=function(){return(0,j.jsx)(k.ZP,{type:"text",icon:(0,j.jsx)(zs,{}),onClick:function(){window.open("https://github.com/Bytedesk/bytedesk")}})},Ws=n(49108),Vs=n(11184),Gs="/auth/login";function Ks(){return Ys.apply(this,arguments)}function Ys(){return Ys=v()(p()().mark((function e(){var t,n;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("getInitialState"),t=function(){var e=v()(p()().mark((function e(){var t,n;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(t=localStorage.getItem(T.LA8))&&0!==t.trim().length){e.next=3;break}return e.abrupt("return",void 0);case 3:return e.prev=3,e.next=6,(0,S.Ai)();case 6:return n=e.sent,console.log("user profile",n),e.abrupt("return",n.data);case 11:e.prev=11,e.t0=e.catch(3),x.history.push(Gs);case 14:return e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}(),x.history.location.pathname.startsWith("/auth/")){e.next=8;break}return e.next=6,t();case 6:return n=e.sent,e.abrupt("return",{fetchUserInfo:t,userInfo:n,settings:_.Z});case 8:return e.abrupt("return",{fetchUserInfo:t,settings:_.Z});case 9:case"end":return e.stop()}}),e)}))),Ys.apply(this,arguments)}var Xs=function(e){var t,n,r=e.initialState;Fs();var i=(0,x.useIntl)(),o=(null!=r?r:{}).userInfo,a=b.ZP.useNotification(),s=m()(a,2),c=s[0],l=(s[1],(0,D.useState)("/admin/icons/logo.png")),u=m()(l,2),d=(u[0],u[1]),h=(0,D.useState)(""),g=m()(h,2),S=(g[0],g[1],(0,Z.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid}}))),_=S.deviceUid,R=S.setDeviceUid,M=(0,Z.L)((function(e){return e.setUserInfo})),L=(0,P.Z)().isDarkMode;r.settings.navTheme=L?"realDark":"light";var N=function(){window.open((0,C.IA)())};(0,D.useEffect)((function(){!function(){if(null!=o){void 0!==_&&""!==_||R((0,I.Zx)());var e=localStorage.getItem(T.LA8);Bs({uid:null==o?void 0:o.uid,username:null==o?void 0:o.username,accessToken:e})}}(),M(o)}),[o]);var U=function(e){console.log("updateDocumentTitle",e),document.title=e||i.formatMessage({id:"app.title"})},z=function(){var e=v()(p()().mark((function e(){var t,n,r,o,a,s,c;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.Xs)();case 2:return n=e.sent,console.log("getConfig config app: ",n),(null==n||null===(t=n.custom)||void 0===t?void 0:t.enabled)?(null!=n&&null!==(r=n.custom)&&void 0!==r&&r.logo?d(null==n||null===(a=n.custom)||void 0===a?void 0:a.logo):d("/admin/icons/logo.png"),null!=n&&null!==(o=n.custom)&&void 0!==o&&o.name?U(null==n||null===(s=n.custom)||void 0===s?void 0:s.name):U(i.formatMessage({id:"app.title"}))):(d("/admin/icons/logo.png"),U(i.formatMessage({id:"app.title"}))),e.next=8,(0,C.ME)();case 8:c=(0,C.kG)(),console.log("Base URL:",c);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,D.useEffect)((function(){return O.Z.on(T.fN$,(function(){console.log("EVENT_BUS_TOKEN_INVALID"),(0,I.NZ)()})),O.Z.on(T.YwV,(function(e){console.log("EVENT_BUS_MQTT_NOTICE",e)})),O.Z.on(T.VZf,(function(e){console.log("EVENT_BUS_MQTT_MESSAGE",e),function(e,t){var n="open".concat(Date.now()),r=(0,j.jsxs)(w.Z,{children:[(0,j.jsx)(k.ZP,{type:"link",size:"small",onClick:function(){return c.destroy()},children:"关闭所有"}),(0,j.jsx)(k.ZP,{type:"primary",size:"small",onClick:function(){return c.destroy(n)},children:"确定"})]});c.open({message:e,description:t,duration:0,btn:r,key:n,onClose:N})}("新消息",e+" 请在客服端打开查看")})),(0,I.pr)(),z(),function(){O.Z.off(T.fN$),O.Z.off(T.YwV)}}),[]),f()({actionsRender:function(){return[(0,j.jsx)(B,{},"fullScreen"),(0,j.jsx)(Hs,{},"GotoGithub"),(0,j.jsx)(F,{},"GotoAgent"),(0,j.jsx)(q,{},"ContactUs")]},title:function(){var e=(0,C.nt)(),t=(0,C.ye)();return e&&t?t:i.formatMessage({id:"app.title"})}(),logo:(0,C.do)(),avatarProps:{src:null==r||null===(t=r.userInfo)||void 0===t?void 0:t.avatar,title:(0,j.jsx)(y.gj,{}),render:function(e,t){return(0,j.jsx)(y.Kd,{menu:!0,children:t})}},waterMarkProps:{content:null==r||null===(n=r.userInfo)||void 0===n?void 0:n.nickname},footerRender:function(){return(0,j.jsx)(y.$_,{})},onPageChange:function(){var e=x.history.location;null!=r&&r.userInfo||e.pathname===Gs||x.history.push(Gs)},menuHeaderRender:void 0,menu:{type:"group",collapsedShowTitle:!0,hideChildrenInMenu:!0},collapsedButtonRender:function(){return(0,j.jsx)(j.Fragment,{})},childrenRender:function(e){var t=(0,Vs.M)().config;console.log("useBytedeskStore config",t);var n=(0,C.nt)(),r=f()({},t);n&&((0,C.ec)()||(r.bubbleConfig.show=!1,r.buttonConfig.show=!1));return console.log("useBytedeskStore newConfig",r),(0,j.jsx)(j.Fragment,{children:(0,j.jsx)($.w,{children:(0,j.jsxs)(E.Z,{children:[(0,j.jsx)(A.ZP,{}),(0,j.jsx)(Ws.Q,f()(f()({},r),{},{onInit:function(){console.log("ByteDesk initialized admin")}})),e]})})})}},null==r?void 0:r.settings)},Qs=f()(f()({},R),{},{requestInterceptors:[function(e,t){var n=localStorage.getItem(T.LA8);if(n&&n.length>10&&e.startsWith("/api")){var r={Authorization:"Bearer ".concat(n)};return{url:"".concat((0,C.kG)()).concat(e),options:f()(f()({},t),{},{interceptors:!0,headers:r})}}return e.startsWith("http")?{url:"".concat(e),options:f()(f()({},t),{},{interceptors:!0})}:{url:"".concat((0,C.kG)()).concat(e),options:f()(f()({},t),{},{interceptors:!0})}}]}),Js=n(7862),ec=n.n(Js),tc=n(81690),nc=n.n(tc),rc=n(21700),ic=n.n(rc),oc=n(31236),ac=n.n(oc);function sc(){return sc=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var fc={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},dc={rel:["amphtml","canonical","alternate"]},pc={type:["application/ld+json"]},hc={charset:"",name:["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"]},mc=Object.keys(fc).map((function(e){return fc[e]})),gc={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},vc=Object.keys(gc).reduce((function(e,t){return e[gc[t]]=t,e}),{}),yc=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},bc=function(e){var t=yc(e,fc.TITLE),n=yc(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=yc(e,"defaultTitle");return t||r||void 0},wc=function(e){return yc(e,"onChangeClientState")||function(){}},kc=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return sc({},e,t)}),{})},Ec=function(e,t){return t.filter((function(e){return void 0!==e[fc.BASE]})).map((function(e){return e[fc.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")},Rc=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Pc=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[gc[n]||n]=e[n],t}),t)},Ic=function(e,t){return t.map((function(t,n){var r,i=((r={key:n})["data-rh"]=!0,r);return Object.keys(t).forEach((function(e){var n=gc[e]||e;"innerHTML"===n||"cssText"===n?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[n]=t[e]})),D.createElement(e,i)}))},Mc=function(e,t,n){switch(e){case fc.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})["data-rh"]=!0,i=Pc(n,r),[D.createElement(fc.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=Rc(n),o=_c(t);return i?"<"+e+' data-rh="true" '+i+">"+Oc(o,r)+"":"<"+e+' data-rh="true">'+Oc(o,r)+""}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Pc(t)},toString:function(){return Rc(t)}};default:return{toComponent:function(){return Ic(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+Oc(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===Ac.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"")}),"")}(e,t,n)}}}},Lc=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,c=void 0===s?"":s,l=e.titleAttributes,u=e.linkTags,f=e.metaTags,d=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,i=Tc(e.metaTags,hc),o=Tc(t,dc),a=Tc(n,pc);return{priorityMethods:{toComponent:function(){return[].concat(Ic(fc.META,i.priority),Ic(fc.LINK,o.priority),Ic(fc.SCRIPT,a.priority))},toString:function(){return Mc(fc.META,i.priority,r)+" "+Mc(fc.LINK,o.priority,r)+" "+Mc(fc.SCRIPT,a.priority,r)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(e);p=h.priorityMethods,u=h.linkTags,f=h.metaTags,d=h.scriptTags}return{priority:p,base:Mc(fc.BASE,t,r),bodyAttributes:Mc("bodyAttributes",n,r),htmlAttributes:Mc("htmlAttributes",i,r),link:Mc(fc.LINK,u,r),meta:Mc(fc.META,f,r),noscript:Mc(fc.NOSCRIPT,o,r),script:Mc(fc.SCRIPT,d,r),style:Mc(fc.STYLE,a,r),title:Mc(fc.TITLE,{title:c,titleAttributes:l},r)}},Nc=[],Dc=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?Nc:n.instances},add:function(e){(n.canUseDOM?Nc:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?Nc:n.instances).indexOf(e);(n.canUseDOM?Nc:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=Lc({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},jc=D.createContext({}),Bc=ec().shape({setHelmet:ec().func,helmetInstances:ec().shape({get:ec().func,add:ec().func,remove:ec().func})}),Fc="undefined"!=typeof document,$c=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new Dc(r.props.context,t.canUseDOM),r}return cc(t,e),t.prototype.render=function(){return D.createElement(jc.Provider,{value:this.helmetData.value},this.props.children)},t}(D.Component);$c.canUseDOM=Fc,$c.propTypes={context:ec().shape({helmet:ec().shape()}),children:ec().node.isRequired},$c.defaultProps={context:{}},$c.displayName="HelmetProvider";var Uc=function(e,t){var n,r=document.head||document.querySelector(fc.HEAD),i=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?r.innerHTML=t.innerHTML:"cssText"===i?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(i,void 0===t[i]?"":t[i]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):a.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:a}},qc=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s=0;f-=1)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==a.join(",")&&n.setAttribute("data-rh",a.join(","))}},Zc=function(e,t){var n=e.baseTag,r=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,l=e.styleTags,u=e.title,f=e.titleAttributes;qc(fc.BODY,e.bodyAttributes),qc(fc.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=_c(e)),qc(fc.TITLE,t)}(u,f);var d={baseTag:Uc(fc.BASE,n),linkTags:Uc(fc.LINK,i),metaTags:Uc(fc.META,o),noscriptTags:Uc(fc.NOSCRIPT,a),scriptTags:Uc(fc.SCRIPT,c),styleTags:Uc(fc.STYLE,l)},p={},h={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(h[e]=d[e].oldTags)})),t&&t(),s(e,p,h)},zc=null,Hc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return sc({},r,((t={})[n.type]=[].concat(r[n.type]||[],[sc({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case fc.TITLE:return sc({},i,((t={})[r.type]=a,t.titleAttributes=sc({},o),t));case fc.BODY:return sc({},i,{bodyAttributes:sc({},o)});case fc.HTML:return sc({},i,{htmlAttributes:sc({},o)});default:return sc({},i,((n={})[r.type]=sc({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=sc({},t);return Object.keys(e).forEach((function(t){var r;n=sc({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return ic()(mc.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+mc.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),ic()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return D.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=uc(i,Wc),s=Object.keys(a).reduce((function(e,t){return e[vc[t]||t]=a[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():n.warnOnInvalidChildren(e,o),c){case fc.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case fc.LINK:case fc.META:case fc.NOSCRIPT:case fc.SCRIPT:case fc.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=uc(e,Vc),r=sc({},n),i=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!i||i instanceof Dc||(i=new Dc(i.context,i.instances)),i?D.createElement(Hc,sc({},r,{context:i.value,helmetData:void 0})):D.createElement(jc.Consumer,null,(function(e){return D.createElement(Hc,sc({},r,{context:e}))}))},t}(D.Component);Gc.propTypes={base:ec().object,bodyAttributes:ec().object,children:ec().oneOfType([ec().arrayOf(ec().node),ec().node]),defaultTitle:ec().string,defer:ec().bool,encodeSpecialCharacters:ec().bool,htmlAttributes:ec().object,link:ec().arrayOf(ec().object),meta:ec().arrayOf(ec().object),noscript:ec().arrayOf(ec().object),onChangeClientState:ec().func,script:ec().arrayOf(ec().object),style:ec().arrayOf(ec().object),title:ec().string,titleAttributes:ec().object,titleTemplate:ec().string,prioritizeSeoTags:ec().bool,helmetData:ec().object},Gc.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Gc.displayName="Helmet";var Kc={},Yc=function(e){return D.createElement($c,{context:Kc},e)};var Xc=n(59191),Qc=n(75147);function Jc(e){var t=(0,Xc.t)("@@initialState").initialState,n=D.useMemo((function(){return function(e){var t=(null!=e?e:{}).userInfo;return{canAdmin:function(){for(var e=!1,n=0;n<(null==t?void 0:t.userOrganizationRoles.length);n++){var r,i,o=null==t?void 0:t.userOrganizationRoles[n];if((null==o||null===(r=o.organization)||void 0===r?void 0:r.uid)===(null==t||null===(i=t.currentOrganization)||void 0===i?void 0:i.uid))for(var a=0;a<(null==o||null===(s=o.roles)||void 0===s?void 0:s.length);a++){var s;"ROLE_ADMIN"===(null==o?void 0:o.roles[a]).name&&(e=!0)}}return(null==t?void 0:t.superUser)||e},canSuper:function(){return null==t?void 0:t.superUser},canDebug:function(){return!1},canBytedesk:function(){return(null==t?void 0:t.platform)===T.Ogg},canReadFoo:!0,canUpdateFoo:function(){return!0}}}(t)}),[t]);return(0,j.jsx)(Qc.J.Provider,{value:n,children:e.children})}function el(e){return(0,j.jsx)(Jc,{children:e})}function tl(){return(0,j.jsx)("div",{})}function nl(e){var t=D.useRef(!1),n=((0,Xc.t)("@@initialState")||{}).loading,r=void 0!==n&&n;return D.useEffect((function(){r||(t.current=!0)}),[r]),r&&!t.current&&"undefined"!=typeof window?(0,j.jsx)(tl,{}):e.children}function rl(e){return(0,j.jsx)(nl,{children:e})}var il=n(17082),ol={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},al=n(64423),sl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:ol}))};var cl=D.forwardRef(sl),ll=n(85333),ul=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:ll.Z}))};var fl=D.forwardRef(ul),dl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},pl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:dl}))};var hl=D.forwardRef(pl),ml=n(15323),gl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:ml.Z}))};var vl=D.forwardRef(gl),yl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},bl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:yl}))};var wl=D.forwardRef(bl),kl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},El=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:kl}))};var Sl=D.forwardRef(El),xl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm336 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm192-552a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"fork",theme:"outlined"},_l=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:xl}))};var Tl=D.forwardRef(_l),Cl=n(20614),Al=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:Cl.Z}))};var Ol=D.forwardRef(Al),Rl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Pl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:Rl}))};var Il=D.forwardRef(Pl),Ml=n(16892),Ll=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:Ml.Z}))};var Nl=D.forwardRef(Ll),Dl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},jl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:Dl}))};var Bl=D.forwardRef(jl),Fl=n(89291),$l=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:Fl.Z}))};var Ul=D.forwardRef($l),ql={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"},Zl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:ql}))};var zl=D.forwardRef(Zl),Hl=n(65173),Wl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:Hl.Z}))};var Vl=D.forwardRef(Wl),Gl=n(79553),Kl=function(e,t){return D.createElement(al.Z,(0,il.Z)((0,il.Z)({},e),{},{ref:t,icon:Gl.Z}))};var Yl={DashboardOutlined:cl,TeamOutlined:fl,CustomerServiceOutlined:hl,RobotOutlined:vl,BookOutlined:wl,BugOutlined:Sl,ForkOutlined:Tl,MessageOutlined:Ol,FormOutlined:Il,PlusOutlined:Nl,HistoryOutlined:Bl,SettingOutlined:Ul,CrownOutlined:zl,CheckOutlined:Vl,QuestionOutlined:D.forwardRef(Kl)};function Xl(e){var t=e.routes;Object.keys(t).forEach((function(e){var n=t[e].icon;if(n&&"string"==typeof n){var r=function(e){return e.replace(e[0],e[0].toUpperCase()).replace(/-(w)/g,(function(e,t){return t.toUpperCase()}))}(n);(Yl[r]||Yl[r+"Outlined"])&&(t[e].icon=D.createElement(Yl[r]||Yl[r+"Outlined"]))}}))}var Ql=n(96839),Jl=n(28977),eu=n.n(Jl),tu=(n(9733),n(58070),n(6303),n(34455));var nu="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect,ru=function(e){var t,n=(0,tu.Kd)(),r=D.useState(n),i=m()(r,2),o=i[0],a=i[1],s=D.useState((function(){return(0,tu.lw)(o,!0)})),c=m()(s,2),l=c[0],u=c[1],f=function(e){var t;null!==eu()&&void 0!==eu()&&eu().locale&&eu().locale((null===(t=tu.H8[e])||void 0===t?void 0:t.momentLocale)||"en");a(e),u((0,tu.lw)(e))};nu((function(){return tu.B.on(tu.PZ,f),function(){tu.B.off(tu.PZ,f)}}),[]);var d=(0,tu.Mg)();return(0,j.jsx)(Ql.ZP,{direction:d,locale:(null===(t=tu.H8[o])||void 0===t?void 0:t.antd)||{},children:(0,j.jsx)(tu.eU,{value:l,children:e.children})})};function iu(e){return D.createElement(ru,null,e)}var ou={initialState:void 0,loading:!0,error:void 0},au={model_1:{namespace:"@@initialState",model:function(){var e=(0,D.useState)(ou),t=m()(e,2),n=t[0],r=t[1],i=(0,D.useCallback)(v()(p()().mark((function e(){var t;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r((function(e){return f()(f()({},e),{},{loading:!0,error:void 0})})),e.prev=1,e.next=4,Ks();case 4:t=e.sent,r((function(e){return f()(f()({},e),{},{initialState:t,loading:!1})})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),r((function(t){return f()(f()({},t),{},{error:e.t0,loading:!1})}));case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),[]),o=(0,D.useCallback)(function(){var e=v()(p()().mark((function e(t){return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r((function(e){return"function"==typeof t?f()(f()({},e),{},{initialState:t(e.initialState),loading:!1}):f()(f()({},e),{},{initialState:t,loading:!1})}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]);return(0,D.useEffect)((function(){i()}),[]),f()(f()({},n),{},{refresh:i,setInitialState:o})}}};function su(e){var t=D.useMemo((function(){return Object.keys(au).reduce((function(e,t){return e[au[t].namespace]=au[t].model,e}),{})}),[]);return(0,j.jsx)(Xc.z,f()(f()({models:t},e),{},{children:e.children}))}function cu(e,t){return(0,j.jsx)(su,f()(f()({},t),{},{children:e}))}var lu=null;function uu(){var e;return lu=x.PluginManager.create({plugins:[{apply:(e=r,e.default?"function"==typeof e.default?e.default():e.default:e),path:void 0},{apply:i,path:void 0},{apply:o,path:void 0},{apply:a,path:void 0},{apply:s,path:void 0},{apply:c,path:void 0},{apply:l,path:void 0}],validKeys:["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","getInitialState","layout","locale","qiankun","request"]})}function fu(){return lu}},30921:function(e,t,n){"use strict";n.d(t,{Access:function(){return r.Nv},ApplyPluginsType:function(){return fe},FormattedMessage:function(){return i._H},Link:function(){return K},Outlet:function(){return U.j3},PluginManager:function(){return de},SelectLang:function(){return i.pD},getLocale:function(){return i.Kd},history:function(){return pe.m8},matchRoutes:function(){return U.fp},request:function(){return B},setLocale:function(){return i.i_},useAccess:function(){return r.md},useAppData:function(){return V.Ov},useIntl:function(){return i.YB},useLocation:function(){return U.TH},useModel:function(){return o.t},useNavigate:function(){return U.s0},useOutletContext:function(){return U.bx}});var r=n(3123),i=n(4982),o=n(59191),a=n(90819),s=n.n(a),c=n(89933),l=n.n(c),u=(n(84176),n(89957),n(73193)),f=n.n(u),d=n(24718),p=n.n(d),h=n(44194),m=n(51899),g=n.n(m),v=n(14978),y=n.n(v);function b(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}new Map;var w=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},k=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},P=function(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{method:"GET"},n=j(),r=D(),i=t.getResponse,o=void 0!==i&&i,a=t.requestInterceptors,c=t.responseInterceptors,u=null==a?void 0:a.map((function(e){return e instanceof Array?n.interceptors.request.use(function(){var t=l()(s()().mark((function t(n){var r,i,o,a;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.url,2!==e[0].length){t.next=8;break}return t.next=4,e[0](r,n);case 4:return i=t.sent,o=i.url,a=i.options,t.abrupt("return",f()(f()({},a),{},{url:o}));case 8:return t.abrupt("return",e[0](n));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e[1]):n.interceptors.request.use(function(){var t=l()(s()().mark((function t(n){var r,i,o,a;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.url,2!==e.length){t.next=8;break}return t.next=4,e(r,n);case 4:return i=t.sent,o=i.url,a=i.options,t.abrupt("return",f()(f()({},a),{},{url:o}));case 8:return t.abrupt("return",e(n));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())})),d=null==c?void 0:c.map((function(e){return e instanceof Array?n.interceptors.response.use(e[0],e[1]):n.interceptors.response.use(e)}));return new Promise((function(i,a){n.request(f()(f()({},t),{},{url:e})).then((function(e){null==u||u.forEach((function(e){n.interceptors.request.eject(e)})),null==d||d.forEach((function(e){n.interceptors.response.eject(e)})),i(o?e:e.data)})).catch((function(e){null==u||u.forEach((function(e){n.interceptors.request.eject(e)})),null==d||d.forEach((function(e){n.interceptors.response.eject(e)}));try{var i,o=null==r||null===(i=r.errorConfig)||void 0===i?void 0:i.errorHandler;o&&o(e,t,r)}catch(e){a(e)}a(e)}))}))},F=n(16076),$=n(18261),U=n(45516),q=n(86380);function Z(){return Z=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}const H=["onClick","reloadDocument","replace","state","target","to"];const W=(0,h.forwardRef)((function(e,t){let{onClick:n,reloadDocument:r,replace:i=!1,state:o,target:a,to:s}=e,c=z(e,H),l=(0,U.oQ)(s),u=function(e,t){let{target:n,replace:r,state:i}=void 0===t?{}:t,o=(0,U.s0)(),a=(0,U.TH)(),s=(0,U.WU)(e);return(0,h.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!r||(0,q.Ep)(a)===(0,q.Ep)(s);o(e,{replace:n,state:i})}}),[a,o,s,r,i,n,e])}(s,{replace:i,state:o,target:a});return(0,h.createElement)("a",Z({},c,{href:l,onClick:function(e){n&&n(e),e.defaultPrevented||r||u(e)},ref:t,target:a}))}));var V=n(38517),G=["prefetch"];function K(e){var t,n=e.prefetch,r=(0,$.Z)(e,G),i=(0,V.Ov)(),o="string"==typeof e.to?e.to:null===(t=e.to)||void 0===t?void 0:t.pathname;return o?h.createElement(W,(0,F.Z)({onMouseEnter:function(){var e;return n&&o&&(null===(e=i.preloadRoute)||void 0===e?void 0:e.call(i,o))}},r),e.children):null}var Y=n(49338);function X(){X=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new O(r||[]);return i(a,"_invoke",{value:_(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(R([])));k&&k!==n&&r.call(k,a)&&(b=k);var E=y.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,o,a,s){var c=f(e[i],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==(0,Y.Z)(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function _(t,n,r){var i=d;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=f(t,n,r);if("normal"===l.type){if(i=r.done?h:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=h,r.method="throw",r.arg=l.arg)}}}function T(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}var Q=n(42549);function J(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ee(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){J(o,r,i,a,s,"next",e)}function s(e){J(o,r,i,a,s,"throw",e)}a(void 0)}))}}var te=n(2147);function ne(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,te.Z)(e))||t&&e&&"number"==typeof e.length){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(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn 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 e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var re=n(37115);var ie=n(58157);function oe(e){return(0,re.Z)(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,te.Z)(e)||(0,ie.Z)()}var ae=n(85649);function se(e,t){for(var n=0;n-1,"register failed, invalid key ".concat(n," ").concat(e.path?"from plugin ".concat(e.path):"",".")),t.hooks[n]=(t.hooks[n]||[]).concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=oe(e.split(".")),n=t[0],r=t.slice(1),i=this.hooks[n]||[];return r.length&&(i=i.map((function(e){try{var t,n=e,i=ne(r);try{for(i.s();!(t=i.n()).done;)n=n[t.value]}catch(e){i.e(e)}finally{i.f()}return n}catch(e){return null}})).filter(Boolean)),i}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,i=e.args,o=e.async,a=this.getHooks(t)||[];switch(i&&le("object"===(0,Y.Z)(i),"applyPlugins failed, args must be plain object."),o&&le(n===fe.modify||n===fe.event,"async only works with modify and event type."),n){case fe.modify:return o?a.reduce(function(){var e=ee(X().mark((function e(n,r){var o;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(le("function"==typeof r||"object"===(0,Y.Z)(r)||ue(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!ue(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!=typeof r){e.next=16;break}if(!ue(o=r(n,i))){e.next=13;break}return e.next=10,o;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",o);case 14:e.next=21;break;case 16:if(!ue(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",(0,Q.Z)((0,Q.Z)({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ue(r)?r:Promise.resolve(r)):a.reduce((function(e,n){return le("function"==typeof n||"object"===(0,Y.Z)(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"==typeof n?n(e,i):(0,Q.Z)((0,Q.Z)({},e),n)}),r);case fe.event:return ee(X().mark((function e(){var n,r,s,c;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ne(a),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=12;break}if(le("function"==typeof(s=r.value),"applyPlugins failed, all hooks for key ".concat(t," must be function.")),c=s(i),!o||!ue(c)){e.next=10;break}return e.next=10,c;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),n.e(e.t0);case 17:return e.prev=17,n.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,14,17,20]])})))();case fe.compose:return function(){return function(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}({fns:a.concat(r),args:i})()}}}}],r=[{key:"create",value:function(t){var n=new e({validKeys:t.validKeys});return t.plugins.forEach((function(e){n.register(e)})),n}}],n&&se(t.prototype,n),r&&se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),pe=n(29838)},75147:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var r=n(44194).createContext(null)},3123:function(e,t,n){"use strict";n.d(t,{Mf:function(){return c},Nv:function(){return s},md:function(){return a}});var r=n(44194),i=n(75147),o=n(31549),a=function(){return r.useContext(i.J)},s=function(e){return(0,o.jsx)(o.Fragment,{children:e.accessible?e.children:e.fallback})},c=function(e){var t=a();return r.useMemo((function(){var n=function e(n,r,i){var o,a,s=n.access,c=n;if(!s&&r&&(s=r,c=i),n.unaccessible=!1,"string"==typeof s){var l=t[s];"function"==typeof l?n.unaccessible=!l(c):"boolean"==typeof l?n.unaccessible=!l:void 0===l&&(n.unaccessible=!0)}null!==(o=n.children)&&void 0!==o&&o.length&&(!n.children.reduce((function(t,r){return e(r,s,n),t||!r.unaccessible}),!1)&&(n.unaccessible=!0));null!==(a=n.routes)&&void 0!==a&&a.length&&(!n.routes.reduce((function(t,r){return e(r,s,n),t||!r.unaccessible}),!1)&&(n.unaccessible=!0));return n};return e.map((function(e){return n(e)}))}),[e.length,t])}},4982:function(e,t,n){"use strict";n.d(t,{_H:function(){return r._H},pD:function(){return b},Kd:function(){return r.Kd},i_:function(){return r.i_},YB:function(){return r.YB}});var r=n(34455),i=n(45332),o=n.n(i),a=(n(10154),n(73193)),s=n.n(a),c=n(84176),l=n.n(c),u=n(44194),f=n(96485),d=n(51562),p=n(26331),h=n(31549),m=["overlayClassName"],g=["globalIconClassName","postLocalesData","onItemClick","icon","style","reload"],v=function(e){var t=e.overlayClassName,n=l()(e,m);return(0,h.jsx)(f.Z,s()({overlayClassName:t},n))},y={"ar-EG":{lang:"ar-EG",label:"العربية",icon:"🇪🇬",title:"لغة"},"az-AZ":{lang:"az-AZ",label:"Azərbaycan dili",icon:"🇦🇿",title:"Dil"},"bg-BG":{lang:"bg-BG",label:"Български език",icon:"🇧🇬",title:"език"},"bn-BD":{lang:"bn-BD",label:"বাংলা",icon:"🇧🇩",title:"ভাষা"},"ca-ES":{lang:"ca-ES",label:"Catalá",icon:"🇨🇦",title:"llengua"},"cs-CZ":{lang:"cs-CZ",label:"Čeština",icon:"🇨🇿",title:"Jazyk"},"da-DK":{lang:"da-DK",label:"Dansk",icon:"🇩🇰",title:"Sprog"},"de-DE":{lang:"de-DE",label:"Deutsch",icon:"🇩🇪",title:"Sprache"},"el-GR":{lang:"el-GR",label:"Ελληνικά",icon:"🇬🇷",title:"Γλώσσα"},"en-GB":{lang:"en-GB",label:"English",icon:"🇬🇧",title:"Language"},"en-US":{lang:"en-US",label:"English",icon:"🇺🇸",title:"Language"},"es-ES":{lang:"es-ES",label:"Español",icon:"🇪🇸",title:"Idioma"},"et-EE":{lang:"et-EE",label:"Eesti",icon:"🇪🇪",title:"Keel"},"fa-IR":{lang:"fa-IR",label:"فارسی",icon:"🇮🇷",title:"زبان"},"fi-FI":{lang:"fi-FI",label:"Suomi",icon:"🇫🇮",title:"Kieli"},"fr-BE":{lang:"fr-BE",label:"Français",icon:"🇧🇪",title:"Langue"},"fr-FR":{lang:"fr-FR",label:"Français",icon:"🇫🇷",title:"Langue"},"ga-IE":{lang:"ga-IE",label:"Gaeilge",icon:"🇮🇪",title:"Teanga"},"he-IL":{lang:"he-IL",label:"עברית",icon:"🇮🇱",title:"שפה"},"hi-IN":{lang:"hi-IN",label:"हिन्दी, हिंदी",icon:"🇮🇳",title:"भाषा: हिन्दी"},"hr-HR":{lang:"hr-HR",label:"Hrvatski jezik",icon:"🇭🇷",title:"Jezik"},"hu-HU":{lang:"hu-HU",label:"Magyar",icon:"🇭🇺",title:"Nyelv"},"hy-AM":{lang:"hu-HU",label:"Հայերեն",icon:"🇦🇲",title:"Լեզու"},"id-ID":{lang:"id-ID",label:"Bahasa Indonesia",icon:"🇮🇩",title:"Bahasa"},"it-IT":{lang:"it-IT",label:"Italiano",icon:"🇮🇹",title:"Linguaggio"},"is-IS":{lang:"is-IS",label:"Íslenska",icon:"🇮🇸",title:"Tungumál"},"ja-JP":{lang:"ja-JP",label:"日本語",icon:"🇯🇵",title:"言語"},"ku-IQ":{lang:"ku-IQ",label:"کوردی",icon:"🇮🇶",title:"Ziman"},"kn-IN":{lang:"kn-IN",label:"ಕನ್ನಡ",icon:"🇮🇳",title:"ಭಾಷೆ"},"ko-KR":{lang:"ko-KR",label:"한국어",icon:"🇰🇷",title:"언어"},"lv-LV":{lang:"lv-LV",label:"Latviešu valoda",icon:"🇱🇮",title:"Kalba"},"mk-MK":{lang:"mk-MK",label:"македонски јазик",icon:"🇲🇰",title:"Јазик"},"mn-MN":{lang:"mn-MN",label:"Монгол хэл",icon:"🇲🇳",title:"Хэл"},"ms-MY":{lang:"ms-MY",label:"بهاس ملايو‎",icon:"🇲🇾",title:"Bahasa"},"nb-NO":{lang:"nb-NO",label:"Norsk",icon:"🇳🇴",title:"Språk"},"ne-NP":{lang:"ne-NP",label:"नेपाली",icon:"🇳🇵",title:"भाषा"},"nl-BE":{lang:"nl-BE",label:"Vlaams",icon:"🇧🇪",title:"Taal"},"nl-NL":{lang:"nl-NL",label:"Nederlands",icon:"🇳🇱",title:"Taal"},"pl-PL":{lang:"pl-PL",label:"Polski",icon:"🇵🇱",title:"Język"},"pt-BR":{lang:"pt-BR",label:"Português",icon:"🇧🇷",title:"Idiomas"},"pt-PT":{lang:"pt-PT",label:"Português",icon:"🇵🇹",title:"Idiomas"},"ro-RO":{lang:"ro-RO",label:"Română",icon:"🇷🇴",title:"Limba"},"ru-RU":{lang:"ru-RU",label:"Русский",icon:"🇷🇺",title:"язык"},"sk-SK":{lang:"sk-SK",label:"Slovenčina",icon:"🇸🇰",title:"Jazyk"},"sr-RS":{lang:"sr-RS",label:"српски језик",icon:"🇸🇷",title:"Језик"},"sl-SI":{lang:"sl-SI",label:"Slovenščina",icon:"🇸🇱",title:"Jezik"},"sv-SE":{lang:"sv-SE",label:"Svenska",icon:"🇸🇪",title:"Språk"},"ta-IN":{lang:"ta-IN",label:"தமிழ்",icon:"🇮🇳",title:"மொழி"},"th-TH":{lang:"th-TH",label:"ไทย",icon:"🇹🇭",title:"ภาษา"},"tr-TR":{lang:"tr-TR",label:"Türkçe",icon:"🇹🇷",title:"Dil"},"uk-UA":{lang:"uk-UA",label:"Українська",icon:"🇺🇰",title:"Мова"},"vi-VN":{lang:"vi-VN",label:"Tiếng Việt",icon:"🇻🇳",title:"Ngôn ngữ"},"zh-CN":{lang:"zh-CN",label:"简体中文",icon:"🇨🇳",title:"语言"},"zh-TW":{lang:"zh-TW",label:"繁體中文",icon:"🇭🇰",title:"語言"}},b=function(e){var t,n,i=e.globalIconClassName,a=e.postLocalesData,c=e.onItemClick,f=e.icon,m=e.style,b=e.reload,w=l()(e,g),k=(0,u.useState)((function(){return(0,r.Kd)()})),E=o()(k,2),S=E[0],x=E[1],_=(0,r.XZ)().map((function(e){return y[e]||{lang:e,label:e,icon:"🌐",title:e}})),T=(null==a?void 0:a(_))||_,C={minWidth:"160px"},A={marginRight:"8px"},O={selectedKeys:[S],onClick:c?function(e){return c(e)}:function(e){var t=e.key;(0,r.i_)(t,b),x((0,r.Kd)())},items:T.map((function(e){return{key:e.lang||e.key,style:C,label:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{role:"img","aria-label":(null==e?void 0:e.label)||"en-US",style:A,children:(null==e?void 0:e.icon)||"🌐"}),(null==e?void 0:e.label)||"en-US"]})}}))};n=d.Z.startsWith("5.")||d.Z.startsWith("4.24.")?{menu:O}:d.Z.startsWith("3.")?{overlay:(0,h.jsx)(p.Z,{children:O.items.map((function(e){return(0,h.jsx)(p.Z.Item,{onClick:e.onClick,children:e.label},e.key)}))})}:{overlay:(0,h.jsx)(p.Z,s()({},O))};var R=s()({cursor:"pointer",padding:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:18,verticalAlign:"middle"},m);return(0,h.jsx)(v,s()(s()(s()({},n),{},{placement:"bottomRight"},w),{},{children:(0,h.jsx)("span",{className:i,style:R,children:(0,h.jsx)("i",{className:"anticon",title:null===(t=T[S])||void 0===t?void 0:t.title,children:f||(0,h.jsxs)("svg",{viewBox:"0 0 24 24",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:[(0,h.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,h.jsx)("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",className:"css-c4d79v"})]})})})}))}},34455:function(e,t,n){"use strict";n.d(t,{_H:function(){return wt},PZ:function(){return Wt},eU:function(){return E},B:function(){return Ht},XZ:function(){return nn},Mg:function(){return en},lw:function(){return Xt},Kd:function(){return Jt},H8:function(){return Gt},i_:function(){return tn},YB:function(){return kt}});var r=n(84176),i=n.n(r),o=n(73193),a=n.n(o),s=n(78796),c=n.n(s),l=n(4977),u=n.n(l),f=n(49488),d=n.n(f),p=n(84047),h=n.n(p),m=n(44194),g=n.t(m,2),v=n(10154),y=n.n(v),b=n(10063);n.n(b)();var w,k=m.createContext(null),E=(k.Consumer,k.Provider),S=k;function x(e){return e.type===w.literal}function _(e){return e.type===w.argument}function T(e){return e.type===w.number}function C(e){return e.type===w.date}function A(e){return e.type===w.time}function O(e){return e.type===w.select}function R(e){return e.type===w.plural}function P(e){return e.type===w.pound}function I(e){return!(!e||"object"!=typeof e||0!==e.type)}function M(e){return!(!e||"object"!=typeof e||1!==e.type)}!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"}(w||(w={}));var L,N=(L=function(e,t){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},L(e,t)},function(e,t){function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){for(t=1,n=1;t1&&"}"===e)},ue=Ae("\n",!1),fe=Re("argNameOrNumber"),de=Re("argNumber"),pe=Ae("0",!1),he=/^[1-9]/,me=Oe([["1","9"]],!1,!1),ge=/^[0-9]/,ve=Oe([["0","9"]],!1,!1),ye=Re("argName"),be=0,we=0,ke=[{line:1,column:1}],Ee=0,Se=[],xe=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=i[t.startRule]}function _e(){return e.substring(we,be)}function Te(){return Ie(we,be)}function Ce(e,t){throw function(e,t){return new j(e,[],"",t)}(e,t=void 0!==t?t:Ie(we,be))}function Ae(e,t){return{type:"literal",text:e,ignoreCase:t}}function Oe(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Re(e){return{type:"other",description:e}}function Pe(t){var n,r=ke[t];if(r)return r;for(n=t-1;!ke[n];)n--;for(r={line:(r=ke[n]).line,column:r.column};nEe&&(Ee=be,Se=[]),Se.push(e))}function Le(e,t,n){return new j(j.buildMessage(e,t),e,t,n)}function Ne(){return De()}function De(){var e,t;for(e=[],t=je();t!==r;)e.push(t),t=je();return e}function je(){var t;return(t=function(){var e,t;e=be,(t=Be())!==r&&(we=e,n=t,t=D({type:w.literal,value:n},it()));var n;return e=t,e}())===r&&(t=function(){var t,n,i,o;xe++,t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===xe&&Me(l));n!==r&&Ge()!==r&&(i=Je())!==r&&Ge()!==r?(125===e.charCodeAt(be)?(o=u,be++):(o=r,0===xe&&Me(f)),o!==r?(we=t,a=i,t=n=D({type:w.argument,value:a},it())):(be=t,t=r)):(be=t,t=r);var a;xe--,t===r&&(n=r,0===xe&&Me(s));return t}())===r&&(t=function(){var t;t=function(){var t,n,i,o,a,s,d,p,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===xe&&Me(l));n!==r&&Ge()!==r&&(i=Je())!==r&&Ge()!==r?(44===e.charCodeAt(be)?(o=S,be++):(o=r,0===xe&&Me(x)),o!==r&&Ge()!==r?(e.substr(be,6)===_?(a=_,be+=6):(a=r,0===xe&&Me(T)),a!==r&&Ge()!==r?(s=be,44===e.charCodeAt(be)?(d=S,be++):(d=r,0===xe&&Me(x)),d!==r&&(p=Ge())!==r?(h=function(){var t,n,i;t=be,e.substr(be,2)===b?(n=b,be+=2):(n=r,0===xe&&Me(k));n!==r?(i=function(){var e,t,n;if(e=be,t=[],n=Ue(),n!==r)for(;n!==r;)t.push(n),n=Ue();else t=r;t!==r&&(we=e,t=D({type:0,tokens:t},it()));return e=t,e}(),i!==r?(we=t,t=n=i):(be=t,t=r)):(be=t,t=r);t===r&&(t=be,we=be,nt.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=Be())!==r?(we=t,t=n=E(i)):(be=t,t=r));return t}(),h!==r?s=d=[d,p,h]:(be=s,s=r)):(be=s,s=r),s===r&&(s=null),s!==r&&(d=Ge())!==r?(125===e.charCodeAt(be)?(p=u,be++):(p=r,0===xe&&Me(f)),p!==r?(we=t,t=n=C(i,a,s)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r);return t}(),t===r&&(t=function(){var t,n,i,o,a,s,d,p,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===xe&&Me(l));n!==r&&Ge()!==r&&(i=Je())!==r&&Ge()!==r?(44===e.charCodeAt(be)?(o=S,be++):(o=r,0===xe&&Me(x)),o!==r&&Ge()!==r?(e.substr(be,4)===B?(a=B,be+=4):(a=r,0===xe&&Me(F)),a===r&&(e.substr(be,4)===$?(a=$,be+=4):(a=r,0===xe&&Me(U))),a!==r&&Ge()!==r?(s=be,44===e.charCodeAt(be)?(d=S,be++):(d=r,0===xe&&Me(x)),d!==r&&(p=Ge())!==r?(h=function(){var t,n,i;t=be,e.substr(be,2)===b?(n=b,be+=2):(n=r,0===xe&&Me(k));n!==r?(i=function(){var t,n,i,o;t=be,n=be,i=[],o=qe(),o===r&&(o=Ze());if(o!==r)for(;o!==r;)i.push(o),(o=qe())===r&&(o=Ze());else i=r;n=i!==r?e.substring(n,be):i;n!==r&&(we=t,n=D({type:1,pattern:n},it()));return t=n,t}(),i!==r?(we=t,t=n=i):(be=t,t=r)):(be=t,t=r);t===r&&(t=be,we=be,nt.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=Be())!==r?(we=t,t=n=E(i)):(be=t,t=r));return t}(),h!==r?s=d=[d,p,h]:(be=s,s=r)):(be=s,s=r),s===r&&(s=null),s!==r&&(d=Ge())!==r?(125===e.charCodeAt(be)?(p=u,be++):(p=r,0===xe&&Me(f)),p!==r?(we=t,t=n=C(i,a,s)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,i,o,a,s,d,p,h,m,g;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===xe&&Me(l));if(n!==r)if(Ge()!==r)if((i=Je())!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(o=S,be++):(o=r,0===xe&&Me(x)),o!==r)if(Ge()!==r)if(e.substr(be,6)===q?(a=q,be+=6):(a=r,0===xe&&Me(Z)),a===r&&(e.substr(be,13)===z?(a=z,be+=13):(a=r,0===xe&&Me(H))),a!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(s=S,be++):(s=r,0===xe&&Me(x)),s!==r)if(Ge()!==r)if(d=be,e.substr(be,7)===W?(p=W,be+=7):(p=r,0===xe&&Me(V)),p!==r&&(h=Ge())!==r&&(m=Ke())!==r?d=p=[p,h,m]:(be=d,d=r),d===r&&(d=null),d!==r)if((p=Ge())!==r){if(h=[],(m=He())!==r)for(;m!==r;)h.push(m),m=He();else h=r;h!==r&&(m=Ge())!==r?(125===e.charCodeAt(be)?(g=u,be++):(g=r,0===xe&&Me(f)),g!==r?(we=t,n=function(e,t,n,r){return D({type:w.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&Ce('Duplicate option "'+n+'" in plural element: "'+_e()+'"',Te()),e[n]={value:r,location:i},e}),{})},it())}(i,a,d,h),t=n):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;return t}(),t===r&&(t=function(){var t,n,i,o,a,s,d,p,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===xe&&Me(l));if(n!==r)if(Ge()!==r)if((i=Je())!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(o=S,be++):(o=r,0===xe&&Me(x)),o!==r)if(Ge()!==r)if(e.substr(be,6)===G?(a=G,be+=6):(a=r,0===xe&&Me(K)),a!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(s=S,be++):(s=r,0===xe&&Me(x)),s!==r)if(Ge()!==r){if(d=[],(p=ze())!==r)for(;p!==r;)d.push(p),p=ze();else d=r;d!==r&&(p=Ge())!==r?(125===e.charCodeAt(be)?(h=u,be++):(h=r,0===xe&&Me(f)),h!==r?(we=t,n=function(e,t){return D({type:w.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&Ce('Duplicate option "'+n+'" in select element: "'+_e()+'"',Te()),e[n]={value:r,location:i},e}),{})},it())}(i,d),t=n):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;return t}(),t===r&&(t=function(){var t,n;t=be,35===e.charCodeAt(be)?(n="#",be++):(n=r,0===xe&&Me(a));n!==r&&(we=t,n=D({type:w.pound},it()));return t=n,t}()))),t}function Be(){var e,t,n;if(e=be,t=[],(n=Ye())===r&&(n=Xe())===r&&(n=Qe()),n!==r)for(;n!==r;)t.push(n),(n=Ye())===r&&(n=Xe())===r&&(n=Qe());else t=r;return t!==r&&(we=e,t=t.join("")),e=t}function Fe(){var t,n,i,o,a;if(xe++,t=be,n=[],i=be,o=be,xe++,(a=We())===r&&(p.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===xe&&Me(h))),xe--,a===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(a=e.charAt(be),be++):(a=r,0===xe&&Me(m)),a!==r?i=o=[o,a]:(be=i,i=r)):(be=i,i=r),i!==r)for(;i!==r;)n.push(i),i=be,o=be,xe++,(a=We())===r&&(p.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===xe&&Me(h))),xe--,a===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(a=e.charAt(be),be++):(a=r,0===xe&&Me(m)),a!==r?i=o=[o,a]:(be=i,i=r)):(be=i,i=r);else n=r;return t=n!==r?e.substring(t,be):n,xe--,t===r&&(n=r,0===xe&&Me(d)),t}function $e(){var t,n,i;return xe++,t=be,47===e.charCodeAt(be)?(n="/",be++):(n=r,0===xe&&Me(v)),n!==r&&(i=Fe())!==r?(we=t,t=n=i):(be=t,t=r),xe--,t===r&&(n=r,0===xe&&Me(g)),t}function Ue(){var e,t,n,i,o;if(xe++,e=be,(t=Ge())!==r)if((n=Fe())!==r){for(i=[],o=$e();o!==r;)i.push(o),o=$e();i!==r?(we=e,t=function(e,t){return{stem:e,options:t}}(n,i),e=t):(be=e,e=r)}else be=e,e=r;else be=e,e=r;return xe--,e===r&&(t=r,0===xe&&Me(y)),e}function qe(){var t,n,i,o;if(t=be,39===e.charCodeAt(be)?(n=A,be++):(n=r,0===xe&&Me(O)),n!==r){if(i=[],(o=Ye())===r&&(R.test(e.charAt(be))?(o=e.charAt(be),be++):(o=r,0===xe&&Me(P))),o!==r)for(;o!==r;)i.push(o),(o=Ye())===r&&(R.test(e.charAt(be))?(o=e.charAt(be),be++):(o=r,0===xe&&Me(P)));else i=r;i!==r?(39===e.charCodeAt(be)?(o=A,be++):(o=r,0===xe&&Me(O)),o!==r?t=n=[n,i,o]:(be=t,t=r)):(be=t,t=r)}else be=t,t=r;if(t===r)if(t=[],(n=Ye())===r&&(I.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===xe&&Me(M))),n!==r)for(;n!==r;)t.push(n),(n=Ye())===r&&(I.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===xe&&Me(M)));else t=r;return t}function Ze(){var t,n;if(t=[],L.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===xe&&Me(N)),n!==r)for(;n!==r;)t.push(n),L.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===xe&&Me(N));else t=r;return t}function ze(){var t,n,i,o,a,s,d;return t=be,Ge()!==r&&(n=tt())!==r&&Ge()!==r?(123===e.charCodeAt(be)?(i=c,be++):(i=r,0===xe&&Me(l)),i!==r?(we=be,nt.push("select"),(!0?void 0:r)!==r&&(o=De())!==r?(125===e.charCodeAt(be)?(a=u,be++):(a=r,0===xe&&Me(f)),a!==r?(we=t,s=n,d=o,nt.pop(),t=D({id:s,value:d},it())):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r),t}function He(){var t,n,i,o,a,s,d;return t=be,Ge()!==r?(n=function(){var t,n,i,o;return t=be,n=be,61===e.charCodeAt(be)?(i="=",be++):(i=r,0===xe&&Me(Y)),i!==r&&(o=Ke())!==r?n=i=[i,o]:(be=n,n=r),(t=n!==r?e.substring(t,be):n)===r&&(t=tt()),t}(),n!==r&&Ge()!==r?(123===e.charCodeAt(be)?(i=c,be++):(i=r,0===xe&&Me(l)),i!==r?(we=be,nt.push("plural"),(!0?void 0:r)!==r&&(o=De())!==r?(125===e.charCodeAt(be)?(a=u,be++):(a=r,0===xe&&Me(f)),a!==r?(we=t,s=n,d=o,nt.pop(),t=D({id:s,value:d},it())):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r),t}function We(){var t;return xe++,Q.test(e.charAt(be))?(t=e.charAt(be),be++):(t=r,0===xe&&Me(J)),xe--,t===r&&(r,0===xe&&Me(X)),t}function Ve(){var t;return xe++,te.test(e.charAt(be))?(t=e.charAt(be),be++):(t=r,0===xe&&Me(ne)),xe--,t===r&&(r,0===xe&&Me(ee)),t}function Ge(){var t,n,i;for(xe++,t=be,n=[],i=We();i!==r;)n.push(i),i=We();return t=n!==r?e.substring(t,be):n,xe--,t===r&&(n=r,0===xe&&Me(re)),t}function Ke(){var t,n,i,o,a;return xe++,t=be,45===e.charCodeAt(be)?(n="-",be++):(n=r,0===xe&&Me(oe)),n===r&&(n=null),n!==r&&(i=et())!==r?(we=t,o=n,t=n=(a=i)?o?-a:a:0):(be=t,t=r),xe--,t===r&&(n=r,0===xe&&Me(ie)),t}function Ye(){var t,n;return xe++,t=be,e.substr(be,2)===se?(n=se,be+=2):(n=r,0===xe&&Me(ce)),n!==r&&(we=t,n="'"),xe--,(t=n)===r&&(n=r,0===xe&&Me(ae)),t}function Xe(){var t,n,i,o,a,s;if(t=be,39===e.charCodeAt(be)?(n=A,be++):(n=r,0===xe&&Me(O)),n!==r)if(i=function(){var t,n,i,o;t=be,n=be,e.length>be?(i=e.charAt(be),be++):(i=r,0===xe&&Me(m));i!==r?(we=be,(o=(o="{"===(a=i)||"}"===a||rt()&&"#"===a)?void 0:r)!==r?n=i=[i,o]:(be=n,n=r)):(be=n,n=r);var a;t=n!==r?e.substring(t,be):n;return t}(),i!==r){for(o=be,a=[],e.substr(be,2)===se?(s=se,be+=2):(s=r,0===xe&&Me(ce)),s===r&&(R.test(e.charAt(be))?(s=e.charAt(be),be++):(s=r,0===xe&&Me(P)));s!==r;)a.push(s),e.substr(be,2)===se?(s=se,be+=2):(s=r,0===xe&&Me(ce)),s===r&&(R.test(e.charAt(be))?(s=e.charAt(be),be++):(s=r,0===xe&&Me(P)));(o=a!==r?e.substring(o,be):a)!==r?(39===e.charCodeAt(be)?(a=A,be++):(a=r,0===xe&&Me(O)),a===r&&(a=null),a!==r?(we=t,t=n=i+o.replace("''","'")):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;return t}function Qe(){var t,n,i,o;return t=be,n=be,e.length>be?(i=e.charAt(be),be++):(i=r,0===xe&&Me(m)),i!==r?(we=be,(o=(o=le(i))?void 0:r)!==r?n=i=[i,o]:(be=n,n=r)):(be=n,n=r),n===r&&(10===e.charCodeAt(be)?(n="\n",be++):(n=r,0===xe&&Me(ue))),t=n!==r?e.substring(t,be):n}function Je(){var t,n;return xe++,t=be,(n=et())===r&&(n=tt()),t=n!==r?e.substring(t,be):n,xe--,t===r&&(n=r,0===xe&&Me(fe)),t}function et(){var t,n,i,o,a;if(xe++,t=be,48===e.charCodeAt(be)?(n="0",be++):(n=r,0===xe&&Me(pe)),n!==r&&(we=t,n=0),(t=n)===r){if(t=be,n=be,he.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===xe&&Me(me)),i!==r){for(o=[],ge.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===xe&&Me(ve));a!==r;)o.push(a),ge.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===xe&&Me(ve));o!==r?n=i=[i,o]:(be=n,n=r)}else be=n,n=r;n!==r&&(we=t,n=parseInt(n.join(""),10)),t=n}return xe--,t===r&&(n=r,0===xe&&Me(de)),t}function tt(){var t,n,i,o,a;if(xe++,t=be,n=[],i=be,o=be,xe++,(a=We())===r&&(a=Ve()),xe--,a===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(a=e.charAt(be),be++):(a=r,0===xe&&Me(m)),a!==r?i=o=[o,a]:(be=i,i=r)):(be=i,i=r),i!==r)for(;i!==r;)n.push(i),i=be,o=be,xe++,(a=We())===r&&(a=Ve()),xe--,a===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(a=e.charAt(be),be++):(a=r,0===xe&&Me(m)),a!==r?i=o=[o,a]:(be=i,i=r)):(be=i,i=r);else n=r;return t=n!==r?e.substring(t,be):n,xe--,t===r&&(n=r,0===xe&&Me(ye)),t}var nt=["root"];function rt(){return"plural"===nt[nt.length-1]}function it(){return t&&t.captureLocation?{location:Te()}:{}}if((n=o())!==r&&be===e.length)return n;throw n!==r&&be1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(K,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),i.options.length&&(t=W(W({},t),X(i.options[0])))}else if(Y.test(i.stem))t=W(W({},t),X(i.stem));else{var o=Q(i.stem);o&&(t=W(W({},t),o))}}return t}var te,ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),re=function(){for(var e=0,t=0,n=arguments.length;t(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,ue=Date.now()+"@@",fe=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function de(e,t,n){var r=e.tagName,i=e.outerHTML,o=e.textContent,a=e.childNodes;if(!r)return ce(o||"",t);r=r.toLowerCase();var s=~fe.indexOf(r),c=n[r];if(c&&s)throw new ie(r+" is a self-closing tag and can not be used, please use another tag name.");if(!a.length)return[i];var l=Array.prototype.slice.call(a).reduce((function(e,r){return e.concat(de(r,t,n))}),[]);return c?"function"==typeof c?[c.apply(void 0,l)]:[c]:re(["<"+r+">"],l,[""])}function pe(e,t,n,r,i,o){var a=oe(e,t,n,r,i,void 0,o),s={},c=a.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++se;return s[n]=t.value,e+"@@"+n+"@@"}),"");if(!le.test(c))return ce(c,s);if(!i)throw new ie("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new ie("Cannot format XML message without DOMParser");te||(te=new DOMParser);var l=te.parseFromString(''+c+"","text/html").getElementById(ue);if(!l)throw new ie("Malformed HTML message "+c);var u=Object.keys(i).filter((function(e){return!!l.getElementsByTagName(e).length}));if(!u.length)return ce(c,s);var f=u.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new ie("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(l.childNodes).reduce((function(e,t){return e.concat(de(t,s,i))}),[])}var he=function(){return he=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<"']/g;function ke(e){return(""+e).replace(we,(function(e){return be[e.charCodeAt(0)]}))}function Ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}function Se(e){ye(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function xe(e,t){var n=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(n)}var _e={formats:{},messages:{},timeZone:void 0,textComponent:m.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:H(Intl.DateTimeFormat,e.dateTime),getNumberFormat:H(Intl.NumberFormat,e.number),getMessageFormat:H(ve,e.message),getRelativeTimeFormat:H(t,e.relativeTime),getPluralRules:H(Intl.PluralRules,e.pluralRules),getListFormat:H(n,e.list),getDisplayNames:H(r,e.displayNames)}}function Ce(e,t,n,r){var i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(xe("No ".concat(t," format named: ").concat(n)))}var Ae=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Oe(e,t){var n=e.locale,r=e.formats,i=e.onError,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.format,s=a&&Ce(r,"number",a,i)||{},c=Ee(o,Ae,s);return t(n,c)}function Re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return Oe(e,t,r).format(n)}catch(t){e.onError(xe("Error formatting number.",t))}return String(n)}function Pe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return Oe(e,t,r).formatToParts(n)}catch(t){e.onError(xe("Error formatting number.",t))}return[]}var Ie=["numeric","style"];function Me(e,t){var n=e.locale,r=e.formats,i=e.onError,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.format,s=!!a&&Ce(r,"relative",a,i)||{},c=Ee(o,Ie,s);return t(n,c)}function Le(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(xe('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return Me(e,t,i).format(n,r)}catch(t){e.onError(xe("Error formatting relative time.",t))}return String(n)}var Ne=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function De(e,t,n){var r=e.locale,i=e.formats,o=e.onError,a=e.timeZone,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=s.format,l=Object.assign(Object.assign({},a&&{timeZone:a}),c&&Ce(i,t,c,o)),u=Ee(s,Ne,l);return"time"!==t||u.hour||u.minute||u.second||(u=Object.assign(Object.assign({},u),{hour:"numeric",minute:"numeric"})),n(r,u)}function je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="string"==typeof n?new Date(n||0):n;try{return De(e,"date",t,r).format(i)}catch(t){e.onError(xe("Error formatting date.",t))}return String(i)}function Be(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="string"==typeof n?new Date(n||0):n;try{return De(e,"time",t,r).format(i)}catch(t){e.onError(xe("Error formatting time.",t))}return String(i)}function Fe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="string"==typeof n?new Date(n||0):n;try{return De(e,"date",t,r).formatToParts(i)}catch(t){e.onError(xe("Error formatting date.",t))}return[]}function $e(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="string"==typeof n?new Date(n||0):n;try{return De(e,"time",t,r).formatToParts(i)}catch(t){e.onError(xe("Error formatting time.",t))}return[]}var Ue=["localeMatcher","type"];function qe(e,t,n){var r=e.locale,i=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||i(xe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var a=Ee(o,Ue);try{return t(r,a).select(n)}catch(e){i(xe("Error formatting plural.",e))}return"other"}var Ze=n(76711),ze=n.n(Ze);function He(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Object.assign({timeZone:t},e[r]),n}),{})}function We(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((function(n,r){return n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n}),{})}function Ve(e,t){if(!t)return e;var n=ve.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:We(He(n.date,t),He(e.date||{},t)),time:We(He(n.time,t),He(e.time||{},t))})}var Ge=function(e){return m.createElement.apply(g,[m.Fragment,null].concat(ze()(e)))};function Ke(e,t){var n=e.locale,r=e.formats,i=e.messages,o=e.defaultLocale,a=e.defaultFormats,s=e.onError,c=e.timeZone,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=l.id,d=l.defaultMessage;ye(!!f,"[React Intl] An `id` must be provided to format a message.");var p=i&&i[String(f)];r=Ve(r,c),a=Ve(a,c);var h=[];if(p)try{var m=t.getMessageFormat(p,n,r,{formatters:t});h=m.formatHTMLMessage(u)}catch(e){s(xe('Error formatting message: "'.concat(f,'" for locale: "').concat(n,'"')+(d?", using default message as fallback.":""),e))}else(!d||n&&n.toLowerCase()!==o.toLowerCase())&&s(xe('Missing message: "'.concat(f,'" for locale: "').concat(n,'"')+(d?", using default message as fallback.":"")));if(!h.length&&d)try{var g=t.getMessageFormat(d,o,a);h=g.formatHTMLMessage(u)}catch(e){s(xe('Error formatting the default message for: "'.concat(f,'"'),e))}return h.length?1===h.length&&"string"==typeof h[0]?h[0]||d||String(f):Ge(h):(s(xe('Cannot format message: "'.concat(f,'", ')+"using message ".concat(p||d?"source":"id"," as fallback."))),"string"==typeof p?p||d||String(f):d||String(f))}function Ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?ke(n):n,e}),{});return Ke(e,t,n,i)}var Xe=n(57761),Qe=n.n(Xe),Je=n(89957),et=n.n(Je),tt=["localeMatcher","type","style"],nt=Date.now();function rt(e){return"".concat(nt,"_").concat(e,"_").concat(nt)}function it(e,t,n){var r=e.locale,i=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Intl.ListFormat;a||i(xe('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var s=Ee(o,tt);try{var c={},l=n.map((function(e,t){if("object"===et()(e)){var n=rt(t);return c[n]=e,n}return String(e)}));if(!Object.keys(c).length)return t(r,s).format(l);var u=t(r,s).formatToParts(l);return u.reduce((function(e,t){var n=t.value;return c[n]?e.push(c[n]):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[])}catch(e){i(xe("Error formatting list.",e))}return n}var ot=["localeMatcher","style","type","fallback"];function at(e,t,n){var r=e.locale,i=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Intl.DisplayNames;a||i(xe('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));var s=Ee(o,ot);try{return t(r,s).of(n)}catch(e){i(xe("Error formatting display name.",e))}}var st=Qe()||Xe;function ct(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function lt(e,t){var n=Te(t),r=Object.assign(Object.assign({},_e),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(xe('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(xe('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(a&&a(xe('"locale" was not configured, using "'.concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:Re.bind(null,r,n.getNumberFormat),formatNumberToParts:Pe.bind(null,r,n.getNumberFormat),formatRelativeTime:Le.bind(null,r,n.getRelativeTimeFormat),formatDate:je.bind(null,r,n.getDateTimeFormat),formatDateToParts:Fe.bind(null,r,n.getDateTimeFormat),formatTime:Be.bind(null,r,n.getDateTimeFormat),formatTimeToParts:$e.bind(null,r,n.getDateTimeFormat),formatPlural:qe.bind(null,r,n.getPluralRules),formatMessage:Ke.bind(null,r,n),formatHTMLMessage:Ye.bind(null,r,n),formatList:it.bind(null,r,n.getListFormat),formatDisplayName:at.bind(null,r,n.getDisplayNames)})}var ut=function(e){d()(n,e);var t=h()(n);function n(){var e;return c()(this,n),(e=t.apply(this,arguments)).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:lt(ct(e.props),e.cache),prevConfig:ct(e.props)},e}return u()(n,[{key:"render",value:function(){return Se(this.state.intl),m.createElement(E,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevConfig,r=t.cache,i=ct(e);return st(n,i)?null:{intl:lt(i,r),prevConfig:i}}}]),n}(m.PureComponent);ut.displayName="IntlProvider",ut.defaultProps=_e;var ft=n(17211),dt=n(87308),pt=n.n(dt),ht=n(62118),mt=n.n(ht),gt=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i
",hr=n=>!!n.scope,wl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((a,r)=>`${a}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class kl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=pl(e)}openNode(e){if(!hr(e))return;const t=wl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hr(e)&&(this.buffer+=Pl)}value(){return this.buffer}span(e){this.buffer+=``}}const Dr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _r{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Dr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(a=>this._walk(e,a)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{_r._collapse(t)}))}}class Ul extends _r{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new kl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Oe(n){return n?typeof n=="string"?n:n.source:null}function ml(n){return me("(?=",n,")")}function Fl(n){return me("(?:",n,")*")}function Bl(n){return me("(?:",n,")?")}function me(...n){return n.map(t=>Oe(t)).join("")}function Gl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function dr(...n){return"("+(Gl(n).capture?"":"?:")+n.map(a=>Oe(a)).join("|")+")"}function El(n){return new RegExp(n.toString()+"|").exec("").length-1}function Yl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ql=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ur(n,{joinWith:e}){let t=0;return n.map(a=>{t+=1;const r=t;let i=Oe(a),s="";for(;i.length>0;){const o=ql.exec(i);if(!o){s+=i;break}s+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+r):(s+=o[0],o[0]==="("&&t++)}return s}).map(a=>`(${a})`).join(e)}const Hl=/\b\B/,gl="[a-zA-Z]\\w*",pr="[a-zA-Z_]\\w*",Sl="\\b\\d+(\\.\\d+)?",Tl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bl="\\b(0b[01]+)",Vl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=me(e,/.*\b/,n.binary,/\b.*/)),_e({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,a)=>{t.index!==0&&a.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Kl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},$l={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},De=function(n,e,t={}){const a=_e({scope:"comment",begin:n,end:e,contains:[]},t);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=dr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:me(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},Ql=De("//","$"),Xl=De("/\\*","\\*/"),Zl=De("#","$"),Jl={scope:"number",begin:Sl,relevance:0},jl={scope:"number",begin:Tl,relevance:0},ec={scope:"number",begin:bl,relevance:0},tc={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},nc={scope:"title",begin:gl,relevance:0},ac={scope:"title",begin:pr,relevance:0},rc={begin:"\\.\\s*"+pr,relevance:0},ic=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Wl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:ec,BINARY_NUMBER_RE:bl,COMMENT:De,C_BLOCK_COMMENT_MODE:Xl,C_LINE_COMMENT_MODE:Ql,C_NUMBER_MODE:jl,C_NUMBER_RE:Tl,END_SAME_AS_BEGIN:ic,HASH_COMMENT_MODE:Zl,IDENT_RE:gl,MATCH_NOTHING_RE:Hl,METHOD_GUARD:rc,NUMBER_MODE:Jl,NUMBER_RE:Sl,PHRASAL_WORDS_MODE:$l,QUOTE_STRING_MODE:Kl,REGEXP_MODE:tc,RE_STARTERS_RE:Vl,SHEBANG:zl,TITLE_MODE:nc,UNDERSCORE_IDENT_RE:pr,UNDERSCORE_TITLE_MODE:ac});function oc(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function sc(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function lc(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oc,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function cc(n,e){Array.isArray(n.illegal)&&(n.illegal=dr(...n.illegal))}function _c(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function dc(n,e){n.relevance===void 0&&(n.relevance=1)}const uc=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(a=>{delete n[a]}),n.keywords=t.keywords,n.begin=me(t.beforeMatch,ml(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},pc=["of","and","for","in","not","or","if","then","parent","list","value"],mc="keyword";function Rl(n,e,t=mc){const a=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(a,Rl(n[i],e,i))}),a;function r(i,s){e&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");a[l[0]]=[i,Ec(l[0],l[1])]})}}function Ec(n,e){return e?Number(e):gc(n)?0:1}function gc(n){return pc.includes(n.toLowerCase())}const Mr={},pe=n=>{console.error(n)},Lr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},be=(n,e)=>{Mr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Mr[`${n}/${e}`]=!0)},he=new Error;function fl(n,e,{key:t}){let a=0;const r=n[t],i={},s={};for(let o=1;o<=e.length;o++)s[o+a]=r[o],i[o+a]=!0,a+=El(e[o-1]);n[t]=s,n[t]._emit=i,n[t]._multi=!0}function Sc(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if(typeof n.beginScope!="object"||n.beginScope===null)throw pe("beginScope must be object"),he;fl(n,n.begin,{key:"beginScope"}),n.begin=ur(n.begin,{joinWith:""})}}function Tc(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if(typeof n.endScope!="object"||n.endScope===null)throw pe("endScope must be object"),he;fl(n,n.end,{key:"endScope"}),n.end=ur(n.end,{joinWith:""})}}function bc(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Rc(n){bc(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Sc(n),Tc(n)}function fc(n){function e(s,o){return new RegExp(Oe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=El(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(ur(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const _=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[_];return l.splice(0,_),Object.assign(l,c)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([_,c])=>l.addRule(_,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let _=l.exec(o);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,_=c.exec(o)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function r(s){const o=new a;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function i(s,o){const l=s;if(s.isCompiled)return l;[sc,_c,Rc,uc].forEach(c=>c(s,o)),n.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[lc,cc,dc].forEach(c=>c(s,o)),s.isCompiled=!0;let _=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),_=s.keywords.$pattern,delete s.keywords.$pattern),_=_||/\w+/,s.keywords&&(s.keywords=Rl(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(_,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Oe(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return Cc(c==="self"?s:c)})),s.contains.forEach(function(c){i(c,l)}),s.starts&&i(s.starts,o),l.matcher=r(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=_e(n.classNameAliases||{}),i(n)}function Cl(n){return n?n.endsWithParent||Cl(n.starts):!1}function Cc(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return _e(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Cl(n)?_e(n,{starts:n.starts?_e(n.starts):null}):Object.isFrozen(n)?_e(n):n}var Nc="11.11.1";class Oc extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Le=pl,xr=_e,Pr=Symbol("nomatch"),Ic=7,Nl=function(n){const e=Object.create(null),t=Object.create(null),a=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ul};function l(T){return o.noHighlightRe.test(T)}function _(T){let O=T.className+" ";O+=T.parentNode?T.parentNode.className:"";const M=o.languageDetectRe.exec(O);if(M){const w=v(M[1]);return w||(Lr(i.replace("{}",M[1])),Lr("Falling back to no-highlight mode for this block.",T)),w?M[1]:"no-highlight"}return O.split(/\s+/).find(w=>l(w)||v(w))}function c(T,O,M){let w="",B="";typeof O=="object"?(w=T,M=O.ignoreIllegals,B=O.language):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead. +import{g as xl}from"./index-hnRSc5ud.js";function ul(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],a=typeof t;(a==="object"||a==="function")&&!Object.isFrozen(t)&&ul(t)}),n}class yr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pl(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _e(n,...e){const t=Object.create(null);for(const a in n)t[a]=n[a];return e.forEach(function(a){for(const r in a)t[r]=a[r]}),t}const Pl="",hr=n=>!!n.scope,wl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((a,r)=>`${a}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class kl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=pl(e)}openNode(e){if(!hr(e))return;const t=wl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hr(e)&&(this.buffer+=Pl)}value(){return this.buffer}span(e){this.buffer+=``}}const Dr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _r{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Dr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(a=>this._walk(e,a)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{_r._collapse(t)}))}}class Ul extends _r{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new kl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Oe(n){return n?typeof n=="string"?n:n.source:null}function ml(n){return me("(?=",n,")")}function Fl(n){return me("(?:",n,")*")}function Bl(n){return me("(?:",n,")?")}function me(...n){return n.map(t=>Oe(t)).join("")}function Gl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function dr(...n){return"("+(Gl(n).capture?"":"?:")+n.map(a=>Oe(a)).join("|")+")"}function El(n){return new RegExp(n.toString()+"|").exec("").length-1}function Yl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ql=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ur(n,{joinWith:e}){let t=0;return n.map(a=>{t+=1;const r=t;let i=Oe(a),s="";for(;i.length>0;){const o=ql.exec(i);if(!o){s+=i;break}s+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+r):(s+=o[0],o[0]==="("&&t++)}return s}).map(a=>`(${a})`).join(e)}const Hl=/\b\B/,gl="[a-zA-Z]\\w*",pr="[a-zA-Z_]\\w*",Sl="\\b\\d+(\\.\\d+)?",Tl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bl="\\b(0b[01]+)",Vl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=me(e,/.*\b/,n.binary,/\b.*/)),_e({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,a)=>{t.index!==0&&a.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Kl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},$l={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},De=function(n,e,t={}){const a=_e({scope:"comment",begin:n,end:e,contains:[]},t);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=dr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:me(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},Ql=De("//","$"),Xl=De("/\\*","\\*/"),Zl=De("#","$"),Jl={scope:"number",begin:Sl,relevance:0},jl={scope:"number",begin:Tl,relevance:0},ec={scope:"number",begin:bl,relevance:0},tc={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},nc={scope:"title",begin:gl,relevance:0},ac={scope:"title",begin:pr,relevance:0},rc={begin:"\\.\\s*"+pr,relevance:0},ic=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Wl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:ec,BINARY_NUMBER_RE:bl,COMMENT:De,C_BLOCK_COMMENT_MODE:Xl,C_LINE_COMMENT_MODE:Ql,C_NUMBER_MODE:jl,C_NUMBER_RE:Tl,END_SAME_AS_BEGIN:ic,HASH_COMMENT_MODE:Zl,IDENT_RE:gl,MATCH_NOTHING_RE:Hl,METHOD_GUARD:rc,NUMBER_MODE:Jl,NUMBER_RE:Sl,PHRASAL_WORDS_MODE:$l,QUOTE_STRING_MODE:Kl,REGEXP_MODE:tc,RE_STARTERS_RE:Vl,SHEBANG:zl,TITLE_MODE:nc,UNDERSCORE_IDENT_RE:pr,UNDERSCORE_TITLE_MODE:ac});function oc(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function sc(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function lc(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oc,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function cc(n,e){Array.isArray(n.illegal)&&(n.illegal=dr(...n.illegal))}function _c(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function dc(n,e){n.relevance===void 0&&(n.relevance=1)}const uc=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(a=>{delete n[a]}),n.keywords=t.keywords,n.begin=me(t.beforeMatch,ml(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},pc=["of","and","for","in","not","or","if","then","parent","list","value"],mc="keyword";function Rl(n,e,t=mc){const a=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(a,Rl(n[i],e,i))}),a;function r(i,s){e&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");a[l[0]]=[i,Ec(l[0],l[1])]})}}function Ec(n,e){return e?Number(e):gc(n)?0:1}function gc(n){return pc.includes(n.toLowerCase())}const Mr={},pe=n=>{console.error(n)},Lr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},be=(n,e)=>{Mr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Mr[`${n}/${e}`]=!0)},he=new Error;function fl(n,e,{key:t}){let a=0;const r=n[t],i={},s={};for(let o=1;o<=e.length;o++)s[o+a]=r[o],i[o+a]=!0,a+=El(e[o-1]);n[t]=s,n[t]._emit=i,n[t]._multi=!0}function Sc(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if(typeof n.beginScope!="object"||n.beginScope===null)throw pe("beginScope must be object"),he;fl(n,n.begin,{key:"beginScope"}),n.begin=ur(n.begin,{joinWith:""})}}function Tc(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if(typeof n.endScope!="object"||n.endScope===null)throw pe("endScope must be object"),he;fl(n,n.end,{key:"endScope"}),n.end=ur(n.end,{joinWith:""})}}function bc(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Rc(n){bc(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Sc(n),Tc(n)}function fc(n){function e(s,o){return new RegExp(Oe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=El(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(ur(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const _=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[_];return l.splice(0,_),Object.assign(l,c)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([_,c])=>l.addRule(_,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let _=l.exec(o);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,_=c.exec(o)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function r(s){const o=new a;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function i(s,o){const l=s;if(s.isCompiled)return l;[sc,_c,Rc,uc].forEach(c=>c(s,o)),n.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[lc,cc,dc].forEach(c=>c(s,o)),s.isCompiled=!0;let _=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),_=s.keywords.$pattern,delete s.keywords.$pattern),_=_||/\w+/,s.keywords&&(s.keywords=Rl(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(_,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Oe(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return Cc(c==="self"?s:c)})),s.contains.forEach(function(c){i(c,l)}),s.starts&&i(s.starts,o),l.matcher=r(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=_e(n.classNameAliases||{}),i(n)}function Cl(n){return n?n.endsWithParent||Cl(n.starts):!1}function Cc(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return _e(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Cl(n)?_e(n,{starts:n.starts?_e(n.starts):null}):Object.isFrozen(n)?_e(n):n}var Nc="11.11.1";class Oc extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Le=pl,xr=_e,Pr=Symbol("nomatch"),Ic=7,Nl=function(n){const e=Object.create(null),t=Object.create(null),a=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ul};function l(T){return o.noHighlightRe.test(T)}function _(T){let O=T.className+" ";O+=T.parentNode?T.parentNode.className:"";const M=o.languageDetectRe.exec(O);if(M){const w=v(M[1]);return w||(Lr(i.replace("{}",M[1])),Lr("Falling back to no-highlight mode for this block.",T)),w?M[1]:"no-highlight"}return O.split(/\s+/).find(w=>l(w)||v(w))}function c(T,O,M){let w="",B="";typeof O=="object"?(w=T,M=O.ignoreIllegals,B=O.language):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),B=T,w=O),M===void 0&&(M=!0);const Q={code:w,language:B};X("before:highlight",Q);const ne=Q.result?Q.result:d(Q.language,Q.code,M);return ne.code=Q.code,X("after:highlight",ne),ne}function d(T,O,M,w){const B=Object.create(null);function Q(N,y){return N.keywords[y]}function ne(){if(!x.keywords){te.addText(Y);return}let N=0;x.keywordPatternRe.lastIndex=0;let y=x.keywordPatternRe.exec(Y),P="";for(;y;){P+=Y.substring(N,y.index);const U=oe.case_insensitive?y[0].toLowerCase():y[0],Z=Q(x,U);if(Z){const[se,Ce]=Z;if(te.addText(P),P="",B[U]=(B[U]||0)+1,B[U]<=Ic&&(ue+=Ce),se.startsWith("_"))P+=y[0];else{const Ae=oe.classNameAliases[se]||se;H(y[0],Ae)}}else P+=y[0];N=x.keywordPatternRe.lastIndex,y=x.keywordPatternRe.exec(Y)}P+=Y.substring(N),te.addText(P)}function ae(){if(Y==="")return;let N=null;if(typeof x.subLanguage=="string"){if(!e[x.subLanguage]){te.addText(Y);return}N=d(x.subLanguage,Y,!0,fe[x.subLanguage]),fe[x.subLanguage]=N._top}else N=E(Y,x.subLanguage.length?x.subLanguage:null);x.relevance>0&&(ue+=N.relevance),te.__addSublanguage(N._emitter,N.language)}function z(){x.subLanguage!=null?ae():ne(),Y=""}function H(N,y){N!==""&&(te.startScope(y),te.addText(N),te.endScope())}function J(N,y){let P=1;const U=y.length-1;for(;P<=U;){if(!N._emit[P]){P++;continue}const Z=oe.classNameAliases[N[P]]||N[P],se=y[P];Z?H(se,Z):(Y=se,ne(),Y=""),P++}}function V(N,y){return N.scope&&typeof N.scope=="string"&&te.openNode(oe.classNameAliases[N.scope]||N.scope),N.beginScope&&(N.beginScope._wrap?(H(Y,oe.classNameAliases[N.beginScope._wrap]||N.beginScope._wrap),Y=""):N.beginScope._multi&&(J(N.beginScope,y),Y="")),x=Object.create(N,{parent:{value:x}}),x}function G(N,y,P){let U=Yl(N.endRe,P);if(U){if(N["on:end"]){const Z=new yr(N);N["on:end"](y,Z),Z.isMatchIgnored&&(U=!1)}if(U){for(;N.endsParent&&N.parent;)N=N.parent;return N}}if(N.endsWithParent)return G(N.parent,y,P)}function K(N){return x.matcher.regexIndex===0?(Y+=N[0],1):(ce=!0,0)}function j(N){const y=N[0],P=N.rule,U=new yr(P),Z=[P.__beforeBegin,P["on:begin"]];for(const se of Z)if(se&&(se(N,U),U.isMatchIgnored))return K(y);return P.skip?Y+=y:(P.excludeBegin&&(Y+=y),z(),!P.returnBegin&&!P.excludeBegin&&(Y=y)),V(P,N),P.returnBegin?0:y.length}function ee(N){const y=N[0],P=O.substring(N.index),U=G(x,N,P);if(!U)return Pr;const Z=x;x.endScope&&x.endScope._wrap?(z(),H(y,x.endScope._wrap)):x.endScope&&x.endScope._multi?(z(),J(x.endScope,N)):Z.skip?Y+=y:(Z.returnEnd||Z.excludeEnd||(Y+=y),z(),Z.excludeEnd&&(Y=y));do x.scope&&te.closeNode(),!x.skip&&!x.subLanguage&&(ue+=x.relevance),x=x.parent;while(x!==U.parent);return U.starts&&V(U.starts,N),Z.returnEnd?0:y.length}function re(){const N=[];for(let y=x;y!==oe;y=y.parent)y.scope&&N.unshift(y.scope);N.forEach(y=>te.openNode(y))}let ie={};function Ee(N,y){const P=y&&y[0];if(Y+=N,P==null)return z(),0;if(ie.type==="begin"&&y.type==="end"&&ie.index===y.index&&P===""){if(Y+=O.slice(y.index,y.index+1),!r){const U=new Error(`0 width match regex (${T})`);throw U.languageName=T,U.badRule=ie.rule,U}return 1}if(ie=y,y.type==="begin")return j(y);if(y.type==="illegal"&&!M){const U=new Error('Illegal lexeme "'+P+'" for mode "'+(x.scope||"")+'"');throw U.mode=x,U}else if(y.type==="end"){const U=ee(y);if(U!==Pr)return U}if(y.type==="illegal"&&P==="")return Y+=` `,1;if(Se>1e5&&Se>y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Y+=P,P.length}const oe=v(T);if(!oe)throw pe(i.replace("{}",T)),new Error('Unknown language: "'+T+'"');const ge=fc(oe);let de="",x=w||ge;const fe={},te=new o.__emitter(o);re();let Y="",ue=0,le=0,Se=0,ce=!1;try{if(oe.__emitTokens)oe.__emitTokens(O,te);else{for(x.matcher.considerAll();;){Se++,ce?ce=!1:x.matcher.considerAll(),x.matcher.lastIndex=le;const N=x.matcher.exec(O);if(!N)break;const y=O.substring(le,N.index),P=Ee(y,N);le=N.index+P}Ee(O.substring(le))}return te.finalize(),de=te.toHTML(),{language:T,value:de,relevance:ue,illegal:!1,_emitter:te,_top:x}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:T,value:Le(O),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:le,context:O.slice(le-100,le+100),mode:N.mode,resultSoFar:de},_emitter:te};if(r)return{language:T,value:Le(O),illegal:!1,relevance:0,errorRaised:N,_emitter:te,_top:x};throw N}}function p(T){const O={value:Le(T),illegal:!1,relevance:0,_top:s,_emitter:new o.__emitter(o)};return O._emitter.addText(T),O}function E(T,O){O=O||o.languages||Object.keys(e);const M=p(T),w=O.filter(v).filter(k).map(z=>d(z,T,!1));w.unshift(M);const B=w.sort((z,H)=>{if(z.relevance!==H.relevance)return H.relevance-z.relevance;if(z.language&&H.language){if(v(z.language).supersetOf===H.language)return 1;if(v(H.language).supersetOf===z.language)return-1}return 0}),[Q,ne]=B,ae=Q;return ae.secondBest=ne,ae}function m(T,O,M){const w=O&&t[O]||M;T.classList.add("hljs"),T.classList.add(`language-${w}`)}function S(T){let O=null;const M=_(T);if(l(M))return;if(X("before:highlightElement",{el:T,language:M}),T.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",T);return}if(T.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(T)),o.throwUnescapedHTML))throw new Oc("One of your code blocks includes unescaped HTML.",T.innerHTML);O=T;const w=O.textContent,B=M?c(w,{language:M,ignoreIllegals:!0}):E(w);T.innerHTML=B.value,T.dataset.highlighted="yes",m(T,M,B.language),T.result={language:B.language,re:B.relevance,relevance:B.relevance},B.secondBest&&(T.secondBest={language:B.secondBest.language,relevance:B.secondBest.relevance}),X("after:highlightElement",{el:T,result:B,text:w})}function g(T){o=xr(o,T)}const b=()=>{A(),be("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function R(){A(),be("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let f=!1;function A(){function T(){A()}if(document.readyState==="loading"){f||window.addEventListener("DOMContentLoaded",T,!1),f=!0;return}document.querySelectorAll(o.cssSelector).forEach(S)}function I(T,O){let M=null;try{M=O(n)}catch(w){if(pe("Language definition for '{}' could not be registered.".replace("{}",T)),r)pe(w);else throw w;M=s}M.name||(M.name=T),e[T]=M,M.rawDefinition=O.bind(null,n),M.aliases&&L(M.aliases,{languageName:T})}function C(T){delete e[T];for(const O of Object.keys(t))t[O]===T&&delete t[O]}function h(){return Object.keys(e)}function v(T){return T=(T||"").toLowerCase(),e[T]||e[t[T]]}function L(T,{languageName:O}){typeof T=="string"&&(T=[T]),T.forEach(M=>{t[M.toLowerCase()]=O})}function k(T){const O=v(T);return O&&!O.disableAutodetect}function D(T){T["before:highlightBlock"]&&!T["before:highlightElement"]&&(T["before:highlightElement"]=O=>{T["before:highlightBlock"](Object.assign({block:O.el},O))}),T["after:highlightBlock"]&&!T["after:highlightElement"]&&(T["after:highlightElement"]=O=>{T["after:highlightBlock"](Object.assign({block:O.el},O))})}function F(T){D(T),a.push(T)}function $(T){const O=a.indexOf(T);O!==-1&&a.splice(O,1)}function X(T,O){const M=T;a.forEach(function(w){w[M]&&w[M](O)})}function q(T){return be("10.7.0","highlightBlock will be removed entirely in v12.0"),be("10.7.0","Please use highlightElement now."),S(T)}Object.assign(n,{highlight:c,highlightAuto:E,highlightAll:A,highlightElement:S,highlightBlock:q,configure:g,initHighlighting:b,initHighlightingOnLoad:R,registerLanguage:I,unregisterLanguage:C,listLanguages:h,getLanguage:v,registerAliases:L,autoDetection:k,inherit:xr,addPlugin:F,removePlugin:$}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=Nc,n.regex={concat:me,lookahead:ml,either:dr,optional:Bl,anyNumberOfTimes:Fl};for(const T in ye)typeof ye[T]=="object"&&ul(ye[T]);return Object.assign(n,ye),n},Re=Nl({});Re.newInstance=()=>Nl({});var Ac=Re;Re.HighlightJS=Re;Re.default=Re;var xe,wr;function vc(){if(wr)return xe;wr=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",E="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",B="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",ae="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",z="null истина ложь неопределено",H=e.inherit(e.NUMBER_MODE),J={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},V={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},G={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},K=e.inherit(e.C_LINE_COMMENT_MODE),j={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:i+l},contains:[K]},ee={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},re={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:z},contains:[H,J,V]},K]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:i,built_in:E,class:B,type:ae,literal:z},contains:[j,re,K,ee,H,J,V,G]}}return xe=n,xe}var Pe,kr;function yc(){if(kr)return Pe;kr=1;function n(e){const t=e.regex,a=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},_={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:t.concat(a,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:"operator",match:/=\/?/},c,i,s,o,l,_,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Pe=n,Pe}var we,Ur;function hc(){if(Ur)return we;Ur=1;function n(e){const t=e.regex,a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...a)),end:/"/,keywords:a,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return we=n,we}var ke,Fr;function Dc(){if(Fr)return ke;Fr=1;function n(e){const t=e.regex,a=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(a,t.concat("(\\.",a,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:a,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}return ke=n,ke}var Ue,Br;function Mc(){if(Br)return Ue;Br=1;function n(e){const t="\\d(_|\\d)*",a="[eE][-+]?"+t,r=t+"(\\."+t+")?("+a+")?",i="\\w+",o="\\b("+(t+"#"+i+"(\\."+i+")?#("+a+")?")+"|"+r+")",l="[A-Za-z](_?[A-Za-z0-9.])*",_=`[]\\{\\}%#'"`,c=e.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:_,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:_},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:_},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:_}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:_},d]}}return Ue=n,Ue}var Fe,Gr;function Lc(){if(Gr)return Fe;Gr=1;function n(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[t,a]};return t.contains=[r],a.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,a,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return Fe=n,Fe}var Be,Yr;function xc(){if(Yr)return Be;Yr=1;function n(e){const t={className:"number",begin:/[$%]\d+/},a={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,a,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return Be=n,Be}var Ge,qr;function Pc(){if(qr)return Ge;qr=1;function n(e){const t=e.regex,a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,a]},i=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),o=[i,s,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],_=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[a,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(..._),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...o],illegal:/\/\/|->|=>|\[\[/}}return Ge=n,Ge}var Ye,Hr;function wc(){if(Hr)return Ye;Hr=1;function n(e){const t=e.regex,a="[A-Za-z_][0-9A-Za-z_]*",r={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},i=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],s={className:"symbol",begin:"\\$"+t.either(...i)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},_={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,o,e.REGEXP_MODE];const c=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:a+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:a,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+a+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:c}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:a}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Ye=n,Ye}var qe,Vr;function kc(){if(Vr)return qe;Vr=1;function n(t){const a=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+i+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",_={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:a.optional(s)+t.IDENT_RE,relevance:0},S=a.optional(s)+t.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],R=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],f=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:b,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:R},h={className:"function.dispatch",relevance:0,keywords:{_hint:f},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},v=[h,E,_,r,t.C_BLOCK_COMMENT_MODE,p,d],L={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:v.concat([{begin:/\(/,end:/\)/,keywords:C,contains:v.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+l+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:C,relevance:0},{begin:S,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,d,p,_,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,d,p,_]}]},_,r,t.C_BLOCK_COMMENT_MODE,E]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",_]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(t){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=n(t),i=r.keywords;return i.type=[...i.type,...a.type],i.literal=[...i.literal,...a.literal],i.built_in=[...i.built_in,...a.built_in],i._hints=a._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}return qe=e,qe}var He,zr;function Uc(){if(zr)return He;zr=1;function n(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return He=n,He}var Ve,Wr;function Fc(){if(Wr)return Ve;Wr=1;function n(e){const t=e.regex,a=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),_=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[s,_,l,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[s,o,_,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[_]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Ve=n,Ve}var ze,Kr;function Bc(){if(Kr)return ze;Kr=1;function n(e){const t=e.regex,a={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,o,...r,...i,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},a,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return ze=n,ze}var We,$r;function Gc(){if($r)return We;$r=1;function n(e){const t=e.regex,a=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:a,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:a.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:a,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:a.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:a,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:a,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return We=n,We}var Ke,Qr;function Yc(){if(Qr)return Ke;Qr=1;function n(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return Ke=n,Ke}var $e,Xr;function qc(){if(Xr)return $e;Xr=1;function n(e){const t="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",a=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},_={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:a},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,s]},d={className:"symbol",begin:"@[A-z0-9_]+"},p={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,l,_]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:r},contains:[s,o,l,_,c,d,p]}}return $e=n,$e}var Qe,Zr;function Hc(){if(Zr)return Qe;Zr=1;function n(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return Qe=n,Qe}var Xe,Jr;function Vc(){if(Jr)return Xe;Jr=1;function n(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:a},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return Xe=n,Xe}var Ze,jr;function zc(){if(jr)return Ze;jr=1;function n(e){const t=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return Ze=n,Ze}var Je,ei;function Wc(){if(ei)return Je;ei=1;function n(e){const t=e.regex,a={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,i]};i.contains.push(l);const _={match:/\\"/},c={className:"string",begin:/'/,end:/'/},d={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,a]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],m=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],R={match:/(\/[a-z._-]+)+/},f=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],A=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:g,literal:b,built_in:[...f,...A,"set","shopt",...I,...C]},contains:[m,e.SHEBANG(),S,p,s,o,R,l,_,c,d,a]}}return Je=n,Je}var je,ti;function Kc(){if(ti)return je;ti=1;function n(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return je=n,je}var et,ni;function $c(){if(ni)return et;ni=1;function n(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return et=n,et}var tt,ai;function Qc(){if(ai)return tt;ai=1;function n(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}return tt=n,tt}var nt,ri;function Xc(){if(ri)return nt;ri=1;function n(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},R=[p,l,a,e.C_BLOCK_COMMENT_MODE,d,c],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:R.concat([{begin:/\(/,end:/\)/,keywords:b,contains:R.concat(["self"]),relevance:0}]),relevance:0},A={begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,a,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:c,keywords:b}}}return nt=n,nt}var at,ii;function Zc(){if(ii)return at;ii=1;function n(e){const t=e.regex,a=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},_={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:[s,o,e.NUMBER_MODE]},...i]},d=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],p={match:[/OBJECT/,/\s+/,t.either(...d),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:a,literal:r},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,_,e.NUMBER_MODE,p,c]}}return at=n,at}var rt,oi;function Jc(){if(oi)return rt;oi=1;function n(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],a=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:t,type:a,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}return rt=n,rt}var it,si;function jc(){if(si)return it;si=1;function n(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],a=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=s,{name:"Ceylon",keywords:{keyword:t.concat(a),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return it=n,it}var ot,li;function e_(){if(li)return ot;li=1;function n(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return ot=n,ot}var st,ci;function t_(){if(ci)return st;ci=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",a="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:a,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:a,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},_={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:"punctuation",match:/,/,relevance:0},p=e.COMMENT(";","$",{relevance:0}),E={className:"literal",begin:/\b(true|false|nil)\b/},m={begin:"\\[|(#::?"+a+")?\\{",end:"[\\]\\}]",relevance:0},S={className:"symbol",begin:"[:]{1,2}"+a},g={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},R={keywords:i,className:"name",begin:a,relevance:0,starts:b},f=[d,g,l,_,c,p,S,m,o,E,s],A={beginKeywords:r,keywords:{$pattern:a,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:a,relevance:0,excludeEnd:!0,endsParent:!0}].concat(f)};return g.contains=[A,R,b],b.contains=f,m.contains=f,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[d,g,l,_,c,p,S,m,o,E]}}return st=n,st}var lt,_i;function n_(){if(_i)return lt;_i=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return lt=n,lt}var ct,di;function a_(){if(di)return ct;di=1;function n(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return ct=n,ct}var _t,ui;function r_(){if(ui)return _t;ui=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,a);function s(o){const l=["npm","print"],_=["yes","no","on","off"],c=["then","unless","until","loop","by","when","and","or","is","isnt","not"],d=["var","const","let","function","static"],p=I=>C=>!I.includes(C),E={keyword:n.concat(c).filter(p(d)),literal:e.concat(_),built_in:i.concat(l)},m="[A-Za-z$_][0-9A-Za-z$_]*",S={className:"subst",begin:/#\{/,end:/\}/,keywords:E},g=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,S]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[S,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+m},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];S.contains=g;const b=o.inherit(o.TITLE_MODE,{begin:m}),R="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(g)}]},A={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:E};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:E,illegal:/\/\*/,contains:[...g,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+m+"\\s*=\\s*"+R,end:"[-=]>",returnBegin:!0,contains:[b,f]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:R,end:"[-=]>",returnBegin:!0,contains:[f]}]},A,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return _t=s,_t}var dt,pi;function i_(){if(pi)return dt;pi=1;function n(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return dt=n,dt}var ut,mi;function o_(){if(mi)return ut;mi=1;function n(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return ut=n,ut}var pt,Ei;function s_(){if(Ei)return pt;Ei=1;function n(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],R=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:g,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},C={className:"function.dispatch",relevance:0,keywords:{_hint:R},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},h=[C,p,l,a,e.C_BLOCK_COMMENT_MODE,d,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:h.concat([{begin:/\(/,end:/\)/,keywords:I,contains:h.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:I,relevance:0},{begin:m,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,a,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"",keywords:I,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return pt=n,pt}var mt,gi;function l_(){if(gi)return mt;gi=1;function n(e){const t="primitive rsc_template",a="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+a.split(" ").join("|")+")\\s+",keywords:a,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return mt=n,mt}var Et,Si;function c_(){if(Si)return Et;Si=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",a="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function d(R,f){const A=[{begin:R,end:f}];return A[0].contains=A,A}const p={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:d("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},E={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%q<",end:">",contains:d("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},m={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},S={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%r<",end:">",contains:d("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},g={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},b=[c,p,E,S,m,g,_,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[p,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+a+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return l.contains=b,c.contains=b.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:b}}return Et=n,Et}var gt,Ti;function __(){if(Ti)return gt;Ti=1;function n(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:t,literal:r},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(d,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:o},m=e.inherit(E,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},b=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});E.contains=[g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_BLOCK_COMMENT_MODE],m.contains=[b,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const R={variants:[c,g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},A=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},R,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+A+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,f],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[R,_,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},I]}}return gt=n,gt}var St,bi;function d_(){if(bi)return St;bi=1;function n(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return St=n,St}var Tt,Ri;function u_(){if(Ri)return Tt;Ri=1;const n=_=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:_.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:_.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(_){const c=_.regex,d=n(_),p={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},E="and or not only",m=/@-?\w[\w]*(-\w+)*/,S="[a-zA-Z-][a-zA-Z0-9_-]*",g=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.BLOCK_COMMENT,p,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+S,relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[d.BLOCK_COMMENT,d.HEXCOLOR,d.IMPORTANT,d.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},d.FUNCTION_DISPATCH]},{begin:c.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:m},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:E,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Tt=l,Tt}var bt,fi;function p_(){if(fi)return bt;fi=1;function n(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},a="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+r+")",_="("+r+"(\\.\\d*|"+l+")|\\d+\\."+r+"|\\."+a+l+"?)",c="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+r+")",d="("+a+"|"+i+"|"+o+")",p="("+c+"|"+_+")",E=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,m={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},S={className:"number",begin:"\\b("+p+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},g={className:"string",begin:"'("+E+"|.)",end:"'",illegal:"."},R={className:"string",begin:'"',contains:[{begin:E,relevance:0}],end:'"[cwd]?'},f={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},A={className:"string",begin:"`",end:"`[cwd]?"},I={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},h={className:"meta",begin:"^#!",end:"$",relevance:5},v={className:"meta",begin:"#(line)",end:"$",relevance:5},L={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},k=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,k,I,R,f,A,C,S,m,g,h,v,L]}}return bt=n,bt}var Rt,Ci;function m_(){if(Ci)return Rt;Ci=1;function n(e){const t=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,_={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(c,{contains:[]}),E=e.inherit(d,{contains:[]});c.contains.push(E),d.contains.push(p);let m=[a,_];return[c,d,p,E].forEach(R=>{R.contains=R.contains.concat(m)}),m=m.concat(c,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},a,s,c,d,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},i,r,_,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Rt=n,Rt}var ft,Ni;function E_(){if(Ni)return ft;Ni=1;function n(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},a={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]}]};a.contains=[r,i];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(c=>`${c}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},r,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return ft=n,ft}var Ct,Oi;function g_(){if(Oi)return Ct;Oi=1;function n(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},_={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,o,r].concat(a)},r].concat(a)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,s,l,_,r].concat(a)}}return Ct=n,Ct}var Nt,Ii;function S_(){if(Ii)return Nt;Ii=1;function n(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Nt=n,Nt}var Ot,Ai;function T_(){if(Ai)return Ot;Ai=1;function n(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}return Ot=n,Ot}var It,vi;function b_(){if(vi)return It;vi=1;function n(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return It=n,It}var At,yi;function R_(){if(yi)return At;yi=1;function n(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[a,i]},_={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},d={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},p={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},E={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,i,s,o,_,p,d,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,t,r,E,{begin:e.IDENT_RE+"::",keywords:""}]}}return ht=n,ht}var Dt,Li;function O_(){if(Li)return Dt;Li=1;function n(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return Dt=n,Dt}var Mt,xi;function I_(){if(xi)return Mt;xi=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),a={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,a,i]}}return Mt=n,Mt}var Lt,Pi;function A_(){if(Pi)return Lt;Pi=1;function n(e){const t=e.regex,a="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:a,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},d={match:/\\[\s\S]/,scope:"char.escape",relevance:0},p=`[/|([{<"']`,E=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],m=C=>({scope:"char.escape",begin:t.concat(/\\/,C),relevance:0}),S={className:"string",begin:"~[a-z](?="+p+")",contains:E.map(C=>e.inherit(C,{contains:[m(C.end),d,l]}))},g={className:"string",begin:"~[A-Z](?="+p+")",contains:E.map(C=>e.inherit(C,{contains:[m(C.end)]}))},b={className:"regex",variants:[{begin:"~r(?="+p+")",contains:E.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[m(C.end),d,l]}))},{begin:"~R(?="+p+")",contains:E.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[m(C.end)]}))}]},R={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},f={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},A=e.inherit(f,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),I=[R,b,g,S,e.HASH_COMMENT_MODE,A,f,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[R,{begin:r}],relevance:0},{className:"symbol",begin:a+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},_,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=I,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:I}}return Lt=n,Lt}var xt,wi;function v_(){if(wi)return xt;wi=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[a,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,a,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}return xt=n,xt}var Pt,ki;function y_(){if(ki)return Pt;ki=1;function n(e){const t=e.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},_={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},E="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${E})(\\.(${m}))?([eE][+-]?(${m})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},h=[p,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:a}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(_,c),relevance:0}].concat(_,c);d.contains=h,g.contains=h;const D=[{begin:/^\s*=>/,starts:{end:"$",contains:h}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:h}}];return c.unshift(_),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(D).concat(c).concat(h)}}return Pt=n,Pt}var wt,Ui;function h_(){if(Ui)return wt;Ui=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return wt=n,wt}var kt,Fi;function D_(){if(Fi)return kt;Fi=1;function n(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return kt=n,kt}var Ut,Bi;function M_(){if(Bi)return Ut;Bi=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",a="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},i=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},l={begin:a+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:a,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},_={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},p={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},E={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},m={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},S={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:"fun receive if try case maybe",end:"end",keywords:r};g.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:""}),g,l,S,m,e.QUOTE_STRING_MODE,s,_,c,d,p,E];const b=[i,o,g,l,S,m,e.QUOTE_STRING_MODE,s,_,c,d,p,E];l.contains[1].contains=b,_.contains=b,p.contains[1].contains=b;const R=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],f={className:"params",begin:"\\(",end:"\\)",contains:b};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[f,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:b}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:R.map(A=>`${A}|1.5`).join(" ")},contains:[f,S,m,e.QUOTE_STRING_MODE]},s,S,m,e.QUOTE_STRING_MODE,p,c,d,_,E,{begin:/\.$/}]}}return Ut=n,Ut}var Ft,Gi;function L_(){if(Gi)return Ft;Gi=1;function n(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return Ft=n,Ft}var Bt,Yi;function x_(){if(Yi)return Bt;Yi=1;function n(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return Bt=n,Bt}var Gt,qi;function P_(){if(qi)return Gt;qi=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a={className:"string",variants:[{begin:'"',end:'"'}]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,a,i,e.C_NUMBER_MODE]}}return Gt=n,Gt}var Yt,Hi;function w_(){if(Hi)return Yt;Hi=1;function n(e){const t=e.regex,a={className:"params",begin:"\\(",end:"\\)"},r={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,s,i)},{begin:t.concat(/\b\d+/,s,i)},{begin:t.concat(/\.\d+/,s,i)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,a]},_={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[_,l,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}return Yt=n,Yt}var qt,Vi;function k_(){if(Vi)return qt;Vi=1;function n(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return a("(?=",o,")")}function a(...o){return o.map(_=>e(_)).join("")}function r(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function i(...o){return"("+(r(o).capture?"":"?:")+o.map(c=>e(c)).join("|")+")"}function s(o){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],_={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},c=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],d=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],p=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],E=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],S={keyword:l,literal:d,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":p},b={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},R=/[a-zA-Z_](\w|')*/,f={scope:"variable",begin:/``/,end:/``/},A=/\B('|\^)/,I={scope:"symbol",variants:[{match:a(A,/``.*?``/)},{match:a(A,o.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:H}){let J;H?J="!%&*+-/<=>@^|~?":J="!%&*+-/<>@^|~?";const V=Array.from(J),G=a("[",...V.map(n),"]"),K=i(G,/\./),j=a(K,t(K)),ee=i(a(j,K,"*"),a(G,"+"));return{scope:"operator",match:i(ee,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},h=C({includeEqual:!0}),v=C({includeEqual:!1}),L=function(H,J){return{begin:a(H,t(a(/\s*/,i(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:J,end:t(i(/\n/,/=/)),relevance:0,keywords:o.inherit(S,{type:E}),contains:[b,I,o.inherit(f,{scope:null}),v]}},k=L(/:/,"operator"),D=L(/\bof\b/,"keyword"),F={begin:[/(^|\s+)/,/type/,/\s+/,R],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:S,contains:[b,o.inherit(f,{scope:null}),I,{scope:"operator",match:/<|>/},k]},$={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},X={begin:[/^\s*/,a(/#/,i(...c)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},q={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},T={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},O={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},M={scope:"string",begin:/"""/,end:/"""/,relevance:2},w={scope:"subst",begin:/\{/,end:/\}/,keywords:S},B={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,w]},Q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,w]},ne={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},w],relevance:2},ae={scope:"string",match:a(/'/,i(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return w.contains=[Q,B,O,T,ae,_,b,f,k,$,X,q,I,h],{name:"F#",aliases:["fs","f#"],keywords:S,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[_,{variants:[ne,Q,B,M,O,T,ae]},b,f,F,{scope:"meta",begin:/\[\]/,relevance:2,contains:[f,M,O,T,ae,q]},D,k,$,X,q,I,h]}}return qt=s,qt}var Ht,zi;function U_(){if(zi)return Ht;zi=1;function n(e){const t=e.regex,a={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:a,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,_={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:t.concat(l,t.anyNumberOfTimes(t.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:a,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,_]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[_]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}return Ht=n,Ht}var Vt,Wi;function F_(){if(Wi)return Vt;Wi=1;function n(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},a=e.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,i]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(E,m,S){const g=e.inherit({className:"function",beginKeywords:E,end:m,excludeEnd:!0,contains:[].concat(s)},{});return g.contains.push(o),g.contains.push(e.C_NUMBER_MODE),g.contains.push(e.C_BLOCK_COMMENT_MODE),g.contains.push(a),g},_={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},_,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},p={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,_,d,c,"self"]};return d.contains.push(p),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,a,p]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,i]}}return Vt=n,Vt}var zt,Ki;function B_(){if(Ki)return zt;Ki=1;function n(e){const t=e.regex,a={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},r=/\b/;function i(m,S){if(m.index===0)return;const g=m.input[m.index-1];g>="0"&&g<="9"||g!=="_"&&S.ignoreMatch()}const s=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,l=/T\s*\d+/,_=/O\s*\d+/,c=/O<.+>/,d=/[ABCUVWXYZ]\s*/,p=/[FHIJKPQRS]\s*/,E=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,l)},{begin:l,"on:begin":i}]},{scope:"symbol",variants:[{match:t.concat(r,_)},{begin:_,"on:begin":i},{match:t.concat(r,c)},{begin:c,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:t.concat(r,d,s)},{begin:t.concat(d,s),"on:begin":i}]},{scope:"params",variants:[{match:t.concat(r,p,s)},{begin:t.concat(p,s),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:a,contains:E}}return zt=n,zt}var Wt,$i;function G_(){if($i)return Wt;$i=1;function n(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return Wt=n,Wt}var Kt,Qi;function Y_(){if(Qi)return Kt;Qi=1;function n(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return Kt=n,Kt}var $t,Xi;function q_(){if(Xi)return $t;Xi=1;function n(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return $t=n,$t}var Qt,Zi;function H_(){if(Zi)return Qt;Zi=1;function n(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return en=n,en}var tn,ao;function Q_(){if(ao)return tn;ao=1;function n(e){const t=e.regex,a={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,_=/(\.|\/)/,c=t.either(i,s,o,l),d=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(_,c))),p=t.concat("(",o,"|",l,")(?==)"),E={begin:d},m=e.inherit(E,{keywords:r}),S={begin:/\(/,end:/\)/},g={className:"attr",begin:p,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,S]}}},b={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},R={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,b,g,m,S],returnEnd:!0},f=e.inherit(E,{className:"name",keywords:a,starts:e.inherit(R,{end:/\)/})});S.contains=[f];const A=e.inherit(E,{keywords:a,className:"name",starts:e.inherit(R,{end:/\}\}/})}),I=e.inherit(E,{keywords:a,className:"name"}),C=e.inherit(E,{className:"name",keywords:a,starts:e.inherit(R,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[A],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[I]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[A]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[I]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}return tn=n,tn}var nn,ro;function X_(){if(ro)return nn;ro=1;function n(e){const t="([0-9]_*)+",a="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",_="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",c={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},d={className:"meta",begin:/\{-#/,end:/#-\}/},p={className:"meta",begin:"^#",end:"$"},E={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},m={begin:"\\(",end:"\\)",illegal:'"',contains:[d,p,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),c]},S={begin:/\{/,end:/\}/,contains:m.contains},g={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${a})(\\.(${a}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[m,c],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[m,c],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[E,m,c]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[d,E,m,S,c]},{beginKeywords:"default",end:"$",contains:[E,m,c]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,c]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[E,e.QUOTE_STRING_MODE,c]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},d,p,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,g,E,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${_}--+|--+(?!-)${_}`},c,{begin:"->|<-"}]}}return nn=n,nn}var an,io;function Z_(){if(io)return an;io=1;function n(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",a=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:a,relevance:0},{className:"variable",begin:"\\$"+t},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return an=n,an}var rn,oo;function J_(){if(oo)return rn;oo=1;function n(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return rn=n,rn}var on,so;function j_(){if(so)return on;so=1;function n(e){const t=e.regex,a="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:t.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})",end:/$/,contains:[{className:"meta",begin:a},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(i,{relevance:0})]}}return on=n,on}var sn,lo;function ed(){if(lo)return sn;lo=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",a="["+t+"]["+t+"0-9/;:]*",r={$pattern:a,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",s={begin:a,relevance:0},o={className:"number",begin:i,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},p={className:"comment",begin:"\\^"+a},E=e.COMMENT("\\^\\{","\\}"),m={className:"symbol",begin:"[:]{1,2}"+a},S={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},b={className:"name",relevance:0,keywords:r,begin:a,starts:g},R=[S,l,p,E,_,m,d,o,c,s];return S.contains=[e.COMMENT("comment",""),b,g],g.contains=R,d.contains=R,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),S,l,p,E,_,m,d,o,c]}}return sn=n,sn}var ln,co;function td(){if(co)return ln;co=1;function n(e){const t="\\[",a="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:a}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:a,contains:["self"]}]}}return ln=n,ln}var cn,_o;function nd(){if(_o)return cn;_o=1;function n(e){const t=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[r,s,i,o,a,"self"],relevance:0},_=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,p=t.either(_,c,d),E=t.concat(p,"(\\s*\\.\\s*",p,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:E,className:"attr",starts:{end:/$/,contains:[r,l,s,i,o,a]}}]}}return cn=n,cn}var _n,uo;function ad(){if(uo)return _n;uo=1;function n(e){const t=e.regex,a={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,a]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return _n=n,_n}var dn,po;function rd(){if(po)return dn;po=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",a="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",H="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",Ol="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",Il="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",Al="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",vl="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",yl=H+Ol,hl=Al,Dl="null true false nil ",fr={className:"number",begin:e.NUMBER_RE,relevance:0},Cr={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Nr={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Ml={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Nr]},Ll={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Nr]},Or={variants:[Ml,Ll]},ve={$pattern:t,keyword:r,built_in:yl,class:hl,literal:Dl},Me={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:ve,relevance:0},Ir={className:"type",begin:":[ \\t]*("+vl.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Ar={className:"variable",keywords:ve,begin:t,relevance:0,contains:[Ir,Me]},vr=a+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:ve,illegal:"\\$|\\?|%|,|;$|~|#|@|r(s,o,l-1))}function i(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",_=l+r("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),m={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},S={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[g,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+_+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[S,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,a,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},a,S]}}return un=i,un}var pn,Eo;function od(){if(Eo)return pn;Eo=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],t=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(i,a,r);function l(_){const c=_.regex,d=(V,{after:G})=>{const K="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,G)=>{const K=V[0].length+V.index,j=V.input[K];if(j==="<"||j===","){G.ignoreMatch();return}j===">"&&(d(V,{after:K})||G.ignoreMatch());let ee;const re=V.input.substring(K);if(ee=re.match(/^\s*=/)){G.ignoreMatch();return}if((ee=re.match(/^\s+extends\s+/))&&ee.index===0){G.ignoreMatch();return}}},g={$pattern:n,keyword:e,literal:t,built_in:o,"variable.language":s},b="[0-9](_?[0-9])*",R=`\\.(${b})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${f})((${R})|\\.)?|(${R}))[eE][+-]?(${b})\\b`},{begin:`\\b(${f})\\b((${R})\\b|\\.)?|(${R})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},I={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"xml"}},h={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE,I]},D={className:"comment",variants:[_.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),_.C_BLOCK_COMMENT_MODE,_.C_LINE_COMMENT_MODE]},F=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,C,h,v,L,{match:/\$\d+/},A];I.contains=F.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(F)});const $=[].concat(D,I.contains),X=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat($)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:X},T={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,c.concat(p,"(",c.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...r]}},M={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(V){return c.concat("(?!",V.join("|"),")")}const ne={match:c.concat(/\b/,Q([...i,"super","import"].map(V=>`${V}\\s*\\(`)),p,c.lookahead(/\s*\(/)),className:"title.function",relevance:0},ae={begin:c.concat(/\./,c.lookahead(c.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},z={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},H="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+_.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(H)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:X,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),M,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,C,h,v,L,D,{match:/\$\d+/},A,O,{scope:"attr",match:p+c.lookahead(":"),relevance:0},J,{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,_.REGEXP_MODE,{className:"function",begin:H,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:X}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:E.begin,end:E.end},{match:m},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,_.inherit(_.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},ae,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},ne,B,T,z,{match:/\$[(.]/}]}}return pn=l,pn}var mn,go;function sd(){if(go)return mn;go=1;function n(e){const a={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},r={className:"function",begin:/:[\w\-.]+/,relevance:0},i={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,r,i,a]}}return mn=n,mn}var En,So;function ld(){if(So)return En;So=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,a,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return En=n,En}var gn,To;function cd(){if(To)return gn;To=1;function n(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},_={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},d={className:"variable",begin:"\\$"+t},p={className:"string",contains:[e.BACKSLASH_ESCAPE,c,d],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},E={className:"string",contains:[e.BACKSLASH_ESCAPE,c,d],begin:"`",end:"`"},m={className:"meta",begin:"@"+t},S={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[l,_,p,E,m,S,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],c.contains=o.contains,o}return gn=n,gn}var Sn,bo;function _d(){if(bo)return Sn;bo=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return Sn=n,Sn}var Tn,Ro;function dd(){if(Ro)return Tn;Ro=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function r(i){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"@"},_={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},c={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},d={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[c,_]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,c,_]}]};_.contains.push(d);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},E={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(d,{className:"string"}),"self"]}]},m=a,S=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=g;return b.variants[1].contains=[g],g.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,S,o,l,p,E,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,i.C_LINE_COMMENT_MODE,S],relevance:0},i.C_LINE_COMMENT_MODE,S,p,E,d,i.C_NUMBER_MODE]},S]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,E]},d,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` `},m]}}return Tn=r,Tn}var bn,fo;function ud(){if(fo)return bn;fo=1;function n(e){const t="[a-zA-Z_][\\w.]*",a="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+a},_={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[_]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[s]}},o,l].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}return bn=n,bn}var Rn,Co;function pd(){if(Co)return Rn;Co=1;function n(e){const a=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(D=>D+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(D=>D+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:a},{endsParent:!0,begin:r},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:i}]},l={className:"params",relevance:0,begin:/#+\d?/},_={variants:s},c={className:"built_in",relevance:0,begin:/[$&^_]/},d={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},p=e.COMMENT("%","$",{relevance:0}),E=[o,l,_,c,d,p],m={begin:/\{/,end:/\}/,relevance:0,contains:["self",...E]},S=e.inherit(m,{relevance:0,endsParent:!0,contains:[m,...E]}),g={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[m,...E]},b={begin:/\s+/,relevance:0},R=[S],f=[g],A=function(D,F){return{contains:[b],starts:{relevance:0,contains:D,starts:F}}},I=function(D,F){return{begin:"\\\\"+D+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+D},relevance:0,contains:[b],starts:F}},C=function(D,F){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+D+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},A(R,F))},h=(D="string")=>e.END_SAME_AS_BEGIN({className:D,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),v=function(D){return{className:"string",end:"(?=\\\\end\\{"+D+"\\})"}},L=(D="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:D,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),k=[...["verb","lstinline"].map(D=>I(D,{contains:[h()]})),I("mint",A(R,{contains:[h()]})),I("mintinline",A(R,{contains:[L(),h()]})),I("url",{contains:[L("link"),L("link")]}),I("hyperref",{contains:[L("link")]}),I("href",A(f,{contains:[L("link")]})),...[].concat(...["","\\*"].map(D=>[C("verbatim"+D,v("verbatim"+D)),C("filecontents"+D,A(R,v("filecontents"+D))),...["","B","L"].map(F=>C(F+"Verbatim"+D,A(f,v(F+"Verbatim"+D))))])),C("minted",A(f,A(R,v("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...k,...E]}}return Rn=n,Rn}var fn,No;function md(){if(No)return fn;No=1;function n(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return fn=n,fn}var Cn,Oo;function Ed(){if(Oo)return Cn;Oo=1;function n(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,r={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[r]};return r.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[r]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return Cn=n,Cn}var Nn,Io;function gd(){if(Io)return Nn;Io=1;const n=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),l=i.concat(s).sort().reverse();function _(c){const d=n(c),p=l,E="and or not only",m="[\\w-]+",S="("+m+"|@\\{"+m+"\\})",g=[],b=[],R=function($){return{className:"string",begin:"~?"+$+".*?"+$}},f=function($,X,q){return{className:$,begin:X,relevance:q}},A={$pattern:/[a-z-]+/,keyword:E,attribute:r.join(" ")},I={begin:"\\(",end:"\\)",contains:b,keywords:A,relevance:0};b.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,R("'"),R('"'),d.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},d.HEXCOLOR,I,f("variable","@@?"+m,10),f("variable","@\\{"+m+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:m+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},d.IMPORTANT,{beginKeywords:"and not"},d.FUNCTION_DISPATCH);const C=b.concat({begin:/\{/,end:/\}/,contains:g}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(b)},v={begin:S+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:b}}]},L={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:A,returnEnd:!0,contains:b,relevance:0}},k={className:"variable",variants:[{begin:"@"+m+"\\s*:",relevance:15},{begin:"@"+m}],starts:{end:"[;}]",returnEnd:!0,contains:C}},D={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:S,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,h,f("keyword","all\\b"),f("variable","@\\{"+m+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},d.CSS_NUMBER_MODE,f("selector-tag",S,0),f("selector-id","#"+S),f("selector-class","\\."+S,0),f("selector-tag","&",0),d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},d.FUNCTION_DISPATCH]},F={begin:m+`:(:)?(${p.join("|")})`,returnBegin:!0,contains:[D]};return g.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,L,k,F,v,D,h,d.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:g}}return Nn=_,Nn}var On,Ao;function Sd(){if(Ao)return On;Ao=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",a="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),_={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},d={begin:t,relevance:0},p={begin:a},m={contains:[s,o,_,c,{begin:"\\(",end:"\\)",contains:["self",i,o,s,d]},d],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+a}]},S={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},g={begin:"\\(\\s*",end:"\\)"},b={endsWithParent:!0,relevance:0};return g.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:a}]},b],b.contains=[m,S,g,i,s,o,l,_,c,p,d],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),i,o,l,m,S,g,d]}}return On=n,On}var In,vo;function Td(){if(vo)return In;vo=1;function n(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},a=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(a),illegal:";$|^\\[|^=|&|\\{"}}return In=n,In}var An,yo;function bd(){if(yo)return An;yo=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,a);function s(o){const l=["npm","print"],_=["yes","no","on","off","it","that","void"],c=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],d={keyword:n.concat(c),literal:e.concat(_),built_in:i.concat(l)},p="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",E=o.inherit(o.TITLE_MODE,{begin:p}),m={className:"subst",begin:/#\{/,end:/\}/,keywords:d},S={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:d},g=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,m,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,m,S]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[m,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+p},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];m.contains=g;const b={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(g)}]},R={begin:"(#=>|=>|\\|>>|-?->|!->)"},f={variants:[{match:[/class\s+/,p,/\s+extends\s+/,p]},{match:[/class\s+/,p]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d};return{name:"LiveScript",aliases:["ls"],keywords:d,illegal:/\/\*/,contains:g.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,R,{className:"function",contains:[E,b],returnBegin:!0,variants:[{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},f,{begin:p+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return An=s,An}var vn,ho;function Rd(){if(ho)return vn;ho=1;function n(e){const t=e.regex,a=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},_={className:"variable",variants:[{begin:t.concat(/%/,a)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:t.concat(/@/,a)},{begin:/@\d+/},{begin:t.concat(/!/,a)},{begin:t.concat(/!\d+/,a)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,s,i,_,l,o]}}return vn=n,vn}var yn,Do;function fd(){if(Do)return yn;Do=1;function n(e){const a={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},r={className:"number",relevance:0,begin:e.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[a,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},r,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return yn=n,yn}var hn,Mo;function Cd(){if(Mo)return hn;Mo=1;function n(e){const t="\\[=*\\[",a="\\]=*\\]",r={begin:t,end:a,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,a,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:a,contains:[r],relevance:5}])}}return hn=n,hn}var Dn,Lo;function Nd(){if(Lo)return Dn;Lo=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{S.has(h[0])||v.ignoreMatch()}},{className:"symbol",relevance:0,begin:m}]},b={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},R={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},f={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},A={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},I={className:"brace",relevance:0,begin:/[[\](){}]/},C={className:"message-name",relevance:0,begin:a.concat("::",m)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),f,A,C,g,b,t.QUOTE_STRING_MODE,E,R,I]}}return Mn=e,Mn}var Ln,Po;function Id(){if(Po)return Ln;Po=1;function n(e){const t="('|\\.')+",a={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:a},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:a},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:a},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:a},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return Ln=n,Ln}var xn,wo;function Ad(){if(wo)return xn;wo=1;function n(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return xn=n,xn}var Pn,ko;function vd(){if(ko)return Pn;ko=1;function n(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},a,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,s,{begin:/:-/},{begin:/\.$/}]}}return wn=n,wn}var kn,Fo;function hd(){if(Fo)return kn;Fo=1;function n(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return kn=n,kn}var Un,Bo;function Dd(){if(Bo)return Un;Bo=1;function n(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return Un=n,Un}var Fn,Go;function Md(){if(Go)return Fn;Go=1;function n(e){const t=e.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:a.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},_={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,s,_],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(g,b,R="\\1")=>{const f=R==="\\1"?R:t.concat(R,b);return t.concat(t.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,f,/(?:\\.|[^\\\/])*?/,R,r)},m=(g,b,R)=>t.concat(t.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,R,r),S=[_,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",t.either(...p,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m("(?:m|qr)?",/\//,/\//)},{begin:m("m|qr",t.either(...p,{capture:!0}),/\1/)},{begin:m("m|qr",/\(/,/\)/)},{begin:m("m|qr",/\[/,/\]/)},{begin:m("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=S,o.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:S}}return Fn=n,Fn}var Bn,Yo;function Ld(){if(Yo)return Bn;Yo=1;function n(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return Bn=n,Bn}var Gn,qo;function xd(){if(qo)return Gn;qo=1;function n(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},a={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),a,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}return Gn=n,Gn}var Yn,Ho;function Pd(){if(Ho)return Yn;Ho=1;function n(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},a="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=i;const s=e.inherit(e.TITLE_MODE,{begin:a}),o="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+a+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return Yn=n,Yn}var qn,Vo;function wd(){if(Vo)return qn;Vo=1;function n(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return qn=n,qn}var Hn,zo;function kd(){if(zo)return Hn;zo=1;function n(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},a={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,t,a]}}return Hn=n,Hn}var Vn,Wo;function Ud(){if(Wo)return Vn;Wo=1;function n(e){const t=e.regex,a={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[a]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},a]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return Vn=n,Vn}var zn,Ko;function Fd(){if(Ko)return zn;Ko=1;function n(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return zn=n,zn}var Wn,$o;function Bd(){if($o)return Wn;$o=1;function n(e){const t=e.regex,a={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},r={scope:"built_in",match:t.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(h=>`builtins\\.${h}`)),relevance:10},i="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},o="[A-Za-z0-9_\\+\\.-]+",l={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},_=t.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),c={scope:"operator",match:t.concat(_,/(?!-)/),relevance:0},d={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},p={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[_,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},E={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},m={scope:"char.escape",match:/\\\$/},S={scope:"char.escape",match:/''\$/},g={scope:"subst",begin:/\$\{/,end:/\}/,keywords:a},b={scope:"char.escape",match:/'''/},R={scope:"char.escape",match:/\\(?!\$)./},f={scope:"string",variants:[{begin:"''",end:"''",contains:[S,g,b,R]},{begin:'"',end:'"',contains:[m,g,R]}]},A={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},I=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),r,f,s,l,A,E,p,c];g.contains=I;const C=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:a,contains:I.concat(C)}}return Wn=n,Wn}var Kn,Qo;function Gd(){if(Qo)return Kn;Qo=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Kn=n,Kn}var $n,Xo;function Yd(){if(Xo)return $n;Xo=1;function n(e){const t=e.regex,a=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:t.concat(/\$/,t.either(...a))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},_={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:t.either(...r)},d={className:"keyword",begin:t.concat(/!/,t.either(...i))},p={className:"char.escape",begin:/\$(\\[nrt]|\$)/},E={className:"title.function",begin:/\w+::\w+/},m={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[p,s,o,l,_]},S=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],g=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],b={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},f={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:S,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),f,b,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},m,d,o,l,_,c,E,e.NUMBER_MODE]}}return $n=n,$n}var Qn,Zo;function qd(){if(Zo)return Qn;Zo=1;function n(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},_={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return Qn=n,Qn}var Xn,Jo;function Hd(){if(Jo)return Xn;Jo=1;function n(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return Xn=n,Xn}var Zn,jo;function Vd(){if(jo)return Zn;jo=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},a={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,t,a]},l={begin:"[*!#%]",relevance:0},_={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,s,i,t,l,_]}}return Zn=n,Zn}var Jn,es;function zd(){if(es)return Jn;es=1;function n(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},a=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[i,s]},a,r]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[a,r,e.C_LINE_COMMENT_MODE,i,s,e.NUMBER_MODE,o,l]}}return Jn=n,Jn}var jn,ts;function Wd(){if(ts)return jn;ts=1;function n(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return jn=n,jn}var ea,ns;function Kd(){if(ns)return ea;ns=1;function n(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},a={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,a]}}return ea=n,ea}var ta,as;function $d(){if(as)return ta;as=1;function n(e){const t=e.COMMENT("--","$"),a="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+a+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",_="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=_.trim().split(" ").map(function(g){return g.split("|")[0]}).join("|"),d="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",p="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",E="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",S="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(g){return g.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+l+o,built_in:d+p+E},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+S+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:_.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}return ta=n,ta}var na,rs;function Qd(){if(rs)return na;rs=1;function n(e){const t=e.regex,a=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),s=t.concat(/[A-Z]+/,a),o={scope:"variable",match:"\\$+"+r},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},_={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(_)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(_),"on:begin":(q,T)=>{T.data._beginMatch=q[1]||q[2]},"on:end":(q,T)=>{T.data._beginMatch!==q[1]&&T.ignoreMatch()}},E=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[ diff --git a/starter/src/main/resources/templates/notebase/assets/index-DFpvp1rn.js b/starter/src/main/resources/templates/notebase/assets/index-hnRSc5ud.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/index-DFpvp1rn.js rename to starter/src/main/resources/templates/notebase/assets/index-hnRSc5ud.js index 3cb2d61b87..4b4806e767 100644 --- a/starter/src/main/resources/templates/notebase/assets/index-DFpvp1rn.js +++ b/starter/src/main/resources/templates/notebase/assets/index-hnRSc5ud.js @@ -79,7 +79,7 @@ var sme;function Wn(){return sme.apply(null,arguments)}function jRe(e){sme=e}fun [`+o+"] ";for(a in arguments[0])Mi(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}cme(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var JQ={};function ume(e,t){Wn.deprecationHandler!=null&&Wn.deprecationHandler(e,t),JQ[e]||(cme(t),JQ[e]=!0)}Wn.suppressDeprecationWarnings=!1;Wn.deprecationHandler=null;function nh(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function HRe(e){var t,n;for(n in e)Mi(e,n)&&(t=e[n],nh(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 qL(e,t){var n=Am({},e),r;for(r in t)Mi(t,r)&&(Q1(e[r])&&Q1(t[r])?(n[r]={},Am(n[r],e[r]),Am(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Mi(e,r)&&!Mi(t,r)&&Q1(e[r])&&(n[r]=Am({},n[r]));return n}function Vz(e){e!=null&&this.set(e)}var GL;Object.keys?GL=Object.keys:GL=function(e){var t,n=[];for(t in e)Mi(e,t)&&n.push(t);return n};var zRe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function URe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return nh(r)?r.call(t,n):r}function Yf(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 Kz=/(\[[^\[]*\])|(\\)?([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,DT=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,eR={},sb={};function wr(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(sb[e]=i),t&&(sb[t[0]]=function(){return Yf(i.apply(this,arguments),t[1],t[2])}),n&&(sb[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function WRe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function VRe(e){var t=e.match(Kz),n,r;for(n=0,r=t.length;n=0&&DT.test(e);)e=e.replace(DT,r),DT.lastIndex=0,n-=1;return e}var KRe={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 qRe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Kz).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var GRe="Invalid date";function YRe(){return this._invalidDate}var XRe="%d",QRe=/\d{1,2}/;function ZRe(e){return this._ordinal.replace("%d",e)}var JRe={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 eAe(e,t,n,r){var i=this._relativeTime[n];return nh(i)?i(e,t,n,r):i.replace(/%d/i,e)}function tAe(e,t){var n=this._relativeTime[e>0?"future":"past"];return nh(n)?n(t):n.replace(/%s/i,t)}var eZ={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 Nu(e){return typeof e=="string"?eZ[e]||eZ[e.toLowerCase()]:void 0}function qz(e){var t={},n,r;for(r in e)Mi(e,r)&&(n=Nu(r),n&&(t[n]=e[r]));return t}var nAe={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 rAe(e){var t=[],n;for(n in e)Mi(e,n)&&t.push({unit:n,priority:nAe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var fme=/\d/,zc=/\d\d/,hme=/\d{3}/,Gz=/\d{4}/,q6=/[+-]?\d{6}/,_o=/\d\d?/,pme=/\d\d\d\d?/,mme=/\d\d\d\d\d\d?/,G6=/\d{1,3}/,Yz=/\d{1,4}/,Y6=/[+-]?\d{1,6}/,BS=/\d+/,X6=/[+-]?\d+/,iAe=/Z|[+-]\d\d:?\d\d/gi,Q6=/Z|[+-]\d\d(?::?\d\d)?/gi,oAe=/[+-]?\d+(\.\d{1,3})?/,hE=/[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,HS=/^[1-9]\d?/,Xz=/^([1-9]\d|\d)/,l9;l9={};function ir(e,t,n){l9[e]=nh(t)?t:function(r,i){return r&&n?n:t}}function aAe(e,t){return Mi(l9,e)?l9[e](t._strict,t._locale):new RegExp(sAe(e))}function sAe(e){return ep(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function ep(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 YL={};function Qi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),fp(t)&&(r=function(o,a){a[t]=ui(o)}),i=e.length,n=0;n68?1900:2e3)};var gme=zS("FullYear",!0);function dAe(){return Z6(this.year())}function zS(e,t){return function(n){return n!=null?(vme(this,e,n),Wn.updateOffset(this,t),this):Zw(this,e)}}function Zw(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 vme(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&&!Z6(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function fAe(e){return e=Nu(e),nh(this[e])?this[e]():this}function hAe(e,t){if(typeof e=="object"){e=qz(e);var n=rAe(e),r,i=n.length;for(r=0;r=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 Jw(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 c9(e,t,n){var r=7+t-n,i=(7+Jw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function wme(e,t,n,r,i){var o=(7+n-r)%7,a=c9(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=G2(l)+s):s>G2(e)?(l=e+1,c=s-G2(e)):(l=e,c=s),{year:l,dayOfYear:c}}function e_(e,t,n){var r=c9(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+tp(a,t,n)):i>tp(e.year(),t,n)?(o=i-tp(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function tp(e,t,n){var r=c9(e,t,n),i=c9(e+1,t,n);return(G2(e)-r+i)/7}wr("w",["ww",2],"wo","week");wr("W",["WW",2],"Wo","isoWeek");ir("w",_o,HS);ir("ww",_o,zc);ir("W",_o,HS);ir("WW",_o,zc);pE(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ui(e)});function TAe(e){return e_(e,this._week.dow,this._week.doy).week}var kAe={dow:0,doy:6};function OAe(){return this._week.dow}function PAe(){return this._week.doy}function MAe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function IAe(e){var t=e_(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");ir("d",_o);ir("e",_o);ir("E",_o);ir("dd",function(e,t){return t.weekdaysMinRegex(e)});ir("ddd",function(e,t){return t.weekdaysShortRegex(e)});ir("dddd",function(e,t){return t.weekdaysRegex(e)});pE(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Xr(n).invalidWeekday=e});pE(["d","e","E"],function(e,t,n,r){t[r]=ui(e)});function $Ae(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function RAe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Zz(e,t){return e.slice(t,7).concat(e.slice(0,t))}var AAe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_me="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),NAe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),DAe=hE,LAe=hE,FAe=hE;function jAe(e,t){var n=Ld(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Zz(n,this._week.dow):e?n[e.day()]:n}function BAe(e){return e===!0?Zz(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function HAe(e){return e===!0?Zz(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zAe(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=th([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=ca.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=ca.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=ca.call(this._weekdaysParse,a),i!==-1||(i=ca.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=ca.call(this._shortWeekdaysParse,a),i!==-1||(i=ca.call(this._weekdaysParse,a),i!==-1)?i:(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=ca.call(this._minWeekdaysParse,a),i!==-1||(i=ca.call(this._weekdaysParse,a),i!==-1)?i:(i=ca.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function UAe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return zAe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=th([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 WAe(e){if(!this.isValid())return e!=null?this:NaN;var t=Zw(this,"Day");return e!=null?(e=$Ae(e,this.localeData()),this.add(e-t,"d")):t}function VAe(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 KAe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=RAe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function qAe(e){return this._weekdaysParseExact?(Mi(this,"_weekdaysRegex")||Jz.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Mi(this,"_weekdaysRegex")||(this._weekdaysRegex=DAe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function GAe(e){return this._weekdaysParseExact?(Mi(this,"_weekdaysRegex")||Jz.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Mi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=LAe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function YAe(e){return this._weekdaysParseExact?(Mi(this,"_weekdaysRegex")||Jz.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Mi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=FAe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jz(){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=th([2e3,1]).day(o),s=ep(this.weekdaysMin(a,"")),l=ep(this.weekdaysShort(a,"")),c=ep(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 eU(){return this.hours()%12||12}function XAe(){return this.hours()||24}wr("H",["HH",2],0,"hour");wr("h",["hh",2],0,eU);wr("k",["kk",2],0,XAe);wr("hmm",0,0,function(){return""+eU.apply(this)+Yf(this.minutes(),2)});wr("hmmss",0,0,function(){return""+eU.apply(this)+Yf(this.minutes(),2)+Yf(this.seconds(),2)});wr("Hmm",0,0,function(){return""+this.hours()+Yf(this.minutes(),2)});wr("Hmmss",0,0,function(){return""+this.hours()+Yf(this.minutes(),2)+Yf(this.seconds(),2)});function Eme(e,t){wr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Eme("a",!0);Eme("A",!1);function Tme(e,t){return t._meridiemParse}ir("a",Tme);ir("A",Tme);ir("H",_o,Xz);ir("h",_o,HS);ir("k",_o,HS);ir("HH",_o,zc);ir("hh",_o,zc);ir("kk",_o,zc);ir("hmm",pme);ir("hmmss",mme);ir("Hmm",pme);ir("Hmmss",mme);Qi(["H","HH"],za);Qi(["k","kk"],function(e,t,n){var r=ui(e);t[za]=r===24?0:r});Qi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Qi(["h","hh"],function(e,t,n){t[za]=ui(e),Xr(n).bigHour=!0});Qi("hmm",function(e,t,n){var r=e.length-2;t[za]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r)),Xr(n).bigHour=!0});Qi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[za]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r,2)),t[Qh]=ui(e.substr(i)),Xr(n).bigHour=!0});Qi("Hmm",function(e,t,n){var r=e.length-2;t[za]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r))});Qi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[za]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r,2)),t[Qh]=ui(e.substr(i))});function QAe(e){return(e+"").toLowerCase().charAt(0)==="p"}var ZAe=/[ap]\.?m?\.?/i,JAe=zS("Hours",!0);function eNe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var kme={calendar:zRe,longDateFormat:KRe,invalidDate:GRe,ordinal:XRe,dayOfMonthOrdinalParse:QRe,relativeTime:JRe,months:mAe,monthsShort:yme,week:kAe,weekdays:AAe,weekdaysMin:NAe,weekdaysShort:_me,meridiemParse:ZAe},Oo={},Ix={},t_;function tNe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=J6(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&tNe(o,r)>=n-1)break;n--}t++}return t_}function rNe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function J6(e){var t=null,n;if(Oo[e]===void 0&&typeof module<"u"&&module&&module.exports&&rNe(e))try{t=t_._abbr,n=require,n("./locale/"+e),Zm(t)}catch{Oo[e]=null}return Oo[e]}function Zm(e,t){var n;return e&&(Pl(t)?n=kp(e):n=tU(e,t),n?t_=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),t_._abbr}function tU(e,t){if(t!==null){var n,r=kme;if(t.abbr=e,Oo[e]!=null)ume("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=Oo[e]._config;else if(t.parentLocale!=null)if(Oo[t.parentLocale]!=null)r=Oo[t.parentLocale]._config;else if(n=J6(t.parentLocale),n!=null)r=n._config;else return Ix[t.parentLocale]||(Ix[t.parentLocale]=[]),Ix[t.parentLocale].push({name:e,config:t}),null;return Oo[e]=new Vz(qL(r,t)),Ix[e]&&Ix[e].forEach(function(i){tU(i.name,i.config)}),Zm(e),Oo[e]}else return delete Oo[e],null}function iNe(e,t){if(t!=null){var n,r,i=kme;Oo[e]!=null&&Oo[e].parentLocale!=null?Oo[e].set(qL(Oo[e]._config,t)):(r=J6(e),r!=null&&(i=r._config),t=qL(i,t),r==null&&(t.abbr=e),n=new Vz(t),n.parentLocale=Oo[e],Oo[e]=n),Zm(e)}else Oo[e]!=null&&(Oo[e].parentLocale!=null?(Oo[e]=Oo[e].parentLocale,e===Zm()&&Zm(e)):Oo[e]!=null&&delete Oo[e]);return Oo[e]}function kp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return t_;if(!Ld(e)){if(t=J6(e),t)return t;e=[e]}return nNe(e)}function oNe(){return GL(Oo)}function nU(e){var t,n=e._a;return n&&Xr(e).overflow===-2&&(t=n[Xh]<0||n[Xh]>11?Xh:n[$f]<1||n[$f]>Qz(n[zs],n[Xh])?$f:n[za]<0||n[za]>24||n[za]===24&&(n[bd]!==0||n[Qh]!==0||n[O1]!==0)?za:n[bd]<0||n[bd]>59?bd:n[Qh]<0||n[Qh]>59?Qh:n[O1]<0||n[O1]>999?O1:-1,Xr(e)._overflowDayOfYear&&(t$f)&&(t=$f),Xr(e)._overflowWeeks&&t===-1&&(t=cAe),Xr(e)._overflowWeekday&&t===-1&&(t=uAe),Xr(e).overflow=t),e}var aNe=/^\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)?)?$/,sNe=/^\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)?)?$/,lNe=/Z|[+-]\d\d(?::?\d\d)?/,LT=[["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]],tR=[["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/]],cNe=/^\/?Date\((-?\d+)/i,uNe=/^(?:(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}))$/,dNe={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 Ome(e){var t,n,r=e._i,i=aNe.exec(r)||sNe.exec(r),o,a,s,l,c=LT.length,u=tR.length;if(i){for(Xr(e).iso=!0,t=0,n=c;tG2(a)||e._dayOfYear===0)&&(Xr(e)._overflowDayOfYear=!0),n=Jw(a,0,e._dayOfYear),e._a[Xh]=n.getUTCMonth(),e._a[$f]=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[bd]===0&&e._a[Qh]===0&&e._a[O1]===0&&(e._nextDay=!0,e._a[za]=0),e._d=(e._useUTC?Jw:EAe).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&&(Xr(e).weekdayMismatch=!0)}}function bNe(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=xy(t.GG,e._a[zs],e_(xo(),1,4).year),r=xy(t.W,1),i=xy(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=e_(xo(),o,a),n=xy(t.gg,e._a[zs],c.year),r=xy(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>tp(n,o,a)?Xr(e)._overflowWeeks=!0:l!=null?Xr(e)._overflowWeekday=!0:(s=wme(n,r,i,o,a),e._a[zs]=s.year,e._dayOfYear=s.dayOfYear)}Wn.ISO_8601=function(){};Wn.RFC_2822=function(){};function iU(e){if(e._f===Wn.ISO_8601){Ome(e);return}if(e._f===Wn.RFC_2822){Pme(e);return}e._a=[],Xr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=dme(e._f,e._locale).match(Kz)||[],u=i.length,n=0;n0&&Xr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),sb[o]?(r?Xr(e).empty=!1:Xr(e).unusedTokens.push(o),lAe(o,r,e)):e._strict&&!r&&Xr(e).unusedTokens.push(o);Xr(e).charsLeftOver=s-l,t.length>0&&Xr(e).unusedInput.push(t),e._a[za]<=12&&Xr(e).bigHour===!0&&e._a[za]>0&&(Xr(e).bigHour=void 0),Xr(e).parsedDateParts=e._a.slice(0),Xr(e).meridiem=e._meridiem,e._a[za]=SNe(e._locale,e._a[za],e._meridiem),c=Xr(e).era,c!==null&&(e._a[zs]=e._locale.erasConvertYear(c,e._a[zs])),rU(e),nU(e)}function SNe(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){Xr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:K6()});function $me(e,t){var n,r;if(t.length===1&&Ld(t[0])&&(t=t[0]),!t.length)return xo();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zNe(){if(!Pl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Wz(e,this),e=Mme(e),e._a?(t=e._isUTC?th(e._a):xo(e._a),this._isDSTShifted=this.isValid()&&RNe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function UNe(){return this.isValid()?!this._isUTC:!1}function WNe(){return this.isValid()?this._isUTC:!1}function Ame(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VNe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,KNe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zd(e,t){var n=e,r=null,i,o,a;return k8(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:fp(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=VNe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:ui(r[$f])*i,h:ui(r[za])*i,m:ui(r[bd])*i,s:ui(r[Qh])*i,ms:ui(XL(r[O1]*1e3))*i}):(r=KNe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Yg(r[2],i),M:Yg(r[3],i),w:Yg(r[4],i),d:Yg(r[5],i),h:Yg(r[6],i),m:Yg(r[7],i),s:Yg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=qNe(xo(n.from),xo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new eO(n),k8(e)&&Mi(e,"_locale")&&(o._locale=e._locale),k8(e)&&Mi(e,"_isValid")&&(o._isValid=e._isValid),o}Zd.fn=eO.prototype;Zd.invalid=$Ne;function Yg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function nZ(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 qNe(e,t){var n;return e.isValid()&&t.isValid()?(t=aU(t,e),e.isBefore(t)?n=nZ(e,t):(n=nZ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Nme(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(ume(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=Zd(n,r),Dme(this,i,e),this}}function Dme(e,t,n,r){var i=t._milliseconds,o=XL(t._days),a=XL(t._months);e.isValid()&&(r=r??!0,a&&Sme(e,Zw(e,"Month")+a*n),o&&vme(e,"Date",Zw(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Wn.updateOffset(e,o||a))}var GNe=Nme(1,"add"),YNe=Nme(-1,"subtract");function Lme(e){return typeof e=="string"||e instanceof String}function XNe(e){return Fd(e)||dE(e)||Lme(e)||fp(e)||ZNe(e)||QNe(e)||e===null||e===void 0}function QNe(e){var t=Q1(e)&&!zz(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;in.valueOf():n.valueOf()9999?T8(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nh(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",T8(n,"Z")):T8(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function f7e(){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 h7e(e){e||(e=this.isUtc()?Wn.defaultFormatUtc:Wn.defaultFormat);var t=T8(this,e);return this.localeData().postformat(t)}function p7e(e,t){return this.isValid()&&(Fd(e)&&e.isValid()||xo(e).isValid())?Zd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function m7e(e){return this.from(xo(),e)}function g7e(e,t){return this.isValid()&&(Fd(e)&&e.isValid()||xo(e).isValid())?Zd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function v7e(e){return this.to(xo(),e)}function Fme(e){var t;return e===void 0?this._locale._abbr:(t=kp(e),t!=null&&(this._locale=t),this)}var jme=Au("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 Bme(){return this._locale}var u9=1e3,lb=60*u9,d9=60*lb,Hme=(365*400+97)*24*d9;function cb(e,t){return(e%t+t)%t}function zme(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Hme:new Date(e,t,n).valueOf()}function Ume(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Hme:Date.UTC(e,t,n)}function y7e(e){var t,n;if(e=Nu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ume:zme,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-=cb(t+(this._isUTC?0:this.utcOffset()*lb),d9);break;case"minute":t=this._d.valueOf(),t-=cb(t,lb);break;case"second":t=this._d.valueOf(),t-=cb(t,u9);break}return this._d.setTime(t),Wn.updateOffset(this,!0),this}function b7e(e){var t,n;if(e=Nu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ume:zme,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+=d9-cb(t+(this._isUTC?0:this.utcOffset()*lb),d9)-1;break;case"minute":t=this._d.valueOf(),t+=lb-cb(t,lb)-1;break;case"second":t=this._d.valueOf(),t+=u9-cb(t,u9)-1;break}return this._d.setTime(t),Wn.updateOffset(this,!0),this}function S7e(){return this._d.valueOf()-(this._offset||0)*6e4}function C7e(){return Math.floor(this.valueOf()/1e3)}function x7e(){return new Date(this.valueOf())}function w7e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _7e(){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 E7e(){return this.isValid()?this.toISOString():null}function T7e(){return Uz(this)}function k7e(){return Am({},Xr(this))}function O7e(){return Xr(this).overflow}function P7e(){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");ir("N",sU);ir("NN",sU);ir("NNN",sU);ir("NNNN",B7e);ir("NNNNN",H7e);Qi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Xr(n).era=i:Xr(n).invalidEra=e});ir("y",BS);ir("yy",BS);ir("yyy",BS);ir("yyyy",BS);ir("yo",z7e);Qi(["y","yy","yyy","yyyy"],zs);Qi(["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 M7e(e,t){var n,r,i,o=this._eras||kp("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function $7e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Wn(e.since).year():Wn(e.since).year()+(t-e.offset)*n}function R7e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),Y7e.call(this,e,t,n,r,i))}function Y7e(e,t,n,r,i){var o=wme(e,t,n,r,i),a=Jw(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}wr("Q",0,"Qo","quarter");ir("Q",fme);Qi("Q",function(e,t){t[Xh]=(ui(e)-1)*3});function X7e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}wr("D",["DD",2],"Do","date");ir("D",_o,HS);ir("DD",_o,zc);ir("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Qi(["D","DD"],$f);Qi("Do",function(e,t){t[$f]=ui(e.match(_o)[0])});var Vme=zS("Date",!0);wr("DDD",["DDDD",3],"DDDo","dayOfYear");ir("DDD",G6);ir("DDDD",hme);Qi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ui(e)});function Q7e(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");ir("m",_o,Xz);ir("mm",_o,zc);Qi(["m","mm"],bd);var Z7e=zS("Minutes",!1);wr("s",["ss",2],0,"second");ir("s",_o,Xz);ir("ss",_o,zc);Qi(["s","ss"],Qh);var J7e=zS("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});ir("S",G6,fme);ir("SS",G6,zc);ir("SSS",G6,hme);var Nm,Kme;for(Nm="SSSS";Nm.length<=9;Nm+="S")ir(Nm,BS);function eDe(e,t){t[O1]=ui(("0."+e)*1e3)}for(Nm="S";Nm.length<=9;Nm+="S")Qi(Nm,eDe);Kme=zS("Milliseconds",!1);wr("z",0,0,"zoneAbbr");wr("zz",0,0,"zoneName");function tDe(){return this._isUTC?"UTC":""}function nDe(){return this._isUTC?"Coordinated Universal Time":""}var $n=fE.prototype;$n.add=GNe;$n.calendar=t7e;$n.clone=n7e;$n.diff=c7e;$n.endOf=b7e;$n.format=h7e;$n.from=p7e;$n.fromNow=m7e;$n.to=g7e;$n.toNow=v7e;$n.get=fAe;$n.invalidAt=O7e;$n.isAfter=r7e;$n.isBefore=i7e;$n.isBetween=o7e;$n.isSame=a7e;$n.isSameOrAfter=s7e;$n.isSameOrBefore=l7e;$n.isValid=T7e;$n.lang=jme;$n.locale=Fme;$n.localeData=Bme;$n.max=TNe;$n.min=ENe;$n.parsingFlags=k7e;$n.set=hAe;$n.startOf=y7e;$n.subtract=YNe;$n.toArray=w7e;$n.toObject=_7e;$n.toDate=x7e;$n.toISOString=d7e;$n.inspect=f7e;typeof Symbol<"u"&&Symbol.for!=null&&($n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});$n.toJSON=E7e;$n.toString=u7e;$n.unix=C7e;$n.valueOf=S7e;$n.creationData=P7e;$n.eraName=R7e;$n.eraNarrow=A7e;$n.eraAbbr=N7e;$n.eraYear=D7e;$n.year=gme;$n.isLeapYear=dAe;$n.weekYear=U7e;$n.isoWeekYear=W7e;$n.quarter=$n.quarters=X7e;$n.month=Cme;$n.daysInMonth=xAe;$n.week=$n.weeks=MAe;$n.isoWeek=$n.isoWeeks=IAe;$n.weeksInYear=q7e;$n.weeksInWeekYear=G7e;$n.isoWeeksInYear=V7e;$n.isoWeeksInISOWeekYear=K7e;$n.date=Vme;$n.day=$n.days=WAe;$n.weekday=VAe;$n.isoWeekday=KAe;$n.dayOfYear=Q7e;$n.hour=$n.hours=JAe;$n.minute=$n.minutes=Z7e;$n.second=$n.seconds=J7e;$n.millisecond=$n.milliseconds=Kme;$n.utcOffset=NNe;$n.utc=LNe;$n.local=FNe;$n.parseZone=jNe;$n.hasAlignedHourOffset=BNe;$n.isDST=HNe;$n.isLocal=UNe;$n.isUtcOffset=WNe;$n.isUtc=Ame;$n.isUTC=Ame;$n.zoneAbbr=tDe;$n.zoneName=nDe;$n.dates=Au("dates accessor is deprecated. Use date instead.",Vme);$n.months=Au("months accessor is deprecated. Use month instead",Cme);$n.years=Au("years accessor is deprecated. Use year instead",gme);$n.zone=Au("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",DNe);$n.isDSTShifted=Au("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zNe);function rDe(e){return xo(e*1e3)}function iDe(){return xo.apply(null,arguments).parseZone()}function qme(e){return e}var Ii=Vz.prototype;Ii.calendar=URe;Ii.longDateFormat=qRe;Ii.invalidDate=YRe;Ii.ordinal=ZRe;Ii.preparse=qme;Ii.postformat=qme;Ii.relativeTime=eAe;Ii.pastFuture=tAe;Ii.set=HRe;Ii.eras=M7e;Ii.erasParse=I7e;Ii.erasConvertYear=$7e;Ii.erasAbbrRegex=F7e;Ii.erasNameRegex=L7e;Ii.erasNarrowRegex=j7e;Ii.months=yAe;Ii.monthsShort=bAe;Ii.monthsParse=CAe;Ii.monthsRegex=_Ae;Ii.monthsShortRegex=wAe;Ii.week=TAe;Ii.firstDayOfYear=PAe;Ii.firstDayOfWeek=OAe;Ii.weekdays=jAe;Ii.weekdaysMin=HAe;Ii.weekdaysShort=BAe;Ii.weekdaysParse=UAe;Ii.weekdaysRegex=qAe;Ii.weekdaysShortRegex=GAe;Ii.weekdaysMinRegex=YAe;Ii.isPM=QAe;Ii.meridiem=eNe;function f9(e,t,n,r){var i=kp(),o=th().set(r,t);return i[n](o,e)}function Gme(e,t,n){if(fp(e)&&(t=e,e=void 0),e=e||"",t!=null)return f9(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=f9(e,r,n,"month");return i}function cU(e,t,n,r){typeof e=="boolean"?(fp(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,fp(t)&&(n=t,t=void 0),t=t||"");var i=kp(),o=e?i._week.dow:0,a,s=[];if(n!=null)return f9(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=f9(t,(a+o)%7,r,"day");return s}function oDe(e,t){return Gme(e,t,"months")}function aDe(e,t){return Gme(e,t,"monthsShort")}function sDe(e,t,n){return cU(e,t,n,"weekdays")}function lDe(e,t,n){return cU(e,t,n,"weekdaysShort")}function cDe(e,t,n){return cU(e,t,n,"weekdaysMin")}Zm("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}});Wn.lang=Au("moment.lang is deprecated. Use moment.locale instead.",Zm);Wn.langData=Au("moment.langData is deprecated. Use moment.localeData instead.",kp);var bh=Math.abs;function uDe(){var e=this._data;return this._milliseconds=bh(this._milliseconds),this._days=bh(this._days),this._months=bh(this._months),e.milliseconds=bh(e.milliseconds),e.seconds=bh(e.seconds),e.minutes=bh(e.minutes),e.hours=bh(e.hours),e.months=bh(e.months),e.years=bh(e.years),this}function Yme(e,t,n,r){var i=Zd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function dDe(e,t){return Yme(this,e,t,1)}function fDe(e,t){return Yme(this,e,t,-1)}function rZ(e){return e<0?Math.floor(e):Math.ceil(e)}function hDe(){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+=rZ(ZL(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(Xme(t)),n+=l,t-=rZ(ZL(l)),s=du(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Xme(e){return e*4800/146097}function ZL(e){return e*146097/4800}function pDe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Nu(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Xme(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ZL(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 Op(e){return function(){return this.as(e)}}var Qme=Op("ms"),mDe=Op("s"),gDe=Op("m"),vDe=Op("h"),yDe=Op("d"),bDe=Op("w"),SDe=Op("M"),CDe=Op("Q"),xDe=Op("y"),wDe=Qme;function _De(){return Zd(this)}function EDe(e){return e=Nu(e),this.isValid()?this[e+"s"]():NaN}function Yv(e){return function(){return this.isValid()?this._data[e]:NaN}}var TDe=Yv("milliseconds"),kDe=Yv("seconds"),ODe=Yv("minutes"),PDe=Yv("hours"),MDe=Yv("days"),IDe=Yv("months"),$De=Yv("years");function RDe(){return du(this.days()/7)}var Lh=Math.round,Uy={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ADe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function NDe(e,t,n,r){var i=Zd(e).abs(),o=Lh(i.as("s")),a=Lh(i.as("m")),s=Lh(i.as("h")),l=Lh(i.as("d")),c=Lh(i.as("M")),u=Lh(i.as("w")),d=Lh(i.as("y")),h=o<=n.ss&&["s",o]||o0,h[4]=r,ADe.apply(null,h)}function DDe(e){return e===void 0?Lh:typeof e=="function"?(Lh=e,!0):!1}function LDe(e,t){return Uy[e]===void 0?!1:t===void 0?Uy[e]:(Uy[e]=t,e==="s"&&(Uy.ss=t-1),!0)}function FDe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Uy,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Uy,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=NDe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var nR=Math.abs;function Y0(e){return(e>0)-(e<0)||+e}function nO(){if(!this.isValid())return this.localeData().invalidDate();var e=nR(this._milliseconds)/1e3,t=nR(this._days),n=nR(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=Y0(this._months)!==Y0(s)?"-":"",u=Y0(this._days)!==Y0(s)?"-":"",d=Y0(this._milliseconds)!==Y0(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 bi=eO.prototype;bi.isValid=INe;bi.abs=uDe;bi.add=dDe;bi.subtract=fDe;bi.as=pDe;bi.asMilliseconds=Qme;bi.asSeconds=mDe;bi.asMinutes=gDe;bi.asHours=vDe;bi.asDays=yDe;bi.asWeeks=bDe;bi.asMonths=SDe;bi.asQuarters=CDe;bi.asYears=xDe;bi.valueOf=wDe;bi._bubble=hDe;bi.clone=_De;bi.get=EDe;bi.milliseconds=TDe;bi.seconds=kDe;bi.minutes=ODe;bi.hours=PDe;bi.days=MDe;bi.weeks=RDe;bi.months=IDe;bi.years=$De;bi.humanize=FDe;bi.toISOString=nO;bi.toString=nO;bi.toJSON=nO;bi.locale=Fme;bi.localeData=Bme;bi.toIsoString=Au("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nO);bi.lang=jme;wr("X",0,0,"unix");wr("x",0,0,"valueOf");ir("x",X6);ir("X",oAe);Qi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Qi("x",function(e,t,n){n._d=new Date(ui(e))});//! moment.js -Wn.version="2.30.1";jRe(xo);Wn.fn=$n;Wn.min=kNe;Wn.max=ONe;Wn.now=PNe;Wn.utc=th;Wn.unix=rDe;Wn.months=oDe;Wn.isDate=dE;Wn.locale=Zm;Wn.invalid=K6;Wn.duration=Zd;Wn.isMoment=Fd;Wn.weekdays=sDe;Wn.parseZone=iDe;Wn.localeData=kp;Wn.isDuration=k8;Wn.monthsShort=aDe;Wn.weekdaysMin=cDe;Wn.defineLocale=tU;Wn.updateLocale=iNe;Wn.locales=oNe;Wn.weekdaysShort=lDe;Wn.normalizeUnits=Nu;Wn.relativeTimeRounding=DDe;Wn.relativeTimeThreshold=LDe;Wn.calendarFormat=e7e;Wn.prototype=$n;Wn.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 FT;const jDe=new Uint8Array(16);function BDe(){if(!FT&&(FT=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!FT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return FT(jDe)}const ps=[];for(let e=0;e<256;++e)ps.push((e+256).toString(16).slice(1));function HDe(e,t=0){return ps[e[t+0]]+ps[e[t+1]]+ps[e[t+2]]+ps[e[t+3]]+"-"+ps[e[t+4]]+ps[e[t+5]]+"-"+ps[e[t+6]]+ps[e[t+7]]+"-"+ps[e[t+8]]+ps[e[t+9]]+"-"+ps[e[t+10]]+ps[e[t+11]]+ps[e[t+12]]+ps[e[t+13]]+ps[e[t+14]]+ps[e[t+15]]}const zDe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),iZ={randomUUID:zDe};function UDe(e,t,n){if(iZ.randomUUID&&!t&&!e)return iZ.randomUUID();e=e||{};const r=e.random||(e.rng||BDe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,HDe(r)}const WDe="1.0.2";function VDe(){return WDe}function KDe(){const e=localStorage.getItem(f8);(e===null||e==="true")&&new Audio(HOe).play()}function qDe(){return Wn().format("YYYY-MM-DD HH:mm:ss")}function rO(){return UDe().replaceAll(/-/g,"")}function X0(e){return e.endsWith("/")?e.slice(0,-1):e}function oZ(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function GDe(e){if(qOe===e||GOe===e||YOe===e||XOe===e||QOe===e)return!0}function YDe(e){return e===Yw||e===Xw}function XDe(e){return e===Yw||e===Xw}function QDe(e){return e.startsWith(iPe)}function Zme(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const Yl=Hc()(Gd(Yd(Xd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:COe}))),Sd=Hc()(Gd(Yd(Xd((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===AX)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;aa.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===KOe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!YDe(r.type);if(XDe(r.type)&&(n.state=NX),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.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:NX}:i);e({threads:r})},addThreads(n){for(let r=0;ra.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}=Yl.getState();if(n!=null&&n.uid){const{threadService:r}=await Hz(async()=>{const{threadService:i}=await import("./threadService-B3hRGcv1.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:kOe}))),Pp=Hc()(Gd(Yd(Xd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===Gw){const o=t().messageList.findIndex(a=>a.type===Gw&&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===uD&&i.type===uD){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;ol.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=Wn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=Wn(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=Mfe,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=Wn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=Wn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:wOe}))),Ka=Hc()(Gd(Yd(Xd((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:EOe}))),Xv=Hc()(Gd(Yd(Xd((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 Jme={exports:{}};/*! +Wn.version="2.30.1";jRe(xo);Wn.fn=$n;Wn.min=kNe;Wn.max=ONe;Wn.now=PNe;Wn.utc=th;Wn.unix=rDe;Wn.months=oDe;Wn.isDate=dE;Wn.locale=Zm;Wn.invalid=K6;Wn.duration=Zd;Wn.isMoment=Fd;Wn.weekdays=sDe;Wn.parseZone=iDe;Wn.localeData=kp;Wn.isDuration=k8;Wn.monthsShort=aDe;Wn.weekdaysMin=cDe;Wn.defineLocale=tU;Wn.updateLocale=iNe;Wn.locales=oNe;Wn.weekdaysShort=lDe;Wn.normalizeUnits=Nu;Wn.relativeTimeRounding=DDe;Wn.relativeTimeThreshold=LDe;Wn.calendarFormat=e7e;Wn.prototype=$n;Wn.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 FT;const jDe=new Uint8Array(16);function BDe(){if(!FT&&(FT=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!FT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return FT(jDe)}const ps=[];for(let e=0;e<256;++e)ps.push((e+256).toString(16).slice(1));function HDe(e,t=0){return ps[e[t+0]]+ps[e[t+1]]+ps[e[t+2]]+ps[e[t+3]]+"-"+ps[e[t+4]]+ps[e[t+5]]+"-"+ps[e[t+6]]+ps[e[t+7]]+"-"+ps[e[t+8]]+ps[e[t+9]]+"-"+ps[e[t+10]]+ps[e[t+11]]+ps[e[t+12]]+ps[e[t+13]]+ps[e[t+14]]+ps[e[t+15]]}const zDe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),iZ={randomUUID:zDe};function UDe(e,t,n){if(iZ.randomUUID&&!t&&!e)return iZ.randomUUID();e=e||{};const r=e.random||(e.rng||BDe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,HDe(r)}const WDe="1.0.2";function VDe(){return WDe}function KDe(){const e=localStorage.getItem(f8);(e===null||e==="true")&&new Audio(HOe).play()}function qDe(){return Wn().format("YYYY-MM-DD HH:mm:ss")}function rO(){return UDe().replaceAll(/-/g,"")}function X0(e){return e.endsWith("/")?e.slice(0,-1):e}function oZ(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function GDe(e){if(qOe===e||GOe===e||YOe===e||XOe===e||QOe===e)return!0}function YDe(e){return e===Yw||e===Xw}function XDe(e){return e===Yw||e===Xw}function QDe(e){return e.startsWith(iPe)}function Zme(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const Yl=Hc()(Gd(Yd(Xd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:COe}))),Sd=Hc()(Gd(Yd(Xd((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===AX)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;aa.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===KOe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!YDe(r.type);if(XDe(r.type)&&(n.state=NX),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.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:NX}:i);e({threads:r})},addThreads(n){for(let r=0;ra.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}=Yl.getState();if(n!=null&&n.uid){const{threadService:r}=await Hz(async()=>{const{threadService:i}=await import("./threadService-PEBGuFRg.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:kOe}))),Pp=Hc()(Gd(Yd(Xd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===Gw){const o=t().messageList.findIndex(a=>a.type===Gw&&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===uD&&i.type===uD){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;ol.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=Wn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=Wn(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=Mfe,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=Wn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=Wn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:wOe}))),Ka=Hc()(Gd(Yd(Xd((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:EOe}))),Xv=Hc()(Gd(Yd(Xd((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 Jme={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -761,7 +761,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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 zM=Wr.default;Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=$jt;Rd.unitless=Rd.ignore=Rd.getComputedToken=void 0;var Ejt=zM(f),Tjt=Tg,kjt=zM(jM),Yoe=Wf,Ojt=zM(Jf),cEe=zM(FK),Xoe=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{const r=n.getDerivativeToken(e),{override:i}=t,o=Xoe(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,cEe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Xoe(c,["theme"]);let h=d;u&&(h=jK(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=h}),a};Rd.getComputedToken=jK;function $jt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Ejt.default.useContext(Yoe.DesignTokenContext),o=`${kjt.default}-${t||""}`,a=n||Yoe.defaultTheme,[s,l,c]=(0,Tjt.useCacheToken)(a,[Ojt.default,e],{salt:o,override:r,getComputedToken:jK,formatToken:cEe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pjt,ignore:Mjt,preserve:Ijt}});return[a,c,t?l:"",s,i]}var ng={},Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.textEllipsis=Bo.resetIcon=Bo.resetComponent=Bo.operationUnit=Bo.genLinkStyle=Bo.genIconStyle=Bo.genFocusStyle=Bo.genFocusOutline=Bo.genCommonStyle=Bo.clearFix=void 0;var Rjt=Tg;Bo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Ajt=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}};Bo.resetComponent=Ajt;const uEe=()=>({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"}});Bo.resetIcon=uEe;const Njt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Bo.clearFix=Njt;const Djt=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"}}});Bo.genLinkStyle=Djt;const Ljt=(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})}};Bo.genCommonStyle=Ljt;const dEe=(e,t)=>({outline:`${(0,Rjt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Bo.genFocusOutline=dEe;const fEe=(e,t)=>({"&:focus-visible":Object.assign({},dEe(e,t))});Bo.genFocusStyle=fEe;const Fjt=e=>({[`.${e}`]:Object.assign(Object.assign({},uEe()),{[`.${e} .${e}-icon`]:{display:"block"}})});Bo.genIconStyle=Fjt;const jjt=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"},fEe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Bo.operationUnit=jjt;var Bjt=va.default;Object.defineProperty(ng,"__esModule",{value:!0});ng.genSubStyleComponent=ng.genStyleHooks=ng.genComponentStyleHook=void 0;var Qoe=f,Hjt=sEe,QA=xc,ZA=Bo,Zoe=Bjt(Rd);const{genStyleHooks:zjt,genComponentStyleHook:Ujt,genSubStyleComponent:Wjt}=(0,Hjt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Qoe.useContext)(QA.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,Zoe.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Qoe.useContext)(QA.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,ZA.genLinkStyle)(e)},(0,ZA.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:QA.defaultIconPrefixCls)]},getCommonStyle:ZA.genCommonStyle,getCompUnitless:()=>Zoe.unitless});ng.genSubStyleComponent=Wjt;ng.genComponentStyleHook=Ujt;ng.genStyleHooks=zjt;var BK={};Object.defineProperty(BK,"__esModule",{value:!0});BK.default=Kjt;var Vjt=LK;function Kjt(e,t){return Vjt.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 UM={},qjt=Wr.default;Object.defineProperty(UM,"__esModule",{value:!0});UM.default=void 0;var Gjt=Tg,Yjt=Bo,Xjt=qjt(Rd);const Qjt=(e,t)=>{const[n,r]=(0,Xjt.default)();return(0,Gjt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Yjt.genIconStyle)(e)])};UM.default=Qjt;(function(e){var t=Wr.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=Tg,r=sEe,i=LK,o=y4,a=t(Rd),s=ng,l=t(BK),c=t(UM),u=Wf})(RC);var WM={},Zjt=va.default;Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var Jjt=Zjt(f);const eBt=Object.assign({},Jjt),{useId:Joe}=eBt,tBt=()=>"",nBt=typeof Joe>"u"?tBt:Joe;WM.default=nBt;var HK=Wr.default;Object.defineProperty(DK,"__esModule",{value:!0});DK.default=sBt;var rBt=HK(kM),iBt=HK(LM),oBt=Su,eae=RC,aBt=HK(WM);function sBt(e,t,n){var r;(0,oBt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},eae.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:eae.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,aBt.default)();return(0,rBt.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,iBt.default)(c,d,!0)}))}var zK={};const lBt=Y_($Be);var cBt=va.default;Object.defineProperty(zK,"__esModule",{value:!0});zK.default=fBt;var tae=cBt(f),uBt=lBt,dBt=RC;function fBt(e){const{children:t}=e,[,n]=(0,dBt.useToken)(),{motion:r}=n,i=tae.useRef(!1);return i.current=i.current||r===!1,i.current?tae.createElement(uBt.Provider,{motion:r},t):t}var VM={},hBt=va.default;Object.defineProperty(VM,"__esModule",{value:!0});VM.default=void 0;hBt(f);VM.default=()=>null;var hEe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=RC})(hEe);(function(e){"use client";var t=Wr.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=Tg,o=t(MC),a=t(kM),s=OM,l=n(Su),c=t(PM),u=n(J_e),d=t($C),h=t(zv),p=Wf,m=t(Jf),v=xc,y=NM,S=Dv,b=t(DM),C=t(DK),_=t(zK),T=t(VM),x=n(Lv),E=t(hEe),k=function(j,W){var G={};for(var re in j)Object.prototype.hasOwnProperty.call(j,re)&&W.indexOf(re)<0&&(G[re]=j[re]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(j);seW.endsWith("Color"))}const z=j=>{const{prefixCls:W,iconPrefixCls:G,theme:re,holderRender:se}=j;W!==void 0&&(P=W),G!==void 0&&(D=G),"holderRender"in j&&(A=se),re&&(U(re)?(0,y.registerTheme)(H(),re):R=re)},K=()=>({getPrefixCls:(j,W)=>W||(j?`${H()}-${j}`:H()),getIconPrefixCls:F,getRootPrefixCls:()=>P||H(),getTheme:()=>R,holderRender:A});e.globalConfig=K;const Z=j=>{const{children:W,csp:G,autoInsertSpaceInButton:re,alert:se,anchor:de,form:ee,locale:ne,componentSize:ue,direction:ye,space:ge,splitter:pe,virtual:he,dropdownMatchSelectWidth:_e,popupMatchSelectWidth:ce,popupOverflow:xe,legacyLocale:we,parentContext:De,iconPrefixCls:Fe,theme:Ce,componentDisabled:Te,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:q,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:le,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:Ln,popover:Zn,popconfirm:O,floatButtonGroup:B,variant:oe,inputNumber:Ae,treeSelect:Ge}=j,ft=r.useCallback((bn,Cn)=>{const{prefixCls:rr}=j;if(Cn)return Cn;const Ir=rr||De.getPrefixCls("");return bn?`${Ir}-${bn}`:Ir},[De.getPrefixCls,j.prefixCls]),Jt=Fe||De.iconPrefixCls||v.defaultIconPrefixCls,on=G||De.csp;(0,E.default)(Jt,on);const Jn=(0,C.default)(Ce,De.theme,{prefixCls:ft("")}),ni={csp:on,autoInsertSpaceInButton:re,alert:se,anchor:de,locale:ne||we,direction:ye,space:ge,splitter:pe,virtual:he,popupMatchSelectWidth:ce??_e,popupOverflow:xe,getPrefixCls:ft,iconPrefixCls:Jt,theme:Jn,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:q,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:le,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:Ln,popover:Zn,popconfirm:O,floatButtonGroup:B,variant:oe,inputNumber:Ae,treeSelect:Ge},Hr=Object.assign({},De);Object.keys(ni).forEach(bn=>{ni[bn]!==void 0&&(Hr[bn]=ni[bn])}),M.forEach(bn=>{const Cn=j[bn];Cn&&(Hr[bn]=Cn)}),typeof re<"u"&&(Hr.button=Object.assign({autoInsertSpace:re},Hr.button));const Gr=(0,a.default)(()=>Hr,Hr,(bn,Cn)=>{const rr=Object.keys(bn),Ir=Object.keys(Cn);return rr.length!==Ir.length||rr.some(li=>bn[li]!==Cn[li])}),Rr=r.useMemo(()=>({prefixCls:Jt,csp:on}),[Jt,on]);let _n=r.createElement(r.Fragment,null,r.createElement(T.default,{dropdownMatchSelectWidth:_e}),W);const Mn=r.useMemo(()=>{var bn,Cn,rr,Ir;return(0,s.merge)(((bn=h.default.Form)===null||bn===void 0?void 0:bn.defaultValidateMessages)||{},((rr=(Cn=Gr.locale)===null||Cn===void 0?void 0:Cn.Form)===null||rr===void 0?void 0:rr.defaultValidateMessages)||{},((Ir=Gr.form)===null||Ir===void 0?void 0:Ir.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[Gr,ee==null?void 0:ee.validateMessages]);Object.keys(Mn).length>0&&(_n=r.createElement(c.default.Provider,{value:Mn},_n)),ne&&(_n=r.createElement(u.default,{locale:ne,_ANT_MARK__:u.ANT_MARK},_n)),(Jt||on)&&(_n=r.createElement(o.default.Provider,{value:Rr},_n)),ue&&(_n=r.createElement(x.SizeContextProvider,{size:ue},_n)),_n=r.createElement(_.default,null,_n);const Ar=r.useMemo(()=>{const bn=Jn||{},{algorithm:Cn,token:rr,components:Ir,cssVar:li}=bn,zi=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(wn=>{let[Un,Yn]=wn;const or=Object.assign({},Yn);"algorithm"in or&&(or.algorithm===!0?or.theme=gr:(Array.isArray(or.algorithm)||typeof or.algorithm=="function")&&(or.theme=(0,i.createTheme)(or.algorithm)),delete or.algorithm),Di[Un]=or});const hr=Object.assign(Object.assign({},m.default),rr);return Object.assign(Object.assign({},zi),{theme:gr,token:hr,components:Di,override:Object.assign({override:hr},Di),cssVar:li})},[Jn]);return Ce&&(_n=r.createElement(p.DesignTokenContext.Provider,{value:Ar},_n)),Gr.warning&&(_n=r.createElement(l.WarningContext.Provider,{value:Gr.warning},_n)),Te!==void 0&&(_n=r.createElement(S.DisabledContextProvider,{disabled:Te},_n)),r.createElement(v.ConfigContext.Provider,{value:Gr},_n)},N=j=>{const W=r.useContext(v.ConfigContext),G=r.useContext(d.default);return r.createElement(Z,Object.assign({parentContext:W,legacyLocale:G},j))};N.ConfigContext=v.ConfigContext,N.SizeContext=x.default,N.config=z,N.useConfig=b.default,Object.defineProperty(N,"SizeContext",{get:()=>x.default}),e.default=N})(kK);var S4={},pBt=va.default;Object.defineProperty(S4,"__esModule",{value:!0});S4.LayoutContext=void 0;var mBt=pBt(f);S4.LayoutContext=mBt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var UK={},WK={},VK={},gBt=Wr.default;Object.defineProperty(VK,"__esModule",{value:!0});VK.default=CBt;var vBt=gBt(Uv),yBt=Symbol.for("react.element"),bBt=Symbol.for("react.transitional.element"),SBt=Symbol.for("react.fragment");function CBt(e){return e&&(0,vBt.default)(e)==="object"&&(e.$$typeof===yBt||e.$$typeof===bBt)&&e.type===SBt}var pEe=Wr.default;Object.defineProperty(WK,"__esModule",{value:!0});WK.default=OB;var xBt=pEe(VK),wBt=pEe(f);function OB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return wBt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(OB(r)):(0,xBt.default)(r)&&r.props?n=n.concat(OB(r.props.children,t)):n.push(r))}),n}var vS={},PB={exports:{}},KM={},KK={};Object.defineProperty(KK,"__esModule",{value:!0});var _Bt={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"};KK.default=_Bt;var EBt=va.default,qK=Wr.default;Object.defineProperty(KM,"__esModule",{value:!0});KM.default=void 0;var TBt=qK(iM),mEe=EBt(f),kBt=qK(KK),OBt=qK(PC),PBt=function(t,n){return mEe.createElement(OBt.default,(0,TBt.default)({},t,{ref:n,icon:kBt.default}))},MBt=mEe.forwardRef(PBt);KM.default=MBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(KM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(PB,PB.exports);var IBt=PB.exports,MB={exports:{}},qM={},GK={};Object.defineProperty(GK,"__esModule",{value:!0});var $Bt={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"};GK.default=$Bt;var RBt=va.default,YK=Wr.default;Object.defineProperty(qM,"__esModule",{value:!0});qM.default=void 0;var ABt=YK(iM),gEe=RBt(f),NBt=YK(GK),DBt=YK(PC),LBt=function(t,n){return gEe.createElement(DBt.default,(0,ABt.default)({},t,{ref:n,icon:NBt.default}))},FBt=gEe.forwardRef(LBt);qM.default=FBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(qM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(MB,MB.exports);var jBt=MB.exports,IB={exports:{}},GM={},XK={};Object.defineProperty(XK,"__esModule",{value:!0});var BBt={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"};XK.default=BBt;var HBt=va.default,QK=Wr.default;Object.defineProperty(GM,"__esModule",{value:!0});GM.default=void 0;var zBt=QK(iM),vEe=HBt(f),UBt=QK(XK),WBt=QK(PC),VBt=function(t,n){return vEe.createElement(WBt.default,(0,zBt.default)({},t,{ref:n,icon:UBt.default}))},KBt=vEe.forwardRef(VBt);GM.default=KBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(GM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(IB,IB.exports);var qBt=IB.exports,YM={},ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.prepareComponentToken=ip.default=ip.DEPRECATED_TOKENS=void 0;var GBt=Tg,YBt=RC;const XBt=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,GBt.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}}},yEe=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}};ip.prepareComponentToken=yEe;const QBt=ip.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];ip.default=(0,YBt.genStyleHooks)("Layout",e=>[XBt(e)],yEe,{deprecatedTokens:QBt});Object.defineProperty(YM,"__esModule",{value:!0});YM.default=void 0;var Zx=Tg,nae=ip,ZBt=RC;const JBt=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,Zx.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,Zx.unit)(h)} ${(0,Zx.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,Zx.unit)(h)} 0 0 ${(0,Zx.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}}}}};YM.default=(0,ZBt.genStyleHooks)(["Layout","Sider"],e=>[JBt(e)],nae.prepareComponentToken,{deprecatedTokens:nae.DEPRECATED_TOKENS});var AC=Wr.default,eHt=va.default;Object.defineProperty(vS,"__esModule",{value:!0});vS.default=vS.SiderContext=void 0;var $h=eHt(f),hc=$h,tHt=AC(IBt),rae=AC(jBt),iae=AC(qBt),oae=AC(iO),nHt=AC(TM),rHt=kK,iHt=S4,oHt=AC(YM),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!Number.isNaN(Number.parseFloat(e))&&isFinite(e),lHt=vS.SiderContext=hc.createContext({}),cHt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),uHt=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=aHt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,$h.useContext)(iHt.LayoutContext),[C,_]=(0,$h.useState)("collapsed"in e?e.collapsed:a),[T,x]=(0,$h.useState)(!1);(0,$h.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,$h.useContext)(rHt.ConfigContext),P=k("layout-sider",n),[D,R,A]=(0,oHt.default)(P),H=(0,$h.useRef)(null);H.current=ne=>{x(ne.matches),y==null||y(ne.matches),C!==ne.matches&&E(ne.matches,"responsive")},(0,$h.useEffect)(()=>{function ne(ye){return H.current(ye)}let ue;if(typeof window<"u"){const{matchMedia:ye}=window;if(ye&&m&&m in aae){ue=ye(`screen and (max-width: ${aae[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,$h.useEffect)(()=>{const ne=cHt("ant-sider-");return b.addSider(ne),()=>b.removeSider(ne)},[]);const F=()=>{E(!C,"clickTrigger")},U=(0,nHt.default)(S,["collapsed"]),z=C?h:d,K=sHt(z)?`${z}px`:String(z),Z=parseFloat(String(h||0))===0?hc.createElement("span",{onClick:F,className:(0,oae.default)(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||hc.createElement(tHt.default,null)):null,N=M==="rtl"==!u,G={expanded:N?hc.createElement(iae.default,null):hc.createElement(rae.default,null),collapsed:N?hc.createElement(rae.default,null):hc.createElement(iae.default,null)}[C?"collapsed":"expanded"],re=i!==null?Z||hc.createElement("div",{className:`${P}-trigger`,onClick:F,style:{width:K}},i||G):null,se=Object.assign(Object.assign({},l),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),de=(0,oae.default)(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:c&&i!==null&&!Z,[`${P}-below`]:!!T,[`${P}-zero-width`]:parseFloat(K)===0},r,R,A),ee=hc.useMemo(()=>({siderCollapsed:C}),[C]);return D(hc.createElement(lHt.Provider,{value:ee},hc.createElement("aside",Object.assign({className:de},U,{style:se,ref:t}),hc.createElement("div",{className:`${P}-children`},o),c||T&&Z?re:null)))});vS.default=uHt;var bEe=Wr.default;Object.defineProperty(UK,"__esModule",{value:!0});UK.default=hHt;var dHt=bEe(WK),fHt=bEe(vS);function hHt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,dHt.default)(t).some(i=>i.type===fHt.default)}var XM,QM,pHt=va.default,C4=Wr.default;Object.defineProperty(Zh,"__esModule",{value:!0});Zh.default=Zh.Header=QM=Zh.Footer=XM=Zh.Content=void 0;var mHt=C4(q_e),lu=pHt(f),SEe=C4(iO),gHt=C4(TM),$B=kK,vHt=S4,yHt=C4(UK),CEe=C4(ip),xEe=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);ilu.forwardRef((a,s)=>lu.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const ZK=lu.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=xEe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=lu.useContext($B.ConfigContext),l=s("layout",n),[c,u,d]=(0,CEe.default)(l),h=r?`${l}-${r}`:l;return c(lu.createElement(o,Object.assign({className:(0,SEe.default)(n||h,i,u,d),ref:t},a)))}),bHt=lu.forwardRef((e,t)=>{const{direction:n}=lu.useContext($B.ConfigContext),[r,i]=lu.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,h=xEe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,gHt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:v}=lu.useContext($B.ConfigContext),y=m("layout",o),S=(0,yHt.default)(r,l,c),[b,C,_]=(0,CEe.default)(y),T=(0,SEe.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,mHt.default)(k),[E]))},removeSider:E=>{i(k=>k.filter(M=>M!==E))}}}),[]);return b(lu.createElement(vHt.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)))}),SHt=ZM({tagName:"div",displayName:"Layout"})(bHt);Zh.Header=ZM({suffixCls:"header",tagName:"header",displayName:"Header"})(ZK);QM=Zh.Footer=ZM({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ZK);XM=Zh.Content=ZM({suffixCls:"content",tagName:"main",displayName:"Content"})(ZK);Zh.default=SHt;function x4(){const{isDarkMode:e}=Ufe(),{token:t}=Ds.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:CHt,Sider:xHt,Content:wHt}=wo,wEe=()=>{const e=no();f.useContext(Ks);const t=ss(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=x4(),[a,s]=f.useState([]);f.useEffect(()=>{const c=[{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"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return V.jsxs(wo,{children:[V.jsx(xHt,{style:r,width:i,children:V.jsx(tf,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),V.jsxs(wo,{children:[V.jsx(CHt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),V.jsx(wHt,{style:o,children:V.jsx(LP,{})})]})]})},_Ee=()=>{const e=ss(),{userInfo:t}=YCe(),{translateString:n}=Kc(),{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]),V.jsx(V.Fragment,{children:V.jsx(Pu,{title:i,content:a,placement:"rightBottom",children:V.jsx(V.Fragment,{children:V.jsx(Rp,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function JK(){const e=nE(b=>b.accessToken),t=Ka(b=>b.userInfo),n=Xv(b=>b.agentInfo),r=EM(),[i,o]=f.useState(!1),{showNotification:a}=TK(),{translateString:s}=Kc();Pp(b=>b.addMessage),Sd(b=>b.updateThreadContent),f.useContext(Ks),f.useRef(!1);const l=Sd(b=>b.threads),[c,u]=f.useState(l),d=f.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$pt()&&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"),Mpt({uid:t.uid,username:t.username,accessToken:e})},y=()=>{console.log("useMqtt useEffect doDisconnect"),gA()},S=b=>{var C,_;(b==null?void 0:b.type)!==Yw&&((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)&&(KDe(),console.log("playAudio"))};return f.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?v():gA()},[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()=>{gA(),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===Gw||C.type===Mfe||C.type===uD||C.type===Yw||C.type===Xw)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(OT),s(OT)),S(C)):(console.log("useMqtt matchingThread no"),a(s(OT),s(OT)),S(C))};return Dr.on(Kw,b),()=>{Dr.off(Kw)}},[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(eD,b),Dr.on(nD,C),Dr.on(rD,C),Dr.on(tD,C),Dr.on(iD,C),Dr.on(oD,C),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(eD),Dr.off(nD),Dr.off(rD),Dr.off(tD),Dr.off(iD),Dr.off(oD)}},[]),{doConnect:v,doDisconnect:y,isMqttConnected:i}}const EEe=Hc()(Gd(Yd(Xd((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===Pfe){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===IOe){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:_Oe})));function TEe(){console.log("useElectronApi");const e=ss(),t=Ka(r=>r.userInfo),n=EEe(r=>r.addDevice);f.useEffect(()=>(console.log("useElectronApi useEffect"),os?(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:Pfe,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===hOe){xn.success("截图成功");const i=r.data;Dr.emit(bOe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),os?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const _Ht=Hc()(Gd(Yd(Xd((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:xOe}))),kEe=Hc()(Gd(Yd(Xd((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}))),EHt=()=>{const e=Yl(u=>u.deleteOrg),t=Sd(u=>u.resetThreads),n=Pp(u=>u.resetMessageList),r=_Ht(u=>u.resetMembers),i=nE(u=>u.removeAccessToken),o=Ka(u=>u.resetUserInfo),a=EEe(u=>u.resetContactInfo),s=Xv(u=>u.resetAgentInfo),l=kEe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function OEe(){console.log("useEventBus");const{clearStorage:e}=EHt(),{doDisconnect:t}=JK(),{setPingLoading:n}=f.useContext(Ks),r=f.useCallback(async()=>{try{const i=await GLt();console.log("logout result:",i.data),n(!1),t(),e(),zpt()}catch(i){console.log("logout error:",i)}},[]);return f.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),Dr.off(Xm,i),r()};return Dr.on(Xm,i),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(Xm)}},[]),{doLogout:r}}const THt=()=>{const e=no(),{doLogout:t}=OEe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=f.useContext(Ks),{agentInfo:l}=Xv(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:V.jsx(qW,{}),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===yv){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:zX,icon:l.status===zX?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:UX,icon:l.status===UX?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:R$,icon:l.status===R$?V.jsx(np,{}):V.jsx(V.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===ab||p.key===yv||p.key===e9?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===R$&&ea.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return V.jsx(V.Fragment,{children:n?V.jsx(V.Fragment,{children:V.jsx(tf,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):V.jsx(V.Fragment,{})})};async function kHt(e){return ri("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:ti}})}const PEe=()=>{const[e,t]=f.useState([]),n=new WCe;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(Kw,a),()=>{console.log("useIndexedDB useEffect return"),Dr.off(Kw,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function MEe(){return ri("/api/v1/user/profile",{method:"GET",params:{client:ti}})}async function IEe(e){return ri("/api/v1/user/update",{method:"POST",data:{...e,client:ti}})}async function OHt(e){return ri("/api/v1/user/change/password",{method:"POST",data:{...e,client:ti}})}async function $Ee(e){return ri("/api/v1/user/change/email",{method:"POST",data:{...e,client:ti}})}async function REe(e){return ri("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:ti}})}const PHt=()=>{const e=no(),{locale:t,changeLocale:n}=f.useContext(Ks),r=[{key:"lang",icon:V.jsx(zst,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return V.jsx(tf,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Fl=function(){return Fl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?ts(NC,--Iu):0,bS--,Ea===10&&(bS=1,eI--),Ea}function Ad(){return Ea=Iu2||AB(Ea)>3?"":" "}function HHt(e,t){for(;--t&&Ad()&&!(Ea<48||Ea>102||Ea>57&&Ea<65||Ea>70&&Ea<97););return nI(e,i3()+(t<6&&av()==32&&Ad()==32))}function NB(e){for(;Ad();)switch(Ea){case e:return Iu;case 34:case 39:e!==34&&e!==39&&NB(Ea);break;case 40:e===41&&NB(e);break;case 92:Ad();break}return Iu}function zHt(e,t){for(;Ad()&&e+Ea!==57;)if(e+Ea===84&&av()===47)break;return"/*"+nI(t,Iu-1)+"*"+tq(e===47?e:Ad())}function UHt(e){for(;!AB(av());)Ad();return nI(e,Iu)}function WHt(e){return jHt(o3("",null,null,null,[""],e=FHt(e),0,[0],e))}function o3(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=Ad()){case 40:if(m!=108&&ts(E,d-1)==58){r3(E+=Jr(JA(b),"&","&\f"),"&\f",DEe(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=JA(b);break;case 9:case 10:case 13:case 32:E+=BHt(m);break;case 92:E+=HHt(i3()-1,7);continue;case 47:switch(av()){case 42:case 47:$2(VHt(zHt(Ad(),i3()),t,n,l),l);break;default:E+="/"}break;case 123*v:s[c++]=Of(E)*S;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:S==-1&&(E=Jr(E,/\f/g,"")),p>0&&Of(E)-d&&$2(p>32?cae(E+";",r,n,d-1,l):cae(Jr(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if($2(x=lae(E,t,n,c,u,i,s,C,_=[],T=[],d,o),o),b===123)if(u===0)o3(E,t,x,x,_,o,d,s,T);else switch(h===99&&ts(E,3)===110?100:h){case 100:case 108:case 109:case 115:o3(e,x,x,r&&$2(lae(e,x,x,0,0,i,s,C,i,_=[],d,T),T),i,T,d,s,r?_:T);break;default:o3(E,x,x,x,[""],T,0,s,T)}}c=u=p=0,v=S=1,C=E="",d=a;break;case 58:d=1+Of(E),p=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&LHt()==125)continue}switch(E+=tq(b),b*v){case 38:S=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Of(E)-1)*S,S=1;break;case 64:av()===45&&(E+=JA(Ad())),h=av(),u=d=Of(C=E+=UHt(i3())),b++;break;case 45:m===45&&Of(E)==2&&(v=0)}}return o}function lae(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=i===0?o:[""],m=FEe(p),v=0,y=0,S=0;v0?p[b]+" "+C:Jr(C,/&\f/g,p[b])))&&(l[S++]=_);return tI(e,t,n,i===0?JM:s,l,c,u,d)}function VHt(e,t,n,r){return tI(e,t,n,AEe,tq(DHt()),yS(e,2,-2),0,r)}function cae(e,t,n,r,i){return tI(e,t,n,eq,yS(e,0,r),yS(e,r+1,-1),r,i)}function BEe(e,t,n){switch(AHt(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 uw+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+uw+e+ho+e+e;case 5936:switch(ts(e,t+11)){case 114:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ai+e+ho+e+e;case 6165:return Ai+e+ho+"flex-"+e+e;case 5187:return Ai+e+Jr(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+ho+"flex-$1$2")+e;case 5443:return Ai+e+ho+"flex-item-"+Jr(e,/flex-|-self/g,"")+(jh(e,/flex-|baseline/)?"":ho+"grid-row-"+Jr(e,/flex-|-self/g,""))+e;case 4675:return Ai+e+ho+"flex-line-pack"+Jr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ai+e+ho+Jr(e,"shrink","negative")+e;case 5292:return Ai+e+ho+Jr(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+Jr(e,"-grow","")+Ai+e+ho+Jr(e,"grow","positive")+e;case 4554:return Ai+Jr(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return Jr(Jr(Jr(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return Jr(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return Jr(Jr(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4200:if(!jh(e,/flex-|baseline/))return ho+"grid-column-align"+yS(e,t)+e;break;case 2592:case 3360:return ho+Jr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,jh(r.props,/grid-\w+-end/)})?~r3(e+(n=n[t].value),"span",0)?e:ho+Jr(e,"-start","")+e+ho+"grid-row-span:"+(~r3(n,"span",0)?jh(n,/\d+/):+jh(n,/\d+/)-+jh(e,/\d+/))+";":ho+Jr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return jh(r.props,/grid-\w+-start/)})?e:ho+Jr(Jr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Jr(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(Of(e)-1-t>6)switch(ts(e,t+1)){case 109:if(ts(e,t+4)!==45)break;case 102:return Jr(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+uw+(ts(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r3(e,"stretch",0)?BEe(Jr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Jr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return ho+i+":"+o+c+(a?ho+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(ts(e,t+6)===121)return Jr(e,":",":"+Ai)+e;break;case 6444:switch(ts(e,ts(e,14)===45?18:11)){case 120:return Jr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ai+(ts(e,14)===45?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+ho+"$2box$3")+e;case 100:return Jr(e,":",":"+ho)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Jr(e,"scroll-","scroll-snap-")+e}return e}function $k(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case eq:e.return=BEe(e.value,e.length,n);return;case NEe:return $k([gm(e,{value:Jr(e.value,"@","@"+Ai)})],r);case JM:if(e.length)return NHt(n=e.props,function(i){switch(jh(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":py(gm(e,{props:[Jr(i,/:(read-\w+)/,":"+uw+"$1")]})),py(gm(e,{props:[i]})),RB(e,{props:sae(n,r)});break;case"::placeholder":py(gm(e,{props:[Jr(i,/:(plac\w+)/,":"+Ai+"input-$1")]})),py(gm(e,{props:[Jr(i,/:(plac\w+)/,":"+uw+"$1")]})),py(gm(e,{props:[Jr(i,/:(plac\w+)/,ho+"input-$1")]})),py(gm(e,{props:[i]})),RB(e,{props:sae(n,r)});break}return""})}}var XHt={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.46.8",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:"d7e51ff1d4584488bf1f41d0e936d01a",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",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/.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/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/Library/pnpm:/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:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/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.azPGSP2Los/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--1741183368815-0.5194056271115852:/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/.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/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/Library/pnpm:/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:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/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",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",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.todesktop.230313mzl4w4u92",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",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",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",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:/opt/homebrew/share/info:",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__ant_design_compatible:"^5.1.4",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",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"},SS=typeof process<"u"&&mc!==void 0&&(mc.REACT_APP_SC_ATTR||mc.SC_ATTR)||"data-styled",HEe="active",zEe="data-styled-version",rI="6.1.13",nq=`/*!sc*/ + `,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 zM=Wr.default;Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=$jt;Rd.unitless=Rd.ignore=Rd.getComputedToken=void 0;var Ejt=zM(f),Tjt=Tg,kjt=zM(jM),Yoe=Wf,Ojt=zM(Jf),cEe=zM(FK),Xoe=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{const r=n.getDerivativeToken(e),{override:i}=t,o=Xoe(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,cEe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Xoe(c,["theme"]);let h=d;u&&(h=jK(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=h}),a};Rd.getComputedToken=jK;function $jt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Ejt.default.useContext(Yoe.DesignTokenContext),o=`${kjt.default}-${t||""}`,a=n||Yoe.defaultTheme,[s,l,c]=(0,Tjt.useCacheToken)(a,[Ojt.default,e],{salt:o,override:r,getComputedToken:jK,formatToken:cEe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pjt,ignore:Mjt,preserve:Ijt}});return[a,c,t?l:"",s,i]}var ng={},Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.textEllipsis=Bo.resetIcon=Bo.resetComponent=Bo.operationUnit=Bo.genLinkStyle=Bo.genIconStyle=Bo.genFocusStyle=Bo.genFocusOutline=Bo.genCommonStyle=Bo.clearFix=void 0;var Rjt=Tg;Bo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Ajt=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}};Bo.resetComponent=Ajt;const uEe=()=>({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"}});Bo.resetIcon=uEe;const Njt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Bo.clearFix=Njt;const Djt=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"}}});Bo.genLinkStyle=Djt;const Ljt=(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})}};Bo.genCommonStyle=Ljt;const dEe=(e,t)=>({outline:`${(0,Rjt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Bo.genFocusOutline=dEe;const fEe=(e,t)=>({"&:focus-visible":Object.assign({},dEe(e,t))});Bo.genFocusStyle=fEe;const Fjt=e=>({[`.${e}`]:Object.assign(Object.assign({},uEe()),{[`.${e} .${e}-icon`]:{display:"block"}})});Bo.genIconStyle=Fjt;const jjt=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"},fEe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Bo.operationUnit=jjt;var Bjt=va.default;Object.defineProperty(ng,"__esModule",{value:!0});ng.genSubStyleComponent=ng.genStyleHooks=ng.genComponentStyleHook=void 0;var Qoe=f,Hjt=sEe,QA=xc,ZA=Bo,Zoe=Bjt(Rd);const{genStyleHooks:zjt,genComponentStyleHook:Ujt,genSubStyleComponent:Wjt}=(0,Hjt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Qoe.useContext)(QA.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,Zoe.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Qoe.useContext)(QA.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,ZA.genLinkStyle)(e)},(0,ZA.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:QA.defaultIconPrefixCls)]},getCommonStyle:ZA.genCommonStyle,getCompUnitless:()=>Zoe.unitless});ng.genSubStyleComponent=Wjt;ng.genComponentStyleHook=Ujt;ng.genStyleHooks=zjt;var BK={};Object.defineProperty(BK,"__esModule",{value:!0});BK.default=Kjt;var Vjt=LK;function Kjt(e,t){return Vjt.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 UM={},qjt=Wr.default;Object.defineProperty(UM,"__esModule",{value:!0});UM.default=void 0;var Gjt=Tg,Yjt=Bo,Xjt=qjt(Rd);const Qjt=(e,t)=>{const[n,r]=(0,Xjt.default)();return(0,Gjt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Yjt.genIconStyle)(e)])};UM.default=Qjt;(function(e){var t=Wr.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=Tg,r=sEe,i=LK,o=y4,a=t(Rd),s=ng,l=t(BK),c=t(UM),u=Wf})(RC);var WM={},Zjt=va.default;Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var Jjt=Zjt(f);const eBt=Object.assign({},Jjt),{useId:Joe}=eBt,tBt=()=>"",nBt=typeof Joe>"u"?tBt:Joe;WM.default=nBt;var HK=Wr.default;Object.defineProperty(DK,"__esModule",{value:!0});DK.default=sBt;var rBt=HK(kM),iBt=HK(LM),oBt=Su,eae=RC,aBt=HK(WM);function sBt(e,t,n){var r;(0,oBt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},eae.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:eae.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,aBt.default)();return(0,rBt.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,iBt.default)(c,d,!0)}))}var zK={};const lBt=Y_($Be);var cBt=va.default;Object.defineProperty(zK,"__esModule",{value:!0});zK.default=fBt;var tae=cBt(f),uBt=lBt,dBt=RC;function fBt(e){const{children:t}=e,[,n]=(0,dBt.useToken)(),{motion:r}=n,i=tae.useRef(!1);return i.current=i.current||r===!1,i.current?tae.createElement(uBt.Provider,{motion:r},t):t}var VM={},hBt=va.default;Object.defineProperty(VM,"__esModule",{value:!0});VM.default=void 0;hBt(f);VM.default=()=>null;var hEe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=RC})(hEe);(function(e){"use client";var t=Wr.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=Tg,o=t(MC),a=t(kM),s=OM,l=n(Su),c=t(PM),u=n(J_e),d=t($C),h=t(zv),p=Wf,m=t(Jf),v=xc,y=NM,S=Dv,b=t(DM),C=t(DK),_=t(zK),T=t(VM),x=n(Lv),E=t(hEe),k=function(j,W){var G={};for(var re in j)Object.prototype.hasOwnProperty.call(j,re)&&W.indexOf(re)<0&&(G[re]=j[re]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(j);seW.endsWith("Color"))}const z=j=>{const{prefixCls:W,iconPrefixCls:G,theme:re,holderRender:se}=j;W!==void 0&&(P=W),G!==void 0&&(D=G),"holderRender"in j&&(A=se),re&&(U(re)?(0,y.registerTheme)(H(),re):R=re)},K=()=>({getPrefixCls:(j,W)=>W||(j?`${H()}-${j}`:H()),getIconPrefixCls:F,getRootPrefixCls:()=>P||H(),getTheme:()=>R,holderRender:A});e.globalConfig=K;const Z=j=>{const{children:W,csp:G,autoInsertSpaceInButton:re,alert:se,anchor:de,form:ee,locale:ne,componentSize:ue,direction:ye,space:ge,splitter:pe,virtual:he,dropdownMatchSelectWidth:_e,popupMatchSelectWidth:ce,popupOverflow:xe,legacyLocale:we,parentContext:De,iconPrefixCls:Fe,theme:Ce,componentDisabled:Te,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:q,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:le,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:Ln,popover:Zn,popconfirm:O,floatButtonGroup:B,variant:oe,inputNumber:Ae,treeSelect:Ge}=j,ft=r.useCallback((bn,Cn)=>{const{prefixCls:rr}=j;if(Cn)return Cn;const Ir=rr||De.getPrefixCls("");return bn?`${Ir}-${bn}`:Ir},[De.getPrefixCls,j.prefixCls]),Jt=Fe||De.iconPrefixCls||v.defaultIconPrefixCls,on=G||De.csp;(0,E.default)(Jt,on);const Jn=(0,C.default)(Ce,De.theme,{prefixCls:ft("")}),ni={csp:on,autoInsertSpaceInButton:re,alert:se,anchor:de,locale:ne||we,direction:ye,space:ge,splitter:pe,virtual:he,popupMatchSelectWidth:ce??_e,popupOverflow:xe,getPrefixCls:ft,iconPrefixCls:Jt,theme:Jn,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:q,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:le,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:Ln,popover:Zn,popconfirm:O,floatButtonGroup:B,variant:oe,inputNumber:Ae,treeSelect:Ge},Hr=Object.assign({},De);Object.keys(ni).forEach(bn=>{ni[bn]!==void 0&&(Hr[bn]=ni[bn])}),M.forEach(bn=>{const Cn=j[bn];Cn&&(Hr[bn]=Cn)}),typeof re<"u"&&(Hr.button=Object.assign({autoInsertSpace:re},Hr.button));const Gr=(0,a.default)(()=>Hr,Hr,(bn,Cn)=>{const rr=Object.keys(bn),Ir=Object.keys(Cn);return rr.length!==Ir.length||rr.some(li=>bn[li]!==Cn[li])}),Rr=r.useMemo(()=>({prefixCls:Jt,csp:on}),[Jt,on]);let _n=r.createElement(r.Fragment,null,r.createElement(T.default,{dropdownMatchSelectWidth:_e}),W);const Mn=r.useMemo(()=>{var bn,Cn,rr,Ir;return(0,s.merge)(((bn=h.default.Form)===null||bn===void 0?void 0:bn.defaultValidateMessages)||{},((rr=(Cn=Gr.locale)===null||Cn===void 0?void 0:Cn.Form)===null||rr===void 0?void 0:rr.defaultValidateMessages)||{},((Ir=Gr.form)===null||Ir===void 0?void 0:Ir.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[Gr,ee==null?void 0:ee.validateMessages]);Object.keys(Mn).length>0&&(_n=r.createElement(c.default.Provider,{value:Mn},_n)),ne&&(_n=r.createElement(u.default,{locale:ne,_ANT_MARK__:u.ANT_MARK},_n)),(Jt||on)&&(_n=r.createElement(o.default.Provider,{value:Rr},_n)),ue&&(_n=r.createElement(x.SizeContextProvider,{size:ue},_n)),_n=r.createElement(_.default,null,_n);const Ar=r.useMemo(()=>{const bn=Jn||{},{algorithm:Cn,token:rr,components:Ir,cssVar:li}=bn,zi=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(wn=>{let[Un,Yn]=wn;const or=Object.assign({},Yn);"algorithm"in or&&(or.algorithm===!0?or.theme=gr:(Array.isArray(or.algorithm)||typeof or.algorithm=="function")&&(or.theme=(0,i.createTheme)(or.algorithm)),delete or.algorithm),Di[Un]=or});const hr=Object.assign(Object.assign({},m.default),rr);return Object.assign(Object.assign({},zi),{theme:gr,token:hr,components:Di,override:Object.assign({override:hr},Di),cssVar:li})},[Jn]);return Ce&&(_n=r.createElement(p.DesignTokenContext.Provider,{value:Ar},_n)),Gr.warning&&(_n=r.createElement(l.WarningContext.Provider,{value:Gr.warning},_n)),Te!==void 0&&(_n=r.createElement(S.DisabledContextProvider,{disabled:Te},_n)),r.createElement(v.ConfigContext.Provider,{value:Gr},_n)},N=j=>{const W=r.useContext(v.ConfigContext),G=r.useContext(d.default);return r.createElement(Z,Object.assign({parentContext:W,legacyLocale:G},j))};N.ConfigContext=v.ConfigContext,N.SizeContext=x.default,N.config=z,N.useConfig=b.default,Object.defineProperty(N,"SizeContext",{get:()=>x.default}),e.default=N})(kK);var S4={},pBt=va.default;Object.defineProperty(S4,"__esModule",{value:!0});S4.LayoutContext=void 0;var mBt=pBt(f);S4.LayoutContext=mBt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var UK={},WK={},VK={},gBt=Wr.default;Object.defineProperty(VK,"__esModule",{value:!0});VK.default=CBt;var vBt=gBt(Uv),yBt=Symbol.for("react.element"),bBt=Symbol.for("react.transitional.element"),SBt=Symbol.for("react.fragment");function CBt(e){return e&&(0,vBt.default)(e)==="object"&&(e.$$typeof===yBt||e.$$typeof===bBt)&&e.type===SBt}var pEe=Wr.default;Object.defineProperty(WK,"__esModule",{value:!0});WK.default=OB;var xBt=pEe(VK),wBt=pEe(f);function OB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return wBt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(OB(r)):(0,xBt.default)(r)&&r.props?n=n.concat(OB(r.props.children,t)):n.push(r))}),n}var vS={},PB={exports:{}},KM={},KK={};Object.defineProperty(KK,"__esModule",{value:!0});var _Bt={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"};KK.default=_Bt;var EBt=va.default,qK=Wr.default;Object.defineProperty(KM,"__esModule",{value:!0});KM.default=void 0;var TBt=qK(iM),mEe=EBt(f),kBt=qK(KK),OBt=qK(PC),PBt=function(t,n){return mEe.createElement(OBt.default,(0,TBt.default)({},t,{ref:n,icon:kBt.default}))},MBt=mEe.forwardRef(PBt);KM.default=MBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(KM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(PB,PB.exports);var IBt=PB.exports,MB={exports:{}},qM={},GK={};Object.defineProperty(GK,"__esModule",{value:!0});var $Bt={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"};GK.default=$Bt;var RBt=va.default,YK=Wr.default;Object.defineProperty(qM,"__esModule",{value:!0});qM.default=void 0;var ABt=YK(iM),gEe=RBt(f),NBt=YK(GK),DBt=YK(PC),LBt=function(t,n){return gEe.createElement(DBt.default,(0,ABt.default)({},t,{ref:n,icon:NBt.default}))},FBt=gEe.forwardRef(LBt);qM.default=FBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(qM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(MB,MB.exports);var jBt=MB.exports,IB={exports:{}},GM={},XK={};Object.defineProperty(XK,"__esModule",{value:!0});var BBt={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"};XK.default=BBt;var HBt=va.default,QK=Wr.default;Object.defineProperty(GM,"__esModule",{value:!0});GM.default=void 0;var zBt=QK(iM),vEe=HBt(f),UBt=QK(XK),WBt=QK(PC),VBt=function(t,n){return vEe.createElement(WBt.default,(0,zBt.default)({},t,{ref:n,icon:UBt.default}))},KBt=vEe.forwardRef(VBt);GM.default=KBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(GM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(IB,IB.exports);var qBt=IB.exports,YM={},ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.prepareComponentToken=ip.default=ip.DEPRECATED_TOKENS=void 0;var GBt=Tg,YBt=RC;const XBt=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,GBt.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}}},yEe=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}};ip.prepareComponentToken=yEe;const QBt=ip.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];ip.default=(0,YBt.genStyleHooks)("Layout",e=>[XBt(e)],yEe,{deprecatedTokens:QBt});Object.defineProperty(YM,"__esModule",{value:!0});YM.default=void 0;var Zx=Tg,nae=ip,ZBt=RC;const JBt=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,Zx.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,Zx.unit)(h)} ${(0,Zx.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,Zx.unit)(h)} 0 0 ${(0,Zx.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}}}}};YM.default=(0,ZBt.genStyleHooks)(["Layout","Sider"],e=>[JBt(e)],nae.prepareComponentToken,{deprecatedTokens:nae.DEPRECATED_TOKENS});var AC=Wr.default,eHt=va.default;Object.defineProperty(vS,"__esModule",{value:!0});vS.default=vS.SiderContext=void 0;var $h=eHt(f),hc=$h,tHt=AC(IBt),rae=AC(jBt),iae=AC(qBt),oae=AC(iO),nHt=AC(TM),rHt=kK,iHt=S4,oHt=AC(YM),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!Number.isNaN(Number.parseFloat(e))&&isFinite(e),lHt=vS.SiderContext=hc.createContext({}),cHt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),uHt=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=aHt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,$h.useContext)(iHt.LayoutContext),[C,_]=(0,$h.useState)("collapsed"in e?e.collapsed:a),[T,x]=(0,$h.useState)(!1);(0,$h.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,$h.useContext)(rHt.ConfigContext),P=k("layout-sider",n),[D,R,A]=(0,oHt.default)(P),H=(0,$h.useRef)(null);H.current=ne=>{x(ne.matches),y==null||y(ne.matches),C!==ne.matches&&E(ne.matches,"responsive")},(0,$h.useEffect)(()=>{function ne(ye){return H.current(ye)}let ue;if(typeof window<"u"){const{matchMedia:ye}=window;if(ye&&m&&m in aae){ue=ye(`screen and (max-width: ${aae[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,$h.useEffect)(()=>{const ne=cHt("ant-sider-");return b.addSider(ne),()=>b.removeSider(ne)},[]);const F=()=>{E(!C,"clickTrigger")},U=(0,nHt.default)(S,["collapsed"]),z=C?h:d,K=sHt(z)?`${z}px`:String(z),Z=parseFloat(String(h||0))===0?hc.createElement("span",{onClick:F,className:(0,oae.default)(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||hc.createElement(tHt.default,null)):null,N=M==="rtl"==!u,G={expanded:N?hc.createElement(iae.default,null):hc.createElement(rae.default,null),collapsed:N?hc.createElement(rae.default,null):hc.createElement(iae.default,null)}[C?"collapsed":"expanded"],re=i!==null?Z||hc.createElement("div",{className:`${P}-trigger`,onClick:F,style:{width:K}},i||G):null,se=Object.assign(Object.assign({},l),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),de=(0,oae.default)(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:c&&i!==null&&!Z,[`${P}-below`]:!!T,[`${P}-zero-width`]:parseFloat(K)===0},r,R,A),ee=hc.useMemo(()=>({siderCollapsed:C}),[C]);return D(hc.createElement(lHt.Provider,{value:ee},hc.createElement("aside",Object.assign({className:de},U,{style:se,ref:t}),hc.createElement("div",{className:`${P}-children`},o),c||T&&Z?re:null)))});vS.default=uHt;var bEe=Wr.default;Object.defineProperty(UK,"__esModule",{value:!0});UK.default=hHt;var dHt=bEe(WK),fHt=bEe(vS);function hHt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,dHt.default)(t).some(i=>i.type===fHt.default)}var XM,QM,pHt=va.default,C4=Wr.default;Object.defineProperty(Zh,"__esModule",{value:!0});Zh.default=Zh.Header=QM=Zh.Footer=XM=Zh.Content=void 0;var mHt=C4(q_e),lu=pHt(f),SEe=C4(iO),gHt=C4(TM),$B=kK,vHt=S4,yHt=C4(UK),CEe=C4(ip),xEe=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);ilu.forwardRef((a,s)=>lu.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const ZK=lu.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=xEe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=lu.useContext($B.ConfigContext),l=s("layout",n),[c,u,d]=(0,CEe.default)(l),h=r?`${l}-${r}`:l;return c(lu.createElement(o,Object.assign({className:(0,SEe.default)(n||h,i,u,d),ref:t},a)))}),bHt=lu.forwardRef((e,t)=>{const{direction:n}=lu.useContext($B.ConfigContext),[r,i]=lu.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,h=xEe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,gHt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:v}=lu.useContext($B.ConfigContext),y=m("layout",o),S=(0,yHt.default)(r,l,c),[b,C,_]=(0,CEe.default)(y),T=(0,SEe.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,mHt.default)(k),[E]))},removeSider:E=>{i(k=>k.filter(M=>M!==E))}}}),[]);return b(lu.createElement(vHt.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)))}),SHt=ZM({tagName:"div",displayName:"Layout"})(bHt);Zh.Header=ZM({suffixCls:"header",tagName:"header",displayName:"Header"})(ZK);QM=Zh.Footer=ZM({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ZK);XM=Zh.Content=ZM({suffixCls:"content",tagName:"main",displayName:"Content"})(ZK);Zh.default=SHt;function x4(){const{isDarkMode:e}=Ufe(),{token:t}=Ds.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:CHt,Sider:xHt,Content:wHt}=wo,wEe=()=>{const e=no();f.useContext(Ks);const t=ss(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=x4(),[a,s]=f.useState([]);f.useEffect(()=>{const c=[{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"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return V.jsxs(wo,{children:[V.jsx(xHt,{style:r,width:i,children:V.jsx(tf,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),V.jsxs(wo,{children:[V.jsx(CHt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),V.jsx(wHt,{style:o,children:V.jsx(LP,{})})]})]})},_Ee=()=>{const e=ss(),{userInfo:t}=YCe(),{translateString:n}=Kc(),{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]),V.jsx(V.Fragment,{children:V.jsx(Pu,{title:i,content:a,placement:"rightBottom",children:V.jsx(V.Fragment,{children:V.jsx(Rp,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function JK(){const e=nE(b=>b.accessToken),t=Ka(b=>b.userInfo),n=Xv(b=>b.agentInfo),r=EM(),[i,o]=f.useState(!1),{showNotification:a}=TK(),{translateString:s}=Kc();Pp(b=>b.addMessage),Sd(b=>b.updateThreadContent),f.useContext(Ks),f.useRef(!1);const l=Sd(b=>b.threads),[c,u]=f.useState(l),d=f.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$pt()&&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"),Mpt({uid:t.uid,username:t.username,accessToken:e})},y=()=>{console.log("useMqtt useEffect doDisconnect"),gA()},S=b=>{var C,_;(b==null?void 0:b.type)!==Yw&&((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)&&(KDe(),console.log("playAudio"))};return f.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?v():gA()},[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()=>{gA(),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===Gw||C.type===Mfe||C.type===uD||C.type===Yw||C.type===Xw)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(OT),s(OT)),S(C)):(console.log("useMqtt matchingThread no"),a(s(OT),s(OT)),S(C))};return Dr.on(Kw,b),()=>{Dr.off(Kw)}},[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(eD,b),Dr.on(nD,C),Dr.on(rD,C),Dr.on(tD,C),Dr.on(iD,C),Dr.on(oD,C),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(eD),Dr.off(nD),Dr.off(rD),Dr.off(tD),Dr.off(iD),Dr.off(oD)}},[]),{doConnect:v,doDisconnect:y,isMqttConnected:i}}const EEe=Hc()(Gd(Yd(Xd((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===Pfe){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===IOe){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:_Oe})));function TEe(){console.log("useElectronApi");const e=ss(),t=Ka(r=>r.userInfo),n=EEe(r=>r.addDevice);f.useEffect(()=>(console.log("useElectronApi useEffect"),os?(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:Pfe,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===hOe){xn.success("截图成功");const i=r.data;Dr.emit(bOe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),os?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const _Ht=Hc()(Gd(Yd(Xd((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:xOe}))),kEe=Hc()(Gd(Yd(Xd((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}))),EHt=()=>{const e=Yl(u=>u.deleteOrg),t=Sd(u=>u.resetThreads),n=Pp(u=>u.resetMessageList),r=_Ht(u=>u.resetMembers),i=nE(u=>u.removeAccessToken),o=Ka(u=>u.resetUserInfo),a=EEe(u=>u.resetContactInfo),s=Xv(u=>u.resetAgentInfo),l=kEe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function OEe(){console.log("useEventBus");const{clearStorage:e}=EHt(),{doDisconnect:t}=JK(),{setPingLoading:n}=f.useContext(Ks),r=f.useCallback(async()=>{try{const i=await GLt();console.log("logout result:",i.data),n(!1),t(),e(),zpt()}catch(i){console.log("logout error:",i)}},[]);return f.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),Dr.off(Xm,i),r()};return Dr.on(Xm,i),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(Xm)}},[]),{doLogout:r}}const THt=()=>{const e=no(),{doLogout:t}=OEe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=f.useContext(Ks),{agentInfo:l}=Xv(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:V.jsx(qW,{}),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===yv){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:zX,icon:l.status===zX?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:UX,icon:l.status===UX?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:R$,icon:l.status===R$?V.jsx(np,{}):V.jsx(V.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===ab||p.key===yv||p.key===e9?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===R$&&ea.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return V.jsx(V.Fragment,{children:n?V.jsx(V.Fragment,{children:V.jsx(tf,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):V.jsx(V.Fragment,{})})};async function kHt(e){return ri("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:ti}})}const PEe=()=>{const[e,t]=f.useState([]),n=new WCe;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(Kw,a),()=>{console.log("useIndexedDB useEffect return"),Dr.off(Kw,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function MEe(){return ri("/api/v1/user/profile",{method:"GET",params:{client:ti}})}async function IEe(e){return ri("/api/v1/user/update",{method:"POST",data:{...e,client:ti}})}async function OHt(e){return ri("/api/v1/user/change/password",{method:"POST",data:{...e,client:ti}})}async function $Ee(e){return ri("/api/v1/user/change/email",{method:"POST",data:{...e,client:ti}})}async function REe(e){return ri("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:ti}})}const PHt=()=>{const e=no(),{locale:t,changeLocale:n}=f.useContext(Ks),r=[{key:"lang",icon:V.jsx(zst,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?V.jsx(np,{}):V.jsx(V.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return V.jsx(tf,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Fl=function(){return Fl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?ts(NC,--Iu):0,bS--,Ea===10&&(bS=1,eI--),Ea}function Ad(){return Ea=Iu2||AB(Ea)>3?"":" "}function HHt(e,t){for(;--t&&Ad()&&!(Ea<48||Ea>102||Ea>57&&Ea<65||Ea>70&&Ea<97););return nI(e,i3()+(t<6&&av()==32&&Ad()==32))}function NB(e){for(;Ad();)switch(Ea){case e:return Iu;case 34:case 39:e!==34&&e!==39&&NB(Ea);break;case 40:e===41&&NB(e);break;case 92:Ad();break}return Iu}function zHt(e,t){for(;Ad()&&e+Ea!==57;)if(e+Ea===84&&av()===47)break;return"/*"+nI(t,Iu-1)+"*"+tq(e===47?e:Ad())}function UHt(e){for(;!AB(av());)Ad();return nI(e,Iu)}function WHt(e){return jHt(o3("",null,null,null,[""],e=FHt(e),0,[0],e))}function o3(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=Ad()){case 40:if(m!=108&&ts(E,d-1)==58){r3(E+=Jr(JA(b),"&","&\f"),"&\f",DEe(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=JA(b);break;case 9:case 10:case 13:case 32:E+=BHt(m);break;case 92:E+=HHt(i3()-1,7);continue;case 47:switch(av()){case 42:case 47:$2(VHt(zHt(Ad(),i3()),t,n,l),l);break;default:E+="/"}break;case 123*v:s[c++]=Of(E)*S;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:S==-1&&(E=Jr(E,/\f/g,"")),p>0&&Of(E)-d&&$2(p>32?cae(E+";",r,n,d-1,l):cae(Jr(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if($2(x=lae(E,t,n,c,u,i,s,C,_=[],T=[],d,o),o),b===123)if(u===0)o3(E,t,x,x,_,o,d,s,T);else switch(h===99&&ts(E,3)===110?100:h){case 100:case 108:case 109:case 115:o3(e,x,x,r&&$2(lae(e,x,x,0,0,i,s,C,i,_=[],d,T),T),i,T,d,s,r?_:T);break;default:o3(E,x,x,x,[""],T,0,s,T)}}c=u=p=0,v=S=1,C=E="",d=a;break;case 58:d=1+Of(E),p=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&LHt()==125)continue}switch(E+=tq(b),b*v){case 38:S=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Of(E)-1)*S,S=1;break;case 64:av()===45&&(E+=JA(Ad())),h=av(),u=d=Of(C=E+=UHt(i3())),b++;break;case 45:m===45&&Of(E)==2&&(v=0)}}return o}function lae(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=i===0?o:[""],m=FEe(p),v=0,y=0,S=0;v0?p[b]+" "+C:Jr(C,/&\f/g,p[b])))&&(l[S++]=_);return tI(e,t,n,i===0?JM:s,l,c,u,d)}function VHt(e,t,n,r){return tI(e,t,n,AEe,tq(DHt()),yS(e,2,-2),0,r)}function cae(e,t,n,r,i){return tI(e,t,n,eq,yS(e,0,r),yS(e,r+1,-1),r,i)}function BEe(e,t,n){switch(AHt(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 uw+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+uw+e+ho+e+e;case 5936:switch(ts(e,t+11)){case 114:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+ho+Jr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ai+e+ho+e+e;case 6165:return Ai+e+ho+"flex-"+e+e;case 5187:return Ai+e+Jr(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+ho+"flex-$1$2")+e;case 5443:return Ai+e+ho+"flex-item-"+Jr(e,/flex-|-self/g,"")+(jh(e,/flex-|baseline/)?"":ho+"grid-row-"+Jr(e,/flex-|-self/g,""))+e;case 4675:return Ai+e+ho+"flex-line-pack"+Jr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ai+e+ho+Jr(e,"shrink","negative")+e;case 5292:return Ai+e+ho+Jr(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+Jr(e,"-grow","")+Ai+e+ho+Jr(e,"grow","positive")+e;case 4554:return Ai+Jr(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return Jr(Jr(Jr(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return Jr(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return Jr(Jr(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4200:if(!jh(e,/flex-|baseline/))return ho+"grid-column-align"+yS(e,t)+e;break;case 2592:case 3360:return ho+Jr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,jh(r.props,/grid-\w+-end/)})?~r3(e+(n=n[t].value),"span",0)?e:ho+Jr(e,"-start","")+e+ho+"grid-row-span:"+(~r3(n,"span",0)?jh(n,/\d+/):+jh(n,/\d+/)-+jh(e,/\d+/))+";":ho+Jr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return jh(r.props,/grid-\w+-start/)})?e:ho+Jr(Jr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Jr(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(Of(e)-1-t>6)switch(ts(e,t+1)){case 109:if(ts(e,t+4)!==45)break;case 102:return Jr(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+uw+(ts(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r3(e,"stretch",0)?BEe(Jr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Jr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return ho+i+":"+o+c+(a?ho+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(ts(e,t+6)===121)return Jr(e,":",":"+Ai)+e;break;case 6444:switch(ts(e,ts(e,14)===45?18:11)){case 120:return Jr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ai+(ts(e,14)===45?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+ho+"$2box$3")+e;case 100:return Jr(e,":",":"+ho)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Jr(e,"scroll-","scroll-snap-")+e}return e}function $k(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case eq:e.return=BEe(e.value,e.length,n);return;case NEe:return $k([gm(e,{value:Jr(e.value,"@","@"+Ai)})],r);case JM:if(e.length)return NHt(n=e.props,function(i){switch(jh(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":py(gm(e,{props:[Jr(i,/:(read-\w+)/,":"+uw+"$1")]})),py(gm(e,{props:[i]})),RB(e,{props:sae(n,r)});break;case"::placeholder":py(gm(e,{props:[Jr(i,/:(plac\w+)/,":"+Ai+"input-$1")]})),py(gm(e,{props:[Jr(i,/:(plac\w+)/,":"+uw+"$1")]})),py(gm(e,{props:[Jr(i,/:(plac\w+)/,ho+"input-$1")]})),py(gm(e,{props:[i]})),RB(e,{props:sae(n,r)});break}return""})}}var XHt={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",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",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",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",TERM_PROGRAM:"vscode",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",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",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",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",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.46.9",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",CURSOR_TRACE_ID:"b6170bb5af8248188f5d13bb89628d42",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",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",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",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",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",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/.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/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/Library/pnpm:/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",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.gus17fTUKu/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",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",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--1741265662751-0.7561994563367156:/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/.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/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/Library/pnpm:/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",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",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",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",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",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",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",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",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",npm_package_type:"module",SHLVL:"6",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_dependencies_react_markdown:"^9.0.1",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",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",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",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",VSCODE_GIT_ASKPASS_NODE:"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",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__ant_design_compatible:"^5.1.4",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",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"},SS=typeof process<"u"&&mc!==void 0&&(mc.REACT_APP_SC_ATTR||mc.SC_ATTR)||"data-styled",HEe="active",zEe="data-styled-version",rI="6.1.13",nq=`/*!sc*/ `,Rk=typeof window<"u"&&"HTMLElement"in window,QHt=!!(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),iI=Object.freeze([]),CS=Object.freeze({});function ZHt(e,t,n){return n===void 0&&(n=CS),e.theme!==n.theme&&e.theme||t||n.theme}var UEe=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"]),JHt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ezt=/(^-|-$)/g;function uae(e){return e.replace(JHt,"-").replace(ezt,"")}var tzt=/(a)(d)/gi,T5=52,dae=function(e){return String.fromCharCode(e+(e>25?39:97))};function DB(e){var t,n="";for(t=Math.abs(e);t>T5;t=t/T5|0)n=dae(t%T5)+n;return(dae(t%T5)+n).replace(tzt,"$1-$2")}var eN,WEe=5381,qy=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},VEe=function(e){return qy(WEe,e)};function nzt(e){return DB(VEe(e)>>>0)}function rzt(e){return e.displayName||e.name||"Component"}function tN(e){return typeof e=="string"&&!0}var KEe=typeof Symbol=="function"&&Symbol.for,qEe=KEe?Symbol.for("react.memo"):60115,izt=KEe?Symbol.for("react.forward_ref"):60112,ozt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},azt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},GEe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},szt=((eN={})[izt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eN[qEe]=GEe,eN);function fae(e){return("type"in(t=e)&&t.type.$$typeof)===qEe?GEe:"$$typeof"in e?szt[e.$$typeof]:ozt;var t}var lzt=Object.defineProperty,czt=Object.getOwnPropertyNames,hae=Object.getOwnPropertySymbols,uzt=Object.getOwnPropertyDescriptor,dzt=Object.getPrototypeOf,pae=Object.prototype;function YEe(e,t,n){if(typeof t!="string"){if(pae){var r=dzt(t);r&&r!==pae&&YEe(e,r,n)}var i=czt(t);hae&&(i=i.concat(hae(t)));for(var o=fae(e),a=fae(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var fzt=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=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw w4(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a=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 t0&&(y+="".concat(S,","))}),l+="".concat(m).concat(v,'{content:"').concat(y,'"}').concat(nq)},u=0;u0?".".concat(t):h},u=l.slice();u.push(function(h){h.type===JM&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(wzt,n).replace(r,c))}),a.prefix&&u.push(YHt),u.push(KHt);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(_zt,""),S=WHt(m||p?"".concat(m," ").concat(p," { ").concat(y," }"):y);a.namespace&&(S=ZEe(S,a.namespace));var b=[];return $k(S,qHt(u.concat(GHt(function(C){return b.push(C)})))),b};return d.hash=l.length?l.reduce(function(h,p){return p.name||w4(15),qy(h,p.name)},WEe).toString():"",d}var Tzt=new QEe,FB=Ezt(),JEe=me.createContext({shouldForwardProp:void 0,styleSheet:Tzt,stylis:FB});JEe.Consumer;me.createContext(void 0);function yae(){return f.useContext(JEe)}var kzt=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=FB);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,iq(this,function(){throw w4(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=FB),this.name+t.hash},e}(),Ozt=function(e){return e>="A"&&e<="Z"};function bae(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=L1(i,a),this.staticRulesId=a}else{for(var l=qy(this.baseHash,r.hash),c="",u=0;u>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),i=L1(i,p)}}return i},e}(),n4e=me.createContext(void 0);n4e.Consumer;var nN={};function $zt(e,t,n){var r=rq(e),i=e,o=!tN(e),a=t.attrs,s=a===void 0?iI:a,l=t.componentId,c=l===void 0?function(_,T){var x=typeof _!="string"?"sc":uae(_);nN[x]=(nN[x]||0)+1;var E="".concat(x,"-").concat(nzt(rI+x+nN[x]));return T?"".concat(T,"-").concat(E):E}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(_){return tN(_)?"styled.".concat(_):"Styled(".concat(rzt(_),")")}(e):u,h=t.displayName&&t.componentId?"".concat(uae(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 Izt(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=me.useContext(n4e),U=yae(),z=x.shouldForwardProp||U.shouldForwardProp,K=ZHt(E,F,D)||CS,Z=function(se,de,ee){for(var ne,ue=Fl(Fl({},de),{className:void 0,theme:ee}),ye=0;ye{const[o]=ei.useForm(),a=Yl(l=>l.currentOrg);f.useEffect(()=>{t&&n?o.setFieldsValue({name:n==null?void 0:n.name,description:n==null?void 0:n.description,type:n==null?void 0:n.type}):o.setFieldsValue({type:Qm})},[o,t,n]);const s=async()=>{try{const l=await o.validateFields();if(console.log("values:",l),t&&n){const c={...l,orgUid:a==null?void 0:a.uid,uid:n==null?void 0:n.uid},u=await o4e(c);if(console.log("updateKbase response:",u.data),u.data.code===200)return xn.success("知识库更新成功"),i(),!0}else{const c={...l,orgUid:a==null?void 0:a.uid},u=await i4e(c);return console.log("createKbase response:",u.data),u.data.code===200?(xn.success("知识库创建成功"),i(),!0):(xn.error(u.data.message),!1)}}catch(l){return console.error("Create space failed:",l),xn.error("创建知识库失败"),!1}};return V.jsx(Ma,{title:"创建知识库",open:e,onOk:s,onCancel:r,children:V.jsxs(ei,{form:o,submitter:!1,children:[V.jsx(_i,{name:"name",label:"知识库名称",placeholder:"请输入知识库名称",rules:[{required:!0,message:"请输入知识库名称"}]}),V.jsx(OC,{name:"description",label:"知识库描述",placeholder:"请输入知识库描述",rules:[{required:!0,message:"请输入知识库描述"}],fieldProps:{rows:4}}),V.jsx(rM.Group,{name:"type",label:"知识库类型",rules:[{required:!0,message:"请选择知识库类型"}],options:[{label:"帮助文档",value:oPe},{label:"私有知识库",value:Qm}]})]})})},kg=Hc(e=>({kbases:[],currentKbase:null,setKbases:t=>e({kbases:t}),setCurrentKbase:t=>e({currentKbase:t}),fetchKbases:async t=>{const r=await Azt({pageNumber:0,pageSize:10,type:Qm,orgUid:t,queryNotebase:!0});console.log("queryKbasesByOrg response",r.data),r.data.code===200?e({kbases:r.data.data.content||[]}):xn.error(r.data.message)},toggleStarKbase:t=>e(n=>({kbases:n.kbases.map(r=>r.uid===t?{...r,favorite:!r.favorite}:r)})),createKbase:async t=>{const n={...t,type:Qm,queryNotebase:!0},r=await i4e(n);console.log("createKbase response",r.data),r.data.code===200?e(i=>({kbases:[...i.kbases,t]})):xn.error(r.data.message)},updateKbase:async t=>{const n={...t,type:Qm,queryNotebase:!0},r=await o4e(n);console.log("updateKbase response",r.data),r.data.code===200?xn.success("更新成功"):xn.error(r.data.message)},deleteKbase:async t=>{const r=await Dzt({uid:t});console.log("deleteKbase response",r.data),r.data.code===200?xn.success("删除成功"):xn.error(r.data.message)},fetchKbaseDetail:async t=>{const r=await Nzt({uid:t});if(console.log("queryKbaseDetail response",r.data),r.data.code===200)e({currentKbase:r.data.data});else throw new Error("KBASE.KbaseResponse not found")}})),{Title:Lzt,Paragraph:Fzt}=qE,jzt=No(hP)` .ant-card-body { height: 120px; @@ -918,7 +918,7 @@ b`.split(/\n/).length!=3?function(g){for(var w=0,$=[],I=g.length;w<=I;){var L=g. `))}function l(p,m,v,y){const S=v.enter("tableCell"),b=v.enter("phrasing"),C=l8e(p,v,{...y,before:o,after:o});return b(),S(),C}function c(p,m){return srn(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-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 brn={exit:{taskListCheckValueChecked:Ece,taskListCheckValueUnchecked:Ece,paragraph:Crn}},Srn={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xrn}};function Ece(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',CheckCorrect:'',InsertTable:''},Trn="Strikethrough",krn="text",Orn="Table",Prn="Heading",Mrn="Task list",Irn="todo",$rn={strike:Trn,strikeText:krn,table:Orn,tableHeading:Prn,task:Mrn,taskText:Irn};function d8e({locale:e,...t}={}){const n={...$rn,...e};return{remark:r=>r.use(Ern,t),actions:[{title:n.strike,icon:VN.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:VN.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:VN.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 f8e({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await Hz(()=>import("./index-CmLgq6cS.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 h8e(e){return typeof e>"u"||e===null}function Rrn(e){return typeof e=="object"&&e!==null}function Arn(e){return Array.isArray(e)?e:h8e(e)?[]:[e]}function Nrn(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await Hz(()=>import("./index-IY7Wnwjf.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 h8e(e){return typeof e>"u"||e===null}function Rrn(e){return typeof e=="object"&&e!==null}function Arn(e){return Array.isArray(e)?e:h8e(e)?[]:[e]}function Nrn(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;ns&&(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 qN(e,t){return dl.repeat(" ",t-e.length)+e}function Wrn(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=KN(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),d),s=dl.repeat(" ",t.indent)+qN((e.line-l+1).toString(),u)+" | "+c.str+` `+s;for(c=KN(e.buffer,r[a],i[a],e.position,d),s+=dl.repeat(" ",t.indent)+qN((e.line+1).toString(),u)+" | "+c.str+` @@ -1001,7 +1001,7 @@ another task : 24d`},{title:n.pie,code:`pie title Pets adopted by volunteer : Google 2005 : Youtube 2006 : Twitter - `}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await Hz(()=>import("./mermaid.core-BRpiNjs-.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:Non.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(` + `}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await Hz(()=>import("./mermaid.core-CLEyumap.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:Non.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 Dce={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:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"},Q5=/:(\+1|[-\w]+):/g,qon={}.hasOwnProperty;function Gon(){return e=>{_4(e,"text",t=>{const n=t.value,r=[];Q5.lastIndex=0;let i=Q5.exec(n),o=0;for(;i;){const a=i[1],s=i.index;qon.call(Dce,a)?(o!==s&&r.push(n.slice(o,s)),r.push(Dce[a]),o=s+i[0].length):Q5.lastIndex=s+1,i=Q5.exec(n)}r.length>0&&(r.push(n.slice(o)),t.value=r.join(""))})}}function Yon(){return{remark:e=>e.use(Gon)}}function Xon(e){n8e(e,/\r?\n|\r/g,Qon)}function Qon(){return{type:"break"}}function Zon(){return Xon}function Jon(){return{remark:e=>e.use(Zon)}}const ean="粗体",tan="粗体文本",nan="Markdown 语法",ran="关闭帮助",ian="关闭目录",oan="代码",aan="代码块",san="编程语言",lan="代码",can="退出全屏",uan="恢复默认",dan="恢复默认",fan="全屏",han="一级标题",pan="二级标题",man="三级标题",gan="四级标题",van="五级标题",yan="六级标题",ban="标题",San="帮助",Can="分割线",xan="图片",wan="alt",_an="图片描述",Ean="斜体",Tan="斜体文本",kan="已达最大字符数限制",Oan="行数",Pan="链接",Man="链接描述",Ian="有序列表",$an="项目",Ran="预览",Aan="仅预览区",Nan="引用",Dan="引用文本",Lan="快捷键",Fan="源代码",jan="同步滚动",Ban="目录",Han="回到顶部",zan="无序列表",Uan="项目",Wan="字数",Van="编辑",Kan="仅编辑区",qan={bold:ean,boldText:tan,cheatsheet:nan,closeHelp:ran,closeToc:ian,code:oan,codeBlock:aan,codeLang:san,codeText:lan,exitFullscreen:can,exitPreviewOnly:uan,exitWriteOnly:dan,fullscreen:fan,h1:han,h2:pan,h3:man,h4:gan,h5:van,h6:yan,headingText:ban,help:San,hr:Can,image:xan,imageAlt:wan,imageTitle:_an,italic:Ean,italicText:Tan,limited:kan,lines:Oan,link:Pan,linkText:Man,ol:Ian,olItem:$an,preview:Ran,previewOnly:Aan,quote:Nan,quotedText:Dan,shortcuts:Lan,source:Fan,sync:jan,toc:Ban,top:Han,ul:zan,ulItem:Uan,words:Wan,write:Van,writeOnly:Kan},Gan=[d8e(),f8e(),Aon(),T8e(),Yon(),Jon()],Yan=No.div` height: 100%; .bytemd { diff --git a/deploy/server/notebase/assets/infoDiagram-f8f76790-CiEeDDYE.js b/starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-_WLEWeGB.js similarity index 98% rename from deploy/server/notebase/assets/infoDiagram-f8f76790-CiEeDDYE.js rename to starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-_WLEWeGB.js index b56f547d10..fd9fd26782 100644 --- a/deploy/server/notebase/assets/infoDiagram-f8f76790-CiEeDDYE.js +++ b/starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-_WLEWeGB.js @@ -1,4 +1,4 @@ -import{l as Y,N as D,i as M}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,j=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>j&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: +import{l as Y,N as D,i as M}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,j=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>j&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: `+o.showPosition()+` Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-D1bocf1Q.js b/starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-Bvmnb9ly.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-D1bocf1Q.js rename to starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-Bvmnb9ly.js index 24cd83c051..1bfe7e710a 100644 --- a/starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-D1bocf1Q.js +++ b/starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-Bvmnb9ly.js @@ -1,4 +1,4 @@ -import{c as A,A as yt,B as ft,s as dt,g as pt,b as gt,a as mt,C as xt,h as W,i as kt}from"./mermaid.core-BRpiNjs-.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-BxUoIeIU.js";import"./index-DFpvp1rn.js";import{a as Q}from"./arc-Cb_wyWgX.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,C={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`: +import{c as A,A as yt,B as ft,s as dt,g as pt,b as gt,a as mt,C as xt,h as W,i as kt}from"./mermaid.core-CLEyumap.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-CmoRP8WR.js";import"./index-hnRSc5ud.js";import{a as Q}from"./arc-BVZmYbDK.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,C={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`: `+x.showPosition()+` Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],C.$=d[d.length-$],C._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(C._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(C,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),d.push(C.$),o.push(C._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/layout-e9igZ_Vb.js b/starter/src/main/resources/templates/notebase/assets/layout-C3MVMtGC.js similarity index 99% rename from deploy/server/notebase/assets/layout-e9igZ_Vb.js rename to starter/src/main/resources/templates/notebase/assets/layout-C3MVMtGC.js index 42480b8767..341fbdb88a 100644 --- a/deploy/server/notebase/assets/layout-e9igZ_Vb.js +++ b/starter/src/main/resources/templates/notebase/assets/layout-C3MVMtGC.js @@ -1 +1 @@ -import{b as bn,a as Wn,c as L,k as zn,d as Xn,e as Un,g as O,j as gn,l as xn,m as En,t as Hn,n as kn,o as Jn,p as Kn,f as s,G as x,h as w,i as g,q as M,v as y,r as G}from"./graph-Bqo8LFRO.js";import{B as jn,C as Qn,D as Zn,E as yn,F as S,G as Nn,H as ne,e as Ln,f as J,I as ee,J as re,K as X,L as K,N as on,O as ie,P as _n,Q as te,R as ae,n as U}from"./index-DFpvp1rn.js";var un=1/0,oe=17976931348623157e292;function F(n){if(!n)return n===0?n:0;if(n=jn(n),n===un||n===-un){var e=n<0?-1:1;return e*oe}return n===n?n:0}function ue(n){var e=F(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?bn(n):[]}function de(n){return Qn(Zn(n,void 0,_),n+"")}var fe=1,se=4;function ce(n){return Wn(n,fe|se)}var Cn=Object.prototype,he=Cn.hasOwnProperty,le=yn(function(n,e){n=Object(n);var r=-1,i=e.length,t=i>2?e[2]:void 0;for(t&&S(e[0],e[1],t)&&(i=1);++r-1?t[o?e[a]:a]:void 0}}var pe=Math.max;function we(n,e,r){var i=n==null?0:n.length;if(!i)return-1;var t=r==null?0:ue(r);return t<0&&(t=pe(i+t,0)),Xn(n,L(e),t)}var j=ve(we);function Rn(n,e){var r=-1,i=Ln(n)?Array(n.length):[];return Un(n,function(t,o,a){i[++r]=e(t,o,a)}),i}function m(n,e){var r=J(n)?O:Rn;return r(n,L(e))}function me(n,e){return n==null?n:ee(n,gn(e),Nn)}function be(n,e){return n&&xn(n,gn(e))}function ge(n,e){return n>e}function In(n,e){return ne||o&&a&&d&&!u&&!f||i&&a&&d||!r&&d||!t)return 1;if(!i&&!o&&!f&&n=u)return d;var f=r[i];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Le(n,e,r){e.length?e=O(e,function(o){return J(o)?function(a){return kn(a,o.length===1?o[0]:o)}:o}):e=[K];var i=-1;e=O(e,te(L));var t=Rn(n,function(o,a,u){var d=O(e,function(f){return f(o)});return{criteria:d,index:++i,value:o}});return ke(t,function(o,a){return Ne(o,a,r)})}function _e(n,e){return Ee(n,e,function(r,i){return Jn(n,i)})}var B=de(function(n,e){return n==null?{}:_e(n,e)}),Ce=Math.ceil,Re=Math.max;function Ie(n,e,r,i){for(var t=-1,o=Re(Ce((e-n)/(r||1)),0),a=Array(o);o--;)a[++t]=n,n+=r;return a}function Te(n){return function(e,r,i){return i&&typeof i!="number"&&S(e,r,i)&&(r=i=void 0),e=F(e),r===void 0?(r=e,e=0):r=F(r),i=i===void 0?e1&&S(n,e[0],e[1])?e=[]:r>2&&S(e[0],e[1],e[2])&&(e=[e[0]]),Le(n,bn(e),[])}),Me=0;function nn(n){var e=++Me;return Kn(n)+e}function Pe(n,e,r){for(var i=-1,t=n.length,o=e.length,a={};++i0;--u)if(a=e[u].dequeue(),a){i=i.concat(D(n,e,r,a,!0));break}}}return i}function D(n,e,r,i,t){var o=t?[]:void 0;return s(n.inEdges(i.v),function(a){var u=n.edge(a),d=n.node(a.v);t&&o.push({v:a.v,w:a.w}),d.out-=u,H(e,r,d)}),s(n.outEdges(i.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,H(e,r,f)}),n.removeNode(i.v),o}function Ve(n,e){var r=new x,i=0,t=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),t=Math.max(t,r.node(u.v).out+=f),i=Math.max(i,r.node(u.w).in+=f)});var o=N(t+i+3).map(function(){return new Fe}),a=i+1;return s(r.nodes(),function(u){H(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function H(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Ye(n){var e=n.graph().acyclicer==="greedy"?Be(n,r(n)):De(n);s(e,function(i){var t=n.edge(i);n.removeEdge(i),t.forwardName=i.name,t.reversed=!0,n.setEdge(i.w,i.v,t,nn("rev"))});function r(i){return function(t){return i.edge(t).weight}}}function De(n){var e=[],r={},i={};function t(o){w(i,o)||(i[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):t(a.w)}),delete r[o])}return s(n.nodes(),t),e}function qe(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,i)}})}function C(n,e,r,i){var t;do t=nn(i);while(n.hasNode(t));return r.dummy=e,n.setNode(t,r),t}function $e(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},t=n.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+t.weight,minlen:Math.max(i.minlen,t.minlen)})}),e}function Tn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function fn(n,e){var r=n.x,i=n.y,t=e.x-r,o=e.y-i,a=n.width/2,u=n.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,f=u):(t<0&&(a=-a),d=a,f=a*o/t),{x:r+d,y:i+f}}function Y(n){var e=m(N(Mn(n)+1),function(){return[]});return s(n.nodes(),function(r){var i=n.node(r),t=i.rank;g(t)||(e[t][i.order]=r)}),e}function We(n){var e=I(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var i=n.node(r);w(i,"rank")&&(i.rank-=e)})}function ze(n){var e=I(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var i=0,t=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%t!==0?--i:i&&s(o,function(u){n.node(u).rank+=i})})}function sn(n,e,r,i){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=i),C(n,"border",t,e)}function Mn(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function Xe(n,e){var r={lhs:[],rhs:[]};return s(n,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r}function Ue(n,e){return e()}function He(n){function e(r){var i=n.children(r),t=n.node(r);if(i.length&&s(i,e),w(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,a=t.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===ln(n,n.node(c.v),u)&&d!==ln(n,n.node(c.w),u)});return Z(f,function(c){return T(e,c)})}function Yn(n,e,r,i){var t=r.v,o=r.w;n.removeEdge(t,o),n.setEdge(i.v,i.w,{}),tn(n),rn(n,e),fr(n,e)}function fr(n,e){var r=j(n.nodes(),function(t){return!e.node(t).parent}),i=ur(n,r);i=i.slice(1),s(i,function(t){var o=n.node(t).parent,a=e.edge(t,o),u=!1;a||(a=e.edge(o,t),u=!0),e.node(t).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function sr(n,e,r){return n.hasEdge(e,r)}function ln(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function cr(n){switch(n.graph().ranker){case"network-simplex":vn(n);break;case"tight-tree":lr(n);break;case"longest-path":hr(n);break;default:vn(n)}}var hr=en;function lr(n){en(n),On(n)}function vn(n){k(n)}function vr(n){var e=C(n,"root",{},"_root"),r=pr(n),i=E(y(r))-1,t=2*i+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=t});var o=wr(n)+1;s(n.children(),function(a){Dn(n,e,t,o,i,r,a)}),n.graph().nodeRankFactor=t}function Dn(n,e,r,i,t,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=sn(n,"_bt"),f=sn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){Dn(n,e,r,i,t,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?i:2*i,R=v!==p?1:t-o[a]+1;n.setEdge(d,v,{weight:b,minlen:R,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:R,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:t+o[a]})}function pr(n){var e={};function r(i,t){var o=n.children(i);o&&o.length&&s(o,function(a){r(a,t+1)}),e[i]=t}return s(n.children(),function(i){r(i,1)}),e}function wr(n){return G(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function mr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var i=n.edge(r);i.nestingEdge&&n.removeEdge(r)})}function br(n,e,r){var i={},t;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=i[u],i[u]=a):(d=t,t=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function gr(n,e,r){var i=xr(n),t=new x({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(t.setNode(o),t.setParent(o,u||i),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=t.edge(f,o),h=g(c)?0:c.weight;t.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&t.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),t}function xr(n){for(var e;n.hasNode(e=nn("_root")););return e}function Er(n,e){for(var r=0,i=1;i0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function yr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),i=E(m(r,function(u){return n.node(u).rank})),t=m(N(i+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);t[d.rank].push(u),s(n.successors(u),o)}}var a=P(r,function(u){return n.node(u).rank});return s(a,o),t}function Nr(n,e){return m(e,function(r){var i=n.inEdges(r);if(i.length){var t=G(i,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function Lr(n,e){var r={};s(n,function(t,o){var a=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};g(t.barycenter)||(a.barycenter=t.barycenter,a.weight=t.weight)}),s(e.edges(),function(t){var o=r[t.v],a=r[t.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[t.w]))});var i=M(r,function(t){return!t.indegree});return _r(i)}function _r(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Cr(o,a)}}function i(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var t=n.pop();e.push(t),s(t.in.reverse(),r(t)),s(t.out,i(t))}return m(M(e,function(o){return!o.merged}),function(o){return B(o,["vs","i","barycenter","weight"])})}function Cr(n,e){var r=0,i=0;n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/i,n.weight=i,n.i=Math.min(e.i,n.i),e.merged=!0}function Rr(n,e){var r=Xe(n,function(c){return w(c,"barycenter")}),i=r.lhs,t=P(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;i.sort(Ir(!!e)),d=pn(o,t,d),s(i,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=pn(o,t,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function pn(n,e,r){for(var i;e.length&&(i=A(e)).i<=r;)e.pop(),n.push(i.vs),r++;return r}function Ir(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,i){var t=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(t=M(t,function(p){return p!==a&&p!==u}));var f=Nr(n,t);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,i);d[p.v]=b,w(b,"barycenter")&&Mr(p,b)}});var c=Lr(f,r);Tr(c,d);var h=Rr(c,i);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Tr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(i){return e[i]?e[i].vs:i}))})}function Mr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Pr(n){var e=Mn(n),r=wn(n,N(1,e+1),"inEdges"),i=wn(n,N(e-1,-1,-1),"outEdges"),t=yr(n);mn(n,t);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Or(u%2?r:i,u%4>=2),t=Y(n);var f=Er(n,t);fa||u>e[d].lim));for(f=d,d=i;(d=n.parent(d))!==f;)o.push(d);return{path:t.concat(o.reverse()),lca:f}}function Ar(n){var e={},r=0;function i(t){var o=r;s(n.children(t),i),e[t]={low:o,lim:r++}}return s(n.children(),i),e}function Br(n,e){var r={};function i(t,o){var a=0,u=0,d=t.length,f=A(o);return s(o,function(c,h){var l=Vr(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var R=n.node(b),an=R.order;(anf)&&$n(r,l,c)})})}function t(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,i(a,f,h,u,d),f=h,u=d)}i(a,f,a.length,d,o.length)}),a}return G(e,t),r}function Vr(n,e){if(n.node(e).dummy)return j(n.predecessors(e),function(r){return n.node(r).dummy})}function $n(n,e,r){if(e>r){var i=e;e=r,r=i}var t=n[e];t||(n[e]=t={}),t[r]=!0}function Yr(n,e,r){if(e>r){var i=e;e=r,r=i}return w(n[e],r)}function Dr(n,e,r,i){var t={},o={},a={};return s(e,function(u){s(u,function(d,f){t[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=i(f);if(c.length){c=P(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&d2?e[2]:void 0;for(t&&S(e[0],e[1],t)&&(i=1);++r-1?t[o?e[a]:a]:void 0}}var pe=Math.max;function we(n,e,r){var i=n==null?0:n.length;if(!i)return-1;var t=r==null?0:ue(r);return t<0&&(t=pe(i+t,0)),Xn(n,L(e),t)}var j=ve(we);function Rn(n,e){var r=-1,i=Ln(n)?Array(n.length):[];return Un(n,function(t,o,a){i[++r]=e(t,o,a)}),i}function m(n,e){var r=J(n)?O:Rn;return r(n,L(e))}function me(n,e){return n==null?n:ee(n,gn(e),Nn)}function be(n,e){return n&&xn(n,gn(e))}function ge(n,e){return n>e}function In(n,e){return ne||o&&a&&d&&!u&&!f||i&&a&&d||!r&&d||!t)return 1;if(!i&&!o&&!f&&n=u)return d;var f=r[i];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Le(n,e,r){e.length?e=O(e,function(o){return J(o)?function(a){return kn(a,o.length===1?o[0]:o)}:o}):e=[K];var i=-1;e=O(e,te(L));var t=Rn(n,function(o,a,u){var d=O(e,function(f){return f(o)});return{criteria:d,index:++i,value:o}});return ke(t,function(o,a){return Ne(o,a,r)})}function _e(n,e){return Ee(n,e,function(r,i){return Jn(n,i)})}var B=de(function(n,e){return n==null?{}:_e(n,e)}),Ce=Math.ceil,Re=Math.max;function Ie(n,e,r,i){for(var t=-1,o=Re(Ce((e-n)/(r||1)),0),a=Array(o);o--;)a[++t]=n,n+=r;return a}function Te(n){return function(e,r,i){return i&&typeof i!="number"&&S(e,r,i)&&(r=i=void 0),e=F(e),r===void 0?(r=e,e=0):r=F(r),i=i===void 0?e1&&S(n,e[0],e[1])?e=[]:r>2&&S(e[0],e[1],e[2])&&(e=[e[0]]),Le(n,bn(e),[])}),Me=0;function nn(n){var e=++Me;return Kn(n)+e}function Pe(n,e,r){for(var i=-1,t=n.length,o=e.length,a={};++i0;--u)if(a=e[u].dequeue(),a){i=i.concat(D(n,e,r,a,!0));break}}}return i}function D(n,e,r,i,t){var o=t?[]:void 0;return s(n.inEdges(i.v),function(a){var u=n.edge(a),d=n.node(a.v);t&&o.push({v:a.v,w:a.w}),d.out-=u,H(e,r,d)}),s(n.outEdges(i.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,H(e,r,f)}),n.removeNode(i.v),o}function Ve(n,e){var r=new x,i=0,t=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),t=Math.max(t,r.node(u.v).out+=f),i=Math.max(i,r.node(u.w).in+=f)});var o=N(t+i+3).map(function(){return new Fe}),a=i+1;return s(r.nodes(),function(u){H(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function H(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Ye(n){var e=n.graph().acyclicer==="greedy"?Be(n,r(n)):De(n);s(e,function(i){var t=n.edge(i);n.removeEdge(i),t.forwardName=i.name,t.reversed=!0,n.setEdge(i.w,i.v,t,nn("rev"))});function r(i){return function(t){return i.edge(t).weight}}}function De(n){var e=[],r={},i={};function t(o){w(i,o)||(i[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):t(a.w)}),delete r[o])}return s(n.nodes(),t),e}function qe(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,i)}})}function C(n,e,r,i){var t;do t=nn(i);while(n.hasNode(t));return r.dummy=e,n.setNode(t,r),t}function $e(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},t=n.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+t.weight,minlen:Math.max(i.minlen,t.minlen)})}),e}function Tn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function fn(n,e){var r=n.x,i=n.y,t=e.x-r,o=e.y-i,a=n.width/2,u=n.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,f=u):(t<0&&(a=-a),d=a,f=a*o/t),{x:r+d,y:i+f}}function Y(n){var e=m(N(Mn(n)+1),function(){return[]});return s(n.nodes(),function(r){var i=n.node(r),t=i.rank;g(t)||(e[t][i.order]=r)}),e}function We(n){var e=I(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var i=n.node(r);w(i,"rank")&&(i.rank-=e)})}function ze(n){var e=I(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var i=0,t=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%t!==0?--i:i&&s(o,function(u){n.node(u).rank+=i})})}function sn(n,e,r,i){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=i),C(n,"border",t,e)}function Mn(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function Xe(n,e){var r={lhs:[],rhs:[]};return s(n,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r}function Ue(n,e){return e()}function He(n){function e(r){var i=n.children(r),t=n.node(r);if(i.length&&s(i,e),w(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,a=t.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===ln(n,n.node(c.v),u)&&d!==ln(n,n.node(c.w),u)});return Z(f,function(c){return T(e,c)})}function Yn(n,e,r,i){var t=r.v,o=r.w;n.removeEdge(t,o),n.setEdge(i.v,i.w,{}),tn(n),rn(n,e),fr(n,e)}function fr(n,e){var r=j(n.nodes(),function(t){return!e.node(t).parent}),i=ur(n,r);i=i.slice(1),s(i,function(t){var o=n.node(t).parent,a=e.edge(t,o),u=!1;a||(a=e.edge(o,t),u=!0),e.node(t).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function sr(n,e,r){return n.hasEdge(e,r)}function ln(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function cr(n){switch(n.graph().ranker){case"network-simplex":vn(n);break;case"tight-tree":lr(n);break;case"longest-path":hr(n);break;default:vn(n)}}var hr=en;function lr(n){en(n),On(n)}function vn(n){k(n)}function vr(n){var e=C(n,"root",{},"_root"),r=pr(n),i=E(y(r))-1,t=2*i+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=t});var o=wr(n)+1;s(n.children(),function(a){Dn(n,e,t,o,i,r,a)}),n.graph().nodeRankFactor=t}function Dn(n,e,r,i,t,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=sn(n,"_bt"),f=sn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){Dn(n,e,r,i,t,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?i:2*i,R=v!==p?1:t-o[a]+1;n.setEdge(d,v,{weight:b,minlen:R,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:R,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:t+o[a]})}function pr(n){var e={};function r(i,t){var o=n.children(i);o&&o.length&&s(o,function(a){r(a,t+1)}),e[i]=t}return s(n.children(),function(i){r(i,1)}),e}function wr(n){return G(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function mr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var i=n.edge(r);i.nestingEdge&&n.removeEdge(r)})}function br(n,e,r){var i={},t;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=i[u],i[u]=a):(d=t,t=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function gr(n,e,r){var i=xr(n),t=new x({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(t.setNode(o),t.setParent(o,u||i),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=t.edge(f,o),h=g(c)?0:c.weight;t.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&t.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),t}function xr(n){for(var e;n.hasNode(e=nn("_root")););return e}function Er(n,e){for(var r=0,i=1;i0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function yr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),i=E(m(r,function(u){return n.node(u).rank})),t=m(N(i+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);t[d.rank].push(u),s(n.successors(u),o)}}var a=P(r,function(u){return n.node(u).rank});return s(a,o),t}function Nr(n,e){return m(e,function(r){var i=n.inEdges(r);if(i.length){var t=G(i,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function Lr(n,e){var r={};s(n,function(t,o){var a=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};g(t.barycenter)||(a.barycenter=t.barycenter,a.weight=t.weight)}),s(e.edges(),function(t){var o=r[t.v],a=r[t.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[t.w]))});var i=M(r,function(t){return!t.indegree});return _r(i)}function _r(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Cr(o,a)}}function i(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var t=n.pop();e.push(t),s(t.in.reverse(),r(t)),s(t.out,i(t))}return m(M(e,function(o){return!o.merged}),function(o){return B(o,["vs","i","barycenter","weight"])})}function Cr(n,e){var r=0,i=0;n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/i,n.weight=i,n.i=Math.min(e.i,n.i),e.merged=!0}function Rr(n,e){var r=Xe(n,function(c){return w(c,"barycenter")}),i=r.lhs,t=P(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;i.sort(Ir(!!e)),d=pn(o,t,d),s(i,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=pn(o,t,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function pn(n,e,r){for(var i;e.length&&(i=A(e)).i<=r;)e.pop(),n.push(i.vs),r++;return r}function Ir(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,i){var t=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(t=M(t,function(p){return p!==a&&p!==u}));var f=Nr(n,t);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,i);d[p.v]=b,w(b,"barycenter")&&Mr(p,b)}});var c=Lr(f,r);Tr(c,d);var h=Rr(c,i);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Tr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(i){return e[i]?e[i].vs:i}))})}function Mr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Pr(n){var e=Mn(n),r=wn(n,N(1,e+1),"inEdges"),i=wn(n,N(e-1,-1,-1),"outEdges"),t=yr(n);mn(n,t);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Or(u%2?r:i,u%4>=2),t=Y(n);var f=Er(n,t);fa||u>e[d].lim));for(f=d,d=i;(d=n.parent(d))!==f;)o.push(d);return{path:t.concat(o.reverse()),lca:f}}function Ar(n){var e={},r=0;function i(t){var o=r;s(n.children(t),i),e[t]={low:o,lim:r++}}return s(n.children(),i),e}function Br(n,e){var r={};function i(t,o){var a=0,u=0,d=t.length,f=A(o);return s(o,function(c,h){var l=Vr(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var R=n.node(b),an=R.order;(anf)&&$n(r,l,c)})})}function t(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,i(a,f,h,u,d),f=h,u=d)}i(a,f,a.length,d,o.length)}),a}return G(e,t),r}function Vr(n,e){if(n.node(e).dummy)return j(n.predecessors(e),function(r){return n.node(r).dummy})}function $n(n,e,r){if(e>r){var i=e;e=r,r=i}var t=n[e];t||(n[e]=t={}),t[r]=!0}function Yr(n,e,r){if(e>r){var i=e;e=r,r=i}return w(n[e],r)}function Dr(n,e,r,i){var t={},o={},a={};return s(e,function(u){s(u,function(d,f){t[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=i(f);if(c.length){c=P(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&dt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function Q(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=Q(F),dn=sn.right;Q(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function _(n){return n}var H=Array.prototype.map,J=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?_:jn(H.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?_:Pn(H.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?J[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=J[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var K=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Xn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Bn:Xn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Vn(){return On()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Vn();return n.copy=function(){return Gn(n,Un())},cn.apply(n,arguments),Zn(n)}export{Gn as a,Q as b,Vn as c,Un as l,wn as t}; +import{W as un,X as I,Y,Z,_ as fn}from"./mermaid.core-CLEyumap.js";import{i as cn}from"./init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function Q(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=Q(F),dn=sn.right;Q(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function _(n){return n}var H=Array.prototype.map,J=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?_:jn(H.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?_:Pn(H.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?J[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=J[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var K=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Xn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Bn:Xn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Vn(){return On()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Vn();return n.copy=function(){return Gn(n,Un())},cn.apply(n,arguments),Zn(n)}export{Gn as a,Q as b,Vn as c,Un as l,wn as t}; diff --git a/starter/src/main/resources/templates/notebase/assets/mermaid.core-BRpiNjs-.js b/starter/src/main/resources/templates/notebase/assets/mermaid.core-CLEyumap.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/mermaid.core-BRpiNjs-.js rename to starter/src/main/resources/templates/notebase/assets/mermaid.core-CLEyumap.js index 5959c7df12..4ad5f7d72f 100644 --- a/starter/src/main/resources/templates/notebase/assets/mermaid.core-BRpiNjs-.js +++ b/starter/src/main/resources/templates/notebase/assets/mermaid.core-CLEyumap.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-3d4e48cf-BSqYziN3.js","assets/svgDrawCommon-08f97a94-BxUoIeIU.js","assets/index-DFpvp1rn.js","assets/index-eP8xmSAc.css","assets/flowDiagram-66a62f08-BS834x_8.js","assets/flowDb-956e92f1-CrjTimDC.js","assets/graph-Bqo8LFRO.js","assets/layout-e9igZ_Vb.js","assets/styles-c10674c1-DaH9xpKF.js","assets/index-3862675e-BjItSQO6.js","assets/clone-C_jSdwol.js","assets/edges-e0da2a9e-Bx6yyD_A.js","assets/createText-2e5e7dd3-_UBRrGW4.js","assets/line-kJpnB43P.js","assets/array-BKyUJesY.js","assets/path-CbwjOpE9.js","assets/channel-BcV_jLhP.js","assets/flowDiagram-v2-96b9c2cf-lmbQs4by.js","assets/erDiagram-9861fffd-seY5Sb-y.js","assets/gitGraphDiagram-72cf32ee-B5qJwgjK.js","assets/ganttDiagram-c361ad54-BIYXEZbj.js","assets/linear-DCGWotbG.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-f8f76790-CiEeDDYE.js","assets/pieDiagram-8a3498a8-Byowwp7E.js","assets/arc-Cb_wyWgX.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-120e2f19-CSu98yVs.js","assets/xychartDiagram-e933f94c-AH_oESFX.js","assets/requirementDiagram-deff3bca-91ycfj4X.js","assets/sequenceDiagram-704730f1-CGZmNzMJ.js","assets/classDiagram-70f12bd4-B-Rd6-NF.js","assets/styles-9a916d00-CMxTlbUn.js","assets/classDiagram-v2-f2320105-BqCjzFcO.js","assets/stateDiagram-587899a1-DGSZybvb.js","assets/styles-6aaf32cf-BPvqRBVt.js","assets/stateDiagram-v2-d93cdb3a-CAo6W-m6.js","assets/journeyDiagram-49397b02-D1bocf1Q.js","assets/flowchart-elk-definition-4a651766-DPls5GBE.js","assets/timeline-definition-85554ec2-B6W68VWC.js","assets/mindmap-definition-fc14e90a-BTWakWr7.js","assets/sankeyDiagram-04a897e0-BLCglvL0.js","assets/Tableau10-B-NsZVaP.js","assets/blockDiagram-38ab4fdb-Dy_KKNjq.js"])))=>i.map(i=>d[i]); -import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h as ja,j as Ga,k as Xa,l as Oo,m as Ka,n as Za,s as Qa,p as Ja,q as tl,_ as I}from"./index-DFpvp1rn.js";var el=Ua(Object.keys,Object),il=Object.prototype,rl=il.hasOwnProperty;function nl(t){if(!Mo(t))return el(t);var e=[];for(var i in Object(t))rl.call(t,i)&&i!="constructor"&&e.push(i);return e}var ur=Si(wi,"DataView"),dr=Si(wi,"Promise"),fr=Si(wi,"Set"),pr=Si(wi,"WeakMap"),En="[object Map]",ol="[object Object]",Mn="[object Promise]",In="[object Set]",On="[object WeakMap]",Dn="[object DataView]",sl=le(ur),al=le(cr),ll=le(dr),hl=le(fr),cl=le(pr),Ot=Io;(ur&&Ot(new ur(new ArrayBuffer(1)))!=Dn||cr&&Ot(new cr)!=En||dr&&Ot(dr.resolve())!=Mn||fr&&Ot(new fr)!=In||pr&&Ot(new pr)!=On)&&(Ot=function(t){var e=Io(t),i=e==ol?t.constructor:void 0,r=i?le(i):"";if(r)switch(r){case sl:return Dn;case al:return En;case ll:return Mn;case hl:return In;case cl:return On}return e});var ul="[object Map]",dl="[object Set]",fl=Object.prototype,pl=fl.hasOwnProperty;function Zi(t){if(t==null)return!0;if(Ya(t)&&(Va(t)||typeof t=="string"||typeof t.splice=="function"||ja(t)||Ga(t)||Xa(t)))return!t.length;var e=Ot(t);if(e==ul||e==dl)return!t.size;if(Mo(t))return!nl(t).length;for(var i in t)if(pl.call(t,i))return!1;return!0}var gl="Expected a function";function Re(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gl);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Re.Cache||Oo),i}Re.Cache=Oo;function ml(t){for(var e=[],i=1;ii.map(i=>d[i]); +import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h as ja,j as Ga,k as Xa,l as Oo,m as Ka,n as Za,s as Qa,p as Ja,q as tl,_ as I}from"./index-hnRSc5ud.js";var el=Ua(Object.keys,Object),il=Object.prototype,rl=il.hasOwnProperty;function nl(t){if(!Mo(t))return el(t);var e=[];for(var i in Object(t))rl.call(t,i)&&i!="constructor"&&e.push(i);return e}var ur=Si(wi,"DataView"),dr=Si(wi,"Promise"),fr=Si(wi,"Set"),pr=Si(wi,"WeakMap"),En="[object Map]",ol="[object Object]",Mn="[object Promise]",In="[object Set]",On="[object WeakMap]",Dn="[object DataView]",sl=le(ur),al=le(cr),ll=le(dr),hl=le(fr),cl=le(pr),Ot=Io;(ur&&Ot(new ur(new ArrayBuffer(1)))!=Dn||cr&&Ot(new cr)!=En||dr&&Ot(dr.resolve())!=Mn||fr&&Ot(new fr)!=In||pr&&Ot(new pr)!=On)&&(Ot=function(t){var e=Io(t),i=e==ol?t.constructor:void 0,r=i?le(i):"";if(r)switch(r){case sl:return Dn;case al:return En;case ll:return Mn;case hl:return In;case cl:return On}return e});var ul="[object Map]",dl="[object Set]",fl=Object.prototype,pl=fl.hasOwnProperty;function Zi(t){if(t==null)return!0;if(Ya(t)&&(Va(t)||typeof t=="string"||typeof t.splice=="function"||ja(t)||Ga(t)||Xa(t)))return!t.length;var e=Ot(t);if(e==ul||e==dl)return!t.size;if(Mo(t))return!nl(t).length;for(var i in t)if(pl.call(t,i))return!1;return!0}var gl="Expected a function";function Re(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gl);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Re.Cache||Oo),i}Re.Cache=Oo;function ml(t){for(var e=[],i=1;i `:`
${r}
`).join("").replace(Sr,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:po()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))},zr={getRows:kd,sanitizeText:De,sanitizeTextOrArray:wd,hasBreaks:Bd,splitBreaks:Ad,lineBreakRegex:ze,removeScript:Bs,getUrl:Fd,evaluate:Ls,getMax:Ed,getMin:Md},j=(t,e)=>e?f(t,{s:-40,l:10}):f(t,{s:-40,l:-10}),Ii="#ffffff",Oi="#f2f2f2";let Nd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||f(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||f(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||j(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||j(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||j(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||_(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||_(this.tertiaryColor),this.lineColor=this.lineColor||_(this.background),this.arrowheadColor=this.arrowheadColor||_(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?S(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||S(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||_(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||b(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Rd=t=>{const e=new Nd;return e.calculate(t),e};let Pd=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=b(this.primaryColor,16),this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=_(this.background),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=b(_("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Be(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=S("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=S(this.sectionBkgColor,10),this.taskBorderColor=Be(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Be(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.secondBkg=b(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=b(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=b(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=f(this.primaryColor,{h:64}),this.fillType3=f(this.secondaryColor,{h:64}),this.fillType4=f(this.primaryColor,{h:-64}),this.fillType5=f(this.secondaryColor,{h:-64}),this.fillType6=f(this.primaryColor,{h:128}),this.fillType7=f(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330});for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const qd=t=>{const e=new Pd;return e.calculate(t),e};let $d=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=f(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Be(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const zd=t=>{const e=new $d;return e.calculate(t),e};let Wd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=b("#cde498",10),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.primaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.actorBorder=S(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Hd=t=>{const e=new Wd;return e.calculate(t),e};class Ud{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=b(this.contrast,55),this.background="#ffffff",this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.secondBkg=b(this.contrast,55),this.border2=this.contrast,this.actorBorder=b(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Yd=t=>{const e=new Ud;return e.calculate(t),e},wt={base:{getThemeVariables:Rd},dark:{getThemeVariables:qd},default:{getThemeVariables:zd},forest:{getThemeVariables:Hd},neutral:{getThemeVariables:Yd}},vt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Fs={...vt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:wt.default.getThemeVariables(),sequence:{...vt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...vt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...vt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...vt.pie,useWidth:984},xyChart:{...vt.xyChart,useWidth:void 0},requirement:{...vt.requirement,useWidth:void 0},gitGraph:{...vt.gitGraph,useMaxWidth:!1},sankey:{...vt.sankey,useMaxWidth:!1}},Es=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Es(t[r],"")]:[...i,e+r],[]),Vd=new Set(Es(Fs,"")),jd=Fs,mi=t=>{if(k.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>mi(e));return}for(const e of Object.keys(t)){if(k.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Vd.has(e)||t[e]==null){k.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){k.debug("sanitizing object",e),mi(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(k.debug("sanitizing css option",e),t[e]=Gd(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}k.debug("After sanitization",t)}},Gd=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)Ds(e,i,r)},Ds=(t,e,i)=>{ne[t]?k.error(`Detector with key ${t} already exists`):ne[t]={detector:e,loader:i},k.debug(`Detector with key ${t} added${i?" with loader":""}`)},Kd=t=>ne[t].loader,wr=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>wr(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=wr(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},W=wr,Zd="​",Qd={curveBasis:Ou,curveBasisClosed:Du,curveBasisOpen:Nu,curveBumpX:Mu,curveBumpY:Iu,curveBundle:Ru,curveCardinalClosed:qu,curveCardinalOpen:$u,curveCardinal:Pu,curveCatmullRomClosed:Wu,curveCatmullRomOpen:Hu,curveCatmullRom:zu,curveLinear:Eu,curveLinearClosed:Uu,curveMonotoneX:Yu,curveMonotoneY:Vu,curveNatural:ju,curveStep:Gu,curveStepAfter:Ku,curveStepBefore:Xu},Jd=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tf=function(t,e){const i=Ns(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);mi(s),r=W(r,[...s])}else r=i.args;if(!r)return;let n=Di(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},Ns=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Jd.source})(?=[}][%]{2}).* -`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),k.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Ae.exec(t))!==null;)if(r.index===Ae.lastIndex&&Ae.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return k.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ef=function(t){return t.replace(Ae,"")},rf=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function nf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Qd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Do.sanitizeUrl(i):i}const sf=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=Rs(n,e),e=n});const r=i/2;return Wr(t,r)}function lf(t){return t.length===1?t[0]:af(t)}const mo=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Wr=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Rs(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:mo((1-s)*i.x+s*n.x,5),y:mo((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},hf=(t,e,i)=>{k.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Wr(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function cf(t,e,i){const r=structuredClone(i);k.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Wr(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let _o=0;const df=()=>(_o++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_o);function ff(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nff(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},mf=function(t,e){const i=e.text.replace(zr.lineBreakRegex," "),[,r]=Ur(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},_f=Re((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=_i(`${s} `,i),c=_i(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:g}=yf(s,e,"-",i);n.push(o,...h),o=g}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=Re((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(_i(c,r)>=e){const p=l+1,h=n.length===p,g=`${c}${i}`;o.push(h?c:g),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return Hr(t,e).height}function _i(t,e){return Hr(t,e).width}const Hr=Re((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Ur(i),s=["sans-serif",r],a=t.split(zr.lineBreakRegex),l=[],c=ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const v=gf();v.text=w||Zd;const E=mf(u,v).style("font-size",o).style("font-weight",n).style("font-family",h),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class xf{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ti;const bf=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)};function Ps(t){return"str"in t}const Tf=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Ur=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qs(t,e){return Za({},t,e)}const Le={assignWithDepth:W,wrapLabel:_f,calculateTextHeight:Cf,calculateTextWidth:_i,calculateTextDimensions:Hr,cleanAndMerge:qs,detectInit:tf,detectDirective:Ns,isSubstringInArray:rf,interpolateToCurve:nf,calcLabelPosition:lf,calcCardinalityPosition:hf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:uf,generateId:df,random:pf,runFunc:sf,entityDecode:bf,insertTitle:Tf,parseFontSize:Ur,InitIDGenerator:xf},kf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},vf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},yo="10.9.3",oe=Object.freeze(jd);let K=W({},oe),$s,se=[],Fe=W({},oe);const Ni=(t,e)=>{let i=W({},t),r={};for(const n of e)Hs(n),r=W(r,n);if(i=W(i,r),r.theme&&r.theme in wt){const n=W({},$s),o=W(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in wt&&(i.themeVariables=wt[i.theme].getThemeVariables(o))}return Fe=i,Us(Fe),Fe},Sf=t=>(K=W({},oe),K=W(K,t),t.theme&&wt[t.theme]&&(K.themeVariables=wt[t.theme].getThemeVariables(t.themeVariables)),Ni(K,se),K),wf=t=>{$s=W({},t)},Bf=t=>(K=W(K,t),Ni(K,se),K),zs=()=>W({},K),Ws=t=>(Us(t),W(Fe,t),_t()),_t=()=>W({},Fe),Hs=t=>{t&&(["secure",...K.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Hs(t[e])}))},Af=t=>{mi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),se.push(t),Ni(K,se)},yi=(t=K)=>{se=[],Ni(t,se)},Lf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Co={},Ff=t=>{Co[t]||(k.warn(Lf[t]),Co[t]=!0)},Us=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ff("LAZY_LOAD_DEPRECATED")},Ys="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Mf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-BSqYziN3.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ys,diagram:t}},If={id:Ys,detector:Ef,loader:Mf},Of=If,Vs="flowchart",Df=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-BS834x_8.js");return{diagram:e}},__vite__mapDeps([4,5,6,2,3,7,8,9,10,11,12,13,14,15,16]));return{id:Vs,diagram:t}},Rf={id:Vs,detector:Df,loader:Nf},Pf=Rf,js="flowchart-v2",qf=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},$f=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-lmbQs4by.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,2,3,9,7,10,11,12,13,14,15,16]));return{id:js,diagram:t}},zf={id:js,detector:qf,loader:$f},Wf=zf,Gs="er",Hf=t=>/^\s*erDiagram/.test(t),Uf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-seY5Sb-y.js");return{diagram:e}},__vite__mapDeps([18,6,2,3,7,13,14,15]));return{id:Gs,diagram:t}},Yf={id:Gs,detector:Hf,loader:Uf},Vf=Yf,Xs="gitGraph",jf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-B5qJwgjK.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Xs,diagram:t}},Xf={id:Xs,detector:jf,loader:Gf},Kf=Xf,Ks="gantt",Zf=t=>/^\s*gantt/.test(t),Qf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-BIYXEZbj.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Ks,diagram:t}},Jf={id:Ks,detector:Zf,loader:Qf},tp=Jf,Zs="info",ep=t=>/^\s*info/.test(t),ip=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-CiEeDDYE.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Zs,diagram:t}},rp={id:Zs,detector:ep,loader:ip},Qs="pie",np=t=>/^\s*pie/.test(t),op=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-Byowwp7E.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qs,diagram:t}},sp={id:Qs,detector:np,loader:op},Js="quadrantChart",ap=t=>/^\s*quadrantChart/.test(t),lp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-CSu98yVs.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:Js,diagram:t}},hp={id:Js,detector:ap,loader:lp},cp=hp,ta="xychart",up=t=>/^\s*xychart-beta/.test(t),dp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-AH_oESFX.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:ta,diagram:t}},fp={id:ta,detector:up,loader:dp},pp=fp,ea="requirement",gp=t=>/^\s*requirement(Diagram)?/.test(t),mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-91ycfj4X.js");return{diagram:e}},__vite__mapDeps([29,6,2,3,7,13,14,15]));return{id:ea,diagram:t}},_p={id:ea,detector:gp,loader:mp},yp=_p,ia="sequence",Cp=t=>/^\s*sequenceDiagram/.test(t),xp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-CGZmNzMJ.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:ia,diagram:t}},bp={id:ia,detector:Cp,loader:xp},Tp=bp,ra="class",kp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},vp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-B-Rd6-NF.js");return{diagram:e}},__vite__mapDeps([31,32,6,2,3,7,13,14,15]));return{id:ra,diagram:t}},Sp={id:ra,detector:kp,loader:vp},wp=Sp,na="classDiagram",Bp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ap=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-BqCjzFcO.js");return{diagram:e}},__vite__mapDeps([33,32,6,2,3,9,7,10,11,12,13,14,15]));return{id:na,diagram:t}},Lp={id:na,detector:Bp,loader:Ap},Fp=Lp,oa="state",Ep=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-DGSZybvb.js");return{diagram:e}},__vite__mapDeps([34,35,6,2,3,7,13,14,15]));return{id:oa,diagram:t}},Ip={id:oa,detector:Ep,loader:Mp},Op=Ip,sa="stateDiagram",Dp=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Np=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-CAo6W-m6.js");return{diagram:e}},__vite__mapDeps([36,35,6,2,3,9,7,10,11,12,13,14,15]));return{id:sa,diagram:t}},Rp={id:sa,detector:Dp,loader:Np},Pp=Rp,aa="journey",qp=t=>/^\s*journey/.test(t),$p=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-D1bocf1Q.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:aa,diagram:t}},zp={id:aa,detector:qp,loader:$p},Wp=zp,Hp=function(t,e){for(let i of e)t.attr(i[0],i[1])},Up=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},la=function(t,e,i,r){const n=Up(e,i,r);Hp(t,n)},Yp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;k.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;k.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,k.info(`Calculated bounds: ${a}x${l}`),la(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},si={},Vp=(t,e,i)=>{let r="";return t in si&&si[t]?r=si[t](i):k.warn(`No theme found for ${t}`),` & { +`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),k.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Ae.exec(t))!==null;)if(r.index===Ae.lastIndex&&Ae.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return k.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ef=function(t){return t.replace(Ae,"")},rf=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function nf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Qd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Do.sanitizeUrl(i):i}const sf=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=Rs(n,e),e=n});const r=i/2;return Wr(t,r)}function lf(t){return t.length===1?t[0]:af(t)}const mo=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Wr=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Rs(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:mo((1-s)*i.x+s*n.x,5),y:mo((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},hf=(t,e,i)=>{k.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Wr(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function cf(t,e,i){const r=structuredClone(i);k.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Wr(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let _o=0;const df=()=>(_o++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_o);function ff(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nff(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},mf=function(t,e){const i=e.text.replace(zr.lineBreakRegex," "),[,r]=Ur(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},_f=Re((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=_i(`${s} `,i),c=_i(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:g}=yf(s,e,"-",i);n.push(o,...h),o=g}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=Re((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(_i(c,r)>=e){const p=l+1,h=n.length===p,g=`${c}${i}`;o.push(h?c:g),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return Hr(t,e).height}function _i(t,e){return Hr(t,e).width}const Hr=Re((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Ur(i),s=["sans-serif",r],a=t.split(zr.lineBreakRegex),l=[],c=ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const v=gf();v.text=w||Zd;const E=mf(u,v).style("font-size",o).style("font-weight",n).style("font-family",h),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class xf{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ti;const bf=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)};function Ps(t){return"str"in t}const Tf=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Ur=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qs(t,e){return Za({},t,e)}const Le={assignWithDepth:W,wrapLabel:_f,calculateTextHeight:Cf,calculateTextWidth:_i,calculateTextDimensions:Hr,cleanAndMerge:qs,detectInit:tf,detectDirective:Ns,isSubstringInArray:rf,interpolateToCurve:nf,calcLabelPosition:lf,calcCardinalityPosition:hf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:uf,generateId:df,random:pf,runFunc:sf,entityDecode:bf,insertTitle:Tf,parseFontSize:Ur,InitIDGenerator:xf},kf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},vf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},yo="10.9.3",oe=Object.freeze(jd);let K=W({},oe),$s,se=[],Fe=W({},oe);const Ni=(t,e)=>{let i=W({},t),r={};for(const n of e)Hs(n),r=W(r,n);if(i=W(i,r),r.theme&&r.theme in wt){const n=W({},$s),o=W(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in wt&&(i.themeVariables=wt[i.theme].getThemeVariables(o))}return Fe=i,Us(Fe),Fe},Sf=t=>(K=W({},oe),K=W(K,t),t.theme&&wt[t.theme]&&(K.themeVariables=wt[t.theme].getThemeVariables(t.themeVariables)),Ni(K,se),K),wf=t=>{$s=W({},t)},Bf=t=>(K=W(K,t),Ni(K,se),K),zs=()=>W({},K),Ws=t=>(Us(t),W(Fe,t),_t()),_t=()=>W({},Fe),Hs=t=>{t&&(["secure",...K.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Hs(t[e])}))},Af=t=>{mi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),se.push(t),Ni(K,se)},yi=(t=K)=>{se=[],Ni(t,se)},Lf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Co={},Ff=t=>{Co[t]||(k.warn(Lf[t]),Co[t]=!0)},Us=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ff("LAZY_LOAD_DEPRECATED")},Ys="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Mf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-DCoD1Ed5.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ys,diagram:t}},If={id:Ys,detector:Ef,loader:Mf},Of=If,Vs="flowchart",Df=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-BQR4i0rK.js");return{diagram:e}},__vite__mapDeps([4,5,6,2,3,7,8,9,10,11,12,13,14,15,16]));return{id:Vs,diagram:t}},Rf={id:Vs,detector:Df,loader:Nf},Pf=Rf,js="flowchart-v2",qf=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},$f=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-Bs652uf5.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,2,3,9,7,10,11,12,13,14,15,16]));return{id:js,diagram:t}},zf={id:js,detector:qf,loader:$f},Wf=zf,Gs="er",Hf=t=>/^\s*erDiagram/.test(t),Uf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-UFcxwGGb.js");return{diagram:e}},__vite__mapDeps([18,6,2,3,7,13,14,15]));return{id:Gs,diagram:t}},Yf={id:Gs,detector:Hf,loader:Uf},Vf=Yf,Xs="gitGraph",jf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-Cbit1_Nq.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Xs,diagram:t}},Xf={id:Xs,detector:jf,loader:Gf},Kf=Xf,Ks="gantt",Zf=t=>/^\s*gantt/.test(t),Qf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-CL2W0VK9.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Ks,diagram:t}},Jf={id:Ks,detector:Zf,loader:Qf},tp=Jf,Zs="info",ep=t=>/^\s*info/.test(t),ip=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-_WLEWeGB.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Zs,diagram:t}},rp={id:Zs,detector:ep,loader:ip},Qs="pie",np=t=>/^\s*pie/.test(t),op=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-BXxc3qFT.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qs,diagram:t}},sp={id:Qs,detector:np,loader:op},Js="quadrantChart",ap=t=>/^\s*quadrantChart/.test(t),lp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-E02pNj4k.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:Js,diagram:t}},hp={id:Js,detector:ap,loader:lp},cp=hp,ta="xychart",up=t=>/^\s*xychart-beta/.test(t),dp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-Dt8EMtG3.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:ta,diagram:t}},fp={id:ta,detector:up,loader:dp},pp=fp,ea="requirement",gp=t=>/^\s*requirement(Diagram)?/.test(t),mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-CDvJoZhV.js");return{diagram:e}},__vite__mapDeps([29,6,2,3,7,13,14,15]));return{id:ea,diagram:t}},_p={id:ea,detector:gp,loader:mp},yp=_p,ia="sequence",Cp=t=>/^\s*sequenceDiagram/.test(t),xp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-ijolM7hd.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:ia,diagram:t}},bp={id:ia,detector:Cp,loader:xp},Tp=bp,ra="class",kp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},vp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-BdU7mERo.js");return{diagram:e}},__vite__mapDeps([31,32,6,2,3,7,13,14,15]));return{id:ra,diagram:t}},Sp={id:ra,detector:kp,loader:vp},wp=Sp,na="classDiagram",Bp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ap=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-CSFL06mI.js");return{diagram:e}},__vite__mapDeps([33,32,6,2,3,9,7,10,11,12,13,14,15]));return{id:na,diagram:t}},Lp={id:na,detector:Bp,loader:Ap},Fp=Lp,oa="state",Ep=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-DdZTtkcS.js");return{diagram:e}},__vite__mapDeps([34,35,6,2,3,7,13,14,15]));return{id:oa,diagram:t}},Ip={id:oa,detector:Ep,loader:Mp},Op=Ip,sa="stateDiagram",Dp=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Np=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-CY4CBQtD.js");return{diagram:e}},__vite__mapDeps([36,35,6,2,3,9,7,10,11,12,13,14,15]));return{id:sa,diagram:t}},Rp={id:sa,detector:Dp,loader:Np},Pp=Rp,aa="journey",qp=t=>/^\s*journey/.test(t),$p=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-Bvmnb9ly.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:aa,diagram:t}},zp={id:aa,detector:qp,loader:$p},Wp=zp,Hp=function(t,e){for(let i of e)t.attr(i[0],i[1])},Up=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},la=function(t,e,i,r){const n=Up(e,i,r);Hp(t,n)},Yp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;k.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;k.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,k.info(`Calculated bounds: ${a}x${l}`),la(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},si={},Vp=(t,e,i)=>{let r="";return t in si&&si[t]?r=si[t](i):k.warn(`No theme found for ${t}`),` & { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} @@ -62,7 +62,7 @@ import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h ${e} `},jp=(t,e)=>{e!==void 0&&(si[t]=e)},Gp=Vp;let Yr="",Vr="",jr="";const Gr=t=>De(t,_t()),Xp=()=>{Yr="",jr="",Vr=""},Kp=t=>{Yr=Gr(t).replace(/^\s+/g,"")},Zp=()=>Yr,Qp=t=>{jr=Gr(t).replace(/\n\s+/g,` `)},Jp=()=>jr,tg=t=>{Vr=Gr(t)},eg=()=>Vr,ig=Object.freeze(Object.defineProperty({__proto__:null,clear:Xp,getAccDescription:Jp,getAccTitle:Zp,getDiagramTitle:eg,setAccDescription:Qp,setAccTitle:Kp,setDiagramTitle:tg},Symbol.toStringTag,{value:"Module"})),rg=k,ng=$r,Xr=_t,A_=Ws,L_=oe,og=t=>De(t,Xr()),sg=Yp,ag=()=>ig,Ci={},xi=(t,e,i)=>{var r;if(Ci[t])throw new Error(`Diagram ${t} already registered.`);Ci[t]=e,i&&Ds(t,i),jp(t,e.styles),(r=e.injectUtils)==null||r.call(e,rg,ng,Xr,og,sg,ag(),()=>{})},Kr=t=>{if(t in Ci)return Ci[t];throw new lg(t)};class lg extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const hg=t=>{var e;const{securityLevel:i}=Xr();let r=ot("body");if(i==="sandbox"){const s=((e=ot(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=ot(s.body)}return r.select(`#${t}`)},cg=(t,e,i)=>{k.debug(`rendering svg for syntax error -`);const r=hg(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),la(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},ha={draw:cg},ug=ha,dg={db:{},renderer:ha,parser:{parser:{yy:{}},parse:()=>{}}},fg=dg,ca="flowchart-elk",pg=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-DPls5GBE.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ca,diagram:t}},mg={id:ca,detector:pg,loader:gg},_g=mg,ua="timeline",yg=t=>/^\s*timeline/.test(t),Cg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-B6W68VWC.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:ua,diagram:t}},xg={id:ua,detector:yg,loader:Cg},bg=xg,da="mindmap",Tg=t=>/^\s*mindmap/.test(t),kg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-BTWakWr7.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:da,diagram:t}},vg={id:da,detector:Tg,loader:kg},Sg=vg,fa="sankey",wg=t=>/^\s*sankey-beta/.test(t),Bg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-BLCglvL0.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:fa,diagram:t}},Ag={id:fa,detector:wg,loader:Bg},Lg=Ag,pa="block",Fg=t=>/^\s*block-beta/.test(t),Eg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-Dy_KKNjq.js");return{diagram:e}},__vite__mapDeps([43,10,6,2,3,11,12,13,14,15,26,22,16,42]));return{id:pa,diagram:t}},Mg={id:pa,detector:Fg,loader:Eg},Ig=Mg;let xo=!1;const Zr=()=>{xo||(xo=!0,xi("error",fg,t=>t.toLowerCase().trim()==="error"),xi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Os(Of,Fp,wp,Vf,tp,rp,sp,yp,Tp,_g,Wf,Pf,Sg,bg,Kf,Pp,Op,Wp,cp,Lg,pp,Ig))};class ga{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=kf(e),this.text+=` +`);const r=hg(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),la(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},ha={draw:cg},ug=ha,dg={db:{},renderer:ha,parser:{parser:{yy:{}},parse:()=>{}}},fg=dg,ca="flowchart-elk",pg=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-Da4DL3XI.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ca,diagram:t}},mg={id:ca,detector:pg,loader:gg},_g=mg,ua="timeline",yg=t=>/^\s*timeline/.test(t),Cg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-CtFMoSI1.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:ua,diagram:t}},xg={id:ua,detector:yg,loader:Cg},bg=xg,da="mindmap",Tg=t=>/^\s*mindmap/.test(t),kg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-BloMY9tO.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:da,diagram:t}},vg={id:da,detector:Tg,loader:kg},Sg=vg,fa="sankey",wg=t=>/^\s*sankey-beta/.test(t),Bg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-DOdrz2qg.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:fa,diagram:t}},Ag={id:fa,detector:wg,loader:Bg},Lg=Ag,pa="block",Fg=t=>/^\s*block-beta/.test(t),Eg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-CH60GUfO.js");return{diagram:e}},__vite__mapDeps([43,10,6,2,3,11,12,13,14,15,26,22,16,42]));return{id:pa,diagram:t}},Mg={id:pa,detector:Fg,loader:Eg},Ig=Mg;let xo=!1;const Zr=()=>{xo||(xo=!0,xi("error",fg,t=>t.toLowerCase().trim()==="error"),xi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Os(Of,Fp,wp,Vf,tp,rp,sp,yp,Tp,_g,Wf,Pf,Sg,bg,Kf,Pp,Op,Wp,cp,Lg,pp,Ig))};class ga{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=kf(e),this.text+=` `;const r=_t();try{this.type=Di(e,r)}catch(o){this.type="error",this.detectError=o}const n=Kr(this.type);k.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=_t();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Og=async(t,e={})=>{const i=Di(t,_t());try{Kr(i)}catch{const n=Kd(i);if(!n)throw new Is(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();xi(o,s)}return new ga(t,e)};let bo=[];const Dg=()=>{bo.forEach(t=>{t()}),bo=[]},Ng="graphics-document document";function Rg(t,e){t.attr("role",Ng),e!==""&&t.attr("aria-roledescription",e)}function Pg(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const qg=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ma(t){return typeof t>"u"||t===null}function $g(t){return typeof t=="object"&&t!==null}function zg(t){return Array.isArray(t)?t:ma(t)?[]:[t]}function Wg(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;ia&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function ar(t,e){return V.repeat(" ",e-t.length)+t}function Zg(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,p=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=sr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),p),a=V.repeat(" ",e.indent)+ar((t.line-l+1).toString(),u)+" | "+c.str+` diff --git a/starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-BTWakWr7.js b/starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-BloMY9tO.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-BTWakWr7.js rename to starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-BloMY9tO.js index 7824e261c8..6ebe51890d 100644 --- a/starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-BTWakWr7.js +++ b/starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-BloMY9tO.js @@ -1,4 +1,4 @@ -import{l as Sr,c as Ai,N as Pu,t as Nu,P as hn,d as dn,h as Mu,a6 as ku,a7 as Bu,a8 as Fu,T as Gu}from"./mermaid.core-BRpiNjs-.js";import{S as Li,g as zu}from"./index-DFpvp1rn.js";import{a as _u}from"./createText-2e5e7dd3-_UBRrGW4.js";function We(t){"@babel/helpers - typeof";return We=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(t)}function fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vu(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(l){throw l},f:n}}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 i=!0,s=!1,o;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}}}var $e=typeof window>"u"?null:window,is=$e?$e.navigator:null;$e&&$e.document;var qu=We(""),Lo=We({}),Ku=We(function(){}),Zu=typeof HTMLElement>"u"?"undefined":We(HTMLElement),Oa=function(e){return e&&e.instanceString&&Ve(e.instanceString)?e.instanceString():null},ce=function(e){return e!=null&&We(e)==qu},Ve=function(e){return e!=null&&We(e)===Ku},Me=function(e){return!xt(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Ae=function(e){return e!=null&&We(e)===Lo&&!Me(e)&&e.constructor===Object},Qu=function(e){return e!=null&&We(e)===Lo},re=function(e){return e!=null&&We(e)===We(1)&&!isNaN(e)},Ju=function(e){return re(e)&&Math.floor(e)===e},gn=function(e){if(Zu!=="undefined")return e!=null&&e instanceof HTMLElement},xt=function(e){return Pa(e)||Ro(e)},Pa=function(e){return Oa(e)==="collection"&&e._private.single},Ro=function(e){return Oa(e)==="collection"&&!e._private.single},Ii=function(e){return Oa(e)==="core"},Io=function(e){return Oa(e)==="stylesheet"},ju=function(e){return Oa(e)==="event"},ar=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},ef=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},tf=function(e){return Ae(e)&&re(e.x1)&&re(e.x2)&&re(e.y1)&&re(e.y2)},rf=function(e){return Qu(e)&&Ve(e.then)},af=function(){return is&&is.userAgent.match(/msie|trident|edge/i)},wa=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},cf=function(e,r){return-1*Po(e,r)},he=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(p-=1),p<1/6?d+(g-d)*6*p:p<1/2?g:p<2/3?d+(g-d)*(2/3-p)*6:d}var c=new RegExp("^"+of+"$").exec(e);if(c){if(a=parseInt(c[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(c[2]),n<0||n>100||(n=n/100,i=parseFloat(c[3]),i<0||i>100)||(i=i/100,s=c[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,v=2*i-h;o=Math.round(255*f(v,h,a+1/3)),l=Math.round(255*f(v,h,a)),u=Math.round(255*f(v,h,a-1/3))}r=[o,l,u,s]}return r},df=function(e){var r,a=new RegExp("^"+nf+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},gf=function(e){return pf[e.toLowerCase()]},No=function(e){return(Me(e)?e:null)||gf(e)||vf(e)||df(e)||hf(e)},pf={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Mo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i=e||w<0||c&&x>=i}function y(){var D=Xn();if(p(D))return b(D);o=setTimeout(y,g(D))}function b(D){return o=void 0,h&&a?v(D):(a=n=void 0,s)}function m(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function E(){return o===void 0?s:b(Xn())}function C(){var D=Xn(),w=p(D);if(a=arguments,n=this,l=D,w){if(o===void 0)return d(l);if(c)return clearTimeout(o),o=setTimeout(y,e),v(l)}return o===void 0&&(o=setTimeout(y,e)),s}return C.cancel=m,C.flush=E,C}var Ma=ec,Wn=$e?$e.performance:null,Go=Wn&&Wn.now?function(){return Wn.now()}:function(){return Date.now()},tc=function(){if($e){if($e.requestAnimationFrame)return function(t){$e.requestAnimationFrame(t)};if($e.mozRequestAnimationFrame)return function(t){$e.mozRequestAnimationFrame(t)};if($e.webkitRequestAnimationFrame)return function(t){$e.webkitRequestAnimationFrame(t)};if($e.msRequestAnimationFrame)return function(t){$e.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(Go())},1e3/60)}}(),pn=function(e){return tc(e)},Xt=Go,kr=9261,zo=65599,va=5381,_o=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr,a=r,n;n=e.next(),!n.done;)a=a*zo+n.value|0;return a},Ea=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr;return r*zo+e|0},xa=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:va;return(r<<5)+r+e|0},rc=function(e,r){return e*2097152+r},Qt=function(e){return e[0]*2097152+e[1]},Ya=function(e,r){return[Ea(e[0],r[0]),xa(e[1],r[1])]},ac=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0;n--)e[n]===r&&e.splice(n,1)},Mi=function(e){e.splice(0,e.length)},fc=function(e,r){for(var a=0;a"u"?"undefined":We(Set))!==vc?Set:hc,Rn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Ii(e)){_e("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){_e("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Xr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Me(r.classes)?u=r.classes:ce(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,c=u.length;fb?1:0},f=function(y,b,m,E,C){var D;if(m==null&&(m=0),C==null&&(C=a),m<0)throw new Error("lo must be non-negative");for(E==null&&(E=y.length);mS;0<=S?T++:T--)x.push(T);return x}).apply(this).reverse(),w=[],E=0,C=D.length;EA;0<=A?++x:--x)L.push(s(y,m));return L},g=function(y,b,m,E){var C,D,w;for(E==null&&(E=a),C=y[m];m>b;){if(w=m-1>>1,D=y[w],E(C,D)<0){y[m]=D,m=w;continue}break}return y[m]=C},p=function(y,b,m){var E,C,D,w,x;for(m==null&&(m=a),C=y.length,x=b,D=y[b],E=2*b+1;E0;){var D=b.pop(),w=p(D),x=D.id();if(h[x]=w,w!==1/0)for(var T=D.neighborhood().intersect(d),S=0;S0)for(M.unshift(k);c[z];){var F=c[z];M.unshift(F.edge),M.unshift(F.node),B=F.node,z=B.id()}return o.spawn(M)}}}},yc={kruskal:function(e){e=e||function(m){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(E){for(var C=0;C0;){if(C(),w++,E===f){for(var x=[],T=i,S=f,A=y[S];x.unshift(T),A!=null&&x.unshift(A),T=p[S],T!=null;)S=T.id(),A=y[S];return{found:!0,distance:c[E],path:this.spawn(x),steps:w}}v[E]=!0;for(var L=m._private.edges,I=0;IA&&(d[S]=A,b[S]=T,m[S]=C),!i){var L=T*f+x;!i&&d[L]>A&&(d[L]=A,b[L]=x,m[L]=C)}}}for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:s,pe=m(ue),ye=[],de=pe;;){if(de==null)return r.spawn();var me=b(de),xe=me.edge,De=me.pred;if(ye.unshift(de[0]),de.same(le)&&ye.length>0)break;xe!=null&&ye.unshift(xe),de=De}return l.spawn(ye)},D=0;D=0;f--){var c=u[f],h=c[1],v=c[2];(r[h]===o&&r[v]===l||r[h]===l&&r[v]===o)&&u.splice(f,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*r.length);r=Dc(i,e,r),a--}return r},Sc={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(M){return M.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Cc);if(i<2){_e("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(h,v){return h-v});var f=e.length,c=Math.floor(f/2);return f%2!==0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},Pc=function(e){return Math.PI*e/180},$a=function(e,r){return Math.atan2(r,e)-Math.PI/2},ki=Math.log2||function(t){return Math.log(t)/Math.log(2)},Wo=function(e){return e>0?1:e<0?-1:0},Er=function(e,r){return Math.sqrt(gr(e,r))},gr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Nc=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},kc=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Bc=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Fc=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},qo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Gc=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},an=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},nn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=je(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},hs=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Bi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Yr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},zc=function(e,r){return Yr(e,r.x,r.y)},Ko=function(e,r){return Yr(e,r.x1,r.y1)&&Yr(e,r.x2,r.y2)},Zo=function(e,r,a,n,i,s,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?xr(i,s):l,f=i/2,c=s/2;u=Math.min(u,f,c);var h=u!==f,v=u!==c,d;if(h){var g=a-f+u-o,p=n-c-o,y=a+f-u+o,b=p;if(d=er(e,r,a,n,g,p,y,b,!1),d.length>0)return d}if(v){var m=a+f+o,E=n-c+u-o,C=m,D=n+c-u+o;if(d=er(e,r,a,n,m,E,C,D,!1),d.length>0)return d}if(h){var w=a-f+u-o,x=n+c+o,T=a+f-u+o,S=x;if(d=er(e,r,a,n,w,x,T,S,!1),d.length>0)return d}if(v){var A=a-f-o,L=n-c+u-o,I=A,R=n+c-u+o;if(d=er(e,r,a,n,A,L,I,R,!1),d.length>0)return d}var P;{var N=a-f+u,k=n-c+u;if(P=ha(e,r,a,n,N,k,u+o),P.length>0&&P[0]<=N&&P[1]<=k)return[P[0],P[1]]}{var M=a+f-u,B=n-c+u;if(P=ha(e,r,a,n,M,B,u+o),P.length>0&&P[0]>=M&&P[1]<=B)return[P[0],P[1]]}{var z=a+f-u,F=n+c-u;if(P=ha(e,r,a,n,z,F,u+o),P.length>0&&P[0]>=z&&P[1]>=F)return[P[0],P[1]]}{var G=a-f+u,H=n+c-u;if(P=ha(e,r,a,n,G,H,u+o),P.length>0&&P[0]<=G&&P[1]>=H)return[P[0],P[1]]}return[]},_c=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),c=Math.min(n,s),h=Math.max(n,s);return u-l<=e&&e<=f+l&&c-l<=r&&r<=h+l},Vc=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ef.x2||rf.y2)},Uc=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},Yc=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,c,h,v,d;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,v=r/3,o>0){c=u+Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),h=u-Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-v+c+h,v+=(c+h)/2,i[4]=i[2]=-v,v=Math.sqrt(3)*(-h+c)/2,i[3]=v,i[5]=-v;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-v+2*d,i[4]=i[2]=-(d+v);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),d=2*Math.sqrt(l),i[0]=-v+d*Math.cos(f/3),i[2]=-v+d*Math.cos((f+2*Math.PI)/3),i[4]=-v+d*Math.cos((f+4*Math.PI)/3)},$c=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,c=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,h=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,v=[];Yc(u,f,c,h,v);for(var d=1e-7,g=[],p=0;p<6;p+=2)Math.abs(v[p+1])=0&&v[p]<=1&&g.push(v[p]);g.push(1),g.push(0);for(var y=-1,b,m,E,C=0;C=0?Eu?(e-i)*(e-i)+(r-s)*(r-s):f-h},pt=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},Wt=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),c;l[0]!=null?(c=Math.atan(l[1]/l[0]),l[0]<0?c=c+Math.PI/2:c=-c-Math.PI/2):c=l;for(var h=Math.cos(-c),v=Math.sin(-c),d=0;d0){var p=bn(f,-u);g=mn(p)}else g=f;return pt(e,r,g)},Xc=function(e,r,a,n,i,s,o,l){for(var u=new Array(a.length*2),f=0;f=0&&p<=1&&b.push(p),y>=0&&y<=1&&b.push(y),b.length===0)return[];var m=b[0]*l[0]+e,E=b[0]*l[1]+r;if(b.length>1){if(b[0]==b[1])return[m,E];var C=b[1]*l[0]+e,D=b[1]*l[1]+r;return[m,E,C,D]}else return[m,E]},Kn=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},er=function(e,r,a,n,i,s,o,l,u){var f=e-i,c=a-e,h=o-i,v=r-s,d=n-r,g=l-s,p=h*v-g*f,y=c*v-d*f,b=g*c-h*d;if(b!==0){var m=p/b,E=y/b,C=.001,D=0-C,w=1+C;return D<=m&&m<=w&&D<=E&&E<=w?[e+m*c,r+m*d]:u?[e+m*c,r+m*d]:[]}else return p===0||y===0?Kn(e,a,o)===o?[o,l]:Kn(e,a,i)===i?[i,s]:Kn(i,o,a)===a?[a,n]:[]:[]},Da=function(e,r,a,n,i,s,o,l){var u=[],f,c=new Array(a.length),h=!0;s==null&&(h=!1);var v;if(h){for(var d=0;d0){var g=bn(c,-l);v=mn(g)}else v=c}else v=a;for(var p,y,b,m,E=0;E2){for(var d=[f[0],f[1]],g=Math.pow(d[0]-e,2)+Math.pow(d[1]-r,2),p=1;pf&&(f=E)},get:function(m){return u[m]}},h=0;h0?N=P.edgesTo(R)[0]:N=R.edgesTo(P)[0];var k=n(N);R=R.id(),x[R]>x[L]+k&&(x[R]=x[L]+k,T.nodes.indexOf(R)<0?T.push(R):T.updateItem(R),w[R]=0,D[R]=[]),x[R]==x[L]+k&&(w[R]=w[R]+w[L],D[R].push(L))}else for(var M=0;M0;){for(var G=C.pop(),H=0;H0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},lv=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:cv,o=n,l,u,f=0;f=2?ia(e,r,a,0,ms,vv):ia(e,r,a,0,ys)},squaredEuclidean:function(e,r,a){return ia(e,r,a,0,ms)},manhattan:function(e,r,a){return ia(e,r,a,0,ys)},max:function(e,r,a){return ia(e,r,a,-1/0,hv)}};$r["squared-euclidean"]=$r.squaredEuclidean;$r.squaredeuclidean=$r.squaredEuclidean;function On(t,e,r,a,n,i){var s;return Ve(t)?s=t:s=$r[t]||$r.euclidean,e===0&&Ve(t)?s(n,i):s(e,r,a,n,i)}var dv=et({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Gi=function(e){return dv(e)},wn=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(c){return a[c]}:function(c){return n[c](a)},l=function(h){return n[h](r)},u=a,f=r;return On(e,n.length,o,l,u,f)},Zn=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1}return!0},yv=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var c=0;c=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],g=r[n[s]],p;i.mode==="dendrogram"?p={left:d,right:g,key:d.key}:p={value:d.value.concat(g.value),key:d.key},e[d.index]=p,e.splice(g.index,1),r[d.key]=p;for(var y=0;ya[g.key][b.key]&&(l=a[g.key][b.key])):i.linkage==="max"?(l=a[d.key][b.key],a[d.key][b.key]0&&n.push(i);return n},Cs=function(e,r,a){for(var n=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;fu&&(l=f,u=c)}a[i]=s[l]}return n=Cs(e,r,a),n},Ds=function(e){for(var r=this.cy(),a=this.nodes(),n=Ov(e),i={},s=0;s=A?(L=A,A=R,I=P):R>L&&(L=R);for(var N=0;N0?1:0;w[T%n.minIterations*o+G]=H,F+=H}if(F>0&&(T>=n.minIterations-1||T==n.maxIterations-1)){for(var X=0,K=0;K1||D>1)&&(o=!0),c[m]=[],b.outgoers().forEach(function(x){x.isEdge()&&c[m].push(x.id())})}else h[m]=[void 0,b.target().id()]}):s.forEach(function(b){var m=b.id();if(b.isNode()){var E=b.degree(!0);E%2&&(l?u?o=!0:u=m:l=m),c[m]=[],b.connectedEdges().forEach(function(C){return c[m].push(C.id())})}else h[m]=[b.source().id(),b.target().id()]});var v={found:!1,trail:void 0};if(o)return v;if(u&&l)if(i){if(f&&u!=f)return v;f=u}else{if(f&&u!=f&&l!=f)return v;f||(f=u)}else f||(f=s[0].id());var d=function(m){for(var E=m,C=[m],D,w,x;c[E].length;)D=c[E].shift(),w=h[D][0],x=h[D][1],E!=x?(c[x]=c[x].filter(function(T){return T!=D}),E=x):!i&&E!=w&&(c[w]=c[w].filter(function(T){return T!=D}),E=w),C.unshift(D),C.unshift(E);return C},g=[],p=[];for(p=d(f);p.length!=1;)c[p[0]].length==0?(g.unshift(s.getElementById(p.shift())),g.unshift(s.getElementById(p.shift()))):p=d(p.shift()).concat(p);g.unshift(s.getElementById(p.shift()));for(var y in c)if(c[y].length)return v;return v.found=!0,v.trail=this.spawn(g,!0),v}},Wa=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(h,v){for(var d=s.length-1,g=[],p=e.spawn();s[d].x!=h||s[d].y!=v;)g.push(s.pop().edge),d--;g.push(s.pop().edge),g.forEach(function(y){var b=y.connectedNodes().intersection(e);p.merge(y),b.forEach(function(m){var E=m.id(),C=m.connectedEdges().intersection(e);p.merge(m),r[E].cutVertex?p.merge(C.filter(function(D){return D.isLoop()})):p.merge(C)})}),i.push(p)},u=function c(h,v,d){h===d&&(n+=1),r[v]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(v).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(v)));else{var p,y,b,m;g.forEach(function(E){p=E.source().id(),y=E.target().id(),b=p===v?y:p,b!==d&&(m=E.id(),o[m]||(o[m]=!0,s.push({x:v,y:b,edge:E})),b in r?r[v].low=Math.min(r[v].low,r[b].id):(c(h,b,v),r[v].low=Math.min(r[v].low,r[b].low),r[v].id<=r[b].low&&(r[v].cutVertex=!0,l(v,b))))})}};e.forEach(function(c){if(c.isNode()){var h=c.id();h in r||(n=0,u(h,h),r[h].cutVertex=n>1)}});var f=Object.keys(r).filter(function(c){return r[c].cutVertex}).map(function(c){return e.getElementById(c)});return{cut:e.spawn(f),components:i}},zv={hopcroftTarjanBiconnected:Wa,htbc:Wa,htb:Wa,hopcroftTarjanBiconnectedComponents:Wa},qa=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(g){var p=g.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var c=e.spawn();;){var h=i.pop();if(c.merge(e.getElementById(h)),r[h].low=r[u].index,r[h].explored=!0,h===u)break}var v=c.edgesWith(c),d=c.merge(v);n.push(d),s=s.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},_v={tarjanStronglyConnected:qa,tsc:qa,tscc:qa,tarjanStronglyConnectedComponents:qa},al={};[Ta,pc,yc,bc,Ec,Tc,Sc,Qc,zr,_r,vi,fv,Tv,Rv,Bv,Gv,zv,_v].forEach(function(t){he(al,t)});/*! diff --git a/starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-Byowwp7E.js b/starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-BXxc3qFT.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-Byowwp7E.js rename to starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-BXxc3qFT.js index e1cd29d15d..00f55a3228 100644 --- a/starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-Byowwp7E.js +++ b/starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-BXxc3qFT.js @@ -1,4 +1,4 @@ -import{O as H,P as at,A as lt,B as ot,s as ct,g as ht,b as ut,a as yt,C as ft,d as pt,c as et,l as it,Q as gt,N as dt,T as mt,i as _t}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";import{a as tt}from"./arc-Cb_wyWgX.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import{a as kt}from"./array-BKyUJesY.js";import{c as F}from"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";function vt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/d,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-d*b)/T:0;l0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,$=null,y):u},y.sort=function(a){return arguments.length?($=a,u=null,y):$},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:$,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Q=h.yylloc;s.push(Q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`: +import{O as H,P as at,A as lt,B as ot,s as ct,g as ht,b as ut,a as yt,C as ft,d as pt,c as et,l as it,Q as gt,N as dt,T as mt,i as _t}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";import{a as tt}from"./arc-BVZmYbDK.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import{a as kt}from"./array-BKyUJesY.js";import{c as F}from"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";function vt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/d,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-d*b)/T:0;l0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,$=null,y):u},y.sort=function(a){return arguments.length?($=a,u=null,y):$},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:$,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Q=h.yylloc;s.push(Q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`: `+h.showPosition()+` Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":q="Parse error on line "+(f+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(q,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:Q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,V=h.yyleng,x=h.yytext,f=h.yylineno,Q=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],z.$=o[o.length-D],z._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(z._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(z,[x,V,f,N.yy,S[1],o,s].concat(U)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(z.$),s.push(z._$),X=P[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/quadrantDiagram-120e2f19-CSu98yVs.js b/starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-E02pNj4k.js similarity index 99% rename from deploy/server/notebase/assets/quadrantDiagram-120e2f19-CSu98yVs.js rename to starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-E02pNj4k.js index 61e8c1ce4c..6d89b2f039 100644 --- a/deploy/server/notebase/assets/quadrantDiagram-120e2f19-CSu98yVs.js +++ b/starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-E02pNj4k.js @@ -1,4 +1,4 @@ -import{U as vt,c as yt,P as D,l as ot,s as Lt,g as Ct,A as zt,B as bt,a as Et,b as Dt,C as It,h as gt,i as Bt,d as wt}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";import{l as mt}from"./linear-DCGWotbG.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: +import{U as vt,c as yt,P as D,l as ot,s as Lt,g as Ct,A as zt,B as bt,a as Et,b as Dt,C as It,h as gt,i as Bt,d as wt}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";import{l as mt}from"./linear-91jlWj_6.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: `+E.showPosition()+` Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:lt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:l.push(W),q.push(E.yytext),a.push(E.yylloc),l.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(l=l.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),l.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),_t=et[l[l.length-2]][l[l.length-1]],l.push(_t);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/requirementDiagram-deff3bca-91ycfj4X.js b/starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-CDvJoZhV.js similarity index 98% rename from deploy/server/notebase/assets/requirementDiagram-deff3bca-91ycfj4X.js rename to starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-CDvJoZhV.js index 04d92ab36d..354b4ff51e 100644 --- a/deploy/server/notebase/assets/requirementDiagram-deff3bca-91ycfj4X.js +++ b/starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-CDvJoZhV.js @@ -1,4 +1,4 @@ -import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,C as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-BRpiNjs-.js";import{G as Ue}from"./graph-Bqo8LFRO.js";import{l as Be}from"./layout-e9igZ_Vb.js";import"./index-DFpvp1rn.js";import{l as Qe}from"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: +import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,C as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-CLEyumap.js";import{G as Ue}from"./graph-W254zRQ0.js";import{l as Be}from"./layout-C3MVMtGC.js";import"./index-hnRSc5ud.js";import{l as Qe}from"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: `+E.showPosition()+` Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,me=E.yyleng,_=E.yytext,Z=E.yylineno,se=E.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/sankeyDiagram-04a897e0-BLCglvL0.js b/starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-DOdrz2qg.js similarity index 99% rename from deploy/server/notebase/assets/sankeyDiagram-04a897e0-BLCglvL0.js rename to starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-DOdrz2qg.js index d8852b0edb..270b52eba6 100644 --- a/deploy/server/notebase/assets/sankeyDiagram-04a897e0-BLCglvL0.js +++ b/starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-DOdrz2qg.js @@ -1,4 +1,4 @@ -import{c as rt,g as mt,s as kt,a as _t,b as xt,B as vt,A as bt,C as wt,j as St,a4 as Lt,h as G,t as Et}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;rl.length)-1)),j(f);for(let l=0;l0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*p-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function g(){var p,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`: +import{c as rt,g as mt,s as kt,a as _t,b as xt,B as vt,A as bt,C as wt,j as St,a4 as Lt,h as G,t as Et}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;rl.length)-1)),j(f);for(let l=0;l0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*p-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function g(){var p,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`: `+S.showPosition()+` Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},P&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(j)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/sequenceDiagram-704730f1-CGZmNzMJ.js b/starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-ijolM7hd.js similarity index 99% rename from deploy/server/notebase/assets/sequenceDiagram-704730f1-CGZmNzMJ.js rename to starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-ijolM7hd.js index 217637b8bc..09de8120b0 100644 --- a/deploy/server/notebase/assets/sequenceDiagram-704730f1-CGZmNzMJ.js +++ b/starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-ijolM7hd.js @@ -1,4 +1,4 @@ -import{g as we,B as ve,A as _e,c as st,s as $t,b as ke,a as Pe,C as Le,l as X,d as At,j as v,e as Ie,h as Lt,i as Ae,y as B,$ as nt,a0 as wt,m as te,r as ee,V as Bt,T as se,a1 as Ne}from"./mermaid.core-BRpiNjs-.js";import{d as Se,a as Me,g as Nt,b as zt,c as Re,e as Ce}from"./svgDrawCommon-08f97a94-BxUoIeIU.js";import"./index-DFpvp1rn.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`: +import{g as we,B as ve,A as _e,c as st,s as $t,b as ke,a as Pe,C as Le,l as X,d as At,j as v,e as Ie,h as Lt,i as Ae,y as B,$ as nt,a0 as wt,m as te,r as ee,V as Bt,T as se,a1 as Ne}from"./mermaid.core-CLEyumap.js";import{d as Se,a as Me,g as Nt,b as zt,c as Re,e as Ce}from"./svgDrawCommon-08f97a94-CmoRP8WR.js";import"./index-hnRSc5ud.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`: `+Y.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Ot="Parse error on line "+(_t+1)+": Unexpected "+(G==Jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Ot,{text:Y.match,token:this.terminals_[G]||G,line:Y.yylineno,loc:Dt,expected:Pt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ut+", token: "+G);switch(et[0]){case 1:L.push(G),M.push(Y.yytext),h.push(Y.yylloc),L.push(et[1]),G=null,Xt=Y.yyleng,d=Y.yytext,_t=Y.yylineno,Dt=Y.yylloc;break;case 2:if(ct=this.productions_[et[1]][1],yt.$=M[M.length-ct],yt._$={first_line:h[h.length-(ct||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(ct||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(yt._$.range=[h[h.length-(ct||1)].range[0],h[h.length-1].range[1]]),Vt=this.performAction.apply(yt,[d,Xt,_t,pt.yy,et[1],M,h].concat(be)),typeof Vt<"u")return Vt;ct&&(L=L.slice(0,-1*ct*2),M=M.slice(0,-1*ct),h=h.slice(0,-1*ct)),L.push(this.productions_[et[1]][0]),M.push(yt.$),h.push(yt._$),Zt=Et[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},ye=function(){var dt={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-DGSZybvb.js b/starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-DdZTtkcS.js similarity index 97% rename from starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-DGSZybvb.js rename to starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-DdZTtkcS.js index 3e5a737b4d..6d58e89690 100644 --- a/starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-DGSZybvb.js +++ b/starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-DdZTtkcS.js @@ -1 +1 @@ -import{p as P,d as N,s as W}from"./styles-6aaf32cf-BPvqRBVt.js";import{c as t,h as H,l as b,i as R,j as T,D as v,y as U}from"./mermaid.core-BRpiNjs-.js";import{G as C}from"./graph-Bqo8LFRO.js";import{l as F}from"./layout-e9igZ_Vb.js";import"./index-DFpvp1rn.js";import{l as $}from"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const D=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),D(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},lt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{lt as diagram}; +import{p as P,d as N,s as W}from"./styles-6aaf32cf-DTPfI4UM.js";import{c as t,h as H,l as b,i as R,j as T,D as v,y as U}from"./mermaid.core-CLEyumap.js";import{G as C}from"./graph-W254zRQ0.js";import{l as F}from"./layout-C3MVMtGC.js";import"./index-hnRSc5ud.js";import{l as $}from"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const D=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),D(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},lt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{lt as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CAo6W-m6.js b/starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CY4CBQtD.js similarity index 90% rename from starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CAo6W-m6.js rename to starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CY4CBQtD.js index 1c6983c751..273ccf7f76 100644 --- a/starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CAo6W-m6.js +++ b/starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CY4CBQtD.js @@ -1 +1 @@ -import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-6aaf32cf-BPvqRBVt.js";import{G as tt}from"./graph-Bqo8LFRO.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-BRpiNjs-.js";import{r as st}from"./index-3862675e-BjItSQO6.js";import"./index-DFpvp1rn.js";import"./layout-e9igZ_Vb.js";import"./clone-C_jSdwol.js";import"./edges-e0da2a9e-Bx6yyD_A.js";import"./createText-2e5e7dd3-_UBRrGW4.js";import"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,m="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=it),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,p),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:m,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:m,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Vt as diagram}; +import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-6aaf32cf-DTPfI4UM.js";import{G as tt}from"./graph-W254zRQ0.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-CLEyumap.js";import{r as st}from"./index-3862675e-CXAABjCf.js";import"./index-hnRSc5ud.js";import"./layout-C3MVMtGC.js";import"./clone-BdtZehSS.js";import"./edges-e0da2a9e-Ddp_7vqN.js";import"./createText-2e5e7dd3-BHoypJ7S.js";import"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,m="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=it),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,p),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:m,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:m,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Vt as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-BPvqRBVt.js b/starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-DTPfI4UM.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-BPvqRBVt.js rename to starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-DTPfI4UM.js index ce8d2afef3..e3493c3551 100644 --- a/starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-BPvqRBVt.js +++ b/starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-DTPfI4UM.js @@ -1,4 +1,4 @@ -import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,A as Xt,B as Kt,l as D,j as ot,C as Wt,a2 as Jt}from"./mermaid.core-BRpiNjs-.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");A=st[0],O=[O,st[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",A=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),v={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(v.yy[dt]=this.yy[dt]);S.setInput(r,v.yy),v.yy.lexer=S,v.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(A+1)+`: +import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,A as Xt,B as Kt,l as D,j as ot,C as Wt,a2 as Jt}from"./mermaid.core-CLEyumap.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");A=st[0],O=[O,st[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",A=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),v={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(v.yy[dt]=this.yy[dt]);S.setInput(r,v.yy),v.yy.lexer=S,v.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(A+1)+`: `+S.showPosition()+` Expecting `+rt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(A+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:rt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,A=S.yylineno,yt=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=p[p.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},Gt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,A,v.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;b&&(i=i.slice(0,-1*b*2),p=p.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=$[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Yt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/styles-9a916d00-CMxTlbUn.js b/starter/src/main/resources/templates/notebase/assets/styles-9a916d00-lZKOBCaM.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/styles-9a916d00-CMxTlbUn.js rename to starter/src/main/resources/templates/notebase/assets/styles-9a916d00-lZKOBCaM.js index 6248307f56..b986b69725 100644 --- a/starter/src/main/resources/templates/notebase/assets/styles-9a916d00-CMxTlbUn.js +++ b/starter/src/main/resources/templates/notebase/assets/styles-9a916d00-lZKOBCaM.js @@ -1,4 +1,4 @@ -import{s as ut,g as rt,a as at,b as lt,c as F,A as ct,B as ot,j as v,C as ht,l as At,y as We,h as z,d as pt,E as Re}from"./mermaid.core-BRpiNjs-.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: +import{s as ut,g as rt,a as at,b as lt,c as F,A as ct,B as ot,j as v,C as ht,l as At,y as We,h as z,d as pt,E as Re}from"./mermaid.core-CLEyumap.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: `+b.showPosition()+` Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),je=U[h[h.length-2]][h[h.length-1]],h.push(je);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/styles-c10674c1-DaH9xpKF.js b/starter/src/main/resources/templates/notebase/assets/styles-c10674c1-D4guNeYR.js similarity index 97% rename from deploy/server/notebase/assets/styles-c10674c1-DaH9xpKF.js rename to starter/src/main/resources/templates/notebase/assets/styles-c10674c1-D4guNeYR.js index 8e9a43772a..293c153a74 100644 --- a/deploy/server/notebase/assets/styles-c10674c1-DaH9xpKF.js +++ b/starter/src/main/resources/templates/notebase/assets/styles-c10674c1-D4guNeYR.js @@ -1,4 +1,4 @@ -import{G as R}from"./graph-Bqo8LFRO.js";import{S as z,v as F,x as j,o as A,l as g,p as U,c as S,j as G,r as q,q as E,n as L,h as C,y as H,t as K,z as W}from"./mermaid.core-BRpiNjs-.js";import{r as X}from"./index-3862675e-BjItSQO6.js";import{v as J,w as Q}from"./index-DFpvp1rn.js";import{c as Y}from"./channel-BcV_jLhP.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([j(e)],F)}function be(e,l){return!!e.children(l).length}function fe(e){return N(e.v)+":"+N(e.w)+":"+N(e.name)}var O=/:/g;function N(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(J(c)){var a=c.transition;if(Q(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(U(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const $ of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=A(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,` +import{G as R}from"./graph-W254zRQ0.js";import{S as z,v as F,x as j,o as A,l as g,p as U,c as S,j as G,r as q,q as E,n as L,h as C,y as H,t as K,z as W}from"./mermaid.core-CLEyumap.js";import{r as X}from"./index-3862675e-CXAABjCf.js";import{v as J,w as Q}from"./index-hnRSc5ud.js";import{c as Y}from"./channel-B03o6XSd.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([j(e)],F)}function be(e,l){return!!e.children(l).length}function fe(e){return N(e.v)+":"+N(e.w)+":"+N(e.name)}var O=/:/g;function N(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(J(c)){var a=c.transition;if(Q(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(U(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const $ of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=A(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,` `),S()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+w,l.setEdge(n.start,n.end,t,a)}},le=function(e,l){return l.db.getClasses()},ae=async function(e,l,c,a){g.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=S(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let r;d==="sandbox"&&(r=C("#i"+l));const y=d==="sandbox"?C(r.nodes()[0].contentDocument.body):C("body"),w=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new R({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();g.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],g.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),T=a.db.getEdges();g.info("Edges",T);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Z("cluster").append("text");for(let f=0;f{const c=Y,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return W(a,i,d,l)},ne=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; diff --git a/starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-BxUoIeIU.js b/starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-CmoRP8WR.js similarity index 95% rename from starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-BxUoIeIU.js rename to starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-CmoRP8WR.js index b002bc7f2c..d88d1d3964 100644 --- a/starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-BxUoIeIU.js +++ b/starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-CmoRP8WR.js @@ -1 +1 @@ -import{a3 as o,m as i}from"./mermaid.core-BRpiNjs-.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g}; +import{a3 as o,m as i}from"./mermaid.core-CLEyumap.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g}; diff --git a/starter/src/main/resources/templates/notebase/assets/threadService-B3hRGcv1.js b/starter/src/main/resources/templates/notebase/assets/threadService-PEBGuFRg.js similarity index 94% rename from starter/src/main/resources/templates/notebase/assets/threadService-B3hRGcv1.js rename to starter/src/main/resources/templates/notebase/assets/threadService-PEBGuFRg.js index 55f0cd0953..488fcc49c8 100644 --- a/starter/src/main/resources/templates/notebase/assets/threadService-B3hRGcv1.js +++ b/starter/src/main/resources/templates/notebase/assets/threadService-PEBGuFRg.js @@ -1 +1 @@ -import{r as T,u as n,a as h}from"./index-DFpvp1rn.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; +import{r as T,u as n,a as h}from"./index-hnRSc5ud.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; diff --git a/deploy/server/notebase/assets/timeline-definition-85554ec2-B6W68VWC.js b/starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CtFMoSI1.js similarity index 99% rename from deploy/server/notebase/assets/timeline-definition-85554ec2-B6W68VWC.js rename to starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CtFMoSI1.js index a125be30a1..69c04062c0 100644 --- a/deploy/server/notebase/assets/timeline-definition-85554ec2-B6W68VWC.js +++ b/starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CtFMoSI1.js @@ -1,4 +1,4 @@ -import{a5 as ft,C as gt,c as mt,l as E,h as G,t as xt,a6 as _t,a7 as bt,a8 as kt}from"./mermaid.core-BRpiNjs-.js";import"./index-DFpvp1rn.js";import{a as D}from"./arc-Cb_wyWgX.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;o.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: +import{a5 as ft,C as gt,c as mt,l as E,h as G,t as xt,a6 as _t,a7 as bt,a8 as kt}from"./mermaid.core-CLEyumap.js";import"./index-hnRSc5ud.js";import{a as D}from"./arc-BVZmYbDK.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;o.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(b==A?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),o.push(k.yylloc),c.push(S[1]),b=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},P&&(R._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,o].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),o.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/xychartDiagram-e933f94c-AH_oESFX.js b/starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-Dt8EMtG3.js similarity index 99% rename from deploy/server/notebase/assets/xychartDiagram-e933f94c-AH_oESFX.js rename to starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-Dt8EMtG3.js index 1b272050b8..008b0f4fb1 100644 --- a/deploy/server/notebase/assets/xychartDiagram-e933f94c-AH_oESFX.js +++ b/starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-Dt8EMtG3.js @@ -1,4 +1,4 @@ -import{U as zt,V as ot,Q as wt,P as Ft,s as Nt,g as Xt,A as Yt,B as St,a as Ht,b as $t,C as Ut,l as Ct,N as qt,i as jt,d as Gt}from"./mermaid.core-BRpiNjs-.js";import{c as Qt}from"./createText-2e5e7dd3-_UBRrGW4.js";import"./index-DFpvp1rn.js";import{i as Kt}from"./init-Gi6I4Gst.js";import{o as Zt}from"./ordinal-Cboi1Yqb.js";import{l as ft}from"./linear-DCGWotbG.js";import{l as pt}from"./line-kJpnB43P.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: +import{U as zt,V as ot,Q as wt,P as Ft,s as Nt,g as Xt,A as Yt,B as St,a as Ht,b as $t,C as Ut,l as Ct,N as qt,i as jt,d as Gt}from"./mermaid.core-CLEyumap.js";import{c as Qt}from"./createText-2e5e7dd3-BHoypJ7S.js";import"./index-hnRSc5ud.js";import{i as Kt}from"./init-Gi6I4Gst.js";import{o as Zt}from"./ordinal-Cboi1Yqb.js";import{l as ft}from"./linear-91jlWj_6.js";import{l as pt}from"./line-CEWcvkjJ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+D);switch(v[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(v[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[v[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,B.yy,v[1],b,a].concat(Bt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[v[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/index.html b/starter/src/main/resources/templates/notebase/index.html index 0cdfeb10c0..e34696e345 100644 --- a/starter/src/main/resources/templates/notebase/index.html +++ b/starter/src/main/resources/templates/notebase/index.html @@ -21,7 +21,7 @@ 微语 - +