@guihz/trading-vue-editor-tes 0.0.46 → 0.0.47

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
- */var Bi;function Pu(){if(Bi)return sa;Bi=1;var s=F,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function m(h,g,b){var w,T={},E=null,L=null;b!==void 0&&(E=""+b),g.key!==void 0&&(E=""+g.key),g.ref!==void 0&&(L=g.ref);for(w in g)o.call(g,w)&&!u.hasOwnProperty(w)&&(T[w]=g[w]);if(h&&h.defaultProps)for(w in g=h.defaultProps,g)T[w]===void 0&&(T[w]=g[w]);return{$$typeof:n,type:h,key:E,ref:L,props:T,_owner:l.current}}return sa.Fragment=a,sa.jsx=m,sa.jsxs=m,sa}var na={};/**
11
+ */var Bi;function Pu(){if(Bi)return sa;Bi=1;var s=F,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,u=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function m(h,b,g){var w,T={},R=null,L=null;g!==void 0&&(R=""+g),b.key!==void 0&&(R=""+b.key),b.ref!==void 0&&(L=b.ref);for(w in b)o.call(b,w)&&!c.hasOwnProperty(w)&&(T[w]=b[w]);if(h&&h.defaultProps)for(w in b=h.defaultProps,b)T[w]===void 0&&(T[w]=b[w]);return{$$typeof:n,type:h,key:R,ref:L,props:T,_owner:u.current}}return sa.Fragment=a,sa.jsx=m,sa.jsxs=m,sa}var na={};/**
12
12
  * @license React
13
13
  * react-jsx-runtime.development.js
14
14
  *
@@ -16,18 +16,18 @@
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var Ui;function Eu(){return Ui||(Ui=1,process.env.NODE_ENV!=="production"&&function(){var s=F,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),j=Symbol.iterator,P="@@iterator";function R(y){if(y===null||typeof y!="object")return null;var N=j&&y[j]||y[P];return typeof N=="function"?N:null}var H=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(y){{for(var N=arguments.length,U=new Array(N>1?N-1:0),Z=1;Z<N;Z++)U[Z-1]=arguments[Z];B("error",y,U)}}function B(y,N,U){{var Z=H.ReactDebugCurrentFrame,pe=Z.getStackAddendum();pe!==""&&(N+="%s",U=U.concat([pe]));var _e=U.map(function(ce){return String(ce)});_e.unshift("Warning: "+N),Function.prototype.apply.call(console[y],console,_e)}}var A=!1,M=!1,J=!1,G=!1,ye=!1,he;he=Symbol.for("react.module.reference");function le(y){return!!(typeof y=="string"||typeof y=="function"||y===o||y===u||ye||y===l||y===b||y===w||G||y===L||A||M||J||typeof y=="object"&&y!==null&&(y.$$typeof===E||y.$$typeof===T||y.$$typeof===m||y.$$typeof===h||y.$$typeof===g||y.$$typeof===he||y.getModuleId!==void 0))}function bt(y,N,U){var Z=y.displayName;if(Z)return Z;var pe=N.displayName||N.name||"";return pe!==""?U+"("+pe+")":U}function zt(y){return y.displayName||"Context"}function Me(y){if(y==null)return null;if(typeof y.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case o:return"Fragment";case a:return"Portal";case u:return"Profiler";case l:return"StrictMode";case b:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case h:var N=y;return zt(N)+".Consumer";case m:var U=y;return zt(U._context)+".Provider";case g:return bt(y,y.render,"ForwardRef");case T:var Z=y.displayName||null;return Z!==null?Z:Me(y.type)||"Memo";case E:{var pe=y,_e=pe._payload,ce=pe._init;try{return Me(ce(_e))}catch{return null}}}return null}var Fe=Object.assign,V=0,me,Oe,Le,lt,je,ee,ve;function We(){}We.__reactDisabledLog=!0;function $t(){{if(V===0){me=console.log,Oe=console.info,Le=console.warn,lt=console.error,je=console.group,ee=console.groupCollapsed,ve=console.groupEnd;var y={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}V++}}function Qe(){{if(V--,V===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},y,{value:me}),info:Fe({},y,{value:Oe}),warn:Fe({},y,{value:Le}),error:Fe({},y,{value:lt}),group:Fe({},y,{value:je}),groupCollapsed:Fe({},y,{value:ee}),groupEnd:Fe({},y,{value:ve})})}V<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ir=H.ReactCurrentDispatcher,fa;function jt(y,N,U){{if(fa===void 0)try{throw Error()}catch(pe){var Z=pe.stack.trim().match(/\n( *(at )?)/);fa=Z&&Z[1]||""}return`
20
- `+fa+y}}var Xt=!1,Er;{var Rr=typeof WeakMap=="function"?WeakMap:Map;Er=new Rr}function xr(y,N){if(!y||Xt)return"";{var U=Er.get(y);if(U!==void 0)return U}var Z;Xt=!0;var pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=ir.current,ir.current=null,$t();try{if(N){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(rt){Z=rt}Reflect.construct(y,[],ce)}else{try{ce.call()}catch(rt){Z=rt}y.call(ce.prototype)}}else{try{throw Error()}catch(rt){Z=rt}y()}}catch(rt){if(rt&&Z&&typeof rt.stack=="string"){for(var ie=rt.stack.split(`
21
- `),$e=Z.stack.split(`
19
+ */var Ui;function Eu(){return Ui||(Ui=1,process.env.NODE_ENV!=="production"&&function(){var s=F,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),j=Symbol.iterator,O="@@iterator";function V(y){if(y===null||typeof y!="object")return null;var z=j&&y[j]||y[O];return typeof z=="function"?z:null}var M=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function B(y){{for(var z=arguments.length,U=new Array(z>1?z-1:0),J=1;J<z;J++)U[J-1]=arguments[J];E("error",y,U)}}function E(y,z,U){{var J=M.ReactDebugCurrentFrame,pe=J.getStackAddendum();pe!==""&&(z+="%s",U=U.concat([pe]));var _e=U.map(function(ce){return String(ce)});_e.unshift("Warning: "+z),Function.prototype.apply.call(console[y],console,_e)}}var k=!1,P=!1,X=!1,G=!1,ye=!1,he;he=Symbol.for("react.module.reference");function le(y){return!!(typeof y=="string"||typeof y=="function"||y===o||y===c||ye||y===u||y===g||y===w||G||y===L||k||P||X||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===T||y.$$typeof===m||y.$$typeof===h||y.$$typeof===b||y.$$typeof===he||y.getModuleId!==void 0))}function bt(y,z,U){var J=y.displayName;if(J)return J;var pe=z.displayName||z.name||"";return pe!==""?U+"("+pe+")":U}function zt(y){return y.displayName||"Context"}function Me(y){if(y==null)return null;if(typeof y.tag=="number"&&B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case o:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case h:var z=y;return zt(z)+".Consumer";case m:var U=y;return zt(U._context)+".Provider";case b:return bt(y,y.render,"ForwardRef");case T:var J=y.displayName||null;return J!==null?J:Me(y.type)||"Memo";case R:{var pe=y,_e=pe._payload,ce=pe._init;try{return Me(ce(_e))}catch{return null}}}return null}var Fe=Object.assign,Y=0,me,Oe,Le,lt,je,ee,ve;function We(){}We.__reactDisabledLog=!0;function $t(){{if(Y===0){me=console.log,Oe=console.info,Le=console.warn,lt=console.error,je=console.group,ee=console.groupCollapsed,ve=console.groupEnd;var y={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}Y++}}function Qe(){{if(Y--,Y===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},y,{value:me}),info:Fe({},y,{value:Oe}),warn:Fe({},y,{value:Le}),error:Fe({},y,{value:lt}),group:Fe({},y,{value:je}),groupCollapsed:Fe({},y,{value:ee}),groupEnd:Fe({},y,{value:ve})})}Y<0&&B("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ir=M.ReactCurrentDispatcher,fa;function jt(y,z,U){{if(fa===void 0)try{throw Error()}catch(pe){var J=pe.stack.trim().match(/\n( *(at )?)/);fa=J&&J[1]||""}return`
20
+ `+fa+y}}var Xt=!1,Er;{var Rr=typeof WeakMap=="function"?WeakMap:Map;Er=new Rr}function xr(y,z){if(!y||Xt)return"";{var U=Er.get(y);if(U!==void 0)return U}var J;Xt=!0;var pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=ir.current,ir.current=null,$t();try{if(z){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(rt){J=rt}Reflect.construct(y,[],ce)}else{try{ce.call()}catch(rt){J=rt}y.call(ce.prototype)}}else{try{throw Error()}catch(rt){J=rt}y()}}catch(rt){if(rt&&J&&typeof rt.stack=="string"){for(var ie=rt.stack.split(`
21
+ `),$e=J.stack.split(`
22
22
  `),qe=ie.length-1,ze=$e.length-1;qe>=1&&ze>=0&&ie[qe]!==$e[ze];)ze--;for(;qe>=1&&ze>=0;qe--,ze--)if(ie[qe]!==$e[ze]){if(qe!==1||ze!==1)do if(qe--,ze--,ze<0||ie[qe]!==$e[ze]){var tt=`
23
- `+ie[qe].replace(" at new "," at ");return y.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",y.displayName)),typeof y=="function"&&Er.set(y,tt),tt}while(qe>=1&&ze>=0);break}}}finally{Xt=!1,ir.current=_e,Qe(),Error.prepareStackTrace=pe}var Ot=y?y.displayName||y.name:"",ps=Ot?jt(Ot):"";return typeof y=="function"&&Er.set(y,ps),ps}function as(y,N,U){return xr(y,!1)}function ct(y){var N=y.prototype;return!!(N&&N.isReactComponent)}function Bt(y,N,U){if(y==null)return"";if(typeof y=="function")return xr(y,ct(y));if(typeof y=="string")return jt(y);switch(y){case b:return jt("Suspense");case w:return jt("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case g:return as(y.render);case T:return Bt(y.type,N,U);case E:{var Z=y,pe=Z._payload,_e=Z._init;try{return Bt(_e(pe),N,U)}catch{}}}return""}var Lr=Object.prototype.hasOwnProperty,xt={},ya=H.ReactDebugCurrentFrame;function Mr(y){if(y){var N=y._owner,U=Bt(y.type,y._source,N?N.type:null);ya.setExtraStackFrame(U)}else ya.setExtraStackFrame(null)}function wr(y,N,U,Z,pe){{var _e=Function.call.bind(Lr);for(var ce in y)if(_e(y,ce)){var ie=void 0;try{if(typeof y[ce]!="function"){var $e=Error((Z||"React class")+": "+U+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}ie=y[ce](N,ce,Z,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(qe){ie=qe}ie&&!(ie instanceof Error)&&(Mr(pe),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Z||"React class",U,ce,typeof ie),Mr(null)),ie instanceof Error&&!(ie.message in xt)&&(xt[ie.message]=!0,Mr(pe),S("Failed %s type: %s",U,ie.message),Mr(null))}}}var ut=Array.isArray;function Gt(y){return ut(y)}function Fr(y){{var N=typeof Symbol=="function"&&Symbol.toStringTag,U=N&&y[Symbol.toStringTag]||y.constructor.name||"Object";return U}}function vn(y){try{return or(y),!1}catch{return!0}}function or(y){return""+y}function ss(y){if(vn(y))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(y)),or(y)}var Nt=H.ReactCurrentOwner,lr={key:!0,ref:!0,__self:!0,__source:!0},jr,Br,vr;vr={};function ha(y){if(Lr.call(y,"ref")){var N=Object.getOwnPropertyDescriptor(y,"ref").get;if(N&&N.isReactWarning)return!1}return y.ref!==void 0}function _a(y){if(Lr.call(y,"key")){var N=Object.getOwnPropertyDescriptor(y,"key").get;if(N&&N.isReactWarning)return!1}return y.key!==void 0}function ga(y,N){if(typeof y.ref=="string"&&Nt.current&&N&&Nt.current.stateNode!==N){var U=Me(Nt.current.type);vr[U]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Me(Nt.current.type),y.ref),vr[U]=!0)}}function ba(y,N){{var U=function(){jr||(jr=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};U.isReactWarning=!0,Object.defineProperty(y,"key",{get:U,configurable:!0})}}function xa(y,N){{var U=function(){Br||(Br=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};U.isReactWarning=!0,Object.defineProperty(y,"ref",{get:U,configurable:!0})}}var wa=function(y,N,U,Z,pe,_e,ce){var ie={$$typeof:n,type:y,key:N,ref:U,props:ce,_owner:_e};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pe}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Tn(y,N,U,Z,pe){{var _e,ce={},ie=null,$e=null;U!==void 0&&(ss(U),ie=""+U),_a(N)&&(ss(N.key),ie=""+N.key),ha(N)&&($e=N.ref,ga(N,pe));for(_e in N)Lr.call(N,_e)&&!lr.hasOwnProperty(_e)&&(ce[_e]=N[_e]);if(y&&y.defaultProps){var qe=y.defaultProps;for(_e in qe)ce[_e]===void 0&&(ce[_e]=qe[_e])}if(ie||$e){var ze=typeof y=="function"?y.displayName||y.name||"Unknown":y;ie&&ba(ce,ze),$e&&xa(ce,ze)}return wa(y,ie,$e,pe,Z,Nt.current,ce)}}var va=H.ReactCurrentOwner,ns=H.ReactDebugCurrentFrame;function Vt(y){if(y){var N=y._owner,U=Bt(y.type,y._source,N?N.type:null);ns.setExtraStackFrame(U)}else ns.setExtraStackFrame(null)}var Ur;Ur=!1;function Ta(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function is(){{if(va.current){var y=Me(va.current.type);if(y)return`
23
+ `+ie[qe].replace(" at new "," at ");return y.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",y.displayName)),typeof y=="function"&&Er.set(y,tt),tt}while(qe>=1&&ze>=0);break}}}finally{Xt=!1,ir.current=_e,Qe(),Error.prepareStackTrace=pe}var Ot=y?y.displayName||y.name:"",ps=Ot?jt(Ot):"";return typeof y=="function"&&Er.set(y,ps),ps}function as(y,z,U){return xr(y,!1)}function ct(y){var z=y.prototype;return!!(z&&z.isReactComponent)}function Bt(y,z,U){if(y==null)return"";if(typeof y=="function")return xr(y,ct(y));if(typeof y=="string")return jt(y);switch(y){case g:return jt("Suspense");case w:return jt("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case b:return as(y.render);case T:return Bt(y.type,z,U);case R:{var J=y,pe=J._payload,_e=J._init;try{return Bt(_e(pe),z,U)}catch{}}}return""}var Lr=Object.prototype.hasOwnProperty,xt={},ya=M.ReactDebugCurrentFrame;function Mr(y){if(y){var z=y._owner,U=Bt(y.type,y._source,z?z.type:null);ya.setExtraStackFrame(U)}else ya.setExtraStackFrame(null)}function wr(y,z,U,J,pe){{var _e=Function.call.bind(Lr);for(var ce in y)if(_e(y,ce)){var ie=void 0;try{if(typeof y[ce]!="function"){var $e=Error((J||"React class")+": "+U+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}ie=y[ce](z,ce,J,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(qe){ie=qe}ie&&!(ie instanceof Error)&&(Mr(pe),B("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",J||"React class",U,ce,typeof ie),Mr(null)),ie instanceof Error&&!(ie.message in xt)&&(xt[ie.message]=!0,Mr(pe),B("Failed %s type: %s",U,ie.message),Mr(null))}}}var ut=Array.isArray;function Gt(y){return ut(y)}function Fr(y){{var z=typeof Symbol=="function"&&Symbol.toStringTag,U=z&&y[Symbol.toStringTag]||y.constructor.name||"Object";return U}}function vn(y){try{return or(y),!1}catch{return!0}}function or(y){return""+y}function ss(y){if(vn(y))return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(y)),or(y)}var Nt=M.ReactCurrentOwner,lr={key:!0,ref:!0,__self:!0,__source:!0},jr,Br,vr;vr={};function ha(y){if(Lr.call(y,"ref")){var z=Object.getOwnPropertyDescriptor(y,"ref").get;if(z&&z.isReactWarning)return!1}return y.ref!==void 0}function _a(y){if(Lr.call(y,"key")){var z=Object.getOwnPropertyDescriptor(y,"key").get;if(z&&z.isReactWarning)return!1}return y.key!==void 0}function ga(y,z){if(typeof y.ref=="string"&&Nt.current&&z&&Nt.current.stateNode!==z){var U=Me(Nt.current.type);vr[U]||(B('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Me(Nt.current.type),y.ref),vr[U]=!0)}}function ba(y,z){{var U=function(){jr||(jr=!0,B("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};U.isReactWarning=!0,Object.defineProperty(y,"key",{get:U,configurable:!0})}}function xa(y,z){{var U=function(){Br||(Br=!0,B("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};U.isReactWarning=!0,Object.defineProperty(y,"ref",{get:U,configurable:!0})}}var wa=function(y,z,U,J,pe,_e,ce){var ie={$$typeof:n,type:y,key:z,ref:U,props:ce,_owner:_e};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pe}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Tn(y,z,U,J,pe){{var _e,ce={},ie=null,$e=null;U!==void 0&&(ss(U),ie=""+U),_a(z)&&(ss(z.key),ie=""+z.key),ha(z)&&($e=z.ref,ga(z,pe));for(_e in z)Lr.call(z,_e)&&!lr.hasOwnProperty(_e)&&(ce[_e]=z[_e]);if(y&&y.defaultProps){var qe=y.defaultProps;for(_e in qe)ce[_e]===void 0&&(ce[_e]=qe[_e])}if(ie||$e){var ze=typeof y=="function"?y.displayName||y.name||"Unknown":y;ie&&ba(ce,ze),$e&&xa(ce,ze)}return wa(y,ie,$e,pe,J,Nt.current,ce)}}var va=M.ReactCurrentOwner,ns=M.ReactDebugCurrentFrame;function Vt(y){if(y){var z=y._owner,U=Bt(y.type,y._source,z?z.type:null);ns.setExtraStackFrame(U)}else ns.setExtraStackFrame(null)}var Ur;Ur=!1;function Ta(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function is(){{if(va.current){var y=Me(va.current.type);if(y)return`
24
24
 
25
- Check the render method of \``+y+"`."}return""}}function In(y){{if(y!==void 0){var N=y.fileName.replace(/^.*[\\\/]/,""),U=y.lineNumber;return`
25
+ Check the render method of \``+y+"`."}return""}}function In(y){{if(y!==void 0){var z=y.fileName.replace(/^.*[\\\/]/,""),U=y.lineNumber;return`
26
26
 
27
- Check your code at `+N+":"+U+"."}return""}}var os={};function ls(y){{var N=is();if(!N){var U=typeof y=="string"?y:y.displayName||y.name;U&&(N=`
27
+ Check your code at `+z+":"+U+"."}return""}}var os={};function ls(y){{var z=is();if(!z){var U=typeof y=="string"?y:y.displayName||y.name;U&&(z=`
28
28
 
29
- Check the top-level render call using <`+U+">.")}return N}}function cs(y,N){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var U=ls(N);if(os[U])return;os[U]=!0;var Z="";y&&y._owner&&y._owner!==va.current&&(Z=" It was passed a child from "+Me(y._owner.type)+"."),Vt(y),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,Z),Vt(null)}}function us(y,N){{if(typeof y!="object")return;if(Gt(y))for(var U=0;U<y.length;U++){var Z=y[U];Ta(Z)&&cs(Z,N)}else if(Ta(y))y._store&&(y._store.validated=!0);else if(y){var pe=R(y);if(typeof pe=="function"&&pe!==y.entries)for(var _e=pe.call(y),ce;!(ce=_e.next()).done;)Ta(ce.value)&&cs(ce.value,N)}}}function kn(y){{var N=y.type;if(N==null||typeof N=="string")return;var U;if(typeof N=="function")U=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===g||N.$$typeof===T))U=N.propTypes;else return;if(U){var Z=Me(N);wr(U,y.props,"prop",Z,y)}else if(N.PropTypes!==void 0&&!Ur){Ur=!0;var pe=Me(N);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pe||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ia(y){{for(var N=Object.keys(y.props),U=0;U<N.length;U++){var Z=N[U];if(Z!=="children"&&Z!=="key"){Vt(y),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),Vt(null);break}}y.ref!==null&&(Vt(y),S("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}function ds(y,N,U,Z,pe,_e){{var ce=le(y);if(!ce){var ie="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $e=In(pe);$e?ie+=$e:ie+=is();var qe;y===null?qe="null":Gt(y)?qe="array":y!==void 0&&y.$$typeof===n?(qe="<"+(Me(y.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):qe=typeof y,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",qe,ie)}var ze=Tn(y,N,U,pe,_e);if(ze==null)return ze;if(ce){var tt=N.children;if(tt!==void 0)if(Z)if(Gt(tt)){for(var Ot=0;Ot<tt.length;Ot++)us(tt[Ot],y);Object.freeze&&Object.freeze(tt)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else us(tt,y)}return y===o?Ia(ze):kn(ze),ze}}function ka(y,N,U){return ds(y,N,U,!0)}function Dn(y,N,U){return ds(y,N,U,!1)}var An=Dn,qn=ka;na.Fragment=o,na.jsx=An,na.jsxs=qn}()),na}process.env.NODE_ENV==="production"?Js.exports=Pu():Js.exports=Eu();var O=Js.exports;function Ru(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function Wi(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(s,l).enumerable})),a.push.apply(a,o)}return a}function Hi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Wi(Object(a),!0).forEach(function(o){Ru(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Wi(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function Lu(s,n){if(s==null)return{};var a={},o=Object.keys(s),l,u;for(u=0;u<o.length;u++)l=o[u],!(n.indexOf(l)>=0)&&(a[l]=s[l]);return a}function Mu(s,n){if(s==null)return{};var a=Lu(s,n),o,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);for(l=0;l<u.length;l++)o=u[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function Fu(s,n){return ju(s)||Bu(s,n)||Uu(s,n)||Wu()}function ju(s){if(Array.isArray(s))return s}function Bu(s,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],o=!0,l=!1,u=void 0;try{for(var m=s[Symbol.iterator](),h;!(o=(h=m.next()).done)&&(a.push(h.value),!(n&&a.length===n));o=!0);}catch(g){l=!0,u=g}finally{try{!o&&m.return!=null&&m.return()}finally{if(l)throw u}}return a}}function Uu(s,n){if(s){if(typeof s=="string")return $i(s,n);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return $i(s,n)}}function $i(s,n){(n==null||n>s.length)&&(n=s.length);for(var a=0,o=new Array(n);a<n;a++)o[a]=s[a];return o}function Wu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hu(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function Xi(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(s,l).enumerable})),a.push.apply(a,o)}return a}function Gi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Xi(Object(a),!0).forEach(function(o){Hu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Xi(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function $u(){for(var s=arguments.length,n=new Array(s),a=0;a<s;a++)n[a]=arguments[a];return function(o){return n.reduceRight(function(l,u){return u(l)},o)}}function ia(s){return function n(){for(var a=this,o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return l.length>=s.length?s.apply(this,l):function(){for(var m=arguments.length,h=new Array(m),g=0;g<m;g++)h[g]=arguments[g];return n.apply(a,[].concat(l,h))}}}function Ua(s){return{}.toString.call(s).includes("Object")}function Xu(s){return!Object.keys(s).length}function oa(s){return typeof s=="function"}function Gu(s,n){return Object.prototype.hasOwnProperty.call(s,n)}function Vu(s,n){return Ua(n)||sr("changeType"),Object.keys(n).some(function(a){return!Gu(s,a)})&&sr("changeField"),n}function Yu(s){oa(s)||sr("selectorType")}function Ku(s){oa(s)||Ua(s)||sr("handlerType"),Ua(s)&&Object.values(s).some(function(n){return!oa(n)})&&sr("handlersType")}function Qu(s){s||sr("initialIsRequired"),Ua(s)||sr("initialType"),Xu(s)&&sr("initialContent")}function Zu(s,n){throw new Error(s[n]||s.default)}var Ju={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},sr=ia(Zu)(Ju),Wa={changes:Vu,selector:Yu,handler:Ku,initial:Qu};function ed(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wa.initial(s),Wa.handler(n);var a={current:s},o=ia(ad)(a,n),l=ia(rd)(a),u=ia(Wa.changes)(s),m=ia(td)(a);function h(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return Wa.selector(b),b(a.current)}function g(b){$u(o,l,u,m)(b)}return[h,g]}function td(s,n){return oa(n)?n(s.current):n}function rd(s,n){return s.current=Gi(Gi({},s.current),n),n}function ad(s,n,a){return oa(n)?n(s.current):Object.keys(a).forEach(function(o){var l;return(l=n[o])===null||l===void 0?void 0:l.call(n,s.current[o])}),a}var sd={create:ed},nd={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function id(s){return function n(){for(var a=this,o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return l.length>=s.length?s.apply(this,l):function(){for(var m=arguments.length,h=new Array(m),g=0;g<m;g++)h[g]=arguments[g];return n.apply(a,[].concat(l,h))}}}function od(s){return{}.toString.call(s).includes("Object")}function ld(s){return s||Yi("configIsRequired"),od(s)||Yi("configType"),s.urls?(cd(),{paths:{vs:s.urls.monacoBase}}):s}function cd(){console.warn(Vi.deprecation)}function ud(s,n){throw new Error(s[n]||s.default)}var Vi={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
29
+ Check the top-level render call using <`+U+">.")}return z}}function cs(y,z){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var U=ls(z);if(os[U])return;os[U]=!0;var J="";y&&y._owner&&y._owner!==va.current&&(J=" It was passed a child from "+Me(y._owner.type)+"."),Vt(y),B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,J),Vt(null)}}function us(y,z){{if(typeof y!="object")return;if(Gt(y))for(var U=0;U<y.length;U++){var J=y[U];Ta(J)&&cs(J,z)}else if(Ta(y))y._store&&(y._store.validated=!0);else if(y){var pe=V(y);if(typeof pe=="function"&&pe!==y.entries)for(var _e=pe.call(y),ce;!(ce=_e.next()).done;)Ta(ce.value)&&cs(ce.value,z)}}}function kn(y){{var z=y.type;if(z==null||typeof z=="string")return;var U;if(typeof z=="function")U=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===b||z.$$typeof===T))U=z.propTypes;else return;if(U){var J=Me(z);wr(U,y.props,"prop",J,y)}else if(z.PropTypes!==void 0&&!Ur){Ur=!0;var pe=Me(z);B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pe||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ia(y){{for(var z=Object.keys(y.props),U=0;U<z.length;U++){var J=z[U];if(J!=="children"&&J!=="key"){Vt(y),B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",J),Vt(null);break}}y.ref!==null&&(Vt(y),B("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}function ds(y,z,U,J,pe,_e){{var ce=le(y);if(!ce){var ie="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $e=In(pe);$e?ie+=$e:ie+=is();var qe;y===null?qe="null":Gt(y)?qe="array":y!==void 0&&y.$$typeof===n?(qe="<"+(Me(y.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):qe=typeof y,B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",qe,ie)}var ze=Tn(y,z,U,pe,_e);if(ze==null)return ze;if(ce){var tt=z.children;if(tt!==void 0)if(J)if(Gt(tt)){for(var Ot=0;Ot<tt.length;Ot++)us(tt[Ot],y);Object.freeze&&Object.freeze(tt)}else B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else us(tt,y)}return y===o?Ia(ze):kn(ze),ze}}function ka(y,z,U){return ds(y,z,U,!0)}function Dn(y,z,U){return ds(y,z,U,!1)}var An=Dn,qn=ka;na.Fragment=o,na.jsx=An,na.jsxs=qn}()),na}process.env.NODE_ENV==="production"?Js.exports=Pu():Js.exports=Eu();var N=Js.exports;function Ru(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function Wi(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Hi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Wi(Object(a),!0).forEach(function(o){Ru(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Wi(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function Lu(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function Mu(s,n){if(s==null)return{};var a=Lu(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function Fu(s,n){return ju(s)||Bu(s,n)||Uu(s,n)||Wu()}function ju(s){if(Array.isArray(s))return s}function Bu(s,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],o=!0,u=!1,c=void 0;try{for(var m=s[Symbol.iterator](),h;!(o=(h=m.next()).done)&&(a.push(h.value),!(n&&a.length===n));o=!0);}catch(b){u=!0,c=b}finally{try{!o&&m.return!=null&&m.return()}finally{if(u)throw c}}return a}}function Uu(s,n){if(s){if(typeof s=="string")return $i(s,n);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return $i(s,n)}}function $i(s,n){(n==null||n>s.length)&&(n=s.length);for(var a=0,o=new Array(n);a<n;a++)o[a]=s[a];return o}function Wu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hu(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function Xi(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Gi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Xi(Object(a),!0).forEach(function(o){Hu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Xi(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function $u(){for(var s=arguments.length,n=new Array(s),a=0;a<s;a++)n[a]=arguments[a];return function(o){return n.reduceRight(function(u,c){return c(u)},o)}}function ia(s){return function n(){for(var a=this,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,h=new Array(m),b=0;b<m;b++)h[b]=arguments[b];return n.apply(a,[].concat(u,h))}}}function Ua(s){return{}.toString.call(s).includes("Object")}function Xu(s){return!Object.keys(s).length}function oa(s){return typeof s=="function"}function Gu(s,n){return Object.prototype.hasOwnProperty.call(s,n)}function Vu(s,n){return Ua(n)||sr("changeType"),Object.keys(n).some(function(a){return!Gu(s,a)})&&sr("changeField"),n}function Yu(s){oa(s)||sr("selectorType")}function Ku(s){oa(s)||Ua(s)||sr("handlerType"),Ua(s)&&Object.values(s).some(function(n){return!oa(n)})&&sr("handlersType")}function Qu(s){s||sr("initialIsRequired"),Ua(s)||sr("initialType"),Xu(s)&&sr("initialContent")}function Zu(s,n){throw new Error(s[n]||s.default)}var Ju={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},sr=ia(Zu)(Ju),Wa={changes:Vu,selector:Yu,handler:Ku,initial:Qu};function ed(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wa.initial(s),Wa.handler(n);var a={current:s},o=ia(ad)(a,n),u=ia(rd)(a),c=ia(Wa.changes)(s),m=ia(td)(a);function h(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return Wa.selector(g),g(a.current)}function b(g){$u(o,u,c,m)(g)}return[h,b]}function td(s,n){return oa(n)?n(s.current):n}function rd(s,n){return s.current=Gi(Gi({},s.current),n),n}function ad(s,n,a){return oa(n)?n(s.current):Object.keys(a).forEach(function(o){var u;return(u=n[o])===null||u===void 0?void 0:u.call(n,s.current[o])}),a}var sd={create:ed},nd={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function id(s){return function n(){for(var a=this,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,h=new Array(m),b=0;b<m;b++)h[b]=arguments[b];return n.apply(a,[].concat(u,h))}}}function od(s){return{}.toString.call(s).includes("Object")}function ld(s){return s||Yi("configIsRequired"),od(s)||Yi("configType"),s.urls?(cd(),{paths:{vs:s.urls.monacoBase}}):s}function cd(){console.warn(Vi.deprecation)}function ud(s,n){throw new Error(s[n]||s.default)}var Vi={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
31
31
  You are using deprecated way of configuration.
32
32
 
33
33
  Instead of using
@@ -36,7 +36,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
36
36
  monaco.config({ paths: { vs: '...' } })
37
37
 
38
38
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
39
- `},Yi=id(ud)(Vi),dd={config:ld},pd=function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return function(l){return a.reduceRight(function(u,m){return m(u)},l)}};function Ki(s,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&s[a]&&Object.assign(n[a],Ki(s[a],n[a]))}),Hi(Hi({},s),n)}var md={type:"cancelation",msg:"operation is manually canceled"};function en(s){var n=!1,a=new Promise(function(o,l){s.then(function(u){return n?l(md):o(u)}),s.catch(l)});return a.cancel=function(){return n=!0},a}var fd=sd.create({config:nd,isInitialized:!1,resolve:null,reject:null,monaco:null}),Qi=Fu(fd,2),la=Qi[0],Ha=Qi[1];function yd(s){var n=dd.config(s),a=n.monaco,o=Mu(n,["monaco"]);Ha(function(l){return{config:Ki(l.config,o),monaco:a}})}function hd(){var s=la(function(n){var a=n.monaco,o=n.isInitialized,l=n.resolve;return{monaco:a,isInitialized:o,resolve:l}});if(!s.isInitialized){if(Ha({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),en(tn);if(window.monaco&&window.monaco.editor)return Zi(window.monaco),s.resolve(window.monaco),en(tn);pd(_d,bd)(xd)}return en(tn)}function _d(s){return document.body.appendChild(s)}function gd(s){var n=document.createElement("script");return s&&(n.src=s),n}function bd(s){var n=la(function(o){var l=o.config,u=o.reject;return{config:l,reject:u}}),a=gd("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=n.reject,a}function xd(){var s=la(function(a){var o=a.config,l=a.resolve,u=a.reject;return{config:o,resolve:l,reject:u}}),n=window.require;n.config(s.config),n(["vs/editor/editor.main"],function(a){Zi(a),s.resolve(a)},function(a){s.reject(a)})}function Zi(s){la().monaco||Ha({monaco:s})}function wd(){return la(function(s){var n=s.monaco;return n})}var tn=new Promise(function(s,n){return Ha({resolve:s,reject:n})}),rn={config:yd,init:hd,__getMonacoInstance:wd},vd={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},an=vd,Td={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Id=Td;function kd({children:s}){return F.createElement("div",{style:Id.container},s)}var Dd=kd,Ad=Dd;function qd({width:s,height:n,isEditorReady:a,loading:o,_ref:l,className:u,wrapperProps:m}){return F.createElement("section",{style:{...an.wrapper,width:s,height:n},...m},!a&&F.createElement(Ad,null,o),F.createElement("div",{ref:l,style:{...an.fullWidth,...!a&&an.hide},className:u}))}var Cd=qd,Ji=F.memo(Cd);function Sd(s){F.useEffect(s,[])}var eo=Sd;function zd(s,n,a=!0){let o=F.useRef(!0);F.useEffect(o.current||!a?()=>{o.current=!1}:s,n)}var ot=zd;function ca(){}function Nr(s,n,a,o){return Nd(s,o)||Od(s,n,a,o)}function Nd(s,n){return s.editor.getModel(to(s,n))}function Od(s,n,a,o){return s.editor.createModel(n,a,o?to(s,o):void 0)}function to(s,n){return s.Uri.parse(n)}function Pd({original:s,modified:n,language:a,originalLanguage:o,modifiedLanguage:l,originalModelPath:u,modifiedModelPath:m,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:g=!1,theme:b="light",loading:w="Loading...",options:T={},height:E="100%",width:L="100%",className:j,wrapperProps:P={},beforeMount:R=ca,onMount:H=ca}){let[S,B]=F.useState(!1),[A,M]=F.useState(!0),J=F.useRef(null),G=F.useRef(null),ye=F.useRef(null),he=F.useRef(H),le=F.useRef(R),bt=F.useRef(!1);eo(()=>{let V=rn.init();return V.then(me=>(G.current=me)&&M(!1)).catch(me=>(me==null?void 0:me.type)!=="cancelation"&&console.error("Monaco initialization: error:",me)),()=>J.current?Fe():V.cancel()}),ot(()=>{if(J.current&&G.current){let V=J.current.getOriginalEditor(),me=Nr(G.current,s||"",o||a||"text",u||"");me!==V.getModel()&&V.setModel(me)}},[u],S),ot(()=>{if(J.current&&G.current){let V=J.current.getModifiedEditor(),me=Nr(G.current,n||"",l||a||"text",m||"");me!==V.getModel()&&V.setModel(me)}},[m],S),ot(()=>{let V=J.current.getModifiedEditor();V.getOption(G.current.editor.EditorOption.readOnly)?V.setValue(n||""):n!==V.getValue()&&(V.executeEdits("",[{range:V.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),V.pushUndoStop())},[n],S),ot(()=>{var V,me;(me=(V=J.current)==null?void 0:V.getModel())==null||me.original.setValue(s||"")},[s],S),ot(()=>{let{original:V,modified:me}=J.current.getModel();G.current.editor.setModelLanguage(V,o||a||"text"),G.current.editor.setModelLanguage(me,l||a||"text")},[a,o,l],S),ot(()=>{var V;(V=G.current)==null||V.editor.setTheme(b)},[b],S),ot(()=>{var V;(V=J.current)==null||V.updateOptions(T)},[T],S);let zt=F.useCallback(()=>{var Oe;if(!G.current)return;le.current(G.current);let V=Nr(G.current,s||"",o||a||"text",u||""),me=Nr(G.current,n||"",l||a||"text",m||"");(Oe=J.current)==null||Oe.setModel({original:V,modified:me})},[a,n,l,s,o,u,m]),Me=F.useCallback(()=>{var V;!bt.current&&ye.current&&(J.current=G.current.editor.createDiffEditor(ye.current,{automaticLayout:!0,...T}),zt(),(V=G.current)==null||V.editor.setTheme(b),B(!0),bt.current=!0)},[T,b,zt]);F.useEffect(()=>{S&&he.current(J.current,G.current)},[S]),F.useEffect(()=>{!A&&!S&&Me()},[A,S,Me]);function Fe(){var me,Oe,Le,lt;let V=(me=J.current)==null?void 0:me.getModel();h||((Oe=V==null?void 0:V.original)==null||Oe.dispose()),g||((Le=V==null?void 0:V.modified)==null||Le.dispose()),(lt=J.current)==null||lt.dispose()}return F.createElement(Ji,{width:L,height:E,isEditorReady:S,loading:w,_ref:ye,className:j,wrapperProps:P})}var Ed=Pd,Rd=F.memo(Ed);function Ld(s){let n=F.useRef();return F.useEffect(()=>{n.current=s},[s]),n.current}var Md=Ld,$a=new Map;function Fd({defaultValue:s,defaultLanguage:n,defaultPath:a,value:o,language:l,path:u,theme:m="light",line:h,loading:g="Loading...",options:b={},overrideServices:w={},saveViewState:T=!0,keepCurrentModel:E=!1,width:L="100%",height:j="100%",className:P,wrapperProps:R={},beforeMount:H=ca,onMount:S=ca,onChange:B,onValidate:A=ca}){let[M,J]=F.useState(!1),[G,ye]=F.useState(!0),he=F.useRef(null),le=F.useRef(null),bt=F.useRef(null),zt=F.useRef(S),Me=F.useRef(H),Fe=F.useRef(),V=F.useRef(o),me=Md(u),Oe=F.useRef(!1),Le=F.useRef(!1);eo(()=>{let ee=rn.init();return ee.then(ve=>(he.current=ve)&&ye(!1)).catch(ve=>(ve==null?void 0:ve.type)!=="cancelation"&&console.error("Monaco initialization: error:",ve)),()=>le.current?je():ee.cancel()}),ot(()=>{var ve,We,$t,Qe;let ee=Nr(he.current,s||o||"",n||l||"",u||a||"");ee!==((ve=le.current)==null?void 0:ve.getModel())&&(T&&$a.set(me,(We=le.current)==null?void 0:We.saveViewState()),($t=le.current)==null||$t.setModel(ee),T&&((Qe=le.current)==null||Qe.restoreViewState($a.get(u))))},[u],M),ot(()=>{var ee;(ee=le.current)==null||ee.updateOptions(b)},[b],M),ot(()=>{!le.current||o===void 0||(le.current.getOption(he.current.editor.EditorOption.readOnly)?le.current.setValue(o):o!==le.current.getValue()&&(Le.current=!0,le.current.executeEdits("",[{range:le.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),le.current.pushUndoStop(),Le.current=!1))},[o],M),ot(()=>{var ve,We;let ee=(ve=le.current)==null?void 0:ve.getModel();ee&&l&&((We=he.current)==null||We.editor.setModelLanguage(ee,l))},[l],M),ot(()=>{var ee;h!==void 0&&((ee=le.current)==null||ee.revealLine(h))},[h],M),ot(()=>{var ee;(ee=he.current)==null||ee.editor.setTheme(m)},[m],M);let lt=F.useCallback(()=>{var ee;if(!(!bt.current||!he.current)&&!Oe.current){Me.current(he.current);let ve=u||a,We=Nr(he.current,o||s||"",n||l||"",ve||"");le.current=(ee=he.current)==null?void 0:ee.editor.create(bt.current,{model:We,automaticLayout:!0,...b},w),T&&le.current.restoreViewState($a.get(ve)),he.current.editor.setTheme(m),h!==void 0&&le.current.revealLine(h),J(!0),Oe.current=!0}},[s,n,a,o,l,u,b,w,T,m,h]);F.useEffect(()=>{M&&zt.current(le.current,he.current)},[M]),F.useEffect(()=>{!G&&!M&&lt()},[G,M,lt]),V.current=o,F.useEffect(()=>{var ee,ve;M&&B&&((ee=Fe.current)==null||ee.dispose(),Fe.current=(ve=le.current)==null?void 0:ve.onDidChangeModelContent(We=>{Le.current||B(le.current.getValue(),We)}))},[M,B]),F.useEffect(()=>{if(M){let ee=he.current.editor.onDidChangeMarkers(ve=>{var $t;let We=($t=le.current.getModel())==null?void 0:$t.uri;if(We&&ve.find(Qe=>Qe.path===We.path)){let Qe=he.current.editor.getModelMarkers({resource:We});A==null||A(Qe)}});return()=>{ee==null||ee.dispose()}}return()=>{}},[M,A]);function je(){var ee,ve;(ee=Fe.current)==null||ee.dispose(),E?T&&$a.set(u,le.current.saveViewState()):(ve=le.current.getModel())==null||ve.dispose(),le.current.dispose()}return F.createElement(Ji,{width:L,height:j,isEditorReady:M,loading:g,_ref:bt,className:P,wrapperProps:R})}var jd=Fd,Bd=F.memo(jd);const ro={keywords:[{name:"or",desc:["Logical OR. Applicable to boolean expressions."],syntax:["expr1 or expr2"],returns:["Boolean value, or series of boolean values."]},{name:"and",desc:["Logical AND. Applicable to boolean expressions."],syntax:["expr1 and expr2"],returns:["Boolean value, or series of boolean values."]},{name:"not",desc:["Logical negation (NOT). Applicable to boolean expressions."],syntax:["not expr1"],returns:["Boolean value, or series of boolean values."]},{name:"if",desc:["If statement defines what block of statements must be executed when conditions of the expression are satisfied.","To have access to and use the if statement, one should specify the version >= 2 of Pine Script® language in the very first line of code, for example: //@version=5","The 4th version of Pine Script® Language allows you to use “else if” syntax.","General code form:"],syntax:[`var_declarationX = if condition
39
+ `},Yi=id(ud)(Vi),dd={config:ld},pd=function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return function(u){return a.reduceRight(function(c,m){return m(c)},u)}};function Ki(s,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&s[a]&&Object.assign(n[a],Ki(s[a],n[a]))}),Hi(Hi({},s),n)}var md={type:"cancelation",msg:"operation is manually canceled"};function en(s){var n=!1,a=new Promise(function(o,u){s.then(function(c){return n?u(md):o(c)}),s.catch(u)});return a.cancel=function(){return n=!0},a}var fd=sd.create({config:nd,isInitialized:!1,resolve:null,reject:null,monaco:null}),Qi=Fu(fd,2),la=Qi[0],Ha=Qi[1];function yd(s){var n=dd.config(s),a=n.monaco,o=Mu(n,["monaco"]);Ha(function(u){return{config:Ki(u.config,o),monaco:a}})}function hd(){var s=la(function(n){var a=n.monaco,o=n.isInitialized,u=n.resolve;return{monaco:a,isInitialized:o,resolve:u}});if(!s.isInitialized){if(Ha({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),en(tn);if(window.monaco&&window.monaco.editor)return Zi(window.monaco),s.resolve(window.monaco),en(tn);pd(_d,bd)(xd)}return en(tn)}function _d(s){return document.body.appendChild(s)}function gd(s){var n=document.createElement("script");return s&&(n.src=s),n}function bd(s){var n=la(function(o){var u=o.config,c=o.reject;return{config:u,reject:c}}),a=gd("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=n.reject,a}function xd(){var s=la(function(a){var o=a.config,u=a.resolve,c=a.reject;return{config:o,resolve:u,reject:c}}),n=window.require;n.config(s.config),n(["vs/editor/editor.main"],function(a){Zi(a),s.resolve(a)},function(a){s.reject(a)})}function Zi(s){la().monaco||Ha({monaco:s})}function wd(){return la(function(s){var n=s.monaco;return n})}var tn=new Promise(function(s,n){return Ha({resolve:s,reject:n})}),rn={config:yd,init:hd,__getMonacoInstance:wd},vd={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},an=vd,Td={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Id=Td;function kd({children:s}){return F.createElement("div",{style:Id.container},s)}var Dd=kd,Ad=Dd;function qd({width:s,height:n,isEditorReady:a,loading:o,_ref:u,className:c,wrapperProps:m}){return F.createElement("section",{style:{...an.wrapper,width:s,height:n},...m},!a&&F.createElement(Ad,null,o),F.createElement("div",{ref:u,style:{...an.fullWidth,...!a&&an.hide},className:c}))}var Cd=qd,Ji=F.memo(Cd);function Sd(s){F.useEffect(s,[])}var eo=Sd;function zd(s,n,a=!0){let o=F.useRef(!0);F.useEffect(o.current||!a?()=>{o.current=!1}:s,n)}var ot=zd;function ca(){}function Nr(s,n,a,o){return Nd(s,o)||Od(s,n,a,o)}function Nd(s,n){return s.editor.getModel(to(s,n))}function Od(s,n,a,o){return s.editor.createModel(n,a,o?to(s,o):void 0)}function to(s,n){return s.Uri.parse(n)}function Pd({original:s,modified:n,language:a,originalLanguage:o,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:m,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:b=!1,theme:g="light",loading:w="Loading...",options:T={},height:R="100%",width:L="100%",className:j,wrapperProps:O={},beforeMount:V=ca,onMount:M=ca}){let[B,E]=F.useState(!1),[k,P]=F.useState(!0),X=F.useRef(null),G=F.useRef(null),ye=F.useRef(null),he=F.useRef(M),le=F.useRef(V),bt=F.useRef(!1);eo(()=>{let Y=rn.init();return Y.then(me=>(G.current=me)&&P(!1)).catch(me=>(me==null?void 0:me.type)!=="cancelation"&&console.error("Monaco initialization: error:",me)),()=>X.current?Fe():Y.cancel()}),ot(()=>{if(X.current&&G.current){let Y=X.current.getOriginalEditor(),me=Nr(G.current,s||"",o||a||"text",c||"");me!==Y.getModel()&&Y.setModel(me)}},[c],B),ot(()=>{if(X.current&&G.current){let Y=X.current.getModifiedEditor(),me=Nr(G.current,n||"",u||a||"text",m||"");me!==Y.getModel()&&Y.setModel(me)}},[m],B),ot(()=>{let Y=X.current.getModifiedEditor();Y.getOption(G.current.editor.EditorOption.readOnly)?Y.setValue(n||""):n!==Y.getValue()&&(Y.executeEdits("",[{range:Y.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),Y.pushUndoStop())},[n],B),ot(()=>{var Y,me;(me=(Y=X.current)==null?void 0:Y.getModel())==null||me.original.setValue(s||"")},[s],B),ot(()=>{let{original:Y,modified:me}=X.current.getModel();G.current.editor.setModelLanguage(Y,o||a||"text"),G.current.editor.setModelLanguage(me,u||a||"text")},[a,o,u],B),ot(()=>{var Y;(Y=G.current)==null||Y.editor.setTheme(g)},[g],B),ot(()=>{var Y;(Y=X.current)==null||Y.updateOptions(T)},[T],B);let zt=F.useCallback(()=>{var Oe;if(!G.current)return;le.current(G.current);let Y=Nr(G.current,s||"",o||a||"text",c||""),me=Nr(G.current,n||"",u||a||"text",m||"");(Oe=X.current)==null||Oe.setModel({original:Y,modified:me})},[a,n,u,s,o,c,m]),Me=F.useCallback(()=>{var Y;!bt.current&&ye.current&&(X.current=G.current.editor.createDiffEditor(ye.current,{automaticLayout:!0,...T}),zt(),(Y=G.current)==null||Y.editor.setTheme(g),E(!0),bt.current=!0)},[T,g,zt]);F.useEffect(()=>{B&&he.current(X.current,G.current)},[B]),F.useEffect(()=>{!k&&!B&&Me()},[k,B,Me]);function Fe(){var me,Oe,Le,lt;let Y=(me=X.current)==null?void 0:me.getModel();h||((Oe=Y==null?void 0:Y.original)==null||Oe.dispose()),b||((Le=Y==null?void 0:Y.modified)==null||Le.dispose()),(lt=X.current)==null||lt.dispose()}return F.createElement(Ji,{width:L,height:R,isEditorReady:B,loading:w,_ref:ye,className:j,wrapperProps:O})}var Ed=Pd,Rd=F.memo(Ed);function Ld(s){let n=F.useRef();return F.useEffect(()=>{n.current=s},[s]),n.current}var Md=Ld,$a=new Map;function Fd({defaultValue:s,defaultLanguage:n,defaultPath:a,value:o,language:u,path:c,theme:m="light",line:h,loading:b="Loading...",options:g={},overrideServices:w={},saveViewState:T=!0,keepCurrentModel:R=!1,width:L="100%",height:j="100%",className:O,wrapperProps:V={},beforeMount:M=ca,onMount:B=ca,onChange:E,onValidate:k=ca}){let[P,X]=F.useState(!1),[G,ye]=F.useState(!0),he=F.useRef(null),le=F.useRef(null),bt=F.useRef(null),zt=F.useRef(B),Me=F.useRef(M),Fe=F.useRef(),Y=F.useRef(o),me=Md(c),Oe=F.useRef(!1),Le=F.useRef(!1);eo(()=>{let ee=rn.init();return ee.then(ve=>(he.current=ve)&&ye(!1)).catch(ve=>(ve==null?void 0:ve.type)!=="cancelation"&&console.error("Monaco initialization: error:",ve)),()=>le.current?je():ee.cancel()}),ot(()=>{var ve,We,$t,Qe;let ee=Nr(he.current,s||o||"",n||u||"",c||a||"");ee!==((ve=le.current)==null?void 0:ve.getModel())&&(T&&$a.set(me,(We=le.current)==null?void 0:We.saveViewState()),($t=le.current)==null||$t.setModel(ee),T&&((Qe=le.current)==null||Qe.restoreViewState($a.get(c))))},[c],P),ot(()=>{var ee;(ee=le.current)==null||ee.updateOptions(g)},[g],P),ot(()=>{!le.current||o===void 0||(le.current.getOption(he.current.editor.EditorOption.readOnly)?le.current.setValue(o):o!==le.current.getValue()&&(Le.current=!0,le.current.executeEdits("",[{range:le.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),le.current.pushUndoStop(),Le.current=!1))},[o],P),ot(()=>{var ve,We;let ee=(ve=le.current)==null?void 0:ve.getModel();ee&&u&&((We=he.current)==null||We.editor.setModelLanguage(ee,u))},[u],P),ot(()=>{var ee;h!==void 0&&((ee=le.current)==null||ee.revealLine(h))},[h],P),ot(()=>{var ee;(ee=he.current)==null||ee.editor.setTheme(m)},[m],P);let lt=F.useCallback(()=>{var ee;if(!(!bt.current||!he.current)&&!Oe.current){Me.current(he.current);let ve=c||a,We=Nr(he.current,o||s||"",n||u||"",ve||"");le.current=(ee=he.current)==null?void 0:ee.editor.create(bt.current,{model:We,automaticLayout:!0,...g},w),T&&le.current.restoreViewState($a.get(ve)),he.current.editor.setTheme(m),h!==void 0&&le.current.revealLine(h),X(!0),Oe.current=!0}},[s,n,a,o,u,c,g,w,T,m,h]);F.useEffect(()=>{P&&zt.current(le.current,he.current)},[P]),F.useEffect(()=>{!G&&!P&&lt()},[G,P,lt]),Y.current=o,F.useEffect(()=>{var ee,ve;P&&E&&((ee=Fe.current)==null||ee.dispose(),Fe.current=(ve=le.current)==null?void 0:ve.onDidChangeModelContent(We=>{Le.current||E(le.current.getValue(),We)}))},[P,E]),F.useEffect(()=>{if(P){let ee=he.current.editor.onDidChangeMarkers(ve=>{var $t;let We=($t=le.current.getModel())==null?void 0:$t.uri;if(We&&ve.find(Qe=>Qe.path===We.path)){let Qe=he.current.editor.getModelMarkers({resource:We});k==null||k(Qe)}});return()=>{ee==null||ee.dispose()}}return()=>{}},[P,k]);function je(){var ee,ve;(ee=Fe.current)==null||ee.dispose(),R?T&&$a.set(c,le.current.saveViewState()):(ve=le.current.getModel())==null||ve.dispose(),le.current.dispose()}return F.createElement(Ji,{width:L,height:j,isEditorReady:P,loading:b,_ref:bt,className:O,wrapperProps:V})}var jd=Fd,Bd=F.memo(jd);const ro={keywords:[{name:"or",desc:["Logical OR. Applicable to boolean expressions."],syntax:["expr1 or expr2"],returns:["Boolean value, or series of boolean values."]},{name:"and",desc:["Logical AND. Applicable to boolean expressions."],syntax:["expr1 and expr2"],returns:["Boolean value, or series of boolean values."]},{name:"not",desc:["Logical negation (NOT). Applicable to boolean expressions."],syntax:["not expr1"],returns:["Boolean value, or series of boolean values."]},{name:"if",desc:["If statement defines what block of statements must be executed when conditions of the expression are satisfied.","To have access to and use the if statement, one should specify the version >= 2 of Pine Script® language in the very first line of code, for example: //@version=5","The 4th version of Pine Script® Language allows you to use “else if” syntax.","General code form:"],syntax:[`var_declarationX = if condition
40
40
  var_decl_then0
41
41
  var_decl_then1
42
42
 
@@ -97,49 +97,49 @@ else
97
97
  \${2:local_block_1}
98
98
  else
99
99
  \${3:local_block_2}
100
- `,kind:"statement"},{label:"for...to",insertText:"for ${1:i} = 1 to ${2:to_num} by 1\n ${3:local_block}\n",kind:"loop"},{label:"for...in",insertText:"for [${1:index}, ${2:value}] in ${3:arr}\n ${4:local_block}\n",kind:"loop"},{label:"while",insertText:"while ${1:condition}\n ${2:local_block}\n",kind:"statement"},{label:"switch",insertText:"switch ${1:condition}\n ${2:value_1} => ${3:local_block_1}\n ${4:value_2} => ${5:local_block_2}\n => ${6:default_local_block}\n",kind:"statement"}],ao=["in","as","continue","break","else","to","by"],we={keywords:"keyword",functions:"built-in function",variables:"built-in variable",methods:"built-in method",types:"built-in type",annotations:"annotation",constants:"built-in constant",namespace:"namespace",userDefinedVariable:"user-defined variable",userDefinedType:"user-defined type",field:"field",userDefinedMethod:"user-defined method",userDefinedFunction:"user-defined function",returns:"returns",parameter:"parameter",namespaceDesc:"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.",toTriggerParameterHints:"to trigger parameters hint"},Wd={clickOnKeywordForMoreHelp:"`click` on keyword for more help"};function Hd(){const s={},n={};return Object.keys(ro).reduce((a,o)=>{const l=ro[o],u=we[o],{mapObj:m,keys:h}=$d(l,u);return a.keyMapList[o]=m,a.keyList[o]=h,a},{keyList:s,keyMapList:n}),{keyList:s,keyMapList:n}}function $d(s,n){const a=new Map,o=[];return s.forEach(l=>{var m;l.title=n;const u=l.originalName||l.name;u!=="for...in"&&(a.has(u)?(m=a.get(u))==null||m.push(l):(o.push(u),a.set(u,[l])))}),{mapObj:a,keys:o}}const{keyList:so,keyMapList:gt}=Hd(),ua=[{title:"Variables",key:"variables",prefix:"var"},{title:"Constants",key:"constants",prefix:"const"},{title:"Functions",key:"functions",prefix:"fun"},{title:"Keywords",key:"keywords",prefix:"kw"},{title:"Types",key:"types",prefix:"type"},{title:"Operators",key:"operators",prefix:"op"},{title:"Annotations",key:"annotations",prefix:"an"}];function Xd(s){return s.replace(/<.*>/,"")}class Gd{constructor(){Object.defineProperty(this,"delimiter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"paragraphBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.delimiter="***",this.lineBreak=`
100
+ `,kind:"statement"},{label:"for...to",insertText:"for ${1:i} = 1 to ${2:to_num} by 1\n ${3:local_block}\n",kind:"loop"},{label:"for...in",insertText:"for [${1:index}, ${2:value}] in ${3:arr}\n ${4:local_block}\n",kind:"loop"},{label:"while",insertText:"while ${1:condition}\n ${2:local_block}\n",kind:"statement"},{label:"switch",insertText:"switch ${1:condition}\n ${2:value_1} => ${3:local_block_1}\n ${4:value_2} => ${5:local_block_2}\n => ${6:default_local_block}\n",kind:"statement"}],ao=["in","as","continue","break","else","to","by"],we={keywords:"keyword",functions:"built-in function",variables:"built-in variable",methods:"built-in method",types:"built-in type",annotations:"annotation",constants:"built-in constant",namespace:"namespace",userDefinedVariable:"user-defined variable",userDefinedType:"user-defined type",field:"field",userDefinedMethod:"user-defined method",userDefinedFunction:"user-defined function",returns:"returns",parameter:"parameter",namespaceDesc:"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.",toTriggerParameterHints:"to trigger parameters hint"},Wd={clickOnKeywordForMoreHelp:"`click` on keyword for more help"};function Hd(){const s={},n={};return Object.keys(ro).reduce((a,o)=>{const u=ro[o],c=we[o],{mapObj:m,keys:h}=$d(u,c);return a.keyMapList[o]=m,a.keyList[o]=h,a},{keyList:s,keyMapList:n}),{keyList:s,keyMapList:n}}function $d(s,n){const a=new Map,o=[];return s.forEach(u=>{var m;u.title=n;const c=u.originalName||u.name;c!=="for...in"&&(a.has(c)?(m=a.get(c))==null||m.push(u):(o.push(c),a.set(c,[u])))}),{mapObj:a,keys:o}}const{keyList:so,keyMapList:gt}=Hd(),ua=[{title:"Variables",key:"variables",prefix:"var"},{title:"Constants",key:"constants",prefix:"const"},{title:"Functions",key:"functions",prefix:"fun"},{title:"Keywords",key:"keywords",prefix:"kw"},{title:"Types",key:"types",prefix:"type"},{title:"Operators",key:"operators",prefix:"op"},{title:"Annotations",key:"annotations",prefix:"an"}];function Xd(s){return s.replace(/<.*>/,"")}class Gd{constructor(){Object.defineProperty(this,"delimiter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"paragraphBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.delimiter="***",this.lineBreak=`
101
101
  `,this.paragraphBreak=`
102
102
 
103
103
  `}bold(n){return`**${n}**`}italic(n){return`*${n.replace(">","&gt;").replace("<","&lt;")}*`}pineCode(n){return`\`\`\`
104
104
  ${n}
105
- \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,a){return`[${n}](${a.href})`}}const be=new Gd;function Vd(s,n=0,a=!0){const o=s[n];if(!o)return"";const l=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:u,title:m,desc:h,type:g,syntax:b,returns:w,remarks:T,fields:E}=o,L=[`${be.bold(u)} (${m})`];if(s.length>1&&L.push(be.italic(`+${s.length-1} overloads`)),L.push(be.delimiter),h&&L.push(be.paragraph(Array.isArray(h)?h.join(be.lineBreak):h||"")),g&&L.push(be.paragraph(be.bold(_t.Type),be.italic(g))),b&&b.length&&L.push(be.paragraph(be.bold(_t.Syntax),be.pineCode(b.join(be.lineBreak)))),w&&L.push(be.paragraph(be.bold(_t.Returns),be.lineBreak,w.join(be.lineBreak))),T&&T.length&&s.length<=1){let j="";typeof T=="string"?j=T:j=T.join(be.lineBreak)||"",j.length<200&&L.push(be.paragraph(be.bold(_t.Remarks),be.lineBreak,j))}if(E){const j=[];for(const P of E){const R=P.desc?` - ${P.desc}`:"";j.push(`${P.name} (${P.type}) ${R}`)}L.push(be.paragraph(be.bold(_t.Fields),be.lineBreak,j.join(be.paragraphBreak)))}return a&&L.push(be.italic(`${be.code(l?"⌘":"Ctrl")} + ${Wd.clickOnKeywordForMoreHelp}`)),L.join(L.length===2?" ":be.lineBreak)}const sn="tcc_cursor_position",Yd=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Kd(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Qd(s){const n=s.getContribution("editor.contrib.contextmenu"),a=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return a.apply(n,arguments).filter(function(l){return!Yd.includes(l.id)})}}class Zd{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=be,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._nextIsBracket=!1}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}set nextIsBracket(n){this._nextIsBracket=n}get nextIsBracket(){return this._nextIsBracket}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(n){return this._funcArgsCache.get(n)||this._userFuncArgsCache.get(n)}getSuggestions(n){return n?this._namespaceCache.get(n)||this._userNamespaceCache.get(n):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(n,a,o,l){this._initUserDefind();const u=this._mergeTreeSlices(this._generateTreeSlice(gt.methods,"method"),this._generateTreeSlice(l,"method"));this._getMethodNamespaceCache(u),this._userMethods=l,this._userTypes=a,this._userFunctions=n;const m=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(n,a,o){const l=this._getUserVariableCompletionItems(o),u=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(n,void 0,!0);return[...u,...m,...l,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:a,types:o,functions:l}=this._builtinSubtreeCache,u=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(a),h=this._getTypeCompletionItems(o),g=this._getFunctionCompletionItems(l),b=this._getSnippetsCompletionsList();return[...u,...m,...h,...g,...this._outermostNsItems.values(),...b]}_getNodeKey(n,a){return`${a}_${n}`}_mergeTreeSlices(...n){const a=new Map;for(const o of n)for(const[l,u]of o){const m=a.get(l);m?a.set(l,{...m,children:this._mergeTreeSlices(u.children,m.children)}):a.set(l,u)}return a}_mergeCompletions(n,a){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...a]):this._namespaceCache.set(n,a)}_mergeUserCompletions(n,a){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...a]):this._userNamespaceCache.set(n,a)}_generateTreeSlice(n,a){const o=new Map;for(const[l,u]of n){const[m,...h]=l.split("."),g=h.length>0,b=o.get(this._getNodeKey(m,g?"ns":a));let w=new Map,T=u.map(L=>({...L,name:l})),E=this._getNodeKey(l,a);if(g&&a!=="type"){const L=new Map([[h.join("."),u]]);T=[{name:m,title:we.namespace}],E=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(L,a)}b&&(T=[{name:m,title:we.namespace}],w=this._mergeTreeSlices(b.children,w)),o.set(E,{value:T,children:w})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:a,constants:o,types:l,functions:u}=gt;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(l,"type"),functions:this._generateTreeSlice(u,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(n,a){const o=[],l=[];for(const[u,m]of n){const{value:h,children:g}=m;if(u.startsWith("ns")){const b=this._getNamespaceCompletionItem(h[0]);if(a){l.push({...b});const T=`${a}.${b.label}`;b.label=T,b.insertText=T}const w=this._getVariableCompletionItems(g,b.label);a||this._outermostNsItems.set(u,b),o.push(...w)}else{const b=this._getVariableCompletionItem(h[0],a?3:2);if(a){l.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}o.push(b)}}return l.length&&a&&this._mergeCompletions(a,l),o}_setUserVariableSubItems(n,a){var b,w,T,E;let o=[];const l=Kd(n.type||""),u=this._methodNamespaceCache.get(l),m=a?`${a}.${n.name}`:n.name;u&&(o=u.filter(L=>{var H;const j=`${l}.${L.label}`,P=gt.methods.get(j)||this._userMethods.get(j),R=P==null?void 0:P.some(S=>!S.thisType||S.thisType[0].includes("<>")||S.thisType.includes(n.type||""));if(R&&P){const S=this._getNamedArgumentsCompletionList(((H=P[0])==null?void 0:H.args)||[]),B=`${m}.${L.label}`;this._userFuncArgsCache.set(B,S),this._methodFuncs.set(B,P)}return R}));const{types:h}=gt,g=((w=(b=this._userTypes.get(l))==null?void 0:b[0])==null?void 0:w.fields)||((E=(T=h.get(l))==null?void 0:T[0])==null?void 0:E.fields);if(g)for(const L of g){const j=L.name,P=L.type,R=this._getInstanceTypeCompletionItemProp({name:j,type:P});this._setUserVariableSubItems({name:j,type:P},n.name),o.push({...R})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,a){const o=[],l=[];for(const[u,m]of n){const{value:h,children:g}=m;if(this._setUserVariableSubItems(h[0]),u.startsWith("ns")){const b=this._getNamespaceCompletionItem(h[0]);if(a){l.push({...b});const T=`${a}.${b.label}`;b.label=T,b.insertText=T}const w=this._getUserVariableCompletionItems(g,b.label);a||this._userOutermostNsItems.set(u,b),o.push(...w)}else{const b=this._getVariableCompletionItem(h[0],a?2:1,!1);if(a){l.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}o.push(b)}}return l.length&&a&&this._mergeUserCompletions(a,l),o}_getTypeCompletionItems(n,a=!1){const o=[];for(const[,l]of n){const{value:u}=l,m=a?this._getCustomTypeCompletionItem(u[0]):this._getTypeCompletionItem(u[0]);o.push(m)}return o}_getKeywordCompletionItems(n){const a=[];for(const[,o]of n){const{value:l}=o,u=this._getKeywordCompletionItem(l[0]);a.push(u)}return a}_getMethodNamespaceCache(n,a){const o=[];for(const[l,u]of n){const{value:m,children:h}=u;if(l.startsWith("ns")){const g=this._getNamespaceCompletionItem(m[0]);if(a){o.push({...g});const b=`${a}.${g.label}`;g.label=b,g.insertText=b}this._getMethodNamespaceCache(h,g.label)}else{const g=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(g.detail=`${g.detail} (+${m.length-1} overloads)`),a){o.push({...g});const{label:b}=g;g.label=`${a}.${b}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${b}\r`}}}a&&this._methodNamespaceCache.set(a,o)}_getFunctionCompletionItems(n,a,o=!1){const l=[],u=[];for(const[m,h]of n){const{value:g,children:b}=h;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(g[0]);if(a){u.push({...w});const E=`${a}.${w.label}`;w.label=E,w.insertText=E}const T=this._getFunctionCompletionItems(b,w.label,o);a||(o?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),l.push(...T)}else{const w=this._getFunctionCompletionItem(g[0],a?3:2,o);if(g.length>1&&(w.detail=`${w.detail} (+${g.length-1} overloads)`),a){u.push({...w});const{label:T}=w;w.label=`${a}.${T}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${T}\r`}l.push(w)}}return u.length&&a&&(o?this._mergeUserCompletions(a,u):this._mergeCompletions(a,u)),l}_getSnippetsCompletionsList(){return Ud.map(n=>{const{label:a,kind:o,insertText:l}=n,u=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(l.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${u} ${o})`,insertText:l,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:Se.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(n,a){for(const[o,l]of n){const{name:u}=l.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(l.children,a?`${a}.${u}`:u);else{const m=new Map;l.value.reduce((b,w)=>{const T=w.args;return T&&T.length&&T.forEach(E=>{b.set(E.name,E)}),b},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${u}`:u;this._funcArgsCache.set(g,h)}}}_getUserFuncArgumentsCompletionItemsToCache(n,a){for(const[o,l]of n){const{name:u}=l.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(l.children,a?`${a}.${u}`:u);else{const m=new Map;l.value.reduce((b,w)=>{const T=w.args;return T&&T.length&&T.forEach(E=>{b.set(E.name,E)}),b},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${u}`:u;this._userFuncArgsCache.set(g,h)}}}_getNamedArgumentsCompletionList(n){return n.map(a=>{const{name:o,desc:l,displayType:u}=a,m=`${o} = `,h=Array.isArray(l)?l.join(this._formatter.delimiter):l||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(we.Description),this._formatter.lineBreak,h)},insertText:m,detail:`(${we.parameter}) ${we.types} ${u}`,kind:Se.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,a=2,o=!0){const l=this._extractExamples(n),u=this._extractDescription(n),m=[this._createDescriptionSection(u)];l.length?m.push(this._createExampleSection(l)):n.syntax&&n.syntax.length&&m.push(this._createSyntaxSection(n.syntax));const h={value:m.join(this._formatter.lineBreak)},g=o?we.variables:we.userDefinedVariable;return{documentation:h,label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Variable,sortText:`${a}_${n.name}`,detail:`(${g}) ${n.type}`}}_getKeywordCompletionItem(n,a=2){const o=this._extractExamples(n),l=this._extractDescription(n),u=[this._createDescriptionSection(l)];return o.length?u.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&u.push(this._createSyntaxSection(n.syntax)),{documentation:{value:u.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`${a}_${n.name}`,detail:`(${we.keywords})`}}_getTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${we.types})`}}_getCustomTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${we.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const a=this._extractDescription(n),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,a)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${we.field}) ${n.type}`}}_getFunctionCompletionItem(n,a=2,o=!0){var L;const l=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((L=n.syntax[0].split("→").pop())==null?void 0:L.trim()),u=this._extractExamples(n),m=this._extractDescription(n),h=[this._createDescriptionSection(m)];u.length?h.push(this._createExampleSection(u)):n.syntax&&n.syntax.length&&h.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&h.push(this._createReturnSection(n.returns));const g={value:h.join(this._formatter.lineBreak)},b=n.name,w=o?we.functions:we.userDefinedFunction,T=n.template,E=T?`${Xd(b)}<\${1}>`:b;return{documentation:g,label:T?`${b.replace(/<.+>/,"")}<type>`:b,kind:Se.languages.CompletionItemKind.Function,sortText:`${a}_${b}`,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:E+this.bracketsPostfix,originInsertText:E,detail:`(${w}) ${we.returns} ${l}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(n,a=2){const o=[this._createDescriptionSection(we.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${we.namespace}) ${n.name}`,insertText:n.name,sortText:`${a}_${n.name}`,kind:Se.languages.CompletionItemKind.Module}}_extractExamples(n){let a;return n.examples||n.detailedDesc&&((a=n.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(n){return Array.isArray(n.desc)?n.desc.join(this._formatter.lineBreak):n.desc||""}_createExampleSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,n)}}const Mt=new Zd;class Jd{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._overloadsFuncs=[]}setUserDefined(n,a){const{functions:o,variables:l,types:u,methods:m}=n;o&&(this._userFunctions=o),l&&(this._userVariables=l),u&&(this._userTypes=u),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(n,a,o,l){let u=(o==null?void 0:o.getLineContent(a))||"";const m=u.indexOf("//");if(this._removeString(u).indexOf("//")!==-1&&m<=n)return;u=u+" ";const h=this._getVariablesDocVal(u,n,a);if(h){if(h.isBuildIn){const w=o==null?void 0:o.getWordAtPosition(l||new Se.Position(a,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:a,startColumn:(w==null?void 0:w.endColumn)||0,endLineNumber:a,endColumn:((w==null?void 0:w.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return h}const g=this._getFuncsDocVal(u,n,a);if(g)return g;const b=u.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(b){const w=this._matchContent(b,u,n);if(w){const T=this._getBuildInOther(w.name);if(T)return{docValue:T,isBuildIn:!0,index:0};{const E=this._getBuildInFunc(`${w.name}<type>`);if(E)return{docValue:E,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(n){return gt.functions.get(n)}_getBuildInMethod(n){return gt.methods.get(n)}_getBuildInOther(n){const{keywords:a,variables:o,constants:l,types:u}=gt;return a.get(n)||o.get(n)||l.get(n)||u.get(n)}parseCurrentInputFunc(n,a=!1,o=!1){let l=n.length-1,u=0,m=a,h=o;for(;l>=0;){const g=n.charAt(l);if(l-=1,/['"]/.test(g)){const b=g;if(g==="'"){if(m){m=!1;continue}}else if(h){h=!1;continue}for(;l>=0;){const w=n.charAt(l);if(l-=1,w===b)break}}if(!(m||h)&&(/\)/.test(g)&&(u+=1),/\(/.test(g))){if(u>0){u-=1;continue}let b="";for(;l>=0;){const w=n.charAt(l);if(l-=1,!(/\s/.test(w)&&!b)){if(/[^\w.]/.test(w))break;b=w+b}}if(b)return{funcName:b,startIndex:l+1}}}}parseCurrentInputFuncAndArg(n,a=!1,o=!1){const{funcName:l,startIndex:u}=this.parseCurrentInputFunc(n,a,o)||{};if(l&&typeof u=="number"){let m=n.slice(u+l.length).trim().slice(1),h=-1;if(a&&(h=m.lastIndexOf("'")),o){const w=m.lastIndexOf('"');(w!==-1&&w<h||h===-1)&&(h=w)}h!==-1&&(m=m.substring(0,h));const b=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const T=w.trim().split("=");return T.length<=1?"":T[0].trim()});return{funcName:l,args:b}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,a,o){const l=this._removeString(n).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(l){const u=this._matchContent(l,n,a);if(u){const m={docValue:void 0,isBuildIn:!0,index:0},h=this._getBuildInOther(u.name);if(h)return m.docValue=h,m;const g=this._getUserVariablesDocVal(u.name,a,o);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1});const b=this._getUserTypesDocVal(u.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const w=this._getTypesAndFileds(n,u.name,a,o);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(n,a,o){const m=[...this._userVariables.get(n)||[]].sort((h,g)=>(g.scope||0)-(h.scope||0)).find(h=>{const g=h.range;return((g==null?void 0:g.startColumn)||0)<=a&&((g==null?void 0:g.startLineNumber)||0)<=o&&((g==null?void 0:g.endLineNumber)||0)>=o});if(m)return m.title=we.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const a=this._userTypes.get(n);if(a)return a[0].title=we.userDefinedType,a}_getTypesAndFileds(n,a,o,l){var u,m;if(a.includes(".")){const h=a.split(".");let g=h[0],b,w=null,T=n.indexOf(a,o-a.length)+1,E=T+g.length-1;for(const L of h.slice(1)){if(!w){const j=T<=o&&E>=o,P=this._getUserVariablesDocVal(g,o,l);if(j&&P)return P;w=P==null?void 0:P.type}if(w){b=w,T=E+2,E=E+L.length+1;const j=this._userTypes.get(w)||gt.types.get(w),P=(m=(u=j==null?void 0:j[0])==null?void 0:u.fields)==null?void 0:m.find(R=>R.name===L);if(P&&T<=o&&E>=o)return{name:`${w}.${L}`,desc:P.desc,type:this._arrayTypeTransform(P.type),title:we.field};w=P==null?void 0:P.type}else g=`${g}.${L}`,E=E+L.length+1}return b}}_getFuncsDocVal(n,a,o){const l=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(l){const u=this._matchContent(l,n,a);if(u){const m={docValue:void 0,isBuildIn:!0,endIndex:u.endIndex,index:0},h=this._getBuildInFunc(u.name);if(h)return m.index=this._getOverloadsFuncIndex(h,a,u.name,o),Object.assign(m,{docValue:h});const g=this._getUserFuncsDocVal(u.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const b=this._getUserVarFuncsDocVal(n,u.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,a,o,l){if(n.length>1){const u=this._overloadsFuncs.find(m=>m.name===o&&m.line===l&&m.startColumn<=a&&m.endColumn>=a);if(u)return u.index}return 0}_getUserFuncsDocVal(n){const a=this._userFunctions.get(n);if(a)return a[0].title=we.userDefinedFunction,a}_getUserMethodsDocVal(n){const a=this._userMethods.get(n);if(a)return a[0].title=we.userDefinedMethod,a}_getUserVarFuncsDocVal(n,a,o,l){var u;if(a.includes(".")){const m=a.split("."),h=this._getTypesAndFileds(n,a,o,l);if(typeof h=="string"){const b=`${this._arrayTypeTransform(h).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(b);if(w){const T=this._getOverloadsFuncIndex(w,o,b,l);return{...w[0],name:b,index:T}}return(u=this._getUserMethodsDocVal(b))==null?void 0:u[0]}else return h}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,a,o){let l=0;for(const u of n){l=o-u.length;const m=a.indexOf(u,l);if(l=m+u.length,this._judgeVal(a,m,l)&&m+1<=o&&l>=o)return{name:u,endIndex:l}}}_judgeVal(n,a,o){const l=n.charAt(a-1),u=/[\w\d."']/;if(u.test(l))return!1;const m=n.charAt(o);return!u.test(m)}}const Or=new Jd;var Xa={exports:{}};/**
105
+ \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,a){return`[${n}](${a.href})`}}const be=new Gd;function Vd(s,n=0,a=!0){const o=s[n];if(!o)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:c,title:m,desc:h,type:b,syntax:g,returns:w,remarks:T,fields:R}=o,L=[`${be.bold(c)} (${m})`];if(s.length>1&&L.push(be.italic(`+${s.length-1} overloads`)),L.push(be.delimiter),h&&L.push(be.paragraph(Array.isArray(h)?h.join(be.lineBreak):h||"")),b&&L.push(be.paragraph(be.bold(_t.Type),be.italic(b))),g&&g.length&&L.push(be.paragraph(be.bold(_t.Syntax),be.pineCode(g.join(be.lineBreak)))),w&&L.push(be.paragraph(be.bold(_t.Returns),be.lineBreak,w.join(be.lineBreak))),T&&T.length&&s.length<=1){let j="";typeof T=="string"?j=T:j=T.join(be.lineBreak)||"",j.length<200&&L.push(be.paragraph(be.bold(_t.Remarks),be.lineBreak,j))}if(R){const j=[];for(const O of R){const V=O.desc?` - ${O.desc}`:"";j.push(`${O.name} (${O.type}) ${V}`)}L.push(be.paragraph(be.bold(_t.Fields),be.lineBreak,j.join(be.paragraphBreak)))}return a&&L.push(be.italic(`${be.code(u?"⌘":"Ctrl")} + ${Wd.clickOnKeywordForMoreHelp}`)),L.join(L.length===2?" ":be.lineBreak)}const sn="tcc_cursor_position",Yd=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Kd(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Qd(s){const n=s.getContribution("editor.contrib.contextmenu"),a=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return a.apply(n,arguments).filter(function(u){return!Yd.includes(u.id)})}}class Zd{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=be,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._nextIsBracket=!1}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}set nextIsBracket(n){this._nextIsBracket=n}get nextIsBracket(){return this._nextIsBracket}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(n){return this._funcArgsCache.get(n)||this._userFuncArgsCache.get(n)}getSuggestions(n){return n?this._namespaceCache.get(n)||this._userNamespaceCache.get(n):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(n,a,o,u){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(gt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(c),this._userMethods=u,this._userTypes=a,this._userFunctions=n;const m=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(n,a,o){const u=this._getUserVariableCompletionItems(o),c=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(n,void 0,!0);return[...c,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:a,types:o,functions:u}=this._builtinSubtreeCache,c=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(a),h=this._getTypeCompletionItems(o),b=this._getFunctionCompletionItems(u),g=this._getSnippetsCompletionsList();return[...c,...m,...h,...b,...this._outermostNsItems.values(),...g]}_getNodeKey(n,a){return`${a}_${n}`}_mergeTreeSlices(...n){const a=new Map;for(const o of n)for(const[u,c]of o){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(c.children,m.children)}):a.set(u,c)}return a}_mergeCompletions(n,a){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...a]):this._namespaceCache.set(n,a)}_mergeUserCompletions(n,a){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...a]):this._userNamespaceCache.set(n,a)}_generateTreeSlice(n,a){const o=new Map;for(const[u,c]of n){const[m,...h]=u.split("."),b=h.length>0,g=o.get(this._getNodeKey(m,b?"ns":a));let w=new Map,T=c.map(L=>({...L,name:u})),R=this._getNodeKey(u,a);if(b&&a!=="type"){const L=new Map([[h.join("."),c]]);T=[{name:m,title:we.namespace}],R=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(L,a)}g&&(T=[{name:m,title:we.namespace}],w=this._mergeTreeSlices(g.children,w)),o.set(R,{value:T,children:w})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:a,constants:o,types:u,functions:c}=gt;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(c,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const T=`${a}.${g.label}`;g.label=T,g.insertText=T}const w=this._getVariableCompletionItems(b,g.label);a||this._outermostNsItems.set(c,g),o.push(...w)}else{const g=this._getVariableCompletionItem(h[0],a?3:2);if(a){u.push({...g});const{label:w}=g;g.label=`${a}.${w}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${w}\r`}o.push(g)}}return u.length&&a&&this._mergeCompletions(a,u),o}_setUserVariableSubItems(n,a){var g,w,T,R;let o=[];const u=Kd(n.type||""),c=this._methodNamespaceCache.get(u),m=a?`${a}.${n.name}`:n.name;c&&(o=c.filter(L=>{var M;const j=`${u}.${L.label}`,O=gt.methods.get(j)||this._userMethods.get(j),V=O==null?void 0:O.some(B=>!B.thisType||B.thisType[0].includes("<>")||B.thisType.includes(n.type||""));if(V&&O){const B=this._getNamedArgumentsCompletionList(((M=O[0])==null?void 0:M.args)||[]),E=`${m}.${L.label}`;this._userFuncArgsCache.set(E,B),this._methodFuncs.set(E,O)}return V}));const{types:h}=gt,b=((w=(g=this._userTypes.get(u))==null?void 0:g[0])==null?void 0:w.fields)||((R=(T=h.get(u))==null?void 0:T[0])==null?void 0:R.fields);if(b)for(const L of b){const j=L.name,O=L.type,V=this._getInstanceTypeCompletionItemProp({name:j,type:O});this._setUserVariableSubItems({name:j,type:O},n.name),o.push({...V})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(this._setUserVariableSubItems(h[0]),c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const T=`${a}.${g.label}`;g.label=T,g.insertText=T}const w=this._getUserVariableCompletionItems(b,g.label);a||this._userOutermostNsItems.set(c,g),o.push(...w)}else{const g=this._getVariableCompletionItem(h[0],a?2:1,!1);if(a){u.push({...g});const{label:w}=g;g.label=`${a}.${w}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${w}\r`}o.push(g)}}return u.length&&a&&this._mergeUserCompletions(a,u),o}_getTypeCompletionItems(n,a=!1){const o=[];for(const[,u]of n){const{value:c}=u,m=a?this._getCustomTypeCompletionItem(c[0]):this._getTypeCompletionItem(c[0]);o.push(m)}return o}_getKeywordCompletionItems(n){const a=[];for(const[,o]of n){const{value:u}=o,c=this._getKeywordCompletionItem(u[0]);a.push(c)}return a}_getMethodNamespaceCache(n,a){const o=[];for(const[u,c]of n){const{value:m,children:h}=c;if(u.startsWith("ns")){const b=this._getNamespaceCompletionItem(m[0]);if(a){o.push({...b});const g=`${a}.${b.label}`;b.label=g,b.insertText=g}this._getMethodNamespaceCache(h,b.label)}else{const b=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(b.detail=`${b.detail} (+${m.length-1} overloads)`),a){o.push({...b});const{label:g}=b;b.label=`${a}.${g}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${g}\r`}}}a&&this._methodNamespaceCache.set(a,o)}_getFunctionCompletionItems(n,a,o=!1){const u=[],c=[];for(const[m,h]of n){const{value:b,children:g}=h;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(b[0]);if(a){c.push({...w});const R=`${a}.${w.label}`;w.label=R,w.insertText=R}const T=this._getFunctionCompletionItems(g,w.label,o);a||(o?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...T)}else{const w=this._getFunctionCompletionItem(b[0],a?3:2,o);if(b.length>1&&(w.detail=`${w.detail} (+${b.length-1} overloads)`),a){c.push({...w});const{label:T}=w;w.label=`${a}.${T}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${T}\r`}u.push(w)}}return c.length&&a&&(o?this._mergeUserCompletions(a,c):this._mergeCompletions(a,c)),u}_getSnippetsCompletionsList(){return Ud.map(n=>{const{label:a,kind:o,insertText:u}=n,c=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${c} ${o})`,insertText:u,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:Se.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,w)=>{const T=w.args;return T&&T.length&&T.forEach(R=>{g.set(R.name,R)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._funcArgsCache.set(b,h)}}}_getUserFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,w)=>{const T=w.args;return T&&T.length&&T.forEach(R=>{g.set(R.name,R)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._userFuncArgsCache.set(b,h)}}}_getNamedArgumentsCompletionList(n){return n.map(a=>{const{name:o,desc:u,displayType:c}=a,m=`${o} = `,h=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(we.Description),this._formatter.lineBreak,h)},insertText:m,detail:`(${we.parameter}) ${we.types} ${c}`,kind:Se.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,a=2,o=!0){const u=this._extractExamples(n),c=this._extractDescription(n),m=[this._createDescriptionSection(c)];u.length?m.push(this._createExampleSection(u)):n.syntax&&n.syntax.length&&m.push(this._createSyntaxSection(n.syntax));const h={value:m.join(this._formatter.lineBreak)},b=o?we.variables:we.userDefinedVariable;return{documentation:h,label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Variable,sortText:`${a}_${n.name}`,detail:`(${b}) ${n.type}`}}_getKeywordCompletionItem(n,a=2){const o=this._extractExamples(n),u=this._extractDescription(n),c=[this._createDescriptionSection(u)];return o.length?c.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&c.push(this._createSyntaxSection(n.syntax)),{documentation:{value:c.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`${a}_${n.name}`,detail:`(${we.keywords})`}}_getTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${we.types})`}}_getCustomTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${we.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const a=this._extractDescription(n),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,a)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${we.field}) ${n.type}`}}_getFunctionCompletionItem(n,a=2,o=!0){var L;const u=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((L=n.syntax[0].split("→").pop())==null?void 0:L.trim()),c=this._extractExamples(n),m=this._extractDescription(n),h=[this._createDescriptionSection(m)];c.length?h.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&h.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&h.push(this._createReturnSection(n.returns));const b={value:h.join(this._formatter.lineBreak)},g=n.name,w=o?we.functions:we.userDefinedFunction,T=n.template,R=T?`${Xd(g)}<\${1}>`:g;return{documentation:b,label:T?`${g.replace(/<.+>/,"")}<type>`:g,kind:Se.languages.CompletionItemKind.Function,sortText:`${a}_${g}`,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:R+this.bracketsPostfix,originInsertText:R,detail:`(${w}) ${we.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(n,a=2){const o=[this._createDescriptionSection(we.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${we.namespace}) ${n.name}`,insertText:n.name,sortText:`${a}_${n.name}`,kind:Se.languages.CompletionItemKind.Module}}_extractExamples(n){let a;return n.examples||n.detailedDesc&&((a=n.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(n){return Array.isArray(n.desc)?n.desc.join(this._formatter.lineBreak):n.desc||""}_createExampleSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,n)}}const Mt=new Zd;class Jd{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._overloadsFuncs=[]}setUserDefined(n,a){const{functions:o,variables:u,types:c,methods:m}=n;o&&(this._userFunctions=o),u&&(this._userVariables=u),c&&(this._userTypes=c),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(n,a,o,u){let c=(o==null?void 0:o.getLineContent(a))||"";const m=c.indexOf("//");if(this._removeString(c).indexOf("//")!==-1&&m<=n)return;c=c+" ";const h=this._getVariablesDocVal(c,n,a);if(h){if(h.isBuildIn){const w=o==null?void 0:o.getWordAtPosition(u||new Se.Position(a,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:a,startColumn:(w==null?void 0:w.endColumn)||0,endLineNumber:a,endColumn:((w==null?void 0:w.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return h}const b=this._getFuncsDocVal(c,n,a);if(b)return b;const g=c.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(g){const w=this._matchContent(g,c,n);if(w){const T=this._getBuildInOther(w.name);if(T)return{docValue:T,isBuildIn:!0,index:0};{const R=this._getBuildInFunc(`${w.name}<type>`);if(R)return{docValue:R,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(n){return gt.functions.get(n)}_getBuildInMethod(n){return gt.methods.get(n)}_getBuildInOther(n){const{keywords:a,variables:o,constants:u,types:c}=gt;return a.get(n)||o.get(n)||u.get(n)||c.get(n)}parseCurrentInputFunc(n,a=!1,o=!1){let u=n.length-1,c=0,m=a,h=o;for(;u>=0;){const b=n.charAt(u);if(u-=1,/['"]/.test(b)){const g=b;if(b==="'"){if(m){m=!1;continue}}else if(h){h=!1;continue}for(;u>=0;){const w=n.charAt(u);if(u-=1,w===g)break}}if(!(m||h)&&(/\)/.test(b)&&(c+=1),/\(/.test(b))){if(c>0){c-=1;continue}let g="";for(;u>=0;){const w=n.charAt(u);if(u-=1,!(/\s/.test(w)&&!g)){if(/[^\w.]/.test(w))break;g=w+g}}if(g)return{funcName:g,startIndex:u+1}}}}parseCurrentInputFuncAndArg(n,a=!1,o=!1){const{funcName:u,startIndex:c}=this.parseCurrentInputFunc(n,a,o)||{};if(u&&typeof c=="number"){let m=n.slice(c+u.length).trim().slice(1),h=-1;if(a&&(h=m.lastIndexOf("'")),o){const w=m.lastIndexOf('"');(w!==-1&&w<h||h===-1)&&(h=w)}h!==-1&&(m=m.substring(0,h));const g=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const T=w.trim().split("=");return T.length<=1?"":T[0].trim()});return{funcName:u,args:g}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,a,o){const u=this._removeString(n).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,index:0},h=this._getBuildInOther(c.name);if(h)return m.docValue=h,m;const b=this._getUserVariablesDocVal(c.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1});const g=this._getUserTypesDocVal(c.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const w=this._getTypesAndFileds(n,c.name,a,o);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(n,a,o){const m=[...this._userVariables.get(n)||[]].sort((h,b)=>(b.scope||0)-(h.scope||0)).find(h=>{const b=h.range;return((b==null?void 0:b.startColumn)||0)<=a&&((b==null?void 0:b.startLineNumber)||0)<=o&&((b==null?void 0:b.endLineNumber)||0)>=o});if(m)return m.title=we.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const a=this._userTypes.get(n);if(a)return a[0].title=we.userDefinedType,a}_getTypesAndFileds(n,a,o,u){var c,m;if(a.includes(".")){const h=a.split(".");let b=h[0],g,w=null,T=n.indexOf(a,o-a.length)+1,R=T+b.length-1;for(const L of h.slice(1)){if(!w){const j=T<=o&&R>=o,O=this._getUserVariablesDocVal(b,o,u);if(j&&O)return O;w=O==null?void 0:O.type}if(w){g=w,T=R+2,R=R+L.length+1;const j=this._userTypes.get(w)||gt.types.get(w),O=(m=(c=j==null?void 0:j[0])==null?void 0:c.fields)==null?void 0:m.find(V=>V.name===L);if(O&&T<=o&&R>=o)return{name:`${w}.${L}`,desc:O.desc,type:this._arrayTypeTransform(O.type),title:we.field};w=O==null?void 0:O.type}else b=`${b}.${L}`,R=R+L.length+1}return g}}_getFuncsDocVal(n,a,o){const u=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},h=this._getBuildInFunc(c.name);if(h)return m.index=this._getOverloadsFuncIndex(h,a,c.name,o),Object.assign(m,{docValue:h});const b=this._getUserFuncsDocVal(c.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(n,c.name,a,o);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,a,o,u){if(n.length>1){const c=this._overloadsFuncs.find(m=>m.name===o&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(c)return c.index}return 0}_getUserFuncsDocVal(n){const a=this._userFunctions.get(n);if(a)return a[0].title=we.userDefinedFunction,a}_getUserMethodsDocVal(n){const a=this._userMethods.get(n);if(a)return a[0].title=we.userDefinedMethod,a}_getUserVarFuncsDocVal(n,a,o,u){var c;if(a.includes(".")){const m=a.split("."),h=this._getTypesAndFileds(n,a,o,u);if(typeof h=="string"){const g=`${this._arrayTypeTransform(h).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(g);if(w){const T=this._getOverloadsFuncIndex(w,o,g,u);return{...w[0],name:g,index:T}}return(c=this._getUserMethodsDocVal(g))==null?void 0:c[0]}else return h}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,a,o){let u=0;for(const c of n){u=o-c.length;const m=a.indexOf(c,u);if(u=m+c.length,this._judgeVal(a,m,u)&&m+1<=o&&u>=o)return{name:c,endIndex:u}}}_judgeVal(n,a,o){const u=n.charAt(a-1),c=/[\w\d."']/;if(c.test(u))return!1;const m=n.charAt(o);return!c.test(m)}}const Or=new Jd;var Xa={exports:{}};/**
106
106
  * @license
107
107
  * Lodash <https://lodash.com/>
108
108
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
109
109
  * Released under MIT license <https://lodash.com/license>
110
110
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
111
111
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
112
- */Xa.exports,function(s,n){(function(){var a,o="4.17.21",l=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",h="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",b=500,w="__lodash_placeholder__",T=1,E=2,L=4,j=1,P=2,R=1,H=2,S=4,B=8,A=16,M=32,J=64,G=128,ye=256,he=512,le=30,bt="...",zt=800,Me=16,Fe=1,V=2,me=3,Oe=1/0,Le=9007199254740991,lt=17976931348623157e292,je=NaN,ee=4294967295,ve=ee-1,We=ee>>>1,$t=[["ary",G],["bind",R],["bindKey",H],["curry",B],["curryRight",A],["flip",he],["partial",M],["partialRight",J],["rearg",ye]],Qe="[object Arguments]",ir="[object Array]",fa="[object AsyncFunction]",jt="[object Boolean]",Xt="[object Date]",Er="[object DOMException]",Rr="[object Error]",xr="[object Function]",as="[object GeneratorFunction]",ct="[object Map]",Bt="[object Number]",Lr="[object Null]",xt="[object Object]",ya="[object Promise]",Mr="[object Proxy]",wr="[object RegExp]",ut="[object Set]",Gt="[object String]",Fr="[object Symbol]",vn="[object Undefined]",or="[object WeakMap]",ss="[object WeakSet]",Nt="[object ArrayBuffer]",lr="[object DataView]",jr="[object Float32Array]",Br="[object Float64Array]",vr="[object Int8Array]",ha="[object Int16Array]",_a="[object Int32Array]",ga="[object Uint8Array]",ba="[object Uint8ClampedArray]",xa="[object Uint16Array]",wa="[object Uint32Array]",Tn=/\b__p \+= '';/g,va=/\b(__p \+=) '' \+/g,ns=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vt=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,Ta=RegExp(Vt.source),is=RegExp(Ur.source),In=/<%-([\s\S]+?)%>/g,os=/<%([\s\S]+?)%>/g,ls=/<%=([\s\S]+?)%>/g,cs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,us=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ia=/[\\^$.*+?()[\]{}|]/g,ds=RegExp(Ia.source),ka=/^\s+/,Dn=/\s/,An=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qn=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,N=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U=/[()=,{}\[\]\/\s]/,Z=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/\w*$/,ce=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,qe=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ot=/($^)/,ps=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",dm="\\u0300-\\u036f",pm="\\ufe20-\\ufe2f",mm="\\u20d0-\\u20ff",nl=dm+pm+mm,il="\\u2700-\\u27bf",ol="a-z\\xdf-\\xf6\\xf8-\\xff",fm="\\xac\\xb1\\xd7\\xf7",ym="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hm="\\u2000-\\u206f",_m=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ll="A-Z\\xc0-\\xd6\\xd8-\\xde",cl="\\ufe0e\\ufe0f",ul=fm+ym+hm+_m,Cn="['’]",gm="["+rt+"]",dl="["+ul+"]",ms="["+nl+"]",pl="\\d+",bm="["+il+"]",ml="["+ol+"]",fl="[^"+rt+ul+pl+il+ol+ll+"]",Sn="\\ud83c[\\udffb-\\udfff]",xm="(?:"+ms+"|"+Sn+")",yl="[^"+rt+"]",zn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",Wr="["+ll+"]",hl="\\u200d",_l="(?:"+ml+"|"+fl+")",wm="(?:"+Wr+"|"+fl+")",gl="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",bl="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",xl=xm+"?",wl="["+cl+"]?",vm="(?:"+hl+"(?:"+[yl,zn,Nn].join("|")+")"+wl+xl+")*",Tm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Im="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vl=wl+xl+vm,km="(?:"+[bm,zn,Nn].join("|")+")"+vl,Dm="(?:"+[yl+ms+"?",ms,zn,Nn,gm].join("|")+")",Am=RegExp(Cn,"g"),qm=RegExp(ms,"g"),On=RegExp(Sn+"(?="+Sn+")|"+Dm+vl,"g"),Cm=RegExp([Wr+"?"+ml+"+"+gl+"(?="+[dl,Wr,"$"].join("|")+")",wm+"+"+bl+"(?="+[dl,Wr+_l,"$"].join("|")+")",Wr+"?"+_l+"+"+gl,Wr+"+"+bl,Im,Tm,pl,km].join("|"),"g"),Sm=RegExp("["+hl+rt+nl+cl+"]"),zm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Om=-1,ke={};ke[jr]=ke[Br]=ke[vr]=ke[ha]=ke[_a]=ke[ga]=ke[ba]=ke[xa]=ke[wa]=!0,ke[Qe]=ke[ir]=ke[Nt]=ke[jt]=ke[lr]=ke[Xt]=ke[Rr]=ke[xr]=ke[ct]=ke[Bt]=ke[xt]=ke[wr]=ke[ut]=ke[Gt]=ke[or]=!1;var Ie={};Ie[Qe]=Ie[ir]=Ie[Nt]=Ie[lr]=Ie[jt]=Ie[Xt]=Ie[jr]=Ie[Br]=Ie[vr]=Ie[ha]=Ie[_a]=Ie[ct]=Ie[Bt]=Ie[xt]=Ie[wr]=Ie[ut]=Ie[Gt]=Ie[Fr]=Ie[ga]=Ie[ba]=Ie[xa]=Ie[wa]=!0,Ie[Rr]=Ie[xr]=Ie[or]=!1;var Pm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Em={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Lm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mm=parseFloat,Fm=parseInt,Tl=typeof aa=="object"&&aa&&aa.Object===Object&&aa,jm=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Tl||jm||Function("return this")(),Pn=n&&!n.nodeType&&n,Tr=Pn&&!0&&s&&!s.nodeType&&s,Il=Tr&&Tr.exports===Pn,En=Il&&Tl.process,wt=function(){try{var x=Tr&&Tr.require&&Tr.require("util").types;return x||En&&En.binding&&En.binding("util")}catch{}}(),kl=wt&&wt.isArrayBuffer,Dl=wt&&wt.isDate,Al=wt&&wt.isMap,ql=wt&&wt.isRegExp,Cl=wt&&wt.isSet,Sl=wt&&wt.isTypedArray;function dt(x,D,I){switch(I.length){case 0:return x.call(D);case 1:return x.call(D,I[0]);case 2:return x.call(D,I[0],I[1]);case 3:return x.call(D,I[0],I[1],I[2])}return x.apply(D,I)}function Bm(x,D,I,$){for(var te=-1,fe=x==null?0:x.length;++te<fe;){var Be=x[te];D($,Be,I(Be),x)}return $}function vt(x,D){for(var I=-1,$=x==null?0:x.length;++I<$&&D(x[I],I,x)!==!1;);return x}function Um(x,D){for(var I=x==null?0:x.length;I--&&D(x[I],I,x)!==!1;);return x}function zl(x,D){for(var I=-1,$=x==null?0:x.length;++I<$;)if(!D(x[I],I,x))return!1;return!0}function cr(x,D){for(var I=-1,$=x==null?0:x.length,te=0,fe=[];++I<$;){var Be=x[I];D(Be,I,x)&&(fe[te++]=Be)}return fe}function fs(x,D){var I=x==null?0:x.length;return!!I&&Hr(x,D,0)>-1}function Rn(x,D,I){for(var $=-1,te=x==null?0:x.length;++$<te;)if(I(D,x[$]))return!0;return!1}function De(x,D){for(var I=-1,$=x==null?0:x.length,te=Array($);++I<$;)te[I]=D(x[I],I,x);return te}function ur(x,D){for(var I=-1,$=D.length,te=x.length;++I<$;)x[te+I]=D[I];return x}function Ln(x,D,I,$){var te=-1,fe=x==null?0:x.length;for($&&fe&&(I=x[++te]);++te<fe;)I=D(I,x[te],te,x);return I}function Wm(x,D,I,$){var te=x==null?0:x.length;for($&&te&&(I=x[--te]);te--;)I=D(I,x[te],te,x);return I}function Mn(x,D){for(var I=-1,$=x==null?0:x.length;++I<$;)if(D(x[I],I,x))return!0;return!1}var Hm=Fn("length");function $m(x){return x.split("")}function Xm(x){return x.match(N)||[]}function Nl(x,D,I){var $;return I(x,function(te,fe,Be){if(D(te,fe,Be))return $=fe,!1}),$}function ys(x,D,I,$){for(var te=x.length,fe=I+($?1:-1);$?fe--:++fe<te;)if(D(x[fe],fe,x))return fe;return-1}function Hr(x,D,I){return D===D?sf(x,D,I):ys(x,Ol,I)}function Gm(x,D,I,$){for(var te=I-1,fe=x.length;++te<fe;)if($(x[te],D))return te;return-1}function Ol(x){return x!==x}function Pl(x,D){var I=x==null?0:x.length;return I?Bn(x,D)/I:je}function Fn(x){return function(D){return D==null?a:D[x]}}function jn(x){return function(D){return x==null?a:x[D]}}function El(x,D,I,$,te){return te(x,function(fe,Be,Te){I=$?($=!1,fe):D(I,fe,Be,Te)}),I}function Vm(x,D){var I=x.length;for(x.sort(D);I--;)x[I]=x[I].value;return x}function Bn(x,D){for(var I,$=-1,te=x.length;++$<te;){var fe=D(x[$]);fe!==a&&(I=I===a?fe:I+fe)}return I}function Un(x,D){for(var I=-1,$=Array(x);++I<x;)$[I]=D(I);return $}function Ym(x,D){return De(D,function(I){return[I,x[I]]})}function Rl(x){return x&&x.slice(0,jl(x)+1).replace(ka,"")}function pt(x){return function(D){return x(D)}}function Wn(x,D){return De(D,function(I){return x[I]})}function Da(x,D){return x.has(D)}function Ll(x,D){for(var I=-1,$=x.length;++I<$&&Hr(D,x[I],0)>-1;);return I}function Ml(x,D){for(var I=x.length;I--&&Hr(D,x[I],0)>-1;);return I}function Km(x,D){for(var I=x.length,$=0;I--;)x[I]===D&&++$;return $}var Qm=jn(Pm),Zm=jn(Em);function Jm(x){return"\\"+Lm[x]}function ef(x,D){return x==null?a:x[D]}function $r(x){return Sm.test(x)}function tf(x){return zm.test(x)}function rf(x){for(var D,I=[];!(D=x.next()).done;)I.push(D.value);return I}function Hn(x){var D=-1,I=Array(x.size);return x.forEach(function($,te){I[++D]=[te,$]}),I}function Fl(x,D){return function(I){return x(D(I))}}function dr(x,D){for(var I=-1,$=x.length,te=0,fe=[];++I<$;){var Be=x[I];(Be===D||Be===w)&&(x[I]=w,fe[te++]=I)}return fe}function hs(x){var D=-1,I=Array(x.size);return x.forEach(function($){I[++D]=$}),I}function af(x){var D=-1,I=Array(x.size);return x.forEach(function($){I[++D]=[$,$]}),I}function sf(x,D,I){for(var $=I-1,te=x.length;++$<te;)if(x[$]===D)return $;return-1}function nf(x,D,I){for(var $=I+1;$--;)if(x[$]===D)return $;return $}function Xr(x){return $r(x)?lf(x):Hm(x)}function Pt(x){return $r(x)?cf(x):$m(x)}function jl(x){for(var D=x.length;D--&&Dn.test(x.charAt(D)););return D}var of=jn(Rm);function lf(x){for(var D=On.lastIndex=0;On.test(x);)++D;return D}function cf(x){return x.match(On)||[]}function uf(x){return x.match(Cm)||[]}var df=function x(D){D=D==null?Xe:Gr.defaults(Xe.Object(),D,Gr.pick(Xe,Nm));var I=D.Array,$=D.Date,te=D.Error,fe=D.Function,Be=D.Math,Te=D.Object,$n=D.RegExp,pf=D.String,Tt=D.TypeError,_s=I.prototype,mf=fe.prototype,Vr=Te.prototype,gs=D["__core-js_shared__"],bs=mf.toString,xe=Vr.hasOwnProperty,ff=0,Bl=function(){var e=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),xs=Vr.toString,yf=bs.call(Te),hf=Xe._,_f=$n("^"+bs.call(xe).replace(Ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ws=Il?D.Buffer:a,pr=D.Symbol,vs=D.Uint8Array,Ul=ws?ws.allocUnsafe:a,Ts=Fl(Te.getPrototypeOf,Te),Wl=Te.create,Hl=Vr.propertyIsEnumerable,Is=_s.splice,$l=pr?pr.isConcatSpreadable:a,Aa=pr?pr.iterator:a,Ir=pr?pr.toStringTag:a,ks=function(){try{var e=Cr(Te,"defineProperty");return e({},"",{}),e}catch{}}(),gf=D.clearTimeout!==Xe.clearTimeout&&D.clearTimeout,bf=$&&$.now!==Xe.Date.now&&$.now,xf=D.setTimeout!==Xe.setTimeout&&D.setTimeout,Ds=Be.ceil,As=Be.floor,Xn=Te.getOwnPropertySymbols,wf=ws?ws.isBuffer:a,Xl=D.isFinite,vf=_s.join,Tf=Fl(Te.keys,Te),Ue=Be.max,Ye=Be.min,If=$.now,kf=D.parseInt,Gl=Be.random,Df=_s.reverse,Gn=Cr(D,"DataView"),qa=Cr(D,"Map"),Vn=Cr(D,"Promise"),Yr=Cr(D,"Set"),Ca=Cr(D,"WeakMap"),Sa=Cr(Te,"create"),qs=Ca&&new Ca,Kr={},Af=Sr(Gn),qf=Sr(qa),Cf=Sr(Vn),Sf=Sr(Yr),zf=Sr(Ca),Cs=pr?pr.prototype:a,za=Cs?Cs.valueOf:a,Vl=Cs?Cs.toString:a;function d(e){if(Ne(e)&&!re(e)&&!(e instanceof ue)){if(e instanceof It)return e;if(xe.call(e,"__wrapped__"))return Yc(e)}return new It(e)}var Qr=function(){function e(){}return function(t){if(!Ce(t))return{};if(Wl)return Wl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Ss(){}function It(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}d.templateSettings={escape:In,evaluate:os,interpolate:ls,variable:"",imports:{_:d}},d.prototype=Ss.prototype,d.prototype.constructor=d,It.prototype=Qr(Ss.prototype),It.prototype.constructor=It;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function Nf(){var e=new ue(this.__wrapped__);return e.__actions__=at(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=at(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=at(this.__views__),e}function Of(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Pf(){var e=this.__wrapped__.value(),t=this.__dir__,r=re(e),i=t<0,c=r?e.length:0,p=Xy(0,c,this.__views__),f=p.start,_=p.end,v=_-f,q=i?_:f-1,C=this.__iteratees__,z=C.length,W=0,X=Ye(v,this.__takeCount__);if(!r||!i&&c==v&&X==v)return gc(e,this.__actions__);var K=[];e:for(;v--&&W<X;){q+=t;for(var se=-1,Q=e[q];++se<z;){var oe=C[se],de=oe.iteratee,yt=oe.type,et=de(Q);if(yt==V)Q=et;else if(!et){if(yt==Fe)continue e;break e}}K[W++]=Q}return K}ue.prototype=Qr(Ss.prototype),ue.prototype.constructor=ue;function kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Ef(){this.__data__=Sa?Sa(null):{},this.size=0}function Rf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Lf(e){var t=this.__data__;if(Sa){var r=t[e];return r===g?a:r}return xe.call(t,e)?t[e]:a}function Mf(e){var t=this.__data__;return Sa?t[e]!==a:xe.call(t,e)}function Ff(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sa&&t===a?g:t,this}kr.prototype.clear=Ef,kr.prototype.delete=Rf,kr.prototype.get=Lf,kr.prototype.has=Mf,kr.prototype.set=Ff;function Yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function jf(){this.__data__=[],this.size=0}function Bf(e){var t=this.__data__,r=zs(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Is.call(t,r,1),--this.size,!0}function Uf(e){var t=this.__data__,r=zs(t,e);return r<0?a:t[r][1]}function Wf(e){return zs(this.__data__,e)>-1}function Hf(e,t){var r=this.__data__,i=zs(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Yt.prototype.clear=jf,Yt.prototype.delete=Bf,Yt.prototype.get=Uf,Yt.prototype.has=Wf,Yt.prototype.set=Hf;function Kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function $f(){this.size=0,this.__data__={hash:new kr,map:new(qa||Yt),string:new kr}}function Xf(e){var t=Ws(this,e).delete(e);return this.size-=t?1:0,t}function Gf(e){return Ws(this,e).get(e)}function Vf(e){return Ws(this,e).has(e)}function Yf(e,t){var r=Ws(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Kt.prototype.clear=$f,Kt.prototype.delete=Xf,Kt.prototype.get=Gf,Kt.prototype.has=Vf,Kt.prototype.set=Yf;function Dr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Kt;++t<r;)this.add(e[t])}function Kf(e){return this.__data__.set(e,g),this}function Qf(e){return this.__data__.has(e)}Dr.prototype.add=Dr.prototype.push=Kf,Dr.prototype.has=Qf;function Et(e){var t=this.__data__=new Yt(e);this.size=t.size}function Zf(){this.__data__=new Yt,this.size=0}function Jf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ey(e){return this.__data__.get(e)}function ty(e){return this.__data__.has(e)}function ry(e,t){var r=this.__data__;if(r instanceof Yt){var i=r.__data__;if(!qa||i.length<l-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kt(i)}return r.set(e,t),this.size=r.size,this}Et.prototype.clear=Zf,Et.prototype.delete=Jf,Et.prototype.get=ey,Et.prototype.has=ty,Et.prototype.set=ry;function Yl(e,t){var r=re(e),i=!r&&zr(e),c=!r&&!i&&_r(e),p=!r&&!i&&!c&&ta(e),f=r||i||c||p,_=f?Un(e.length,pf):[],v=_.length;for(var q in e)(t||xe.call(e,q))&&!(f&&(q=="length"||c&&(q=="offset"||q=="parent")||p&&(q=="buffer"||q=="byteLength"||q=="byteOffset")||er(q,v)))&&_.push(q);return _}function Kl(e){var t=e.length;return t?e[ni(0,t-1)]:a}function ay(e,t){return Hs(at(e),Ar(t,0,e.length))}function sy(e){return Hs(at(e))}function Yn(e,t,r){(r!==a&&!Rt(e[t],r)||r===a&&!(t in e))&&Qt(e,t,r)}function Na(e,t,r){var i=e[t];(!(xe.call(e,t)&&Rt(i,r))||r===a&&!(t in e))&&Qt(e,t,r)}function zs(e,t){for(var r=e.length;r--;)if(Rt(e[r][0],t))return r;return-1}function ny(e,t,r,i){return mr(e,function(c,p,f){t(i,c,r(c),f)}),i}function Ql(e,t){return e&&Wt(t,He(t),e)}function iy(e,t){return e&&Wt(t,nt(t),e)}function Qt(e,t,r){t=="__proto__"&&ks?ks(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Kn(e,t){for(var r=-1,i=t.length,c=I(i),p=e==null;++r<i;)c[r]=p?a:Si(e,t[r]);return c}function Ar(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function kt(e,t,r,i,c,p){var f,_=t&T,v=t&E,q=t&L;if(r&&(f=c?r(e,i,c,p):r(e)),f!==a)return f;if(!Ce(e))return e;var C=re(e);if(C){if(f=Vy(e),!_)return at(e,f)}else{var z=Ke(e),W=z==xr||z==as;if(_r(e))return wc(e,_);if(z==xt||z==Qe||W&&!c){if(f=v||W?{}:jc(e),!_)return v?Ly(e,iy(f,e)):Ry(e,Ql(f,e))}else{if(!Ie[z])return c?e:{};f=Yy(e,z,_)}}p||(p=new Et);var X=p.get(e);if(X)return X;p.set(e,f),yu(e)?e.forEach(function(Q){f.add(kt(Q,t,r,Q,e,p))}):mu(e)&&e.forEach(function(Q,oe){f.set(oe,kt(Q,t,r,oe,e,p))});var K=q?v?hi:yi:v?nt:He,se=C?a:K(e);return vt(se||e,function(Q,oe){se&&(oe=Q,Q=e[oe]),Na(f,oe,kt(Q,t,r,oe,e,p))}),f}function oy(e){var t=He(e);return function(r){return Zl(r,e,t)}}function Zl(e,t,r){var i=r.length;if(e==null)return!i;for(e=Te(e);i--;){var c=r[i],p=t[c],f=e[c];if(f===a&&!(c in e)||!p(f))return!1}return!0}function Jl(e,t,r){if(typeof e!="function")throw new Tt(m);return Fa(function(){e.apply(a,r)},t)}function Oa(e,t,r,i){var c=-1,p=fs,f=!0,_=e.length,v=[],q=t.length;if(!_)return v;r&&(t=De(t,pt(r))),i?(p=Rn,f=!1):t.length>=l&&(p=Da,f=!1,t=new Dr(t));e:for(;++c<_;){var C=e[c],z=r==null?C:r(C);if(C=i||C!==0?C:0,f&&z===z){for(var W=q;W--;)if(t[W]===z)continue e;v.push(C)}else p(t,z,i)||v.push(C)}return v}var mr=Dc(Ut),ec=Dc(Zn,!0);function ly(e,t){var r=!0;return mr(e,function(i,c,p){return r=!!t(i,c,p),r}),r}function Ns(e,t,r){for(var i=-1,c=e.length;++i<c;){var p=e[i],f=t(p);if(f!=null&&(_===a?f===f&&!ft(f):r(f,_)))var _=f,v=p}return v}function cy(e,t,r,i){var c=e.length;for(r=ae(r),r<0&&(r=-r>c?0:c+r),i=i===a||i>c?c:ae(i),i<0&&(i+=c),i=r>i?0:_u(i);r<i;)e[r++]=t;return e}function tc(e,t){var r=[];return mr(e,function(i,c,p){t(i,c,p)&&r.push(i)}),r}function Ge(e,t,r,i,c){var p=-1,f=e.length;for(r||(r=Qy),c||(c=[]);++p<f;){var _=e[p];t>0&&r(_)?t>1?Ge(_,t-1,r,i,c):ur(c,_):i||(c[c.length]=_)}return c}var Qn=Ac(),rc=Ac(!0);function Ut(e,t){return e&&Qn(e,t,He)}function Zn(e,t){return e&&rc(e,t,He)}function Os(e,t){return cr(t,function(r){return tr(e[r])})}function qr(e,t){t=yr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Ht(t[r++])];return r&&r==i?e:a}function ac(e,t,r){var i=t(e);return re(e)?i:ur(i,r(e))}function Ze(e){return e==null?e===a?vn:Lr:Ir&&Ir in Te(e)?$y(e):sh(e)}function Jn(e,t){return e>t}function uy(e,t){return e!=null&&xe.call(e,t)}function dy(e,t){return e!=null&&t in Te(e)}function py(e,t,r){return e>=Ye(t,r)&&e<Ue(t,r)}function ei(e,t,r){for(var i=r?Rn:fs,c=e[0].length,p=e.length,f=p,_=I(p),v=1/0,q=[];f--;){var C=e[f];f&&t&&(C=De(C,pt(t))),v=Ye(C.length,v),_[f]=!r&&(t||c>=120&&C.length>=120)?new Dr(f&&C):a}C=e[0];var z=-1,W=_[0];e:for(;++z<c&&q.length<v;){var X=C[z],K=t?t(X):X;if(X=r||X!==0?X:0,!(W?Da(W,K):i(q,K,r))){for(f=p;--f;){var se=_[f];if(!(se?Da(se,K):i(e[f],K,r)))continue e}W&&W.push(K),q.push(X)}}return q}function my(e,t,r,i){return Ut(e,function(c,p,f){t(i,r(c),p,f)}),i}function Pa(e,t,r){t=yr(t,e),e=Hc(e,t);var i=e==null?e:e[Ht(At(t))];return i==null?a:dt(i,e,r)}function sc(e){return Ne(e)&&Ze(e)==Qe}function fy(e){return Ne(e)&&Ze(e)==Nt}function yy(e){return Ne(e)&&Ze(e)==Xt}function Ea(e,t,r,i,c){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:hy(e,t,r,i,Ea,c)}function hy(e,t,r,i,c,p){var f=re(e),_=re(t),v=f?ir:Ke(e),q=_?ir:Ke(t);v=v==Qe?xt:v,q=q==Qe?xt:q;var C=v==xt,z=q==xt,W=v==q;if(W&&_r(e)){if(!_r(t))return!1;f=!0,C=!1}if(W&&!C)return p||(p=new Et),f||ta(e)?Lc(e,t,r,i,c,p):Wy(e,t,v,r,i,c,p);if(!(r&j)){var X=C&&xe.call(e,"__wrapped__"),K=z&&xe.call(t,"__wrapped__");if(X||K){var se=X?e.value():e,Q=K?t.value():t;return p||(p=new Et),c(se,Q,r,i,p)}}return W?(p||(p=new Et),Hy(e,t,r,i,c,p)):!1}function _y(e){return Ne(e)&&Ke(e)==ct}function ti(e,t,r,i){var c=r.length,p=c,f=!i;if(e==null)return!p;for(e=Te(e);c--;){var _=r[c];if(f&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++c<p;){_=r[c];var v=_[0],q=e[v],C=_[1];if(f&&_[2]){if(q===a&&!(v in e))return!1}else{var z=new Et;if(i)var W=i(q,C,v,e,t,z);if(!(W===a?Ea(C,q,j|P,i,z):W))return!1}}return!0}function nc(e){if(!Ce(e)||Jy(e))return!1;var t=tr(e)?_f:$e;return t.test(Sr(e))}function gy(e){return Ne(e)&&Ze(e)==wr}function by(e){return Ne(e)&&Ke(e)==ut}function xy(e){return Ne(e)&&Ks(e.length)&&!!ke[Ze(e)]}function ic(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?re(e)?cc(e[0],e[1]):lc(e):qu(e)}function ri(e){if(!Ma(e))return Tf(e);var t=[];for(var r in Te(e))xe.call(e,r)&&r!="constructor"&&t.push(r);return t}function wy(e){if(!Ce(e))return ah(e);var t=Ma(e),r=[];for(var i in e)i=="constructor"&&(t||!xe.call(e,i))||r.push(i);return r}function ai(e,t){return e<t}function oc(e,t){var r=-1,i=st(e)?I(e.length):[];return mr(e,function(c,p,f){i[++r]=t(c,p,f)}),i}function lc(e){var t=gi(e);return t.length==1&&t[0][2]?Uc(t[0][0],t[0][1]):function(r){return r===e||ti(r,e,t)}}function cc(e,t){return xi(e)&&Bc(t)?Uc(Ht(e),t):function(r){var i=Si(r,e);return i===a&&i===t?zi(r,e):Ea(t,i,j|P)}}function Ps(e,t,r,i,c){e!==t&&Qn(t,function(p,f){if(c||(c=new Et),Ce(p))vy(e,t,f,r,Ps,i,c);else{var _=i?i(vi(e,f),p,f+"",e,t,c):a;_===a&&(_=p),Yn(e,f,_)}},nt)}function vy(e,t,r,i,c,p,f){var _=vi(e,r),v=vi(t,r),q=f.get(v);if(q){Yn(e,r,q);return}var C=p?p(_,v,r+"",e,t,f):a,z=C===a;if(z){var W=re(v),X=!W&&_r(v),K=!W&&!X&&ta(v);C=v,W||X||K?re(_)?C=_:Pe(_)?C=at(_):X?(z=!1,C=wc(v,!0)):K?(z=!1,C=vc(v,!0)):C=[]:ja(v)||zr(v)?(C=_,zr(_)?C=gu(_):(!Ce(_)||tr(_))&&(C=jc(v))):z=!1}z&&(f.set(v,C),c(C,v,i,p,f),f.delete(v)),Yn(e,r,C)}function uc(e,t){var r=e.length;if(r)return t+=t<0?r:0,er(t,r)?e[t]:a}function dc(e,t,r){t.length?t=De(t,function(p){return re(p)?function(f){return qr(f,p.length===1?p[0]:p)}:p}):t=[it];var i=-1;t=De(t,pt(Y()));var c=oc(e,function(p,f,_){var v=De(t,function(q){return q(p)});return{criteria:v,index:++i,value:p}});return Vm(c,function(p,f){return Ey(p,f,r)})}function Ty(e,t){return pc(e,t,function(r,i){return zi(e,i)})}function pc(e,t,r){for(var i=-1,c=t.length,p={};++i<c;){var f=t[i],_=qr(e,f);r(_,f)&&Ra(p,yr(f,e),_)}return p}function Iy(e){return function(t){return qr(t,e)}}function si(e,t,r,i){var c=i?Gm:Hr,p=-1,f=t.length,_=e;for(e===t&&(t=at(t)),r&&(_=De(e,pt(r)));++p<f;)for(var v=0,q=t[p],C=r?r(q):q;(v=c(_,C,v,i))>-1;)_!==e&&Is.call(_,v,1),Is.call(e,v,1);return e}function mc(e,t){for(var r=e?t.length:0,i=r-1;r--;){var c=t[r];if(r==i||c!==p){var p=c;er(c)?Is.call(e,c,1):li(e,c)}}return e}function ni(e,t){return e+As(Gl()*(t-e+1))}function ky(e,t,r,i){for(var c=-1,p=Ue(Ds((t-e)/(r||1)),0),f=I(p);p--;)f[i?p:++c]=e,e+=r;return f}function ii(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=As(t/2),t&&(e+=e);while(t);return r}function ne(e,t){return Ti(Wc(e,t,it),e+"")}function Dy(e){return Kl(ra(e))}function Ay(e,t){var r=ra(e);return Hs(r,Ar(t,0,r.length))}function Ra(e,t,r,i){if(!Ce(e))return e;t=yr(t,e);for(var c=-1,p=t.length,f=p-1,_=e;_!=null&&++c<p;){var v=Ht(t[c]),q=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(c!=f){var C=_[v];q=i?i(C,v,_):a,q===a&&(q=Ce(C)?C:er(t[c+1])?[]:{})}Na(_,v,q),_=_[v]}return e}var fc=qs?function(e,t){return qs.set(e,t),e}:it,qy=ks?function(e,t){return ks(e,"toString",{configurable:!0,enumerable:!1,value:Oi(t),writable:!0})}:it;function Cy(e){return Hs(ra(e))}function Dt(e,t,r){var i=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var p=I(c);++i<c;)p[i]=e[i+t];return p}function Sy(e,t){var r;return mr(e,function(i,c,p){return r=t(i,c,p),!r}),!!r}function Es(e,t,r){var i=0,c=e==null?i:e.length;if(typeof t=="number"&&t===t&&c<=We){for(;i<c;){var p=i+c>>>1,f=e[p];f!==null&&!ft(f)&&(r?f<=t:f<t)?i=p+1:c=p}return c}return oi(e,t,it,r)}function oi(e,t,r,i){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var f=t!==t,_=t===null,v=ft(t),q=t===a;c<p;){var C=As((c+p)/2),z=r(e[C]),W=z!==a,X=z===null,K=z===z,se=ft(z);if(f)var Q=i||K;else q?Q=K&&(i||W):_?Q=K&&W&&(i||!X):v?Q=K&&W&&!X&&(i||!se):X||se?Q=!1:Q=i?z<=t:z<t;Q?c=C+1:p=C}return Ye(p,ve)}function yc(e,t){for(var r=-1,i=e.length,c=0,p=[];++r<i;){var f=e[r],_=t?t(f):f;if(!r||!Rt(_,v)){var v=_;p[c++]=f===0?0:f}}return p}function hc(e){return typeof e=="number"?e:ft(e)?je:+e}function mt(e){if(typeof e=="string")return e;if(re(e))return De(e,mt)+"";if(ft(e))return Vl?Vl.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function fr(e,t,r){var i=-1,c=fs,p=e.length,f=!0,_=[],v=_;if(r)f=!1,c=Rn;else if(p>=l){var q=t?null:By(e);if(q)return hs(q);f=!1,c=Da,v=new Dr}else v=t?[]:_;e:for(;++i<p;){var C=e[i],z=t?t(C):C;if(C=r||C!==0?C:0,f&&z===z){for(var W=v.length;W--;)if(v[W]===z)continue e;t&&v.push(z),_.push(C)}else c(v,z,r)||(v!==_&&v.push(z),_.push(C))}return _}function li(e,t){return t=yr(t,e),e=Hc(e,t),e==null||delete e[Ht(At(t))]}function _c(e,t,r,i){return Ra(e,t,r(qr(e,t)),i)}function Rs(e,t,r,i){for(var c=e.length,p=i?c:-1;(i?p--:++p<c)&&t(e[p],p,e););return r?Dt(e,i?0:p,i?p+1:c):Dt(e,i?p+1:0,i?c:p)}function gc(e,t){var r=e;return r instanceof ue&&(r=r.value()),Ln(t,function(i,c){return c.func.apply(c.thisArg,ur([i],c.args))},r)}function ci(e,t,r){var i=e.length;if(i<2)return i?fr(e[0]):[];for(var c=-1,p=I(i);++c<i;)for(var f=e[c],_=-1;++_<i;)_!=c&&(p[c]=Oa(p[c]||f,e[_],t,r));return fr(Ge(p,1),t,r)}function bc(e,t,r){for(var i=-1,c=e.length,p=t.length,f={};++i<c;){var _=i<p?t[i]:a;r(f,e[i],_)}return f}function ui(e){return Pe(e)?e:[]}function di(e){return typeof e=="function"?e:it}function yr(e,t){return re(e)?e:xi(e,t)?[e]:Vc(ge(e))}var zy=ne;function hr(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:Dt(e,t,r)}var xc=gf||function(e){return Xe.clearTimeout(e)};function wc(e,t){if(t)return e.slice();var r=e.length,i=Ul?Ul(r):new e.constructor(r);return e.copy(i),i}function pi(e){var t=new e.constructor(e.byteLength);return new vs(t).set(new vs(e)),t}function Ny(e,t){var r=t?pi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Oy(e){var t=new e.constructor(e.source,_e.exec(e));return t.lastIndex=e.lastIndex,t}function Py(e){return za?Te(za.call(e)):{}}function vc(e,t){var r=t?pi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Tc(e,t){if(e!==t){var r=e!==a,i=e===null,c=e===e,p=ft(e),f=t!==a,_=t===null,v=t===t,q=ft(t);if(!_&&!q&&!p&&e>t||p&&f&&v&&!_&&!q||i&&f&&v||!r&&v||!c)return 1;if(!i&&!p&&!q&&e<t||q&&r&&c&&!i&&!p||_&&r&&c||!f&&c||!v)return-1}return 0}function Ey(e,t,r){for(var i=-1,c=e.criteria,p=t.criteria,f=c.length,_=r.length;++i<f;){var v=Tc(c[i],p[i]);if(v){if(i>=_)return v;var q=r[i];return v*(q=="desc"?-1:1)}}return e.index-t.index}function Ic(e,t,r,i){for(var c=-1,p=e.length,f=r.length,_=-1,v=t.length,q=Ue(p-f,0),C=I(v+q),z=!i;++_<v;)C[_]=t[_];for(;++c<f;)(z||c<p)&&(C[r[c]]=e[c]);for(;q--;)C[_++]=e[c++];return C}function kc(e,t,r,i){for(var c=-1,p=e.length,f=-1,_=r.length,v=-1,q=t.length,C=Ue(p-_,0),z=I(C+q),W=!i;++c<C;)z[c]=e[c];for(var X=c;++v<q;)z[X+v]=t[v];for(;++f<_;)(W||c<p)&&(z[X+r[f]]=e[c++]);return z}function at(e,t){var r=-1,i=e.length;for(t||(t=I(i));++r<i;)t[r]=e[r];return t}function Wt(e,t,r,i){var c=!r;r||(r={});for(var p=-1,f=t.length;++p<f;){var _=t[p],v=i?i(r[_],e[_],_,r,e):a;v===a&&(v=e[_]),c?Qt(r,_,v):Na(r,_,v)}return r}function Ry(e,t){return Wt(e,bi(e),t)}function Ly(e,t){return Wt(e,Mc(e),t)}function Ls(e,t){return function(r,i){var c=re(r)?Bm:ny,p=t?t():{};return c(r,e,Y(i,2),p)}}function Zr(e){return ne(function(t,r){var i=-1,c=r.length,p=c>1?r[c-1]:a,f=c>2?r[2]:a;for(p=e.length>3&&typeof p=="function"?(c--,p):a,f&&Je(r[0],r[1],f)&&(p=c<3?a:p,c=1),t=Te(t);++i<c;){var _=r[i];_&&e(t,_,i,p)}return t})}function Dc(e,t){return function(r,i){if(r==null)return r;if(!st(r))return e(r,i);for(var c=r.length,p=t?c:-1,f=Te(r);(t?p--:++p<c)&&i(f[p],p,f)!==!1;);return r}}function Ac(e){return function(t,r,i){for(var c=-1,p=Te(t),f=i(t),_=f.length;_--;){var v=f[e?_:++c];if(r(p[v],v,p)===!1)break}return t}}function My(e,t,r){var i=t&R,c=La(e);function p(){var f=this&&this!==Xe&&this instanceof p?c:e;return f.apply(i?r:this,arguments)}return p}function qc(e){return function(t){t=ge(t);var r=$r(t)?Pt(t):a,i=r?r[0]:t.charAt(0),c=r?hr(r,1).join(""):t.slice(1);return i[e]()+c}}function Jr(e){return function(t){return Ln(Du(ku(t).replace(Am,"")),e,"")}}function La(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Qr(e.prototype),i=e.apply(r,t);return Ce(i)?i:r}}function Fy(e,t,r){var i=La(e);function c(){for(var p=arguments.length,f=I(p),_=p,v=ea(c);_--;)f[_]=arguments[_];var q=p<3&&f[0]!==v&&f[p-1]!==v?[]:dr(f,v);if(p-=q.length,p<r)return Oc(e,t,Ms,c.placeholder,a,f,q,a,a,r-p);var C=this&&this!==Xe&&this instanceof c?i:e;return dt(C,this,f)}return c}function Cc(e){return function(t,r,i){var c=Te(t);if(!st(t)){var p=Y(r,3);t=He(t),r=function(_){return p(c[_],_,c)}}var f=e(t,r,i);return f>-1?c[p?t[f]:f]:a}}function Sc(e){return Jt(function(t){var r=t.length,i=r,c=It.prototype.thru;for(e&&t.reverse();i--;){var p=t[i];if(typeof p!="function")throw new Tt(m);if(c&&!f&&Us(p)=="wrapper")var f=new It([],!0)}for(i=f?i:r;++i<r;){p=t[i];var _=Us(p),v=_=="wrapper"?_i(p):a;v&&wi(v[0])&&v[1]==(G|B|M|ye)&&!v[4].length&&v[9]==1?f=f[Us(v[0])].apply(f,v[3]):f=p.length==1&&wi(p)?f[_]():f.thru(p)}return function(){var q=arguments,C=q[0];if(f&&q.length==1&&re(C))return f.plant(C).value();for(var z=0,W=r?t[z].apply(this,q):C;++z<r;)W=t[z].call(this,W);return W}})}function Ms(e,t,r,i,c,p,f,_,v,q){var C=t&G,z=t&R,W=t&H,X=t&(B|A),K=t&he,se=W?a:La(e);function Q(){for(var oe=arguments.length,de=I(oe),yt=oe;yt--;)de[yt]=arguments[yt];if(X)var et=ea(Q),ht=Km(de,et);if(i&&(de=Ic(de,i,c,X)),p&&(de=kc(de,p,f,X)),oe-=ht,X&&oe<q){var Ee=dr(de,et);return Oc(e,t,Ms,Q.placeholder,r,de,Ee,_,v,q-oe)}var Lt=z?r:this,ar=W?Lt[e]:e;return oe=de.length,_?de=nh(de,_):K&&oe>1&&de.reverse(),C&&v<oe&&(de.length=v),this&&this!==Xe&&this instanceof Q&&(ar=se||La(ar)),ar.apply(Lt,de)}return Q}function zc(e,t){return function(r,i){return my(r,e,t(i),{})}}function Fs(e,t){return function(r,i){var c;if(r===a&&i===a)return t;if(r!==a&&(c=r),i!==a){if(c===a)return i;typeof r=="string"||typeof i=="string"?(r=mt(r),i=mt(i)):(r=hc(r),i=hc(i)),c=e(r,i)}return c}}function mi(e){return Jt(function(t){return t=De(t,pt(Y())),ne(function(r){var i=this;return e(t,function(c){return dt(c,i,r)})})})}function js(e,t){t=t===a?" ":mt(t);var r=t.length;if(r<2)return r?ii(t,e):t;var i=ii(t,Ds(e/Xr(t)));return $r(t)?hr(Pt(i),0,e).join(""):i.slice(0,e)}function jy(e,t,r,i){var c=t&R,p=La(e);function f(){for(var _=-1,v=arguments.length,q=-1,C=i.length,z=I(C+v),W=this&&this!==Xe&&this instanceof f?p:e;++q<C;)z[q]=i[q];for(;v--;)z[q++]=arguments[++_];return dt(W,c?r:this,z)}return f}function Nc(e){return function(t,r,i){return i&&typeof i!="number"&&Je(t,r,i)&&(r=i=a),t=rr(t),r===a?(r=t,t=0):r=rr(r),i=i===a?t<r?1:-1:rr(i),ky(t,r,i,e)}}function Bs(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=qt(t),r=qt(r)),e(t,r)}}function Oc(e,t,r,i,c,p,f,_,v,q){var C=t&B,z=C?f:a,W=C?a:f,X=C?p:a,K=C?a:p;t|=C?M:J,t&=~(C?J:M),t&S||(t&=~(R|H));var se=[e,t,c,X,z,K,W,_,v,q],Q=r.apply(a,se);return wi(e)&&$c(Q,se),Q.placeholder=i,Xc(Q,e,t)}function fi(e){var t=Be[e];return function(r,i){if(r=qt(r),i=i==null?0:Ye(ae(i),292),i&&Xl(r)){var c=(ge(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+i));return c=(ge(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-i))}return t(r)}}var By=Yr&&1/hs(new Yr([,-0]))[1]==Oe?function(e){return new Yr(e)}:Ri;function Pc(e){return function(t){var r=Ke(t);return r==ct?Hn(t):r==ut?af(t):Ym(t,e(t))}}function Zt(e,t,r,i,c,p,f,_){var v=t&H;if(!v&&typeof e!="function")throw new Tt(m);var q=i?i.length:0;if(q||(t&=~(M|J),i=c=a),f=f===a?f:Ue(ae(f),0),_=_===a?_:ae(_),q-=c?c.length:0,t&J){var C=i,z=c;i=c=a}var W=v?a:_i(e),X=[e,t,r,i,c,C,z,p,f,_];if(W&&rh(X,W),e=X[0],t=X[1],r=X[2],i=X[3],c=X[4],_=X[9]=X[9]===a?v?0:e.length:Ue(X[9]-q,0),!_&&t&(B|A)&&(t&=~(B|A)),!t||t==R)var K=My(e,t,r);else t==B||t==A?K=Fy(e,t,_):(t==M||t==(R|M))&&!c.length?K=jy(e,t,r,i):K=Ms.apply(a,X);var se=W?fc:$c;return Xc(se(K,X),e,t)}function Ec(e,t,r,i){return e===a||Rt(e,Vr[r])&&!xe.call(i,r)?t:e}function Rc(e,t,r,i,c,p){return Ce(e)&&Ce(t)&&(p.set(t,e),Ps(e,t,a,Rc,p),p.delete(t)),e}function Uy(e){return ja(e)?a:e}function Lc(e,t,r,i,c,p){var f=r&j,_=e.length,v=t.length;if(_!=v&&!(f&&v>_))return!1;var q=p.get(e),C=p.get(t);if(q&&C)return q==t&&C==e;var z=-1,W=!0,X=r&P?new Dr:a;for(p.set(e,t),p.set(t,e);++z<_;){var K=e[z],se=t[z];if(i)var Q=f?i(se,K,z,t,e,p):i(K,se,z,e,t,p);if(Q!==a){if(Q)continue;W=!1;break}if(X){if(!Mn(t,function(oe,de){if(!Da(X,de)&&(K===oe||c(K,oe,r,i,p)))return X.push(de)})){W=!1;break}}else if(!(K===se||c(K,se,r,i,p))){W=!1;break}}return p.delete(e),p.delete(t),W}function Wy(e,t,r,i,c,p,f){switch(r){case lr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nt:return!(e.byteLength!=t.byteLength||!p(new vs(e),new vs(t)));case jt:case Xt:case Bt:return Rt(+e,+t);case Rr:return e.name==t.name&&e.message==t.message;case wr:case Gt:return e==t+"";case ct:var _=Hn;case ut:var v=i&j;if(_||(_=hs),e.size!=t.size&&!v)return!1;var q=f.get(e);if(q)return q==t;i|=P,f.set(e,t);var C=Lc(_(e),_(t),i,c,p,f);return f.delete(e),C;case Fr:if(za)return za.call(e)==za.call(t)}return!1}function Hy(e,t,r,i,c,p){var f=r&j,_=yi(e),v=_.length,q=yi(t),C=q.length;if(v!=C&&!f)return!1;for(var z=v;z--;){var W=_[z];if(!(f?W in t:xe.call(t,W)))return!1}var X=p.get(e),K=p.get(t);if(X&&K)return X==t&&K==e;var se=!0;p.set(e,t),p.set(t,e);for(var Q=f;++z<v;){W=_[z];var oe=e[W],de=t[W];if(i)var yt=f?i(de,oe,W,t,e,p):i(oe,de,W,e,t,p);if(!(yt===a?oe===de||c(oe,de,r,i,p):yt)){se=!1;break}Q||(Q=W=="constructor")}if(se&&!Q){var et=e.constructor,ht=t.constructor;et!=ht&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof ht=="function"&&ht instanceof ht)&&(se=!1)}return p.delete(e),p.delete(t),se}function Jt(e){return Ti(Wc(e,a,Zc),e+"")}function yi(e){return ac(e,He,bi)}function hi(e){return ac(e,nt,Mc)}var _i=qs?function(e){return qs.get(e)}:Ri;function Us(e){for(var t=e.name+"",r=Kr[t],i=xe.call(Kr,t)?r.length:0;i--;){var c=r[i],p=c.func;if(p==null||p==e)return c.name}return t}function ea(e){var t=xe.call(d,"placeholder")?d:e;return t.placeholder}function Y(){var e=d.iteratee||Pi;return e=e===Pi?ic:e,arguments.length?e(arguments[0],arguments[1]):e}function Ws(e,t){var r=e.__data__;return Zy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function gi(e){for(var t=He(e),r=t.length;r--;){var i=t[r],c=e[i];t[r]=[i,c,Bc(c)]}return t}function Cr(e,t){var r=ef(e,t);return nc(r)?r:a}function $y(e){var t=xe.call(e,Ir),r=e[Ir];try{e[Ir]=a;var i=!0}catch{}var c=xs.call(e);return i&&(t?e[Ir]=r:delete e[Ir]),c}var bi=Xn?function(e){return e==null?[]:(e=Te(e),cr(Xn(e),function(t){return Hl.call(e,t)}))}:Li,Mc=Xn?function(e){for(var t=[];e;)ur(t,bi(e)),e=Ts(e);return t}:Li,Ke=Ze;(Gn&&Ke(new Gn(new ArrayBuffer(1)))!=lr||qa&&Ke(new qa)!=ct||Vn&&Ke(Vn.resolve())!=ya||Yr&&Ke(new Yr)!=ut||Ca&&Ke(new Ca)!=or)&&(Ke=function(e){var t=Ze(e),r=t==xt?e.constructor:a,i=r?Sr(r):"";if(i)switch(i){case Af:return lr;case qf:return ct;case Cf:return ya;case Sf:return ut;case zf:return or}return t});function Xy(e,t,r){for(var i=-1,c=r.length;++i<c;){var p=r[i],f=p.size;switch(p.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=Ye(t,e+f);break;case"takeRight":e=Ue(e,t-f);break}}return{start:e,end:t}}function Gy(e){var t=e.match(qn);return t?t[1].split(y):[]}function Fc(e,t,r){t=yr(t,e);for(var i=-1,c=t.length,p=!1;++i<c;){var f=Ht(t[i]);if(!(p=e!=null&&r(e,f)))break;e=e[f]}return p||++i!=c?p:(c=e==null?0:e.length,!!c&&Ks(c)&&er(f,c)&&(re(e)||zr(e)))}function Vy(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&xe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function jc(e){return typeof e.constructor=="function"&&!Ma(e)?Qr(Ts(e)):{}}function Yy(e,t,r){var i=e.constructor;switch(t){case Nt:return pi(e);case jt:case Xt:return new i(+e);case lr:return Ny(e,r);case jr:case Br:case vr:case ha:case _a:case ga:case ba:case xa:case wa:return vc(e,r);case ct:return new i;case Bt:case Gt:return new i(e);case wr:return Oy(e);case ut:return new i;case Fr:return Py(e)}}function Ky(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(An,`{
112
+ */Xa.exports,function(s,n){(function(){var a,o="4.17.21",u=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",h="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",g=500,w="__lodash_placeholder__",T=1,R=2,L=4,j=1,O=2,V=1,M=2,B=4,E=8,k=16,P=32,X=64,G=128,ye=256,he=512,le=30,bt="...",zt=800,Me=16,Fe=1,Y=2,me=3,Oe=1/0,Le=9007199254740991,lt=17976931348623157e292,je=NaN,ee=4294967295,ve=ee-1,We=ee>>>1,$t=[["ary",G],["bind",V],["bindKey",M],["curry",E],["curryRight",k],["flip",he],["partial",P],["partialRight",X],["rearg",ye]],Qe="[object Arguments]",ir="[object Array]",fa="[object AsyncFunction]",jt="[object Boolean]",Xt="[object Date]",Er="[object DOMException]",Rr="[object Error]",xr="[object Function]",as="[object GeneratorFunction]",ct="[object Map]",Bt="[object Number]",Lr="[object Null]",xt="[object Object]",ya="[object Promise]",Mr="[object Proxy]",wr="[object RegExp]",ut="[object Set]",Gt="[object String]",Fr="[object Symbol]",vn="[object Undefined]",or="[object WeakMap]",ss="[object WeakSet]",Nt="[object ArrayBuffer]",lr="[object DataView]",jr="[object Float32Array]",Br="[object Float64Array]",vr="[object Int8Array]",ha="[object Int16Array]",_a="[object Int32Array]",ga="[object Uint8Array]",ba="[object Uint8ClampedArray]",xa="[object Uint16Array]",wa="[object Uint32Array]",Tn=/\b__p \+= '';/g,va=/\b(__p \+=) '' \+/g,ns=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vt=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,Ta=RegExp(Vt.source),is=RegExp(Ur.source),In=/<%-([\s\S]+?)%>/g,os=/<%([\s\S]+?)%>/g,ls=/<%=([\s\S]+?)%>/g,cs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,us=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ia=/[\\^$.*+?()[\]{}|]/g,ds=RegExp(Ia.source),ka=/^\s+/,Dn=/\s/,An=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qn=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U=/[()=,{}\[\]\/\s]/,J=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/\w*$/,ce=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,qe=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ot=/($^)/,ps=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",dm="\\u0300-\\u036f",pm="\\ufe20-\\ufe2f",mm="\\u20d0-\\u20ff",nl=dm+pm+mm,il="\\u2700-\\u27bf",ol="a-z\\xdf-\\xf6\\xf8-\\xff",fm="\\xac\\xb1\\xd7\\xf7",ym="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hm="\\u2000-\\u206f",_m=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ll="A-Z\\xc0-\\xd6\\xd8-\\xde",cl="\\ufe0e\\ufe0f",ul=fm+ym+hm+_m,Cn="['’]",gm="["+rt+"]",dl="["+ul+"]",ms="["+nl+"]",pl="\\d+",bm="["+il+"]",ml="["+ol+"]",fl="[^"+rt+ul+pl+il+ol+ll+"]",Sn="\\ud83c[\\udffb-\\udfff]",xm="(?:"+ms+"|"+Sn+")",yl="[^"+rt+"]",zn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",Wr="["+ll+"]",hl="\\u200d",_l="(?:"+ml+"|"+fl+")",wm="(?:"+Wr+"|"+fl+")",gl="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",bl="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",xl=xm+"?",wl="["+cl+"]?",vm="(?:"+hl+"(?:"+[yl,zn,Nn].join("|")+")"+wl+xl+")*",Tm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Im="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vl=wl+xl+vm,km="(?:"+[bm,zn,Nn].join("|")+")"+vl,Dm="(?:"+[yl+ms+"?",ms,zn,Nn,gm].join("|")+")",Am=RegExp(Cn,"g"),qm=RegExp(ms,"g"),On=RegExp(Sn+"(?="+Sn+")|"+Dm+vl,"g"),Cm=RegExp([Wr+"?"+ml+"+"+gl+"(?="+[dl,Wr,"$"].join("|")+")",wm+"+"+bl+"(?="+[dl,Wr+_l,"$"].join("|")+")",Wr+"?"+_l+"+"+gl,Wr+"+"+bl,Im,Tm,pl,km].join("|"),"g"),Sm=RegExp("["+hl+rt+nl+cl+"]"),zm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Om=-1,ke={};ke[jr]=ke[Br]=ke[vr]=ke[ha]=ke[_a]=ke[ga]=ke[ba]=ke[xa]=ke[wa]=!0,ke[Qe]=ke[ir]=ke[Nt]=ke[jt]=ke[lr]=ke[Xt]=ke[Rr]=ke[xr]=ke[ct]=ke[Bt]=ke[xt]=ke[wr]=ke[ut]=ke[Gt]=ke[or]=!1;var Ie={};Ie[Qe]=Ie[ir]=Ie[Nt]=Ie[lr]=Ie[jt]=Ie[Xt]=Ie[jr]=Ie[Br]=Ie[vr]=Ie[ha]=Ie[_a]=Ie[ct]=Ie[Bt]=Ie[xt]=Ie[wr]=Ie[ut]=Ie[Gt]=Ie[Fr]=Ie[ga]=Ie[ba]=Ie[xa]=Ie[wa]=!0,Ie[Rr]=Ie[xr]=Ie[or]=!1;var Pm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Em={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Lm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mm=parseFloat,Fm=parseInt,Tl=typeof aa=="object"&&aa&&aa.Object===Object&&aa,jm=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Tl||jm||Function("return this")(),Pn=n&&!n.nodeType&&n,Tr=Pn&&!0&&s&&!s.nodeType&&s,Il=Tr&&Tr.exports===Pn,En=Il&&Tl.process,wt=function(){try{var x=Tr&&Tr.require&&Tr.require("util").types;return x||En&&En.binding&&En.binding("util")}catch{}}(),kl=wt&&wt.isArrayBuffer,Dl=wt&&wt.isDate,Al=wt&&wt.isMap,ql=wt&&wt.isRegExp,Cl=wt&&wt.isSet,Sl=wt&&wt.isTypedArray;function dt(x,A,I){switch(I.length){case 0:return x.call(A);case 1:return x.call(A,I[0]);case 2:return x.call(A,I[0],I[1]);case 3:return x.call(A,I[0],I[1],I[2])}return x.apply(A,I)}function Bm(x,A,I,H){for(var te=-1,fe=x==null?0:x.length;++te<fe;){var Be=x[te];A(H,Be,I(Be),x)}return H}function vt(x,A){for(var I=-1,H=x==null?0:x.length;++I<H&&A(x[I],I,x)!==!1;);return x}function Um(x,A){for(var I=x==null?0:x.length;I--&&A(x[I],I,x)!==!1;);return x}function zl(x,A){for(var I=-1,H=x==null?0:x.length;++I<H;)if(!A(x[I],I,x))return!1;return!0}function cr(x,A){for(var I=-1,H=x==null?0:x.length,te=0,fe=[];++I<H;){var Be=x[I];A(Be,I,x)&&(fe[te++]=Be)}return fe}function fs(x,A){var I=x==null?0:x.length;return!!I&&Hr(x,A,0)>-1}function Rn(x,A,I){for(var H=-1,te=x==null?0:x.length;++H<te;)if(I(A,x[H]))return!0;return!1}function De(x,A){for(var I=-1,H=x==null?0:x.length,te=Array(H);++I<H;)te[I]=A(x[I],I,x);return te}function ur(x,A){for(var I=-1,H=A.length,te=x.length;++I<H;)x[te+I]=A[I];return x}function Ln(x,A,I,H){var te=-1,fe=x==null?0:x.length;for(H&&fe&&(I=x[++te]);++te<fe;)I=A(I,x[te],te,x);return I}function Wm(x,A,I,H){var te=x==null?0:x.length;for(H&&te&&(I=x[--te]);te--;)I=A(I,x[te],te,x);return I}function Mn(x,A){for(var I=-1,H=x==null?0:x.length;++I<H;)if(A(x[I],I,x))return!0;return!1}var Hm=Fn("length");function $m(x){return x.split("")}function Xm(x){return x.match(z)||[]}function Nl(x,A,I){var H;return I(x,function(te,fe,Be){if(A(te,fe,Be))return H=fe,!1}),H}function ys(x,A,I,H){for(var te=x.length,fe=I+(H?1:-1);H?fe--:++fe<te;)if(A(x[fe],fe,x))return fe;return-1}function Hr(x,A,I){return A===A?sf(x,A,I):ys(x,Ol,I)}function Gm(x,A,I,H){for(var te=I-1,fe=x.length;++te<fe;)if(H(x[te],A))return te;return-1}function Ol(x){return x!==x}function Pl(x,A){var I=x==null?0:x.length;return I?Bn(x,A)/I:je}function Fn(x){return function(A){return A==null?a:A[x]}}function jn(x){return function(A){return x==null?a:x[A]}}function El(x,A,I,H,te){return te(x,function(fe,Be,Te){I=H?(H=!1,fe):A(I,fe,Be,Te)}),I}function Vm(x,A){var I=x.length;for(x.sort(A);I--;)x[I]=x[I].value;return x}function Bn(x,A){for(var I,H=-1,te=x.length;++H<te;){var fe=A(x[H]);fe!==a&&(I=I===a?fe:I+fe)}return I}function Un(x,A){for(var I=-1,H=Array(x);++I<x;)H[I]=A(I);return H}function Ym(x,A){return De(A,function(I){return[I,x[I]]})}function Rl(x){return x&&x.slice(0,jl(x)+1).replace(ka,"")}function pt(x){return function(A){return x(A)}}function Wn(x,A){return De(A,function(I){return x[I]})}function Da(x,A){return x.has(A)}function Ll(x,A){for(var I=-1,H=x.length;++I<H&&Hr(A,x[I],0)>-1;);return I}function Ml(x,A){for(var I=x.length;I--&&Hr(A,x[I],0)>-1;);return I}function Km(x,A){for(var I=x.length,H=0;I--;)x[I]===A&&++H;return H}var Qm=jn(Pm),Zm=jn(Em);function Jm(x){return"\\"+Lm[x]}function ef(x,A){return x==null?a:x[A]}function $r(x){return Sm.test(x)}function tf(x){return zm.test(x)}function rf(x){for(var A,I=[];!(A=x.next()).done;)I.push(A.value);return I}function Hn(x){var A=-1,I=Array(x.size);return x.forEach(function(H,te){I[++A]=[te,H]}),I}function Fl(x,A){return function(I){return x(A(I))}}function dr(x,A){for(var I=-1,H=x.length,te=0,fe=[];++I<H;){var Be=x[I];(Be===A||Be===w)&&(x[I]=w,fe[te++]=I)}return fe}function hs(x){var A=-1,I=Array(x.size);return x.forEach(function(H){I[++A]=H}),I}function af(x){var A=-1,I=Array(x.size);return x.forEach(function(H){I[++A]=[H,H]}),I}function sf(x,A,I){for(var H=I-1,te=x.length;++H<te;)if(x[H]===A)return H;return-1}function nf(x,A,I){for(var H=I+1;H--;)if(x[H]===A)return H;return H}function Xr(x){return $r(x)?lf(x):Hm(x)}function Pt(x){return $r(x)?cf(x):$m(x)}function jl(x){for(var A=x.length;A--&&Dn.test(x.charAt(A)););return A}var of=jn(Rm);function lf(x){for(var A=On.lastIndex=0;On.test(x);)++A;return A}function cf(x){return x.match(On)||[]}function uf(x){return x.match(Cm)||[]}var df=function x(A){A=A==null?Xe:Gr.defaults(Xe.Object(),A,Gr.pick(Xe,Nm));var I=A.Array,H=A.Date,te=A.Error,fe=A.Function,Be=A.Math,Te=A.Object,$n=A.RegExp,pf=A.String,Tt=A.TypeError,_s=I.prototype,mf=fe.prototype,Vr=Te.prototype,gs=A["__core-js_shared__"],bs=mf.toString,xe=Vr.hasOwnProperty,ff=0,Bl=function(){var e=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),xs=Vr.toString,yf=bs.call(Te),hf=Xe._,_f=$n("^"+bs.call(xe).replace(Ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ws=Il?A.Buffer:a,pr=A.Symbol,vs=A.Uint8Array,Ul=ws?ws.allocUnsafe:a,Ts=Fl(Te.getPrototypeOf,Te),Wl=Te.create,Hl=Vr.propertyIsEnumerable,Is=_s.splice,$l=pr?pr.isConcatSpreadable:a,Aa=pr?pr.iterator:a,Ir=pr?pr.toStringTag:a,ks=function(){try{var e=Cr(Te,"defineProperty");return e({},"",{}),e}catch{}}(),gf=A.clearTimeout!==Xe.clearTimeout&&A.clearTimeout,bf=H&&H.now!==Xe.Date.now&&H.now,xf=A.setTimeout!==Xe.setTimeout&&A.setTimeout,Ds=Be.ceil,As=Be.floor,Xn=Te.getOwnPropertySymbols,wf=ws?ws.isBuffer:a,Xl=A.isFinite,vf=_s.join,Tf=Fl(Te.keys,Te),Ue=Be.max,Ye=Be.min,If=H.now,kf=A.parseInt,Gl=Be.random,Df=_s.reverse,Gn=Cr(A,"DataView"),qa=Cr(A,"Map"),Vn=Cr(A,"Promise"),Yr=Cr(A,"Set"),Ca=Cr(A,"WeakMap"),Sa=Cr(Te,"create"),qs=Ca&&new Ca,Kr={},Af=Sr(Gn),qf=Sr(qa),Cf=Sr(Vn),Sf=Sr(Yr),zf=Sr(Ca),Cs=pr?pr.prototype:a,za=Cs?Cs.valueOf:a,Vl=Cs?Cs.toString:a;function d(e){if(Ne(e)&&!re(e)&&!(e instanceof ue)){if(e instanceof It)return e;if(xe.call(e,"__wrapped__"))return Yc(e)}return new It(e)}var Qr=function(){function e(){}return function(t){if(!Ce(t))return{};if(Wl)return Wl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Ss(){}function It(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}d.templateSettings={escape:In,evaluate:os,interpolate:ls,variable:"",imports:{_:d}},d.prototype=Ss.prototype,d.prototype.constructor=d,It.prototype=Qr(Ss.prototype),It.prototype.constructor=It;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function Nf(){var e=new ue(this.__wrapped__);return e.__actions__=at(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=at(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=at(this.__views__),e}function Of(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Pf(){var e=this.__wrapped__.value(),t=this.__dir__,r=re(e),i=t<0,l=r?e.length:0,p=Xy(0,l,this.__views__),f=p.start,_=p.end,v=_-f,q=i?_:f-1,C=this.__iteratees__,S=C.length,W=0,$=Ye(v,this.__takeCount__);if(!r||!i&&l==v&&$==v)return gc(e,this.__actions__);var Q=[];e:for(;v--&&W<$;){q+=t;for(var se=-1,Z=e[q];++se<S;){var oe=C[se],de=oe.iteratee,yt=oe.type,et=de(Z);if(yt==Y)Z=et;else if(!et){if(yt==Fe)continue e;break e}}Q[W++]=Z}return Q}ue.prototype=Qr(Ss.prototype),ue.prototype.constructor=ue;function kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Ef(){this.__data__=Sa?Sa(null):{},this.size=0}function Rf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Lf(e){var t=this.__data__;if(Sa){var r=t[e];return r===b?a:r}return xe.call(t,e)?t[e]:a}function Mf(e){var t=this.__data__;return Sa?t[e]!==a:xe.call(t,e)}function Ff(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sa&&t===a?b:t,this}kr.prototype.clear=Ef,kr.prototype.delete=Rf,kr.prototype.get=Lf,kr.prototype.has=Mf,kr.prototype.set=Ff;function Yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function jf(){this.__data__=[],this.size=0}function Bf(e){var t=this.__data__,r=zs(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Is.call(t,r,1),--this.size,!0}function Uf(e){var t=this.__data__,r=zs(t,e);return r<0?a:t[r][1]}function Wf(e){return zs(this.__data__,e)>-1}function Hf(e,t){var r=this.__data__,i=zs(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Yt.prototype.clear=jf,Yt.prototype.delete=Bf,Yt.prototype.get=Uf,Yt.prototype.has=Wf,Yt.prototype.set=Hf;function Kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function $f(){this.size=0,this.__data__={hash:new kr,map:new(qa||Yt),string:new kr}}function Xf(e){var t=Ws(this,e).delete(e);return this.size-=t?1:0,t}function Gf(e){return Ws(this,e).get(e)}function Vf(e){return Ws(this,e).has(e)}function Yf(e,t){var r=Ws(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Kt.prototype.clear=$f,Kt.prototype.delete=Xf,Kt.prototype.get=Gf,Kt.prototype.has=Vf,Kt.prototype.set=Yf;function Dr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Kt;++t<r;)this.add(e[t])}function Kf(e){return this.__data__.set(e,b),this}function Qf(e){return this.__data__.has(e)}Dr.prototype.add=Dr.prototype.push=Kf,Dr.prototype.has=Qf;function Et(e){var t=this.__data__=new Yt(e);this.size=t.size}function Zf(){this.__data__=new Yt,this.size=0}function Jf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ey(e){return this.__data__.get(e)}function ty(e){return this.__data__.has(e)}function ry(e,t){var r=this.__data__;if(r instanceof Yt){var i=r.__data__;if(!qa||i.length<u-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kt(i)}return r.set(e,t),this.size=r.size,this}Et.prototype.clear=Zf,Et.prototype.delete=Jf,Et.prototype.get=ey,Et.prototype.has=ty,Et.prototype.set=ry;function Yl(e,t){var r=re(e),i=!r&&zr(e),l=!r&&!i&&_r(e),p=!r&&!i&&!l&&ta(e),f=r||i||l||p,_=f?Un(e.length,pf):[],v=_.length;for(var q in e)(t||xe.call(e,q))&&!(f&&(q=="length"||l&&(q=="offset"||q=="parent")||p&&(q=="buffer"||q=="byteLength"||q=="byteOffset")||er(q,v)))&&_.push(q);return _}function Kl(e){var t=e.length;return t?e[ni(0,t-1)]:a}function ay(e,t){return Hs(at(e),Ar(t,0,e.length))}function sy(e){return Hs(at(e))}function Yn(e,t,r){(r!==a&&!Rt(e[t],r)||r===a&&!(t in e))&&Qt(e,t,r)}function Na(e,t,r){var i=e[t];(!(xe.call(e,t)&&Rt(i,r))||r===a&&!(t in e))&&Qt(e,t,r)}function zs(e,t){for(var r=e.length;r--;)if(Rt(e[r][0],t))return r;return-1}function ny(e,t,r,i){return mr(e,function(l,p,f){t(i,l,r(l),f)}),i}function Ql(e,t){return e&&Wt(t,He(t),e)}function iy(e,t){return e&&Wt(t,nt(t),e)}function Qt(e,t,r){t=="__proto__"&&ks?ks(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Kn(e,t){for(var r=-1,i=t.length,l=I(i),p=e==null;++r<i;)l[r]=p?a:Si(e,t[r]);return l}function Ar(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function kt(e,t,r,i,l,p){var f,_=t&T,v=t&R,q=t&L;if(r&&(f=l?r(e,i,l,p):r(e)),f!==a)return f;if(!Ce(e))return e;var C=re(e);if(C){if(f=Vy(e),!_)return at(e,f)}else{var S=Ke(e),W=S==xr||S==as;if(_r(e))return wc(e,_);if(S==xt||S==Qe||W&&!l){if(f=v||W?{}:jc(e),!_)return v?Ly(e,iy(f,e)):Ry(e,Ql(f,e))}else{if(!Ie[S])return l?e:{};f=Yy(e,S,_)}}p||(p=new Et);var $=p.get(e);if($)return $;p.set(e,f),yu(e)?e.forEach(function(Z){f.add(kt(Z,t,r,Z,e,p))}):mu(e)&&e.forEach(function(Z,oe){f.set(oe,kt(Z,t,r,oe,e,p))});var Q=q?v?hi:yi:v?nt:He,se=C?a:Q(e);return vt(se||e,function(Z,oe){se&&(oe=Z,Z=e[oe]),Na(f,oe,kt(Z,t,r,oe,e,p))}),f}function oy(e){var t=He(e);return function(r){return Zl(r,e,t)}}function Zl(e,t,r){var i=r.length;if(e==null)return!i;for(e=Te(e);i--;){var l=r[i],p=t[l],f=e[l];if(f===a&&!(l in e)||!p(f))return!1}return!0}function Jl(e,t,r){if(typeof e!="function")throw new Tt(m);return Fa(function(){e.apply(a,r)},t)}function Oa(e,t,r,i){var l=-1,p=fs,f=!0,_=e.length,v=[],q=t.length;if(!_)return v;r&&(t=De(t,pt(r))),i?(p=Rn,f=!1):t.length>=u&&(p=Da,f=!1,t=new Dr(t));e:for(;++l<_;){var C=e[l],S=r==null?C:r(C);if(C=i||C!==0?C:0,f&&S===S){for(var W=q;W--;)if(t[W]===S)continue e;v.push(C)}else p(t,S,i)||v.push(C)}return v}var mr=Dc(Ut),ec=Dc(Zn,!0);function ly(e,t){var r=!0;return mr(e,function(i,l,p){return r=!!t(i,l,p),r}),r}function Ns(e,t,r){for(var i=-1,l=e.length;++i<l;){var p=e[i],f=t(p);if(f!=null&&(_===a?f===f&&!ft(f):r(f,_)))var _=f,v=p}return v}function cy(e,t,r,i){var l=e.length;for(r=ae(r),r<0&&(r=-r>l?0:l+r),i=i===a||i>l?l:ae(i),i<0&&(i+=l),i=r>i?0:_u(i);r<i;)e[r++]=t;return e}function tc(e,t){var r=[];return mr(e,function(i,l,p){t(i,l,p)&&r.push(i)}),r}function Ge(e,t,r,i,l){var p=-1,f=e.length;for(r||(r=Qy),l||(l=[]);++p<f;){var _=e[p];t>0&&r(_)?t>1?Ge(_,t-1,r,i,l):ur(l,_):i||(l[l.length]=_)}return l}var Qn=Ac(),rc=Ac(!0);function Ut(e,t){return e&&Qn(e,t,He)}function Zn(e,t){return e&&rc(e,t,He)}function Os(e,t){return cr(t,function(r){return tr(e[r])})}function qr(e,t){t=yr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Ht(t[r++])];return r&&r==i?e:a}function ac(e,t,r){var i=t(e);return re(e)?i:ur(i,r(e))}function Ze(e){return e==null?e===a?vn:Lr:Ir&&Ir in Te(e)?$y(e):sh(e)}function Jn(e,t){return e>t}function uy(e,t){return e!=null&&xe.call(e,t)}function dy(e,t){return e!=null&&t in Te(e)}function py(e,t,r){return e>=Ye(t,r)&&e<Ue(t,r)}function ei(e,t,r){for(var i=r?Rn:fs,l=e[0].length,p=e.length,f=p,_=I(p),v=1/0,q=[];f--;){var C=e[f];f&&t&&(C=De(C,pt(t))),v=Ye(C.length,v),_[f]=!r&&(t||l>=120&&C.length>=120)?new Dr(f&&C):a}C=e[0];var S=-1,W=_[0];e:for(;++S<l&&q.length<v;){var $=C[S],Q=t?t($):$;if($=r||$!==0?$:0,!(W?Da(W,Q):i(q,Q,r))){for(f=p;--f;){var se=_[f];if(!(se?Da(se,Q):i(e[f],Q,r)))continue e}W&&W.push(Q),q.push($)}}return q}function my(e,t,r,i){return Ut(e,function(l,p,f){t(i,r(l),p,f)}),i}function Pa(e,t,r){t=yr(t,e),e=Hc(e,t);var i=e==null?e:e[Ht(At(t))];return i==null?a:dt(i,e,r)}function sc(e){return Ne(e)&&Ze(e)==Qe}function fy(e){return Ne(e)&&Ze(e)==Nt}function yy(e){return Ne(e)&&Ze(e)==Xt}function Ea(e,t,r,i,l){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:hy(e,t,r,i,Ea,l)}function hy(e,t,r,i,l,p){var f=re(e),_=re(t),v=f?ir:Ke(e),q=_?ir:Ke(t);v=v==Qe?xt:v,q=q==Qe?xt:q;var C=v==xt,S=q==xt,W=v==q;if(W&&_r(e)){if(!_r(t))return!1;f=!0,C=!1}if(W&&!C)return p||(p=new Et),f||ta(e)?Lc(e,t,r,i,l,p):Wy(e,t,v,r,i,l,p);if(!(r&j)){var $=C&&xe.call(e,"__wrapped__"),Q=S&&xe.call(t,"__wrapped__");if($||Q){var se=$?e.value():e,Z=Q?t.value():t;return p||(p=new Et),l(se,Z,r,i,p)}}return W?(p||(p=new Et),Hy(e,t,r,i,l,p)):!1}function _y(e){return Ne(e)&&Ke(e)==ct}function ti(e,t,r,i){var l=r.length,p=l,f=!i;if(e==null)return!p;for(e=Te(e);l--;){var _=r[l];if(f&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++l<p;){_=r[l];var v=_[0],q=e[v],C=_[1];if(f&&_[2]){if(q===a&&!(v in e))return!1}else{var S=new Et;if(i)var W=i(q,C,v,e,t,S);if(!(W===a?Ea(C,q,j|O,i,S):W))return!1}}return!0}function nc(e){if(!Ce(e)||Jy(e))return!1;var t=tr(e)?_f:$e;return t.test(Sr(e))}function gy(e){return Ne(e)&&Ze(e)==wr}function by(e){return Ne(e)&&Ke(e)==ut}function xy(e){return Ne(e)&&Ks(e.length)&&!!ke[Ze(e)]}function ic(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?re(e)?cc(e[0],e[1]):lc(e):qu(e)}function ri(e){if(!Ma(e))return Tf(e);var t=[];for(var r in Te(e))xe.call(e,r)&&r!="constructor"&&t.push(r);return t}function wy(e){if(!Ce(e))return ah(e);var t=Ma(e),r=[];for(var i in e)i=="constructor"&&(t||!xe.call(e,i))||r.push(i);return r}function ai(e,t){return e<t}function oc(e,t){var r=-1,i=st(e)?I(e.length):[];return mr(e,function(l,p,f){i[++r]=t(l,p,f)}),i}function lc(e){var t=gi(e);return t.length==1&&t[0][2]?Uc(t[0][0],t[0][1]):function(r){return r===e||ti(r,e,t)}}function cc(e,t){return xi(e)&&Bc(t)?Uc(Ht(e),t):function(r){var i=Si(r,e);return i===a&&i===t?zi(r,e):Ea(t,i,j|O)}}function Ps(e,t,r,i,l){e!==t&&Qn(t,function(p,f){if(l||(l=new Et),Ce(p))vy(e,t,f,r,Ps,i,l);else{var _=i?i(vi(e,f),p,f+"",e,t,l):a;_===a&&(_=p),Yn(e,f,_)}},nt)}function vy(e,t,r,i,l,p,f){var _=vi(e,r),v=vi(t,r),q=f.get(v);if(q){Yn(e,r,q);return}var C=p?p(_,v,r+"",e,t,f):a,S=C===a;if(S){var W=re(v),$=!W&&_r(v),Q=!W&&!$&&ta(v);C=v,W||$||Q?re(_)?C=_:Pe(_)?C=at(_):$?(S=!1,C=wc(v,!0)):Q?(S=!1,C=vc(v,!0)):C=[]:ja(v)||zr(v)?(C=_,zr(_)?C=gu(_):(!Ce(_)||tr(_))&&(C=jc(v))):S=!1}S&&(f.set(v,C),l(C,v,i,p,f),f.delete(v)),Yn(e,r,C)}function uc(e,t){var r=e.length;if(r)return t+=t<0?r:0,er(t,r)?e[t]:a}function dc(e,t,r){t.length?t=De(t,function(p){return re(p)?function(f){return qr(f,p.length===1?p[0]:p)}:p}):t=[it];var i=-1;t=De(t,pt(K()));var l=oc(e,function(p,f,_){var v=De(t,function(q){return q(p)});return{criteria:v,index:++i,value:p}});return Vm(l,function(p,f){return Ey(p,f,r)})}function Ty(e,t){return pc(e,t,function(r,i){return zi(e,i)})}function pc(e,t,r){for(var i=-1,l=t.length,p={};++i<l;){var f=t[i],_=qr(e,f);r(_,f)&&Ra(p,yr(f,e),_)}return p}function Iy(e){return function(t){return qr(t,e)}}function si(e,t,r,i){var l=i?Gm:Hr,p=-1,f=t.length,_=e;for(e===t&&(t=at(t)),r&&(_=De(e,pt(r)));++p<f;)for(var v=0,q=t[p],C=r?r(q):q;(v=l(_,C,v,i))>-1;)_!==e&&Is.call(_,v,1),Is.call(e,v,1);return e}function mc(e,t){for(var r=e?t.length:0,i=r-1;r--;){var l=t[r];if(r==i||l!==p){var p=l;er(l)?Is.call(e,l,1):li(e,l)}}return e}function ni(e,t){return e+As(Gl()*(t-e+1))}function ky(e,t,r,i){for(var l=-1,p=Ue(Ds((t-e)/(r||1)),0),f=I(p);p--;)f[i?p:++l]=e,e+=r;return f}function ii(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=As(t/2),t&&(e+=e);while(t);return r}function ne(e,t){return Ti(Wc(e,t,it),e+"")}function Dy(e){return Kl(ra(e))}function Ay(e,t){var r=ra(e);return Hs(r,Ar(t,0,r.length))}function Ra(e,t,r,i){if(!Ce(e))return e;t=yr(t,e);for(var l=-1,p=t.length,f=p-1,_=e;_!=null&&++l<p;){var v=Ht(t[l]),q=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(l!=f){var C=_[v];q=i?i(C,v,_):a,q===a&&(q=Ce(C)?C:er(t[l+1])?[]:{})}Na(_,v,q),_=_[v]}return e}var fc=qs?function(e,t){return qs.set(e,t),e}:it,qy=ks?function(e,t){return ks(e,"toString",{configurable:!0,enumerable:!1,value:Oi(t),writable:!0})}:it;function Cy(e){return Hs(ra(e))}function Dt(e,t,r){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var p=I(l);++i<l;)p[i]=e[i+t];return p}function Sy(e,t){var r;return mr(e,function(i,l,p){return r=t(i,l,p),!r}),!!r}function Es(e,t,r){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=We){for(;i<l;){var p=i+l>>>1,f=e[p];f!==null&&!ft(f)&&(r?f<=t:f<t)?i=p+1:l=p}return l}return oi(e,t,it,r)}function oi(e,t,r,i){var l=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var f=t!==t,_=t===null,v=ft(t),q=t===a;l<p;){var C=As((l+p)/2),S=r(e[C]),W=S!==a,$=S===null,Q=S===S,se=ft(S);if(f)var Z=i||Q;else q?Z=Q&&(i||W):_?Z=Q&&W&&(i||!$):v?Z=Q&&W&&!$&&(i||!se):$||se?Z=!1:Z=i?S<=t:S<t;Z?l=C+1:p=C}return Ye(p,ve)}function yc(e,t){for(var r=-1,i=e.length,l=0,p=[];++r<i;){var f=e[r],_=t?t(f):f;if(!r||!Rt(_,v)){var v=_;p[l++]=f===0?0:f}}return p}function hc(e){return typeof e=="number"?e:ft(e)?je:+e}function mt(e){if(typeof e=="string")return e;if(re(e))return De(e,mt)+"";if(ft(e))return Vl?Vl.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function fr(e,t,r){var i=-1,l=fs,p=e.length,f=!0,_=[],v=_;if(r)f=!1,l=Rn;else if(p>=u){var q=t?null:By(e);if(q)return hs(q);f=!1,l=Da,v=new Dr}else v=t?[]:_;e:for(;++i<p;){var C=e[i],S=t?t(C):C;if(C=r||C!==0?C:0,f&&S===S){for(var W=v.length;W--;)if(v[W]===S)continue e;t&&v.push(S),_.push(C)}else l(v,S,r)||(v!==_&&v.push(S),_.push(C))}return _}function li(e,t){return t=yr(t,e),e=Hc(e,t),e==null||delete e[Ht(At(t))]}function _c(e,t,r,i){return Ra(e,t,r(qr(e,t)),i)}function Rs(e,t,r,i){for(var l=e.length,p=i?l:-1;(i?p--:++p<l)&&t(e[p],p,e););return r?Dt(e,i?0:p,i?p+1:l):Dt(e,i?p+1:0,i?l:p)}function gc(e,t){var r=e;return r instanceof ue&&(r=r.value()),Ln(t,function(i,l){return l.func.apply(l.thisArg,ur([i],l.args))},r)}function ci(e,t,r){var i=e.length;if(i<2)return i?fr(e[0]):[];for(var l=-1,p=I(i);++l<i;)for(var f=e[l],_=-1;++_<i;)_!=l&&(p[l]=Oa(p[l]||f,e[_],t,r));return fr(Ge(p,1),t,r)}function bc(e,t,r){for(var i=-1,l=e.length,p=t.length,f={};++i<l;){var _=i<p?t[i]:a;r(f,e[i],_)}return f}function ui(e){return Pe(e)?e:[]}function di(e){return typeof e=="function"?e:it}function yr(e,t){return re(e)?e:xi(e,t)?[e]:Vc(ge(e))}var zy=ne;function hr(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:Dt(e,t,r)}var xc=gf||function(e){return Xe.clearTimeout(e)};function wc(e,t){if(t)return e.slice();var r=e.length,i=Ul?Ul(r):new e.constructor(r);return e.copy(i),i}function pi(e){var t=new e.constructor(e.byteLength);return new vs(t).set(new vs(e)),t}function Ny(e,t){var r=t?pi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Oy(e){var t=new e.constructor(e.source,_e.exec(e));return t.lastIndex=e.lastIndex,t}function Py(e){return za?Te(za.call(e)):{}}function vc(e,t){var r=t?pi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Tc(e,t){if(e!==t){var r=e!==a,i=e===null,l=e===e,p=ft(e),f=t!==a,_=t===null,v=t===t,q=ft(t);if(!_&&!q&&!p&&e>t||p&&f&&v&&!_&&!q||i&&f&&v||!r&&v||!l)return 1;if(!i&&!p&&!q&&e<t||q&&r&&l&&!i&&!p||_&&r&&l||!f&&l||!v)return-1}return 0}function Ey(e,t,r){for(var i=-1,l=e.criteria,p=t.criteria,f=l.length,_=r.length;++i<f;){var v=Tc(l[i],p[i]);if(v){if(i>=_)return v;var q=r[i];return v*(q=="desc"?-1:1)}}return e.index-t.index}function Ic(e,t,r,i){for(var l=-1,p=e.length,f=r.length,_=-1,v=t.length,q=Ue(p-f,0),C=I(v+q),S=!i;++_<v;)C[_]=t[_];for(;++l<f;)(S||l<p)&&(C[r[l]]=e[l]);for(;q--;)C[_++]=e[l++];return C}function kc(e,t,r,i){for(var l=-1,p=e.length,f=-1,_=r.length,v=-1,q=t.length,C=Ue(p-_,0),S=I(C+q),W=!i;++l<C;)S[l]=e[l];for(var $=l;++v<q;)S[$+v]=t[v];for(;++f<_;)(W||l<p)&&(S[$+r[f]]=e[l++]);return S}function at(e,t){var r=-1,i=e.length;for(t||(t=I(i));++r<i;)t[r]=e[r];return t}function Wt(e,t,r,i){var l=!r;r||(r={});for(var p=-1,f=t.length;++p<f;){var _=t[p],v=i?i(r[_],e[_],_,r,e):a;v===a&&(v=e[_]),l?Qt(r,_,v):Na(r,_,v)}return r}function Ry(e,t){return Wt(e,bi(e),t)}function Ly(e,t){return Wt(e,Mc(e),t)}function Ls(e,t){return function(r,i){var l=re(r)?Bm:ny,p=t?t():{};return l(r,e,K(i,2),p)}}function Zr(e){return ne(function(t,r){var i=-1,l=r.length,p=l>1?r[l-1]:a,f=l>2?r[2]:a;for(p=e.length>3&&typeof p=="function"?(l--,p):a,f&&Je(r[0],r[1],f)&&(p=l<3?a:p,l=1),t=Te(t);++i<l;){var _=r[i];_&&e(t,_,i,p)}return t})}function Dc(e,t){return function(r,i){if(r==null)return r;if(!st(r))return e(r,i);for(var l=r.length,p=t?l:-1,f=Te(r);(t?p--:++p<l)&&i(f[p],p,f)!==!1;);return r}}function Ac(e){return function(t,r,i){for(var l=-1,p=Te(t),f=i(t),_=f.length;_--;){var v=f[e?_:++l];if(r(p[v],v,p)===!1)break}return t}}function My(e,t,r){var i=t&V,l=La(e);function p(){var f=this&&this!==Xe&&this instanceof p?l:e;return f.apply(i?r:this,arguments)}return p}function qc(e){return function(t){t=ge(t);var r=$r(t)?Pt(t):a,i=r?r[0]:t.charAt(0),l=r?hr(r,1).join(""):t.slice(1);return i[e]()+l}}function Jr(e){return function(t){return Ln(Du(ku(t).replace(Am,"")),e,"")}}function La(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Qr(e.prototype),i=e.apply(r,t);return Ce(i)?i:r}}function Fy(e,t,r){var i=La(e);function l(){for(var p=arguments.length,f=I(p),_=p,v=ea(l);_--;)f[_]=arguments[_];var q=p<3&&f[0]!==v&&f[p-1]!==v?[]:dr(f,v);if(p-=q.length,p<r)return Oc(e,t,Ms,l.placeholder,a,f,q,a,a,r-p);var C=this&&this!==Xe&&this instanceof l?i:e;return dt(C,this,f)}return l}function Cc(e){return function(t,r,i){var l=Te(t);if(!st(t)){var p=K(r,3);t=He(t),r=function(_){return p(l[_],_,l)}}var f=e(t,r,i);return f>-1?l[p?t[f]:f]:a}}function Sc(e){return Jt(function(t){var r=t.length,i=r,l=It.prototype.thru;for(e&&t.reverse();i--;){var p=t[i];if(typeof p!="function")throw new Tt(m);if(l&&!f&&Us(p)=="wrapper")var f=new It([],!0)}for(i=f?i:r;++i<r;){p=t[i];var _=Us(p),v=_=="wrapper"?_i(p):a;v&&wi(v[0])&&v[1]==(G|E|P|ye)&&!v[4].length&&v[9]==1?f=f[Us(v[0])].apply(f,v[3]):f=p.length==1&&wi(p)?f[_]():f.thru(p)}return function(){var q=arguments,C=q[0];if(f&&q.length==1&&re(C))return f.plant(C).value();for(var S=0,W=r?t[S].apply(this,q):C;++S<r;)W=t[S].call(this,W);return W}})}function Ms(e,t,r,i,l,p,f,_,v,q){var C=t&G,S=t&V,W=t&M,$=t&(E|k),Q=t&he,se=W?a:La(e);function Z(){for(var oe=arguments.length,de=I(oe),yt=oe;yt--;)de[yt]=arguments[yt];if($)var et=ea(Z),ht=Km(de,et);if(i&&(de=Ic(de,i,l,$)),p&&(de=kc(de,p,f,$)),oe-=ht,$&&oe<q){var Ee=dr(de,et);return Oc(e,t,Ms,Z.placeholder,r,de,Ee,_,v,q-oe)}var Lt=S?r:this,ar=W?Lt[e]:e;return oe=de.length,_?de=nh(de,_):Q&&oe>1&&de.reverse(),C&&v<oe&&(de.length=v),this&&this!==Xe&&this instanceof Z&&(ar=se||La(ar)),ar.apply(Lt,de)}return Z}function zc(e,t){return function(r,i){return my(r,e,t(i),{})}}function Fs(e,t){return function(r,i){var l;if(r===a&&i===a)return t;if(r!==a&&(l=r),i!==a){if(l===a)return i;typeof r=="string"||typeof i=="string"?(r=mt(r),i=mt(i)):(r=hc(r),i=hc(i)),l=e(r,i)}return l}}function mi(e){return Jt(function(t){return t=De(t,pt(K())),ne(function(r){var i=this;return e(t,function(l){return dt(l,i,r)})})})}function js(e,t){t=t===a?" ":mt(t);var r=t.length;if(r<2)return r?ii(t,e):t;var i=ii(t,Ds(e/Xr(t)));return $r(t)?hr(Pt(i),0,e).join(""):i.slice(0,e)}function jy(e,t,r,i){var l=t&V,p=La(e);function f(){for(var _=-1,v=arguments.length,q=-1,C=i.length,S=I(C+v),W=this&&this!==Xe&&this instanceof f?p:e;++q<C;)S[q]=i[q];for(;v--;)S[q++]=arguments[++_];return dt(W,l?r:this,S)}return f}function Nc(e){return function(t,r,i){return i&&typeof i!="number"&&Je(t,r,i)&&(r=i=a),t=rr(t),r===a?(r=t,t=0):r=rr(r),i=i===a?t<r?1:-1:rr(i),ky(t,r,i,e)}}function Bs(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=qt(t),r=qt(r)),e(t,r)}}function Oc(e,t,r,i,l,p,f,_,v,q){var C=t&E,S=C?f:a,W=C?a:f,$=C?p:a,Q=C?a:p;t|=C?P:X,t&=~(C?X:P),t&B||(t&=~(V|M));var se=[e,t,l,$,S,Q,W,_,v,q],Z=r.apply(a,se);return wi(e)&&$c(Z,se),Z.placeholder=i,Xc(Z,e,t)}function fi(e){var t=Be[e];return function(r,i){if(r=qt(r),i=i==null?0:Ye(ae(i),292),i&&Xl(r)){var l=(ge(r)+"e").split("e"),p=t(l[0]+"e"+(+l[1]+i));return l=(ge(p)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(r)}}var By=Yr&&1/hs(new Yr([,-0]))[1]==Oe?function(e){return new Yr(e)}:Ri;function Pc(e){return function(t){var r=Ke(t);return r==ct?Hn(t):r==ut?af(t):Ym(t,e(t))}}function Zt(e,t,r,i,l,p,f,_){var v=t&M;if(!v&&typeof e!="function")throw new Tt(m);var q=i?i.length:0;if(q||(t&=~(P|X),i=l=a),f=f===a?f:Ue(ae(f),0),_=_===a?_:ae(_),q-=l?l.length:0,t&X){var C=i,S=l;i=l=a}var W=v?a:_i(e),$=[e,t,r,i,l,C,S,p,f,_];if(W&&rh($,W),e=$[0],t=$[1],r=$[2],i=$[3],l=$[4],_=$[9]=$[9]===a?v?0:e.length:Ue($[9]-q,0),!_&&t&(E|k)&&(t&=~(E|k)),!t||t==V)var Q=My(e,t,r);else t==E||t==k?Q=Fy(e,t,_):(t==P||t==(V|P))&&!l.length?Q=jy(e,t,r,i):Q=Ms.apply(a,$);var se=W?fc:$c;return Xc(se(Q,$),e,t)}function Ec(e,t,r,i){return e===a||Rt(e,Vr[r])&&!xe.call(i,r)?t:e}function Rc(e,t,r,i,l,p){return Ce(e)&&Ce(t)&&(p.set(t,e),Ps(e,t,a,Rc,p),p.delete(t)),e}function Uy(e){return ja(e)?a:e}function Lc(e,t,r,i,l,p){var f=r&j,_=e.length,v=t.length;if(_!=v&&!(f&&v>_))return!1;var q=p.get(e),C=p.get(t);if(q&&C)return q==t&&C==e;var S=-1,W=!0,$=r&O?new Dr:a;for(p.set(e,t),p.set(t,e);++S<_;){var Q=e[S],se=t[S];if(i)var Z=f?i(se,Q,S,t,e,p):i(Q,se,S,e,t,p);if(Z!==a){if(Z)continue;W=!1;break}if($){if(!Mn(t,function(oe,de){if(!Da($,de)&&(Q===oe||l(Q,oe,r,i,p)))return $.push(de)})){W=!1;break}}else if(!(Q===se||l(Q,se,r,i,p))){W=!1;break}}return p.delete(e),p.delete(t),W}function Wy(e,t,r,i,l,p,f){switch(r){case lr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nt:return!(e.byteLength!=t.byteLength||!p(new vs(e),new vs(t)));case jt:case Xt:case Bt:return Rt(+e,+t);case Rr:return e.name==t.name&&e.message==t.message;case wr:case Gt:return e==t+"";case ct:var _=Hn;case ut:var v=i&j;if(_||(_=hs),e.size!=t.size&&!v)return!1;var q=f.get(e);if(q)return q==t;i|=O,f.set(e,t);var C=Lc(_(e),_(t),i,l,p,f);return f.delete(e),C;case Fr:if(za)return za.call(e)==za.call(t)}return!1}function Hy(e,t,r,i,l,p){var f=r&j,_=yi(e),v=_.length,q=yi(t),C=q.length;if(v!=C&&!f)return!1;for(var S=v;S--;){var W=_[S];if(!(f?W in t:xe.call(t,W)))return!1}var $=p.get(e),Q=p.get(t);if($&&Q)return $==t&&Q==e;var se=!0;p.set(e,t),p.set(t,e);for(var Z=f;++S<v;){W=_[S];var oe=e[W],de=t[W];if(i)var yt=f?i(de,oe,W,t,e,p):i(oe,de,W,e,t,p);if(!(yt===a?oe===de||l(oe,de,r,i,p):yt)){se=!1;break}Z||(Z=W=="constructor")}if(se&&!Z){var et=e.constructor,ht=t.constructor;et!=ht&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof ht=="function"&&ht instanceof ht)&&(se=!1)}return p.delete(e),p.delete(t),se}function Jt(e){return Ti(Wc(e,a,Zc),e+"")}function yi(e){return ac(e,He,bi)}function hi(e){return ac(e,nt,Mc)}var _i=qs?function(e){return qs.get(e)}:Ri;function Us(e){for(var t=e.name+"",r=Kr[t],i=xe.call(Kr,t)?r.length:0;i--;){var l=r[i],p=l.func;if(p==null||p==e)return l.name}return t}function ea(e){var t=xe.call(d,"placeholder")?d:e;return t.placeholder}function K(){var e=d.iteratee||Pi;return e=e===Pi?ic:e,arguments.length?e(arguments[0],arguments[1]):e}function Ws(e,t){var r=e.__data__;return Zy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function gi(e){for(var t=He(e),r=t.length;r--;){var i=t[r],l=e[i];t[r]=[i,l,Bc(l)]}return t}function Cr(e,t){var r=ef(e,t);return nc(r)?r:a}function $y(e){var t=xe.call(e,Ir),r=e[Ir];try{e[Ir]=a;var i=!0}catch{}var l=xs.call(e);return i&&(t?e[Ir]=r:delete e[Ir]),l}var bi=Xn?function(e){return e==null?[]:(e=Te(e),cr(Xn(e),function(t){return Hl.call(e,t)}))}:Li,Mc=Xn?function(e){for(var t=[];e;)ur(t,bi(e)),e=Ts(e);return t}:Li,Ke=Ze;(Gn&&Ke(new Gn(new ArrayBuffer(1)))!=lr||qa&&Ke(new qa)!=ct||Vn&&Ke(Vn.resolve())!=ya||Yr&&Ke(new Yr)!=ut||Ca&&Ke(new Ca)!=or)&&(Ke=function(e){var t=Ze(e),r=t==xt?e.constructor:a,i=r?Sr(r):"";if(i)switch(i){case Af:return lr;case qf:return ct;case Cf:return ya;case Sf:return ut;case zf:return or}return t});function Xy(e,t,r){for(var i=-1,l=r.length;++i<l;){var p=r[i],f=p.size;switch(p.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=Ye(t,e+f);break;case"takeRight":e=Ue(e,t-f);break}}return{start:e,end:t}}function Gy(e){var t=e.match(qn);return t?t[1].split(y):[]}function Fc(e,t,r){t=yr(t,e);for(var i=-1,l=t.length,p=!1;++i<l;){var f=Ht(t[i]);if(!(p=e!=null&&r(e,f)))break;e=e[f]}return p||++i!=l?p:(l=e==null?0:e.length,!!l&&Ks(l)&&er(f,l)&&(re(e)||zr(e)))}function Vy(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&xe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function jc(e){return typeof e.constructor=="function"&&!Ma(e)?Qr(Ts(e)):{}}function Yy(e,t,r){var i=e.constructor;switch(t){case Nt:return pi(e);case jt:case Xt:return new i(+e);case lr:return Ny(e,r);case jr:case Br:case vr:case ha:case _a:case ga:case ba:case xa:case wa:return vc(e,r);case ct:return new i;case Bt:case Gt:return new i(e);case wr:return Oy(e);case ut:return new i;case Fr:return Py(e)}}function Ky(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(An,`{
113
113
  /* [wrapped with `+t+`] */
114
- `)}function Qy(e){return re(e)||zr(e)||!!($l&&e&&e[$l])}function er(e,t){var r=typeof e;return t=t??Le,!!t&&(r=="number"||r!="symbol"&&ze.test(e))&&e>-1&&e%1==0&&e<t}function Je(e,t,r){if(!Ce(r))return!1;var i=typeof t;return(i=="number"?st(r)&&er(t,r.length):i=="string"&&t in r)?Rt(r[t],e):!1}function xi(e,t){if(re(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ft(e)?!0:us.test(e)||!cs.test(e)||t!=null&&e in Te(t)}function Zy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function wi(e){var t=Us(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var i=_i(r);return!!i&&e===i[0]}function Jy(e){return!!Bl&&Bl in e}var eh=gs?tr:Mi;function Ma(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vr;return e===r}function Bc(e){return e===e&&!Ce(e)}function Uc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in Te(r))}}function th(e){var t=Vs(e,function(i){return r.size===b&&r.clear(),i}),r=t.cache;return t}function rh(e,t){var r=e[1],i=t[1],c=r|i,p=c<(R|H|G),f=i==G&&r==B||i==G&&r==ye&&e[7].length<=t[8]||i==(G|ye)&&t[7].length<=t[8]&&r==B;if(!(p||f))return e;i&R&&(e[2]=t[2],c|=r&R?0:S);var _=t[3];if(_){var v=e[3];e[3]=v?Ic(v,_,t[4]):_,e[4]=v?dr(e[3],w):t[4]}return _=t[5],_&&(v=e[5],e[5]=v?kc(v,_,t[6]):_,e[6]=v?dr(e[5],w):t[6]),_=t[7],_&&(e[7]=_),i&G&&(e[8]=e[8]==null?t[8]:Ye(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function ah(e){var t=[];if(e!=null)for(var r in Te(e))t.push(r);return t}function sh(e){return xs.call(e)}function Wc(e,t,r){return t=Ue(t===a?e.length-1:t,0),function(){for(var i=arguments,c=-1,p=Ue(i.length-t,0),f=I(p);++c<p;)f[c]=i[t+c];c=-1;for(var _=I(t+1);++c<t;)_[c]=i[c];return _[t]=r(f),dt(e,this,_)}}function Hc(e,t){return t.length<2?e:qr(e,Dt(t,0,-1))}function nh(e,t){for(var r=e.length,i=Ye(t.length,r),c=at(e);i--;){var p=t[i];e[i]=er(p,r)?c[p]:a}return e}function vi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var $c=Gc(fc),Fa=xf||function(e,t){return Xe.setTimeout(e,t)},Ti=Gc(qy);function Xc(e,t,r){var i=t+"";return Ti(e,Ky(i,ih(Gy(i),r)))}function Gc(e){var t=0,r=0;return function(){var i=If(),c=Me-(i-r);if(r=i,c>0){if(++t>=zt)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Hs(e,t){var r=-1,i=e.length,c=i-1;for(t=t===a?i:t;++r<t;){var p=ni(r,c),f=e[p];e[p]=e[r],e[r]=f}return e.length=t,e}var Vc=th(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kn,function(r,i,c,p){t.push(c?p.replace(Z,"$1"):i||r)}),t});function Ht(e){if(typeof e=="string"||ft(e))return e;var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function Sr(e){if(e!=null){try{return bs.call(e)}catch{}try{return e+""}catch{}}return""}function ih(e,t){return vt($t,function(r){var i="_."+r[0];t&r[1]&&!fs(e,i)&&e.push(i)}),e.sort()}function Yc(e){if(e instanceof ue)return e.clone();var t=new It(e.__wrapped__,e.__chain__);return t.__actions__=at(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function oh(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=Ue(ae(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var c=0,p=0,f=I(Ds(i/t));c<i;)f[p++]=Dt(e,c,c+=t);return f}function lh(e){for(var t=-1,r=e==null?0:e.length,i=0,c=[];++t<r;){var p=e[t];p&&(c[i++]=p)}return c}function ch(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return ur(re(r)?at(r):[r],Ge(t,1))}var uh=ne(function(e,t){return Pe(e)?Oa(e,Ge(t,1,Pe,!0)):[]}),dh=ne(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Oa(e,Ge(t,1,Pe,!0),Y(r,2)):[]}),ph=ne(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Oa(e,Ge(t,1,Pe,!0),a,r):[]});function mh(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:ae(t),Dt(e,t<0?0:t,i)):[]}function fh(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:ae(t),t=i-t,Dt(e,0,t<0?0:t)):[]}function yh(e,t){return e&&e.length?Rs(e,Y(t,3),!0,!0):[]}function hh(e,t){return e&&e.length?Rs(e,Y(t,3),!0):[]}function _h(e,t,r,i){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&Je(e,t,r)&&(r=0,i=c),cy(e,t,r,i)):[]}function Kc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var c=r==null?0:ae(r);return c<0&&(c=Ue(i+c,0)),ys(e,Y(t,3),c)}function Qc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var c=i-1;return r!==a&&(c=ae(r),c=r<0?Ue(i+c,0):Ye(c,i-1)),ys(e,Y(t,3),c,!0)}function Zc(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function gh(e){var t=e==null?0:e.length;return t?Ge(e,Oe):[]}function bh(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:ae(t),Ge(e,t)):[]}function xh(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var c=e[t];i[c[0]]=c[1]}return i}function Jc(e){return e&&e.length?e[0]:a}function wh(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var c=r==null?0:ae(r);return c<0&&(c=Ue(i+c,0)),Hr(e,t,c)}function vh(e){var t=e==null?0:e.length;return t?Dt(e,0,-1):[]}var Th=ne(function(e){var t=De(e,ui);return t.length&&t[0]===e[0]?ei(t):[]}),Ih=ne(function(e){var t=At(e),r=De(e,ui);return t===At(r)?t=a:r.pop(),r.length&&r[0]===e[0]?ei(r,Y(t,2)):[]}),kh=ne(function(e){var t=At(e),r=De(e,ui);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?ei(r,a,t):[]});function Dh(e,t){return e==null?"":vf.call(e,t)}function At(e){var t=e==null?0:e.length;return t?e[t-1]:a}function Ah(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var c=i;return r!==a&&(c=ae(r),c=c<0?Ue(i+c,0):Ye(c,i-1)),t===t?nf(e,t,c):ys(e,Ol,c,!0)}function qh(e,t){return e&&e.length?uc(e,ae(t)):a}var Ch=ne(eu);function eu(e,t){return e&&e.length&&t&&t.length?si(e,t):e}function Sh(e,t,r){return e&&e.length&&t&&t.length?si(e,t,Y(r,2)):e}function zh(e,t,r){return e&&e.length&&t&&t.length?si(e,t,a,r):e}var Nh=Jt(function(e,t){var r=e==null?0:e.length,i=Kn(e,t);return mc(e,De(t,function(c){return er(c,r)?+c:c}).sort(Tc)),i});function Oh(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,c=[],p=e.length;for(t=Y(t,3);++i<p;){var f=e[i];t(f,i,e)&&(r.push(f),c.push(i))}return mc(e,c),r}function Ii(e){return e==null?e:Df.call(e)}function Ph(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Je(e,t,r)?(t=0,r=i):(t=t==null?0:ae(t),r=r===a?i:ae(r)),Dt(e,t,r)):[]}function Eh(e,t){return Es(e,t)}function Rh(e,t,r){return oi(e,t,Y(r,2))}function Lh(e,t){var r=e==null?0:e.length;if(r){var i=Es(e,t);if(i<r&&Rt(e[i],t))return i}return-1}function Mh(e,t){return Es(e,t,!0)}function Fh(e,t,r){return oi(e,t,Y(r,2),!0)}function jh(e,t){var r=e==null?0:e.length;if(r){var i=Es(e,t,!0)-1;if(Rt(e[i],t))return i}return-1}function Bh(e){return e&&e.length?yc(e):[]}function Uh(e,t){return e&&e.length?yc(e,Y(t,2)):[]}function Wh(e){var t=e==null?0:e.length;return t?Dt(e,1,t):[]}function Hh(e,t,r){return e&&e.length?(t=r||t===a?1:ae(t),Dt(e,0,t<0?0:t)):[]}function $h(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:ae(t),t=i-t,Dt(e,t<0?0:t,i)):[]}function Xh(e,t){return e&&e.length?Rs(e,Y(t,3),!1,!0):[]}function Gh(e,t){return e&&e.length?Rs(e,Y(t,3)):[]}var Vh=ne(function(e){return fr(Ge(e,1,Pe,!0))}),Yh=ne(function(e){var t=At(e);return Pe(t)&&(t=a),fr(Ge(e,1,Pe,!0),Y(t,2))}),Kh=ne(function(e){var t=At(e);return t=typeof t=="function"?t:a,fr(Ge(e,1,Pe,!0),a,t)});function Qh(e){return e&&e.length?fr(e):[]}function Zh(e,t){return e&&e.length?fr(e,Y(t,2)):[]}function Jh(e,t){return t=typeof t=="function"?t:a,e&&e.length?fr(e,a,t):[]}function ki(e){if(!(e&&e.length))return[];var t=0;return e=cr(e,function(r){if(Pe(r))return t=Ue(r.length,t),!0}),Un(t,function(r){return De(e,Fn(r))})}function tu(e,t){if(!(e&&e.length))return[];var r=ki(e);return t==null?r:De(r,function(i){return dt(t,a,i)})}var e_=ne(function(e,t){return Pe(e)?Oa(e,t):[]}),t_=ne(function(e){return ci(cr(e,Pe))}),r_=ne(function(e){var t=At(e);return Pe(t)&&(t=a),ci(cr(e,Pe),Y(t,2))}),a_=ne(function(e){var t=At(e);return t=typeof t=="function"?t:a,ci(cr(e,Pe),a,t)}),s_=ne(ki);function n_(e,t){return bc(e||[],t||[],Na)}function i_(e,t){return bc(e||[],t||[],Ra)}var o_=ne(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,tu(e,r)});function ru(e){var t=d(e);return t.__chain__=!0,t}function l_(e,t){return t(e),e}function $s(e,t){return t(e)}var c_=Jt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,c=function(p){return Kn(p,e)};return t>1||this.__actions__.length||!(i instanceof ue)||!er(r)?this.thru(c):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:$s,args:[c],thisArg:a}),new It(i,this.__chain__).thru(function(p){return t&&!p.length&&p.push(a),p}))});function u_(){return ru(this)}function d_(){return new It(this.value(),this.__chain__)}function p_(){this.__values__===a&&(this.__values__=hu(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function m_(){return this}function f_(e){for(var t,r=this;r instanceof Ss;){var i=Yc(r);i.__index__=0,i.__values__=a,t?c.__wrapped__=i:t=i;var c=i;r=r.__wrapped__}return c.__wrapped__=e,t}function y_(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:$s,args:[Ii],thisArg:a}),new It(t,this.__chain__)}return this.thru(Ii)}function h_(){return gc(this.__wrapped__,this.__actions__)}var __=Ls(function(e,t,r){xe.call(e,r)?++e[r]:Qt(e,r,1)});function g_(e,t,r){var i=re(e)?zl:ly;return r&&Je(e,t,r)&&(t=a),i(e,Y(t,3))}function b_(e,t){var r=re(e)?cr:tc;return r(e,Y(t,3))}var x_=Cc(Kc),w_=Cc(Qc);function v_(e,t){return Ge(Xs(e,t),1)}function T_(e,t){return Ge(Xs(e,t),Oe)}function I_(e,t,r){return r=r===a?1:ae(r),Ge(Xs(e,t),r)}function au(e,t){var r=re(e)?vt:mr;return r(e,Y(t,3))}function su(e,t){var r=re(e)?Um:ec;return r(e,Y(t,3))}var k_=Ls(function(e,t,r){xe.call(e,r)?e[r].push(t):Qt(e,r,[t])});function D_(e,t,r,i){e=st(e)?e:ra(e),r=r&&!i?ae(r):0;var c=e.length;return r<0&&(r=Ue(c+r,0)),Qs(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Hr(e,t,r)>-1}var A_=ne(function(e,t,r){var i=-1,c=typeof t=="function",p=st(e)?I(e.length):[];return mr(e,function(f){p[++i]=c?dt(t,f,r):Pa(f,t,r)}),p}),q_=Ls(function(e,t,r){Qt(e,r,t)});function Xs(e,t){var r=re(e)?De:oc;return r(e,Y(t,3))}function C_(e,t,r,i){return e==null?[]:(re(t)||(t=t==null?[]:[t]),r=i?a:r,re(r)||(r=r==null?[]:[r]),dc(e,t,r))}var S_=Ls(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function z_(e,t,r){var i=re(e)?Ln:El,c=arguments.length<3;return i(e,Y(t,4),r,c,mr)}function N_(e,t,r){var i=re(e)?Wm:El,c=arguments.length<3;return i(e,Y(t,4),r,c,ec)}function O_(e,t){var r=re(e)?cr:tc;return r(e,Ys(Y(t,3)))}function P_(e){var t=re(e)?Kl:Dy;return t(e)}function E_(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=ae(t);var i=re(e)?ay:Ay;return i(e,t)}function R_(e){var t=re(e)?sy:Cy;return t(e)}function L_(e){if(e==null)return 0;if(st(e))return Qs(e)?Xr(e):e.length;var t=Ke(e);return t==ct||t==ut?e.size:ri(e).length}function M_(e,t,r){var i=re(e)?Mn:Sy;return r&&Je(e,t,r)&&(t=a),i(e,Y(t,3))}var F_=ne(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Je(e,t[0],t[1])?t=[]:r>2&&Je(t[0],t[1],t[2])&&(t=[t[0]]),dc(e,Ge(t,1),[])}),Gs=bf||function(){return Xe.Date.now()};function j_(e,t){if(typeof t!="function")throw new Tt(m);return e=ae(e),function(){if(--e<1)return t.apply(this,arguments)}}function nu(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Zt(e,G,a,a,a,a,t)}function iu(e,t){var r;if(typeof t!="function")throw new Tt(m);return e=ae(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Di=ne(function(e,t,r){var i=R;if(r.length){var c=dr(r,ea(Di));i|=M}return Zt(e,i,t,r,c)}),ou=ne(function(e,t,r){var i=R|H;if(r.length){var c=dr(r,ea(ou));i|=M}return Zt(t,i,e,r,c)});function lu(e,t,r){t=r?a:t;var i=Zt(e,B,a,a,a,a,a,t);return i.placeholder=lu.placeholder,i}function cu(e,t,r){t=r?a:t;var i=Zt(e,A,a,a,a,a,a,t);return i.placeholder=cu.placeholder,i}function uu(e,t,r){var i,c,p,f,_,v,q=0,C=!1,z=!1,W=!0;if(typeof e!="function")throw new Tt(m);t=qt(t)||0,Ce(r)&&(C=!!r.leading,z="maxWait"in r,p=z?Ue(qt(r.maxWait)||0,t):p,W="trailing"in r?!!r.trailing:W);function X(Ee){var Lt=i,ar=c;return i=c=a,q=Ee,f=e.apply(ar,Lt),f}function K(Ee){return q=Ee,_=Fa(oe,t),C?X(Ee):f}function se(Ee){var Lt=Ee-v,ar=Ee-q,Cu=t-Lt;return z?Ye(Cu,p-ar):Cu}function Q(Ee){var Lt=Ee-v,ar=Ee-q;return v===a||Lt>=t||Lt<0||z&&ar>=p}function oe(){var Ee=Gs();if(Q(Ee))return de(Ee);_=Fa(oe,se(Ee))}function de(Ee){return _=a,W&&i?X(Ee):(i=c=a,f)}function yt(){_!==a&&xc(_),q=0,i=v=c=_=a}function et(){return _===a?f:de(Gs())}function ht(){var Ee=Gs(),Lt=Q(Ee);if(i=arguments,c=this,v=Ee,Lt){if(_===a)return K(v);if(z)return xc(_),_=Fa(oe,t),X(v)}return _===a&&(_=Fa(oe,t)),f}return ht.cancel=yt,ht.flush=et,ht}var B_=ne(function(e,t){return Jl(e,1,t)}),U_=ne(function(e,t,r){return Jl(e,qt(t)||0,r)});function W_(e){return Zt(e,he)}function Vs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Tt(m);var r=function(){var i=arguments,c=t?t.apply(this,i):i[0],p=r.cache;if(p.has(c))return p.get(c);var f=e.apply(this,i);return r.cache=p.set(c,f)||p,f};return r.cache=new(Vs.Cache||Kt),r}Vs.Cache=Kt;function Ys(e){if(typeof e!="function")throw new Tt(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function H_(e){return iu(2,e)}var $_=zy(function(e,t){t=t.length==1&&re(t[0])?De(t[0],pt(Y())):De(Ge(t,1),pt(Y()));var r=t.length;return ne(function(i){for(var c=-1,p=Ye(i.length,r);++c<p;)i[c]=t[c].call(this,i[c]);return dt(e,this,i)})}),Ai=ne(function(e,t){var r=dr(t,ea(Ai));return Zt(e,M,a,t,r)}),du=ne(function(e,t){var r=dr(t,ea(du));return Zt(e,J,a,t,r)}),X_=Jt(function(e,t){return Zt(e,ye,a,a,a,t)});function G_(e,t){if(typeof e!="function")throw new Tt(m);return t=t===a?t:ae(t),ne(e,t)}function V_(e,t){if(typeof e!="function")throw new Tt(m);return t=t==null?0:Ue(ae(t),0),ne(function(r){var i=r[t],c=hr(r,0,t);return i&&ur(c,i),dt(e,this,c)})}function Y_(e,t,r){var i=!0,c=!0;if(typeof e!="function")throw new Tt(m);return Ce(r)&&(i="leading"in r?!!r.leading:i,c="trailing"in r?!!r.trailing:c),uu(e,t,{leading:i,maxWait:t,trailing:c})}function K_(e){return nu(e,1)}function Q_(e,t){return Ai(di(t),e)}function Z_(){if(!arguments.length)return[];var e=arguments[0];return re(e)?e:[e]}function J_(e){return kt(e,L)}function eg(e,t){return t=typeof t=="function"?t:a,kt(e,L,t)}function tg(e){return kt(e,T|L)}function rg(e,t){return t=typeof t=="function"?t:a,kt(e,T|L,t)}function ag(e,t){return t==null||Zl(e,t,He(t))}function Rt(e,t){return e===t||e!==e&&t!==t}var sg=Bs(Jn),ng=Bs(function(e,t){return e>=t}),zr=sc(function(){return arguments}())?sc:function(e){return Ne(e)&&xe.call(e,"callee")&&!Hl.call(e,"callee")},re=I.isArray,ig=kl?pt(kl):fy;function st(e){return e!=null&&Ks(e.length)&&!tr(e)}function Pe(e){return Ne(e)&&st(e)}function og(e){return e===!0||e===!1||Ne(e)&&Ze(e)==jt}var _r=wf||Mi,lg=Dl?pt(Dl):yy;function cg(e){return Ne(e)&&e.nodeType===1&&!ja(e)}function ug(e){if(e==null)return!0;if(st(e)&&(re(e)||typeof e=="string"||typeof e.splice=="function"||_r(e)||ta(e)||zr(e)))return!e.length;var t=Ke(e);if(t==ct||t==ut)return!e.size;if(Ma(e))return!ri(e).length;for(var r in e)if(xe.call(e,r))return!1;return!0}function dg(e,t){return Ea(e,t)}function pg(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Ea(e,t,a,r):!!i}function qi(e){if(!Ne(e))return!1;var t=Ze(e);return t==Rr||t==Er||typeof e.message=="string"&&typeof e.name=="string"&&!ja(e)}function mg(e){return typeof e=="number"&&Xl(e)}function tr(e){if(!Ce(e))return!1;var t=Ze(e);return t==xr||t==as||t==fa||t==Mr}function pu(e){return typeof e=="number"&&e==ae(e)}function Ks(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Le}function Ce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ne(e){return e!=null&&typeof e=="object"}var mu=Al?pt(Al):_y;function fg(e,t){return e===t||ti(e,t,gi(t))}function yg(e,t,r){return r=typeof r=="function"?r:a,ti(e,t,gi(t),r)}function hg(e){return fu(e)&&e!=+e}function _g(e){if(eh(e))throw new te(u);return nc(e)}function gg(e){return e===null}function bg(e){return e==null}function fu(e){return typeof e=="number"||Ne(e)&&Ze(e)==Bt}function ja(e){if(!Ne(e)||Ze(e)!=xt)return!1;var t=Ts(e);if(t===null)return!0;var r=xe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&bs.call(r)==yf}var Ci=ql?pt(ql):gy;function xg(e){return pu(e)&&e>=-Le&&e<=Le}var yu=Cl?pt(Cl):by;function Qs(e){return typeof e=="string"||!re(e)&&Ne(e)&&Ze(e)==Gt}function ft(e){return typeof e=="symbol"||Ne(e)&&Ze(e)==Fr}var ta=Sl?pt(Sl):xy;function wg(e){return e===a}function vg(e){return Ne(e)&&Ke(e)==or}function Tg(e){return Ne(e)&&Ze(e)==ss}var Ig=Bs(ai),kg=Bs(function(e,t){return e<=t});function hu(e){if(!e)return[];if(st(e))return Qs(e)?Pt(e):at(e);if(Aa&&e[Aa])return rf(e[Aa]());var t=Ke(e),r=t==ct?Hn:t==ut?hs:ra;return r(e)}function rr(e){if(!e)return e===0?e:0;if(e=qt(e),e===Oe||e===-Oe){var t=e<0?-1:1;return t*lt}return e===e?e:0}function ae(e){var t=rr(e),r=t%1;return t===t?r?t-r:t:0}function _u(e){return e?Ar(ae(e),0,ee):0}function qt(e){if(typeof e=="number")return e;if(ft(e))return je;if(Ce(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ce(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rl(e);var r=ie.test(e);return r||qe.test(e)?Fm(e.slice(2),r?2:8):ce.test(e)?je:+e}function gu(e){return Wt(e,nt(e))}function Dg(e){return e?Ar(ae(e),-Le,Le):e===0?e:0}function ge(e){return e==null?"":mt(e)}var Ag=Zr(function(e,t){if(Ma(t)||st(t)){Wt(t,He(t),e);return}for(var r in t)xe.call(t,r)&&Na(e,r,t[r])}),bu=Zr(function(e,t){Wt(t,nt(t),e)}),Zs=Zr(function(e,t,r,i){Wt(t,nt(t),e,i)}),qg=Zr(function(e,t,r,i){Wt(t,He(t),e,i)}),Cg=Jt(Kn);function Sg(e,t){var r=Qr(e);return t==null?r:Ql(r,t)}var zg=ne(function(e,t){e=Te(e);var r=-1,i=t.length,c=i>2?t[2]:a;for(c&&Je(t[0],t[1],c)&&(i=1);++r<i;)for(var p=t[r],f=nt(p),_=-1,v=f.length;++_<v;){var q=f[_],C=e[q];(C===a||Rt(C,Vr[q])&&!xe.call(e,q))&&(e[q]=p[q])}return e}),Ng=ne(function(e){return e.push(a,Rc),dt(xu,a,e)});function Og(e,t){return Nl(e,Y(t,3),Ut)}function Pg(e,t){return Nl(e,Y(t,3),Zn)}function Eg(e,t){return e==null?e:Qn(e,Y(t,3),nt)}function Rg(e,t){return e==null?e:rc(e,Y(t,3),nt)}function Lg(e,t){return e&&Ut(e,Y(t,3))}function Mg(e,t){return e&&Zn(e,Y(t,3))}function Fg(e){return e==null?[]:Os(e,He(e))}function jg(e){return e==null?[]:Os(e,nt(e))}function Si(e,t,r){var i=e==null?a:qr(e,t);return i===a?r:i}function Bg(e,t){return e!=null&&Fc(e,t,uy)}function zi(e,t){return e!=null&&Fc(e,t,dy)}var Ug=zc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=xs.call(t)),e[t]=r},Oi(it)),Wg=zc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=xs.call(t)),xe.call(e,t)?e[t].push(r):e[t]=[r]},Y),Hg=ne(Pa);function He(e){return st(e)?Yl(e):ri(e)}function nt(e){return st(e)?Yl(e,!0):wy(e)}function $g(e,t){var r={};return t=Y(t,3),Ut(e,function(i,c,p){Qt(r,t(i,c,p),i)}),r}function Xg(e,t){var r={};return t=Y(t,3),Ut(e,function(i,c,p){Qt(r,c,t(i,c,p))}),r}var Gg=Zr(function(e,t,r){Ps(e,t,r)}),xu=Zr(function(e,t,r,i){Ps(e,t,r,i)}),Vg=Jt(function(e,t){var r={};if(e==null)return r;var i=!1;t=De(t,function(p){return p=yr(p,e),i||(i=p.length>1),p}),Wt(e,hi(e),r),i&&(r=kt(r,T|E|L,Uy));for(var c=t.length;c--;)li(r,t[c]);return r});function Yg(e,t){return wu(e,Ys(Y(t)))}var Kg=Jt(function(e,t){return e==null?{}:Ty(e,t)});function wu(e,t){if(e==null)return{};var r=De(hi(e),function(i){return[i]});return t=Y(t),pc(e,r,function(i,c){return t(i,c[0])})}function Qg(e,t,r){t=yr(t,e);var i=-1,c=t.length;for(c||(c=1,e=a);++i<c;){var p=e==null?a:e[Ht(t[i])];p===a&&(i=c,p=r),e=tr(p)?p.call(e):p}return e}function Zg(e,t,r){return e==null?e:Ra(e,t,r)}function Jg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Ra(e,t,r,i)}var vu=Pc(He),Tu=Pc(nt);function eb(e,t,r){var i=re(e),c=i||_r(e)||ta(e);if(t=Y(t,4),r==null){var p=e&&e.constructor;c?r=i?new p:[]:Ce(e)?r=tr(p)?Qr(Ts(e)):{}:r={}}return(c?vt:Ut)(e,function(f,_,v){return t(r,f,_,v)}),r}function tb(e,t){return e==null?!0:li(e,t)}function rb(e,t,r){return e==null?e:_c(e,t,di(r))}function ab(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:_c(e,t,di(r),i)}function ra(e){return e==null?[]:Wn(e,He(e))}function sb(e){return e==null?[]:Wn(e,nt(e))}function nb(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=qt(r),r=r===r?r:0),t!==a&&(t=qt(t),t=t===t?t:0),Ar(qt(e),t,r)}function ib(e,t,r){return t=rr(t),r===a?(r=t,t=0):r=rr(r),e=qt(e),py(e,t,r)}function ob(e,t,r){if(r&&typeof r!="boolean"&&Je(e,t,r)&&(t=r=a),r===a&&(typeof t=="boolean"?(r=t,t=a):typeof e=="boolean"&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=rr(e),t===a?(t=e,e=0):t=rr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var c=Gl();return Ye(e+c*(t-e+Mm("1e-"+((c+"").length-1))),t)}return ni(e,t)}var lb=Jr(function(e,t,r){return t=t.toLowerCase(),e+(r?Iu(t):t)});function Iu(e){return Ni(ge(e).toLowerCase())}function ku(e){return e=ge(e),e&&e.replace(tt,Qm).replace(qm,"")}function cb(e,t,r){e=ge(e),t=mt(t);var i=e.length;r=r===a?i:Ar(ae(r),0,i);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function ub(e){return e=ge(e),e&&is.test(e)?e.replace(Ur,Zm):e}function db(e){return e=ge(e),e&&ds.test(e)?e.replace(Ia,"\\$&"):e}var pb=Jr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),mb=Jr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),fb=qc("toLowerCase");function yb(e,t,r){e=ge(e),t=ae(t);var i=t?Xr(e):0;if(!t||i>=t)return e;var c=(t-i)/2;return js(As(c),r)+e+js(Ds(c),r)}function hb(e,t,r){e=ge(e),t=ae(t);var i=t?Xr(e):0;return t&&i<t?e+js(t-i,r):e}function _b(e,t,r){e=ge(e),t=ae(t);var i=t?Xr(e):0;return t&&i<t?js(t-i,r)+e:e}function gb(e,t,r){return r||t==null?t=0:t&&(t=+t),kf(ge(e).replace(ka,""),t||0)}function bb(e,t,r){return(r?Je(e,t,r):t===a)?t=1:t=ae(t),ii(ge(e),t)}function xb(){var e=arguments,t=ge(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var wb=Jr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function vb(e,t,r){return r&&typeof r!="number"&&Je(e,t,r)&&(t=r=a),r=r===a?ee:r>>>0,r?(e=ge(e),e&&(typeof t=="string"||t!=null&&!Ci(t))&&(t=mt(t),!t&&$r(e))?hr(Pt(e),0,r):e.split(t,r)):[]}var Tb=Jr(function(e,t,r){return e+(r?" ":"")+Ni(t)});function Ib(e,t,r){return e=ge(e),r=r==null?0:Ar(ae(r),0,e.length),t=mt(t),e.slice(r,r+t.length)==t}function kb(e,t,r){var i=d.templateSettings;r&&Je(e,t,r)&&(t=a),e=ge(e),t=Zs({},t,i,Ec);var c=Zs({},t.imports,i.imports,Ec),p=He(c),f=Wn(c,p),_,v,q=0,C=t.interpolate||Ot,z="__p += '",W=$n((t.escape||Ot).source+"|"+C.source+"|"+(C===ls?pe:Ot).source+"|"+(t.evaluate||Ot).source+"|$","g"),X="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Om+"]")+`
115
- `;e.replace(W,function(Q,oe,de,yt,et,ht){return de||(de=yt),z+=e.slice(q,ht).replace(ps,Jm),oe&&(_=!0,z+=`' +
114
+ `)}function Qy(e){return re(e)||zr(e)||!!($l&&e&&e[$l])}function er(e,t){var r=typeof e;return t=t??Le,!!t&&(r=="number"||r!="symbol"&&ze.test(e))&&e>-1&&e%1==0&&e<t}function Je(e,t,r){if(!Ce(r))return!1;var i=typeof t;return(i=="number"?st(r)&&er(t,r.length):i=="string"&&t in r)?Rt(r[t],e):!1}function xi(e,t){if(re(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ft(e)?!0:us.test(e)||!cs.test(e)||t!=null&&e in Te(t)}function Zy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function wi(e){var t=Us(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var i=_i(r);return!!i&&e===i[0]}function Jy(e){return!!Bl&&Bl in e}var eh=gs?tr:Mi;function Ma(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vr;return e===r}function Bc(e){return e===e&&!Ce(e)}function Uc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in Te(r))}}function th(e){var t=Vs(e,function(i){return r.size===g&&r.clear(),i}),r=t.cache;return t}function rh(e,t){var r=e[1],i=t[1],l=r|i,p=l<(V|M|G),f=i==G&&r==E||i==G&&r==ye&&e[7].length<=t[8]||i==(G|ye)&&t[7].length<=t[8]&&r==E;if(!(p||f))return e;i&V&&(e[2]=t[2],l|=r&V?0:B);var _=t[3];if(_){var v=e[3];e[3]=v?Ic(v,_,t[4]):_,e[4]=v?dr(e[3],w):t[4]}return _=t[5],_&&(v=e[5],e[5]=v?kc(v,_,t[6]):_,e[6]=v?dr(e[5],w):t[6]),_=t[7],_&&(e[7]=_),i&G&&(e[8]=e[8]==null?t[8]:Ye(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function ah(e){var t=[];if(e!=null)for(var r in Te(e))t.push(r);return t}function sh(e){return xs.call(e)}function Wc(e,t,r){return t=Ue(t===a?e.length-1:t,0),function(){for(var i=arguments,l=-1,p=Ue(i.length-t,0),f=I(p);++l<p;)f[l]=i[t+l];l=-1;for(var _=I(t+1);++l<t;)_[l]=i[l];return _[t]=r(f),dt(e,this,_)}}function Hc(e,t){return t.length<2?e:qr(e,Dt(t,0,-1))}function nh(e,t){for(var r=e.length,i=Ye(t.length,r),l=at(e);i--;){var p=t[i];e[i]=er(p,r)?l[p]:a}return e}function vi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var $c=Gc(fc),Fa=xf||function(e,t){return Xe.setTimeout(e,t)},Ti=Gc(qy);function Xc(e,t,r){var i=t+"";return Ti(e,Ky(i,ih(Gy(i),r)))}function Gc(e){var t=0,r=0;return function(){var i=If(),l=Me-(i-r);if(r=i,l>0){if(++t>=zt)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Hs(e,t){var r=-1,i=e.length,l=i-1;for(t=t===a?i:t;++r<t;){var p=ni(r,l),f=e[p];e[p]=e[r],e[r]=f}return e.length=t,e}var Vc=th(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kn,function(r,i,l,p){t.push(l?p.replace(J,"$1"):i||r)}),t});function Ht(e){if(typeof e=="string"||ft(e))return e;var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function Sr(e){if(e!=null){try{return bs.call(e)}catch{}try{return e+""}catch{}}return""}function ih(e,t){return vt($t,function(r){var i="_."+r[0];t&r[1]&&!fs(e,i)&&e.push(i)}),e.sort()}function Yc(e){if(e instanceof ue)return e.clone();var t=new It(e.__wrapped__,e.__chain__);return t.__actions__=at(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function oh(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=Ue(ae(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var l=0,p=0,f=I(Ds(i/t));l<i;)f[p++]=Dt(e,l,l+=t);return f}function lh(e){for(var t=-1,r=e==null?0:e.length,i=0,l=[];++t<r;){var p=e[t];p&&(l[i++]=p)}return l}function ch(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return ur(re(r)?at(r):[r],Ge(t,1))}var uh=ne(function(e,t){return Pe(e)?Oa(e,Ge(t,1,Pe,!0)):[]}),dh=ne(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Oa(e,Ge(t,1,Pe,!0),K(r,2)):[]}),ph=ne(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Oa(e,Ge(t,1,Pe,!0),a,r):[]});function mh(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:ae(t),Dt(e,t<0?0:t,i)):[]}function fh(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:ae(t),t=i-t,Dt(e,0,t<0?0:t)):[]}function yh(e,t){return e&&e.length?Rs(e,K(t,3),!0,!0):[]}function hh(e,t){return e&&e.length?Rs(e,K(t,3),!0):[]}function _h(e,t,r,i){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&Je(e,t,r)&&(r=0,i=l),cy(e,t,r,i)):[]}function Kc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:ae(r);return l<0&&(l=Ue(i+l,0)),ys(e,K(t,3),l)}function Qc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i-1;return r!==a&&(l=ae(r),l=r<0?Ue(i+l,0):Ye(l,i-1)),ys(e,K(t,3),l,!0)}function Zc(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function gh(e){var t=e==null?0:e.length;return t?Ge(e,Oe):[]}function bh(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:ae(t),Ge(e,t)):[]}function xh(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var l=e[t];i[l[0]]=l[1]}return i}function Jc(e){return e&&e.length?e[0]:a}function wh(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:ae(r);return l<0&&(l=Ue(i+l,0)),Hr(e,t,l)}function vh(e){var t=e==null?0:e.length;return t?Dt(e,0,-1):[]}var Th=ne(function(e){var t=De(e,ui);return t.length&&t[0]===e[0]?ei(t):[]}),Ih=ne(function(e){var t=At(e),r=De(e,ui);return t===At(r)?t=a:r.pop(),r.length&&r[0]===e[0]?ei(r,K(t,2)):[]}),kh=ne(function(e){var t=At(e),r=De(e,ui);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?ei(r,a,t):[]});function Dh(e,t){return e==null?"":vf.call(e,t)}function At(e){var t=e==null?0:e.length;return t?e[t-1]:a}function Ah(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i;return r!==a&&(l=ae(r),l=l<0?Ue(i+l,0):Ye(l,i-1)),t===t?nf(e,t,l):ys(e,Ol,l,!0)}function qh(e,t){return e&&e.length?uc(e,ae(t)):a}var Ch=ne(eu);function eu(e,t){return e&&e.length&&t&&t.length?si(e,t):e}function Sh(e,t,r){return e&&e.length&&t&&t.length?si(e,t,K(r,2)):e}function zh(e,t,r){return e&&e.length&&t&&t.length?si(e,t,a,r):e}var Nh=Jt(function(e,t){var r=e==null?0:e.length,i=Kn(e,t);return mc(e,De(t,function(l){return er(l,r)?+l:l}).sort(Tc)),i});function Oh(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,l=[],p=e.length;for(t=K(t,3);++i<p;){var f=e[i];t(f,i,e)&&(r.push(f),l.push(i))}return mc(e,l),r}function Ii(e){return e==null?e:Df.call(e)}function Ph(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Je(e,t,r)?(t=0,r=i):(t=t==null?0:ae(t),r=r===a?i:ae(r)),Dt(e,t,r)):[]}function Eh(e,t){return Es(e,t)}function Rh(e,t,r){return oi(e,t,K(r,2))}function Lh(e,t){var r=e==null?0:e.length;if(r){var i=Es(e,t);if(i<r&&Rt(e[i],t))return i}return-1}function Mh(e,t){return Es(e,t,!0)}function Fh(e,t,r){return oi(e,t,K(r,2),!0)}function jh(e,t){var r=e==null?0:e.length;if(r){var i=Es(e,t,!0)-1;if(Rt(e[i],t))return i}return-1}function Bh(e){return e&&e.length?yc(e):[]}function Uh(e,t){return e&&e.length?yc(e,K(t,2)):[]}function Wh(e){var t=e==null?0:e.length;return t?Dt(e,1,t):[]}function Hh(e,t,r){return e&&e.length?(t=r||t===a?1:ae(t),Dt(e,0,t<0?0:t)):[]}function $h(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:ae(t),t=i-t,Dt(e,t<0?0:t,i)):[]}function Xh(e,t){return e&&e.length?Rs(e,K(t,3),!1,!0):[]}function Gh(e,t){return e&&e.length?Rs(e,K(t,3)):[]}var Vh=ne(function(e){return fr(Ge(e,1,Pe,!0))}),Yh=ne(function(e){var t=At(e);return Pe(t)&&(t=a),fr(Ge(e,1,Pe,!0),K(t,2))}),Kh=ne(function(e){var t=At(e);return t=typeof t=="function"?t:a,fr(Ge(e,1,Pe,!0),a,t)});function Qh(e){return e&&e.length?fr(e):[]}function Zh(e,t){return e&&e.length?fr(e,K(t,2)):[]}function Jh(e,t){return t=typeof t=="function"?t:a,e&&e.length?fr(e,a,t):[]}function ki(e){if(!(e&&e.length))return[];var t=0;return e=cr(e,function(r){if(Pe(r))return t=Ue(r.length,t),!0}),Un(t,function(r){return De(e,Fn(r))})}function tu(e,t){if(!(e&&e.length))return[];var r=ki(e);return t==null?r:De(r,function(i){return dt(t,a,i)})}var e_=ne(function(e,t){return Pe(e)?Oa(e,t):[]}),t_=ne(function(e){return ci(cr(e,Pe))}),r_=ne(function(e){var t=At(e);return Pe(t)&&(t=a),ci(cr(e,Pe),K(t,2))}),a_=ne(function(e){var t=At(e);return t=typeof t=="function"?t:a,ci(cr(e,Pe),a,t)}),s_=ne(ki);function n_(e,t){return bc(e||[],t||[],Na)}function i_(e,t){return bc(e||[],t||[],Ra)}var o_=ne(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,tu(e,r)});function ru(e){var t=d(e);return t.__chain__=!0,t}function l_(e,t){return t(e),e}function $s(e,t){return t(e)}var c_=Jt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,l=function(p){return Kn(p,e)};return t>1||this.__actions__.length||!(i instanceof ue)||!er(r)?this.thru(l):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:$s,args:[l],thisArg:a}),new It(i,this.__chain__).thru(function(p){return t&&!p.length&&p.push(a),p}))});function u_(){return ru(this)}function d_(){return new It(this.value(),this.__chain__)}function p_(){this.__values__===a&&(this.__values__=hu(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function m_(){return this}function f_(e){for(var t,r=this;r instanceof Ss;){var i=Yc(r);i.__index__=0,i.__values__=a,t?l.__wrapped__=i:t=i;var l=i;r=r.__wrapped__}return l.__wrapped__=e,t}function y_(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:$s,args:[Ii],thisArg:a}),new It(t,this.__chain__)}return this.thru(Ii)}function h_(){return gc(this.__wrapped__,this.__actions__)}var __=Ls(function(e,t,r){xe.call(e,r)?++e[r]:Qt(e,r,1)});function g_(e,t,r){var i=re(e)?zl:ly;return r&&Je(e,t,r)&&(t=a),i(e,K(t,3))}function b_(e,t){var r=re(e)?cr:tc;return r(e,K(t,3))}var x_=Cc(Kc),w_=Cc(Qc);function v_(e,t){return Ge(Xs(e,t),1)}function T_(e,t){return Ge(Xs(e,t),Oe)}function I_(e,t,r){return r=r===a?1:ae(r),Ge(Xs(e,t),r)}function au(e,t){var r=re(e)?vt:mr;return r(e,K(t,3))}function su(e,t){var r=re(e)?Um:ec;return r(e,K(t,3))}var k_=Ls(function(e,t,r){xe.call(e,r)?e[r].push(t):Qt(e,r,[t])});function D_(e,t,r,i){e=st(e)?e:ra(e),r=r&&!i?ae(r):0;var l=e.length;return r<0&&(r=Ue(l+r,0)),Qs(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Hr(e,t,r)>-1}var A_=ne(function(e,t,r){var i=-1,l=typeof t=="function",p=st(e)?I(e.length):[];return mr(e,function(f){p[++i]=l?dt(t,f,r):Pa(f,t,r)}),p}),q_=Ls(function(e,t,r){Qt(e,r,t)});function Xs(e,t){var r=re(e)?De:oc;return r(e,K(t,3))}function C_(e,t,r,i){return e==null?[]:(re(t)||(t=t==null?[]:[t]),r=i?a:r,re(r)||(r=r==null?[]:[r]),dc(e,t,r))}var S_=Ls(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function z_(e,t,r){var i=re(e)?Ln:El,l=arguments.length<3;return i(e,K(t,4),r,l,mr)}function N_(e,t,r){var i=re(e)?Wm:El,l=arguments.length<3;return i(e,K(t,4),r,l,ec)}function O_(e,t){var r=re(e)?cr:tc;return r(e,Ys(K(t,3)))}function P_(e){var t=re(e)?Kl:Dy;return t(e)}function E_(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=ae(t);var i=re(e)?ay:Ay;return i(e,t)}function R_(e){var t=re(e)?sy:Cy;return t(e)}function L_(e){if(e==null)return 0;if(st(e))return Qs(e)?Xr(e):e.length;var t=Ke(e);return t==ct||t==ut?e.size:ri(e).length}function M_(e,t,r){var i=re(e)?Mn:Sy;return r&&Je(e,t,r)&&(t=a),i(e,K(t,3))}var F_=ne(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Je(e,t[0],t[1])?t=[]:r>2&&Je(t[0],t[1],t[2])&&(t=[t[0]]),dc(e,Ge(t,1),[])}),Gs=bf||function(){return Xe.Date.now()};function j_(e,t){if(typeof t!="function")throw new Tt(m);return e=ae(e),function(){if(--e<1)return t.apply(this,arguments)}}function nu(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Zt(e,G,a,a,a,a,t)}function iu(e,t){var r;if(typeof t!="function")throw new Tt(m);return e=ae(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Di=ne(function(e,t,r){var i=V;if(r.length){var l=dr(r,ea(Di));i|=P}return Zt(e,i,t,r,l)}),ou=ne(function(e,t,r){var i=V|M;if(r.length){var l=dr(r,ea(ou));i|=P}return Zt(t,i,e,r,l)});function lu(e,t,r){t=r?a:t;var i=Zt(e,E,a,a,a,a,a,t);return i.placeholder=lu.placeholder,i}function cu(e,t,r){t=r?a:t;var i=Zt(e,k,a,a,a,a,a,t);return i.placeholder=cu.placeholder,i}function uu(e,t,r){var i,l,p,f,_,v,q=0,C=!1,S=!1,W=!0;if(typeof e!="function")throw new Tt(m);t=qt(t)||0,Ce(r)&&(C=!!r.leading,S="maxWait"in r,p=S?Ue(qt(r.maxWait)||0,t):p,W="trailing"in r?!!r.trailing:W);function $(Ee){var Lt=i,ar=l;return i=l=a,q=Ee,f=e.apply(ar,Lt),f}function Q(Ee){return q=Ee,_=Fa(oe,t),C?$(Ee):f}function se(Ee){var Lt=Ee-v,ar=Ee-q,Cu=t-Lt;return S?Ye(Cu,p-ar):Cu}function Z(Ee){var Lt=Ee-v,ar=Ee-q;return v===a||Lt>=t||Lt<0||S&&ar>=p}function oe(){var Ee=Gs();if(Z(Ee))return de(Ee);_=Fa(oe,se(Ee))}function de(Ee){return _=a,W&&i?$(Ee):(i=l=a,f)}function yt(){_!==a&&xc(_),q=0,i=v=l=_=a}function et(){return _===a?f:de(Gs())}function ht(){var Ee=Gs(),Lt=Z(Ee);if(i=arguments,l=this,v=Ee,Lt){if(_===a)return Q(v);if(S)return xc(_),_=Fa(oe,t),$(v)}return _===a&&(_=Fa(oe,t)),f}return ht.cancel=yt,ht.flush=et,ht}var B_=ne(function(e,t){return Jl(e,1,t)}),U_=ne(function(e,t,r){return Jl(e,qt(t)||0,r)});function W_(e){return Zt(e,he)}function Vs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Tt(m);var r=function(){var i=arguments,l=t?t.apply(this,i):i[0],p=r.cache;if(p.has(l))return p.get(l);var f=e.apply(this,i);return r.cache=p.set(l,f)||p,f};return r.cache=new(Vs.Cache||Kt),r}Vs.Cache=Kt;function Ys(e){if(typeof e!="function")throw new Tt(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function H_(e){return iu(2,e)}var $_=zy(function(e,t){t=t.length==1&&re(t[0])?De(t[0],pt(K())):De(Ge(t,1),pt(K()));var r=t.length;return ne(function(i){for(var l=-1,p=Ye(i.length,r);++l<p;)i[l]=t[l].call(this,i[l]);return dt(e,this,i)})}),Ai=ne(function(e,t){var r=dr(t,ea(Ai));return Zt(e,P,a,t,r)}),du=ne(function(e,t){var r=dr(t,ea(du));return Zt(e,X,a,t,r)}),X_=Jt(function(e,t){return Zt(e,ye,a,a,a,t)});function G_(e,t){if(typeof e!="function")throw new Tt(m);return t=t===a?t:ae(t),ne(e,t)}function V_(e,t){if(typeof e!="function")throw new Tt(m);return t=t==null?0:Ue(ae(t),0),ne(function(r){var i=r[t],l=hr(r,0,t);return i&&ur(l,i),dt(e,this,l)})}function Y_(e,t,r){var i=!0,l=!0;if(typeof e!="function")throw new Tt(m);return Ce(r)&&(i="leading"in r?!!r.leading:i,l="trailing"in r?!!r.trailing:l),uu(e,t,{leading:i,maxWait:t,trailing:l})}function K_(e){return nu(e,1)}function Q_(e,t){return Ai(di(t),e)}function Z_(){if(!arguments.length)return[];var e=arguments[0];return re(e)?e:[e]}function J_(e){return kt(e,L)}function eg(e,t){return t=typeof t=="function"?t:a,kt(e,L,t)}function tg(e){return kt(e,T|L)}function rg(e,t){return t=typeof t=="function"?t:a,kt(e,T|L,t)}function ag(e,t){return t==null||Zl(e,t,He(t))}function Rt(e,t){return e===t||e!==e&&t!==t}var sg=Bs(Jn),ng=Bs(function(e,t){return e>=t}),zr=sc(function(){return arguments}())?sc:function(e){return Ne(e)&&xe.call(e,"callee")&&!Hl.call(e,"callee")},re=I.isArray,ig=kl?pt(kl):fy;function st(e){return e!=null&&Ks(e.length)&&!tr(e)}function Pe(e){return Ne(e)&&st(e)}function og(e){return e===!0||e===!1||Ne(e)&&Ze(e)==jt}var _r=wf||Mi,lg=Dl?pt(Dl):yy;function cg(e){return Ne(e)&&e.nodeType===1&&!ja(e)}function ug(e){if(e==null)return!0;if(st(e)&&(re(e)||typeof e=="string"||typeof e.splice=="function"||_r(e)||ta(e)||zr(e)))return!e.length;var t=Ke(e);if(t==ct||t==ut)return!e.size;if(Ma(e))return!ri(e).length;for(var r in e)if(xe.call(e,r))return!1;return!0}function dg(e,t){return Ea(e,t)}function pg(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Ea(e,t,a,r):!!i}function qi(e){if(!Ne(e))return!1;var t=Ze(e);return t==Rr||t==Er||typeof e.message=="string"&&typeof e.name=="string"&&!ja(e)}function mg(e){return typeof e=="number"&&Xl(e)}function tr(e){if(!Ce(e))return!1;var t=Ze(e);return t==xr||t==as||t==fa||t==Mr}function pu(e){return typeof e=="number"&&e==ae(e)}function Ks(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Le}function Ce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ne(e){return e!=null&&typeof e=="object"}var mu=Al?pt(Al):_y;function fg(e,t){return e===t||ti(e,t,gi(t))}function yg(e,t,r){return r=typeof r=="function"?r:a,ti(e,t,gi(t),r)}function hg(e){return fu(e)&&e!=+e}function _g(e){if(eh(e))throw new te(c);return nc(e)}function gg(e){return e===null}function bg(e){return e==null}function fu(e){return typeof e=="number"||Ne(e)&&Ze(e)==Bt}function ja(e){if(!Ne(e)||Ze(e)!=xt)return!1;var t=Ts(e);if(t===null)return!0;var r=xe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&bs.call(r)==yf}var Ci=ql?pt(ql):gy;function xg(e){return pu(e)&&e>=-Le&&e<=Le}var yu=Cl?pt(Cl):by;function Qs(e){return typeof e=="string"||!re(e)&&Ne(e)&&Ze(e)==Gt}function ft(e){return typeof e=="symbol"||Ne(e)&&Ze(e)==Fr}var ta=Sl?pt(Sl):xy;function wg(e){return e===a}function vg(e){return Ne(e)&&Ke(e)==or}function Tg(e){return Ne(e)&&Ze(e)==ss}var Ig=Bs(ai),kg=Bs(function(e,t){return e<=t});function hu(e){if(!e)return[];if(st(e))return Qs(e)?Pt(e):at(e);if(Aa&&e[Aa])return rf(e[Aa]());var t=Ke(e),r=t==ct?Hn:t==ut?hs:ra;return r(e)}function rr(e){if(!e)return e===0?e:0;if(e=qt(e),e===Oe||e===-Oe){var t=e<0?-1:1;return t*lt}return e===e?e:0}function ae(e){var t=rr(e),r=t%1;return t===t?r?t-r:t:0}function _u(e){return e?Ar(ae(e),0,ee):0}function qt(e){if(typeof e=="number")return e;if(ft(e))return je;if(Ce(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ce(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rl(e);var r=ie.test(e);return r||qe.test(e)?Fm(e.slice(2),r?2:8):ce.test(e)?je:+e}function gu(e){return Wt(e,nt(e))}function Dg(e){return e?Ar(ae(e),-Le,Le):e===0?e:0}function ge(e){return e==null?"":mt(e)}var Ag=Zr(function(e,t){if(Ma(t)||st(t)){Wt(t,He(t),e);return}for(var r in t)xe.call(t,r)&&Na(e,r,t[r])}),bu=Zr(function(e,t){Wt(t,nt(t),e)}),Zs=Zr(function(e,t,r,i){Wt(t,nt(t),e,i)}),qg=Zr(function(e,t,r,i){Wt(t,He(t),e,i)}),Cg=Jt(Kn);function Sg(e,t){var r=Qr(e);return t==null?r:Ql(r,t)}var zg=ne(function(e,t){e=Te(e);var r=-1,i=t.length,l=i>2?t[2]:a;for(l&&Je(t[0],t[1],l)&&(i=1);++r<i;)for(var p=t[r],f=nt(p),_=-1,v=f.length;++_<v;){var q=f[_],C=e[q];(C===a||Rt(C,Vr[q])&&!xe.call(e,q))&&(e[q]=p[q])}return e}),Ng=ne(function(e){return e.push(a,Rc),dt(xu,a,e)});function Og(e,t){return Nl(e,K(t,3),Ut)}function Pg(e,t){return Nl(e,K(t,3),Zn)}function Eg(e,t){return e==null?e:Qn(e,K(t,3),nt)}function Rg(e,t){return e==null?e:rc(e,K(t,3),nt)}function Lg(e,t){return e&&Ut(e,K(t,3))}function Mg(e,t){return e&&Zn(e,K(t,3))}function Fg(e){return e==null?[]:Os(e,He(e))}function jg(e){return e==null?[]:Os(e,nt(e))}function Si(e,t,r){var i=e==null?a:qr(e,t);return i===a?r:i}function Bg(e,t){return e!=null&&Fc(e,t,uy)}function zi(e,t){return e!=null&&Fc(e,t,dy)}var Ug=zc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=xs.call(t)),e[t]=r},Oi(it)),Wg=zc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=xs.call(t)),xe.call(e,t)?e[t].push(r):e[t]=[r]},K),Hg=ne(Pa);function He(e){return st(e)?Yl(e):ri(e)}function nt(e){return st(e)?Yl(e,!0):wy(e)}function $g(e,t){var r={};return t=K(t,3),Ut(e,function(i,l,p){Qt(r,t(i,l,p),i)}),r}function Xg(e,t){var r={};return t=K(t,3),Ut(e,function(i,l,p){Qt(r,l,t(i,l,p))}),r}var Gg=Zr(function(e,t,r){Ps(e,t,r)}),xu=Zr(function(e,t,r,i){Ps(e,t,r,i)}),Vg=Jt(function(e,t){var r={};if(e==null)return r;var i=!1;t=De(t,function(p){return p=yr(p,e),i||(i=p.length>1),p}),Wt(e,hi(e),r),i&&(r=kt(r,T|R|L,Uy));for(var l=t.length;l--;)li(r,t[l]);return r});function Yg(e,t){return wu(e,Ys(K(t)))}var Kg=Jt(function(e,t){return e==null?{}:Ty(e,t)});function wu(e,t){if(e==null)return{};var r=De(hi(e),function(i){return[i]});return t=K(t),pc(e,r,function(i,l){return t(i,l[0])})}function Qg(e,t,r){t=yr(t,e);var i=-1,l=t.length;for(l||(l=1,e=a);++i<l;){var p=e==null?a:e[Ht(t[i])];p===a&&(i=l,p=r),e=tr(p)?p.call(e):p}return e}function Zg(e,t,r){return e==null?e:Ra(e,t,r)}function Jg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Ra(e,t,r,i)}var vu=Pc(He),Tu=Pc(nt);function eb(e,t,r){var i=re(e),l=i||_r(e)||ta(e);if(t=K(t,4),r==null){var p=e&&e.constructor;l?r=i?new p:[]:Ce(e)?r=tr(p)?Qr(Ts(e)):{}:r={}}return(l?vt:Ut)(e,function(f,_,v){return t(r,f,_,v)}),r}function tb(e,t){return e==null?!0:li(e,t)}function rb(e,t,r){return e==null?e:_c(e,t,di(r))}function ab(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:_c(e,t,di(r),i)}function ra(e){return e==null?[]:Wn(e,He(e))}function sb(e){return e==null?[]:Wn(e,nt(e))}function nb(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=qt(r),r=r===r?r:0),t!==a&&(t=qt(t),t=t===t?t:0),Ar(qt(e),t,r)}function ib(e,t,r){return t=rr(t),r===a?(r=t,t=0):r=rr(r),e=qt(e),py(e,t,r)}function ob(e,t,r){if(r&&typeof r!="boolean"&&Je(e,t,r)&&(t=r=a),r===a&&(typeof t=="boolean"?(r=t,t=a):typeof e=="boolean"&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=rr(e),t===a?(t=e,e=0):t=rr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var l=Gl();return Ye(e+l*(t-e+Mm("1e-"+((l+"").length-1))),t)}return ni(e,t)}var lb=Jr(function(e,t,r){return t=t.toLowerCase(),e+(r?Iu(t):t)});function Iu(e){return Ni(ge(e).toLowerCase())}function ku(e){return e=ge(e),e&&e.replace(tt,Qm).replace(qm,"")}function cb(e,t,r){e=ge(e),t=mt(t);var i=e.length;r=r===a?i:Ar(ae(r),0,i);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function ub(e){return e=ge(e),e&&is.test(e)?e.replace(Ur,Zm):e}function db(e){return e=ge(e),e&&ds.test(e)?e.replace(Ia,"\\$&"):e}var pb=Jr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),mb=Jr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),fb=qc("toLowerCase");function yb(e,t,r){e=ge(e),t=ae(t);var i=t?Xr(e):0;if(!t||i>=t)return e;var l=(t-i)/2;return js(As(l),r)+e+js(Ds(l),r)}function hb(e,t,r){e=ge(e),t=ae(t);var i=t?Xr(e):0;return t&&i<t?e+js(t-i,r):e}function _b(e,t,r){e=ge(e),t=ae(t);var i=t?Xr(e):0;return t&&i<t?js(t-i,r)+e:e}function gb(e,t,r){return r||t==null?t=0:t&&(t=+t),kf(ge(e).replace(ka,""),t||0)}function bb(e,t,r){return(r?Je(e,t,r):t===a)?t=1:t=ae(t),ii(ge(e),t)}function xb(){var e=arguments,t=ge(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var wb=Jr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function vb(e,t,r){return r&&typeof r!="number"&&Je(e,t,r)&&(t=r=a),r=r===a?ee:r>>>0,r?(e=ge(e),e&&(typeof t=="string"||t!=null&&!Ci(t))&&(t=mt(t),!t&&$r(e))?hr(Pt(e),0,r):e.split(t,r)):[]}var Tb=Jr(function(e,t,r){return e+(r?" ":"")+Ni(t)});function Ib(e,t,r){return e=ge(e),r=r==null?0:Ar(ae(r),0,e.length),t=mt(t),e.slice(r,r+t.length)==t}function kb(e,t,r){var i=d.templateSettings;r&&Je(e,t,r)&&(t=a),e=ge(e),t=Zs({},t,i,Ec);var l=Zs({},t.imports,i.imports,Ec),p=He(l),f=Wn(l,p),_,v,q=0,C=t.interpolate||Ot,S="__p += '",W=$n((t.escape||Ot).source+"|"+C.source+"|"+(C===ls?pe:Ot).source+"|"+(t.evaluate||Ot).source+"|$","g"),$="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Om+"]")+`
115
+ `;e.replace(W,function(Z,oe,de,yt,et,ht){return de||(de=yt),S+=e.slice(q,ht).replace(ps,Jm),oe&&(_=!0,S+=`' +
116
116
  __e(`+oe+`) +
117
- '`),et&&(v=!0,z+=`';
117
+ '`),et&&(v=!0,S+=`';
118
118
  `+et+`;
119
- __p += '`),de&&(z+=`' +
119
+ __p += '`),de&&(S+=`' +
120
120
  ((__t = (`+de+`)) == null ? '' : __t) +
121
- '`),q=ht+Q.length,Q}),z+=`';
122
- `;var K=xe.call(t,"variable")&&t.variable;if(!K)z=`with (obj) {
123
- `+z+`
121
+ '`),q=ht+Z.length,Z}),S+=`';
122
+ `;var Q=xe.call(t,"variable")&&t.variable;if(!Q)S=`with (obj) {
123
+ `+S+`
124
124
  }
125
- `;else if(U.test(K))throw new te(h);z=(v?z.replace(Tn,""):z).replace(va,"$1").replace(ns,"$1;"),z="function("+(K||"obj")+`) {
126
- `+(K?"":`obj || (obj = {});
125
+ `;else if(U.test(Q))throw new te(h);S=(v?S.replace(Tn,""):S).replace(va,"$1").replace(ns,"$1;"),S="function("+(Q||"obj")+`) {
126
+ `+(Q?"":`obj || (obj = {});
127
127
  `)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(v?`, __j = Array.prototype.join;
128
128
  function print() { __p += __j.call(arguments, '') }
129
129
  `:`;
130
- `)+z+`return __p
131
- }`;var se=Au(function(){return fe(p,X+"return "+z).apply(a,f)});if(se.source=z,qi(se))throw se;return se}function Db(e){return ge(e).toLowerCase()}function Ab(e){return ge(e).toUpperCase()}function qb(e,t,r){if(e=ge(e),e&&(r||t===a))return Rl(e);if(!e||!(t=mt(t)))return e;var i=Pt(e),c=Pt(t),p=Ll(i,c),f=Ml(i,c)+1;return hr(i,p,f).join("")}function Cb(e,t,r){if(e=ge(e),e&&(r||t===a))return e.slice(0,jl(e)+1);if(!e||!(t=mt(t)))return e;var i=Pt(e),c=Ml(i,Pt(t))+1;return hr(i,0,c).join("")}function Sb(e,t,r){if(e=ge(e),e&&(r||t===a))return e.replace(ka,"");if(!e||!(t=mt(t)))return e;var i=Pt(e),c=Ll(i,Pt(t));return hr(i,c).join("")}function zb(e,t){var r=le,i=bt;if(Ce(t)){var c="separator"in t?t.separator:c;r="length"in t?ae(t.length):r,i="omission"in t?mt(t.omission):i}e=ge(e);var p=e.length;if($r(e)){var f=Pt(e);p=f.length}if(r>=p)return e;var _=r-Xr(i);if(_<1)return i;var v=f?hr(f,0,_).join(""):e.slice(0,_);if(c===a)return v+i;if(f&&(_+=v.length-_),Ci(c)){if(e.slice(_).search(c)){var q,C=v;for(c.global||(c=$n(c.source,ge(_e.exec(c))+"g")),c.lastIndex=0;q=c.exec(C);)var z=q.index;v=v.slice(0,z===a?_:z)}}else if(e.indexOf(mt(c),_)!=_){var W=v.lastIndexOf(c);W>-1&&(v=v.slice(0,W))}return v+i}function Nb(e){return e=ge(e),e&&Ta.test(e)?e.replace(Vt,of):e}var Ob=Jr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ni=qc("toUpperCase");function Du(e,t,r){return e=ge(e),t=r?a:t,t===a?tf(e)?uf(e):Xm(e):e.match(t)||[]}var Au=ne(function(e,t){try{return dt(e,a,t)}catch(r){return qi(r)?r:new te(r)}}),Pb=Jt(function(e,t){return vt(t,function(r){r=Ht(r),Qt(e,r,Di(e[r],e))}),e});function Eb(e){var t=e==null?0:e.length,r=Y();return e=t?De(e,function(i){if(typeof i[1]!="function")throw new Tt(m);return[r(i[0]),i[1]]}):[],ne(function(i){for(var c=-1;++c<t;){var p=e[c];if(dt(p[0],this,i))return dt(p[1],this,i)}})}function Rb(e){return oy(kt(e,T))}function Oi(e){return function(){return e}}function Lb(e,t){return e==null||e!==e?t:e}var Mb=Sc(),Fb=Sc(!0);function it(e){return e}function Pi(e){return ic(typeof e=="function"?e:kt(e,T))}function jb(e){return lc(kt(e,T))}function Bb(e,t){return cc(e,kt(t,T))}var Ub=ne(function(e,t){return function(r){return Pa(r,e,t)}}),Wb=ne(function(e,t){return function(r){return Pa(e,r,t)}});function Ei(e,t,r){var i=He(t),c=Os(t,i);r==null&&!(Ce(t)&&(c.length||!i.length))&&(r=t,t=e,e=this,c=Os(t,He(t)));var p=!(Ce(r)&&"chain"in r)||!!r.chain,f=tr(e);return vt(c,function(_){var v=t[_];e[_]=v,f&&(e.prototype[_]=function(){var q=this.__chain__;if(p||q){var C=e(this.__wrapped__),z=C.__actions__=at(this.__actions__);return z.push({func:v,args:arguments,thisArg:e}),C.__chain__=q,C}return v.apply(e,ur([this.value()],arguments))})}),e}function Hb(){return Xe._===this&&(Xe._=hf),this}function Ri(){}function $b(e){return e=ae(e),ne(function(t){return uc(t,e)})}var Xb=mi(De),Gb=mi(zl),Vb=mi(Mn);function qu(e){return xi(e)?Fn(Ht(e)):Iy(e)}function Yb(e){return function(t){return e==null?a:qr(e,t)}}var Kb=Nc(),Qb=Nc(!0);function Li(){return[]}function Mi(){return!1}function Zb(){return{}}function Jb(){return""}function ex(){return!0}function tx(e,t){if(e=ae(e),e<1||e>Le)return[];var r=ee,i=Ye(e,ee);t=Y(t),e-=ee;for(var c=Un(i,t);++r<e;)t(r);return c}function rx(e){return re(e)?De(e,Ht):ft(e)?[e]:at(Vc(ge(e)))}function ax(e){var t=++ff;return ge(e)+t}var sx=Fs(function(e,t){return e+t},0),nx=fi("ceil"),ix=Fs(function(e,t){return e/t},1),ox=fi("floor");function lx(e){return e&&e.length?Ns(e,it,Jn):a}function cx(e,t){return e&&e.length?Ns(e,Y(t,2),Jn):a}function ux(e){return Pl(e,it)}function dx(e,t){return Pl(e,Y(t,2))}function px(e){return e&&e.length?Ns(e,it,ai):a}function mx(e,t){return e&&e.length?Ns(e,Y(t,2),ai):a}var fx=Fs(function(e,t){return e*t},1),yx=fi("round"),hx=Fs(function(e,t){return e-t},0);function _x(e){return e&&e.length?Bn(e,it):0}function gx(e,t){return e&&e.length?Bn(e,Y(t,2)):0}return d.after=j_,d.ary=nu,d.assign=Ag,d.assignIn=bu,d.assignInWith=Zs,d.assignWith=qg,d.at=Cg,d.before=iu,d.bind=Di,d.bindAll=Pb,d.bindKey=ou,d.castArray=Z_,d.chain=ru,d.chunk=oh,d.compact=lh,d.concat=ch,d.cond=Eb,d.conforms=Rb,d.constant=Oi,d.countBy=__,d.create=Sg,d.curry=lu,d.curryRight=cu,d.debounce=uu,d.defaults=zg,d.defaultsDeep=Ng,d.defer=B_,d.delay=U_,d.difference=uh,d.differenceBy=dh,d.differenceWith=ph,d.drop=mh,d.dropRight=fh,d.dropRightWhile=yh,d.dropWhile=hh,d.fill=_h,d.filter=b_,d.flatMap=v_,d.flatMapDeep=T_,d.flatMapDepth=I_,d.flatten=Zc,d.flattenDeep=gh,d.flattenDepth=bh,d.flip=W_,d.flow=Mb,d.flowRight=Fb,d.fromPairs=xh,d.functions=Fg,d.functionsIn=jg,d.groupBy=k_,d.initial=vh,d.intersection=Th,d.intersectionBy=Ih,d.intersectionWith=kh,d.invert=Ug,d.invertBy=Wg,d.invokeMap=A_,d.iteratee=Pi,d.keyBy=q_,d.keys=He,d.keysIn=nt,d.map=Xs,d.mapKeys=$g,d.mapValues=Xg,d.matches=jb,d.matchesProperty=Bb,d.memoize=Vs,d.merge=Gg,d.mergeWith=xu,d.method=Ub,d.methodOf=Wb,d.mixin=Ei,d.negate=Ys,d.nthArg=$b,d.omit=Vg,d.omitBy=Yg,d.once=H_,d.orderBy=C_,d.over=Xb,d.overArgs=$_,d.overEvery=Gb,d.overSome=Vb,d.partial=Ai,d.partialRight=du,d.partition=S_,d.pick=Kg,d.pickBy=wu,d.property=qu,d.propertyOf=Yb,d.pull=Ch,d.pullAll=eu,d.pullAllBy=Sh,d.pullAllWith=zh,d.pullAt=Nh,d.range=Kb,d.rangeRight=Qb,d.rearg=X_,d.reject=O_,d.remove=Oh,d.rest=G_,d.reverse=Ii,d.sampleSize=E_,d.set=Zg,d.setWith=Jg,d.shuffle=R_,d.slice=Ph,d.sortBy=F_,d.sortedUniq=Bh,d.sortedUniqBy=Uh,d.split=vb,d.spread=V_,d.tail=Wh,d.take=Hh,d.takeRight=$h,d.takeRightWhile=Xh,d.takeWhile=Gh,d.tap=l_,d.throttle=Y_,d.thru=$s,d.toArray=hu,d.toPairs=vu,d.toPairsIn=Tu,d.toPath=rx,d.toPlainObject=gu,d.transform=eb,d.unary=K_,d.union=Vh,d.unionBy=Yh,d.unionWith=Kh,d.uniq=Qh,d.uniqBy=Zh,d.uniqWith=Jh,d.unset=tb,d.unzip=ki,d.unzipWith=tu,d.update=rb,d.updateWith=ab,d.values=ra,d.valuesIn=sb,d.without=e_,d.words=Du,d.wrap=Q_,d.xor=t_,d.xorBy=r_,d.xorWith=a_,d.zip=s_,d.zipObject=n_,d.zipObjectDeep=i_,d.zipWith=o_,d.entries=vu,d.entriesIn=Tu,d.extend=bu,d.extendWith=Zs,Ei(d,d),d.add=sx,d.attempt=Au,d.camelCase=lb,d.capitalize=Iu,d.ceil=nx,d.clamp=nb,d.clone=J_,d.cloneDeep=tg,d.cloneDeepWith=rg,d.cloneWith=eg,d.conformsTo=ag,d.deburr=ku,d.defaultTo=Lb,d.divide=ix,d.endsWith=cb,d.eq=Rt,d.escape=ub,d.escapeRegExp=db,d.every=g_,d.find=x_,d.findIndex=Kc,d.findKey=Og,d.findLast=w_,d.findLastIndex=Qc,d.findLastKey=Pg,d.floor=ox,d.forEach=au,d.forEachRight=su,d.forIn=Eg,d.forInRight=Rg,d.forOwn=Lg,d.forOwnRight=Mg,d.get=Si,d.gt=sg,d.gte=ng,d.has=Bg,d.hasIn=zi,d.head=Jc,d.identity=it,d.includes=D_,d.indexOf=wh,d.inRange=ib,d.invoke=Hg,d.isArguments=zr,d.isArray=re,d.isArrayBuffer=ig,d.isArrayLike=st,d.isArrayLikeObject=Pe,d.isBoolean=og,d.isBuffer=_r,d.isDate=lg,d.isElement=cg,d.isEmpty=ug,d.isEqual=dg,d.isEqualWith=pg,d.isError=qi,d.isFinite=mg,d.isFunction=tr,d.isInteger=pu,d.isLength=Ks,d.isMap=mu,d.isMatch=fg,d.isMatchWith=yg,d.isNaN=hg,d.isNative=_g,d.isNil=bg,d.isNull=gg,d.isNumber=fu,d.isObject=Ce,d.isObjectLike=Ne,d.isPlainObject=ja,d.isRegExp=Ci,d.isSafeInteger=xg,d.isSet=yu,d.isString=Qs,d.isSymbol=ft,d.isTypedArray=ta,d.isUndefined=wg,d.isWeakMap=vg,d.isWeakSet=Tg,d.join=Dh,d.kebabCase=pb,d.last=At,d.lastIndexOf=Ah,d.lowerCase=mb,d.lowerFirst=fb,d.lt=Ig,d.lte=kg,d.max=lx,d.maxBy=cx,d.mean=ux,d.meanBy=dx,d.min=px,d.minBy=mx,d.stubArray=Li,d.stubFalse=Mi,d.stubObject=Zb,d.stubString=Jb,d.stubTrue=ex,d.multiply=fx,d.nth=qh,d.noConflict=Hb,d.noop=Ri,d.now=Gs,d.pad=yb,d.padEnd=hb,d.padStart=_b,d.parseInt=gb,d.random=ob,d.reduce=z_,d.reduceRight=N_,d.repeat=bb,d.replace=xb,d.result=Qg,d.round=yx,d.runInContext=x,d.sample=P_,d.size=L_,d.snakeCase=wb,d.some=M_,d.sortedIndex=Eh,d.sortedIndexBy=Rh,d.sortedIndexOf=Lh,d.sortedLastIndex=Mh,d.sortedLastIndexBy=Fh,d.sortedLastIndexOf=jh,d.startCase=Tb,d.startsWith=Ib,d.subtract=hx,d.sum=_x,d.sumBy=gx,d.template=kb,d.times=tx,d.toFinite=rr,d.toInteger=ae,d.toLength=_u,d.toLower=Db,d.toNumber=qt,d.toSafeInteger=Dg,d.toString=ge,d.toUpper=Ab,d.trim=qb,d.trimEnd=Cb,d.trimStart=Sb,d.truncate=zb,d.unescape=Nb,d.uniqueId=ax,d.upperCase=Ob,d.upperFirst=Ni,d.each=au,d.eachRight=su,d.first=Jc,Ei(d,function(){var e={};return Ut(d,function(t,r){xe.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),vt(["drop","take"],function(e,t){ue.prototype[e]=function(r){r=r===a?1:Ue(ae(r),0);var i=this.__filtered__&&!t?new ue(this):this.clone();return i.__filtered__?i.__takeCount__=Ye(r,i.__takeCount__):i.__views__.push({size:Ye(r,ee),type:e+(i.__dir__<0?"Right":"")}),i},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Fe||r==me;ue.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:Y(c,3),type:r}),p.__filtered__=p.__filtered__||i,p}}),vt(["head","last"],function(e,t){var r="take"+(t?"Right":"");ue.prototype[e]=function(){return this[r](1).value()[0]}}),vt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[r](1)}}),ue.prototype.compact=function(){return this.filter(it)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=ne(function(e,t){return typeof e=="function"?new ue(this):this.map(function(r){return Pa(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(Ys(Y(e)))},ue.prototype.slice=function(e,t){e=ae(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ue(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=ae(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(ee)},Ut(ue.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),c=d[i?"take"+(t=="last"?"Right":""):t],p=i||/^find/.test(t);c&&(d.prototype[t]=function(){var f=this.__wrapped__,_=i?[1]:arguments,v=f instanceof ue,q=_[0],C=v||re(f),z=function(oe){var de=c.apply(d,ur([oe],_));return i&&W?de[0]:de};C&&r&&typeof q=="function"&&q.length!=1&&(v=C=!1);var W=this.__chain__,X=!!this.__actions__.length,K=p&&!W,se=v&&!X;if(!p&&C){f=se?f:new ue(this);var Q=e.apply(f,_);return Q.__actions__.push({func:$s,args:[z],thisArg:a}),new It(Q,W)}return K&&se?e.apply(this,_):(Q=this.thru(z),K?i?Q.value()[0]:Q.value():Q)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=_s[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(i&&!this.__chain__){var p=this.value();return t.apply(re(p)?p:[],c)}return this[r](function(f){return t.apply(re(f)?f:[],c)})}}),Ut(ue.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";xe.call(Kr,i)||(Kr[i]=[]),Kr[i].push({name:t,func:r})}}),Kr[Ms(a,H).name]=[{name:"wrapper",func:a}],ue.prototype.clone=Nf,ue.prototype.reverse=Of,ue.prototype.value=Pf,d.prototype.at=c_,d.prototype.chain=u_,d.prototype.commit=d_,d.prototype.next=p_,d.prototype.plant=f_,d.prototype.reverse=y_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=h_,d.prototype.first=d.prototype.head,Aa&&(d.prototype[Aa]=m_),d},Gr=df();Tr?((Tr.exports=Gr)._=Gr,Pn._=Gr):Xe._=Gr}).call(aa)}(Xa,Xa.exports);var no=Xa.exports;const Re="tccScript",nn={builtinFunctions:/strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,keywords:/continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to/,tokenizer:{root:[[/\/\/\s*(?=@)/,"comment","@comments"],[/\/\/.*(?!@).*/,"comment"],[/\'([^\'\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/\"/,{token:"string",bracket:"@open",next:"@stringDouble"}],[/type\s+[a-zA-Z]\w*/,"entity.name.type"],[/'/,{token:"string",bracket:"@open",next:"@stringSingle"}],[/(@builtinFunctions)(?=\s*\(|\s*<.*>)/,{token:"support.function",next:"@template"}],[/@punctuation/,{token:"punctuation.operator",next:"@property"}],[/(varip|var)\b(\s+)((?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)/,[{token:"keyword"},{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"}]],[/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/,{token:"support.type",next:"@template"}],[/^(\s*)\b(?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)(\s+)(\=)/,[{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"},{token:"source"},{token:"keyword.equals"}]],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/import(?=\s+@importName)/,{token:"keyword",next:"@import"}],[/import(?=\s+[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+)/,"keyword"],[/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/([+-]?(\d+))(?!\w+)(?!\w+)/,"constant.numeric.integer"],[/(?:true|false)\b/,"constant.other.boolean"],[/#[0-9a-fA-F]{6,8}\b/,"constant.other.color"],[/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/,"keyword.operator"],[/\b(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b/,"keyword"],[/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,"entity.name.function"],[/[0-9]+\b/,"constant.numeric.integer"],[/=/,"keyword.equals"],[/\b(?:strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/\(|\)|\[|\]|\=|\>/,{token:"paren",next:"@pop"}],[/(\,)(\s+)/,["keyword.operator","source"]],[/(\,)/,{token:"keyword.operator"}],[/([\w.\d$]+)/,{token:"entity.name.type"}],[/(<|>)/,{token:"paren"}],[/\s(?=\w)|$/,{token:"source",next:"@pop"}]],property:[[/@punctuation/,{token:"punctuation.operator"}],[/(@builtinTypes)(?=\s*[(])/,{token:"support.method",next:"@pop"}],[/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,{token:"entity.name.method",next:"@pop"}],[/[a-zA-Z0-9_]+/,{token:"variable.other.property",next:"@pop"}],[/@empty/,{token:"source",next:"@pop"}]],import:[[/\s+/,{token:"source"}],[/(@importName)(\s+)(as\b)(\s+)(@importAlias)/,[{token:"entity.name.module"},{token:"source"},{token:"keyword"},{token:"source"},{token:"entity.name.module.name",next:"@pop"}]],[/@importName/,{token:"entity.name.module",next:"@pop"}]]},builtinTypes:/chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,punctuation:/[.](?![.])/,importName:/[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,importAlias:/[a-zA-Z\d\_\u00a1\uffff\/]+/,empty:/^$/};var Ct;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(Ct||(Ct={}));const on={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["[","]"]],folding:{markers:{start:/(\/\/#region)|(\/\/.*{($|\s))/,end:/(\/\/#endregion)|(\/\/.*}($|\s))/}},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:/\)\s*=>\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/else/,action:{indentAction:Ct.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:Ct.Indent}},{beforeText:/^\s*$/,action:{indentAction:Ct.Outdent}}]},k={"color-white":"#ffffff","color-black":"#000000","color-transparent":"#00000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#FF9100","color-tan-orange-a600":"#CC7014","color-tan-orange-a700":"#8C541C","color-tan-orange-a800":"#593A1B","color-tan-orange-a900":"#33261A","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#EEDA01","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-50":"#EDE7F6","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a600":"#24B29B","color-minty-green-a700":"#1B7667","color-minty-green-a800":"#10443B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a100":"#EA80FC","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-berry-pink-a400":"#f50057","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-forest-green-50":"#DAF2E6","color-forest-green-100":"#ACE5C9","color-forest-green-200":"#70CC9E","color-forest-green-300":"#42BD7F","color-forest-green-400":"#22AB67","color-forest-green-500":"#089950","color-forest-green-600":"#068043","color-forest-green-700":"#056636","color-forest-green-800":"#004D27","color-forest-green-900":"#1A3326","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-seeking-alpha-brand":"#ff7200"};function Ft(s,n=1){return s+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const ln={base:"vs",inherit:!0,rules:[{token:"comment",foreground:k["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:k["color-cold-gray-900"]},{token:"string",foreground:k["color-iguana-green-700"]},{token:"constant.numeric",foreground:k["color-banana-yellow-900"]},{token:"constant.language",foreground:k["color-ripe-red-a600"]},{token:"constant.other.color",foreground:k["color-ripe-red-a600"]},{token:"constant.other",foreground:k["color-ripe-red-a600"]},{token:"support.variable",foreground:k["color-ripe-red-a600"]},{token:"support.function",foreground:k["color-tv-blue-a600"]},{token:"support.type",foreground:k["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:k["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:k["color-tv-blue-a600"]},{token:"keyword.equals",foreground:k["color-minty-green-400"]},{token:"keyword.operator",foreground:k["color-minty-green-400"]},{token:"keyword.other",foreground:k["color-minty-green-400"]},{token:"keyword",foreground:k["color-minty-green-400"]},{token:"variable.other",foreground:k["color-cold-gray-800"]},{token:"variable.other.property",foreground:k["color-cold-gray-800"]},{token:"paren",foreground:k["color-black"]},{token:"entity.name.function",foreground:k["color-tv-blue-900"]},{token:"entity.name.method",foreground:k["color-tv-blue-900"]},{token:"meta.function-call",foreground:k["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:k["color-grapes-purple-600"]},{token:"entity.name.module",foreground:k["color-tv-blue-a600"]},{token:"",background:k["color-white"]}],colors:{"editor.foreground":k["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":k["color-cold-gray-400"],"editorLineNumber.activeForeground":k["color-cold-gray-700"],"editorHoverWidget.background":k["color-white"],"editorHoverWidget.statusBarBackground":k["color-cold-gray-150"],"editorHoverWidget.foreground":k["color-cold-gray-900"],"editorWidget.background":k["color-white"],"editorWidget.foreground":k["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Ft(k["color-cold-gray-200"],.5),"editor.lineHighlightBackground":k["color-tv-blue-50"],"editor.lineHighlightBorder":k["color-tv-blue-50"],"editor.rangeHighlightBackground":k["color-tv-blue-a800"],"editorBracketMatch.background":k["color-cold-gray-150"],"editor.selectionBackground":k["color-tv-blue-100"],"editor.selectionHighlightBackground":k["color-tv-blue-50"],"editor.findMatchBackground":k["color-tan-orange-100"],"editor.findMatchHighlightBackground":k["color-tan-orange-100"],"editor.findMatchBorder":k["color-tan-orange-500"],"list.foreground":k["color-cold-gray-900"],"list.hoverForeground":k["color-cold-gray-900"],"list.activeSelectionBackground":k["color-tv-blue-500"],"list.hoverBackground":k["color-tv-blue-50"],"list.focusHighlightForeground":k["color-tv-blue-100"],"list.inactiveSelectionBackground":k["color-tv-blue-500"],"keybindingLabel.background":k["color-white"],"keybindingLabel.foreground":k["color-cold-gray-900"],"keybindingLabel.border":k["color-cold-gray-150"],"input.foreground":k["color-cold-gray-900"],"textLink.foreground":k["color-tv-blue-500"],"textLink.activeForeground":k["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":k["color-tan-orange-100"],"peekViewResult.lineForeground":k["color-cold-gray-900"],"editorMarkerNavigationWarning.background":k["color-banana-yellow-800"],"inputValidation.warningBackground":k["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Ft(k["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Ft(k["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Ft(k["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Ft(k["color-ripe-red-500"],.15),"editorInlayHint.background":k["color-cold-gray-150"],"editorInlayHint.foreground":k["color-cold-gray-550"],"editorError.foreground":k["color-ripe-red-500"],"editorWarning.foreground":k["color-tan-orange-500"]}},cn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:k["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:k["color-white"]},{token:"string",foreground:k["color-iguana-green-700"]},{token:"constant.numeric",foreground:k["color-banana-yellow-900"]},{token:"constant.language",foreground:k["color-ripe-red-300"]},{token:"constant.other.color",foreground:k["color-ripe-red-300"]},{token:"constant.other",foreground:k["color-ripe-red-300"]},{token:"support.variable",foreground:k["color-ripe-red-300"]},{token:"support.function",foreground:k["color-tv-blue-300"]},{token:"support.method",foreground:k["color-tv-blue-300"]},{token:"support.type",foreground:k["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:k["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:k["color-minty-green-300"]},{token:"keyword.operator",foreground:k["color-minty-green-300"]},{token:"keyword.other",foreground:k["color-minty-green-300"]},{token:"keyword",foreground:k["color-minty-green-300"]},{token:"variable.other",foreground:k["color-cold-gray-200"]},{token:"variable.other.property",foreground:k["color-cold-gray-200"]},{token:"paren",foreground:k["color-white"]},{token:"entity.name.function",foreground:k["color-tv-blue-400"]},{token:"entity.name.method",foreground:k["color-tv-blue-400"]},{token:"meta.function-call",foreground:k["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:k["color-grapes-purple-300"]},{token:"entity.name.module",foreground:k["color-tv-blue-300"]},{token:"",background:k["color-cold-gray-900"]}],colors:{"editor.foreground":k["color-white"],"editor.background":k["color-cold-gray-900"],"editorLineNumber.foreground":k["color-cold-gray-500"],"editorLineNumber.activeForeground":k["color-cold-gray-300"],"editorWidget.background":k["color-cold-gray-850"],"editorHoverWidget.background":k["color-cold-gray-850"],"editorHoverWidget.foreground":k["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":k["color-cold-gray-900"],"editorWidget.foreground":k["color-cold-gray-300"],"editorGutter.background":k["color-cold-gray-900"],"editor.foldBackground":Ft(k["color-cold-gray-700"],.5),"editor.lineHighlightBackground":k["color-tv-blue-a900"],"editor.lineHighlightBorder":k["color-tv-blue-a900"],"editor.rangeHighlightBackground":k["color-tv-blue-a800"],"editorBracketMatch.background":k["color-cold-gray-750"],"editor.selectionBackground":k["color-tv-blue-a800"],"editor.selectionHighlightBackground":k["color-cold-gray-800"],"list.foreground":k["color-cold-gray-350"],"list.hoverForeground":k["color-cold-gray-350"],"list.activeSelectionBackground":k["color-tv-blue-500"],"list.hoverBackground":k["color-tv-blue-900"],"list.focusHighlightForeground":k["color-tv-blue-300"],"list.inactiveSelectionBackground":k["color-tv-blue-500"],"keybindingLabel.background":k["color-cold-gray-800"],"keybindingLabel.foreground":k["color-cold-gray-300"],"keybindingLabel.border":k["color-cold-gray-700"],"input.foreground":k["color-cold-gray-350"],"textLink.foreground":k["color-tv-blue-500"],"textLink.activeForeground":k["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":k["color-tan-orange-a800"],"peekViewResult.lineForeground":k["color-cold-gray-350"],"diffEditor.insertedTextBackground":Ft(k["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Ft(k["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Ft(k["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Ft(k["color-ripe-red-a400"],.15),"editorInlayHint.background":k["color-cold-gray-800"],"editorInlayHint.foreground":k["color-cold-gray-400"],"editorError.foreground":k["color-ripe-red-500"],"editorWarning.foreground":k["color-tan-orange-700"]}},ep=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,tp=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,io={"color.aqua":"#00BCD4","color.black":"#363A45","color.blue":"#2196F3","color.fuchsia":"#E040FB","color.gray":"#787B86","color.green":"#4CAF50","color.lime":"#00E676","color.maroon":"#880E4F","color.navy":"#311B92","color.olive":"#808000","color.orange":"#FF9800","color.purple":"#9C27B0","color.red":"#FF5252","color.silver":"#B2B5BE","color.teal":"#00897B","color.white":"#FFFFFF","color.yellow":"#FFEB3B"};class rp{constructor(n){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(a=[],o)=>{const l=new Map,u=o.indexOf("(");for(let m=u+1,h=u;m<o.length;m++)o[m]!==","&&o[m]!==")"||(h++,l.set(o.slice(h,m),h),h=m+1);return a.map(({name:m,displayType:h,desc:g})=>{const b=[],w=l.get(m),T=w+m.length;return b.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(h||""))),g&&b.push(Array.isArray(g)?g.join(this._formatter.lineBreak):g),{label:[w,T],documentation:{value:b.join(this._formatter.lineBreak)}}})}}),this._formatter=be,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,a){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const l=this._getSequentialSignatures(n,o),u=this._getActiveIndex(o,a);return{signatures:l,...u}}_getActiveIndex(n,a=[]){let o=0,l=-1;a.some(m=>!!m)||(l=a.length-1);const u=a.pop();if(u)for(const[m,h]of n.entries()){const{args:g}=h;if(g&&g.length){const b=g.findIndex(w=>w.name===u);if(b!=-1){l=b,o=m;break}}}return{activeParameter:l,activeSignature:o}}_getFuncItems(n){return gt.functions.get(n)||Mt.userFuncs.get(n)||Mt.methodFuncs.get(n)}_getSequentialSignatures(n,a){return a.map(o=>{const l=this._getSignatureLabel(n,o);return{label:l,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,l)}})}_getSignatureLabel(n,a,o=!1){const l=[n];return o&&l.push("<type>"),a.args&&(l.push("("),l.push(a.args.map(({name:u})=>u).join(", ")),l.push(")")),l.join("")}_getFormattedSignatureDocumentation(n){const{desc:a}=n,o=[];a&&o.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const l=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
130
+ `)+S+`return __p
131
+ }`;var se=Au(function(){return fe(p,$+"return "+S).apply(a,f)});if(se.source=S,qi(se))throw se;return se}function Db(e){return ge(e).toLowerCase()}function Ab(e){return ge(e).toUpperCase()}function qb(e,t,r){if(e=ge(e),e&&(r||t===a))return Rl(e);if(!e||!(t=mt(t)))return e;var i=Pt(e),l=Pt(t),p=Ll(i,l),f=Ml(i,l)+1;return hr(i,p,f).join("")}function Cb(e,t,r){if(e=ge(e),e&&(r||t===a))return e.slice(0,jl(e)+1);if(!e||!(t=mt(t)))return e;var i=Pt(e),l=Ml(i,Pt(t))+1;return hr(i,0,l).join("")}function Sb(e,t,r){if(e=ge(e),e&&(r||t===a))return e.replace(ka,"");if(!e||!(t=mt(t)))return e;var i=Pt(e),l=Ll(i,Pt(t));return hr(i,l).join("")}function zb(e,t){var r=le,i=bt;if(Ce(t)){var l="separator"in t?t.separator:l;r="length"in t?ae(t.length):r,i="omission"in t?mt(t.omission):i}e=ge(e);var p=e.length;if($r(e)){var f=Pt(e);p=f.length}if(r>=p)return e;var _=r-Xr(i);if(_<1)return i;var v=f?hr(f,0,_).join(""):e.slice(0,_);if(l===a)return v+i;if(f&&(_+=v.length-_),Ci(l)){if(e.slice(_).search(l)){var q,C=v;for(l.global||(l=$n(l.source,ge(_e.exec(l))+"g")),l.lastIndex=0;q=l.exec(C);)var S=q.index;v=v.slice(0,S===a?_:S)}}else if(e.indexOf(mt(l),_)!=_){var W=v.lastIndexOf(l);W>-1&&(v=v.slice(0,W))}return v+i}function Nb(e){return e=ge(e),e&&Ta.test(e)?e.replace(Vt,of):e}var Ob=Jr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ni=qc("toUpperCase");function Du(e,t,r){return e=ge(e),t=r?a:t,t===a?tf(e)?uf(e):Xm(e):e.match(t)||[]}var Au=ne(function(e,t){try{return dt(e,a,t)}catch(r){return qi(r)?r:new te(r)}}),Pb=Jt(function(e,t){return vt(t,function(r){r=Ht(r),Qt(e,r,Di(e[r],e))}),e});function Eb(e){var t=e==null?0:e.length,r=K();return e=t?De(e,function(i){if(typeof i[1]!="function")throw new Tt(m);return[r(i[0]),i[1]]}):[],ne(function(i){for(var l=-1;++l<t;){var p=e[l];if(dt(p[0],this,i))return dt(p[1],this,i)}})}function Rb(e){return oy(kt(e,T))}function Oi(e){return function(){return e}}function Lb(e,t){return e==null||e!==e?t:e}var Mb=Sc(),Fb=Sc(!0);function it(e){return e}function Pi(e){return ic(typeof e=="function"?e:kt(e,T))}function jb(e){return lc(kt(e,T))}function Bb(e,t){return cc(e,kt(t,T))}var Ub=ne(function(e,t){return function(r){return Pa(r,e,t)}}),Wb=ne(function(e,t){return function(r){return Pa(e,r,t)}});function Ei(e,t,r){var i=He(t),l=Os(t,i);r==null&&!(Ce(t)&&(l.length||!i.length))&&(r=t,t=e,e=this,l=Os(t,He(t)));var p=!(Ce(r)&&"chain"in r)||!!r.chain,f=tr(e);return vt(l,function(_){var v=t[_];e[_]=v,f&&(e.prototype[_]=function(){var q=this.__chain__;if(p||q){var C=e(this.__wrapped__),S=C.__actions__=at(this.__actions__);return S.push({func:v,args:arguments,thisArg:e}),C.__chain__=q,C}return v.apply(e,ur([this.value()],arguments))})}),e}function Hb(){return Xe._===this&&(Xe._=hf),this}function Ri(){}function $b(e){return e=ae(e),ne(function(t){return uc(t,e)})}var Xb=mi(De),Gb=mi(zl),Vb=mi(Mn);function qu(e){return xi(e)?Fn(Ht(e)):Iy(e)}function Yb(e){return function(t){return e==null?a:qr(e,t)}}var Kb=Nc(),Qb=Nc(!0);function Li(){return[]}function Mi(){return!1}function Zb(){return{}}function Jb(){return""}function ex(){return!0}function tx(e,t){if(e=ae(e),e<1||e>Le)return[];var r=ee,i=Ye(e,ee);t=K(t),e-=ee;for(var l=Un(i,t);++r<e;)t(r);return l}function rx(e){return re(e)?De(e,Ht):ft(e)?[e]:at(Vc(ge(e)))}function ax(e){var t=++ff;return ge(e)+t}var sx=Fs(function(e,t){return e+t},0),nx=fi("ceil"),ix=Fs(function(e,t){return e/t},1),ox=fi("floor");function lx(e){return e&&e.length?Ns(e,it,Jn):a}function cx(e,t){return e&&e.length?Ns(e,K(t,2),Jn):a}function ux(e){return Pl(e,it)}function dx(e,t){return Pl(e,K(t,2))}function px(e){return e&&e.length?Ns(e,it,ai):a}function mx(e,t){return e&&e.length?Ns(e,K(t,2),ai):a}var fx=Fs(function(e,t){return e*t},1),yx=fi("round"),hx=Fs(function(e,t){return e-t},0);function _x(e){return e&&e.length?Bn(e,it):0}function gx(e,t){return e&&e.length?Bn(e,K(t,2)):0}return d.after=j_,d.ary=nu,d.assign=Ag,d.assignIn=bu,d.assignInWith=Zs,d.assignWith=qg,d.at=Cg,d.before=iu,d.bind=Di,d.bindAll=Pb,d.bindKey=ou,d.castArray=Z_,d.chain=ru,d.chunk=oh,d.compact=lh,d.concat=ch,d.cond=Eb,d.conforms=Rb,d.constant=Oi,d.countBy=__,d.create=Sg,d.curry=lu,d.curryRight=cu,d.debounce=uu,d.defaults=zg,d.defaultsDeep=Ng,d.defer=B_,d.delay=U_,d.difference=uh,d.differenceBy=dh,d.differenceWith=ph,d.drop=mh,d.dropRight=fh,d.dropRightWhile=yh,d.dropWhile=hh,d.fill=_h,d.filter=b_,d.flatMap=v_,d.flatMapDeep=T_,d.flatMapDepth=I_,d.flatten=Zc,d.flattenDeep=gh,d.flattenDepth=bh,d.flip=W_,d.flow=Mb,d.flowRight=Fb,d.fromPairs=xh,d.functions=Fg,d.functionsIn=jg,d.groupBy=k_,d.initial=vh,d.intersection=Th,d.intersectionBy=Ih,d.intersectionWith=kh,d.invert=Ug,d.invertBy=Wg,d.invokeMap=A_,d.iteratee=Pi,d.keyBy=q_,d.keys=He,d.keysIn=nt,d.map=Xs,d.mapKeys=$g,d.mapValues=Xg,d.matches=jb,d.matchesProperty=Bb,d.memoize=Vs,d.merge=Gg,d.mergeWith=xu,d.method=Ub,d.methodOf=Wb,d.mixin=Ei,d.negate=Ys,d.nthArg=$b,d.omit=Vg,d.omitBy=Yg,d.once=H_,d.orderBy=C_,d.over=Xb,d.overArgs=$_,d.overEvery=Gb,d.overSome=Vb,d.partial=Ai,d.partialRight=du,d.partition=S_,d.pick=Kg,d.pickBy=wu,d.property=qu,d.propertyOf=Yb,d.pull=Ch,d.pullAll=eu,d.pullAllBy=Sh,d.pullAllWith=zh,d.pullAt=Nh,d.range=Kb,d.rangeRight=Qb,d.rearg=X_,d.reject=O_,d.remove=Oh,d.rest=G_,d.reverse=Ii,d.sampleSize=E_,d.set=Zg,d.setWith=Jg,d.shuffle=R_,d.slice=Ph,d.sortBy=F_,d.sortedUniq=Bh,d.sortedUniqBy=Uh,d.split=vb,d.spread=V_,d.tail=Wh,d.take=Hh,d.takeRight=$h,d.takeRightWhile=Xh,d.takeWhile=Gh,d.tap=l_,d.throttle=Y_,d.thru=$s,d.toArray=hu,d.toPairs=vu,d.toPairsIn=Tu,d.toPath=rx,d.toPlainObject=gu,d.transform=eb,d.unary=K_,d.union=Vh,d.unionBy=Yh,d.unionWith=Kh,d.uniq=Qh,d.uniqBy=Zh,d.uniqWith=Jh,d.unset=tb,d.unzip=ki,d.unzipWith=tu,d.update=rb,d.updateWith=ab,d.values=ra,d.valuesIn=sb,d.without=e_,d.words=Du,d.wrap=Q_,d.xor=t_,d.xorBy=r_,d.xorWith=a_,d.zip=s_,d.zipObject=n_,d.zipObjectDeep=i_,d.zipWith=o_,d.entries=vu,d.entriesIn=Tu,d.extend=bu,d.extendWith=Zs,Ei(d,d),d.add=sx,d.attempt=Au,d.camelCase=lb,d.capitalize=Iu,d.ceil=nx,d.clamp=nb,d.clone=J_,d.cloneDeep=tg,d.cloneDeepWith=rg,d.cloneWith=eg,d.conformsTo=ag,d.deburr=ku,d.defaultTo=Lb,d.divide=ix,d.endsWith=cb,d.eq=Rt,d.escape=ub,d.escapeRegExp=db,d.every=g_,d.find=x_,d.findIndex=Kc,d.findKey=Og,d.findLast=w_,d.findLastIndex=Qc,d.findLastKey=Pg,d.floor=ox,d.forEach=au,d.forEachRight=su,d.forIn=Eg,d.forInRight=Rg,d.forOwn=Lg,d.forOwnRight=Mg,d.get=Si,d.gt=sg,d.gte=ng,d.has=Bg,d.hasIn=zi,d.head=Jc,d.identity=it,d.includes=D_,d.indexOf=wh,d.inRange=ib,d.invoke=Hg,d.isArguments=zr,d.isArray=re,d.isArrayBuffer=ig,d.isArrayLike=st,d.isArrayLikeObject=Pe,d.isBoolean=og,d.isBuffer=_r,d.isDate=lg,d.isElement=cg,d.isEmpty=ug,d.isEqual=dg,d.isEqualWith=pg,d.isError=qi,d.isFinite=mg,d.isFunction=tr,d.isInteger=pu,d.isLength=Ks,d.isMap=mu,d.isMatch=fg,d.isMatchWith=yg,d.isNaN=hg,d.isNative=_g,d.isNil=bg,d.isNull=gg,d.isNumber=fu,d.isObject=Ce,d.isObjectLike=Ne,d.isPlainObject=ja,d.isRegExp=Ci,d.isSafeInteger=xg,d.isSet=yu,d.isString=Qs,d.isSymbol=ft,d.isTypedArray=ta,d.isUndefined=wg,d.isWeakMap=vg,d.isWeakSet=Tg,d.join=Dh,d.kebabCase=pb,d.last=At,d.lastIndexOf=Ah,d.lowerCase=mb,d.lowerFirst=fb,d.lt=Ig,d.lte=kg,d.max=lx,d.maxBy=cx,d.mean=ux,d.meanBy=dx,d.min=px,d.minBy=mx,d.stubArray=Li,d.stubFalse=Mi,d.stubObject=Zb,d.stubString=Jb,d.stubTrue=ex,d.multiply=fx,d.nth=qh,d.noConflict=Hb,d.noop=Ri,d.now=Gs,d.pad=yb,d.padEnd=hb,d.padStart=_b,d.parseInt=gb,d.random=ob,d.reduce=z_,d.reduceRight=N_,d.repeat=bb,d.replace=xb,d.result=Qg,d.round=yx,d.runInContext=x,d.sample=P_,d.size=L_,d.snakeCase=wb,d.some=M_,d.sortedIndex=Eh,d.sortedIndexBy=Rh,d.sortedIndexOf=Lh,d.sortedLastIndex=Mh,d.sortedLastIndexBy=Fh,d.sortedLastIndexOf=jh,d.startCase=Tb,d.startsWith=Ib,d.subtract=hx,d.sum=_x,d.sumBy=gx,d.template=kb,d.times=tx,d.toFinite=rr,d.toInteger=ae,d.toLength=_u,d.toLower=Db,d.toNumber=qt,d.toSafeInteger=Dg,d.toString=ge,d.toUpper=Ab,d.trim=qb,d.trimEnd=Cb,d.trimStart=Sb,d.truncate=zb,d.unescape=Nb,d.uniqueId=ax,d.upperCase=Ob,d.upperFirst=Ni,d.each=au,d.eachRight=su,d.first=Jc,Ei(d,function(){var e={};return Ut(d,function(t,r){xe.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),vt(["drop","take"],function(e,t){ue.prototype[e]=function(r){r=r===a?1:Ue(ae(r),0);var i=this.__filtered__&&!t?new ue(this):this.clone();return i.__filtered__?i.__takeCount__=Ye(r,i.__takeCount__):i.__views__.push({size:Ye(r,ee),type:e+(i.__dir__<0?"Right":"")}),i},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Fe||r==me;ue.prototype[e]=function(l){var p=this.clone();return p.__iteratees__.push({iteratee:K(l,3),type:r}),p.__filtered__=p.__filtered__||i,p}}),vt(["head","last"],function(e,t){var r="take"+(t?"Right":"");ue.prototype[e]=function(){return this[r](1).value()[0]}}),vt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[r](1)}}),ue.prototype.compact=function(){return this.filter(it)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=ne(function(e,t){return typeof e=="function"?new ue(this):this.map(function(r){return Pa(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(Ys(K(e)))},ue.prototype.slice=function(e,t){e=ae(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ue(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=ae(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(ee)},Ut(ue.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=d[i?"take"+(t=="last"?"Right":""):t],p=i||/^find/.test(t);l&&(d.prototype[t]=function(){var f=this.__wrapped__,_=i?[1]:arguments,v=f instanceof ue,q=_[0],C=v||re(f),S=function(oe){var de=l.apply(d,ur([oe],_));return i&&W?de[0]:de};C&&r&&typeof q=="function"&&q.length!=1&&(v=C=!1);var W=this.__chain__,$=!!this.__actions__.length,Q=p&&!W,se=v&&!$;if(!p&&C){f=se?f:new ue(this);var Z=e.apply(f,_);return Z.__actions__.push({func:$s,args:[S],thisArg:a}),new It(Z,W)}return Q&&se?e.apply(this,_):(Z=this.thru(S),Q?i?Z.value()[0]:Z.value():Z)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=_s[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var p=this.value();return t.apply(re(p)?p:[],l)}return this[r](function(f){return t.apply(re(f)?f:[],l)})}}),Ut(ue.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";xe.call(Kr,i)||(Kr[i]=[]),Kr[i].push({name:t,func:r})}}),Kr[Ms(a,M).name]=[{name:"wrapper",func:a}],ue.prototype.clone=Nf,ue.prototype.reverse=Of,ue.prototype.value=Pf,d.prototype.at=c_,d.prototype.chain=u_,d.prototype.commit=d_,d.prototype.next=p_,d.prototype.plant=f_,d.prototype.reverse=y_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=h_,d.prototype.first=d.prototype.head,Aa&&(d.prototype[Aa]=m_),d},Gr=df();Tr?((Tr.exports=Gr)._=Gr,Pn._=Gr):Xe._=Gr}).call(aa)}(Xa,Xa.exports);var no=Xa.exports;const Re="tccScript",nn={builtinFunctions:/strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,keywords:/continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to/,tokenizer:{root:[[/\/\/\s*(?=@)/,"comment","@comments"],[/\/\/.*(?!@).*/,"comment"],[/\'([^\'\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/\"/,{token:"string",bracket:"@open",next:"@stringDouble"}],[/type\s+[a-zA-Z]\w*/,"entity.name.type"],[/'/,{token:"string",bracket:"@open",next:"@stringSingle"}],[/(@builtinFunctions)(?=\s*\(|\s*<.*>)/,{token:"support.function",next:"@template"}],[/@punctuation/,{token:"punctuation.operator",next:"@property"}],[/(varip|var)\b(\s+)((?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)/,[{token:"keyword"},{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"}]],[/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/,{token:"support.type",next:"@template"}],[/^(\s*)\b(?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)(\s+)(\=)/,[{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"},{token:"source"},{token:"keyword.equals"}]],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/import(?=\s+@importName)/,{token:"keyword",next:"@import"}],[/import(?=\s+[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+)/,"keyword"],[/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/([+-]?(\d+))(?!\w+)(?!\w+)/,"constant.numeric.integer"],[/(?:true|false)\b/,"constant.other.boolean"],[/#[0-9a-fA-F]{6,8}\b/,"constant.other.color"],[/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/,"keyword.operator"],[/\b(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b/,"keyword"],[/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,"entity.name.function"],[/[0-9]+\b/,"constant.numeric.integer"],[/=/,"keyword.equals"],[/\b(?:strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/\(|\)|\[|\]|\=|\>/,{token:"paren",next:"@pop"}],[/(\,)(\s+)/,["keyword.operator","source"]],[/(\,)/,{token:"keyword.operator"}],[/([\w.\d$]+)/,{token:"entity.name.type"}],[/(<|>)/,{token:"paren"}],[/\s(?=\w)|$/,{token:"source",next:"@pop"}]],property:[[/@punctuation/,{token:"punctuation.operator"}],[/(@builtinTypes)(?=\s*[(])/,{token:"support.method",next:"@pop"}],[/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,{token:"entity.name.method",next:"@pop"}],[/[a-zA-Z0-9_]+/,{token:"variable.other.property",next:"@pop"}],[/@empty/,{token:"source",next:"@pop"}]],import:[[/\s+/,{token:"source"}],[/(@importName)(\s+)(as\b)(\s+)(@importAlias)/,[{token:"entity.name.module"},{token:"source"},{token:"keyword"},{token:"source"},{token:"entity.name.module.name",next:"@pop"}]],[/@importName/,{token:"entity.name.module",next:"@pop"}]]},builtinTypes:/chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,punctuation:/[.](?![.])/,importName:/[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,importAlias:/[a-zA-Z\d\_\u00a1\uffff\/]+/,empty:/^$/};var Ct;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(Ct||(Ct={}));const on={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["[","]"]],folding:{markers:{start:/(\/\/#region)|(\/\/.*{($|\s))/,end:/(\/\/#endregion)|(\/\/.*}($|\s))/}},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:/\)\s*=>\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/else/,action:{indentAction:Ct.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:Ct.Indent}},{beforeText:/^\s*$/,action:{indentAction:Ct.Outdent}}]},D={"color-white":"#ffffff","color-black":"#000000","color-transparent":"#00000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#FF9100","color-tan-orange-a600":"#CC7014","color-tan-orange-a700":"#8C541C","color-tan-orange-a800":"#593A1B","color-tan-orange-a900":"#33261A","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#EEDA01","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-50":"#EDE7F6","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a600":"#24B29B","color-minty-green-a700":"#1B7667","color-minty-green-a800":"#10443B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a100":"#EA80FC","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-berry-pink-a400":"#f50057","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-forest-green-50":"#DAF2E6","color-forest-green-100":"#ACE5C9","color-forest-green-200":"#70CC9E","color-forest-green-300":"#42BD7F","color-forest-green-400":"#22AB67","color-forest-green-500":"#089950","color-forest-green-600":"#068043","color-forest-green-700":"#056636","color-forest-green-800":"#004D27","color-forest-green-900":"#1A3326","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-seeking-alpha-brand":"#ff7200"};function Ft(s,n=1){return s+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const ln={base:"vs",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-cold-gray-900"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-a600"]},{token:"constant.other.color",foreground:D["color-ripe-red-a600"]},{token:"constant.other",foreground:D["color-ripe-red-a600"]},{token:"support.variable",foreground:D["color-ripe-red-a600"]},{token:"support.function",foreground:D["color-tv-blue-a600"]},{token:"support.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:D["color-tv-blue-a600"]},{token:"keyword.equals",foreground:D["color-minty-green-400"]},{token:"keyword.operator",foreground:D["color-minty-green-400"]},{token:"keyword.other",foreground:D["color-minty-green-400"]},{token:"keyword",foreground:D["color-minty-green-400"]},{token:"variable.other",foreground:D["color-cold-gray-800"]},{token:"variable.other.property",foreground:D["color-cold-gray-800"]},{token:"paren",foreground:D["color-black"]},{token:"entity.name.function",foreground:D["color-tv-blue-900"]},{token:"entity.name.method",foreground:D["color-tv-blue-900"]},{token:"meta.function-call",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module",foreground:D["color-tv-blue-a600"]},{token:"",background:D["color-white"]}],colors:{"editor.foreground":D["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":D["color-cold-gray-400"],"editorLineNumber.activeForeground":D["color-cold-gray-700"],"editorHoverWidget.background":D["color-white"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-150"],"editorHoverWidget.foreground":D["color-cold-gray-900"],"editorWidget.background":D["color-white"],"editorWidget.foreground":D["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Ft(D["color-cold-gray-200"],.5),"editor.lineHighlightBackground":D["color-tv-blue-50"],"editor.lineHighlightBorder":D["color-tv-blue-50"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-150"],"editor.selectionBackground":D["color-tv-blue-100"],"editor.selectionHighlightBackground":D["color-tv-blue-50"],"editor.findMatchBackground":D["color-tan-orange-100"],"editor.findMatchHighlightBackground":D["color-tan-orange-100"],"editor.findMatchBorder":D["color-tan-orange-500"],"list.foreground":D["color-cold-gray-900"],"list.hoverForeground":D["color-cold-gray-900"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-50"],"list.focusHighlightForeground":D["color-tv-blue-100"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-white"],"keybindingLabel.foreground":D["color-cold-gray-900"],"keybindingLabel.border":D["color-cold-gray-150"],"input.foreground":D["color-cold-gray-900"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-100"],"peekViewResult.lineForeground":D["color-cold-gray-900"],"editorMarkerNavigationWarning.background":D["color-banana-yellow-800"],"inputValidation.warningBackground":D["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Ft(D["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Ft(D["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Ft(D["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Ft(D["color-ripe-red-500"],.15),"editorInlayHint.background":D["color-cold-gray-150"],"editorInlayHint.foreground":D["color-cold-gray-550"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-500"]}},cn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-white"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-300"]},{token:"constant.other.color",foreground:D["color-ripe-red-300"]},{token:"constant.other",foreground:D["color-ripe-red-300"]},{token:"support.variable",foreground:D["color-ripe-red-300"]},{token:"support.function",foreground:D["color-tv-blue-300"]},{token:"support.method",foreground:D["color-tv-blue-300"]},{token:"support.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:D["color-minty-green-300"]},{token:"keyword.operator",foreground:D["color-minty-green-300"]},{token:"keyword.other",foreground:D["color-minty-green-300"]},{token:"keyword",foreground:D["color-minty-green-300"]},{token:"variable.other",foreground:D["color-cold-gray-200"]},{token:"variable.other.property",foreground:D["color-cold-gray-200"]},{token:"paren",foreground:D["color-white"]},{token:"entity.name.function",foreground:D["color-tv-blue-400"]},{token:"entity.name.method",foreground:D["color-tv-blue-400"]},{token:"meta.function-call",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module",foreground:D["color-tv-blue-300"]},{token:"",background:D["color-cold-gray-900"]}],colors:{"editor.foreground":D["color-white"],"editor.background":D["color-cold-gray-900"],"editorLineNumber.foreground":D["color-cold-gray-500"],"editorLineNumber.activeForeground":D["color-cold-gray-300"],"editorWidget.background":D["color-cold-gray-850"],"editorHoverWidget.background":D["color-cold-gray-850"],"editorHoverWidget.foreground":D["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-900"],"editorWidget.foreground":D["color-cold-gray-300"],"editorGutter.background":D["color-cold-gray-900"],"editor.foldBackground":Ft(D["color-cold-gray-700"],.5),"editor.lineHighlightBackground":D["color-tv-blue-a900"],"editor.lineHighlightBorder":D["color-tv-blue-a900"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-750"],"editor.selectionBackground":D["color-tv-blue-a800"],"editor.selectionHighlightBackground":D["color-cold-gray-800"],"list.foreground":D["color-cold-gray-350"],"list.hoverForeground":D["color-cold-gray-350"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-900"],"list.focusHighlightForeground":D["color-tv-blue-300"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-cold-gray-800"],"keybindingLabel.foreground":D["color-cold-gray-300"],"keybindingLabel.border":D["color-cold-gray-700"],"input.foreground":D["color-cold-gray-350"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-a800"],"peekViewResult.lineForeground":D["color-cold-gray-350"],"diffEditor.insertedTextBackground":Ft(D["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Ft(D["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Ft(D["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Ft(D["color-ripe-red-a400"],.15),"editorInlayHint.background":D["color-cold-gray-800"],"editorInlayHint.foreground":D["color-cold-gray-400"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-700"]}},ep=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,tp=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,io={"color.aqua":"#00BCD4","color.black":"#363A45","color.blue":"#2196F3","color.fuchsia":"#E040FB","color.gray":"#787B86","color.green":"#4CAF50","color.lime":"#00E676","color.maroon":"#880E4F","color.navy":"#311B92","color.olive":"#808000","color.orange":"#FF9800","color.purple":"#9C27B0","color.red":"#FF5252","color.silver":"#B2B5BE","color.teal":"#00897B","color.white":"#FFFFFF","color.yellow":"#FFEB3B"};class rp{constructor(n){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(a=[],o)=>{const u=new Map,c=o.indexOf("(");for(let m=c+1,h=c;m<o.length;m++)o[m]!==","&&o[m]!==")"||(h++,u.set(o.slice(h,m),h),h=m+1);return a.map(({name:m,displayType:h,desc:b})=>{const g=[],w=u.get(m),T=w+m.length;return g.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(h||""))),b&&g.push(Array.isArray(b)?b.join(this._formatter.lineBreak):b),{label:[w,T],documentation:{value:g.join(this._formatter.lineBreak)}}})}}),this._formatter=be,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,a){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const u=this._getSequentialSignatures(n,o),c=this._getActiveIndex(o,a);return{signatures:u,...c}}_getActiveIndex(n,a=[]){let o=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const c=a.pop();if(c)for(const[m,h]of n.entries()){const{args:b}=h;if(b&&b.length){const g=b.findIndex(w=>w.name===c);if(g!=-1){u=g,o=m;break}}}return{activeParameter:u,activeSignature:o}}_getFuncItems(n){return gt.functions.get(n)||Mt.userFuncs.get(n)||Mt.methodFuncs.get(n)}_getSequentialSignatures(n,a){return a.map(o=>{const u=this._getSignatureLabel(n,o);return{label:u,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,u)}})}_getSignatureLabel(n,a,o=!1){const u=[n];return o&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:c})=>c).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(n){const{desc:a}=n,o=[];a&&o.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
132
132
  ${this._formatter.code("Shift")} +
133
- ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${l} ${we.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const ap=new rp(window.navigator.userAgent);class sp{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=io}getDocumentColors(n){const a=[];return n.forEach(o=>{const{range:l}=o;let{matches:u}=o;u=u||[];const m=u[0]||"";let h=null;this._isHexToken(m)?h=this._hexToColor(m):this._isRgbColor(m)?h=this._rgbToColor(m):this._colors[m]?h=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&u[1]&&u[6]&&(h=this._extractNewExpression(u[1],Number(u[6]))),h&&a.push({color:h,range:l})}),a}get _defultColorsRegStr(){return Object.keys(io).reduce((n,a)=>`${n}|${a}`,"")}get colorMatchesRegStr(){const n=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`}getDocumentColorPresentations(n,{color:a,range:o}){const l=n.getValueInRange(o);if(this._isHexToken(l)||this._colors[l])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(l)||this._isRgbColor(l)){const u=this._isColorExpression(l)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!u)return[];const m=this._colorHexRepresentation(a);return[{label:u,textEdit:{text:u,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(n){const a=this._denormalize(n).toString(16);return a.length===1?`0${a}`:a}_normalize(n){return n/255}_denormalize(n){return Math.round(255*n)}_normalizeAlpha(n){return(100-n)/100}_denormalizeAlpha(n){return 100-Math.round(100*n)}_extractNewExpression(n,a){let o=null;return this._isHexToken(n)?o=this._hexToColor(n):this._isRgbColor(n)?o=this._rgbToColor(n):this._colors[n]&&(o=this._hexToColor(this._colors[n])),o&&!Number.isNaN(a)?{...o,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(n){const a=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),l=this._hexFromNumber(n.blue),u=this._hexFromNumber(n.alpha);return`#${a}${o}${l}${n.alpha===1?"":u}`}_colorRgbRepresentation(n){const a=this._denormalize(n.red),o=this._denormalize(n.green),l=this._denormalize(n.blue),u=this._denormalizeAlpha(n.alpha),m=[a,o,l];return u>0&&m.push(u),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(n){const a={...n,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const a=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=a?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),l=a?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),u=a?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),m=(a?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(l,16)),blue:this._normalize(parseInt(u,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(n){const a=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(a[0])),l=this._normalize(Number(a[1])),u=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(l)||isNaN(u)?null:{red:o,green:l,blue:u,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const un=new sp;function np(s,n){var E;const a={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},o=s.getValueInRange(a),l=o.match(/([\w.]+)$/)||[],u=(E=l[0])==null?void 0:E.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=u?u[1]?u[1]:u[2]?u[2]:void 0:void 0,h=s.getWordUntilPosition(n),g=Or.parseCurrentInputFunc(o),b={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:h.startColumn,endColumn:h.endColumn},w=s.getValueInRange({...b,startColumn:h.endColumn,endColumn:h.endColumn+1});Mt.nextIsBracket=w==="(";let T=oo(Mt.getSuggestions(m)||[],b);if(l[0]==="."&&(T=[]),g&&!m&&!/=\s*\w+$/.test(o)){const L=oo(Mt.getArgSuggestions(g.funcName)||[],b);T=T.concat(L)}return{suggestions:T||[]}}function ip(s){if(s.kind!==1)return s;const{originInsertText:n}=s;return Mt.nextIsBracket?s.insertText=n:s.insertText=n+Mt.bracketsPostfix,s}function op(s,n){const a=Or.parseLineContentFuncVar(n.column,n.lineNumber,s,n);if(a&&a.docValue.length){const o=Vd(a.docValue,a.index,a.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function lp(s,n){var T,E;const a={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=s.getValueInRange(a),l=s.findMatches(String(ep),a,!0,!1,null,!0),u=s.findMatches(String(tp),a,!0,!1,null,!0),m=(T=l.pop())==null?void 0:T.matches,h=(E=u.pop())==null?void 0:E.matches;let g=!1;l.length%2===0?m&&m[0]==='"'&&(g=!0):m&&!m[0]&&(g=!0);let b=!1;u.length%2===0?h&&h[0]==="'"&&(b=!0):h&&!h[0]&&(b=!0);const w=Or.parseCurrentInputFuncAndArg(o,b,g);if(w){const{funcName:L,args:j}=w,P=ap.getSignatureHelpValues(L,j);if(P)return{value:P,dispose:()=>{console.log("dispose")}}}return null}function cp(s){let n=s.findMatches(un.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const l=s.getValueInRange({...o.range,startColumn:0});return l.indexOf("//")===-1||l.indexOf("//")>o.range.endColumn}),un.getDocumentColors(n)}function up(s,n){return un.getDocumentColorPresentations(s,n)||[]}function dp(s,n){const a=s.getModel(),o=Or.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,a);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:l,column:u}=o.docValue[0].pos,m={startLineNumber:l,endLineNumber:l,startColumn:u,endColumn:u};s.revealRangeInCenterIfOutsideViewport(m),s.setSelection(m)}function pp(s,n){return Or.parseLineContentFuncVar(n.column,n.lineNumber,s,n)?{uri:s.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function oo(s,n){return s.map(a=>(a.range=n,a))}var da={},pa=Su;if(process.env.NODE_ENV==="production")da.createRoot=pa.createRoot,da.hydrateRoot=pa.hydrateRoot;else{var Ga=pa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;da.createRoot=function(s,n){Ga.usingClientEntryPoint=!0;try{return pa.createRoot(s,n)}finally{Ga.usingClientEntryPoint=!1}},da.hydrateRoot=function(s,n,a){Ga.usingClientEntryPoint=!0;try{return pa.hydrateRoot(s,n,a)}finally{Ga.usingClientEntryPoint=!1}}}var Ve;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(Ve||(Ve={}));const mp=(s,n)=>{const{close:a,retracement:o}=s,[l,u]=F.useState("modified");return F.useImperativeHandle(n,()=>({updateType(m){u(m)}})),O.jsxs("div",{className:`content-popup content-${l}-popup`,children:[O.jsx("div",{className:`triangle-popup triangle-${l}-popup`}),O.jsxs("div",{className:`header-popup header-${l}-popup`,children:[O.jsx("div",{className:"title-popup",children:"Local working changes"}),O.jsx("div",{className:"actions-popup",children:O.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:O.jsx("span",{className:"icon-popup",role:"img",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:O.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),O.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},fp=F.forwardRef(mp);class yp{constructor(n,a,o=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=n,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=o?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",a==null||a.onDidScrollChange(this.scrollChangeHandler.bind(this)),da.createRoot(this._domNode).render(O.jsx(fp,{ref:l=>this._content=l,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(n,a,o){var l;this._top=a,(l=this._content)==null||l.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const a=n.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function nr(){}nr.prototype={diff:function(n,a){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=l.callback;typeof l=="function"&&(u=l,l={}),this.options=l;var m=this;function h(A){return u?(setTimeout(function(){u(void 0,A)},0),!0):A}n=this.castInput(n),a=this.castInput(a),n=this.removeEmpty(this.tokenize(n)),a=this.removeEmpty(this.tokenize(a));var g=a.length,b=n.length,w=1,T=g+b;l.maxEditLength&&(T=Math.min(T,l.maxEditLength));var E=(o=l.timeout)!==null&&o!==void 0?o:1/0,L=Date.now()+E,j=[{oldPos:-1,lastComponent:void 0}],P=this.extractCommon(j[0],a,n,0);if(j[0].oldPos+1>=b&&P+1>=g)return h([{value:this.join(a),count:a.length}]);var R=-1/0,H=1/0;function S(){for(var A=Math.max(R,-w);A<=Math.min(H,w);A+=2){var M=void 0,J=j[A-1],G=j[A+1];J&&(j[A-1]=void 0);var ye=!1;if(G){var he=G.oldPos-A;ye=G&&0<=he&&he<g}var le=J&&J.oldPos+1<b;if(!ye&&!le){j[A]=void 0;continue}if(!le||ye&&J.oldPos+1<G.oldPos?M=m.addToPath(G,!0,void 0,0):M=m.addToPath(J,void 0,!0,1),P=m.extractCommon(M,a,n,A),M.oldPos+1>=b&&P+1>=g)return h(hp(m,M.lastComponent,a,n,m.useLongestToken));j[A]=M,M.oldPos+1>=b&&(H=Math.min(H,A-1)),P+1>=g&&(R=Math.max(R,A+1))}w++}if(u)(function A(){setTimeout(function(){if(w>T||Date.now()>L)return u();S()||A()},0)})();else for(;w<=T&&Date.now()<=L;){var B=S();if(B)return B}},addToPath:function(n,a,o,l){var u=n.lastComponent;return u&&u.added===a&&u.removed===o?{oldPos:n.oldPos+l,lastComponent:{count:u.count+1,added:a,removed:o,previousComponent:u.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:a,removed:o,previousComponent:u}}},extractCommon:function(n,a,o,l){for(var u=a.length,m=o.length,h=n.oldPos,g=h-l,b=0;g+1<u&&h+1<m&&this.equals(a[g+1],o[h+1]);)g++,h++,b++;return b&&(n.lastComponent={count:b,previousComponent:n.lastComponent}),n.oldPos=h,g},equals:function(n,a){return this.options.comparator?this.options.comparator(n,a):n===a||this.options.ignoreCase&&n.toLowerCase()===a.toLowerCase()},removeEmpty:function(n){for(var a=[],o=0;o<n.length;o++)n[o]&&a.push(n[o]);return a},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function hp(s,n,a,o,l){for(var u=[],m;n;)u.push(n),m=n.previousComponent,delete n.previousComponent,n=m;u.reverse();for(var h=0,g=u.length,b=0,w=0;h<g;h++){var T=u[h];if(T.removed){if(T.value=s.join(o.slice(w,w+T.count)),w+=T.count,h&&u[h-1].added){var L=u[h-1];u[h-1]=u[h],u[h]=L}}else{if(!T.added&&l){var E=a.slice(b,b+T.count);E=E.map(function(P,R){var H=o[w+R];return H.length>P.length?H:P}),T.value=s.join(E)}else T.value=s.join(a.slice(b,b+T.count));b+=T.count,T.added||(w+=T.count)}}var j=u[g-1];return g>1&&typeof j.value=="string"&&(j.added||j.removed)&&s.equals("",j.value)&&(u[g-2].value+=j.value,u.pop()),u}var lo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,co=/\S/,uo=new nr;uo.equals=function(s,n){return this.options.ignoreCase&&(s=s.toLowerCase(),n=n.toLowerCase()),s===n||this.options.ignoreWhitespace&&!co.test(s)&&!co.test(n)},uo.tokenize=function(s){for(var n=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<n.length-1;a++)!n[a+1]&&n[a+2]&&lo.test(n[a])&&lo.test(n[a+2])&&(n[a]+=n[a+2],n.splice(a+1,2),a--);return n};var dn=new nr;dn.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
134
- `));var n=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var o=0;o<a.length;o++){var l=a[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),n.push(l))}return n};function _p(s,n,a){return dn.diff(s,n,a)}var gp=new nr;gp.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var bp=new nr;bp.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Va(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Va=function(n){return typeof n}:Va=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Va(s)}var xp=Object.prototype.toString,ma=new nr;ma.useLongestToken=!0,ma.tokenize=dn.tokenize,ma.castInput=function(s){var n=this.options,a=n.undefinedReplacement,o=n.stringifyReplacer,l=o===void 0?function(u,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(pn(s,null,null,l),l," ")},ma.equals=function(s,n){return nr.prototype.equals.call(ma,s.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function pn(s,n,a,o,l){n=n||[],a=a||[],o&&(s=o(l,s));var u;for(u=0;u<n.length;u+=1)if(n[u]===s)return a[u];var m;if(xp.call(s)==="[object Array]"){for(n.push(s),m=new Array(s.length),a.push(m),u=0;u<s.length;u+=1)m[u]=pn(s[u],n,a,o,l);return n.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Va(s)==="object"&&s!==null){n.push(s),m={},a.push(m);var h=[],g;for(g in s)s.hasOwnProperty(g)&&h.push(g);for(h.sort(),u=0;u<h.length;u+=1)g=h[u],m[g]=pn(s[g],n,a,o,g);n.pop(),a.pop()}else m=s;return m}var mn=new nr;mn.tokenize=function(s){return s.slice()},mn.join=mn.removeEmpty=function(s){return s};class wp{constructor(n,a,o=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=a,this._originalModel=this._monaco.editor.createModel(o,Re),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var n;this._changeEvent(),this._didChangeListener=(n=this._editor.getModel())==null?void 0:n.onDidChangeContent(()=>this._changeEvent())}update(n){var a,o;if(this._originalModel=this._monaco.editor.createModel(n,Re),n!==((a=this._editor.getModel())==null?void 0:a.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,a,o,l;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(l=this._diffEditor)==null||l.dispose(),this._diffEditor=void 0}_changesHandle(n){let a=0,o;const l=[];let u=0;for(const m of n){const{added:h,removed:g,count:b=1,value:w}=m;h?o&&o.removed?(a=this._changeHandle(l,a,u,b,Ve.modified),u=0,o=void 0):(o&&o.added&&(a=this._changeHandle(l,a,u,o.count||1,Ve.added),u=0),o=m):g?o&&o.added?(a=this._changeHandle(l,a,u,o.count||1,Ve.modified),u=0,o=void 0):(o&&o.removed&&this._addDecorationList(l,a,Ve.removed),o=m):/^\n+$/.test(w)?o&&(o.added||o.removed)?u=b:a+=b:(o&&o.added?(a=this._changeHandle(l,a,u,o.count||1,Ve.added),u=0,o=void 0):o&&o.removed&&(this._addDecorationList(l,a,Ve.removed),o=void 0),a+=b)}return o&&o.added?a=this._changeHandle(l,a,u,o.count||1,Ve.added):o&&o.removed&&this._addDecorationList(l,a,Ve.removed),l}_changeHandle(n,a,o,l,u){for(let m=1;m<=l;m++)this._addDecorationList(n,a+m,u);return a+=l+o,a}_addDecorationList(n,a,o){n.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var l,u;const n=_p(this._originalModel.getValue(),((l=this._editor.getModel())==null?void 0:l.getValue())||""),a=this._changesHandle(n),o=((u=this._editor.getModel())==null?void 0:u.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=o}_eventListening(){const n=new yp("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(a=>this._onMouseDownHandle(a)),this._diffPopupWidget=n}_onMouseDownHandle(n){var m,h,g,b,w,T;const a=(m=n.target.element)==null?void 0:m.classList,o=a==null?void 0:a.contains(`line-${Ve.added}`),l=a==null?void 0:a.contains(`line-${Ve.modified}`),u=a==null?void 0:a.contains(`line-${Ve.removed}`);if(o||l||u){const E=((g=(h=n==null?void 0:n.target)==null?void 0:h.position)==null?void 0:g.lineNumber)||0,L=((b=this._editor)==null?void 0:b.getTopForLineNumber(E+1))||0,j=((w=this._editor)==null?void 0:w.getScrollTop())||0,P=o?Ve.added:l?Ve.modified:Ve.removed;(T=this._diffPopupWidget)==null||T.show(L-j,L,P),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(E+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class vp{constructor(n,a,o){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_changPositionListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onLinkOpen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=a,this._onActionTrigger=o,this._init()}addLinkOpenFunc(n){this._onLinkOpen=n}updateActionTrigger(n){this._onActionTrigger=n}setModelMarkers(n){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",n)}addDiffDecorations(){this._decorations||(this._decorations=new wp(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var n;(n=this._decorations)==null||n.dispose(),this._decorations=void 0}setValue(n){this._editor.setValue(n)}setPosition(n){var a,o,l;(a=this._editor)==null||a.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(l=this._editor)==null||l.focus()}setOriginalScript(n){var a;this._originalScript=n,(a=this._decorations)==null||a.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),a=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:a}}setEditorLayout(n){var a,o;(o=this._editor)==null||o.layout({height:n,width:(a=this._editor)==null?void 0:a.getContainerDomNode().clientWidth})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const n=localStorage.getItem(sn);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Re}),this._monaco.languages.registerCompletionItemProvider(Re,{triggerCharacters:["."],provideCompletionItems:np,resolveCompletionItem:ip}),this._monaco.languages.registerHoverProvider(Re,{provideHover:op}),this._monaco.languages.registerSignatureHelpProvider(Re,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:lp}),this._monaco.languages.registerColorProvider(Re,{provideColorPresentations:up,provideDocumentColors:cp}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,a,o)=>{const l=dp(n,o);if(l){const{index:u,docValue:m}=l,{title:h,name:g}=m[u];let b="";switch(h){case we.keywords:b="kw";break;case we.functions:b="fun";break;case we.variables:b="var";break;case we.types:b="type";break;case we.constants:b="const";break}this._onLinkOpen&&this._onLinkOpen(`${b}_${g}`,u)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n.fragment),!0)}),this._monaco.languages.registerDefinitionProvider(Re,{provideDefinition:pp})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",cn),this._monaco.editor.defineTheme("vs",ln),this._monaco.languages.setMonarchTokensProvider(Re,nn),this._monaco.languages.setLanguageConfiguration(Re,on)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,a)=>{var o;if(Mt.nextIsBracket){const l=this._editor.getPosition();l&&this._editor.setPosition(Object.assign(l,{column:l.column+1}))}(o=this._editor.getAction(a))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(Ae.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(Ae.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"9_modification-c",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(Ae.Actions.TriggerConsole)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(n){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(sn);n&&n(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(sn,JSON.stringify(o.position)),n&&n(o.position)})}}/**
133
+ ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${u} ${we.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const ap=new rp(window.navigator.userAgent);class sp{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=io}getDocumentColors(n){const a=[];return n.forEach(o=>{const{range:u}=o;let{matches:c}=o;c=c||[];const m=c[0]||"";let h=null;this._isHexToken(m)?h=this._hexToColor(m):this._isRgbColor(m)?h=this._rgbToColor(m):this._colors[m]?h=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&c[1]&&c[6]&&(h=this._extractNewExpression(c[1],Number(c[6]))),h&&a.push({color:h,range:u})}),a}get _defultColorsRegStr(){return Object.keys(io).reduce((n,a)=>`${n}|${a}`,"")}get colorMatchesRegStr(){const n=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`}getDocumentColorPresentations(n,{color:a,range:o}){const u=n.getValueInRange(o);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const c=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!c)return[];const m=this._colorHexRepresentation(a);return[{label:c,textEdit:{text:c,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(n){const a=this._denormalize(n).toString(16);return a.length===1?`0${a}`:a}_normalize(n){return n/255}_denormalize(n){return Math.round(255*n)}_normalizeAlpha(n){return(100-n)/100}_denormalizeAlpha(n){return 100-Math.round(100*n)}_extractNewExpression(n,a){let o=null;return this._isHexToken(n)?o=this._hexToColor(n):this._isRgbColor(n)?o=this._rgbToColor(n):this._colors[n]&&(o=this._hexToColor(this._colors[n])),o&&!Number.isNaN(a)?{...o,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(n){const a=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),u=this._hexFromNumber(n.blue),c=this._hexFromNumber(n.alpha);return`#${a}${o}${u}${n.alpha===1?"":c}`}_colorRgbRepresentation(n){const a=this._denormalize(n.red),o=this._denormalize(n.green),u=this._denormalize(n.blue),c=this._denormalizeAlpha(n.alpha),m=[a,o,u];return c>0&&m.push(c),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(n){const a={...n,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const a=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=a?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),u=a?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),c=a?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),m=(a?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(c,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(n){const a=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),c=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(u)||isNaN(c)?null:{red:o,green:u,blue:c,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const un=new sp;function np(s,n){var R;const a={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},o=s.getValueInRange(a),u=o.match(/([\w.]+)$/)||[],c=(R=u[0])==null?void 0:R.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=c?c[1]?c[1]:c[2]?c[2]:void 0:void 0,h=s.getWordUntilPosition(n),b=Or.parseCurrentInputFunc(o),g={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:h.startColumn,endColumn:h.endColumn},w=s.getValueInRange({...g,startColumn:h.endColumn,endColumn:h.endColumn+1});Mt.nextIsBracket=w==="(";let T=oo(Mt.getSuggestions(m)||[],g);if(u[0]==="."&&(T=[]),b&&!m&&!/=\s*\w+$/.test(o)){const L=oo(Mt.getArgSuggestions(b.funcName)||[],g);T=T.concat(L)}return{suggestions:T||[]}}function ip(s){if(s.kind!==1)return s;const{originInsertText:n}=s;return Mt.nextIsBracket?s.insertText=n:s.insertText=n+Mt.bracketsPostfix,s}function op(s,n){const a=Or.parseLineContentFuncVar(n.column,n.lineNumber,s,n);if(a&&a.docValue.length){const o=Vd(a.docValue,a.index,a.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function lp(s,n){var T,R;const a={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=s.getValueInRange(a),u=s.findMatches(String(ep),a,!0,!1,null,!0),c=s.findMatches(String(tp),a,!0,!1,null,!0),m=(T=u.pop())==null?void 0:T.matches,h=(R=c.pop())==null?void 0:R.matches;let b=!1;u.length%2===0?m&&m[0]==='"'&&(b=!0):m&&!m[0]&&(b=!0);let g=!1;c.length%2===0?h&&h[0]==="'"&&(g=!0):h&&!h[0]&&(g=!0);const w=Or.parseCurrentInputFuncAndArg(o,g,b);if(w){const{funcName:L,args:j}=w,O=ap.getSignatureHelpValues(L,j);if(O)return{value:O,dispose:()=>{console.log("dispose")}}}return null}function cp(s){let n=s.findMatches(un.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const u=s.getValueInRange({...o.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>o.range.endColumn}),un.getDocumentColors(n)}function up(s,n){return un.getDocumentColorPresentations(s,n)||[]}function dp(s,n){const a=s.getModel(),o=Or.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,a);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:u,column:c}=o.docValue[0].pos,m={startLineNumber:u,endLineNumber:u,startColumn:c,endColumn:c};s.revealRangeInCenterIfOutsideViewport(m),s.setSelection(m)}function pp(s,n){return Or.parseLineContentFuncVar(n.column,n.lineNumber,s,n)?{uri:s.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function oo(s,n){return s.map(a=>(a.range=n,a))}var da={},pa=Su;if(process.env.NODE_ENV==="production")da.createRoot=pa.createRoot,da.hydrateRoot=pa.hydrateRoot;else{var Ga=pa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;da.createRoot=function(s,n){Ga.usingClientEntryPoint=!0;try{return pa.createRoot(s,n)}finally{Ga.usingClientEntryPoint=!1}},da.hydrateRoot=function(s,n,a){Ga.usingClientEntryPoint=!0;try{return pa.hydrateRoot(s,n,a)}finally{Ga.usingClientEntryPoint=!1}}}var Ve;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(Ve||(Ve={}));const mp=(s,n)=>{const{close:a,retracement:o}=s,[u,c]=F.useState("modified");return F.useImperativeHandle(n,()=>({updateType(m){c(m)}})),N.jsxs("div",{className:`content-popup content-${u}-popup`,children:[N.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),N.jsxs("div",{className:`header-popup header-${u}-popup`,children:[N.jsx("div",{className:"title-popup",children:"Local working changes"}),N.jsx("div",{className:"actions-popup",children:N.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:N.jsx("span",{className:"icon-popup",role:"img",children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:N.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),N.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},fp=F.forwardRef(mp);class yp{constructor(n,a,o=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=n,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=o?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",a==null||a.onDidScrollChange(this.scrollChangeHandler.bind(this)),da.createRoot(this._domNode).render(N.jsx(fp,{ref:u=>this._content=u,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(n,a,o){var u;this._top=a,(u=this._content)==null||u.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const a=n.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function nr(){}nr.prototype={diff:function(n,a){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=u.callback;typeof u=="function"&&(c=u,u={}),this.options=u;var m=this;function h(k){return c?(setTimeout(function(){c(void 0,k)},0),!0):k}n=this.castInput(n),a=this.castInput(a),n=this.removeEmpty(this.tokenize(n)),a=this.removeEmpty(this.tokenize(a));var b=a.length,g=n.length,w=1,T=b+g;u.maxEditLength&&(T=Math.min(T,u.maxEditLength));var R=(o=u.timeout)!==null&&o!==void 0?o:1/0,L=Date.now()+R,j=[{oldPos:-1,lastComponent:void 0}],O=this.extractCommon(j[0],a,n,0);if(j[0].oldPos+1>=g&&O+1>=b)return h([{value:this.join(a),count:a.length}]);var V=-1/0,M=1/0;function B(){for(var k=Math.max(V,-w);k<=Math.min(M,w);k+=2){var P=void 0,X=j[k-1],G=j[k+1];X&&(j[k-1]=void 0);var ye=!1;if(G){var he=G.oldPos-k;ye=G&&0<=he&&he<b}var le=X&&X.oldPos+1<g;if(!ye&&!le){j[k]=void 0;continue}if(!le||ye&&X.oldPos+1<G.oldPos?P=m.addToPath(G,!0,void 0,0):P=m.addToPath(X,void 0,!0,1),O=m.extractCommon(P,a,n,k),P.oldPos+1>=g&&O+1>=b)return h(hp(m,P.lastComponent,a,n,m.useLongestToken));j[k]=P,P.oldPos+1>=g&&(M=Math.min(M,k-1)),O+1>=b&&(V=Math.max(V,k+1))}w++}if(c)(function k(){setTimeout(function(){if(w>T||Date.now()>L)return c();B()||k()},0)})();else for(;w<=T&&Date.now()<=L;){var E=B();if(E)return E}},addToPath:function(n,a,o,u){var c=n.lastComponent;return c&&c.added===a&&c.removed===o?{oldPos:n.oldPos+u,lastComponent:{count:c.count+1,added:a,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+u,lastComponent:{count:1,added:a,removed:o,previousComponent:c}}},extractCommon:function(n,a,o,u){for(var c=a.length,m=o.length,h=n.oldPos,b=h-u,g=0;b+1<c&&h+1<m&&this.equals(a[b+1],o[h+1]);)b++,h++,g++;return g&&(n.lastComponent={count:g,previousComponent:n.lastComponent}),n.oldPos=h,b},equals:function(n,a){return this.options.comparator?this.options.comparator(n,a):n===a||this.options.ignoreCase&&n.toLowerCase()===a.toLowerCase()},removeEmpty:function(n){for(var a=[],o=0;o<n.length;o++)n[o]&&a.push(n[o]);return a},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function hp(s,n,a,o,u){for(var c=[],m;n;)c.push(n),m=n.previousComponent,delete n.previousComponent,n=m;c.reverse();for(var h=0,b=c.length,g=0,w=0;h<b;h++){var T=c[h];if(T.removed){if(T.value=s.join(o.slice(w,w+T.count)),w+=T.count,h&&c[h-1].added){var L=c[h-1];c[h-1]=c[h],c[h]=L}}else{if(!T.added&&u){var R=a.slice(g,g+T.count);R=R.map(function(O,V){var M=o[w+V];return M.length>O.length?M:O}),T.value=s.join(R)}else T.value=s.join(a.slice(g,g+T.count));g+=T.count,T.added||(w+=T.count)}}var j=c[b-1];return b>1&&typeof j.value=="string"&&(j.added||j.removed)&&s.equals("",j.value)&&(c[b-2].value+=j.value,c.pop()),c}var lo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,co=/\S/,uo=new nr;uo.equals=function(s,n){return this.options.ignoreCase&&(s=s.toLowerCase(),n=n.toLowerCase()),s===n||this.options.ignoreWhitespace&&!co.test(s)&&!co.test(n)},uo.tokenize=function(s){for(var n=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<n.length-1;a++)!n[a+1]&&n[a+2]&&lo.test(n[a])&&lo.test(n[a+2])&&(n[a]+=n[a+2],n.splice(a+1,2),a--);return n};var dn=new nr;dn.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
134
+ `));var n=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var o=0;o<a.length;o++){var u=a[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),n.push(u))}return n};function _p(s,n,a){return dn.diff(s,n,a)}var gp=new nr;gp.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var bp=new nr;bp.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Va(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Va=function(n){return typeof n}:Va=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Va(s)}var xp=Object.prototype.toString,ma=new nr;ma.useLongestToken=!0,ma.tokenize=dn.tokenize,ma.castInput=function(s){var n=this.options,a=n.undefinedReplacement,o=n.stringifyReplacer,u=o===void 0?function(c,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(pn(s,null,null,u),u," ")},ma.equals=function(s,n){return nr.prototype.equals.call(ma,s.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function pn(s,n,a,o,u){n=n||[],a=a||[],o&&(s=o(u,s));var c;for(c=0;c<n.length;c+=1)if(n[c]===s)return a[c];var m;if(xp.call(s)==="[object Array]"){for(n.push(s),m=new Array(s.length),a.push(m),c=0;c<s.length;c+=1)m[c]=pn(s[c],n,a,o,u);return n.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Va(s)==="object"&&s!==null){n.push(s),m={},a.push(m);var h=[],b;for(b in s)s.hasOwnProperty(b)&&h.push(b);for(h.sort(),c=0;c<h.length;c+=1)b=h[c],m[b]=pn(s[b],n,a,o,b);n.pop(),a.pop()}else m=s;return m}var mn=new nr;mn.tokenize=function(s){return s.slice()},mn.join=mn.removeEmpty=function(s){return s};class wp{constructor(n,a,o=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=a,this._originalModel=this._monaco.editor.createModel(o,Re),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var n;this._changeEvent(),this._didChangeListener=(n=this._editor.getModel())==null?void 0:n.onDidChangeContent(()=>this._changeEvent())}update(n){var a,o;if(this._originalModel=this._monaco.editor.createModel(n,Re),n!==((a=this._editor.getModel())==null?void 0:a.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,a,o,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(n){let a=0,o;const u=[];let c=0;for(const m of n){const{added:h,removed:b,count:g=1,value:w}=m;h?o&&o.removed?(a=this._changeHandle(u,a,c,g,Ve.modified),c=0,o=void 0):(o&&o.added&&(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0),o=m):b?o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.modified),c=0,o=void 0):(o&&o.removed&&this._addDecorationList(u,a,Ve.removed),o=m):/^\n+$/.test(w)?o&&(o.added||o.removed)?c=g:a+=g:(o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0,o=void 0):o&&o.removed&&(this._addDecorationList(u,a,Ve.removed),o=void 0),a+=g)}return o&&o.added?a=this._changeHandle(u,a,c,o.count||1,Ve.added):o&&o.removed&&this._addDecorationList(u,a,Ve.removed),u}_changeHandle(n,a,o,u,c){for(let m=1;m<=u;m++)this._addDecorationList(n,a+m,c);return a+=u+o,a}_addDecorationList(n,a,o){n.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var u,c;const n=_p(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(n),o=((c=this._editor.getModel())==null?void 0:c.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=o}_eventListening(){const n=new yp("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(a=>this._onMouseDownHandle(a)),this._diffPopupWidget=n}_onMouseDownHandle(n){var m,h,b,g,w,T;const a=(m=n.target.element)==null?void 0:m.classList,o=a==null?void 0:a.contains(`line-${Ve.added}`),u=a==null?void 0:a.contains(`line-${Ve.modified}`),c=a==null?void 0:a.contains(`line-${Ve.removed}`);if(o||u||c){const R=((b=(h=n==null?void 0:n.target)==null?void 0:h.position)==null?void 0:b.lineNumber)||0,L=((g=this._editor)==null?void 0:g.getTopForLineNumber(R+1))||0,j=((w=this._editor)==null?void 0:w.getScrollTop())||0,O=o?Ve.added:u?Ve.modified:Ve.removed;(T=this._diffPopupWidget)==null||T.show(L-j,L,O),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(R+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class vp{constructor(n,a,o){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_changPositionListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onLinkOpen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=a,this._onActionTrigger=o,this._init()}addLinkOpenFunc(n){this._onLinkOpen=n}updateActionTrigger(n){this._onActionTrigger=n}setModelMarkers(n){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",n)}addDiffDecorations(){this._decorations||(this._decorations=new wp(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var n;(n=this._decorations)==null||n.dispose(),this._decorations=void 0}setValue(n){this._editor.setValue(n)}setPosition(n){var a,o,u;(a=this._editor)==null||a.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(u=this._editor)==null||u.focus()}setOriginalScript(n){var a;this._originalScript=n,(a=this._decorations)==null||a.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),a=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:a}}setEditorLayout(n){var a,o;(o=this._editor)==null||o.layout({height:n,width:(a=this._editor)==null?void 0:a.getContainerDomNode().clientWidth})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const n=localStorage.getItem(sn);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Re}),this._monaco.languages.registerCompletionItemProvider(Re,{triggerCharacters:["."],provideCompletionItems:np,resolveCompletionItem:ip}),this._monaco.languages.registerHoverProvider(Re,{provideHover:op}),this._monaco.languages.registerSignatureHelpProvider(Re,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:lp}),this._monaco.languages.registerColorProvider(Re,{provideColorPresentations:up,provideDocumentColors:cp}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,a,o)=>{const u=dp(n,o);if(u){const{index:c,docValue:m}=u,{title:h,name:b}=m[c];let g="";switch(h){case we.keywords:g="kw";break;case we.functions:g="fun";break;case we.variables:g="var";break;case we.types:g="type";break;case we.constants:g="const";break}this._onLinkOpen&&this._onLinkOpen(`${g}_${b}`,c)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n.fragment),!0)}),this._monaco.languages.registerDefinitionProvider(Re,{provideDefinition:pp})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",cn),this._monaco.editor.defineTheme("vs",ln),this._monaco.languages.setMonarchTokensProvider(Re,nn),this._monaco.languages.setLanguageConfiguration(Re,on)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,a)=>{var o;if(Mt.nextIsBracket){const u=this._editor.getPosition();u&&this._editor.setPosition(Object.assign(u,{column:u.column+1}))}(o=this._editor.getAction(a))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(Ae.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(Ae.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"9_modification-c",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(Ae.Actions.TriggerConsole)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(n){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(sn);n&&n(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(sn,JSON.stringify(o.position)),n&&n(o.position)})}}/**
135
135
  * @license
136
136
  * Copyright 2019 Google LLC
137
137
  * SPDX-License-Identifier: Apache-2.0
138
- */const po=Symbol("Comlink.proxy"),Tp=Symbol("Comlink.endpoint"),Ip=Symbol("Comlink.releaseProxy"),fn=Symbol("Comlink.finalizer"),Ya=Symbol("Comlink.thrown"),mo=s=>typeof s=="object"&&s!==null||typeof s=="function",kp={canHandle:s=>mo(s)&&s[po],serialize(s){const{port1:n,port2:a}=new MessageChannel;return yo(s,n),[a,[a]]},deserialize(s){return s.start(),yn(s)}},Dp={canHandle:s=>mo(s)&&Ya in s,serialize({value:s}){let n;return s instanceof Error?n={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:n={isError:!1,value:s},[n,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},fo=new Map([["proxy",kp],["throw",Dp]]);function Ap(s,n){for(const a of s)if(n===a||a==="*"||a instanceof RegExp&&a.test(n))return!0;return!1}function yo(s,n=globalThis,a=["*"]){n.addEventListener("message",function o(l){if(!l||!l.data)return;if(!Ap(a,l.origin)){console.warn(`Invalid origin '${l.origin}' for comlink proxy`);return}const{id:u,type:m,path:h}=Object.assign({path:[]},l.data),g=(l.data.argumentList||[]).map(gr);let b;try{const w=h.slice(0,-1).reduce((E,L)=>E[L],s),T=h.reduce((E,L)=>E[L],s);switch(m){case"GET":b=T;break;case"SET":w[h.slice(-1)[0]]=gr(l.data.value),b=!0;break;case"APPLY":b=T.apply(w,g);break;case"CONSTRUCT":{const E=new T(...g);b=Op(E)}break;case"ENDPOINT":{const{port1:E,port2:L}=new MessageChannel;yo(s,L),b=Np(E,[E])}break;case"RELEASE":b=void 0;break;default:return}}catch(w){b={value:w,[Ya]:0}}Promise.resolve(b).catch(w=>({value:w,[Ya]:0})).then(w=>{const[T,E]=Ja(w);n.postMessage(Object.assign(Object.assign({},T),{id:u}),E),m==="RELEASE"&&(n.removeEventListener("message",o),ho(n),fn in s&&typeof s[fn]=="function"&&s[fn]())}).catch(w=>{const[T,E]=Ja({value:new TypeError("Unserializable return value"),[Ya]:0});n.postMessage(Object.assign(Object.assign({},T),{id:u}),E)})}),n.start&&n.start()}function qp(s){return s.constructor.name==="MessagePort"}function ho(s){qp(s)&&s.close()}function yn(s,n){return hn(s,[],n)}function Ka(s){if(s)throw new Error("Proxy has been released and is not useable")}function _o(s){return Pr(s,{type:"RELEASE"}).then(()=>{ho(s)})}const Qa=new WeakMap,Za="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const n=(Qa.get(s)||0)-1;Qa.set(s,n),n===0&&_o(s)});function Cp(s,n){const a=(Qa.get(n)||0)+1;Qa.set(n,a),Za&&Za.register(s,n,s)}function Sp(s){Za&&Za.unregister(s)}function hn(s,n=[],a=function(){}){let o=!1;const l=new Proxy(a,{get(u,m){if(Ka(o),m===Ip)return()=>{Sp(l),_o(s),o=!0};if(m==="then"){if(n.length===0)return{then:()=>l};const h=Pr(s,{type:"GET",path:n.map(g=>g.toString())}).then(gr);return h.then.bind(h)}return hn(s,[...n,m])},set(u,m,h){Ka(o);const[g,b]=Ja(h);return Pr(s,{type:"SET",path:[...n,m].map(w=>w.toString()),value:g},b).then(gr)},apply(u,m,h){Ka(o);const g=n[n.length-1];if(g===Tp)return Pr(s,{type:"ENDPOINT"}).then(gr);if(g==="bind")return hn(s,n.slice(0,-1));const[b,w]=go(h);return Pr(s,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:b},w).then(gr)},construct(u,m){Ka(o);const[h,g]=go(m);return Pr(s,{type:"CONSTRUCT",path:n.map(b=>b.toString()),argumentList:h},g).then(gr)}});return Cp(l,s),l}function zp(s){return Array.prototype.concat.apply([],s)}function go(s){const n=s.map(Ja);return[n.map(a=>a[0]),zp(n.map(a=>a[1]))]}const bo=new WeakMap;function Np(s,n){return bo.set(s,n),s}function Op(s){return Object.assign(s,{[po]:!0})}function Ja(s){for(const[n,a]of fo)if(a.canHandle(s)){const[o,l]=a.serialize(s);return[{type:"HANDLER",name:n,value:o},l]}return[{type:"RAW",value:s},bo.get(s)||[]]}function gr(s){switch(s.type){case"HANDLER":return fo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Pr(s,n,a){return new Promise(o=>{const l=Pp();s.addEventListener("message",function u(m){!m.data||!m.data.id||m.data.id!==l||(s.removeEventListener("message",u),o(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:l},n),a)})}function Pp(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const xo=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-uULdCfgb.js").href:new URL("assets/scriptsRunWorker-uULdCfgb.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ba&&Ba.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});xo.onerror=s=>{console.error(s)};const wo=yn(xo),Ep=yn(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-CwSYSKEG.js").href:new URL("assets/parserTccWorker-CwSYSKEG.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ba&&Ba.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function vo(s,n=!1){const{functions:a,types:o,constants:l,variables:u,methods:m}=gt;return await Ep(s,n,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(u)})}async function To(s,n,a=!0){return await wo.runScript(s,n,a)}async function Rp(s){return await wo.removeScript(s)}function Lp(s){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:s==null?void 0:s.name})}var St;(function(s){s.BOOL="bool",s.INT="int",s.FLOAT="float",s.ARRAY="array",s.BOX="box",s.CHART_POINT="chart.point",s.COLOR="color",s.CONST="const",s.LABEL="label",s.LINE="line",s.LINEFILL="linefill",s.MAP="map",s.MATRIX="matrix",s.POLYLINE="polyline",s.SERIES="series",s.SIMPLE="simple",s.STRING="string",s.TABLE="table",s.UNDETERMINED="undetermined type",s.INPUT="input",s.NA="na",s.VOID="void"})(St||(St={}));var Io;(function(s){s.FlowStmt="FlowStmt",s.DeclareAssign="DeclareAssign",s.VarBlockStmt="VarBlockStmt",s.VarSingle="VarSingle",s.VarMultiple="VarMultiple",s.ParenthesizedExpression="ParenthesizedExpression",s.AdditiveExpression="AdditiveExpression",s.RelationalExpression="RelationalExpression",s.EqualityExpression="EqualityExpression",s.TernaryExpression="TernaryExpression",s.UnaryExpression="UnaryExpression",s.NotExpression="NotExpression",s.MemberIndexExpression="MemberIndexExpression",s.MethodExpression="MethodExpression",s.LogicalAndExpression="LogicalAndExpression",s.LogicalOrExpression="LogicalOrExpression",s.MultiplicativeExpression="MultiplicativeExpression",s.Brackethesized="Brackethesized",s.IfStatement="IfStatement",s.ForToStatement="ForToStatement",s.ForInStatement="ForInStatement",s.SwitchStatement="SwitchStatement",s.CaseClause="CaseClause",s.DefaultCaluse="DefaultCaluse",s.WhileStatement="WhileStatement",s.ImportElement="ImportElement",s.Literal="Literal",s.ArrowFunction="ArrowFunction",s.ArrowMethod="ArrowMethod",s.TypeStatement="TypeStatement",s.Name="Name",s.AgainAssign="AgainAssign"})(Io||(Io={}));var ko;(function(s){s.dividends="dividends",s.none="none",s.splits="splits"})(ko||(ko={}));var Do;(function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"})(Do||(Do={}));var Ao;(function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"})(Ao||(Ao={}));var qo;(function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"})(qo||(qo={}));var Co;(function(s){s.both="both",s.left="left",s.none="none",s.right="right"})(Co||(Co={}));var So;(function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"})(So||(So={}));var zo;(function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(zo||(zo={}));var No;(function(s){s.styleArrowdown="style_arrowdown",s.styleArrowup="style_arrowup",s.styleCircle="style_circle",s.styleCross="style_cross",s.styleDiamond="style_diamond",s.styleFlag="style_flag",s.styleLabelCenter="style_label_center",s.styleLabelDown="style_label_down",s.styleLabelLeft="style_label_left",s.styleLabelLowerLeft="style_label_lower_left",s.styleLabelLowerRight="style_label_lower_right",s.styleLabelRight="style_label_right",s.styleLabelUp="style_label_up",s.styleLabelUpperLeft="style_label_upper_left",s.styleLabelUpperRight="style_label_upper_right",s.styleNone="style_none",s.styleSquare="style_square",s.styleTextOutline="style_text_outline",s.styleTriangledown="style_triangledown",s.styleTriangleup="style_triangleup",s.styleXcross="style_xcross"})(No||(No={}));var Oo;(function(s){s.styleArrowBoth="style_arrow_both",s.styleArrowLeft="style_arrow_left",s.styleArrowRight="style_arrow_right",s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(Oo||(Oo={}));var Po;(function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"})(Po||(Po={}));var Eo;(function(s){s.ascending="ascending",s.descending="descending"})(Eo||(Eo={}));var Ro;(function(s){s.styleArea="Area",s.styleAreabr="Area With Breaks",s.styleCircles="Circles",s.styleColumns="Columns",s.styleCross="Cross",s.styleHistogram="Histogram",s.styleLine="Line",s.styleLinebr="Line With Breaks",s.styleStepline="Step Line",s.styleSteplineDiamond="Step Line With Diamonds",s.styleSteplinebr="Step line with Breaks"})(Ro||(Ro={}));var Lo;(function(s){s.bottomCenter="bottom_center",s.bottomLeft="bottom_left",s.bottomRight="bottom_right",s.middleCenter="middle_center",s.middleLeft="middle_left",s.middleRight="middle_right",s.topCenter="top_center",s.topLeft="top_left",s.topRight="top_right"})(Lo||(Lo={}));var Mo;(function(s){s.left="left",s.none="none",s.right="right"})(Mo||(Mo={}));var Fo;(function(s){s.extended="extended",s.regular="regular"})(Fo||(Fo={}));var jo;(function(s){s.arrowdown="arrowdown",s.arrowup="arrowup",s.circle="circle",s.cross="cross",s.diamond="diamond",s.flag="flag",s.labeldown="labeldown",s.labelup="labelup",s.square="square",s.triangledown="triangledown",s.triangleup="triangleup",s.xcross="xcross"})(jo||(jo={}));var Bo;(function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"})(Bo||(Bo={}));var Uo;(function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"})(Uo||(Uo={}));var Wo;(function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"})(Wo||(Wo={}));var Ho;(function(s){s.all="all",s.long="long",s.short="short"})(Ho||(Ho={}));var $o;(function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"})($o||($o={}));var Xo;(function(s){s.alignBottom="align_bottom",s.alignCenter="align_center",s.alignLeft="align_left",s.alignRight="align_right",s.alignTop="align_top",s.wrapAuto="wrap_auto",s.wrapNone="wrap_none"})(Xo||(Xo={}));var Go;(function(s){s.bar_index="bar_index",s.bar_time="bar_time"})(Go||(Go={}));var Vo;(function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"})(Vo||(Vo={}));var Yo;(function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"})(Yo||(Yo={}));var Ko;(function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"})(Ko||(Ko={})),St.SERIES,St.SIMPLE,St.INPUT,St.CONST,St.INT,St.FLOAT,St.BOOL,St.COLOR,St.STRING;const Mp={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new Lp({name:"Editor Worker"})}},rn.config({monaco:Nu});let Qo={};const Fp=(s,n)=>{const{height:a,width:o,theme:l,options:u,hasDiff:m,readOnly:h,defaultValue:g,onChange:b,onLinkOpen:w,onDeclareConfigChange:T,onCursorPositionChange:E,onActionTrigger:L,onEditorDidMount:j}=s,P=F.useRef(null);F.useImperativeHandle(n,()=>({setOriginalScript(A){var M;(M=P.current)==null||M.setOriginalScript(A)},setScript(A){var M;(M=P.current)==null||M.setValue(A)},gotoLine(){var A;(A=P.current)==null||A.gotoLine()},getEditorLayout(){var A;return(A=P.current)==null?void 0:A.getEditorLayout()},setPosition(A,M){var J;(J=P.current)==null||J.setPosition({column:A,lineNumber:M})},setModelMarkers(A){var M;(M=P.current)==null||M.setModelMarkers(A)}})),F.useEffect(()=>{var A,M;m?(M=P.current)==null||M.addDiffDecorations():(A=P.current)==null||A.removeDiffDecorations()},[m]),F.useEffect(()=>{var A;(A=P.current)==null||A.updateActionTrigger(L)},[L]),F.useEffect(()=>{var A;w&&((A=P.current)==null||A.addLinkOpenFunc(w))},[w]),F.useEffect(()=>{var A;a&&((A=P.current)==null||A.setEditorLayout(Number(a)))},[a,P.current]);function R(A,M){var G,ye,he;Mt.initBuiltinsTrees(),P.current=new vp(A,M,L),w&&((G=P.current)==null||G.addLinkOpenFunc(w)),m&&((ye=P.current)==null||ye.addDiffDecorations()),Qd(A),(he=P.current)==null||he.setEditorLayout(Number(a));const J=A.getValue();P.current.onChangeCursorPosition(E),b&&b(J),!h&&H(J),j&&j()}const H=F.useCallback(async A=>{var lt;const M=Date.now(),{errors:J,functions:G,methods:ye,types:he,variables:le,overloadsFuncs:bt,preParserCode:zt}=await vo(A),Me=new Map(Object.entries(G)),Fe=new Map(Object.entries(ye)),V=new Map(Object.entries(he)),me=new Map(Object.entries(le));Or.setUserDefined({functions:Me,methods:Fe,types:V,variables:me},bt),Mt.setUserDefind(Me,V,me,Fe);const Oe=J.map(je=>({...je,severity:je.type||Se.MarkerSeverity.Error}));if(h)return;try{if(!J.length){const je=await To(zt,{isPreParser:!0});no.isEqual(je,Qo)||(Qo=je,T&&T(je))}}catch(je){console.log(je,"==================error- Run TccScript Server"),J.push({message:`Runtime Error: ${je.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(lt=P.current)==null||lt.setModelMarkers(Oe);const Le=Date.now();console.log((Le-M)/1e3)},[T,h]),S=F.useMemo(()=>no.debounce(H,1e3),[H]);function B(A){var M;if(h){H(A||"");return}(M=P.current)==null||M.setModelMarkers([]),A!==void 0&&(b&&b(A),S(A))}return O.jsx(Bd,{height:a,width:o||"100%",defaultLanguage:Re,defaultValue:g||`indicator("我的脚本")
138
+ */const po=Symbol("Comlink.proxy"),Tp=Symbol("Comlink.endpoint"),Ip=Symbol("Comlink.releaseProxy"),fn=Symbol("Comlink.finalizer"),Ya=Symbol("Comlink.thrown"),mo=s=>typeof s=="object"&&s!==null||typeof s=="function",kp={canHandle:s=>mo(s)&&s[po],serialize(s){const{port1:n,port2:a}=new MessageChannel;return yo(s,n),[a,[a]]},deserialize(s){return s.start(),yn(s)}},Dp={canHandle:s=>mo(s)&&Ya in s,serialize({value:s}){let n;return s instanceof Error?n={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:n={isError:!1,value:s},[n,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},fo=new Map([["proxy",kp],["throw",Dp]]);function Ap(s,n){for(const a of s)if(n===a||a==="*"||a instanceof RegExp&&a.test(n))return!0;return!1}function yo(s,n=globalThis,a=["*"]){n.addEventListener("message",function o(u){if(!u||!u.data)return;if(!Ap(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:c,type:m,path:h}=Object.assign({path:[]},u.data),b=(u.data.argumentList||[]).map(gr);let g;try{const w=h.slice(0,-1).reduce((R,L)=>R[L],s),T=h.reduce((R,L)=>R[L],s);switch(m){case"GET":g=T;break;case"SET":w[h.slice(-1)[0]]=gr(u.data.value),g=!0;break;case"APPLY":g=T.apply(w,b);break;case"CONSTRUCT":{const R=new T(...b);g=Op(R)}break;case"ENDPOINT":{const{port1:R,port2:L}=new MessageChannel;yo(s,L),g=Np(R,[R])}break;case"RELEASE":g=void 0;break;default:return}}catch(w){g={value:w,[Ya]:0}}Promise.resolve(g).catch(w=>({value:w,[Ya]:0})).then(w=>{const[T,R]=Ja(w);n.postMessage(Object.assign(Object.assign({},T),{id:c}),R),m==="RELEASE"&&(n.removeEventListener("message",o),ho(n),fn in s&&typeof s[fn]=="function"&&s[fn]())}).catch(w=>{const[T,R]=Ja({value:new TypeError("Unserializable return value"),[Ya]:0});n.postMessage(Object.assign(Object.assign({},T),{id:c}),R)})}),n.start&&n.start()}function qp(s){return s.constructor.name==="MessagePort"}function ho(s){qp(s)&&s.close()}function yn(s,n){return hn(s,[],n)}function Ka(s){if(s)throw new Error("Proxy has been released and is not useable")}function _o(s){return Pr(s,{type:"RELEASE"}).then(()=>{ho(s)})}const Qa=new WeakMap,Za="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const n=(Qa.get(s)||0)-1;Qa.set(s,n),n===0&&_o(s)});function Cp(s,n){const a=(Qa.get(n)||0)+1;Qa.set(n,a),Za&&Za.register(s,n,s)}function Sp(s){Za&&Za.unregister(s)}function hn(s,n=[],a=function(){}){let o=!1;const u=new Proxy(a,{get(c,m){if(Ka(o),m===Ip)return()=>{Sp(u),_o(s),o=!0};if(m==="then"){if(n.length===0)return{then:()=>u};const h=Pr(s,{type:"GET",path:n.map(b=>b.toString())}).then(gr);return h.then.bind(h)}return hn(s,[...n,m])},set(c,m,h){Ka(o);const[b,g]=Ja(h);return Pr(s,{type:"SET",path:[...n,m].map(w=>w.toString()),value:b},g).then(gr)},apply(c,m,h){Ka(o);const b=n[n.length-1];if(b===Tp)return Pr(s,{type:"ENDPOINT"}).then(gr);if(b==="bind")return hn(s,n.slice(0,-1));const[g,w]=go(h);return Pr(s,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:g},w).then(gr)},construct(c,m){Ka(o);const[h,b]=go(m);return Pr(s,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:h},b).then(gr)}});return Cp(u,s),u}function zp(s){return Array.prototype.concat.apply([],s)}function go(s){const n=s.map(Ja);return[n.map(a=>a[0]),zp(n.map(a=>a[1]))]}const bo=new WeakMap;function Np(s,n){return bo.set(s,n),s}function Op(s){return Object.assign(s,{[po]:!0})}function Ja(s){for(const[n,a]of fo)if(a.canHandle(s)){const[o,u]=a.serialize(s);return[{type:"HANDLER",name:n,value:o},u]}return[{type:"RAW",value:s},bo.get(s)||[]]}function gr(s){switch(s.type){case"HANDLER":return fo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Pr(s,n,a){return new Promise(o=>{const u=Pp();s.addEventListener("message",function c(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",c),o(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},n),a)})}function Pp(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const xo=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-uULdCfgb.js").href:new URL("assets/scriptsRunWorker-uULdCfgb.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ba&&Ba.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});xo.onerror=s=>{console.error(s)};const wo=yn(xo),Ep=yn(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-CwSYSKEG.js").href:new URL("assets/parserTccWorker-CwSYSKEG.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ba&&Ba.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function vo(s,n=!1){const{functions:a,types:o,constants:u,variables:c,methods:m}=gt;return await Ep(s,n,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(u),variables:Object.fromEntries(c)})}async function To(s,n,a=!0){return await wo.runScript(s,n,a)}async function Rp(s){return await wo.removeScript(s)}function Lp(s){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:s==null?void 0:s.name})}var St;(function(s){s.BOOL="bool",s.INT="int",s.FLOAT="float",s.ARRAY="array",s.BOX="box",s.CHART_POINT="chart.point",s.COLOR="color",s.CONST="const",s.LABEL="label",s.LINE="line",s.LINEFILL="linefill",s.MAP="map",s.MATRIX="matrix",s.POLYLINE="polyline",s.SERIES="series",s.SIMPLE="simple",s.STRING="string",s.TABLE="table",s.UNDETERMINED="undetermined type",s.INPUT="input",s.NA="na",s.VOID="void"})(St||(St={}));var Io;(function(s){s.FlowStmt="FlowStmt",s.DeclareAssign="DeclareAssign",s.VarBlockStmt="VarBlockStmt",s.VarSingle="VarSingle",s.VarMultiple="VarMultiple",s.ParenthesizedExpression="ParenthesizedExpression",s.AdditiveExpression="AdditiveExpression",s.RelationalExpression="RelationalExpression",s.EqualityExpression="EqualityExpression",s.TernaryExpression="TernaryExpression",s.UnaryExpression="UnaryExpression",s.NotExpression="NotExpression",s.MemberIndexExpression="MemberIndexExpression",s.MethodExpression="MethodExpression",s.LogicalAndExpression="LogicalAndExpression",s.LogicalOrExpression="LogicalOrExpression",s.MultiplicativeExpression="MultiplicativeExpression",s.Brackethesized="Brackethesized",s.IfStatement="IfStatement",s.ForToStatement="ForToStatement",s.ForInStatement="ForInStatement",s.SwitchStatement="SwitchStatement",s.CaseClause="CaseClause",s.DefaultCaluse="DefaultCaluse",s.WhileStatement="WhileStatement",s.ImportElement="ImportElement",s.Literal="Literal",s.ArrowFunction="ArrowFunction",s.ArrowMethod="ArrowMethod",s.TypeStatement="TypeStatement",s.Name="Name",s.AgainAssign="AgainAssign"})(Io||(Io={}));var ko;(function(s){s.dividends="dividends",s.none="none",s.splits="splits"})(ko||(ko={}));var Do;(function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"})(Do||(Do={}));var Ao;(function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"})(Ao||(Ao={}));var qo;(function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"})(qo||(qo={}));var Co;(function(s){s.both="both",s.left="left",s.none="none",s.right="right"})(Co||(Co={}));var So;(function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"})(So||(So={}));var zo;(function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(zo||(zo={}));var No;(function(s){s.styleArrowdown="style_arrowdown",s.styleArrowup="style_arrowup",s.styleCircle="style_circle",s.styleCross="style_cross",s.styleDiamond="style_diamond",s.styleFlag="style_flag",s.styleLabelCenter="style_label_center",s.styleLabelDown="style_label_down",s.styleLabelLeft="style_label_left",s.styleLabelLowerLeft="style_label_lower_left",s.styleLabelLowerRight="style_label_lower_right",s.styleLabelRight="style_label_right",s.styleLabelUp="style_label_up",s.styleLabelUpperLeft="style_label_upper_left",s.styleLabelUpperRight="style_label_upper_right",s.styleNone="style_none",s.styleSquare="style_square",s.styleTextOutline="style_text_outline",s.styleTriangledown="style_triangledown",s.styleTriangleup="style_triangleup",s.styleXcross="style_xcross"})(No||(No={}));var Oo;(function(s){s.styleArrowBoth="style_arrow_both",s.styleArrowLeft="style_arrow_left",s.styleArrowRight="style_arrow_right",s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(Oo||(Oo={}));var Po;(function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"})(Po||(Po={}));var Eo;(function(s){s.ascending="ascending",s.descending="descending"})(Eo||(Eo={}));var Ro;(function(s){s.styleArea="Area",s.styleAreabr="Area With Breaks",s.styleCircles="Circles",s.styleColumns="Columns",s.styleCross="Cross",s.styleHistogram="Histogram",s.styleLine="Line",s.styleLinebr="Line With Breaks",s.styleStepline="Step Line",s.styleSteplineDiamond="Step Line With Diamonds",s.styleSteplinebr="Step line with Breaks"})(Ro||(Ro={}));var Lo;(function(s){s.bottomCenter="bottom_center",s.bottomLeft="bottom_left",s.bottomRight="bottom_right",s.middleCenter="middle_center",s.middleLeft="middle_left",s.middleRight="middle_right",s.topCenter="top_center",s.topLeft="top_left",s.topRight="top_right"})(Lo||(Lo={}));var Mo;(function(s){s.left="left",s.none="none",s.right="right"})(Mo||(Mo={}));var Fo;(function(s){s.extended="extended",s.regular="regular"})(Fo||(Fo={}));var jo;(function(s){s.arrowdown="arrowdown",s.arrowup="arrowup",s.circle="circle",s.cross="cross",s.diamond="diamond",s.flag="flag",s.labeldown="labeldown",s.labelup="labelup",s.square="square",s.triangledown="triangledown",s.triangleup="triangleup",s.xcross="xcross"})(jo||(jo={}));var Bo;(function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"})(Bo||(Bo={}));var Uo;(function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"})(Uo||(Uo={}));var Wo;(function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"})(Wo||(Wo={}));var Ho;(function(s){s.all="all",s.long="long",s.short="short"})(Ho||(Ho={}));var $o;(function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"})($o||($o={}));var Xo;(function(s){s.alignBottom="align_bottom",s.alignCenter="align_center",s.alignLeft="align_left",s.alignRight="align_right",s.alignTop="align_top",s.wrapAuto="wrap_auto",s.wrapNone="wrap_none"})(Xo||(Xo={}));var Go;(function(s){s.bar_index="bar_index",s.bar_time="bar_time"})(Go||(Go={}));var Vo;(function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"})(Vo||(Vo={}));var Yo;(function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"})(Yo||(Yo={}));var Ko;(function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"})(Ko||(Ko={})),St.SERIES,St.SIMPLE,St.INPUT,St.CONST,St.INT,St.FLOAT,St.BOOL,St.COLOR,St.STRING;const Mp={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new Lp({name:"Editor Worker"})}},rn.config({monaco:Nu});let Qo={};const Fp=(s,n)=>{const{height:a,width:o,theme:u,options:c,hasDiff:m,readOnly:h,defaultValue:b,onChange:g,onLinkOpen:w,onDeclareConfigChange:T,onCursorPositionChange:R,onActionTrigger:L,onEditorDidMount:j}=s,O=F.useRef(null);F.useImperativeHandle(n,()=>({setOriginalScript(k){var P;(P=O.current)==null||P.setOriginalScript(k)},setScript(k){var P;(P=O.current)==null||P.setValue(k)},gotoLine(){var k;(k=O.current)==null||k.gotoLine()},getEditorLayout(){var k;return(k=O.current)==null?void 0:k.getEditorLayout()},setPosition(k,P){var X;(X=O.current)==null||X.setPosition({column:k,lineNumber:P})},setModelMarkers(k){var P;(P=O.current)==null||P.setModelMarkers(k)}})),F.useEffect(()=>{var k,P;m?(P=O.current)==null||P.addDiffDecorations():(k=O.current)==null||k.removeDiffDecorations()},[m]),F.useEffect(()=>{var k;(k=O.current)==null||k.updateActionTrigger(L)},[L]),F.useEffect(()=>{var k;w&&((k=O.current)==null||k.addLinkOpenFunc(w))},[w]),F.useEffect(()=>{var k;a&&((k=O.current)==null||k.setEditorLayout(Number(a)))},[a,O.current]);function V(k,P){var G,ye,he;Mt.initBuiltinsTrees(),O.current=new vp(k,P,L),w&&((G=O.current)==null||G.addLinkOpenFunc(w)),m&&((ye=O.current)==null||ye.addDiffDecorations()),Qd(k),(he=O.current)==null||he.setEditorLayout(Number(a));const X=k.getValue();O.current.onChangeCursorPosition(R),g&&g(X),!h&&M(X),j&&j()}const M=F.useCallback(async k=>{var lt;const P=Date.now(),{errors:X,functions:G,methods:ye,types:he,variables:le,overloadsFuncs:bt,preParserCode:zt}=await vo(k),Me=new Map(Object.entries(G)),Fe=new Map(Object.entries(ye)),Y=new Map(Object.entries(he)),me=new Map(Object.entries(le));Or.setUserDefined({functions:Me,methods:Fe,types:Y,variables:me},bt),Mt.setUserDefind(Me,Y,me,Fe);const Oe=X.map(je=>({...je,severity:je.type||Se.MarkerSeverity.Error}));if(h)return;try{if(!X.length){const je=await To(zt,{isPreParser:!0});no.isEqual(je,Qo)||(Qo=je,T&&T(je))}}catch(je){console.log(je,"==================error- Run TccScript Server"),X.push({message:`Runtime Error: ${je.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(lt=O.current)==null||lt.setModelMarkers(Oe);const Le=Date.now();console.log((Le-P)/1e3)},[T,h]),B=F.useMemo(()=>no.debounce(M,1e3),[M]);function E(k){var P;if(h){M(k||"");return}(P=O.current)==null||P.setModelMarkers([]),k!==void 0&&(g&&g(k),B(k))}return N.jsx(Bd,{height:a,width:o||"100%",defaultLanguage:Re,defaultValue:b||`indicator("我的脚本")
139
139
  plot(close)
140
- `,theme:l||"vs-dark",className:l||"vs-dark",options:{colorDecorators:!0,matchOnWordStartOnly:!0,useShadowDOM:!1,suggest:{preview:!0,matchOnWordStartOnly:!0},fontSize:13,...h?Mp:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...u},onMount:R,onChange:B})},jp=F.forwardRef(Fp),Bp=s=>{const{theme:n,modified:a,original:o,height:l,width:u,renderSideBySide:m=!0}=s,h=F.useCallback((g,b)=>{b.languages.register({id:Re}),b.editor.defineTheme("vs-dark",cn),b.editor.defineTheme("vs",ln),b.languages.setMonarchTokensProvider(Re,nn),b.languages.setLanguageConfiguration(Re,on)},[]);return O.jsx(Rd,{height:l||"90vh",width:u||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Re,modified:a,original:o,onMount:h})};Ae.VMarkerSeverity=void 0,function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"}(Ae.VMarkerSeverity||(Ae.VMarkerSeverity={}));var es={},Up=function(){var s=document.getSelection();if(!s.rangeCount)return function(){};for(var n=document.activeElement,a=[],o=0;o<s.rangeCount;o++)a.push(s.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return s.removeAllRanges(),function(){s.type==="Caret"&&s.removeAllRanges(),s.rangeCount||a.forEach(function(l){s.addRange(l)}),n&&n.focus()}},Wp=Up,Zo={"text/plain":"Text","text/html":"Url",default:"Text"},Hp="Copy to clipboard: #{key}, Enter";function $p(s){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,n)}function Xp(s,n){var a,o,l,u,m,h,g=!1;n||(n={}),a=n.debug||!1;try{l=Wp(),u=document.createRange(),m=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(w){if(w.stopPropagation(),n.format)if(w.preventDefault(),typeof w.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=Zo[n.format]||Zo.default;window.clipboardData.setData(T,s)}else w.clipboardData.clearData(),w.clipboardData.setData(n.format,s);n.onCopy&&(w.preventDefault(),n.onCopy(w.clipboardData))}),document.body.appendChild(h),u.selectNodeContents(h),m.addRange(u);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");g=!0}catch(w){a&&console.error("unable to copy using execCommand: ",w),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",s),n.onCopy&&n.onCopy(window.clipboardData),g=!0}catch(T){a&&console.error("unable to copy using clipboardData: ",T),a&&console.error("falling back to prompt"),o=$p("message"in n?n.message:Hp),window.prompt(o,s)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(u):m.removeAllRanges()),h&&document.body.removeChild(h),l()}return g}var Gp=Xp;function _n(s){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_n(s)}Object.defineProperty(es,"__esModule",{value:!0}),es.CopyToClipboard=void 0;var ts=Jo(F),Vp=Jo(Gp),Yp=["text","onCopy","options","children"];function Jo(s){return s&&s.__esModule?s:{default:s}}function el(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(s,l).enumerable})),a.push.apply(a,o)}return a}function tl(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?el(Object(a),!0).forEach(function(o){bn(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):el(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function Kp(s,n){if(s==null)return{};var a=Qp(s,n),o,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);for(l=0;l<u.length;l++)o=u[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function Qp(s,n){if(s==null)return{};var a={},o=Object.keys(s),l,u;for(u=0;u<o.length;u++)l=o[u],!(n.indexOf(l)>=0)&&(a[l]=s[l]);return a}function Zp(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function rl(s,n){for(var a=0;a<n.length;a++){var o=n[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function Jp(s,n,a){return n&&rl(s.prototype,n),a&&rl(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}function em(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),n&&gn(s,n)}function gn(s,n){return gn=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},gn(s,n)}function tm(s){var n=am();return function(){var o=rs(s),l;if(n){var u=rs(this).constructor;l=Reflect.construct(o,arguments,u)}else l=o.apply(this,arguments);return rm(this,l)}}function rm(s,n){if(n&&(_n(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return al(s)}function al(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function am(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rs(s){return rs=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},rs(s)}function bn(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}var sl=function(s){em(a,s);var n=tm(a);function a(){var o;Zp(this,a);for(var l=arguments.length,u=new Array(l),m=0;m<l;m++)u[m]=arguments[m];return o=n.call.apply(n,[this].concat(u)),bn(al(o),"onClick",function(h){var g=o.props,b=g.text,w=g.onCopy,T=g.children,E=g.options,L=ts.default.Children.only(T),j=(0,Vp.default)(b,E);w&&w(b,j),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(h)}),o}return Jp(a,[{key:"render",value:function(){var l=this.props;l.text,l.onCopy,l.options;var u=l.children,m=Kp(l,Yp),h=ts.default.Children.only(u);return ts.default.cloneElement(h,tl(tl({},m),{},{onClick:this.onClick}))}}]),a}(ts.default.PureComponent);es.CopyToClipboard=sl,bn(sl,"defaultProps",{onCopy:void 0,options:void 0});var sm=es,xn=sm.CopyToClipboard;xn.CopyToClipboard=xn;var nm=xn;const wn=Ou(nm);async function im(s,n=0){const a=s[n];if(!a)return;const{name:o,args:l,type:u,desc:m,examples:h,remarks:g,seeAlso:b,syntax:w,detailedDesc:T,fields:E,returns:L}=a,j={name:o};if(s.length>1&&(j.overloads=`${s.length} overloads`),u&&(j.type=u),l&&(j.name=`${o}()`,j.args=l.map(P=>{const{name:R,desc:H,displayType:S}=P;return{label:`${R} (${S})`,desc:H&&br(H)}})),m&&(j.desc=m.map(P=>br(P))),h&&(j.originalExample=h.join(`
141
- `),j.examples=await Se.editor.colorize(j.originalExample,Re,{tabSize:4})),T){j.detailedDesc=[];for(const P of T){const{desc:R,examples:H}=P;let S=R.map(M=>br(M)),B,A;H&&(A=H.join(`
142
- `),B=await Se.editor.colorize(A,Re,{tabSize:4})),j.detailedDesc.push({desc:S,examples:B,originalExample:A})}}return L&&(j.returns=L.map(P=>br(P))),g&&(j.remarks=typeof g=="string"?[br(g)]:g.map(P=>br(P))),w&&(j.syntax=s.map(P=>{var R;return(R=P.syntax)==null?void 0:R[0]})),E&&(j.fields=E.map(P=>{const{name:R,desc:H,type:S}=P;return{label:`${R} (${S})`,desc:H&&br(H)}})),b&&(j.seeAlso=b.map(P=>om(P))),j}function om(s){const a=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(s);if(a){const[o,l,u]=a;return{name:l,link:u}}}function br(s){const n=/\*\*([^\*]+)\*\*/g,a=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return s.replace(n,(l,u)=>`<strong>${u}</strong>`).replace(a,(l,u)=>`<code>${u}</code>`).replace(o,(l,u,m)=>`<a ${m.startsWith("#")?`data-name="${u}"`:'target="_blank"'} class="manual-content-text-link" href="${m}">${u}</a>`)}function lm(s){var o;const n=[],a=[];for(const l of ua){for(let u of so[l.key].sort()){if(ao.includes(u))continue;let m=u;l.prefix==="fun"&&(m=`${u}()`),m.includes(s)&&(m.startsWith(s)?n.unshift({label:m,group:l,key:`${l.prefix}_${u}`}):n.push({label:m,group:l,key:`${l.prefix}_${u}`}))}for(const[u,m]of gt[l.key])for(const h of m){const{name:g,args:b,type:w,desc:T,examples:E,remarks:L,seeAlso:j,syntax:P,detailedDesc:R,fields:H,returns:S}=h,B={label:g,group:l,key:`${l.prefix}_${g}`};if(l.prefix==="fun"&&(B.label=`${g}()`),B.label.includes(s))break;if(b){let A=!1;for(const M of b){const{name:J,desc:G,displayType:ye}=M;if(J.includes(s)||G!=null&&G.includes(s)||ye!=null&&ye.includes(s)){a.push(B),A=!0;break}}if(A)break}if(w&&w.includes(s)){a.push(B);break}if(T){let A=!1;for(const M of T)if(M.includes(s)){a.push(B),A=!0;break}if(A)break}if(E){let A=!1;for(const M of E)if(M.includes(s)){a.push(B),A=!0;break}if(A)break}if(L&&(typeof L=="string"?L:L.join(`
143
- `)).includes(s)){a.push(B);break}if(j){let A=!1;for(const M of j)if(M.includes(s)){a.push(B),A=!0;break}if(A)break}if(P){let A=!1;for(const M of P)if(M.includes(s)){a.push(B),A=!0;break}if(A)break}if(R){let A=!1;for(const M of R){const{desc:J,examples:G}=M;if(J.join(`
144
- `).includes(s)){a.push(B),A=!0;break}if((o=G==null?void 0:G.join(`
145
- `))!=null&&o.includes(s)){a.push(B),A=!0;break}}if(A)break}if(H){let A=!1;for(const M of H){const{name:J,desc:G,type:ye}=M;if(J.includes(s)||G!=null&&G.includes(s)||ye!=null&&ye.includes(s)){a.push(B),A=!0;break}}if(A)break}if(S){let A=!1;for(const M of S)if(M.includes(s)){a.push(B),A=!0;break}if(A)break}}}return{labelList:n,contentList:a}}const cm=s=>{var H;const{group:n,itemKey:a,onItemClick:o}=s,[l,u]=F.useState(),[m,h]=F.useState(0),[g,b]=F.useState("Copy code"),[w,T]=F.useState("Copy link");F.useEffect(()=>{E(0)},[a]);const E=S=>{const B=a.replace(`${n==null?void 0:n.prefix}_`,""),A=gt[n==null?void 0:n.key].get(B);h(S),A&&im(A,S).then(M=>{u(M)})},L=S=>{E(S)},j=S=>{var B,A;if(S.target.localName==="a"&&S.target.hash&&((A=(B=S.target)==null?void 0:B.dataset)!=null&&A.name)){S.preventDefault();const{hash:M}=S.target;o(M.replace("#",""))}},P=()=>{b("Copied"),setTimeout(()=>{b("Copy code")},1e3)},R=()=>{T("Link copied"),setTimeout(()=>{T("Copy link")},3e3)};return O.jsx("div",{onClick:j,id:`#${a}`,children:O.jsxs("div",{className:"manual-content-wrapper",children:[O.jsxs("div",{className:"manual-content-header",children:[O.jsxs("div",{children:[O.jsx("h3",{className:"manual-content-header-title",children:l==null?void 0:l.name}),!!(l!=null&&l.overloads)&&O.jsx("span",{className:"manual-content-header-overloads",children:l==null?void 0:l.overloads})]}),O.jsx(wn,{text:(l==null?void 0:l.name)||"",onCopy:R,children:O.jsx("div",{"data-tooltip":w,className:"manual-content-btn",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:O.jsxs("g",{fill:"currentColor",children:[O.jsx("path",{fillRule:"nonzero",d:"M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"}),O.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(H=l==null?void 0:l.desc)==null?void 0:H.map((S,B)=>O.jsx("div",{dangerouslySetInnerHTML:{__html:S},className:"manual-content-text"},B)),(l==null?void 0:l.type)&&O.jsxs(F.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"type"}),O.jsx("div",{className:"manual-content-text",children:l.type})]}),(l==null?void 0:l.syntax)&&O.jsxs(F.Fragment,{children:[O.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(l!=null&&l.overloads)&&"& Overloads"]}),l.syntax.map((S,B)=>{var A;return(((A=l.syntax)==null?void 0:A.length)||0)>1?O.jsx("div",{onClick:()=>L(B),children:O.jsx("pre",{className:`manual-content-syntax with-overloads ${B===m?"selected":""}`,children:S})},B):O.jsx("pre",{className:"manual-content-syntax",children:S},B)})]}),(l==null?void 0:l.args)&&O.jsxs(F.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),l.args.map((S,B)=>O.jsxs("div",{className:"manual-content-text",children:[O.jsx("span",{className:"manual-content-args-label",children:S.label})," ",O.jsx("span",{dangerouslySetInnerHTML:{__html:S.desc||""}})]},B))]}),(l==null?void 0:l.fields)&&O.jsxs(F.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"fields"}),l.fields.map((S,B)=>O.jsxs("div",{className:"manual-content-text",children:[O.jsx("span",{className:"manual-content-args-label",children:S.label})," ",O.jsx("span",{dangerouslySetInnerHTML:{__html:S.desc||""}})]},B))]}),(l==null?void 0:l.examples)&&O.jsxs(F.Fragment,{children:[O.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[O.jsx("div",{children:O.jsx("span",{children:"example"})}),O.jsx(wn,{text:l.originalExample||"",onCopy:P,children:O.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:O.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),O.jsx("pre",{className:"manual-content-example",children:O.jsx("code",{dangerouslySetInnerHTML:{__html:l.examples}})})]}),(l==null?void 0:l.detailedDesc)&&l.detailedDesc.map((S,B)=>O.jsxs(F.Fragment,{children:[S.desc.map((A,M)=>O.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:A}},M)),O.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[O.jsx("div",{children:O.jsx("span",{children:"example"})}),O.jsx(wn,{text:S.originalExample||"",onCopy:P,children:O.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:O.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),O.jsx("pre",{className:"manual-content-example",children:O.jsx("code",{dangerouslySetInnerHTML:{__html:S.examples||""}})})]},B)),(l==null?void 0:l.returns)&&O.jsxs(F.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"returns"}),l.returns.map((S,B)=>O.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:S}},B))]}),(l==null?void 0:l.remarks)&&O.jsxs(F.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),l.remarks.map((S,B)=>O.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:S}},B))]}),(l==null?void 0:l.seeAlso)&&O.jsxs(F.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),O.jsx("div",{className:"manual-content-see_also",children:l.seeAlso.map((S,B)=>O.jsx("a",{className:"manual-content-see_also-tag","data-name":S==null?void 0:S.name,href:S==null?void 0:S.link,children:S==null?void 0:S.name},B))})]})]})})};Se.languages.register({id:Re}),Se.editor.defineTheme("vs-dark",cn),Se.editor.defineTheme("vs",ln),Se.languages.setMonarchTokensProvider(Re,nn),Se.languages.setLanguageConfiguration(Re,on);const um=({theme:s="vs-dark",currentKey:n})=>{const[a,o]=F.useState(ua[0]),[l,u]=F.useState(null),[m,h]=F.useState(""),[g,b]=F.useState("var_bar_index"),w=F.useRef(null),T=R=>{R.key===(a==null?void 0:a.key)?o(null):o(R)};F.useEffect(()=>{Se.editor.setTheme(s)},[s]),F.useEffect(()=>{if(n){const[R]=n.split("_"),H=ua.find(S=>R===S.prefix);H&&j(H,n)}},[n]);const E=(R,H)=>{H&&o(H),b(R)},L=R=>{if(h(R.target.value),R.target.value.trim()==="")u(null);else{const H=lm(R.target.value);u(H)}},j=(R,H)=>{o(R),b(H),setTimeout(()=>{var S,B;(B=(S=w.current)==null?void 0:S.querySelector(`a[data-href="${H}"]`))==null||B.scrollIntoView(!0)},10)},P=R=>{const H=ua.find(S=>R.startsWith(S.prefix));H&&j(H,R)};return O.jsxs("div",{className:`${s} manual-warpper`,children:[O.jsxs("div",{className:"manual-left",children:[O.jsxs("div",{className:"manual-search",children:[O.jsx("span",{className:"manual-search-icon",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:O.jsx("path",{fillRule:"evenodd",d:"M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z"})})}),O.jsx("input",{onChange:L,spellCheck:"false",value:m,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),O.jsx("span",{onClick:()=>h(""),className:`manual-search-clear ${m?"":"hide"}`,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:O.jsx("path",{d:"M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"})})})]}),O.jsx("div",{className:`manual-group-search-list manual-scroll ${m?"":"hide"}`,children:O.jsxs("div",{children:[l==null?void 0:l.labelList.map(R=>O.jsx("a",{onClick:H=>{H.preventDefault(),E(R.key,R.group)},className:`manual-group-body-item ${R.key===g?"manual-group-body-item-selected":""}`,"data-href":R.key,href:`#${R.key}`,children:R.label},`search_${R.key}`)),O.jsx("div",{className:"manual-content-separator"}),l==null?void 0:l.contentList.map(R=>O.jsx("a",{onClick:H=>{H.preventDefault(),E(R.key,R.group)},className:`manual-group-body-item ${R.key===g?"manual-group-body-item-selected":""}`,"data-href":R.key,href:`#${R.key}`,children:R.label},`search_${R.key}`))]})}),O.jsx("div",{className:`manual-group-list manual-scroll ${m?"hide":""}`,ref:w,children:ua.map(R=>{var H,S;return O.jsxs(F.Fragment,{children:[O.jsx("div",{onClick:()=>T(R),className:`manual-group-title ${R.key===(a==null?void 0:a.key)?"active":""}`,children:R.title}),O.jsx("div",{className:`manual-group-body manual-scroll ${R.key!==(a==null?void 0:a.key)?"hide":""}`,children:(S=(H=so[R.key])==null?void 0:H.sort().filter(B=>!ao.includes(B)))==null?void 0:S.map(B=>{const A=`${R.prefix}_${B}`;return O.jsx("a",{onClick:M=>{M.preventDefault(),E(A)},className:`manual-group-body-item ${A===g?"manual-group-body-item-selected":""}`,"data-href":A,href:`#${A}`,children:`${B}${R.prefix==="fun"?"()":""}`},A)})})]},R.key)})})]}),O.jsx("div",{className:"manual-right manual-scroll",children:O.jsx(cm,{group:a,itemKey:g,onItemClick:P})})]})};Ae.ReferenceManual=um,Ae.TradingVueDiffEditor=Bp,Ae.TradingVueEditor=jp,Ae.parseTcc=vo,Ae.removeScript=Rp,Ae.scriptsRun=To,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});
140
+ `,theme:u||"vs-dark",className:u||"vs-dark",options:{colorDecorators:!0,matchOnWordStartOnly:!0,useShadowDOM:!1,suggest:{preview:!0,matchOnWordStartOnly:!0},fontSize:13,...h?Mp:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:V,onChange:E})},jp=F.forwardRef(Fp),Bp=s=>{const{theme:n,modified:a,original:o,height:u,width:c,renderSideBySide:m=!0}=s,h=F.useCallback((b,g)=>{g.languages.register({id:Re}),g.editor.defineTheme("vs-dark",cn),g.editor.defineTheme("vs",ln),g.languages.setMonarchTokensProvider(Re,nn),g.languages.setLanguageConfiguration(Re,on)},[]);return N.jsx(Rd,{height:u||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Re,modified:a,original:o,onMount:h})};Ae.VMarkerSeverity=void 0,function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"}(Ae.VMarkerSeverity||(Ae.VMarkerSeverity={}));var es={},Up=function(){var s=document.getSelection();if(!s.rangeCount)return function(){};for(var n=document.activeElement,a=[],o=0;o<s.rangeCount;o++)a.push(s.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return s.removeAllRanges(),function(){s.type==="Caret"&&s.removeAllRanges(),s.rangeCount||a.forEach(function(u){s.addRange(u)}),n&&n.focus()}},Wp=Up,Zo={"text/plain":"Text","text/html":"Url",default:"Text"},Hp="Copy to clipboard: #{key}, Enter";function $p(s){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,n)}function Xp(s,n){var a,o,u,c,m,h,b=!1;n||(n={}),a=n.debug||!1;try{u=Wp(),c=document.createRange(),m=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(w){if(w.stopPropagation(),n.format)if(w.preventDefault(),typeof w.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=Zo[n.format]||Zo.default;window.clipboardData.setData(T,s)}else w.clipboardData.clearData(),w.clipboardData.setData(n.format,s);n.onCopy&&(w.preventDefault(),n.onCopy(w.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),m.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");b=!0}catch(w){a&&console.error("unable to copy using execCommand: ",w),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",s),n.onCopy&&n.onCopy(window.clipboardData),b=!0}catch(T){a&&console.error("unable to copy using clipboardData: ",T),a&&console.error("falling back to prompt"),o=$p("message"in n?n.message:Hp),window.prompt(o,s)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(c):m.removeAllRanges()),h&&document.body.removeChild(h),u()}return b}var Gp=Xp;function _n(s){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_n(s)}Object.defineProperty(es,"__esModule",{value:!0}),es.CopyToClipboard=void 0;var ts=Jo(F),Vp=Jo(Gp),Yp=["text","onCopy","options","children"];function Jo(s){return s&&s.__esModule?s:{default:s}}function el(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function tl(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?el(Object(a),!0).forEach(function(o){bn(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):el(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function Kp(s,n){if(s==null)return{};var a=Qp(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function Qp(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function Zp(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function rl(s,n){for(var a=0;a<n.length;a++){var o=n[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function Jp(s,n,a){return n&&rl(s.prototype,n),a&&rl(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}function em(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),n&&gn(s,n)}function gn(s,n){return gn=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},gn(s,n)}function tm(s){var n=am();return function(){var o=rs(s),u;if(n){var c=rs(this).constructor;u=Reflect.construct(o,arguments,c)}else u=o.apply(this,arguments);return rm(this,u)}}function rm(s,n){if(n&&(_n(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return al(s)}function al(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function am(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rs(s){return rs=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},rs(s)}function bn(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}var sl=function(s){em(a,s);var n=tm(a);function a(){var o;Zp(this,a);for(var u=arguments.length,c=new Array(u),m=0;m<u;m++)c[m]=arguments[m];return o=n.call.apply(n,[this].concat(c)),bn(al(o),"onClick",function(h){var b=o.props,g=b.text,w=b.onCopy,T=b.children,R=b.options,L=ts.default.Children.only(T),j=(0,Vp.default)(g,R);w&&w(g,j),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(h)}),o}return Jp(a,[{key:"render",value:function(){var u=this.props;u.text,u.onCopy,u.options;var c=u.children,m=Kp(u,Yp),h=ts.default.Children.only(c);return ts.default.cloneElement(h,tl(tl({},m),{},{onClick:this.onClick}))}}]),a}(ts.default.PureComponent);es.CopyToClipboard=sl,bn(sl,"defaultProps",{onCopy:void 0,options:void 0});var sm=es,xn=sm.CopyToClipboard;xn.CopyToClipboard=xn;var nm=xn;const wn=Ou(nm);async function im(s,n=0){const a=s[n];if(!a)return;const{name:o,args:u,type:c,desc:m,examples:h,remarks:b,seeAlso:g,syntax:w,detailedDesc:T,fields:R,returns:L}=a,j={name:o};if(s.length>1&&(j.overloads=`${s.length} overloads`),c&&(j.type=c),u&&(j.name=`${o}()`,j.args=u.map(O=>{const{name:V,desc:M,displayType:B}=O;return{label:`${V} (${B})`,desc:M&&br(M)}})),m&&(j.desc=m.map(O=>br(O))),h&&(j.originalExample=h.join(`
141
+ `),j.examples=await Se.editor.colorize(j.originalExample,Re,{tabSize:4})),T){j.detailedDesc=[];for(const O of T){const{desc:V,examples:M}=O;let B=V.map(P=>br(P)),E,k;M&&(k=M.join(`
142
+ `),E=await Se.editor.colorize(k,Re,{tabSize:4})),j.detailedDesc.push({desc:B,examples:E,originalExample:k})}}return L&&(j.returns=L.map(O=>br(O))),b&&(j.remarks=typeof b=="string"?[br(b)]:b.map(O=>br(O))),w&&(j.syntax=s.map(O=>{var V;return(V=O.syntax)==null?void 0:V[0]})),R&&(j.fields=R.map(O=>{const{name:V,desc:M,type:B}=O;return{label:`${V} (${B})`,desc:M&&br(M)}})),g&&(j.seeAlso=g.map(O=>om(O))),j}function om(s){const a=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(s);if(a){const[o,u,c]=a;return{name:u,link:c}}}function br(s){const n=/\*\*([^\*]+)\*\*/g,a=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return s.replace(n,(u,c)=>`<strong>${c}</strong>`).replace(a,(u,c)=>`<code>${c}</code>`).replace(o,(u,c,m)=>`<a ${m.startsWith("#")?`data-name="${c}"`:'target="_blank"'} class="manual-content-text-link" href="${m}">${c}</a>`)}function lm(s){var o;const n=[],a=[];for(const u of ua){for(let c of so[u.key].sort()){if(ao.includes(c))continue;let m=c;u.prefix==="fun"&&(m=`${c}()`),m.includes(s)&&(m.startsWith(s)?n.unshift({label:m,group:u,key:`${u.prefix}_${c}`}):n.push({label:m,group:u,key:`${u.prefix}_${c}`}))}for(const[c,m]of gt[u.key])for(const h of m){const{name:b,args:g,type:w,desc:T,examples:R,remarks:L,seeAlso:j,syntax:O,detailedDesc:V,fields:M,returns:B}=h,E={label:b,group:u,key:`${u.prefix}_${b}`};if(u.prefix==="fun"&&(E.label=`${b}()`),E.label.includes(s))break;if(g){let k=!1;for(const P of g){const{name:X,desc:G,displayType:ye}=P;if(X.includes(s)||G!=null&&G.includes(s)||ye!=null&&ye.includes(s)){a.push(E),k=!0;break}}if(k)break}if(w&&w.includes(s)){a.push(E);break}if(T){let k=!1;for(const P of T)if(P.includes(s)){a.push(E),k=!0;break}if(k)break}if(R){let k=!1;for(const P of R)if(P.includes(s)){a.push(E),k=!0;break}if(k)break}if(L&&(typeof L=="string"?L:L.join(`
143
+ `)).includes(s)){a.push(E);break}if(j){let k=!1;for(const P of j)if(P.includes(s)){a.push(E),k=!0;break}if(k)break}if(O){let k=!1;for(const P of O)if(P.includes(s)){a.push(E),k=!0;break}if(k)break}if(V){let k=!1;for(const P of V){const{desc:X,examples:G}=P;if(X.join(`
144
+ `).includes(s)){a.push(E),k=!0;break}if((o=G==null?void 0:G.join(`
145
+ `))!=null&&o.includes(s)){a.push(E),k=!0;break}}if(k)break}if(M){let k=!1;for(const P of M){const{name:X,desc:G,type:ye}=P;if(X.includes(s)||G!=null&&G.includes(s)||ye!=null&&ye.includes(s)){a.push(E),k=!0;break}}if(k)break}if(B){let k=!1;for(const P of B)if(P.includes(s)){a.push(E),k=!0;break}if(k)break}}}return{labelList:n,contentList:a}}const cm=s=>{var B;const{group:n,itemKey:a,onItemClick:o,currentIndex:u}=s,[c,m]=F.useState(),[h,b]=F.useState(0),[g,w]=F.useState("Copy code"),[T,R]=F.useState("Copy link");F.useEffect(()=>{L(u)},[a]);const L=E=>{const k=a.replace(`${n==null?void 0:n.prefix}_`,""),P=gt[n==null?void 0:n.key].get(k);b(E),P&&im(P,E).then(X=>{m(X)})},j=E=>{L(E)},O=E=>{var k,P;if(E.target.localName==="a"&&E.target.hash&&((P=(k=E.target)==null?void 0:k.dataset)!=null&&P.name)){E.preventDefault();const{hash:X}=E.target;o(X.replace("#",""))}},V=()=>{w("Copied"),setTimeout(()=>{w("Copy code")},1e3)},M=()=>{R("Link copied"),setTimeout(()=>{R("Copy link")},3e3)};return N.jsx("div",{onClick:O,id:`#${a}`,children:N.jsxs("div",{className:"manual-content-wrapper",children:[N.jsxs("div",{className:"manual-content-header",children:[N.jsxs("div",{children:[N.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&N.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),N.jsx(wn,{text:(c==null?void 0:c.name)||"",onCopy:M,children:N.jsx("div",{"data-tooltip":T,className:"manual-content-btn",children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:N.jsxs("g",{fill:"currentColor",children:[N.jsx("path",{fillRule:"nonzero",d:"M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"}),N.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(B=c==null?void 0:c.desc)==null?void 0:B.map((E,k)=>N.jsx("div",{dangerouslySetInnerHTML:{__html:E},className:"manual-content-text"},k)),(c==null?void 0:c.type)&&N.jsxs(F.Fragment,{children:[N.jsx("div",{className:"manual-content-sub-title",children:"type"}),N.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&N.jsxs(F.Fragment,{children:[N.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(c!=null&&c.overloads)&&"& Overloads"]}),c.syntax.map((E,k)=>{var P;return(((P=c.syntax)==null?void 0:P.length)||0)>1?N.jsx("div",{onClick:()=>j(k),children:N.jsx("pre",{className:`manual-content-syntax with-overloads ${k===h?"selected":""}`,children:E})},k):N.jsx("pre",{className:"manual-content-syntax",children:E},k)})]}),(c==null?void 0:c.args)&&N.jsxs(F.Fragment,{children:[N.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),c.args.map((E,k)=>N.jsxs("div",{className:"manual-content-text",children:[N.jsx("span",{className:"manual-content-args-label",children:E.label})," ",N.jsx("span",{dangerouslySetInnerHTML:{__html:E.desc||""}})]},k))]}),(c==null?void 0:c.fields)&&N.jsxs(F.Fragment,{children:[N.jsx("div",{className:"manual-content-sub-title",children:"fields"}),c.fields.map((E,k)=>N.jsxs("div",{className:"manual-content-text",children:[N.jsx("span",{className:"manual-content-args-label",children:E.label})," ",N.jsx("span",{dangerouslySetInnerHTML:{__html:E.desc||""}})]},k))]}),(c==null?void 0:c.examples)&&N.jsxs(F.Fragment,{children:[N.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[N.jsx("div",{children:N.jsx("span",{children:"example"})}),N.jsx(wn,{text:c.originalExample||"",onCopy:V,children:N.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:N.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),N.jsx("pre",{className:"manual-content-example",children:N.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((E,k)=>N.jsxs(F.Fragment,{children:[E.desc.map((P,X)=>N.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:P}},X)),N.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[N.jsx("div",{children:N.jsx("span",{children:"example"})}),N.jsx(wn,{text:E.originalExample||"",onCopy:V,children:N.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:N.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),N.jsx("pre",{className:"manual-content-example",children:N.jsx("code",{dangerouslySetInnerHTML:{__html:E.examples||""}})})]},k)),(c==null?void 0:c.returns)&&N.jsxs(F.Fragment,{children:[N.jsx("div",{className:"manual-content-sub-title",children:"returns"}),c.returns.map((E,k)=>N.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:E}},k))]}),(c==null?void 0:c.remarks)&&N.jsxs(F.Fragment,{children:[N.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),c.remarks.map((E,k)=>N.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:E}},k))]}),(c==null?void 0:c.seeAlso)&&N.jsxs(F.Fragment,{children:[N.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),N.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((E,k)=>N.jsx("a",{className:"manual-content-see_also-tag","data-name":E==null?void 0:E.name,href:E==null?void 0:E.link,children:E==null?void 0:E.name},k))})]})]})})};Se.languages.register({id:Re}),Se.editor.defineTheme("vs-dark",cn),Se.editor.defineTheme("vs",ln),Se.languages.setMonarchTokensProvider(Re,nn),Se.languages.setLanguageConfiguration(Re,on);const um=({theme:s="vs-dark",currentKey:n,currentIndex:a=0})=>{const[o,u]=F.useState(ua[0]),[c,m]=F.useState(null),[h,b]=F.useState(""),[g,w]=F.useState("var_bar_index"),T=F.useRef(null),R=M=>{M.key===(o==null?void 0:o.key)?u(null):u(M)};F.useEffect(()=>{Se.editor.setTheme(s)},[s]),F.useEffect(()=>{if(n){const[M]=n.split("_"),B=ua.find(E=>M===E.prefix);B&&O(B,n)}},[n]);const L=(M,B)=>{B&&u(B),w(M)},j=M=>{if(b(M.target.value),M.target.value.trim()==="")m(null);else{const B=lm(M.target.value);m(B)}},O=(M,B)=>{u(M),w(B),setTimeout(()=>{var E,k;(k=(E=T.current)==null?void 0:E.querySelector(`a[data-href="${B}"]`))==null||k.scrollIntoView(!0)},10)},V=M=>{const B=ua.find(E=>M.startsWith(E.prefix));B&&O(B,M)};return N.jsxs("div",{className:`${s} manual-warpper`,children:[N.jsxs("div",{className:"manual-left",children:[N.jsxs("div",{className:"manual-search",children:[N.jsx("span",{className:"manual-search-icon",children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:N.jsx("path",{fillRule:"evenodd",d:"M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z"})})}),N.jsx("input",{onChange:j,spellCheck:"false",value:h,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),N.jsx("span",{onClick:()=>b(""),className:`manual-search-clear ${h?"":"hide"}`,children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:N.jsx("path",{d:"M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"})})})]}),N.jsx("div",{className:`manual-group-search-list manual-scroll ${h?"":"hide"}`,children:N.jsxs("div",{children:[c==null?void 0:c.labelList.map(M=>N.jsx("a",{onClick:B=>{B.preventDefault(),L(M.key,M.group)},className:`manual-group-body-item ${M.key===g?"manual-group-body-item-selected":""}`,"data-href":M.key,href:`#${M.key}`,children:M.label},`search_${M.key}`)),N.jsx("div",{className:"manual-content-separator"}),c==null?void 0:c.contentList.map(M=>N.jsx("a",{onClick:B=>{B.preventDefault(),L(M.key,M.group)},className:`manual-group-body-item ${M.key===g?"manual-group-body-item-selected":""}`,"data-href":M.key,href:`#${M.key}`,children:M.label},`search_${M.key}`))]})}),N.jsx("div",{className:`manual-group-list manual-scroll ${h?"hide":""}`,ref:T,children:ua.map(M=>{var B,E;return N.jsxs(F.Fragment,{children:[N.jsx("div",{onClick:()=>R(M),className:`manual-group-title ${M.key===(o==null?void 0:o.key)?"active":""}`,children:M.title}),N.jsx("div",{className:`manual-group-body manual-scroll ${M.key!==(o==null?void 0:o.key)?"hide":""}`,children:(E=(B=so[M.key])==null?void 0:B.sort().filter(k=>!ao.includes(k)))==null?void 0:E.map(k=>{const P=`${M.prefix}_${k}`;return N.jsx("a",{onClick:X=>{X.preventDefault(),L(P)},className:`manual-group-body-item ${P===g?"manual-group-body-item-selected":""}`,"data-href":P,href:`#${P}`,children:`${k}${M.prefix==="fun"?"()":""}`},P)})})]},M.key)})})]}),N.jsx("div",{className:"manual-right manual-scroll",children:N.jsx(cm,{currentIndex:a,group:o,itemKey:g,onItemClick:V})})]})};Ae.ReferenceManual=um,Ae.TradingVueDiffEditor=Bp,Ae.TradingVueEditor=jp,Ae.parseTcc=vo,Ae.removeScript=Rp,Ae.scriptsRun=To,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});