@guihz/trading-vue-editor-tes 0.0.43 → 0.0.44

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 Ui;function Pu(){if(Ui)return aa;Ui=1;var s=M,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,d={key:!0,ref:!0,__self:!0,__source:!0};function m(h,g,b){var w,T={},R=null,L=null;b!==void 0&&(R=""+b),g.key!==void 0&&(R=""+g.key),g.ref!==void 0&&(L=g.ref);for(w in g)o.call(g,w)&&!d.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:R,ref:L,props:T,_owner:l.current}}return aa.Fragment=a,aa.jsx=m,aa.jsxs=m,aa}var sa={};/**
11
+ */var Ui;function Pu(){if(Ui)return aa;Ui=1;var s=M,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={},R=null,L=null;b!==void 0&&(R=""+b),g.key!==void 0&&(R=""+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:R,ref:L,props:T,_owner:l.current}}return aa.Fragment=a,aa.jsx=m,aa.jsxs=m,aa}var sa={};/**
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 Wi;function Eu(){return Wi||(Wi=1,process.env.NODE_ENV!=="production"&&function(){var s=M,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),d=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"),R=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),A=Symbol.iterator,z="@@iterator";function $(y){if(y===null||typeof y!="object")return null;var O=A&&y[A]||y[z];return typeof O=="function"?O:null}var X=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(y){{for(var O=arguments.length,j=new Array(O>1?O-1:0),Z=1;Z<O;Z++)j[Z-1]=arguments[Z];U("error",y,j)}}function U(y,O,j){{var Z=X.ReactDebugCurrentFrame,pe=Z.getStackAddendum();pe!==""&&(O+="%s",j=j.concat([pe]));var _e=j.map(function(ce){return String(ce)});_e.unshift("Warning: "+O),Function.prototype.apply.call(console[y],console,_e)}}var S=!1,F=!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===d||ye||y===l||y===b||y===w||G||y===L||S||F||J||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===T||y.$$typeof===m||y.$$typeof===h||y.$$typeof===g||y.$$typeof===he||y.getModuleId!==void 0))}function bt(y,O,j){var Z=y.displayName;if(Z)return Z;var pe=O.displayName||O.name||"";return pe!==""?j+"("+pe+")":j}function zt(y){return y.displayName||"Context"}function Me(y){if(y==null)return null;if(typeof y.tag=="number"&&E("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 d:return"Profiler";case l:return"StrictMode";case b:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case h:var O=y;return zt(O)+".Consumer";case m:var j=y;return zt(j._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 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,ct,je,ee,we;function We(){}We.__reactDisabledLog=!0;function $t(){{if(Y===0){me=console.log,Oe=console.info,Le=console.warn,ct=console.error,je=console.group,ee=console.groupCollapsed,we=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:ct}),group:Fe({},y,{value:je}),groupCollapsed:Fe({},y,{value:ee}),groupEnd:Fe({},y,{value:we})})}Y<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var or=X.ReactCurrentDispatcher,ma;function jt(y,O,j){{if(ma===void 0)try{throw Error()}catch(pe){var Z=pe.stack.trim().match(/\n( *(at )?)/);ma=Z&&Z[1]||""}return`
20
- `+ma+y}}var Xt=!1,Pr;{var Er=typeof WeakMap=="function"?WeakMap:Map;Pr=new Er}function xr(y,O){if(!y||Xt)return"";{var j=Pr.get(y);if(j!==void 0)return j}var Z;Xt=!0;var pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=or.current,or.current=null,$t();try{if(O){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(`
19
+ */var Wi;function Eu(){return Wi||(Wi=1,process.env.NODE_ENV!=="production"&&function(){var s=M,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"),R=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),A=Symbol.iterator,z="@@iterator";function $(y){if(y===null||typeof y!="object")return null;var P=A&&y[A]||y[z];return typeof P=="function"?P:null}var X=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(y){{for(var P=arguments.length,j=new Array(P>1?P-1:0),Z=1;Z<P;Z++)j[Z-1]=arguments[Z];U("error",y,j)}}function U(y,P,j){{var Z=X.ReactDebugCurrentFrame,pe=Z.getStackAddendum();pe!==""&&(P+="%s",j=j.concat([pe]));var _e=j.map(function(ce){return String(ce)});_e.unshift("Warning: "+P),Function.prototype.apply.call(console[y],console,_e)}}var S=!1,F=!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||S||F||J||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===T||y.$$typeof===m||y.$$typeof===h||y.$$typeof===g||y.$$typeof===he||y.getModuleId!==void 0))}function bt(y,P,j){var Z=y.displayName;if(Z)return Z;var pe=P.displayName||P.name||"";return pe!==""?j+"("+pe+")":j}function zt(y){return y.displayName||"Context"}function Me(y){if(y==null)return null;if(typeof y.tag=="number"&&O("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 P=y;return zt(P)+".Consumer";case m:var j=y;return zt(j._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 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,ct,je,ee,we;function We(){}We.__reactDisabledLog=!0;function $t(){{if(Y===0){me=console.log,Oe=console.info,Le=console.warn,ct=console.error,je=console.group,ee=console.groupCollapsed,we=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:ct}),group:Fe({},y,{value:je}),groupCollapsed:Fe({},y,{value:ee}),groupEnd:Fe({},y,{value:we})})}Y<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ir=X.ReactCurrentDispatcher,ma;function jt(y,P,j){{if(ma===void 0)try{throw Error()}catch(pe){var Z=pe.stack.trim().match(/\n( *(at )?)/);ma=Z&&Z[1]||""}return`
20
+ `+ma+y}}var Xt=!1,Pr;{var Er=typeof WeakMap=="function"?WeakMap:Map;Pr=new Er}function xr(y,P){if(!y||Xt)return"";{var j=Pr.get(y);if(j!==void 0)return j}var Z;Xt=!0;var pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=ir.current,ir.current=null,$t();try{if(P){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
21
  `),$e=Z.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"&&Pr.set(y,tt),tt}while(qe>=1&&ze>=0);break}}}finally{Xt=!1,or.current=_e,Qe(),Error.prepareStackTrace=pe}var Ot=y?y.displayName||y.name:"",ps=Ot?jt(Ot):"";return typeof y=="function"&&Pr.set(y,ps),ps}function as(y,O,j){return xr(y,!1)}function ut(y){var O=y.prototype;return!!(O&&O.isReactComponent)}function Bt(y,O,j){if(y==null)return"";if(typeof y=="function")return xr(y,ut(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,O,j);case R:{var Z=y,pe=Z._payload,_e=Z._init;try{return Bt(_e(pe),O,j)}catch{}}}return""}var Rr=Object.prototype.hasOwnProperty,xt={},fa=X.ReactDebugCurrentFrame;function Lr(y){if(y){var O=y._owner,j=Bt(y.type,y._source,O?O.type:null);fa.setExtraStackFrame(j)}else fa.setExtraStackFrame(null)}function wr(y,O,j,Z,pe){{var _e=Function.call.bind(Rr);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")+": "+j+" 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](O,ce,Z,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(qe){ie=qe}ie&&!(ie instanceof Error)&&(Lr(pe),E("%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",j,ce,typeof ie),Lr(null)),ie instanceof Error&&!(ie.message in xt)&&(xt[ie.message]=!0,Lr(pe),E("Failed %s type: %s",j,ie.message),Lr(null))}}}var dt=Array.isArray;function Gt(y){return dt(y)}function Mr(y){{var O=typeof Symbol=="function"&&Symbol.toStringTag,j=O&&y[Symbol.toStringTag]||y.constructor.name||"Object";return j}}function Tn(y){try{return lr(y),!1}catch{return!0}}function lr(y){return""+y}function ss(y){if(Tn(y))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mr(y)),lr(y)}var Nt=X.ReactCurrentOwner,cr={key:!0,ref:!0,__self:!0,__source:!0},Fr,jr,vr;vr={};function ya(y){if(Rr.call(y,"ref")){var O=Object.getOwnPropertyDescriptor(y,"ref").get;if(O&&O.isReactWarning)return!1}return y.ref!==void 0}function ha(y){if(Rr.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function _a(y,O){if(typeof y.ref=="string"&&Nt.current&&O&&Nt.current.stateNode!==O){var j=Me(Nt.current.type);vr[j]||(E('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[j]=!0)}}function ga(y,O){{var j=function(){Fr||(Fr=!0,E("%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)",O))};j.isReactWarning=!0,Object.defineProperty(y,"key",{get:j,configurable:!0})}}function ba(y,O){{var j=function(){jr||(jr=!0,E("%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)",O))};j.isReactWarning=!0,Object.defineProperty(y,"ref",{get:j,configurable:!0})}}var xa=function(y,O,j,Z,pe,_e,ce){var ie={$$typeof:n,type:y,key:O,ref:j,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 In(y,O,j,Z,pe){{var _e,ce={},ie=null,$e=null;j!==void 0&&(ss(j),ie=""+j),ha(O)&&(ss(O.key),ie=""+O.key),ya(O)&&($e=O.ref,_a(O,pe));for(_e in O)Rr.call(O,_e)&&!cr.hasOwnProperty(_e)&&(ce[_e]=O[_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&&ga(ce,ze),$e&&ba(ce,ze)}return xa(y,ie,$e,pe,Z,Nt.current,ce)}}var wa=X.ReactCurrentOwner,ns=X.ReactDebugCurrentFrame;function Yt(y){if(y){var O=y._owner,j=Bt(y.type,y._source,O?O.type:null);ns.setExtraStackFrame(j)}else ns.setExtraStackFrame(null)}var Br;Br=!1;function va(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function is(){{if(wa.current){var y=Me(wa.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"&&Pr.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"&&Pr.set(y,ps),ps}function as(y,P,j){return xr(y,!1)}function ut(y){var P=y.prototype;return!!(P&&P.isReactComponent)}function Bt(y,P,j){if(y==null)return"";if(typeof y=="function")return xr(y,ut(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,P,j);case R:{var Z=y,pe=Z._payload,_e=Z._init;try{return Bt(_e(pe),P,j)}catch{}}}return""}var Rr=Object.prototype.hasOwnProperty,xt={},fa=X.ReactDebugCurrentFrame;function Lr(y){if(y){var P=y._owner,j=Bt(y.type,y._source,P?P.type:null);fa.setExtraStackFrame(j)}else fa.setExtraStackFrame(null)}function wr(y,P,j,Z,pe){{var _e=Function.call.bind(Rr);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")+": "+j+" 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](P,ce,Z,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(qe){ie=qe}ie&&!(ie instanceof Error)&&(Lr(pe),O("%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",j,ce,typeof ie),Lr(null)),ie instanceof Error&&!(ie.message in xt)&&(xt[ie.message]=!0,Lr(pe),O("Failed %s type: %s",j,ie.message),Lr(null))}}}var dt=Array.isArray;function Gt(y){return dt(y)}function Mr(y){{var P=typeof Symbol=="function"&&Symbol.toStringTag,j=P&&y[Symbol.toStringTag]||y.constructor.name||"Object";return j}}function Tn(y){try{return or(y),!1}catch{return!0}}function or(y){return""+y}function ss(y){if(Tn(y))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mr(y)),or(y)}var Nt=X.ReactCurrentOwner,lr={key:!0,ref:!0,__self:!0,__source:!0},Fr,jr,vr;vr={};function ya(y){if(Rr.call(y,"ref")){var P=Object.getOwnPropertyDescriptor(y,"ref").get;if(P&&P.isReactWarning)return!1}return y.ref!==void 0}function ha(y){if(Rr.call(y,"key")){var P=Object.getOwnPropertyDescriptor(y,"key").get;if(P&&P.isReactWarning)return!1}return y.key!==void 0}function _a(y,P){if(typeof y.ref=="string"&&Nt.current&&P&&Nt.current.stateNode!==P){var j=Me(Nt.current.type);vr[j]||(O('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[j]=!0)}}function ga(y,P){{var j=function(){Fr||(Fr=!0,O("%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)",P))};j.isReactWarning=!0,Object.defineProperty(y,"key",{get:j,configurable:!0})}}function ba(y,P){{var j=function(){jr||(jr=!0,O("%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)",P))};j.isReactWarning=!0,Object.defineProperty(y,"ref",{get:j,configurable:!0})}}var xa=function(y,P,j,Z,pe,_e,ce){var ie={$$typeof:n,type:y,key:P,ref:j,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 In(y,P,j,Z,pe){{var _e,ce={},ie=null,$e=null;j!==void 0&&(ss(j),ie=""+j),ha(P)&&(ss(P.key),ie=""+P.key),ya(P)&&($e=P.ref,_a(P,pe));for(_e in P)Rr.call(P,_e)&&!lr.hasOwnProperty(_e)&&(ce[_e]=P[_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&&ga(ce,ze),$e&&ba(ce,ze)}return xa(y,ie,$e,pe,Z,Nt.current,ce)}}var wa=X.ReactCurrentOwner,ns=X.ReactDebugCurrentFrame;function Yt(y){if(y){var P=y._owner,j=Bt(y.type,y._source,P?P.type:null);ns.setExtraStackFrame(j)}else ns.setExtraStackFrame(null)}var Br;Br=!1;function va(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function is(){{if(wa.current){var y=Me(wa.current.type);if(y)return`
24
24
 
25
- Check the render method of \``+y+"`."}return""}}function kn(y){{if(y!==void 0){var O=y.fileName.replace(/^.*[\\\/]/,""),j=y.lineNumber;return`
25
+ Check the render method of \``+y+"`."}return""}}function kn(y){{if(y!==void 0){var P=y.fileName.replace(/^.*[\\\/]/,""),j=y.lineNumber;return`
26
26
 
27
- Check your code at `+O+":"+j+"."}return""}}var os={};function ls(y){{var O=is();if(!O){var j=typeof y=="string"?y:y.displayName||y.name;j&&(O=`
27
+ Check your code at `+P+":"+j+"."}return""}}var os={};function ls(y){{var P=is();if(!P){var j=typeof y=="string"?y:y.displayName||y.name;j&&(P=`
28
28
 
29
- Check the top-level render call using <`+j+">.")}return O}}function cs(y,O){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var j=ls(O);if(os[j])return;os[j]=!0;var Z="";y&&y._owner&&y._owner!==wa.current&&(Z=" It was passed a child from "+Me(y._owner.type)+"."),Yt(y),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,Z),Yt(null)}}function us(y,O){{if(typeof y!="object")return;if(Gt(y))for(var j=0;j<y.length;j++){var Z=y[j];va(Z)&&cs(Z,O)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var pe=$(y);if(typeof pe=="function"&&pe!==y.entries)for(var _e=pe.call(y),ce;!(ce=_e.next()).done;)va(ce.value)&&cs(ce.value,O)}}}function Dn(y){{var O=y.type;if(O==null||typeof O=="string")return;var j;if(typeof O=="function")j=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===g||O.$$typeof===T))j=O.propTypes;else return;if(j){var Z=Me(O);wr(j,y.props,"prop",Z,y)}else if(O.PropTypes!==void 0&&!Br){Br=!0;var pe=Me(O);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pe||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(y){{for(var O=Object.keys(y.props),j=0;j<O.length;j++){var Z=O[j];if(Z!=="children"&&Z!=="key"){Yt(y),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),Yt(null);break}}y.ref!==null&&(Yt(y),E("Invalid attribute `ref` supplied to `React.Fragment`."),Yt(null))}}function ds(y,O,j,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=kn(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,E("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=In(y,O,j,pe,_e);if(ze==null)return ze;if(ce){var tt=O.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 E("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?Ta(ze):Dn(ze),ze}}function Ia(y,O,j){return ds(y,O,j,!0)}function An(y,O,j){return ds(y,O,j,!1)}var qn=An,Cn=Ia;sa.Fragment=o,sa.jsx=qn,sa.jsxs=Cn}()),sa}process.env.NODE_ENV==="production"?Js.exports=Pu():Js.exports=Eu();var P=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 Hi(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 $i(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Hi(Object(a),!0).forEach(function(o){Ru(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Hi(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,d;for(d=0;d<o.length;d++)l=o[d],!(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 d=Object.getOwnPropertySymbols(s);for(l=0;l<d.length;l++)o=d[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,d=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,d=g}finally{try{!o&&m.return!=null&&m.return()}finally{if(l)throw d}}return a}}function Uu(s,n){if(s){if(typeof s=="string")return Xi(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 Xi(s,n)}}function Xi(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 Gi(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 Yi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Gi(Object(a),!0).forEach(function(o){Hu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Gi(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,d){return d(l)},o)}}function na(s){return function n(){for(var a=this,o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];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 Ba(s){return{}.toString.call(s).includes("Object")}function Xu(s){return!Object.keys(s).length}function ia(s){return typeof s=="function"}function Gu(s,n){return Object.prototype.hasOwnProperty.call(s,n)}function Yu(s,n){return Ba(n)||sr("changeType"),Object.keys(n).some(function(a){return!Gu(s,a)})&&sr("changeField"),n}function Vu(s){ia(s)||sr("selectorType")}function Ku(s){ia(s)||Ba(s)||sr("handlerType"),Ba(s)&&Object.values(s).some(function(n){return!ia(n)})&&sr("handlersType")}function Qu(s){s||sr("initialIsRequired"),Ba(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=na(Zu)(Ju),Ua={changes:Yu,selector:Vu,handler:Ku,initial:Qu};function ed(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ua.initial(s),Ua.handler(n);var a={current:s},o=na(ad)(a,n),l=na(rd)(a),d=na(Ua.changes)(s),m=na(td)(a);function h(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return Ua.selector(b),b(a.current)}function g(b){$u(o,l,d,m)(b)}return[h,g]}function td(s,n){return ia(n)?n(s.current):n}function rd(s,n){return s.current=Yi(Yi({},s.current),n),n}function ad(s,n,a){return ia(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),d=0;d<o;d++)l[d]=arguments[d];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||Ki("configIsRequired"),od(s)||Ki("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 <`+j+">.")}return P}}function cs(y,P){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var j=ls(P);if(os[j])return;os[j]=!0;var Z="";y&&y._owner&&y._owner!==wa.current&&(Z=" It was passed a child from "+Me(y._owner.type)+"."),Yt(y),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,Z),Yt(null)}}function us(y,P){{if(typeof y!="object")return;if(Gt(y))for(var j=0;j<y.length;j++){var Z=y[j];va(Z)&&cs(Z,P)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var pe=$(y);if(typeof pe=="function"&&pe!==y.entries)for(var _e=pe.call(y),ce;!(ce=_e.next()).done;)va(ce.value)&&cs(ce.value,P)}}}function Dn(y){{var P=y.type;if(P==null||typeof P=="string")return;var j;if(typeof P=="function")j=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===g||P.$$typeof===T))j=P.propTypes;else return;if(j){var Z=Me(P);wr(j,y.props,"prop",Z,y)}else if(P.PropTypes!==void 0&&!Br){Br=!0;var pe=Me(P);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(y){{for(var P=Object.keys(y.props),j=0;j<P.length;j++){var Z=P[j];if(Z!=="children"&&Z!=="key"){Yt(y),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),Yt(null);break}}y.ref!==null&&(Yt(y),O("Invalid attribute `ref` supplied to `React.Fragment`."),Yt(null))}}function ds(y,P,j,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=kn(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,O("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=In(y,P,j,pe,_e);if(ze==null)return ze;if(ce){var tt=P.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 O("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?Ta(ze):Dn(ze),ze}}function Ia(y,P,j){return ds(y,P,j,!0)}function An(y,P,j){return ds(y,P,j,!1)}var qn=An,Cn=Ia;sa.Fragment=o,sa.jsx=qn,sa.jsxs=Cn}()),sa}process.env.NODE_ENV==="production"?Js.exports=Pu():Js.exports=Eu();var E=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 Hi(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 $i(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Hi(Object(a),!0).forEach(function(o){Ru(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Hi(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 Xi(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 Xi(s,n)}}function Xi(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 Gi(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 Yi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Gi(Object(a),!0).forEach(function(o){Hu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Gi(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 na(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 Ba(s){return{}.toString.call(s).includes("Object")}function Xu(s){return!Object.keys(s).length}function ia(s){return typeof s=="function"}function Gu(s,n){return Object.prototype.hasOwnProperty.call(s,n)}function Yu(s,n){return Ba(n)||sr("changeType"),Object.keys(n).some(function(a){return!Gu(s,a)})&&sr("changeField"),n}function Vu(s){ia(s)||sr("selectorType")}function Ku(s){ia(s)||Ba(s)||sr("handlerType"),Ba(s)&&Object.values(s).some(function(n){return!ia(n)})&&sr("handlersType")}function Qu(s){s||sr("initialIsRequired"),Ba(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=na(Zu)(Ju),Ua={changes:Yu,selector:Vu,handler:Ku,initial:Qu};function ed(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ua.initial(s),Ua.handler(n);var a={current:s},o=na(ad)(a,n),l=na(rd)(a),u=na(Ua.changes)(s),m=na(td)(a);function h(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return Ua.selector(b),b(a.current)}function g(b){$u(o,l,u,m)(b)}return[h,g]}function td(s,n){return ia(n)?n(s.current):n}function rd(s,n){return s.current=Yi(Yi({},s.current),n),n}function ad(s,n,a){return ia(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||Ki("configIsRequired"),od(s)||Ki("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
- `},Ki=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(d,m){return m(d)},l)}};function Qi(s,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&s[a]&&Object.assign(n[a],Qi(s[a],n[a]))}),$i($i({},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(d){return n?l(md):o(d)}),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}),Zi=Fu(fd,2),oa=Zi[0],Wa=Zi[1];function yd(s){var n=dd.config(s),a=n.monaco,o=Mu(n,["monaco"]);Wa(function(l){return{config:Qi(l.config,o),monaco:a}})}function hd(){var s=oa(function(n){var a=n.monaco,o=n.isInitialized,l=n.resolve;return{monaco:a,isInitialized:o,resolve:l}});if(!s.isInitialized){if(Wa({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),en(tn);if(window.monaco&&window.monaco.editor)return Ji(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=oa(function(o){var l=o.config,d=o.reject;return{config:l,reject:d}}),a=gd("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=n.reject,a}function xd(){var s=oa(function(a){var o=a.config,l=a.resolve,d=a.reject;return{config:o,resolve:l,reject:d}}),n=window.require;n.config(s.config),n(["vs/editor/editor.main"],function(a){Ji(a),s.resolve(a)},function(a){s.reject(a)})}function Ji(s){oa().monaco||Wa({monaco:s})}function wd(){return oa(function(s){var n=s.monaco;return n})}var tn=new Promise(function(s,n){return Wa({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 M.createElement("div",{style:Id.container},s)}var Dd=kd,Ad=Dd;function qd({width:s,height:n,isEditorReady:a,loading:o,_ref:l,className:d,wrapperProps:m}){return M.createElement("section",{style:{...an.wrapper,width:s,height:n},...m},!a&&M.createElement(Ad,null,o),M.createElement("div",{ref:l,style:{...an.fullWidth,...!a&&an.hide},className:d}))}var Cd=qd,eo=M.memo(Cd);function Sd(s){M.useEffect(s,[])}var to=Sd;function zd(s,n,a=!0){let o=M.useRef(!0);M.useEffect(o.current||!a?()=>{o.current=!1}:s,n)}var ot=zd;function la(){}function Nr(s,n,a,o){return Nd(s,o)||Od(s,n,a,o)}function Nd(s,n){return s.editor.getModel(ro(s,n))}function Od(s,n,a,o){return s.editor.createModel(n,a,o?ro(s,o):void 0)}function ro(s,n){return s.Uri.parse(n)}function Pd({original:s,modified:n,language:a,originalLanguage:o,modifiedLanguage:l,originalModelPath:d,modifiedModelPath:m,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:g=!1,theme:b="light",loading:w="Loading...",options:T={},height:R="100%",width:L="100%",className:A,wrapperProps:z={},beforeMount:$=la,onMount:X=la}){let[E,U]=M.useState(!1),[S,F]=M.useState(!0),J=M.useRef(null),G=M.useRef(null),ye=M.useRef(null),he=M.useRef(X),le=M.useRef($),bt=M.useRef(!1);to(()=>{let Y=rn.init();return Y.then(me=>(G.current=me)&&F(!1)).catch(me=>(me==null?void 0:me.type)!=="cancelation"&&console.error("Monaco initialization: error:",me)),()=>J.current?Fe():Y.cancel()}),ot(()=>{if(J.current&&G.current){let Y=J.current.getOriginalEditor(),me=Nr(G.current,s||"",o||a||"text",d||"");me!==Y.getModel()&&Y.setModel(me)}},[d],E),ot(()=>{if(J.current&&G.current){let Y=J.current.getModifiedEditor(),me=Nr(G.current,n||"",l||a||"text",m||"");me!==Y.getModel()&&Y.setModel(me)}},[m],E),ot(()=>{let Y=J.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],E),ot(()=>{var Y,me;(me=(Y=J.current)==null?void 0:Y.getModel())==null||me.original.setValue(s||"")},[s],E),ot(()=>{let{original:Y,modified:me}=J.current.getModel();G.current.editor.setModelLanguage(Y,o||a||"text"),G.current.editor.setModelLanguage(me,l||a||"text")},[a,o,l],E),ot(()=>{var Y;(Y=G.current)==null||Y.editor.setTheme(b)},[b],E),ot(()=>{var Y;(Y=J.current)==null||Y.updateOptions(T)},[T],E);let zt=M.useCallback(()=>{var Oe;if(!G.current)return;le.current(G.current);let Y=Nr(G.current,s||"",o||a||"text",d||""),me=Nr(G.current,n||"",l||a||"text",m||"");(Oe=J.current)==null||Oe.setModel({original:Y,modified:me})},[a,n,l,s,o,d,m]),Me=M.useCallback(()=>{var Y;!bt.current&&ye.current&&(J.current=G.current.editor.createDiffEditor(ye.current,{automaticLayout:!0,...T}),zt(),(Y=G.current)==null||Y.editor.setTheme(b),U(!0),bt.current=!0)},[T,b,zt]);M.useEffect(()=>{E&&he.current(J.current,G.current)},[E]),M.useEffect(()=>{!S&&!E&&Me()},[S,E,Me]);function Fe(){var me,Oe,Le,ct;let Y=(me=J.current)==null?void 0:me.getModel();h||((Oe=Y==null?void 0:Y.original)==null||Oe.dispose()),g||((Le=Y==null?void 0:Y.modified)==null||Le.dispose()),(ct=J.current)==null||ct.dispose()}return M.createElement(eo,{width:L,height:R,isEditorReady:E,loading:w,_ref:ye,className:A,wrapperProps:z})}var Ed=Pd,Rd=M.memo(Ed);function Ld(s){let n=M.useRef();return M.useEffect(()=>{n.current=s},[s]),n.current}var Md=Ld,Ha=new Map;function Fd({defaultValue:s,defaultLanguage:n,defaultPath:a,value:o,language:l,path:d,theme:m="light",line:h,loading:g="Loading...",options:b={},overrideServices:w={},saveViewState:T=!0,keepCurrentModel:R=!1,width:L="100%",height:A="100%",className:z,wrapperProps:$={},beforeMount:X=la,onMount:E=la,onChange:U,onValidate:S=la}){let[F,J]=M.useState(!1),[G,ye]=M.useState(!0),he=M.useRef(null),le=M.useRef(null),bt=M.useRef(null),zt=M.useRef(E),Me=M.useRef(X),Fe=M.useRef(),Y=M.useRef(o),me=Md(d),Oe=M.useRef(!1),Le=M.useRef(!1);to(()=>{let ee=rn.init();return ee.then(we=>(he.current=we)&&ye(!1)).catch(we=>(we==null?void 0:we.type)!=="cancelation"&&console.error("Monaco initialization: error:",we)),()=>le.current?je():ee.cancel()}),ot(()=>{var we,We,$t,Qe;let ee=Nr(he.current,s||o||"",n||l||"",d||a||"");ee!==((we=le.current)==null?void 0:we.getModel())&&(T&&Ha.set(me,(We=le.current)==null?void 0:We.saveViewState()),($t=le.current)==null||$t.setModel(ee),T&&((Qe=le.current)==null||Qe.restoreViewState(Ha.get(d))))},[d],F),ot(()=>{var ee;(ee=le.current)==null||ee.updateOptions(b)},[b],F),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],F),ot(()=>{var we,We;let ee=(we=le.current)==null?void 0:we.getModel();ee&&l&&((We=he.current)==null||We.editor.setModelLanguage(ee,l))},[l],F),ot(()=>{var ee;h!==void 0&&((ee=le.current)==null||ee.revealLine(h))},[h],F),ot(()=>{var ee;(ee=he.current)==null||ee.editor.setTheme(m)},[m],F);let ct=M.useCallback(()=>{var ee;if(!(!bt.current||!he.current)&&!Oe.current){Me.current(he.current);let we=d||a,We=Nr(he.current,o||s||"",n||l||"",we||"");le.current=(ee=he.current)==null?void 0:ee.editor.create(bt.current,{model:We,automaticLayout:!0,...b},w),T&&le.current.restoreViewState(Ha.get(we)),he.current.editor.setTheme(m),h!==void 0&&le.current.revealLine(h),J(!0),Oe.current=!0}},[s,n,a,o,l,d,b,w,T,m,h]);M.useEffect(()=>{F&&zt.current(le.current,he.current)},[F]),M.useEffect(()=>{!G&&!F&&ct()},[G,F,ct]),Y.current=o,M.useEffect(()=>{var ee,we;F&&U&&((ee=Fe.current)==null||ee.dispose(),Fe.current=(we=le.current)==null?void 0:we.onDidChangeModelContent(We=>{Le.current||U(le.current.getValue(),We)}))},[F,U]),M.useEffect(()=>{if(F){let ee=he.current.editor.onDidChangeMarkers(we=>{var $t;let We=($t=le.current.getModel())==null?void 0:$t.uri;if(We&&we.find(Qe=>Qe.path===We.path)){let Qe=he.current.editor.getModelMarkers({resource:We});S==null||S(Qe)}});return()=>{ee==null||ee.dispose()}}return()=>{}},[F,S]);function je(){var ee,we;(ee=Fe.current)==null||ee.dispose(),R?T&&Ha.set(d,le.current.saveViewState()):(we=le.current.getModel())==null||we.dispose(),le.current.dispose()}return M.createElement(eo,{width:L,height:A,isEditorReady:F,loading:g,_ref:bt,className:z,wrapperProps:$})}var jd=Fd,Bd=M.memo(jd);const ao={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
+ `},Ki=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 Qi(s,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&s[a]&&Object.assign(n[a],Qi(s[a],n[a]))}),$i($i({},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}),Zi=Fu(fd,2),oa=Zi[0],Wa=Zi[1];function yd(s){var n=dd.config(s),a=n.monaco,o=Mu(n,["monaco"]);Wa(function(l){return{config:Qi(l.config,o),monaco:a}})}function hd(){var s=oa(function(n){var a=n.monaco,o=n.isInitialized,l=n.resolve;return{monaco:a,isInitialized:o,resolve:l}});if(!s.isInitialized){if(Wa({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),en(tn);if(window.monaco&&window.monaco.editor)return Ji(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=oa(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=oa(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){Ji(a),s.resolve(a)},function(a){s.reject(a)})}function Ji(s){oa().monaco||Wa({monaco:s})}function wd(){return oa(function(s){var n=s.monaco;return n})}var tn=new Promise(function(s,n){return Wa({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 M.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 M.createElement("section",{style:{...an.wrapper,width:s,height:n},...m},!a&&M.createElement(Ad,null,o),M.createElement("div",{ref:l,style:{...an.fullWidth,...!a&&an.hide},className:u}))}var Cd=qd,eo=M.memo(Cd);function Sd(s){M.useEffect(s,[])}var to=Sd;function zd(s,n,a=!0){let o=M.useRef(!0);M.useEffect(o.current||!a?()=>{o.current=!1}:s,n)}var ot=zd;function la(){}function Nr(s,n,a,o){return Nd(s,o)||Od(s,n,a,o)}function Nd(s,n){return s.editor.getModel(ro(s,n))}function Od(s,n,a,o){return s.editor.createModel(n,a,o?ro(s,o):void 0)}function ro(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:R="100%",width:L="100%",className:A,wrapperProps:z={},beforeMount:$=la,onMount:X=la}){let[O,U]=M.useState(!1),[S,F]=M.useState(!0),J=M.useRef(null),G=M.useRef(null),ye=M.useRef(null),he=M.useRef(X),le=M.useRef($),bt=M.useRef(!1);to(()=>{let Y=rn.init();return Y.then(me=>(G.current=me)&&F(!1)).catch(me=>(me==null?void 0:me.type)!=="cancelation"&&console.error("Monaco initialization: error:",me)),()=>J.current?Fe():Y.cancel()}),ot(()=>{if(J.current&&G.current){let Y=J.current.getOriginalEditor(),me=Nr(G.current,s||"",o||a||"text",u||"");me!==Y.getModel()&&Y.setModel(me)}},[u],O),ot(()=>{if(J.current&&G.current){let Y=J.current.getModifiedEditor(),me=Nr(G.current,n||"",l||a||"text",m||"");me!==Y.getModel()&&Y.setModel(me)}},[m],O),ot(()=>{let Y=J.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],O),ot(()=>{var Y,me;(me=(Y=J.current)==null?void 0:Y.getModel())==null||me.original.setValue(s||"")},[s],O),ot(()=>{let{original:Y,modified:me}=J.current.getModel();G.current.editor.setModelLanguage(Y,o||a||"text"),G.current.editor.setModelLanguage(me,l||a||"text")},[a,o,l],O),ot(()=>{var Y;(Y=G.current)==null||Y.editor.setTheme(b)},[b],O),ot(()=>{var Y;(Y=J.current)==null||Y.updateOptions(T)},[T],O);let zt=M.useCallback(()=>{var Oe;if(!G.current)return;le.current(G.current);let Y=Nr(G.current,s||"",o||a||"text",u||""),me=Nr(G.current,n||"",l||a||"text",m||"");(Oe=J.current)==null||Oe.setModel({original:Y,modified:me})},[a,n,l,s,o,u,m]),Me=M.useCallback(()=>{var Y;!bt.current&&ye.current&&(J.current=G.current.editor.createDiffEditor(ye.current,{automaticLayout:!0,...T}),zt(),(Y=G.current)==null||Y.editor.setTheme(b),U(!0),bt.current=!0)},[T,b,zt]);M.useEffect(()=>{O&&he.current(J.current,G.current)},[O]),M.useEffect(()=>{!S&&!O&&Me()},[S,O,Me]);function Fe(){var me,Oe,Le,ct;let Y=(me=J.current)==null?void 0:me.getModel();h||((Oe=Y==null?void 0:Y.original)==null||Oe.dispose()),g||((Le=Y==null?void 0:Y.modified)==null||Le.dispose()),(ct=J.current)==null||ct.dispose()}return M.createElement(eo,{width:L,height:R,isEditorReady:O,loading:w,_ref:ye,className:A,wrapperProps:z})}var Ed=Pd,Rd=M.memo(Ed);function Ld(s){let n=M.useRef();return M.useEffect(()=>{n.current=s},[s]),n.current}var Md=Ld,Ha=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:R=!1,width:L="100%",height:A="100%",className:z,wrapperProps:$={},beforeMount:X=la,onMount:O=la,onChange:U,onValidate:S=la}){let[F,J]=M.useState(!1),[G,ye]=M.useState(!0),he=M.useRef(null),le=M.useRef(null),bt=M.useRef(null),zt=M.useRef(O),Me=M.useRef(X),Fe=M.useRef(),Y=M.useRef(o),me=Md(u),Oe=M.useRef(!1),Le=M.useRef(!1);to(()=>{let ee=rn.init();return ee.then(we=>(he.current=we)&&ye(!1)).catch(we=>(we==null?void 0:we.type)!=="cancelation"&&console.error("Monaco initialization: error:",we)),()=>le.current?je():ee.cancel()}),ot(()=>{var we,We,$t,Qe;let ee=Nr(he.current,s||o||"",n||l||"",u||a||"");ee!==((we=le.current)==null?void 0:we.getModel())&&(T&&Ha.set(me,(We=le.current)==null?void 0:We.saveViewState()),($t=le.current)==null||$t.setModel(ee),T&&((Qe=le.current)==null||Qe.restoreViewState(Ha.get(u))))},[u],F),ot(()=>{var ee;(ee=le.current)==null||ee.updateOptions(b)},[b],F),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],F),ot(()=>{var we,We;let ee=(we=le.current)==null?void 0:we.getModel();ee&&l&&((We=he.current)==null||We.editor.setModelLanguage(ee,l))},[l],F),ot(()=>{var ee;h!==void 0&&((ee=le.current)==null||ee.revealLine(h))},[h],F),ot(()=>{var ee;(ee=he.current)==null||ee.editor.setTheme(m)},[m],F);let ct=M.useCallback(()=>{var ee;if(!(!bt.current||!he.current)&&!Oe.current){Me.current(he.current);let we=u||a,We=Nr(he.current,o||s||"",n||l||"",we||"");le.current=(ee=he.current)==null?void 0:ee.editor.create(bt.current,{model:We,automaticLayout:!0,...b},w),T&&le.current.restoreViewState(Ha.get(we)),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]);M.useEffect(()=>{F&&zt.current(le.current,he.current)},[F]),M.useEffect(()=>{!G&&!F&&ct()},[G,F,ct]),Y.current=o,M.useEffect(()=>{var ee,we;F&&U&&((ee=Fe.current)==null||ee.dispose(),Fe.current=(we=le.current)==null?void 0:we.onDidChangeModelContent(We=>{Le.current||U(le.current.getValue(),We)}))},[F,U]),M.useEffect(()=>{if(F){let ee=he.current.editor.onDidChangeMarkers(we=>{var $t;let We=($t=le.current.getModel())==null?void 0:$t.uri;if(We&&we.find(Qe=>Qe.path===We.path)){let Qe=he.current.editor.getModelMarkers({resource:We});S==null||S(Qe)}});return()=>{ee==null||ee.dispose()}}return()=>{}},[F,S]);function je(){var ee,we;(ee=Fe.current)==null||ee.dispose(),R?T&&Ha.set(u,le.current.saveViewState()):(we=le.current.getModel())==null||we.dispose(),le.current.dispose()}return M.createElement(eo,{width:L,height:A,isEditorReady:F,loading:g,_ref:bt,className:z,wrapperProps:$})}var jd=Fd,Bd=M.memo(jd);const ao={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,22 +97,22 @@ 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"}],so=["in","as","continue","break","else","to","by"],Ae={keywords:"keyword",functions:"built-in function",variables:"built-in variable",methods:"built-in method",types:"built-in type",annotations:"annotation",constants:"built-in variable",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(ao).reduce((a,o)=>{const l=ao[o],d=Ae[o],{mapObj:m,keys:h}=$d(l,d);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 d=l.originalName||l.name;d!=="for...in"&&(a.has(d)?(m=a.get(d))==null||m.push(l):(o.push(d),a.set(d,[l])))}),{mapObj:a,keys:o}}const{keyList:sn,keyMapList:lt}=Hd();console.log(sn,lt);const $a=[{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"}],so=["in","as","continue","break","else","to","by"],Ae={keywords:"keyword",functions:"built-in function",variables:"built-in variable",methods:"built-in method",types:"built-in type",annotations:"annotation",constants:"built-in variable",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(ao).reduce((a,o)=>{const l=ao[o],u=Ae[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:sn,keyMapList:lt}=Hd();console.log(sn,lt);const $a=[{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 Yd(s,n=0,a=!0){const o=s[n];if(!o)return"";const l=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:d,title:m,desc:h,type:g,syntax:b,returns:w,remarks:T,fields:R}=o,L=[`${be.bold(d)} (${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(gt.Type),be.italic(g))),b&&b.length&&L.push(be.paragraph(be.bold(gt.Syntax),be.pineCode(b.join(be.lineBreak)))),w&&L.push(be.paragraph(be.bold(gt.Returns),be.lineBreak,w.join(be.lineBreak))),T&&T.length&&s.length<=1){let A="";typeof T=="string"?A=T:A=T.join(be.lineBreak)||"",A.length<200&&L.push(be.paragraph(be.bold(gt.Remarks),be.lineBreak,A))}if(R){const A=[];for(const z of R){const $=z.desc?` - ${z.desc}`:"";A.push(`${z.name} (${z.type}) ${$}`)}L.push(be.paragraph(be.bold(gt.Fields),be.lineBreak,A.join(be.paragraphBreak)))}return a&&L.push(be.italic(`${be.code(l?"⌘":"Ctrl")} + ${Wd.clickOnKeywordForMoreHelp}`)),L.join(L.length===2?" ":be.lineBreak)}const nn="tcc_cursor_position",Vd=["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!Vd.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 d=this._mergeTreeSlices(this._generateTreeSlice(lt.methods,"method"),this._generateTreeSlice(l,"method"));this._getMethodNamespaceCache(d),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),d=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(n,void 0,!0);return[...d,...m,...l,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:a,types:o,functions:l}=this._builtinSubtreeCache,d=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(a),h=this._getTypeCompletionItems(o),g=this._getFunctionCompletionItems(l),b=this._getSnippetsCompletionsList();return[...d,...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,d]of o){const m=a.get(l);m?a.set(l,{...m,children:this._mergeTreeSlices(d.children,m.children)}):a.set(l,d)}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,d]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=d.map(L=>({...L,name:l})),R=this._getNodeKey(l,a);if(g&&a!=="type"){const L=new Map([[h.join("."),d]]);T=[{name:m,title:Ae.namespace}],R=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(L,a)}b&&(T=[{name:m,title:Ae.namespace}],w=this._mergeTreeSlices(b.children,w)),o.set(R,{value:T,children:w})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:a,constants:o,types:l,functions:d}=lt;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(d,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(n,a){const o=[],l=[];for(const[d,m]of n){const{value:h,children:g}=m;if(d.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(d,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,R;let o=[];const l=Kd(n.type||""),d=this._methodNamespaceCache.get(l),m=a?`${a}.${n.name}`:n.name;d&&(o=d.filter(L=>{var X;const A=`${l}.${L.label}`,z=lt.methods.get(A)||this._userMethods.get(A),$=z==null?void 0:z.some(E=>!E.thisType||E.thisType[0].includes("<>")||E.thisType.includes(n.type||""));if($&&z){const E=this._getNamedArgumentsCompletionList(((X=z[0])==null?void 0:X.args)||[]),U=`${m}.${L.label}`;this._userFuncArgsCache.set(U,E),this._methodFuncs.set(U,z)}return $}));const{types:h}=lt,g=((w=(b=this._userTypes.get(l))==null?void 0:b[0])==null?void 0:w.fields)||((R=(T=h.get(l))==null?void 0:T[0])==null?void 0:R.fields);if(g)for(const L of g){const A=L.name,z=L.type,$=this._getInstanceTypeCompletionItemProp({name:A,type:z});this._setUserVariableSubItems({name:A,type:z},n.name),o.push({...$})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,a){const o=[],l=[];for(const[d,m]of n){const{value:h,children:g}=m;if(this._setUserVariableSubItems(h[0]),d.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(d,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:d}=l,m=a?this._getCustomTypeCompletionItem(d[0]):this._getTypeCompletionItem(d[0]);o.push(m)}return o}_getKeywordCompletionItems(n){const a=[];for(const[,o]of n){const{value:l}=o,d=this._getKeywordCompletionItem(l[0]);a.push(d)}return a}_getMethodNamespaceCache(n,a){const o=[];for(const[l,d]of n){const{value:m,children:h}=d;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=[],d=[];for(const[m,h]of n){const{value:g,children:b}=h;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(g[0]);if(a){d.push({...w});const R=`${a}.${w.label}`;w.label=R,w.insertText=R}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){d.push({...w});const{label:T}=w;w.label=`${a}.${T}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${T}\r`}l.push(w)}}return d.length&&a&&(o?this._mergeUserCompletions(a,d):this._mergeCompletions(a,d)),l}_getSnippetsCompletionsList(){return Ud.map(n=>{const{label:a,kind:o,insertText:l}=n,d=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(l.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${d} ${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:d}=l.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(l.children,a?`${a}.${d}`:d);else{const m=new Map;l.value.reduce((b,w)=>{const T=w.args;return T&&T.length&&T.forEach(R=>{b.set(R.name,R)}),b},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${d}`:d;this._funcArgsCache.set(g,h)}}}_getUserFuncArgumentsCompletionItemsToCache(n,a){for(const[o,l]of n){const{name:d}=l.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(l.children,a?`${a}.${d}`:d);else{const m=new Map;l.value.reduce((b,w)=>{const T=w.args;return T&&T.length&&T.forEach(R=>{b.set(R.name,R)}),b},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${d}`:d;this._userFuncArgsCache.set(g,h)}}}_getNamedArgumentsCompletionList(n){return n.map(a=>{const{name:o,desc:l,displayType:d}=a,m=`${o} = `,h=Array.isArray(l)?l.join(this._formatter.delimiter):l||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(Ae.Description),this._formatter.lineBreak,h)},insertText:m,detail:`(${Ae.parameter}) ${Ae.types} ${d}`,kind:Se.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,a=2,o=!0){const l=this._extractExamples(n),d=this._extractDescription(n),m=[this._createDescriptionSection(d)];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?Ae.variables:Ae.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),d=[this._createDescriptionSection(l)];return o.length?d.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&d.push(this._createSyntaxSection(n.syntax)),{documentation:{value:d.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`${a}_${n.name}`,detail:`(${Ae.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:`(${Ae.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:`(${Ae.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const a=this._extractDescription(n),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(gt.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:`(${Ae.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()),d=this._extractExamples(n),m=this._extractDescription(n),h=[this._createDescriptionSection(m)];d.length?h.push(this._createExampleSection(d)):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?Ae.functions:Ae.userDefinedFunction,T=n.template,R=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:R+this.bracketsPostfix,originInsertText:R,detail:`(${w}) ${Ae.returns} ${l}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(n,a=2){const o=[this._createDescriptionSection(Ae.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${Ae.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(gt.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(gt.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(gt.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(gt.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:d,methods:m}=n;o&&(this._userFunctions=o),l&&(this._userVariables=l),d&&(this._userTypes=d),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(n,a,o,l){let d=(o==null?void 0:o.getLineContent(a))||"";const m=d.indexOf("//");if(this._removeString(d).indexOf("//")!==-1&&m<=n)return;d=d+" ";const h=this._getVariablesDocVal(d,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(d,n,a);if(g)return g;const b=d.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,d,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 lt.functions.get(n)}_getBuildInMethod(n){return lt.methods.get(n)}_getBuildInOther(n){const{keywords:a,variables:o,constants:l,types:d}=lt;return a.get(n)||o.get(n)||l.get(n)||d.get(n)}parseCurrentInputFunc(n,a=!1,o=!1){let l=n.length-1,d=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)&&(d+=1),/\(/.test(g))){if(d>0){d-=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:d}=this.parseCurrentInputFunc(n,a,o)||{};if(l&&typeof d=="number"){let m=n.slice(d+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 d=this._matchContent(l,n,a);if(d){const m={docValue:void 0,isBuildIn:!0,index:0},h=this._getBuildInOther(d.name);if(h)return m.docValue=h,m;const g=this._getUserVariablesDocVal(d.name,a,o);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1});const b=this._getUserTypesDocVal(d.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const w=this._getTypesAndFileds(n,d.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=Ae.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const a=this._userTypes.get(n);if(a)return a[0].title=Ae.userDefinedType,a}_getTypesAndFileds(n,a,o,l){var d,m;if(a.includes(".")){const h=a.split(".");let g=h[0],b,w=null,T=n.indexOf(a,o-a.length)+1,R=T+g.length-1;for(const L of h.slice(1)){if(!w){const A=T<=o&&R>=o,z=this._getUserVariablesDocVal(g,o,l);if(A&&z)return z;w=z==null?void 0:z.type}if(w){b=w,T=R+2,R=R+L.length+1;const A=this._userTypes.get(w)||lt.types.get(w),z=(m=(d=A==null?void 0:A[0])==null?void 0:d.fields)==null?void 0:m.find($=>$.name===L);if(z&&T<=o&&R>=o)return{name:`${w}.${L}`,desc:z.desc,type:this._arrayTypeTransform(z.type),title:Ae.field};w=z==null?void 0:z.type}else g=`${g}.${L}`,R=R+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 d=this._matchContent(l,n,a);if(d){const m={docValue:void 0,isBuildIn:!0,index:0},h=this._getBuildInFunc(d.name);if(h)return m.index=this._getOverloadsFuncIndex(h,a,d.name,o),Object.assign(m,{docValue:h});const g=this._getUserFuncsDocVal(d.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const b=this._getUserVarFuncsDocVal(n,d.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,a,o,l){if(n.length>1){const d=this._overloadsFuncs.find(m=>m.name===o&&m.line===l&&m.startColumn<=a&&m.endColumn>=a);if(d)return d.index}return 0}_getUserFuncsDocVal(n){const a=this._userFunctions.get(n);if(a)return a[0].title=Ae.userDefinedFunction,a}_getUserMethodsDocVal(n){const a=this._userMethods.get(n);if(a)return a[0].title=Ae.userDefinedMethod,a}_getUserVarFuncsDocVal(n,a,o,l){var d;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(d=this._getUserMethodsDocVal(b))==null?void 0:d[0]}else return h}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,a,o){let l=0;for(const d of n){l=o-d.length;const m=a.indexOf(d,l);if(l=m+d.length,this._judgeVal(a,m,l)&&m+1<=o&&l>=o)return{name:d,endIndex:l}}}_judgeVal(n,a,o){const l=n.charAt(a-1),d=/[\w\d."']/;if(d.test(l))return!1;const m=n.charAt(o);return!d.test(m)}}const ca=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 Yd(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:R}=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(gt.Type),be.italic(g))),b&&b.length&&L.push(be.paragraph(be.bold(gt.Syntax),be.pineCode(b.join(be.lineBreak)))),w&&L.push(be.paragraph(be.bold(gt.Returns),be.lineBreak,w.join(be.lineBreak))),T&&T.length&&s.length<=1){let A="";typeof T=="string"?A=T:A=T.join(be.lineBreak)||"",A.length<200&&L.push(be.paragraph(be.bold(gt.Remarks),be.lineBreak,A))}if(R){const A=[];for(const z of R){const $=z.desc?` - ${z.desc}`:"";A.push(`${z.name} (${z.type}) ${$}`)}L.push(be.paragraph(be.bold(gt.Fields),be.lineBreak,A.join(be.paragraphBreak)))}return a&&L.push(be.italic(`${be.code(l?"⌘":"Ctrl")} + ${Wd.clickOnKeywordForMoreHelp}`)),L.join(L.length===2?" ":be.lineBreak)}const nn="tcc_cursor_position",Vd=["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!Vd.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(lt.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})),R=this._getNodeKey(l,a);if(g&&a!=="type"){const L=new Map([[h.join("."),u]]);T=[{name:m,title:Ae.namespace}],R=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(L,a)}b&&(T=[{name:m,title:Ae.namespace}],w=this._mergeTreeSlices(b.children,w)),o.set(R,{value:T,children:w})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:a,constants:o,types:l,functions:u}=lt;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,R;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 X;const A=`${l}.${L.label}`,z=lt.methods.get(A)||this._userMethods.get(A),$=z==null?void 0:z.some(O=>!O.thisType||O.thisType[0].includes("<>")||O.thisType.includes(n.type||""));if($&&z){const O=this._getNamedArgumentsCompletionList(((X=z[0])==null?void 0:X.args)||[]),U=`${m}.${L.label}`;this._userFuncArgsCache.set(U,O),this._methodFuncs.set(U,z)}return $}));const{types:h}=lt,g=((w=(b=this._userTypes.get(l))==null?void 0:b[0])==null?void 0:w.fields)||((R=(T=h.get(l))==null?void 0:T[0])==null?void 0:R.fields);if(g)for(const L of g){const A=L.name,z=L.type,$=this._getInstanceTypeCompletionItemProp({name:A,type:z});this._setUserVariableSubItems({name:A,type:z},n.name),o.push({...$})}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 R=`${a}.${w.label}`;w.label=R,w.insertText=R}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(R=>{b.set(R.name,R)}),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(R=>{b.set(R.name,R)}),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(Ae.Description),this._formatter.lineBreak,h)},insertText:m,detail:`(${Ae.parameter}) ${Ae.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?Ae.variables:Ae.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:`(${Ae.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:`(${Ae.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:`(${Ae.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const a=this._extractDescription(n),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(gt.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:`(${Ae.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?Ae.functions:Ae.userDefinedFunction,T=n.template,R=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:R+this.bracketsPostfix,originInsertText:R,detail:`(${w}) ${Ae.returns} ${l}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(n,a=2){const o=[this._createDescriptionSection(Ae.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${Ae.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(gt.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(gt.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(gt.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(gt.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 R=this._getBuildInFunc(`${w.name}<type>`);if(R)return{docValue:R,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(n){return lt.functions.get(n)}_getBuildInMethod(n){return lt.methods.get(n)}_getBuildInOther(n){const{keywords:a,variables:o,constants:l,types:u}=lt;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=Ae.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const a=this._userTypes.get(n);if(a)return a[0].title=Ae.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,R=T+g.length-1;for(const L of h.slice(1)){if(!w){const A=T<=o&&R>=o,z=this._getUserVariablesDocVal(g,o,l);if(A&&z)return z;w=z==null?void 0:z.type}if(w){b=w,T=R+2,R=R+L.length+1;const A=this._userTypes.get(w)||lt.types.get(w),z=(m=(u=A==null?void 0:A[0])==null?void 0:u.fields)==null?void 0:m.find($=>$.name===L);if(z&&T<=o&&R>=o)return{name:`${w}.${L}`,desc:z.desc,type:this._arrayTypeTransform(z.type),title:Ae.field};w=z==null?void 0:z.type}else g=`${g}.${L}`,R=R+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,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=Ae.userDefinedFunction,a}_getUserMethodsDocVal(n){const a=this._userMethods.get(n);if(a)return a[0].title=Ae.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 ca=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,d="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,R=2,L=4,A=1,z=2,$=1,X=2,E=4,U=8,S=16,F=32,J=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,ct=17976931348623157e292,je=NaN,ee=4294967295,we=ee-1,We=ee>>>1,$t=[["ary",G],["bind",$],["bindKey",X],["curry",U],["curryRight",S],["flip",he],["partial",F],["partialRight",J],["rearg",ye]],Qe="[object Arguments]",or="[object Array]",ma="[object AsyncFunction]",jt="[object Boolean]",Xt="[object Date]",Pr="[object DOMException]",Er="[object Error]",xr="[object Function]",as="[object GeneratorFunction]",ut="[object Map]",Bt="[object Number]",Rr="[object Null]",xt="[object Object]",fa="[object Promise]",Lr="[object Proxy]",wr="[object RegExp]",dt="[object Set]",Gt="[object String]",Mr="[object Symbol]",Tn="[object Undefined]",lr="[object WeakMap]",ss="[object WeakSet]",Nt="[object ArrayBuffer]",cr="[object DataView]",Fr="[object Float32Array]",jr="[object Float64Array]",vr="[object Int8Array]",ya="[object Int16Array]",ha="[object Int32Array]",_a="[object Uint8Array]",ga="[object Uint8ClampedArray]",ba="[object Uint16Array]",xa="[object Uint32Array]",In=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,ns=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Yt.source),is=RegExp(Br.source),kn=/<%-([\s\S]+?)%>/g,os=/<%([\s\S]+?)%>/g,ls=/<%=([\s\S]+?)%>/g,cs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,us=/^\w*$/,Dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,ds=RegExp(Ta.source),Ia=/^\s+/,An=/\s/,qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cn=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,O=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,j=/[()=,{}\[\]\/\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",um="\\u0300-\\u036f",dm="\\ufe20-\\ufe2f",pm="\\u20d0-\\u20ff",nl=um+dm+pm,il="\\u2700-\\u27bf",ol="a-z\\xdf-\\xf6\\xf8-\\xff",mm="\\xac\\xb1\\xd7\\xf7",fm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ym="\\u2000-\\u206f",hm=" \\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=mm+fm+ym+hm,Sn="['’]",_m="["+rt+"]",dl="["+ul+"]",ms="["+nl+"]",pl="\\d+",gm="["+il+"]",ml="["+ol+"]",fl="[^"+rt+ul+pl+il+ol+ll+"]",zn="\\ud83c[\\udffb-\\udfff]",bm="(?:"+ms+"|"+zn+")",yl="[^"+rt+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",On="[\\ud800-\\udbff][\\udc00-\\udfff]",Ur="["+ll+"]",hl="\\u200d",_l="(?:"+ml+"|"+fl+")",xm="(?:"+Ur+"|"+fl+")",gl="(?:"+Sn+"(?:d|ll|m|re|s|t|ve))?",bl="(?:"+Sn+"(?:D|LL|M|RE|S|T|VE))?",xl=bm+"?",wl="["+cl+"]?",wm="(?:"+hl+"(?:"+[yl,Nn,On].join("|")+")"+wl+xl+")*",vm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vl=wl+xl+wm,Im="(?:"+[gm,Nn,On].join("|")+")"+vl,km="(?:"+[yl+ms+"?",ms,Nn,On,_m].join("|")+")",Dm=RegExp(Sn,"g"),Am=RegExp(ms,"g"),Pn=RegExp(zn+"(?="+zn+")|"+km+vl,"g"),qm=RegExp([Ur+"?"+ml+"+"+gl+"(?="+[dl,Ur,"$"].join("|")+")",xm+"+"+bl+"(?="+[dl,Ur+_l,"$"].join("|")+")",Ur+"?"+_l+"+"+gl,Ur+"+"+bl,Tm,vm,pl,Im].join("|"),"g"),Cm=RegExp("["+hl+rt+nl+cl+"]"),Sm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zm=["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"],Nm=-1,Ie={};Ie[Fr]=Ie[jr]=Ie[vr]=Ie[ya]=Ie[ha]=Ie[_a]=Ie[ga]=Ie[ba]=Ie[xa]=!0,Ie[Qe]=Ie[or]=Ie[Nt]=Ie[jt]=Ie[cr]=Ie[Xt]=Ie[Er]=Ie[xr]=Ie[ut]=Ie[Bt]=Ie[xt]=Ie[wr]=Ie[dt]=Ie[Gt]=Ie[lr]=!1;var Te={};Te[Qe]=Te[or]=Te[Nt]=Te[cr]=Te[jt]=Te[Xt]=Te[Fr]=Te[jr]=Te[vr]=Te[ya]=Te[ha]=Te[ut]=Te[Bt]=Te[xt]=Te[wr]=Te[dt]=Te[Gt]=Te[Mr]=Te[_a]=Te[ga]=Te[ba]=Te[xa]=!0,Te[Er]=Te[xr]=Te[lr]=!1;var Om={À:"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"},Pm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Em={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Rm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lm=parseFloat,Mm=parseInt,Tl=typeof ra=="object"&&ra&&ra.Object===Object&&ra,Fm=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Tl||Fm||Function("return this")(),En=n&&!n.nodeType&&n,Tr=En&&!0&&s&&!s.nodeType&&s,Il=Tr&&Tr.exports===En,Rn=Il&&Tl.process,wt=function(){try{var x=Tr&&Tr.require&&Tr.require("util").types;return x||Rn&&Rn.binding&&Rn.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 pt(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 jm(x,D,I,W){for(var te=-1,fe=x==null?0:x.length;++te<fe;){var Be=x[te];D(W,Be,I(Be),x)}return W}function vt(x,D){for(var I=-1,W=x==null?0:x.length;++I<W&&D(x[I],I,x)!==!1;);return x}function Bm(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,W=x==null?0:x.length;++I<W;)if(!D(x[I],I,x))return!1;return!0}function ur(x,D){for(var I=-1,W=x==null?0:x.length,te=0,fe=[];++I<W;){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&&Wr(x,D,0)>-1}function Ln(x,D,I){for(var W=-1,te=x==null?0:x.length;++W<te;)if(I(D,x[W]))return!0;return!1}function ke(x,D){for(var I=-1,W=x==null?0:x.length,te=Array(W);++I<W;)te[I]=D(x[I],I,x);return te}function dr(x,D){for(var I=-1,W=D.length,te=x.length;++I<W;)x[te+I]=D[I];return x}function Mn(x,D,I,W){var te=-1,fe=x==null?0:x.length;for(W&&fe&&(I=x[++te]);++te<fe;)I=D(I,x[te],te,x);return I}function Um(x,D,I,W){var te=x==null?0:x.length;for(W&&te&&(I=x[--te]);te--;)I=D(I,x[te],te,x);return I}function Fn(x,D){for(var I=-1,W=x==null?0:x.length;++I<W;)if(D(x[I],I,x))return!0;return!1}var Wm=jn("length");function Hm(x){return x.split("")}function $m(x){return x.match(O)||[]}function Nl(x,D,I){var W;return I(x,function(te,fe,Be){if(D(te,fe,Be))return W=fe,!1}),W}function ys(x,D,I,W){for(var te=x.length,fe=I+(W?1:-1);W?fe--:++fe<te;)if(D(x[fe],fe,x))return fe;return-1}function Wr(x,D,I){return D===D?af(x,D,I):ys(x,Ol,I)}function Xm(x,D,I,W){for(var te=I-1,fe=x.length;++te<fe;)if(W(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?Un(x,D)/I:je}function jn(x){return function(D){return D==null?a:D[x]}}function Bn(x){return function(D){return x==null?a:x[D]}}function El(x,D,I,W,te){return te(x,function(fe,Be,ve){I=W?(W=!1,fe):D(I,fe,Be,ve)}),I}function Gm(x,D){var I=x.length;for(x.sort(D);I--;)x[I]=x[I].value;return x}function Un(x,D){for(var I,W=-1,te=x.length;++W<te;){var fe=D(x[W]);fe!==a&&(I=I===a?fe:I+fe)}return I}function Wn(x,D){for(var I=-1,W=Array(x);++I<x;)W[I]=D(I);return W}function Ym(x,D){return ke(D,function(I){return[I,x[I]]})}function Rl(x){return x&&x.slice(0,jl(x)+1).replace(Ia,"")}function mt(x){return function(D){return x(D)}}function Hn(x,D){return ke(D,function(I){return x[I]})}function ka(x,D){return x.has(D)}function Ll(x,D){for(var I=-1,W=x.length;++I<W&&Wr(D,x[I],0)>-1;);return I}function Ml(x,D){for(var I=x.length;I--&&Wr(D,x[I],0)>-1;);return I}function Vm(x,D){for(var I=x.length,W=0;I--;)x[I]===D&&++W;return W}var Km=Bn(Om),Qm=Bn(Pm);function Zm(x){return"\\"+Rm[x]}function Jm(x,D){return x==null?a:x[D]}function Hr(x){return Cm.test(x)}function ef(x){return Sm.test(x)}function tf(x){for(var D,I=[];!(D=x.next()).done;)I.push(D.value);return I}function $n(x){var D=-1,I=Array(x.size);return x.forEach(function(W,te){I[++D]=[te,W]}),I}function Fl(x,D){return function(I){return x(D(I))}}function pr(x,D){for(var I=-1,W=x.length,te=0,fe=[];++I<W;){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(W){I[++D]=W}),I}function rf(x){var D=-1,I=Array(x.size);return x.forEach(function(W){I[++D]=[W,W]}),I}function af(x,D,I){for(var W=I-1,te=x.length;++W<te;)if(x[W]===D)return W;return-1}function sf(x,D,I){for(var W=I+1;W--;)if(x[W]===D)return W;return W}function $r(x){return Hr(x)?of(x):Wm(x)}function Pt(x){return Hr(x)?lf(x):Hm(x)}function jl(x){for(var D=x.length;D--&&An.test(x.charAt(D)););return D}var nf=Bn(Em);function of(x){for(var D=Pn.lastIndex=0;Pn.test(x);)++D;return D}function lf(x){return x.match(Pn)||[]}function cf(x){return x.match(qm)||[]}var uf=function x(D){D=D==null?Xe:Xr.defaults(Xe.Object(),D,Xr.pick(Xe,zm));var I=D.Array,W=D.Date,te=D.Error,fe=D.Function,Be=D.Math,ve=D.Object,Xn=D.RegExp,df=D.String,Tt=D.TypeError,_s=I.prototype,pf=fe.prototype,Gr=ve.prototype,gs=D["__core-js_shared__"],bs=pf.toString,xe=Gr.hasOwnProperty,mf=0,Bl=function(){var e=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),xs=Gr.toString,ff=bs.call(ve),yf=Xe._,hf=Xn("^"+bs.call(xe).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ws=Il?D.Buffer:a,mr=D.Symbol,vs=D.Uint8Array,Ul=ws?ws.allocUnsafe:a,Ts=Fl(ve.getPrototypeOf,ve),Wl=ve.create,Hl=Gr.propertyIsEnumerable,Is=_s.splice,$l=mr?mr.isConcatSpreadable:a,Da=mr?mr.iterator:a,Ir=mr?mr.toStringTag:a,ks=function(){try{var e=Cr(ve,"defineProperty");return e({},"",{}),e}catch{}}(),_f=D.clearTimeout!==Xe.clearTimeout&&D.clearTimeout,gf=W&&W.now!==Xe.Date.now&&W.now,bf=D.setTimeout!==Xe.setTimeout&&D.setTimeout,Ds=Be.ceil,As=Be.floor,Gn=ve.getOwnPropertySymbols,xf=ws?ws.isBuffer:a,Xl=D.isFinite,wf=_s.join,vf=Fl(ve.keys,ve),Ue=Be.max,Ve=Be.min,Tf=W.now,If=D.parseInt,Gl=Be.random,kf=_s.reverse,Yn=Cr(D,"DataView"),Aa=Cr(D,"Map"),Vn=Cr(D,"Promise"),Yr=Cr(D,"Set"),qa=Cr(D,"WeakMap"),Ca=Cr(ve,"create"),qs=qa&&new qa,Vr={},Df=Sr(Yn),Af=Sr(Aa),qf=Sr(Vn),Cf=Sr(Yr),Sf=Sr(qa),Cs=mr?mr.prototype:a,Sa=Cs?Cs.valueOf:a,Yl=Cs?Cs.toString:a;function u(e){if(Ne(e)&&!re(e)&&!(e instanceof ue)){if(e instanceof It)return e;if(xe.call(e,"__wrapped__"))return Vc(e)}return new It(e)}var Kr=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}u.templateSettings={escape:kn,evaluate:os,interpolate:ls,variable:"",imports:{_:u}},u.prototype=Ss.prototype,u.prototype.constructor=u,It.prototype=Kr(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 zf(){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 Nf(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Of(){var e=this.__wrapped__.value(),t=this.__dir__,r=re(e),i=t<0,c=r?e.length:0,p=$y(0,c,this.__views__),f=p.start,_=p.end,v=_-f,q=i?_:f-1,C=this.__iteratees__,N=C.length,B=0,H=Ve(v,this.__takeCount__);if(!r||!i&&c==v&&H==v)return gc(e,this.__actions__);var K=[];e:for(;v--&&B<H;){q+=t;for(var se=-1,Q=e[q];++se<N;){var oe=C[se],de=oe.iteratee,ht=oe.type,et=de(Q);if(ht==Y)Q=et;else if(!et){if(ht==Fe)continue e;break e}}K[B++]=Q}return K}ue.prototype=Kr(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 Pf(){this.__data__=Ca?Ca(null):{},this.size=0}function Ef(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Rf(e){var t=this.__data__;if(Ca){var r=t[e];return r===g?a:r}return xe.call(t,e)?t[e]:a}function Lf(e){var t=this.__data__;return Ca?t[e]!==a:xe.call(t,e)}function Mf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&t===a?g:t,this}kr.prototype.clear=Pf,kr.prototype.delete=Ef,kr.prototype.get=Rf,kr.prototype.has=Lf,kr.prototype.set=Mf;function Vt(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 Ff(){this.__data__=[],this.size=0}function jf(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 Bf(e){var t=this.__data__,r=zs(t,e);return r<0?a:t[r][1]}function Uf(e){return zs(this.__data__,e)>-1}function Wf(e,t){var r=this.__data__,i=zs(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Vt.prototype.clear=Ff,Vt.prototype.delete=jf,Vt.prototype.get=Bf,Vt.prototype.has=Uf,Vt.prototype.set=Wf;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 Hf(){this.size=0,this.__data__={hash:new kr,map:new(Aa||Vt),string:new kr}}function $f(e){var t=Ws(this,e).delete(e);return this.size-=t?1:0,t}function Xf(e){return Ws(this,e).get(e)}function Gf(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=Hf,Kt.prototype.delete=$f,Kt.prototype.get=Xf,Kt.prototype.has=Gf,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 Vf(e){return this.__data__.set(e,g),this}function Kf(e){return this.__data__.has(e)}Dr.prototype.add=Dr.prototype.push=Vf,Dr.prototype.has=Kf;function Et(e){var t=this.__data__=new Vt(e);this.size=t.size}function Qf(){this.__data__=new Vt,this.size=0}function Zf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Jf(e){return this.__data__.get(e)}function ey(e){return this.__data__.has(e)}function ty(e,t){var r=this.__data__;if(r instanceof Vt){var i=r.__data__;if(!Aa||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=Qf,Et.prototype.delete=Zf,Et.prototype.get=Jf,Et.prototype.has=ey,Et.prototype.set=ty;function Vl(e,t){var r=re(e),i=!r&&zr(e),c=!r&&!i&&gr(e),p=!r&&!i&&!c&&ea(e),f=r||i||c||p,_=f?Wn(e.length,df):[],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[ii(0,t-1)]:a}function ry(e,t){return Hs(at(e),Ar(t,0,e.length))}function ay(e){return Hs(at(e))}function Kn(e,t,r){(r!==a&&!Rt(e[t],r)||r===a&&!(t in e))&&Qt(e,t,r)}function za(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 sy(e,t,r,i){return fr(e,function(c,p,f){t(i,c,r(c),f)}),i}function Ql(e,t){return e&&Wt(t,He(t),e)}function ny(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 Qn(e,t){for(var r=-1,i=t.length,c=I(i),p=e==null;++r<i;)c[r]=p?a:zi(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&R,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=Gy(e),!_)return at(e,f)}else{var N=Ke(e),B=N==xr||N==as;if(gr(e))return wc(e,_);if(N==xt||N==Qe||B&&!c){if(f=v||B?{}:jc(e),!_)return v?Ry(e,ny(f,e)):Ey(e,Ql(f,e))}else{if(!Te[N])return c?e:{};f=Yy(e,N,_)}}p||(p=new Et);var H=p.get(e);if(H)return H;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?_i:hi:v?nt:He,se=C?a:K(e);return vt(se||e,function(Q,oe){se&&(oe=Q,Q=e[oe]),za(f,oe,kt(Q,t,r,oe,e,p))}),f}function iy(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=ve(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 Ma(function(){e.apply(a,r)},t)}function Na(e,t,r,i){var c=-1,p=fs,f=!0,_=e.length,v=[],q=t.length;if(!_)return v;r&&(t=ke(t,mt(r))),i?(p=Ln,f=!1):t.length>=l&&(p=ka,f=!1,t=new Dr(t));e:for(;++c<_;){var C=e[c],N=r==null?C:r(C);if(C=i||C!==0?C:0,f&&N===N){for(var B=q;B--;)if(t[B]===N)continue e;v.push(C)}else p(t,N,i)||v.push(C)}return v}var fr=Dc(Ut),ec=Dc(Jn,!0);function oy(e,t){var r=!0;return fr(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&&!yt(f):r(f,_)))var _=f,v=p}return v}function ly(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 fr(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=Ky),c||(c=[]);++p<f;){var _=e[p];t>0&&r(_)?t>1?Ge(_,t-1,r,i,c):dr(c,_):i||(c[c.length]=_)}return c}var Zn=Ac(),rc=Ac(!0);function Ut(e,t){return e&&Zn(e,t,He)}function Jn(e,t){return e&&rc(e,t,He)}function Os(e,t){return ur(t,function(r){return tr(e[r])})}function qr(e,t){t=hr(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:dr(i,r(e))}function Ze(e){return e==null?e===a?Tn:Rr:Ir&&Ir in ve(e)?Hy(e):ah(e)}function ei(e,t){return e>t}function cy(e,t){return e!=null&&xe.call(e,t)}function uy(e,t){return e!=null&&t in ve(e)}function dy(e,t,r){return e>=Ve(t,r)&&e<Ue(t,r)}function ti(e,t,r){for(var i=r?Ln:fs,c=e[0].length,p=e.length,f=p,_=I(p),v=1/0,q=[];f--;){var C=e[f];f&&t&&(C=ke(C,mt(t))),v=Ve(C.length,v),_[f]=!r&&(t||c>=120&&C.length>=120)?new Dr(f&&C):a}C=e[0];var N=-1,B=_[0];e:for(;++N<c&&q.length<v;){var H=C[N],K=t?t(H):H;if(H=r||H!==0?H:0,!(B?ka(B,K):i(q,K,r))){for(f=p;--f;){var se=_[f];if(!(se?ka(se,K):i(e[f],K,r)))continue e}B&&B.push(K),q.push(H)}}return q}function py(e,t,r,i){return Ut(e,function(c,p,f){t(i,r(c),p,f)}),i}function Oa(e,t,r){t=hr(t,e),e=Hc(e,t);var i=e==null?e:e[Ht(At(t))];return i==null?a:pt(i,e,r)}function sc(e){return Ne(e)&&Ze(e)==Qe}function my(e){return Ne(e)&&Ze(e)==Nt}function fy(e){return Ne(e)&&Ze(e)==Xt}function Pa(e,t,r,i,c){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:yy(e,t,r,i,Pa,c)}function yy(e,t,r,i,c,p){var f=re(e),_=re(t),v=f?or:Ke(e),q=_?or:Ke(t);v=v==Qe?xt:v,q=q==Qe?xt:q;var C=v==xt,N=q==xt,B=v==q;if(B&&gr(e)){if(!gr(t))return!1;f=!0,C=!1}if(B&&!C)return p||(p=new Et),f||ea(e)?Lc(e,t,r,i,c,p):Uy(e,t,v,r,i,c,p);if(!(r&A)){var H=C&&xe.call(e,"__wrapped__"),K=N&&xe.call(t,"__wrapped__");if(H||K){var se=H?e.value():e,Q=K?t.value():t;return p||(p=new Et),c(se,Q,r,i,p)}}return B?(p||(p=new Et),Wy(e,t,r,i,c,p)):!1}function hy(e){return Ne(e)&&Ke(e)==ut}function ri(e,t,r,i){var c=r.length,p=c,f=!i;if(e==null)return!p;for(e=ve(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 N=new Et;if(i)var B=i(q,C,v,e,t,N);if(!(B===a?Pa(C,q,A|z,i,N):B))return!1}}return!0}function nc(e){if(!Ce(e)||Zy(e))return!1;var t=tr(e)?hf:$e;return t.test(Sr(e))}function _y(e){return Ne(e)&&Ze(e)==wr}function gy(e){return Ne(e)&&Ke(e)==dt}function by(e){return Ne(e)&&Ks(e.length)&&!!Ie[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 ai(e){if(!La(e))return vf(e);var t=[];for(var r in ve(e))xe.call(e,r)&&r!="constructor"&&t.push(r);return t}function xy(e){if(!Ce(e))return rh(e);var t=La(e),r=[];for(var i in e)i=="constructor"&&(t||!xe.call(e,i))||r.push(i);return r}function si(e,t){return e<t}function oc(e,t){var r=-1,i=st(e)?I(e.length):[];return fr(e,function(c,p,f){i[++r]=t(c,p,f)}),i}function lc(e){var t=bi(e);return t.length==1&&t[0][2]?Uc(t[0][0],t[0][1]):function(r){return r===e||ri(r,e,t)}}function cc(e,t){return wi(e)&&Bc(t)?Uc(Ht(e),t):function(r){var i=zi(r,e);return i===a&&i===t?Ni(r,e):Pa(t,i,A|z)}}function Ps(e,t,r,i,c){e!==t&&Zn(t,function(p,f){if(c||(c=new Et),Ce(p))wy(e,t,f,r,Ps,i,c);else{var _=i?i(Ti(e,f),p,f+"",e,t,c):a;_===a&&(_=p),Kn(e,f,_)}},nt)}function wy(e,t,r,i,c,p,f){var _=Ti(e,r),v=Ti(t,r),q=f.get(v);if(q){Kn(e,r,q);return}var C=p?p(_,v,r+"",e,t,f):a,N=C===a;if(N){var B=re(v),H=!B&&gr(v),K=!B&&!H&&ea(v);C=v,B||H||K?re(_)?C=_:Pe(_)?C=at(_):H?(N=!1,C=wc(v,!0)):K?(N=!1,C=vc(v,!0)):C=[]:Fa(v)||zr(v)?(C=_,zr(_)?C=gu(_):(!Ce(_)||tr(_))&&(C=jc(v))):N=!1}N&&(f.set(v,C),c(C,v,i,p,f),f.delete(v)),Kn(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=ke(t,function(p){return re(p)?function(f){return qr(f,p.length===1?p[0]:p)}:p}):t=[it];var i=-1;t=ke(t,mt(V()));var c=oc(e,function(p,f,_){var v=ke(t,function(q){return q(p)});return{criteria:v,index:++i,value:p}});return Gm(c,function(p,f){return Py(p,f,r)})}function vy(e,t){return pc(e,t,function(r,i){return Ni(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)&&Ea(p,hr(f,e),_)}return p}function Ty(e){return function(t){return qr(t,e)}}function ni(e,t,r,i){var c=i?Xm:Wr,p=-1,f=t.length,_=e;for(e===t&&(t=at(t)),r&&(_=ke(e,mt(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):ci(e,c)}}return e}function ii(e,t){return e+As(Gl()*(t-e+1))}function Iy(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 oi(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 Ii(Wc(e,t,it),e+"")}function ky(e){return Kl(ta(e))}function Dy(e,t){var r=ta(e);return Hs(r,Ar(t,0,r.length))}function Ea(e,t,r,i){if(!Ce(e))return e;t=hr(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])?[]:{})}za(_,v,q),_=_[v]}return e}var fc=qs?function(e,t){return qs.set(e,t),e}:it,Ay=ks?function(e,t){return ks(e,"toString",{configurable:!0,enumerable:!1,value:Pi(t),writable:!0})}:it;function qy(e){return Hs(ta(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 Cy(e,t){var r;return fr(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&&!yt(f)&&(r?f<=t:f<t)?i=p+1:c=p}return c}return li(e,t,it,r)}function li(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=yt(t),q=t===a;c<p;){var C=As((c+p)/2),N=r(e[C]),B=N!==a,H=N===null,K=N===N,se=yt(N);if(f)var Q=i||K;else q?Q=K&&(i||B):_?Q=K&&B&&(i||!H):v?Q=K&&B&&!H&&(i||!se):H||se?Q=!1:Q=i?N<=t:N<t;Q?c=C+1:p=C}return Ve(p,we)}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:yt(e)?je:+e}function ft(e){if(typeof e=="string")return e;if(re(e))return ke(e,ft)+"";if(yt(e))return Yl?Yl.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function yr(e,t,r){var i=-1,c=fs,p=e.length,f=!0,_=[],v=_;if(r)f=!1,c=Ln;else if(p>=l){var q=t?null:jy(e);if(q)return hs(q);f=!1,c=ka,v=new Dr}else v=t?[]:_;e:for(;++i<p;){var C=e[i],N=t?t(C):C;if(C=r||C!==0?C:0,f&&N===N){for(var B=v.length;B--;)if(v[B]===N)continue e;t&&v.push(N),_.push(C)}else c(v,N,r)||(v!==_&&v.push(N),_.push(C))}return _}function ci(e,t){return t=hr(t,e),e=Hc(e,t),e==null||delete e[Ht(At(t))]}function _c(e,t,r,i){return Ea(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()),Mn(t,function(i,c){return c.func.apply(c.thisArg,dr([i],c.args))},r)}function ui(e,t,r){var i=e.length;if(i<2)return i?yr(e[0]):[];for(var c=-1,p=I(i);++c<i;)for(var f=e[c],_=-1;++_<i;)_!=c&&(p[c]=Na(p[c]||f,e[_],t,r));return yr(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 di(e){return Pe(e)?e:[]}function pi(e){return typeof e=="function"?e:it}function hr(e,t){return re(e)?e:wi(e,t)?[e]:Yc(ge(e))}var Sy=ne;function _r(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:Dt(e,t,r)}var xc=_f||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 mi(e){var t=new e.constructor(e.byteLength);return new vs(t).set(new vs(e)),t}function zy(e,t){var r=t?mi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Ny(e){var t=new e.constructor(e.source,_e.exec(e));return t.lastIndex=e.lastIndex,t}function Oy(e){return Sa?ve(Sa.call(e)):{}}function vc(e,t){var r=t?mi(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=yt(e),f=t!==a,_=t===null,v=t===t,q=yt(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 Py(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),N=!i;++_<v;)C[_]=t[_];for(;++c<f;)(N||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),N=I(C+q),B=!i;++c<C;)N[c]=e[c];for(var H=c;++v<q;)N[H+v]=t[v];for(;++f<_;)(B||c<p)&&(N[H+r[f]]=e[c++]);return N}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):za(r,_,v)}return r}function Ey(e,t){return Wt(e,xi(e),t)}function Ry(e,t){return Wt(e,Mc(e),t)}function Ls(e,t){return function(r,i){var c=re(r)?jm:sy,p=t?t():{};return c(r,e,V(i,2),p)}}function Qr(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=ve(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=ve(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=ve(t),f=i(t),_=f.length;_--;){var v=f[e?_:++c];if(r(p[v],v,p)===!1)break}return t}}function Ly(e,t,r){var i=t&$,c=Ra(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=Hr(t)?Pt(t):a,i=r?r[0]:t.charAt(0),c=r?_r(r,1).join(""):t.slice(1);return i[e]()+c}}function Zr(e){return function(t){return Mn(Du(ku(t).replace(Dm,"")),e,"")}}function Ra(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=Kr(e.prototype),i=e.apply(r,t);return Ce(i)?i:r}}function My(e,t,r){var i=Ra(e);function c(){for(var p=arguments.length,f=I(p),_=p,v=Jr(c);_--;)f[_]=arguments[_];var q=p<3&&f[0]!==v&&f[p-1]!==v?[]:pr(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 pt(C,this,f)}return c}function Cc(e){return function(t,r,i){var c=ve(t);if(!st(t)){var p=V(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"?gi(p):a;v&&vi(v[0])&&v[1]==(G|U|F|ye)&&!v[4].length&&v[9]==1?f=f[Us(v[0])].apply(f,v[3]):f=p.length==1&&vi(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 N=0,B=r?t[N].apply(this,q):C;++N<r;)B=t[N].call(this,B);return B}})}function Ms(e,t,r,i,c,p,f,_,v,q){var C=t&G,N=t&$,B=t&X,H=t&(U|S),K=t&he,se=B?a:Ra(e);function Q(){for(var oe=arguments.length,de=I(oe),ht=oe;ht--;)de[ht]=arguments[ht];if(H)var et=Jr(Q),_t=Vm(de,et);if(i&&(de=Ic(de,i,c,H)),p&&(de=kc(de,p,f,H)),oe-=_t,H&&oe<q){var Ee=pr(de,et);return Oc(e,t,Ms,Q.placeholder,r,de,Ee,_,v,q-oe)}var Lt=N?r:this,ar=B?Lt[e]:e;return oe=de.length,_?de=sh(de,_):K&&oe>1&&de.reverse(),C&&v<oe&&(de.length=v),this&&this!==Xe&&this instanceof Q&&(ar=se||Ra(ar)),ar.apply(Lt,de)}return Q}function zc(e,t){return function(r,i){return py(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=ft(r),i=ft(i)):(r=hc(r),i=hc(i)),c=e(r,i)}return c}}function fi(e){return Jt(function(t){return t=ke(t,mt(V())),ne(function(r){var i=this;return e(t,function(c){return pt(c,i,r)})})})}function js(e,t){t=t===a?" ":ft(t);var r=t.length;if(r<2)return r?oi(t,e):t;var i=oi(t,Ds(e/$r(t)));return Hr(t)?_r(Pt(i),0,e).join(""):i.slice(0,e)}function Fy(e,t,r,i){var c=t&$,p=Ra(e);function f(){for(var _=-1,v=arguments.length,q=-1,C=i.length,N=I(C+v),B=this&&this!==Xe&&this instanceof f?p:e;++q<C;)N[q]=i[q];for(;v--;)N[q++]=arguments[++_];return pt(B,c?r:this,N)}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),Iy(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&U,N=C?f:a,B=C?a:f,H=C?p:a,K=C?a:p;t|=C?F:J,t&=~(C?J:F),t&E||(t&=~($|X));var se=[e,t,c,H,N,K,B,_,v,q],Q=r.apply(a,se);return vi(e)&&$c(Q,se),Q.placeholder=i,Xc(Q,e,t)}function yi(e){var t=Be[e];return function(r,i){if(r=qt(r),i=i==null?0:Ve(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 jy=Yr&&1/hs(new Yr([,-0]))[1]==Oe?function(e){return new Yr(e)}:Li;function Pc(e){return function(t){var r=Ke(t);return r==ut?$n(t):r==dt?rf(t):Ym(t,e(t))}}function Zt(e,t,r,i,c,p,f,_){var v=t&X;if(!v&&typeof e!="function")throw new Tt(m);var q=i?i.length:0;if(q||(t&=~(F|J),i=c=a),f=f===a?f:Ue(ae(f),0),_=_===a?_:ae(_),q-=c?c.length:0,t&J){var C=i,N=c;i=c=a}var B=v?a:gi(e),H=[e,t,r,i,c,C,N,p,f,_];if(B&&th(H,B),e=H[0],t=H[1],r=H[2],i=H[3],c=H[4],_=H[9]=H[9]===a?v?0:e.length:Ue(H[9]-q,0),!_&&t&(U|S)&&(t&=~(U|S)),!t||t==$)var K=Ly(e,t,r);else t==U||t==S?K=My(e,t,_):(t==F||t==($|F))&&!c.length?K=Fy(e,t,r,i):K=Ms.apply(a,H);var se=B?fc:$c;return Xc(se(K,H),e,t)}function Ec(e,t,r,i){return e===a||Rt(e,Gr[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 By(e){return Fa(e)?a:e}function Lc(e,t,r,i,c,p){var f=r&A,_=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 N=-1,B=!0,H=r&z?new Dr:a;for(p.set(e,t),p.set(t,e);++N<_;){var K=e[N],se=t[N];if(i)var Q=f?i(se,K,N,t,e,p):i(K,se,N,e,t,p);if(Q!==a){if(Q)continue;B=!1;break}if(H){if(!Fn(t,function(oe,de){if(!ka(H,de)&&(K===oe||c(K,oe,r,i,p)))return H.push(de)})){B=!1;break}}else if(!(K===se||c(K,se,r,i,p))){B=!1;break}}return p.delete(e),p.delete(t),B}function Uy(e,t,r,i,c,p,f){switch(r){case cr: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 Er:return e.name==t.name&&e.message==t.message;case wr:case Gt:return e==t+"";case ut:var _=$n;case dt:var v=i&A;if(_||(_=hs),e.size!=t.size&&!v)return!1;var q=f.get(e);if(q)return q==t;i|=z,f.set(e,t);var C=Lc(_(e),_(t),i,c,p,f);return f.delete(e),C;case Mr:if(Sa)return Sa.call(e)==Sa.call(t)}return!1}function Wy(e,t,r,i,c,p){var f=r&A,_=hi(e),v=_.length,q=hi(t),C=q.length;if(v!=C&&!f)return!1;for(var N=v;N--;){var B=_[N];if(!(f?B in t:xe.call(t,B)))return!1}var H=p.get(e),K=p.get(t);if(H&&K)return H==t&&K==e;var se=!0;p.set(e,t),p.set(t,e);for(var Q=f;++N<v;){B=_[N];var oe=e[B],de=t[B];if(i)var ht=f?i(de,oe,B,t,e,p):i(oe,de,B,e,t,p);if(!(ht===a?oe===de||c(oe,de,r,i,p):ht)){se=!1;break}Q||(Q=B=="constructor")}if(se&&!Q){var et=e.constructor,_t=t.constructor;et!=_t&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof _t=="function"&&_t instanceof _t)&&(se=!1)}return p.delete(e),p.delete(t),se}function Jt(e){return Ii(Wc(e,a,Zc),e+"")}function hi(e){return ac(e,He,xi)}function _i(e){return ac(e,nt,Mc)}var gi=qs?function(e){return qs.get(e)}:Li;function Us(e){for(var t=e.name+"",r=Vr[t],i=xe.call(Vr,t)?r.length:0;i--;){var c=r[i],p=c.func;if(p==null||p==e)return c.name}return t}function Jr(e){var t=xe.call(u,"placeholder")?u:e;return t.placeholder}function V(){var e=u.iteratee||Ei;return e=e===Ei?ic:e,arguments.length?e(arguments[0],arguments[1]):e}function Ws(e,t){var r=e.__data__;return Qy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function bi(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=Jm(e,t);return nc(r)?r:a}function Hy(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 xi=Gn?function(e){return e==null?[]:(e=ve(e),ur(Gn(e),function(t){return Hl.call(e,t)}))}:Mi,Mc=Gn?function(e){for(var t=[];e;)dr(t,xi(e)),e=Ts(e);return t}:Mi,Ke=Ze;(Yn&&Ke(new Yn(new ArrayBuffer(1)))!=cr||Aa&&Ke(new Aa)!=ut||Vn&&Ke(Vn.resolve())!=fa||Yr&&Ke(new Yr)!=dt||qa&&Ke(new qa)!=lr)&&(Ke=function(e){var t=Ze(e),r=t==xt?e.constructor:a,i=r?Sr(r):"";if(i)switch(i){case Df:return cr;case Af:return ut;case qf:return fa;case Cf:return dt;case Sf:return lr}return t});function $y(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=Ve(t,e+f);break;case"takeRight":e=Ue(e,t-f);break}}return{start:e,end:t}}function Xy(e){var t=e.match(Cn);return t?t[1].split(y):[]}function Fc(e,t,r){t=hr(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 Gy(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"&&!La(e)?Kr(Ts(e)):{}}function Yy(e,t,r){var i=e.constructor;switch(t){case Nt:return mi(e);case jt:case Xt:return new i(+e);case cr:return zy(e,r);case Fr:case jr:case vr:case ya:case ha:case _a:case ga:case ba:case xa:return vc(e,r);case ut:return new i;case Bt:case Gt:return new i(e);case wr:return Ny(e);case dt:return new i;case Mr:return Oy(e)}}function Vy(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(qn,`{
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,R=2,L=4,A=1,z=2,$=1,X=2,O=4,U=8,S=16,F=32,J=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,ct=17976931348623157e292,je=NaN,ee=4294967295,we=ee-1,We=ee>>>1,$t=[["ary",G],["bind",$],["bindKey",X],["curry",U],["curryRight",S],["flip",he],["partial",F],["partialRight",J],["rearg",ye]],Qe="[object Arguments]",ir="[object Array]",ma="[object AsyncFunction]",jt="[object Boolean]",Xt="[object Date]",Pr="[object DOMException]",Er="[object Error]",xr="[object Function]",as="[object GeneratorFunction]",ut="[object Map]",Bt="[object Number]",Rr="[object Null]",xt="[object Object]",fa="[object Promise]",Lr="[object Proxy]",wr="[object RegExp]",dt="[object Set]",Gt="[object String]",Mr="[object Symbol]",Tn="[object Undefined]",or="[object WeakMap]",ss="[object WeakSet]",Nt="[object ArrayBuffer]",lr="[object DataView]",Fr="[object Float32Array]",jr="[object Float64Array]",vr="[object Int8Array]",ya="[object Int16Array]",ha="[object Int32Array]",_a="[object Uint8Array]",ga="[object Uint8ClampedArray]",ba="[object Uint16Array]",xa="[object Uint32Array]",In=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,ns=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Yt.source),is=RegExp(Br.source),kn=/<%-([\s\S]+?)%>/g,os=/<%([\s\S]+?)%>/g,ls=/<%=([\s\S]+?)%>/g,cs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,us=/^\w*$/,Dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,ds=RegExp(Ta.source),Ia=/^\s+/,An=/\s/,qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cn=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,P=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,j=/[()=,{}\[\]\/\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,Sn="['’]",gm="["+rt+"]",dl="["+ul+"]",ms="["+nl+"]",pl="\\d+",bm="["+il+"]",ml="["+ol+"]",fl="[^"+rt+ul+pl+il+ol+ll+"]",zn="\\ud83c[\\udffb-\\udfff]",xm="(?:"+ms+"|"+zn+")",yl="[^"+rt+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",On="[\\ud800-\\udbff][\\udc00-\\udfff]",Ur="["+ll+"]",hl="\\u200d",_l="(?:"+ml+"|"+fl+")",wm="(?:"+Ur+"|"+fl+")",gl="(?:"+Sn+"(?:d|ll|m|re|s|t|ve))?",bl="(?:"+Sn+"(?:D|LL|M|RE|S|T|VE))?",xl=xm+"?",wl="["+cl+"]?",vm="(?:"+hl+"(?:"+[yl,Nn,On].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,Nn,On].join("|")+")"+vl,Dm="(?:"+[yl+ms+"?",ms,Nn,On,gm].join("|")+")",Am=RegExp(Sn,"g"),qm=RegExp(ms,"g"),Pn=RegExp(zn+"(?="+zn+")|"+Dm+vl,"g"),Cm=RegExp([Ur+"?"+ml+"+"+gl+"(?="+[dl,Ur,"$"].join("|")+")",wm+"+"+bl+"(?="+[dl,Ur+_l,"$"].join("|")+")",Ur+"?"+_l+"+"+gl,Ur+"+"+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,Ie={};Ie[Fr]=Ie[jr]=Ie[vr]=Ie[ya]=Ie[ha]=Ie[_a]=Ie[ga]=Ie[ba]=Ie[xa]=!0,Ie[Qe]=Ie[ir]=Ie[Nt]=Ie[jt]=Ie[lr]=Ie[Xt]=Ie[Er]=Ie[xr]=Ie[ut]=Ie[Bt]=Ie[xt]=Ie[wr]=Ie[dt]=Ie[Gt]=Ie[or]=!1;var Te={};Te[Qe]=Te[ir]=Te[Nt]=Te[lr]=Te[jt]=Te[Xt]=Te[Fr]=Te[jr]=Te[vr]=Te[ya]=Te[ha]=Te[ut]=Te[Bt]=Te[xt]=Te[wr]=Te[dt]=Te[Gt]=Te[Mr]=Te[_a]=Te[ga]=Te[ba]=Te[xa]=!0,Te[Er]=Te[xr]=Te[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 ra=="object"&&ra&&ra.Object===Object&&ra,jm=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Tl||jm||Function("return this")(),En=n&&!n.nodeType&&n,Tr=En&&!0&&s&&!s.nodeType&&s,Il=Tr&&Tr.exports===En,Rn=Il&&Tl.process,wt=function(){try{var x=Tr&&Tr.require&&Tr.require("util").types;return x||Rn&&Rn.binding&&Rn.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 pt(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,W){for(var te=-1,fe=x==null?0:x.length;++te<fe;){var Be=x[te];D(W,Be,I(Be),x)}return W}function vt(x,D){for(var I=-1,W=x==null?0:x.length;++I<W&&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,W=x==null?0:x.length;++I<W;)if(!D(x[I],I,x))return!1;return!0}function cr(x,D){for(var I=-1,W=x==null?0:x.length,te=0,fe=[];++I<W;){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&&Wr(x,D,0)>-1}function Ln(x,D,I){for(var W=-1,te=x==null?0:x.length;++W<te;)if(I(D,x[W]))return!0;return!1}function ke(x,D){for(var I=-1,W=x==null?0:x.length,te=Array(W);++I<W;)te[I]=D(x[I],I,x);return te}function ur(x,D){for(var I=-1,W=D.length,te=x.length;++I<W;)x[te+I]=D[I];return x}function Mn(x,D,I,W){var te=-1,fe=x==null?0:x.length;for(W&&fe&&(I=x[++te]);++te<fe;)I=D(I,x[te],te,x);return I}function Wm(x,D,I,W){var te=x==null?0:x.length;for(W&&te&&(I=x[--te]);te--;)I=D(I,x[te],te,x);return I}function Fn(x,D){for(var I=-1,W=x==null?0:x.length;++I<W;)if(D(x[I],I,x))return!0;return!1}var Hm=jn("length");function $m(x){return x.split("")}function Xm(x){return x.match(P)||[]}function Nl(x,D,I){var W;return I(x,function(te,fe,Be){if(D(te,fe,Be))return W=fe,!1}),W}function ys(x,D,I,W){for(var te=x.length,fe=I+(W?1:-1);W?fe--:++fe<te;)if(D(x[fe],fe,x))return fe;return-1}function Wr(x,D,I){return D===D?sf(x,D,I):ys(x,Ol,I)}function Gm(x,D,I,W){for(var te=I-1,fe=x.length;++te<fe;)if(W(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?Un(x,D)/I:je}function jn(x){return function(D){return D==null?a:D[x]}}function Bn(x){return function(D){return x==null?a:x[D]}}function El(x,D,I,W,te){return te(x,function(fe,Be,ve){I=W?(W=!1,fe):D(I,fe,Be,ve)}),I}function Ym(x,D){var I=x.length;for(x.sort(D);I--;)x[I]=x[I].value;return x}function Un(x,D){for(var I,W=-1,te=x.length;++W<te;){var fe=D(x[W]);fe!==a&&(I=I===a?fe:I+fe)}return I}function Wn(x,D){for(var I=-1,W=Array(x);++I<x;)W[I]=D(I);return W}function Vm(x,D){return ke(D,function(I){return[I,x[I]]})}function Rl(x){return x&&x.slice(0,jl(x)+1).replace(Ia,"")}function mt(x){return function(D){return x(D)}}function Hn(x,D){return ke(D,function(I){return x[I]})}function ka(x,D){return x.has(D)}function Ll(x,D){for(var I=-1,W=x.length;++I<W&&Wr(D,x[I],0)>-1;);return I}function Ml(x,D){for(var I=x.length;I--&&Wr(D,x[I],0)>-1;);return I}function Km(x,D){for(var I=x.length,W=0;I--;)x[I]===D&&++W;return W}var Qm=Bn(Pm),Zm=Bn(Em);function Jm(x){return"\\"+Lm[x]}function ef(x,D){return x==null?a:x[D]}function Hr(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 $n(x){var D=-1,I=Array(x.size);return x.forEach(function(W,te){I[++D]=[te,W]}),I}function Fl(x,D){return function(I){return x(D(I))}}function dr(x,D){for(var I=-1,W=x.length,te=0,fe=[];++I<W;){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(W){I[++D]=W}),I}function af(x){var D=-1,I=Array(x.size);return x.forEach(function(W){I[++D]=[W,W]}),I}function sf(x,D,I){for(var W=I-1,te=x.length;++W<te;)if(x[W]===D)return W;return-1}function nf(x,D,I){for(var W=I+1;W--;)if(x[W]===D)return W;return W}function $r(x){return Hr(x)?lf(x):Hm(x)}function Pt(x){return Hr(x)?cf(x):$m(x)}function jl(x){for(var D=x.length;D--&&An.test(x.charAt(D)););return D}var of=Bn(Rm);function lf(x){for(var D=Pn.lastIndex=0;Pn.test(x);)++D;return D}function cf(x){return x.match(Pn)||[]}function uf(x){return x.match(Cm)||[]}var df=function x(D){D=D==null?Xe:Xr.defaults(Xe.Object(),D,Xr.pick(Xe,Nm));var I=D.Array,W=D.Date,te=D.Error,fe=D.Function,Be=D.Math,ve=D.Object,Xn=D.RegExp,pf=D.String,Tt=D.TypeError,_s=I.prototype,mf=fe.prototype,Gr=ve.prototype,gs=D["__core-js_shared__"],bs=mf.toString,xe=Gr.hasOwnProperty,ff=0,Bl=function(){var e=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),xs=Gr.toString,yf=bs.call(ve),hf=Xe._,_f=Xn("^"+bs.call(xe).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ws=Il?D.Buffer:a,pr=D.Symbol,vs=D.Uint8Array,Ul=ws?ws.allocUnsafe:a,Ts=Fl(ve.getPrototypeOf,ve),Wl=ve.create,Hl=Gr.propertyIsEnumerable,Is=_s.splice,$l=pr?pr.isConcatSpreadable:a,Da=pr?pr.iterator:a,Ir=pr?pr.toStringTag:a,ks=function(){try{var e=Cr(ve,"defineProperty");return e({},"",{}),e}catch{}}(),gf=D.clearTimeout!==Xe.clearTimeout&&D.clearTimeout,bf=W&&W.now!==Xe.Date.now&&W.now,xf=D.setTimeout!==Xe.setTimeout&&D.setTimeout,Ds=Be.ceil,As=Be.floor,Gn=ve.getOwnPropertySymbols,wf=ws?ws.isBuffer:a,Xl=D.isFinite,vf=_s.join,Tf=Fl(ve.keys,ve),Ue=Be.max,Ve=Be.min,If=W.now,kf=D.parseInt,Gl=Be.random,Df=_s.reverse,Yn=Cr(D,"DataView"),Aa=Cr(D,"Map"),Vn=Cr(D,"Promise"),Yr=Cr(D,"Set"),qa=Cr(D,"WeakMap"),Ca=Cr(ve,"create"),qs=qa&&new qa,Vr={},Af=Sr(Yn),qf=Sr(Aa),Cf=Sr(Vn),Sf=Sr(Yr),zf=Sr(qa),Cs=pr?pr.prototype:a,Sa=Cs?Cs.valueOf:a,Yl=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 Vc(e)}return new It(e)}var Kr=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:kn,evaluate:os,interpolate:ls,variable:"",imports:{_:d}},d.prototype=Ss.prototype,d.prototype.constructor=d,It.prototype=Kr(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__,N=C.length,B=0,H=Ve(v,this.__takeCount__);if(!r||!i&&c==v&&H==v)return gc(e,this.__actions__);var K=[];e:for(;v--&&B<H;){q+=t;for(var se=-1,Q=e[q];++se<N;){var oe=C[se],de=oe.iteratee,ht=oe.type,et=de(Q);if(ht==Y)Q=et;else if(!et){if(ht==Fe)continue e;break e}}K[B++]=Q}return K}ue.prototype=Kr(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__=Ca?Ca(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(Ca){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 Ca?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]=Ca&&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 Vt(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}Vt.prototype.clear=jf,Vt.prototype.delete=Bf,Vt.prototype.get=Uf,Vt.prototype.has=Wf,Vt.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(Aa||Vt),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 Yf(e){return Ws(this,e).has(e)}function Vf(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=Yf,Kt.prototype.set=Vf;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 Vt(e);this.size=t.size}function Zf(){this.__data__=new Vt,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 Vt){var i=r.__data__;if(!Aa||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 Vl(e,t){var r=re(e),i=!r&&zr(e),c=!r&&!i&&_r(e),p=!r&&!i&&!c&&ea(e),f=r||i||c||p,_=f?Wn(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[ii(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 Kn(e,t,r){(r!==a&&!Rt(e[t],r)||r===a&&!(t in e))&&Qt(e,t,r)}function za(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 Qn(e,t){for(var r=-1,i=t.length,c=I(i),p=e==null;++r<i;)c[r]=p?a:zi(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&R,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=Yy(e),!_)return at(e,f)}else{var N=Ke(e),B=N==xr||N==as;if(_r(e))return wc(e,_);if(N==xt||N==Qe||B&&!c){if(f=v||B?{}:jc(e),!_)return v?Ly(e,iy(f,e)):Ry(e,Ql(f,e))}else{if(!Te[N])return c?e:{};f=Vy(e,N,_)}}p||(p=new Et);var H=p.get(e);if(H)return H;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?_i:hi:v?nt:He,se=C?a:K(e);return vt(se||e,function(Q,oe){se&&(oe=Q,Q=e[oe]),za(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=ve(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 Ma(function(){e.apply(a,r)},t)}function Na(e,t,r,i){var c=-1,p=fs,f=!0,_=e.length,v=[],q=t.length;if(!_)return v;r&&(t=ke(t,mt(r))),i?(p=Ln,f=!1):t.length>=l&&(p=ka,f=!1,t=new Dr(t));e:for(;++c<_;){var C=e[c],N=r==null?C:r(C);if(C=i||C!==0?C:0,f&&N===N){for(var B=q;B--;)if(t[B]===N)continue e;v.push(C)}else p(t,N,i)||v.push(C)}return v}var mr=Dc(Ut),ec=Dc(Jn,!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&&!yt(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 Zn=Ac(),rc=Ac(!0);function Ut(e,t){return e&&Zn(e,t,He)}function Jn(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?Tn:Rr:Ir&&Ir in ve(e)?$y(e):sh(e)}function ei(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 ve(e)}function py(e,t,r){return e>=Ve(t,r)&&e<Ue(t,r)}function ti(e,t,r){for(var i=r?Ln:fs,c=e[0].length,p=e.length,f=p,_=I(p),v=1/0,q=[];f--;){var C=e[f];f&&t&&(C=ke(C,mt(t))),v=Ve(C.length,v),_[f]=!r&&(t||c>=120&&C.length>=120)?new Dr(f&&C):a}C=e[0];var N=-1,B=_[0];e:for(;++N<c&&q.length<v;){var H=C[N],K=t?t(H):H;if(H=r||H!==0?H:0,!(B?ka(B,K):i(q,K,r))){for(f=p;--f;){var se=_[f];if(!(se?ka(se,K):i(e[f],K,r)))continue e}B&&B.push(K),q.push(H)}}return q}function my(e,t,r,i){return Ut(e,function(c,p,f){t(i,r(c),p,f)}),i}function Oa(e,t,r){t=yr(t,e),e=Hc(e,t);var i=e==null?e:e[Ht(At(t))];return i==null?a:pt(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 Pa(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,Pa,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,N=q==xt,B=v==q;if(B&&_r(e)){if(!_r(t))return!1;f=!0,C=!1}if(B&&!C)return p||(p=new Et),f||ea(e)?Lc(e,t,r,i,c,p):Wy(e,t,v,r,i,c,p);if(!(r&A)){var H=C&&xe.call(e,"__wrapped__"),K=N&&xe.call(t,"__wrapped__");if(H||K){var se=H?e.value():e,Q=K?t.value():t;return p||(p=new Et),c(se,Q,r,i,p)}}return B?(p||(p=new Et),Hy(e,t,r,i,c,p)):!1}function _y(e){return Ne(e)&&Ke(e)==ut}function ri(e,t,r,i){var c=r.length,p=c,f=!i;if(e==null)return!p;for(e=ve(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 N=new Et;if(i)var B=i(q,C,v,e,t,N);if(!(B===a?Pa(C,q,A|z,i,N):B))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)==dt}function xy(e){return Ne(e)&&Ks(e.length)&&!!Ie[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 ai(e){if(!La(e))return Tf(e);var t=[];for(var r in ve(e))xe.call(e,r)&&r!="constructor"&&t.push(r);return t}function wy(e){if(!Ce(e))return ah(e);var t=La(e),r=[];for(var i in e)i=="constructor"&&(t||!xe.call(e,i))||r.push(i);return r}function si(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=bi(e);return t.length==1&&t[0][2]?Uc(t[0][0],t[0][1]):function(r){return r===e||ri(r,e,t)}}function cc(e,t){return wi(e)&&Bc(t)?Uc(Ht(e),t):function(r){var i=zi(r,e);return i===a&&i===t?Ni(r,e):Pa(t,i,A|z)}}function Ps(e,t,r,i,c){e!==t&&Zn(t,function(p,f){if(c||(c=new Et),Ce(p))vy(e,t,f,r,Ps,i,c);else{var _=i?i(Ti(e,f),p,f+"",e,t,c):a;_===a&&(_=p),Kn(e,f,_)}},nt)}function vy(e,t,r,i,c,p,f){var _=Ti(e,r),v=Ti(t,r),q=f.get(v);if(q){Kn(e,r,q);return}var C=p?p(_,v,r+"",e,t,f):a,N=C===a;if(N){var B=re(v),H=!B&&_r(v),K=!B&&!H&&ea(v);C=v,B||H||K?re(_)?C=_:Pe(_)?C=at(_):H?(N=!1,C=wc(v,!0)):K?(N=!1,C=vc(v,!0)):C=[]:Fa(v)||zr(v)?(C=_,zr(_)?C=gu(_):(!Ce(_)||tr(_))&&(C=jc(v))):N=!1}N&&(f.set(v,C),c(C,v,i,p,f),f.delete(v)),Kn(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=ke(t,function(p){return re(p)?function(f){return qr(f,p.length===1?p[0]:p)}:p}):t=[it];var i=-1;t=ke(t,mt(V()));var c=oc(e,function(p,f,_){var v=ke(t,function(q){return q(p)});return{criteria:v,index:++i,value:p}});return Ym(c,function(p,f){return Ey(p,f,r)})}function Ty(e,t){return pc(e,t,function(r,i){return Ni(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)&&Ea(p,yr(f,e),_)}return p}function Iy(e){return function(t){return qr(t,e)}}function ni(e,t,r,i){var c=i?Gm:Wr,p=-1,f=t.length,_=e;for(e===t&&(t=at(t)),r&&(_=ke(e,mt(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):ci(e,c)}}return e}function ii(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 oi(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 Ii(Wc(e,t,it),e+"")}function Dy(e){return Kl(ta(e))}function Ay(e,t){var r=ta(e);return Hs(r,Ar(t,0,r.length))}function Ea(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])?[]:{})}za(_,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:Pi(t),writable:!0})}:it;function Cy(e){return Hs(ta(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&&!yt(f)&&(r?f<=t:f<t)?i=p+1:c=p}return c}return li(e,t,it,r)}function li(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=yt(t),q=t===a;c<p;){var C=As((c+p)/2),N=r(e[C]),B=N!==a,H=N===null,K=N===N,se=yt(N);if(f)var Q=i||K;else q?Q=K&&(i||B):_?Q=K&&B&&(i||!H):v?Q=K&&B&&!H&&(i||!se):H||se?Q=!1:Q=i?N<=t:N<t;Q?c=C+1:p=C}return Ve(p,we)}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:yt(e)?je:+e}function ft(e){if(typeof e=="string")return e;if(re(e))return ke(e,ft)+"";if(yt(e))return Yl?Yl.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=Ln;else if(p>=l){var q=t?null:By(e);if(q)return hs(q);f=!1,c=ka,v=new Dr}else v=t?[]:_;e:for(;++i<p;){var C=e[i],N=t?t(C):C;if(C=r||C!==0?C:0,f&&N===N){for(var B=v.length;B--;)if(v[B]===N)continue e;t&&v.push(N),_.push(C)}else c(v,N,r)||(v!==_&&v.push(N),_.push(C))}return _}function ci(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 Ea(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()),Mn(t,function(i,c){return c.func.apply(c.thisArg,ur([i],c.args))},r)}function ui(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]=Na(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 di(e){return Pe(e)?e:[]}function pi(e){return typeof e=="function"?e:it}function yr(e,t){return re(e)?e:wi(e,t)?[e]:Yc(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 mi(e){var t=new e.constructor(e.byteLength);return new vs(t).set(new vs(e)),t}function Ny(e,t){var r=t?mi(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 Sa?ve(Sa.call(e)):{}}function vc(e,t){var r=t?mi(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=yt(e),f=t!==a,_=t===null,v=t===t,q=yt(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),N=!i;++_<v;)C[_]=t[_];for(;++c<f;)(N||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),N=I(C+q),B=!i;++c<C;)N[c]=e[c];for(var H=c;++v<q;)N[H+v]=t[v];for(;++f<_;)(B||c<p)&&(N[H+r[f]]=e[c++]);return N}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):za(r,_,v)}return r}function Ry(e,t){return Wt(e,xi(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,V(i,2),p)}}function Qr(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=ve(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=ve(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=ve(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&$,c=Ra(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=Hr(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 Zr(e){return function(t){return Mn(Du(ku(t).replace(Am,"")),e,"")}}function Ra(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=Kr(e.prototype),i=e.apply(r,t);return Ce(i)?i:r}}function Fy(e,t,r){var i=Ra(e);function c(){for(var p=arguments.length,f=I(p),_=p,v=Jr(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 pt(C,this,f)}return c}function Cc(e){return function(t,r,i){var c=ve(t);if(!st(t)){var p=V(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"?gi(p):a;v&&vi(v[0])&&v[1]==(G|U|F|ye)&&!v[4].length&&v[9]==1?f=f[Us(v[0])].apply(f,v[3]):f=p.length==1&&vi(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 N=0,B=r?t[N].apply(this,q):C;++N<r;)B=t[N].call(this,B);return B}})}function Ms(e,t,r,i,c,p,f,_,v,q){var C=t&G,N=t&$,B=t&X,H=t&(U|S),K=t&he,se=B?a:Ra(e);function Q(){for(var oe=arguments.length,de=I(oe),ht=oe;ht--;)de[ht]=arguments[ht];if(H)var et=Jr(Q),_t=Km(de,et);if(i&&(de=Ic(de,i,c,H)),p&&(de=kc(de,p,f,H)),oe-=_t,H&&oe<q){var Ee=dr(de,et);return Oc(e,t,Ms,Q.placeholder,r,de,Ee,_,v,q-oe)}var Lt=N?r:this,ar=B?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||Ra(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=ft(r),i=ft(i)):(r=hc(r),i=hc(i)),c=e(r,i)}return c}}function fi(e){return Jt(function(t){return t=ke(t,mt(V())),ne(function(r){var i=this;return e(t,function(c){return pt(c,i,r)})})})}function js(e,t){t=t===a?" ":ft(t);var r=t.length;if(r<2)return r?oi(t,e):t;var i=oi(t,Ds(e/$r(t)));return Hr(t)?hr(Pt(i),0,e).join(""):i.slice(0,e)}function jy(e,t,r,i){var c=t&$,p=Ra(e);function f(){for(var _=-1,v=arguments.length,q=-1,C=i.length,N=I(C+v),B=this&&this!==Xe&&this instanceof f?p:e;++q<C;)N[q]=i[q];for(;v--;)N[q++]=arguments[++_];return pt(B,c?r:this,N)}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&U,N=C?f:a,B=C?a:f,H=C?p:a,K=C?a:p;t|=C?F:J,t&=~(C?J:F),t&O||(t&=~($|X));var se=[e,t,c,H,N,K,B,_,v,q],Q=r.apply(a,se);return vi(e)&&$c(Q,se),Q.placeholder=i,Xc(Q,e,t)}function yi(e){var t=Be[e];return function(r,i){if(r=qt(r),i=i==null?0:Ve(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)}:Li;function Pc(e){return function(t){var r=Ke(t);return r==ut?$n(t):r==dt?af(t):Vm(t,e(t))}}function Zt(e,t,r,i,c,p,f,_){var v=t&X;if(!v&&typeof e!="function")throw new Tt(m);var q=i?i.length:0;if(q||(t&=~(F|J),i=c=a),f=f===a?f:Ue(ae(f),0),_=_===a?_:ae(_),q-=c?c.length:0,t&J){var C=i,N=c;i=c=a}var B=v?a:gi(e),H=[e,t,r,i,c,C,N,p,f,_];if(B&&rh(H,B),e=H[0],t=H[1],r=H[2],i=H[3],c=H[4],_=H[9]=H[9]===a?v?0:e.length:Ue(H[9]-q,0),!_&&t&(U|S)&&(t&=~(U|S)),!t||t==$)var K=My(e,t,r);else t==U||t==S?K=Fy(e,t,_):(t==F||t==($|F))&&!c.length?K=jy(e,t,r,i):K=Ms.apply(a,H);var se=B?fc:$c;return Xc(se(K,H),e,t)}function Ec(e,t,r,i){return e===a||Rt(e,Gr[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 Fa(e)?a:e}function Lc(e,t,r,i,c,p){var f=r&A,_=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 N=-1,B=!0,H=r&z?new Dr:a;for(p.set(e,t),p.set(t,e);++N<_;){var K=e[N],se=t[N];if(i)var Q=f?i(se,K,N,t,e,p):i(K,se,N,e,t,p);if(Q!==a){if(Q)continue;B=!1;break}if(H){if(!Fn(t,function(oe,de){if(!ka(H,de)&&(K===oe||c(K,oe,r,i,p)))return H.push(de)})){B=!1;break}}else if(!(K===se||c(K,se,r,i,p))){B=!1;break}}return p.delete(e),p.delete(t),B}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 Er:return e.name==t.name&&e.message==t.message;case wr:case Gt:return e==t+"";case ut:var _=$n;case dt:var v=i&A;if(_||(_=hs),e.size!=t.size&&!v)return!1;var q=f.get(e);if(q)return q==t;i|=z,f.set(e,t);var C=Lc(_(e),_(t),i,c,p,f);return f.delete(e),C;case Mr:if(Sa)return Sa.call(e)==Sa.call(t)}return!1}function Hy(e,t,r,i,c,p){var f=r&A,_=hi(e),v=_.length,q=hi(t),C=q.length;if(v!=C&&!f)return!1;for(var N=v;N--;){var B=_[N];if(!(f?B in t:xe.call(t,B)))return!1}var H=p.get(e),K=p.get(t);if(H&&K)return H==t&&K==e;var se=!0;p.set(e,t),p.set(t,e);for(var Q=f;++N<v;){B=_[N];var oe=e[B],de=t[B];if(i)var ht=f?i(de,oe,B,t,e,p):i(oe,de,B,e,t,p);if(!(ht===a?oe===de||c(oe,de,r,i,p):ht)){se=!1;break}Q||(Q=B=="constructor")}if(se&&!Q){var et=e.constructor,_t=t.constructor;et!=_t&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof _t=="function"&&_t instanceof _t)&&(se=!1)}return p.delete(e),p.delete(t),se}function Jt(e){return Ii(Wc(e,a,Zc),e+"")}function hi(e){return ac(e,He,xi)}function _i(e){return ac(e,nt,Mc)}var gi=qs?function(e){return qs.get(e)}:Li;function Us(e){for(var t=e.name+"",r=Vr[t],i=xe.call(Vr,t)?r.length:0;i--;){var c=r[i],p=c.func;if(p==null||p==e)return c.name}return t}function Jr(e){var t=xe.call(d,"placeholder")?d:e;return t.placeholder}function V(){var e=d.iteratee||Ei;return e=e===Ei?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 bi(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 xi=Gn?function(e){return e==null?[]:(e=ve(e),cr(Gn(e),function(t){return Hl.call(e,t)}))}:Mi,Mc=Gn?function(e){for(var t=[];e;)ur(t,xi(e)),e=Ts(e);return t}:Mi,Ke=Ze;(Yn&&Ke(new Yn(new ArrayBuffer(1)))!=lr||Aa&&Ke(new Aa)!=ut||Vn&&Ke(Vn.resolve())!=fa||Yr&&Ke(new Yr)!=dt||qa&&Ke(new qa)!=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 ut;case Cf:return fa;case Sf:return dt;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=Ve(t,e+f);break;case"takeRight":e=Ue(e,t-f);break}}return{start:e,end:t}}function Gy(e){var t=e.match(Cn);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 Yy(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"&&!La(e)?Kr(Ts(e)):{}}function Vy(e,t,r){var i=e.constructor;switch(t){case Nt:return mi(e);case jt:case Xt:return new i(+e);case lr:return Ny(e,r);case Fr:case jr:case vr:case ya:case ha:case _a:case ga:case ba:case xa:return vc(e,r);case ut:return new i;case Bt:case Gt:return new i(e);case wr:return Oy(e);case dt:return new i;case Mr: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(qn,`{
113
113
  /* [wrapped with `+t+`] */
114
- `)}function Ky(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 wi(e,t){if(re(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yt(e)?!0:us.test(e)||!cs.test(e)||t!=null&&e in ve(t)}function Qy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vi(e){var t=Us(e),r=u[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var i=gi(r);return!!i&&e===i[0]}function Zy(e){return!!Bl&&Bl in e}var Jy=gs?tr:Fi;function La(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gr;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 ve(r))}}function eh(e){var t=Ys(e,function(i){return r.size===b&&r.clear(),i}),r=t.cache;return t}function th(e,t){var r=e[1],i=t[1],c=r|i,p=c<($|X|G),f=i==G&&r==U||i==G&&r==ye&&e[7].length<=t[8]||i==(G|ye)&&t[7].length<=t[8]&&r==U;if(!(p||f))return e;i&$&&(e[2]=t[2],c|=r&$?0:E);var _=t[3];if(_){var v=e[3];e[3]=v?Ic(v,_,t[4]):_,e[4]=v?pr(e[3],w):t[4]}return _=t[5],_&&(v=e[5],e[5]=v?kc(v,_,t[6]):_,e[6]=v?pr(e[5],w):t[6]),_=t[7],_&&(e[7]=_),i&G&&(e[8]=e[8]==null?t[8]:Ve(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function rh(e){var t=[];if(e!=null)for(var r in ve(e))t.push(r);return t}function ah(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),pt(e,this,_)}}function Hc(e,t){return t.length<2?e:qr(e,Dt(t,0,-1))}function sh(e,t){for(var r=e.length,i=Ve(t.length,r),c=at(e);i--;){var p=t[i];e[i]=er(p,r)?c[p]:a}return e}function Ti(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var $c=Gc(fc),Ma=bf||function(e,t){return Xe.setTimeout(e,t)},Ii=Gc(Ay);function Xc(e,t,r){var i=t+"";return Ii(e,Vy(i,nh(Xy(i),r)))}function Gc(e){var t=0,r=0;return function(){var i=Tf(),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=ii(r,c),f=e[p];e[p]=e[r],e[r]=f}return e.length=t,e}var Yc=eh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Dn,function(r,i,c,p){t.push(c?p.replace(Z,"$1"):i||r)}),t});function Ht(e){if(typeof e=="string"||yt(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 nh(e,t){return vt($t,function(r){var i="_."+r[0];t&r[1]&&!fs(e,i)&&e.push(i)}),e.sort()}function Vc(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 ih(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 oh(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 lh(){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 dr(re(r)?at(r):[r],Ge(t,1))}var ch=ne(function(e,t){return Pe(e)?Na(e,Ge(t,1,Pe,!0)):[]}),uh=ne(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),V(r,2)):[]}),dh=ne(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),a,r):[]});function ph(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 mh(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 fh(e,t){return e&&e.length?Rs(e,V(t,3),!0,!0):[]}function yh(e,t){return e&&e.length?Rs(e,V(t,3),!0):[]}function hh(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),ly(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,V(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):Ve(c,i-1)),ys(e,V(t,3),c,!0)}function Zc(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function _h(e){var t=e==null?0:e.length;return t?Ge(e,Oe):[]}function gh(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:ae(t),Ge(e,t)):[]}function bh(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 xh(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)),Wr(e,t,c)}function wh(e){var t=e==null?0:e.length;return t?Dt(e,0,-1):[]}var vh=ne(function(e){var t=ke(e,di);return t.length&&t[0]===e[0]?ti(t):[]}),Th=ne(function(e){var t=At(e),r=ke(e,di);return t===At(r)?t=a:r.pop(),r.length&&r[0]===e[0]?ti(r,V(t,2)):[]}),Ih=ne(function(e){var t=At(e),r=ke(e,di);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?ti(r,a,t):[]});function kh(e,t){return e==null?"":wf.call(e,t)}function At(e){var t=e==null?0:e.length;return t?e[t-1]:a}function Dh(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):Ve(c,i-1)),t===t?sf(e,t,c):ys(e,Ol,c,!0)}function Ah(e,t){return e&&e.length?uc(e,ae(t)):a}var qh=ne(eu);function eu(e,t){return e&&e.length&&t&&t.length?ni(e,t):e}function Ch(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,V(r,2)):e}function Sh(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,a,r):e}var zh=Jt(function(e,t){var r=e==null?0:e.length,i=Qn(e,t);return mc(e,ke(t,function(c){return er(c,r)?+c:c}).sort(Tc)),i});function Nh(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,c=[],p=e.length;for(t=V(t,3);++i<p;){var f=e[i];t(f,i,e)&&(r.push(f),c.push(i))}return mc(e,c),r}function ki(e){return e==null?e:kf.call(e)}function Oh(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 Ph(e,t){return Es(e,t)}function Eh(e,t,r){return li(e,t,V(r,2))}function Rh(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 Lh(e,t){return Es(e,t,!0)}function Mh(e,t,r){return li(e,t,V(r,2),!0)}function Fh(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 jh(e){return e&&e.length?yc(e):[]}function Bh(e,t){return e&&e.length?yc(e,V(t,2)):[]}function Uh(e){var t=e==null?0:e.length;return t?Dt(e,1,t):[]}function Wh(e,t,r){return e&&e.length?(t=r||t===a?1:ae(t),Dt(e,0,t<0?0:t)):[]}function Hh(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 $h(e,t){return e&&e.length?Rs(e,V(t,3),!1,!0):[]}function Xh(e,t){return e&&e.length?Rs(e,V(t,3)):[]}var Gh=ne(function(e){return yr(Ge(e,1,Pe,!0))}),Yh=ne(function(e){var t=At(e);return Pe(t)&&(t=a),yr(Ge(e,1,Pe,!0),V(t,2))}),Vh=ne(function(e){var t=At(e);return t=typeof t=="function"?t:a,yr(Ge(e,1,Pe,!0),a,t)});function Kh(e){return e&&e.length?yr(e):[]}function Qh(e,t){return e&&e.length?yr(e,V(t,2)):[]}function Zh(e,t){return t=typeof t=="function"?t:a,e&&e.length?yr(e,a,t):[]}function Di(e){if(!(e&&e.length))return[];var t=0;return e=ur(e,function(r){if(Pe(r))return t=Ue(r.length,t),!0}),Wn(t,function(r){return ke(e,jn(r))})}function tu(e,t){if(!(e&&e.length))return[];var r=Di(e);return t==null?r:ke(r,function(i){return pt(t,a,i)})}var Jh=ne(function(e,t){return Pe(e)?Na(e,t):[]}),e_=ne(function(e){return ui(ur(e,Pe))}),t_=ne(function(e){var t=At(e);return Pe(t)&&(t=a),ui(ur(e,Pe),V(t,2))}),r_=ne(function(e){var t=At(e);return t=typeof t=="function"?t:a,ui(ur(e,Pe),a,t)}),a_=ne(Di);function s_(e,t){return bc(e||[],t||[],za)}function n_(e,t){return bc(e||[],t||[],Ea)}var i_=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=u(e);return t.__chain__=!0,t}function o_(e,t){return t(e),e}function $s(e,t){return t(e)}var l_=Jt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,c=function(p){return Qn(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 c_(){return ru(this)}function u_(){return new It(this.value(),this.__chain__)}function d_(){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 p_(){return this}function m_(e){for(var t,r=this;r instanceof Ss;){var i=Vc(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 f_(){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:[ki],thisArg:a}),new It(t,this.__chain__)}return this.thru(ki)}function y_(){return gc(this.__wrapped__,this.__actions__)}var h_=Ls(function(e,t,r){xe.call(e,r)?++e[r]:Qt(e,r,1)});function __(e,t,r){var i=re(e)?zl:oy;return r&&Je(e,t,r)&&(t=a),i(e,V(t,3))}function g_(e,t){var r=re(e)?ur:tc;return r(e,V(t,3))}var b_=Cc(Kc),x_=Cc(Qc);function w_(e,t){return Ge(Xs(e,t),1)}function v_(e,t){return Ge(Xs(e,t),Oe)}function T_(e,t,r){return r=r===a?1:ae(r),Ge(Xs(e,t),r)}function au(e,t){var r=re(e)?vt:fr;return r(e,V(t,3))}function su(e,t){var r=re(e)?Bm:ec;return r(e,V(t,3))}var I_=Ls(function(e,t,r){xe.call(e,r)?e[r].push(t):Qt(e,r,[t])});function k_(e,t,r,i){e=st(e)?e:ta(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&&Wr(e,t,r)>-1}var D_=ne(function(e,t,r){var i=-1,c=typeof t=="function",p=st(e)?I(e.length):[];return fr(e,function(f){p[++i]=c?pt(t,f,r):Oa(f,t,r)}),p}),A_=Ls(function(e,t,r){Qt(e,r,t)});function Xs(e,t){var r=re(e)?ke:oc;return r(e,V(t,3))}function q_(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 C_=Ls(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function S_(e,t,r){var i=re(e)?Mn:El,c=arguments.length<3;return i(e,V(t,4),r,c,fr)}function z_(e,t,r){var i=re(e)?Um:El,c=arguments.length<3;return i(e,V(t,4),r,c,ec)}function N_(e,t){var r=re(e)?ur:tc;return r(e,Vs(V(t,3)))}function O_(e){var t=re(e)?Kl:ky;return t(e)}function P_(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=ae(t);var i=re(e)?ry:Dy;return i(e,t)}function E_(e){var t=re(e)?ay:qy;return t(e)}function R_(e){if(e==null)return 0;if(st(e))return Qs(e)?$r(e):e.length;var t=Ke(e);return t==ut||t==dt?e.size:ai(e).length}function L_(e,t,r){var i=re(e)?Fn:Cy;return r&&Je(e,t,r)&&(t=a),i(e,V(t,3))}var M_=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=gf||function(){return Xe.Date.now()};function F_(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 Ai=ne(function(e,t,r){var i=$;if(r.length){var c=pr(r,Jr(Ai));i|=F}return Zt(e,i,t,r,c)}),ou=ne(function(e,t,r){var i=$|X;if(r.length){var c=pr(r,Jr(ou));i|=F}return Zt(t,i,e,r,c)});function lu(e,t,r){t=r?a:t;var i=Zt(e,U,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,S,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,N=!1,B=!0;if(typeof e!="function")throw new Tt(m);t=qt(t)||0,Ce(r)&&(C=!!r.leading,N="maxWait"in r,p=N?Ue(qt(r.maxWait)||0,t):p,B="trailing"in r?!!r.trailing:B);function H(Ee){var Lt=i,ar=c;return i=c=a,q=Ee,f=e.apply(ar,Lt),f}function K(Ee){return q=Ee,_=Ma(oe,t),C?H(Ee):f}function se(Ee){var Lt=Ee-v,ar=Ee-q,Cu=t-Lt;return N?Ve(Cu,p-ar):Cu}function Q(Ee){var Lt=Ee-v,ar=Ee-q;return v===a||Lt>=t||Lt<0||N&&ar>=p}function oe(){var Ee=Gs();if(Q(Ee))return de(Ee);_=Ma(oe,se(Ee))}function de(Ee){return _=a,B&&i?H(Ee):(i=c=a,f)}function ht(){_!==a&&xc(_),q=0,i=v=c=_=a}function et(){return _===a?f:de(Gs())}function _t(){var Ee=Gs(),Lt=Q(Ee);if(i=arguments,c=this,v=Ee,Lt){if(_===a)return K(v);if(N)return xc(_),_=Ma(oe,t),H(v)}return _===a&&(_=Ma(oe,t)),f}return _t.cancel=ht,_t.flush=et,_t}var j_=ne(function(e,t){return Jl(e,1,t)}),B_=ne(function(e,t,r){return Jl(e,qt(t)||0,r)});function U_(e){return Zt(e,he)}function Ys(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(Ys.Cache||Kt),r}Ys.Cache=Kt;function Vs(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 W_(e){return iu(2,e)}var H_=Sy(function(e,t){t=t.length==1&&re(t[0])?ke(t[0],mt(V())):ke(Ge(t,1),mt(V()));var r=t.length;return ne(function(i){for(var c=-1,p=Ve(i.length,r);++c<p;)i[c]=t[c].call(this,i[c]);return pt(e,this,i)})}),qi=ne(function(e,t){var r=pr(t,Jr(qi));return Zt(e,F,a,t,r)}),du=ne(function(e,t){var r=pr(t,Jr(du));return Zt(e,J,a,t,r)}),$_=Jt(function(e,t){return Zt(e,ye,a,a,a,t)});function X_(e,t){if(typeof e!="function")throw new Tt(m);return t=t===a?t:ae(t),ne(e,t)}function G_(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=_r(r,0,t);return i&&dr(c,i),pt(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 V_(e){return nu(e,1)}function K_(e,t){return qi(pi(t),e)}function Q_(){if(!arguments.length)return[];var e=arguments[0];return re(e)?e:[e]}function Z_(e){return kt(e,L)}function J_(e,t){return t=typeof t=="function"?t:a,kt(e,L,t)}function eg(e){return kt(e,T|L)}function tg(e,t){return t=typeof t=="function"?t:a,kt(e,T|L,t)}function rg(e,t){return t==null||Zl(e,t,He(t))}function Rt(e,t){return e===t||e!==e&&t!==t}var ag=Bs(ei),sg=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,ng=kl?mt(kl):my;function st(e){return e!=null&&Ks(e.length)&&!tr(e)}function Pe(e){return Ne(e)&&st(e)}function ig(e){return e===!0||e===!1||Ne(e)&&Ze(e)==jt}var gr=xf||Fi,og=Dl?mt(Dl):fy;function lg(e){return Ne(e)&&e.nodeType===1&&!Fa(e)}function cg(e){if(e==null)return!0;if(st(e)&&(re(e)||typeof e=="string"||typeof e.splice=="function"||gr(e)||ea(e)||zr(e)))return!e.length;var t=Ke(e);if(t==ut||t==dt)return!e.size;if(La(e))return!ai(e).length;for(var r in e)if(xe.call(e,r))return!1;return!0}function ug(e,t){return Pa(e,t)}function dg(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Pa(e,t,a,r):!!i}function Ci(e){if(!Ne(e))return!1;var t=Ze(e);return t==Er||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!Fa(e)}function pg(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==ma||t==Lr}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?mt(Al):hy;function mg(e,t){return e===t||ri(e,t,bi(t))}function fg(e,t,r){return r=typeof r=="function"?r:a,ri(e,t,bi(t),r)}function yg(e){return fu(e)&&e!=+e}function hg(e){if(Jy(e))throw new te(d);return nc(e)}function _g(e){return e===null}function gg(e){return e==null}function fu(e){return typeof e=="number"||Ne(e)&&Ze(e)==Bt}function Fa(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)==ff}var Si=ql?mt(ql):_y;function bg(e){return pu(e)&&e>=-Le&&e<=Le}var yu=Cl?mt(Cl):gy;function Qs(e){return typeof e=="string"||!re(e)&&Ne(e)&&Ze(e)==Gt}function yt(e){return typeof e=="symbol"||Ne(e)&&Ze(e)==Mr}var ea=Sl?mt(Sl):by;function xg(e){return e===a}function wg(e){return Ne(e)&&Ke(e)==lr}function vg(e){return Ne(e)&&Ze(e)==ss}var Tg=Bs(si),Ig=Bs(function(e,t){return e<=t});function hu(e){if(!e)return[];if(st(e))return Qs(e)?Pt(e):at(e);if(Da&&e[Da])return tf(e[Da]());var t=Ke(e),r=t==ut?$n:t==dt?hs:ta;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*ct}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(yt(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)?Mm(e.slice(2),r?2:8):ce.test(e)?je:+e}function gu(e){return Wt(e,nt(e))}function kg(e){return e?Ar(ae(e),-Le,Le):e===0?e:0}function ge(e){return e==null?"":ft(e)}var Dg=Qr(function(e,t){if(La(t)||st(t)){Wt(t,He(t),e);return}for(var r in t)xe.call(t,r)&&za(e,r,t[r])}),bu=Qr(function(e,t){Wt(t,nt(t),e)}),Zs=Qr(function(e,t,r,i){Wt(t,nt(t),e,i)}),Ag=Qr(function(e,t,r,i){Wt(t,He(t),e,i)}),qg=Jt(Qn);function Cg(e,t){var r=Kr(e);return t==null?r:Ql(r,t)}var Sg=ne(function(e,t){e=ve(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,Gr[q])&&!xe.call(e,q))&&(e[q]=p[q])}return e}),zg=ne(function(e){return e.push(a,Rc),pt(xu,a,e)});function Ng(e,t){return Nl(e,V(t,3),Ut)}function Og(e,t){return Nl(e,V(t,3),Jn)}function Pg(e,t){return e==null?e:Zn(e,V(t,3),nt)}function Eg(e,t){return e==null?e:rc(e,V(t,3),nt)}function Rg(e,t){return e&&Ut(e,V(t,3))}function Lg(e,t){return e&&Jn(e,V(t,3))}function Mg(e){return e==null?[]:Os(e,He(e))}function Fg(e){return e==null?[]:Os(e,nt(e))}function zi(e,t,r){var i=e==null?a:qr(e,t);return i===a?r:i}function jg(e,t){return e!=null&&Fc(e,t,cy)}function Ni(e,t){return e!=null&&Fc(e,t,uy)}var Bg=zc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=xs.call(t)),e[t]=r},Pi(it)),Ug=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]},V),Wg=ne(Oa);function He(e){return st(e)?Vl(e):ai(e)}function nt(e){return st(e)?Vl(e,!0):xy(e)}function Hg(e,t){var r={};return t=V(t,3),Ut(e,function(i,c,p){Qt(r,t(i,c,p),i)}),r}function $g(e,t){var r={};return t=V(t,3),Ut(e,function(i,c,p){Qt(r,c,t(i,c,p))}),r}var Xg=Qr(function(e,t,r){Ps(e,t,r)}),xu=Qr(function(e,t,r,i){Ps(e,t,r,i)}),Gg=Jt(function(e,t){var r={};if(e==null)return r;var i=!1;t=ke(t,function(p){return p=hr(p,e),i||(i=p.length>1),p}),Wt(e,_i(e),r),i&&(r=kt(r,T|R|L,By));for(var c=t.length;c--;)ci(r,t[c]);return r});function Yg(e,t){return wu(e,Vs(V(t)))}var Vg=Jt(function(e,t){return e==null?{}:vy(e,t)});function wu(e,t){if(e==null)return{};var r=ke(_i(e),function(i){return[i]});return t=V(t),pc(e,r,function(i,c){return t(i,c[0])})}function Kg(e,t,r){t=hr(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 Qg(e,t,r){return e==null?e:Ea(e,t,r)}function Zg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Ea(e,t,r,i)}var vu=Pc(He),Tu=Pc(nt);function Jg(e,t,r){var i=re(e),c=i||gr(e)||ea(e);if(t=V(t,4),r==null){var p=e&&e.constructor;c?r=i?new p:[]:Ce(e)?r=tr(p)?Kr(Ts(e)):{}:r={}}return(c?vt:Ut)(e,function(f,_,v){return t(r,f,_,v)}),r}function eb(e,t){return e==null?!0:ci(e,t)}function tb(e,t,r){return e==null?e:_c(e,t,pi(r))}function rb(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:_c(e,t,pi(r),i)}function ta(e){return e==null?[]:Hn(e,He(e))}function ab(e){return e==null?[]:Hn(e,nt(e))}function sb(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 nb(e,t,r){return t=rr(t),r===a?(r=t,t=0):r=rr(r),e=qt(e),dy(e,t,r)}function ib(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 Ve(e+c*(t-e+Lm("1e-"+((c+"").length-1))),t)}return ii(e,t)}var ob=Zr(function(e,t,r){return t=t.toLowerCase(),e+(r?Iu(t):t)});function Iu(e){return Oi(ge(e).toLowerCase())}function ku(e){return e=ge(e),e&&e.replace(tt,Km).replace(Am,"")}function lb(e,t,r){e=ge(e),t=ft(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 cb(e){return e=ge(e),e&&is.test(e)?e.replace(Br,Qm):e}function ub(e){return e=ge(e),e&&ds.test(e)?e.replace(Ta,"\\$&"):e}var db=Zr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),pb=Zr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),mb=qc("toLowerCase");function fb(e,t,r){e=ge(e),t=ae(t);var i=t?$r(e):0;if(!t||i>=t)return e;var c=(t-i)/2;return js(As(c),r)+e+js(Ds(c),r)}function yb(e,t,r){e=ge(e),t=ae(t);var i=t?$r(e):0;return t&&i<t?e+js(t-i,r):e}function hb(e,t,r){e=ge(e),t=ae(t);var i=t?$r(e):0;return t&&i<t?js(t-i,r)+e:e}function _b(e,t,r){return r||t==null?t=0:t&&(t=+t),If(ge(e).replace(Ia,""),t||0)}function gb(e,t,r){return(r?Je(e,t,r):t===a)?t=1:t=ae(t),oi(ge(e),t)}function bb(){var e=arguments,t=ge(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var xb=Zr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function wb(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&&!Si(t))&&(t=ft(t),!t&&Hr(e))?_r(Pt(e),0,r):e.split(t,r)):[]}var vb=Zr(function(e,t,r){return e+(r?" ":"")+Oi(t)});function Tb(e,t,r){return e=ge(e),r=r==null?0:Ar(ae(r),0,e.length),t=ft(t),e.slice(r,r+t.length)==t}function Ib(e,t,r){var i=u.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=Hn(c,p),_,v,q=0,C=t.interpolate||Ot,N="__p += '",B=Xn((t.escape||Ot).source+"|"+C.source+"|"+(C===ls?pe:Ot).source+"|"+(t.evaluate||Ot).source+"|$","g"),H="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nm+"]")+`
115
- `;e.replace(B,function(Q,oe,de,ht,et,_t){return de||(de=ht),N+=e.slice(q,_t).replace(ps,Zm),oe&&(_=!0,N+=`' +
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 wi(e,t){if(re(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yt(e)?!0:us.test(e)||!cs.test(e)||t!=null&&e in ve(t)}function Zy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vi(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=gi(r);return!!i&&e===i[0]}function Jy(e){return!!Bl&&Bl in e}var eh=gs?tr:Fi;function La(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gr;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 ve(r))}}function th(e){var t=Ys(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<($|X|G),f=i==G&&r==U||i==G&&r==ye&&e[7].length<=t[8]||i==(G|ye)&&t[7].length<=t[8]&&r==U;if(!(p||f))return e;i&$&&(e[2]=t[2],c|=r&$?0:O);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]:Ve(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 ve(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),pt(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=Ve(t.length,r),c=at(e);i--;){var p=t[i];e[i]=er(p,r)?c[p]:a}return e}function Ti(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var $c=Gc(fc),Ma=xf||function(e,t){return Xe.setTimeout(e,t)},Ii=Gc(qy);function Xc(e,t,r){var i=t+"";return Ii(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=ii(r,c),f=e[p];e[p]=e[r],e[r]=f}return e.length=t,e}var Yc=th(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Dn,function(r,i,c,p){t.push(c?p.replace(Z,"$1"):i||r)}),t});function Ht(e){if(typeof e=="string"||yt(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 Vc(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)?Na(e,Ge(t,1,Pe,!0)):[]}),dh=ne(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),V(r,2)):[]}),ph=ne(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(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,V(t,3),!0,!0):[]}function hh(e,t){return e&&e.length?Rs(e,V(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,V(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):Ve(c,i-1)),ys(e,V(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)),Wr(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=ke(e,di);return t.length&&t[0]===e[0]?ti(t):[]}),Ih=ne(function(e){var t=At(e),r=ke(e,di);return t===At(r)?t=a:r.pop(),r.length&&r[0]===e[0]?ti(r,V(t,2)):[]}),kh=ne(function(e){var t=At(e),r=ke(e,di);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?ti(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):Ve(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?ni(e,t):e}function Sh(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,V(r,2)):e}function zh(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,a,r):e}var Nh=Jt(function(e,t){var r=e==null?0:e.length,i=Qn(e,t);return mc(e,ke(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=V(t,3);++i<p;){var f=e[i];t(f,i,e)&&(r.push(f),c.push(i))}return mc(e,c),r}function ki(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 li(e,t,V(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 li(e,t,V(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,V(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,V(t,3),!1,!0):[]}function Gh(e,t){return e&&e.length?Rs(e,V(t,3)):[]}var Yh=ne(function(e){return fr(Ge(e,1,Pe,!0))}),Vh=ne(function(e){var t=At(e);return Pe(t)&&(t=a),fr(Ge(e,1,Pe,!0),V(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,V(t,2)):[]}function Jh(e,t){return t=typeof t=="function"?t:a,e&&e.length?fr(e,a,t):[]}function Di(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}),Wn(t,function(r){return ke(e,jn(r))})}function tu(e,t){if(!(e&&e.length))return[];var r=Di(e);return t==null?r:ke(r,function(i){return pt(t,a,i)})}var e_=ne(function(e,t){return Pe(e)?Na(e,t):[]}),t_=ne(function(e){return ui(cr(e,Pe))}),r_=ne(function(e){var t=At(e);return Pe(t)&&(t=a),ui(cr(e,Pe),V(t,2))}),a_=ne(function(e){var t=At(e);return t=typeof t=="function"?t:a,ui(cr(e,Pe),a,t)}),s_=ne(Di);function n_(e,t){return bc(e||[],t||[],za)}function i_(e,t){return bc(e||[],t||[],Ea)}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 Qn(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=Vc(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:[ki],thisArg:a}),new It(t,this.__chain__)}return this.thru(ki)}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,V(t,3))}function b_(e,t){var r=re(e)?cr:tc;return r(e,V(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,V(t,3))}function su(e,t){var r=re(e)?Um:ec;return r(e,V(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:ta(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&&Wr(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?pt(t,f,r):Oa(f,t,r)}),p}),q_=Ls(function(e,t,r){Qt(e,r,t)});function Xs(e,t){var r=re(e)?ke:oc;return r(e,V(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)?Mn:El,c=arguments.length<3;return i(e,V(t,4),r,c,mr)}function N_(e,t,r){var i=re(e)?Wm:El,c=arguments.length<3;return i(e,V(t,4),r,c,ec)}function O_(e,t){var r=re(e)?cr:tc;return r(e,Vs(V(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)?$r(e):e.length;var t=Ke(e);return t==ut||t==dt?e.size:ai(e).length}function M_(e,t,r){var i=re(e)?Fn:Sy;return r&&Je(e,t,r)&&(t=a),i(e,V(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 Ai=ne(function(e,t,r){var i=$;if(r.length){var c=dr(r,Jr(Ai));i|=F}return Zt(e,i,t,r,c)}),ou=ne(function(e,t,r){var i=$|X;if(r.length){var c=dr(r,Jr(ou));i|=F}return Zt(t,i,e,r,c)});function lu(e,t,r){t=r?a:t;var i=Zt(e,U,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,S,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,N=!1,B=!0;if(typeof e!="function")throw new Tt(m);t=qt(t)||0,Ce(r)&&(C=!!r.leading,N="maxWait"in r,p=N?Ue(qt(r.maxWait)||0,t):p,B="trailing"in r?!!r.trailing:B);function H(Ee){var Lt=i,ar=c;return i=c=a,q=Ee,f=e.apply(ar,Lt),f}function K(Ee){return q=Ee,_=Ma(oe,t),C?H(Ee):f}function se(Ee){var Lt=Ee-v,ar=Ee-q,Cu=t-Lt;return N?Ve(Cu,p-ar):Cu}function Q(Ee){var Lt=Ee-v,ar=Ee-q;return v===a||Lt>=t||Lt<0||N&&ar>=p}function oe(){var Ee=Gs();if(Q(Ee))return de(Ee);_=Ma(oe,se(Ee))}function de(Ee){return _=a,B&&i?H(Ee):(i=c=a,f)}function ht(){_!==a&&xc(_),q=0,i=v=c=_=a}function et(){return _===a?f:de(Gs())}function _t(){var Ee=Gs(),Lt=Q(Ee);if(i=arguments,c=this,v=Ee,Lt){if(_===a)return K(v);if(N)return xc(_),_=Ma(oe,t),H(v)}return _===a&&(_=Ma(oe,t)),f}return _t.cancel=ht,_t.flush=et,_t}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 Ys(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(Ys.Cache||Kt),r}Ys.Cache=Kt;function Vs(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])?ke(t[0],mt(V())):ke(Ge(t,1),mt(V()));var r=t.length;return ne(function(i){for(var c=-1,p=Ve(i.length,r);++c<p;)i[c]=t[c].call(this,i[c]);return pt(e,this,i)})}),qi=ne(function(e,t){var r=dr(t,Jr(qi));return Zt(e,F,a,t,r)}),du=ne(function(e,t){var r=dr(t,Jr(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 Y_(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),pt(e,this,c)})}function V_(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 qi(pi(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(ei),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?mt(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||Fi,lg=Dl?mt(Dl):yy;function cg(e){return Ne(e)&&e.nodeType===1&&!Fa(e)}function ug(e){if(e==null)return!0;if(st(e)&&(re(e)||typeof e=="string"||typeof e.splice=="function"||_r(e)||ea(e)||zr(e)))return!e.length;var t=Ke(e);if(t==ut||t==dt)return!e.size;if(La(e))return!ai(e).length;for(var r in e)if(xe.call(e,r))return!1;return!0}function dg(e,t){return Pa(e,t)}function pg(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Pa(e,t,a,r):!!i}function Ci(e){if(!Ne(e))return!1;var t=Ze(e);return t==Er||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!Fa(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==ma||t==Lr}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?mt(Al):_y;function fg(e,t){return e===t||ri(e,t,bi(t))}function yg(e,t,r){return r=typeof r=="function"?r:a,ri(e,t,bi(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 Fa(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 Si=ql?mt(ql):gy;function xg(e){return pu(e)&&e>=-Le&&e<=Le}var yu=Cl?mt(Cl):by;function Qs(e){return typeof e=="string"||!re(e)&&Ne(e)&&Ze(e)==Gt}function yt(e){return typeof e=="symbol"||Ne(e)&&Ze(e)==Mr}var ea=Sl?mt(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(si),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(Da&&e[Da])return rf(e[Da]());var t=Ke(e),r=t==ut?$n:t==dt?hs:ta;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*ct}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(yt(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?"":ft(e)}var Ag=Qr(function(e,t){if(La(t)||st(t)){Wt(t,He(t),e);return}for(var r in t)xe.call(t,r)&&za(e,r,t[r])}),bu=Qr(function(e,t){Wt(t,nt(t),e)}),Zs=Qr(function(e,t,r,i){Wt(t,nt(t),e,i)}),qg=Qr(function(e,t,r,i){Wt(t,He(t),e,i)}),Cg=Jt(Qn);function Sg(e,t){var r=Kr(e);return t==null?r:Ql(r,t)}var zg=ne(function(e,t){e=ve(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,Gr[q])&&!xe.call(e,q))&&(e[q]=p[q])}return e}),Ng=ne(function(e){return e.push(a,Rc),pt(xu,a,e)});function Og(e,t){return Nl(e,V(t,3),Ut)}function Pg(e,t){return Nl(e,V(t,3),Jn)}function Eg(e,t){return e==null?e:Zn(e,V(t,3),nt)}function Rg(e,t){return e==null?e:rc(e,V(t,3),nt)}function Lg(e,t){return e&&Ut(e,V(t,3))}function Mg(e,t){return e&&Jn(e,V(t,3))}function Fg(e){return e==null?[]:Os(e,He(e))}function jg(e){return e==null?[]:Os(e,nt(e))}function zi(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 Ni(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},Pi(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]},V),Hg=ne(Oa);function He(e){return st(e)?Vl(e):ai(e)}function nt(e){return st(e)?Vl(e,!0):wy(e)}function $g(e,t){var r={};return t=V(t,3),Ut(e,function(i,c,p){Qt(r,t(i,c,p),i)}),r}function Xg(e,t){var r={};return t=V(t,3),Ut(e,function(i,c,p){Qt(r,c,t(i,c,p))}),r}var Gg=Qr(function(e,t,r){Ps(e,t,r)}),xu=Qr(function(e,t,r,i){Ps(e,t,r,i)}),Yg=Jt(function(e,t){var r={};if(e==null)return r;var i=!1;t=ke(t,function(p){return p=yr(p,e),i||(i=p.length>1),p}),Wt(e,_i(e),r),i&&(r=kt(r,T|R|L,Uy));for(var c=t.length;c--;)ci(r,t[c]);return r});function Vg(e,t){return wu(e,Vs(V(t)))}var Kg=Jt(function(e,t){return e==null?{}:Ty(e,t)});function wu(e,t){if(e==null)return{};var r=ke(_i(e),function(i){return[i]});return t=V(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:Ea(e,t,r)}function Jg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Ea(e,t,r,i)}var vu=Pc(He),Tu=Pc(nt);function eb(e,t,r){var i=re(e),c=i||_r(e)||ea(e);if(t=V(t,4),r==null){var p=e&&e.constructor;c?r=i?new p:[]:Ce(e)?r=tr(p)?Kr(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:ci(e,t)}function rb(e,t,r){return e==null?e:_c(e,t,pi(r))}function ab(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:_c(e,t,pi(r),i)}function ta(e){return e==null?[]:Hn(e,He(e))}function sb(e){return e==null?[]:Hn(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 Ve(e+c*(t-e+Mm("1e-"+((c+"").length-1))),t)}return ii(e,t)}var lb=Zr(function(e,t,r){return t=t.toLowerCase(),e+(r?Iu(t):t)});function Iu(e){return Oi(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=ft(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(Br,Zm):e}function db(e){return e=ge(e),e&&ds.test(e)?e.replace(Ta,"\\$&"):e}var pb=Zr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),mb=Zr(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?$r(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?$r(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?$r(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(Ia,""),t||0)}function bb(e,t,r){return(r?Je(e,t,r):t===a)?t=1:t=ae(t),oi(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=Zr(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&&!Si(t))&&(t=ft(t),!t&&Hr(e))?hr(Pt(e),0,r):e.split(t,r)):[]}var Tb=Zr(function(e,t,r){return e+(r?" ":"")+Oi(t)});function Ib(e,t,r){return e=ge(e),r=r==null?0:Ar(ae(r),0,e.length),t=ft(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=Hn(c,p),_,v,q=0,C=t.interpolate||Ot,N="__p += '",B=Xn((t.escape||Ot).source+"|"+C.source+"|"+(C===ls?pe:Ot).source+"|"+(t.evaluate||Ot).source+"|$","g"),H="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Om+"]")+`
115
+ `;e.replace(B,function(Q,oe,de,ht,et,_t){return de||(de=ht),N+=e.slice(q,_t).replace(ps,Jm),oe&&(_=!0,N+=`' +
116
116
  __e(`+oe+`) +
117
117
  '`),et&&(v=!0,N+=`';
118
118
  `+et+`;
@@ -128,18 +128,18 @@ __p += '`),de&&(N+=`' +
128
128
  function print() { __p += __j.call(arguments, '') }
129
129
  `:`;
130
130
  `)+N+`return __p
131
- }`;var se=Au(function(){return fe(p,H+"return "+N).apply(a,f)});if(se.source=N,Ci(se))throw se;return se}function kb(e){return ge(e).toLowerCase()}function Db(e){return ge(e).toUpperCase()}function Ab(e,t,r){if(e=ge(e),e&&(r||t===a))return Rl(e);if(!e||!(t=ft(t)))return e;var i=Pt(e),c=Pt(t),p=Ll(i,c),f=Ml(i,c)+1;return _r(i,p,f).join("")}function qb(e,t,r){if(e=ge(e),e&&(r||t===a))return e.slice(0,jl(e)+1);if(!e||!(t=ft(t)))return e;var i=Pt(e),c=Ml(i,Pt(t))+1;return _r(i,0,c).join("")}function Cb(e,t,r){if(e=ge(e),e&&(r||t===a))return e.replace(Ia,"");if(!e||!(t=ft(t)))return e;var i=Pt(e),c=Ll(i,Pt(t));return _r(i,c).join("")}function Sb(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?ft(t.omission):i}e=ge(e);var p=e.length;if(Hr(e)){var f=Pt(e);p=f.length}if(r>=p)return e;var _=r-$r(i);if(_<1)return i;var v=f?_r(f,0,_).join(""):e.slice(0,_);if(c===a)return v+i;if(f&&(_+=v.length-_),Si(c)){if(e.slice(_).search(c)){var q,C=v;for(c.global||(c=Xn(c.source,ge(_e.exec(c))+"g")),c.lastIndex=0;q=c.exec(C);)var N=q.index;v=v.slice(0,N===a?_:N)}}else if(e.indexOf(ft(c),_)!=_){var B=v.lastIndexOf(c);B>-1&&(v=v.slice(0,B))}return v+i}function zb(e){return e=ge(e),e&&va.test(e)?e.replace(Yt,nf):e}var Nb=Zr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Oi=qc("toUpperCase");function Du(e,t,r){return e=ge(e),t=r?a:t,t===a?ef(e)?cf(e):$m(e):e.match(t)||[]}var Au=ne(function(e,t){try{return pt(e,a,t)}catch(r){return Ci(r)?r:new te(r)}}),Ob=Jt(function(e,t){return vt(t,function(r){r=Ht(r),Qt(e,r,Ai(e[r],e))}),e});function Pb(e){var t=e==null?0:e.length,r=V();return e=t?ke(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(pt(p[0],this,i))return pt(p[1],this,i)}})}function Eb(e){return iy(kt(e,T))}function Pi(e){return function(){return e}}function Rb(e,t){return e==null||e!==e?t:e}var Lb=Sc(),Mb=Sc(!0);function it(e){return e}function Ei(e){return ic(typeof e=="function"?e:kt(e,T))}function Fb(e){return lc(kt(e,T))}function jb(e,t){return cc(e,kt(t,T))}var Bb=ne(function(e,t){return function(r){return Oa(r,e,t)}}),Ub=ne(function(e,t){return function(r){return Oa(e,r,t)}});function Ri(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__),N=C.__actions__=at(this.__actions__);return N.push({func:v,args:arguments,thisArg:e}),C.__chain__=q,C}return v.apply(e,dr([this.value()],arguments))})}),e}function Wb(){return Xe._===this&&(Xe._=yf),this}function Li(){}function Hb(e){return e=ae(e),ne(function(t){return uc(t,e)})}var $b=fi(ke),Xb=fi(zl),Gb=fi(Fn);function qu(e){return wi(e)?jn(Ht(e)):Ty(e)}function Yb(e){return function(t){return e==null?a:qr(e,t)}}var Vb=Nc(),Kb=Nc(!0);function Mi(){return[]}function Fi(){return!1}function Qb(){return{}}function Zb(){return""}function Jb(){return!0}function ex(e,t){if(e=ae(e),e<1||e>Le)return[];var r=ee,i=Ve(e,ee);t=V(t),e-=ee;for(var c=Wn(i,t);++r<e;)t(r);return c}function tx(e){return re(e)?ke(e,Ht):yt(e)?[e]:at(Yc(ge(e)))}function rx(e){var t=++mf;return ge(e)+t}var ax=Fs(function(e,t){return e+t},0),sx=yi("ceil"),nx=Fs(function(e,t){return e/t},1),ix=yi("floor");function ox(e){return e&&e.length?Ns(e,it,ei):a}function lx(e,t){return e&&e.length?Ns(e,V(t,2),ei):a}function cx(e){return Pl(e,it)}function ux(e,t){return Pl(e,V(t,2))}function dx(e){return e&&e.length?Ns(e,it,si):a}function px(e,t){return e&&e.length?Ns(e,V(t,2),si):a}var mx=Fs(function(e,t){return e*t},1),fx=yi("round"),yx=Fs(function(e,t){return e-t},0);function hx(e){return e&&e.length?Un(e,it):0}function _x(e,t){return e&&e.length?Un(e,V(t,2)):0}return u.after=F_,u.ary=nu,u.assign=Dg,u.assignIn=bu,u.assignInWith=Zs,u.assignWith=Ag,u.at=qg,u.before=iu,u.bind=Ai,u.bindAll=Ob,u.bindKey=ou,u.castArray=Q_,u.chain=ru,u.chunk=ih,u.compact=oh,u.concat=lh,u.cond=Pb,u.conforms=Eb,u.constant=Pi,u.countBy=h_,u.create=Cg,u.curry=lu,u.curryRight=cu,u.debounce=uu,u.defaults=Sg,u.defaultsDeep=zg,u.defer=j_,u.delay=B_,u.difference=ch,u.differenceBy=uh,u.differenceWith=dh,u.drop=ph,u.dropRight=mh,u.dropRightWhile=fh,u.dropWhile=yh,u.fill=hh,u.filter=g_,u.flatMap=w_,u.flatMapDeep=v_,u.flatMapDepth=T_,u.flatten=Zc,u.flattenDeep=_h,u.flattenDepth=gh,u.flip=U_,u.flow=Lb,u.flowRight=Mb,u.fromPairs=bh,u.functions=Mg,u.functionsIn=Fg,u.groupBy=I_,u.initial=wh,u.intersection=vh,u.intersectionBy=Th,u.intersectionWith=Ih,u.invert=Bg,u.invertBy=Ug,u.invokeMap=D_,u.iteratee=Ei,u.keyBy=A_,u.keys=He,u.keysIn=nt,u.map=Xs,u.mapKeys=Hg,u.mapValues=$g,u.matches=Fb,u.matchesProperty=jb,u.memoize=Ys,u.merge=Xg,u.mergeWith=xu,u.method=Bb,u.methodOf=Ub,u.mixin=Ri,u.negate=Vs,u.nthArg=Hb,u.omit=Gg,u.omitBy=Yg,u.once=W_,u.orderBy=q_,u.over=$b,u.overArgs=H_,u.overEvery=Xb,u.overSome=Gb,u.partial=qi,u.partialRight=du,u.partition=C_,u.pick=Vg,u.pickBy=wu,u.property=qu,u.propertyOf=Yb,u.pull=qh,u.pullAll=eu,u.pullAllBy=Ch,u.pullAllWith=Sh,u.pullAt=zh,u.range=Vb,u.rangeRight=Kb,u.rearg=$_,u.reject=N_,u.remove=Nh,u.rest=X_,u.reverse=ki,u.sampleSize=P_,u.set=Qg,u.setWith=Zg,u.shuffle=E_,u.slice=Oh,u.sortBy=M_,u.sortedUniq=jh,u.sortedUniqBy=Bh,u.split=wb,u.spread=G_,u.tail=Uh,u.take=Wh,u.takeRight=Hh,u.takeRightWhile=$h,u.takeWhile=Xh,u.tap=o_,u.throttle=Y_,u.thru=$s,u.toArray=hu,u.toPairs=vu,u.toPairsIn=Tu,u.toPath=tx,u.toPlainObject=gu,u.transform=Jg,u.unary=V_,u.union=Gh,u.unionBy=Yh,u.unionWith=Vh,u.uniq=Kh,u.uniqBy=Qh,u.uniqWith=Zh,u.unset=eb,u.unzip=Di,u.unzipWith=tu,u.update=tb,u.updateWith=rb,u.values=ta,u.valuesIn=ab,u.without=Jh,u.words=Du,u.wrap=K_,u.xor=e_,u.xorBy=t_,u.xorWith=r_,u.zip=a_,u.zipObject=s_,u.zipObjectDeep=n_,u.zipWith=i_,u.entries=vu,u.entriesIn=Tu,u.extend=bu,u.extendWith=Zs,Ri(u,u),u.add=ax,u.attempt=Au,u.camelCase=ob,u.capitalize=Iu,u.ceil=sx,u.clamp=sb,u.clone=Z_,u.cloneDeep=eg,u.cloneDeepWith=tg,u.cloneWith=J_,u.conformsTo=rg,u.deburr=ku,u.defaultTo=Rb,u.divide=nx,u.endsWith=lb,u.eq=Rt,u.escape=cb,u.escapeRegExp=ub,u.every=__,u.find=b_,u.findIndex=Kc,u.findKey=Ng,u.findLast=x_,u.findLastIndex=Qc,u.findLastKey=Og,u.floor=ix,u.forEach=au,u.forEachRight=su,u.forIn=Pg,u.forInRight=Eg,u.forOwn=Rg,u.forOwnRight=Lg,u.get=zi,u.gt=ag,u.gte=sg,u.has=jg,u.hasIn=Ni,u.head=Jc,u.identity=it,u.includes=k_,u.indexOf=xh,u.inRange=nb,u.invoke=Wg,u.isArguments=zr,u.isArray=re,u.isArrayBuffer=ng,u.isArrayLike=st,u.isArrayLikeObject=Pe,u.isBoolean=ig,u.isBuffer=gr,u.isDate=og,u.isElement=lg,u.isEmpty=cg,u.isEqual=ug,u.isEqualWith=dg,u.isError=Ci,u.isFinite=pg,u.isFunction=tr,u.isInteger=pu,u.isLength=Ks,u.isMap=mu,u.isMatch=mg,u.isMatchWith=fg,u.isNaN=yg,u.isNative=hg,u.isNil=gg,u.isNull=_g,u.isNumber=fu,u.isObject=Ce,u.isObjectLike=Ne,u.isPlainObject=Fa,u.isRegExp=Si,u.isSafeInteger=bg,u.isSet=yu,u.isString=Qs,u.isSymbol=yt,u.isTypedArray=ea,u.isUndefined=xg,u.isWeakMap=wg,u.isWeakSet=vg,u.join=kh,u.kebabCase=db,u.last=At,u.lastIndexOf=Dh,u.lowerCase=pb,u.lowerFirst=mb,u.lt=Tg,u.lte=Ig,u.max=ox,u.maxBy=lx,u.mean=cx,u.meanBy=ux,u.min=dx,u.minBy=px,u.stubArray=Mi,u.stubFalse=Fi,u.stubObject=Qb,u.stubString=Zb,u.stubTrue=Jb,u.multiply=mx,u.nth=Ah,u.noConflict=Wb,u.noop=Li,u.now=Gs,u.pad=fb,u.padEnd=yb,u.padStart=hb,u.parseInt=_b,u.random=ib,u.reduce=S_,u.reduceRight=z_,u.repeat=gb,u.replace=bb,u.result=Kg,u.round=fx,u.runInContext=x,u.sample=O_,u.size=R_,u.snakeCase=xb,u.some=L_,u.sortedIndex=Ph,u.sortedIndexBy=Eh,u.sortedIndexOf=Rh,u.sortedLastIndex=Lh,u.sortedLastIndexBy=Mh,u.sortedLastIndexOf=Fh,u.startCase=vb,u.startsWith=Tb,u.subtract=yx,u.sum=hx,u.sumBy=_x,u.template=Ib,u.times=ex,u.toFinite=rr,u.toInteger=ae,u.toLength=_u,u.toLower=kb,u.toNumber=qt,u.toSafeInteger=kg,u.toString=ge,u.toUpper=Db,u.trim=Ab,u.trimEnd=qb,u.trimStart=Cb,u.truncate=Sb,u.unescape=zb,u.uniqueId=rx,u.upperCase=Nb,u.upperFirst=Oi,u.each=au,u.eachRight=su,u.first=Jc,Ri(u,function(){var e={};return Ut(u,function(t,r){xe.call(u.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),u.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){u[e].placeholder=u}),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__=Ve(r,i.__takeCount__):i.__views__.push({size:Ve(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:V(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 Oa(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(Vs(V(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=u[i?"take"+(t=="last"?"Right":""):t],p=i||/^find/.test(t);c&&(u.prototype[t]=function(){var f=this.__wrapped__,_=i?[1]:arguments,v=f instanceof ue,q=_[0],C=v||re(f),N=function(oe){var de=c.apply(u,dr([oe],_));return i&&B?de[0]:de};C&&r&&typeof q=="function"&&q.length!=1&&(v=C=!1);var B=this.__chain__,H=!!this.__actions__.length,K=p&&!B,se=v&&!H;if(!p&&C){f=se?f:new ue(this);var Q=e.apply(f,_);return Q.__actions__.push({func:$s,args:[N],thisArg:a}),new It(Q,B)}return K&&se?e.apply(this,_):(Q=this.thru(N),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);u.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=u[t];if(r){var i=r.name+"";xe.call(Vr,i)||(Vr[i]=[]),Vr[i].push({name:t,func:r})}}),Vr[Ms(a,X).name]=[{name:"wrapper",func:a}],ue.prototype.clone=zf,ue.prototype.reverse=Nf,ue.prototype.value=Of,u.prototype.at=l_,u.prototype.chain=c_,u.prototype.commit=u_,u.prototype.next=d_,u.prototype.plant=m_,u.prototype.reverse=f_,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=y_,u.prototype.first=u.prototype.head,Da&&(u.prototype[Da]=p_),u},Xr=uf();Tr?((Tr.exports=Xr)._=Xr,En._=Xr):Xe._=Xr}).call(ra)}(Xa,Xa.exports);var no=Xa.exports;const Re="tccScript",on={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 ln={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 cn={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"]}},un={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,d=o.indexOf("(");for(let m=d+1,h=d;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),d=this._getActiveIndex(o,a);return{signatures:l,...d}}_getActiveIndex(n,a=[]){let o=0,l=-1;a.some(m=>!!m)||(l=a.length-1);const d=a.pop();if(d)for(const[m,h]of n.entries()){const{args:g}=h;if(g&&g.length){const b=g.findIndex(w=>w.name===d);if(b!=-1){l=b,o=m;break}}}return{activeParameter:l,activeSignature:o}}_getFuncItems(n){return lt.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:d})=>d).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")} +
131
+ }`;var se=Au(function(){return fe(p,H+"return "+N).apply(a,f)});if(se.source=N,Ci(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=ft(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=ft(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(Ia,"");if(!e||!(t=ft(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?ft(t.omission):i}e=ge(e);var p=e.length;if(Hr(e)){var f=Pt(e);p=f.length}if(r>=p)return e;var _=r-$r(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-_),Si(c)){if(e.slice(_).search(c)){var q,C=v;for(c.global||(c=Xn(c.source,ge(_e.exec(c))+"g")),c.lastIndex=0;q=c.exec(C);)var N=q.index;v=v.slice(0,N===a?_:N)}}else if(e.indexOf(ft(c),_)!=_){var B=v.lastIndexOf(c);B>-1&&(v=v.slice(0,B))}return v+i}function Nb(e){return e=ge(e),e&&va.test(e)?e.replace(Yt,of):e}var Ob=Zr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Oi=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 pt(e,a,t)}catch(r){return Ci(r)?r:new te(r)}}),Pb=Jt(function(e,t){return vt(t,function(r){r=Ht(r),Qt(e,r,Ai(e[r],e))}),e});function Eb(e){var t=e==null?0:e.length,r=V();return e=t?ke(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(pt(p[0],this,i))return pt(p[1],this,i)}})}function Rb(e){return oy(kt(e,T))}function Pi(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 Ei(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 Oa(r,e,t)}}),Wb=ne(function(e,t){return function(r){return Oa(e,r,t)}});function Ri(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__),N=C.__actions__=at(this.__actions__);return N.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 Li(){}function $b(e){return e=ae(e),ne(function(t){return uc(t,e)})}var Xb=fi(ke),Gb=fi(zl),Yb=fi(Fn);function qu(e){return wi(e)?jn(Ht(e)):Iy(e)}function Vb(e){return function(t){return e==null?a:qr(e,t)}}var Kb=Nc(),Qb=Nc(!0);function Mi(){return[]}function Fi(){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=Ve(e,ee);t=V(t),e-=ee;for(var c=Wn(i,t);++r<e;)t(r);return c}function rx(e){return re(e)?ke(e,Ht):yt(e)?[e]:at(Yc(ge(e)))}function ax(e){var t=++ff;return ge(e)+t}var sx=Fs(function(e,t){return e+t},0),nx=yi("ceil"),ix=Fs(function(e,t){return e/t},1),ox=yi("floor");function lx(e){return e&&e.length?Ns(e,it,ei):a}function cx(e,t){return e&&e.length?Ns(e,V(t,2),ei):a}function ux(e){return Pl(e,it)}function dx(e,t){return Pl(e,V(t,2))}function px(e){return e&&e.length?Ns(e,it,si):a}function mx(e,t){return e&&e.length?Ns(e,V(t,2),si):a}var fx=Fs(function(e,t){return e*t},1),yx=yi("round"),hx=Fs(function(e,t){return e-t},0);function _x(e){return e&&e.length?Un(e,it):0}function gx(e,t){return e&&e.length?Un(e,V(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=Ai,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=Pi,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=Ei,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=Ys,d.merge=Gg,d.mergeWith=xu,d.method=Ub,d.methodOf=Wb,d.mixin=Ri,d.negate=Vs,d.nthArg=$b,d.omit=Yg,d.omitBy=Vg,d.once=H_,d.orderBy=C_,d.over=Xb,d.overArgs=$_,d.overEvery=Gb,d.overSome=Yb,d.partial=qi,d.partialRight=du,d.partition=S_,d.pick=Kg,d.pickBy=wu,d.property=qu,d.propertyOf=Vb,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=ki,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=Y_,d.tail=Wh,d.take=Hh,d.takeRight=$h,d.takeRightWhile=Xh,d.takeWhile=Gh,d.tap=l_,d.throttle=V_,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=Yh,d.unionBy=Vh,d.unionWith=Kh,d.uniq=Qh,d.uniqBy=Zh,d.uniqWith=Jh,d.unset=tb,d.unzip=Di,d.unzipWith=tu,d.update=rb,d.updateWith=ab,d.values=ta,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,Ri(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=zi,d.gt=sg,d.gte=ng,d.has=Bg,d.hasIn=Ni,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=Ci,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=Fa,d.isRegExp=Si,d.isSafeInteger=xg,d.isSet=yu,d.isString=Qs,d.isSymbol=yt,d.isTypedArray=ea,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=Mi,d.stubFalse=Fi,d.stubObject=Zb,d.stubString=Jb,d.stubTrue=ex,d.multiply=fx,d.nth=qh,d.noConflict=Hb,d.noop=Li,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=Oi,d.each=au,d.eachRight=su,d.first=Jc,Ri(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__=Ve(r,i.__takeCount__):i.__views__.push({size:Ve(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:V(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 Oa(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(Vs(V(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),N=function(oe){var de=c.apply(d,ur([oe],_));return i&&B?de[0]:de};C&&r&&typeof q=="function"&&q.length!=1&&(v=C=!1);var B=this.__chain__,H=!!this.__actions__.length,K=p&&!B,se=v&&!H;if(!p&&C){f=se?f:new ue(this);var Q=e.apply(f,_);return Q.__actions__.push({func:$s,args:[N],thisArg:a}),new It(Q,B)}return K&&se?e.apply(this,_):(Q=this.thru(N),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(Vr,i)||(Vr[i]=[]),Vr[i].push({name:t,func:r})}}),Vr[Ms(a,X).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,Da&&(d.prototype[Da]=m_),d},Xr=df();Tr?((Tr.exports=Xr)._=Xr,En._=Xr):Xe._=Xr}).call(ra)}(Xa,Xa.exports);var no=Xa.exports;const Re="tccScript",on={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 ln={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 cn={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"]}},un={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 lt.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")} +
132
132
  ${this._formatter.code("Shift")} +
133
- ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${l} ${Ae.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:d}=o;d=d||[];const m=d[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)&&d[1]&&d[6]&&(h=this._extractNewExpression(d[1],Number(d[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 d=this._isColorExpression(l)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!d)return[];const m=this._colorHexRepresentation(a);return[{label:d,textEdit:{text:d,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),d=this._hexFromNumber(n.alpha);return`#${a}${o}${l}${n.alpha===1?"":d}`}_colorRgbRepresentation(n){const a=this._denormalize(n.red),o=this._denormalize(n.green),l=this._denormalize(n.blue),d=this._denormalizeAlpha(n.alpha),m=[a,o,l];return d>0&&m.push(d),`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),d=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(d,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])),d=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(l)||isNaN(d)?null:{red:o,green:l,blue:d,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const dn=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),l=o.match(/([\w.]+)$/)||[],d=(R=l[0])==null?void 0:R.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=d?d[1]?d[1]:d[2]?d[2]:void 0:void 0,h=s.getWordUntilPosition(n),g=ca.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=ca.parseLineContentFuncVar(n.column,n.lineNumber,s,n);if(a&&a.docValue.length){const o=Yd(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),l=s.findMatches(String(ep),a,!0,!1,null,!0),d=s.findMatches(String(tp),a,!0,!1,null,!0),m=(T=l.pop())==null?void 0:T.matches,h=(R=d.pop())==null?void 0:R.matches;let g=!1;l.length%2===0?m&&m[0]==='"'&&(g=!0):m&&!m[0]&&(g=!0);let b=!1;d.length%2===0?h&&h[0]==="'"&&(b=!0):h&&!h[0]&&(b=!0);const w=ca.parseCurrentInputFuncAndArg(o,b,g);if(w){const{funcName:L,args:A}=w,z=ap.getSignatureHelpValues(L,A);if(z)return{value:z,dispose:()=>{console.log("dispose")}}}return null}function cp(s){let n=s.findMatches(dn.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}),dn.getDocumentColors(n)}function up(s,n){return dn.getDocumentColorPresentations(s,n)||[]}function dp(s,n,a){const o=s.getModel(),l=ca.parseLineContentFuncVar(a.startColumn+1,a.startLineNumber,o);if(!l||l.isBuildIn||!l.docValue||!l.docValue[0].pos)return!0;const{lineNumber:d,column:m}=l.docValue[0].pos,h={startLineNumber:d,endLineNumber:d,startColumn:m,endColumn:m};return s.revealRangeInCenterIfOutsideViewport(h),s.setSelection(h),!0}function pp(s,n){return{uri:s.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}}function oo(s,n){return s.map(a=>(a.range=n,a))}var ua={},da=Su;if(process.env.NODE_ENV==="production")ua.createRoot=da.createRoot,ua.hydrateRoot=da.hydrateRoot;else{var Ga=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ua.createRoot=function(s,n){Ga.usingClientEntryPoint=!0;try{return da.createRoot(s,n)}finally{Ga.usingClientEntryPoint=!1}},ua.hydrateRoot=function(s,n,a){Ga.usingClientEntryPoint=!0;try{return da.hydrateRoot(s,n,a)}finally{Ga.usingClientEntryPoint=!1}}}var Ye;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(Ye||(Ye={}));const mp=(s,n)=>{const{close:a,retracement:o}=s,[l,d]=M.useState("modified");return M.useImperativeHandle(n,()=>({updateType(m){d(m)}})),P.jsxs("div",{className:`content-popup content-${l}-popup`,children:[P.jsx("div",{className:`triangle-popup triangle-${l}-popup`}),P.jsxs("div",{className:`header-popup header-${l}-popup`,children:[P.jsx("div",{className:"title-popup",children:"Local working changes"}),P.jsx("div",{className:"actions-popup",children:P.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:P.jsx("span",{className:"icon-popup",role:"img",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:P.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),P.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},fp=M.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)),ua.createRoot(this._domNode).render(P.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]:{},d=l.callback;typeof l=="function"&&(d=l,l={}),this.options=l;var m=this;function h(S){return d?(setTimeout(function(){d(void 0,S)},0),!0):S}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 R=(o=l.timeout)!==null&&o!==void 0?o:1/0,L=Date.now()+R,A=[{oldPos:-1,lastComponent:void 0}],z=this.extractCommon(A[0],a,n,0);if(A[0].oldPos+1>=b&&z+1>=g)return h([{value:this.join(a),count:a.length}]);var $=-1/0,X=1/0;function E(){for(var S=Math.max($,-w);S<=Math.min(X,w);S+=2){var F=void 0,J=A[S-1],G=A[S+1];J&&(A[S-1]=void 0);var ye=!1;if(G){var he=G.oldPos-S;ye=G&&0<=he&&he<g}var le=J&&J.oldPos+1<b;if(!ye&&!le){A[S]=void 0;continue}if(!le||ye&&J.oldPos+1<G.oldPos?F=m.addToPath(G,!0,void 0,0):F=m.addToPath(J,void 0,!0,1),z=m.extractCommon(F,a,n,S),F.oldPos+1>=b&&z+1>=g)return h(hp(m,F.lastComponent,a,n,m.useLongestToken));A[S]=F,F.oldPos+1>=b&&(X=Math.min(X,S-1)),z+1>=g&&($=Math.max($,S+1))}w++}if(d)(function S(){setTimeout(function(){if(w>T||Date.now()>L)return d();E()||S()},0)})();else for(;w<=T&&Date.now()<=L;){var U=E();if(U)return U}},addToPath:function(n,a,o,l){var d=n.lastComponent;return d&&d.added===a&&d.removed===o?{oldPos:n.oldPos+l,lastComponent:{count:d.count+1,added:a,removed:o,previousComponent:d.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:a,removed:o,previousComponent:d}}},extractCommon:function(n,a,o,l){for(var d=a.length,m=o.length,h=n.oldPos,g=h-l,b=0;g+1<d&&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 d=[],m;n;)d.push(n),m=n.previousComponent,delete n.previousComponent,n=m;d.reverse();for(var h=0,g=d.length,b=0,w=0;h<g;h++){var T=d[h];if(T.removed){if(T.value=s.join(o.slice(w,w+T.count)),w+=T.count,h&&d[h-1].added){var L=d[h-1];d[h-1]=d[h],d[h]=L}}else{if(!T.added&&l){var R=a.slice(b,b+T.count);R=R.map(function(z,$){var X=o[w+$];return X.length>z.length?X:z}),T.value=s.join(R)}else T.value=s.join(a.slice(b,b+T.count));b+=T.count,T.added||(w+=T.count)}}var A=d[g-1];return g>1&&typeof A.value=="string"&&(A.added||A.removed)&&s.equals("",A.value)&&(d[g-2].value+=A.value,d.pop()),d}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 pn=new nr;pn.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 pn.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 Ya(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ya=function(n){return typeof n}:Ya=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ya(s)}var xp=Object.prototype.toString,pa=new nr;pa.useLongestToken=!0,pa.tokenize=pn.tokenize,pa.castInput=function(s){var n=this.options,a=n.undefinedReplacement,o=n.stringifyReplacer,l=o===void 0?function(d,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(mn(s,null,null,l),l," ")},pa.equals=function(s,n){return nr.prototype.equals.call(pa,s.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function mn(s,n,a,o,l){n=n||[],a=a||[],o&&(s=o(l,s));var d;for(d=0;d<n.length;d+=1)if(n[d]===s)return a[d];var m;if(xp.call(s)==="[object Array]"){for(n.push(s),m=new Array(s.length),a.push(m),d=0;d<s.length;d+=1)m[d]=mn(s[d],n,a,o,l);return n.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Ya(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(),d=0;d<h.length;d+=1)g=h[d],m[g]=mn(s[g],n,a,o,g);n.pop(),a.pop()}else m=s;return m}var fn=new nr;fn.tokenize=function(s){return s.slice()},fn.join=fn.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 d=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,d,b,Ye.modified),d=0,o=void 0):(o&&o.added&&(a=this._changeHandle(l,a,d,o.count||1,Ye.added),d=0),o=m):g?o&&o.added?(a=this._changeHandle(l,a,d,o.count||1,Ye.modified),d=0,o=void 0):(o&&o.removed&&this._addDecorationList(l,a,Ye.removed),o=m):/^\n+$/.test(w)?o&&(o.added||o.removed)?d=b:a+=b:(o&&o.added?(a=this._changeHandle(l,a,d,o.count||1,Ye.added),d=0,o=void 0):o&&o.removed&&(this._addDecorationList(l,a,Ye.removed),o=void 0),a+=b)}return o&&o.added?a=this._changeHandle(l,a,d,o.count||1,Ye.added):o&&o.removed&&this._addDecorationList(l,a,Ye.removed),l}_changeHandle(n,a,o,l,d){for(let m=1;m<=l;m++)this._addDecorationList(n,a+m,d);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,d;const n=_p(this._originalModel.getValue(),((l=this._editor.getModel())==null?void 0:l.getValue())||""),a=this._changesHandle(n),o=((d=this._editor.getModel())==null?void 0:d.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-${Ye.added}`),l=a==null?void 0:a.contains(`line-${Ye.modified}`),d=a==null?void 0:a.contains(`line-${Ye.removed}`);if(o||l||d){const R=((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(R+1))||0,A=((w=this._editor)==null?void 0:w.getScrollTop())||0,z=o?Ye.added:l?Ye.modified:Ye.removed;(T=this._diffPopupWidget)==null||T.show(L-A,L,z),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,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(nn);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:dp}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n),!0)}),this._monaco.languages.registerDefinitionProvider(Re,{provideDefinition:pp})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",un),this._monaco.editor.defineTheme("vs",cn),this._monaco.languages.setMonarchTokensProvider(Re,on),this._monaco.languages.setLanguageConfiguration(Re,ln)}_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(De.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(De.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(De.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(nn);n&&n(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(nn,JSON.stringify(o.position)),n&&n(o.position)})}}/**
133
+ ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${l} ${Ae.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 dn=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),l=o.match(/([\w.]+)$/)||[],u=(R=l[0])==null?void 0:R.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=u?u[1]?u[1]:u[2]?u[2]:void 0:void 0,h=s.getWordUntilPosition(n),g=ca.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=ca.parseLineContentFuncVar(n.column,n.lineNumber,s,n);if(a&&a.docValue.length){const o=Yd(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),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=(R=u.pop())==null?void 0:R.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=ca.parseCurrentInputFuncAndArg(o,b,g);if(w){const{funcName:L,args:A}=w,z=ap.getSignatureHelpValues(L,A);if(z)return{value:z,dispose:()=>{console.log("dispose")}}}return null}function cp(s){let n=s.findMatches(dn.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}),dn.getDocumentColors(n)}function up(s,n){return dn.getDocumentColorPresentations(s,n)||[]}function dp(s,n,a){const o=s.getModel(),l=ca.parseLineContentFuncVar(a.startColumn+1,a.startLineNumber,o);if(!l||l.isBuildIn||!l.docValue||!l.docValue[0].pos)return!0;const{lineNumber:u,column:m}=l.docValue[0].pos,h={startLineNumber:u,endLineNumber:u,startColumn:m,endColumn:m};return s.revealRangeInCenterIfOutsideViewport(h),s.setSelection(h),!0}function pp(s,n){return{uri:s.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}}function oo(s,n){return s.map(a=>(a.range=n,a))}var ua={},da=Su;if(process.env.NODE_ENV==="production")ua.createRoot=da.createRoot,ua.hydrateRoot=da.hydrateRoot;else{var Ga=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ua.createRoot=function(s,n){Ga.usingClientEntryPoint=!0;try{return da.createRoot(s,n)}finally{Ga.usingClientEntryPoint=!1}},ua.hydrateRoot=function(s,n,a){Ga.usingClientEntryPoint=!0;try{return da.hydrateRoot(s,n,a)}finally{Ga.usingClientEntryPoint=!1}}}var Ye;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(Ye||(Ye={}));const mp=(s,n)=>{const{close:a,retracement:o}=s,[l,u]=M.useState("modified");return M.useImperativeHandle(n,()=>({updateType(m){u(m)}})),E.jsxs("div",{className:`content-popup content-${l}-popup`,children:[E.jsx("div",{className:`triangle-popup triangle-${l}-popup`}),E.jsxs("div",{className:`header-popup header-${l}-popup`,children:[E.jsx("div",{className:"title-popup",children:"Local working changes"}),E.jsx("div",{className:"actions-popup",children:E.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:E.jsx("span",{className:"icon-popup",role:"img",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:E.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),E.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},fp=M.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)),ua.createRoot(this._domNode).render(E.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(S){return u?(setTimeout(function(){u(void 0,S)},0),!0):S}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 R=(o=l.timeout)!==null&&o!==void 0?o:1/0,L=Date.now()+R,A=[{oldPos:-1,lastComponent:void 0}],z=this.extractCommon(A[0],a,n,0);if(A[0].oldPos+1>=b&&z+1>=g)return h([{value:this.join(a),count:a.length}]);var $=-1/0,X=1/0;function O(){for(var S=Math.max($,-w);S<=Math.min(X,w);S+=2){var F=void 0,J=A[S-1],G=A[S+1];J&&(A[S-1]=void 0);var ye=!1;if(G){var he=G.oldPos-S;ye=G&&0<=he&&he<g}var le=J&&J.oldPos+1<b;if(!ye&&!le){A[S]=void 0;continue}if(!le||ye&&J.oldPos+1<G.oldPos?F=m.addToPath(G,!0,void 0,0):F=m.addToPath(J,void 0,!0,1),z=m.extractCommon(F,a,n,S),F.oldPos+1>=b&&z+1>=g)return h(hp(m,F.lastComponent,a,n,m.useLongestToken));A[S]=F,F.oldPos+1>=b&&(X=Math.min(X,S-1)),z+1>=g&&($=Math.max($,S+1))}w++}if(u)(function S(){setTimeout(function(){if(w>T||Date.now()>L)return u();O()||S()},0)})();else for(;w<=T&&Date.now()<=L;){var U=O();if(U)return U}},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 R=a.slice(b,b+T.count);R=R.map(function(z,$){var X=o[w+$];return X.length>z.length?X:z}),T.value=s.join(R)}else T.value=s.join(a.slice(b,b+T.count));b+=T.count,T.added||(w+=T.count)}}var A=u[g-1];return g>1&&typeof A.value=="string"&&(A.added||A.removed)&&s.equals("",A.value)&&(u[g-2].value+=A.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 pn=new nr;pn.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 pn.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 Ya(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ya=function(n){return typeof n}:Ya=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ya(s)}var xp=Object.prototype.toString,pa=new nr;pa.useLongestToken=!0,pa.tokenize=pn.tokenize,pa.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(mn(s,null,null,l),l," ")},pa.equals=function(s,n){return nr.prototype.equals.call(pa,s.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function mn(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]=mn(s[u],n,a,o,l);return n.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Ya(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]=mn(s[g],n,a,o,g);n.pop(),a.pop()}else m=s;return m}var fn=new nr;fn.tokenize=function(s){return s.slice()},fn.join=fn.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,Ye.modified),u=0,o=void 0):(o&&o.added&&(a=this._changeHandle(l,a,u,o.count||1,Ye.added),u=0),o=m):g?o&&o.added?(a=this._changeHandle(l,a,u,o.count||1,Ye.modified),u=0,o=void 0):(o&&o.removed&&this._addDecorationList(l,a,Ye.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,Ye.added),u=0,o=void 0):o&&o.removed&&(this._addDecorationList(l,a,Ye.removed),o=void 0),a+=b)}return o&&o.added?a=this._changeHandle(l,a,u,o.count||1,Ye.added):o&&o.removed&&this._addDecorationList(l,a,Ye.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-${Ye.added}`),l=a==null?void 0:a.contains(`line-${Ye.modified}`),u=a==null?void 0:a.contains(`line-${Ye.removed}`);if(o||l||u){const R=((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(R+1))||0,A=((w=this._editor)==null?void 0:w.getScrollTop())||0,z=o?Ye.added:l?Ye.modified:Ye.removed;(T=this._diffPopupWidget)==null||T.show(L-A,L,z),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,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(nn);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:dp}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n),!0)}),this._monaco.languages.registerDefinitionProvider(Re,{provideDefinition:pp})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",un),this._monaco.editor.defineTheme("vs",cn),this._monaco.languages.setMonarchTokensProvider(Re,on),this._monaco.languages.setLanguageConfiguration(Re,ln)}_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(De.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(De.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(De.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(nn);n&&n(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(nn,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"),yn=Symbol("Comlink.finalizer"),Va=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(),hn(s)}},Dp={canHandle:s=>mo(s)&&Va 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:d,type:m,path:h}=Object.assign({path:[]},l.data),g=(l.data.argumentList||[]).map(br);let b;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":b=T;break;case"SET":w[h.slice(-1)[0]]=br(l.data.value),b=!0;break;case"APPLY":b=T.apply(w,g);break;case"CONSTRUCT":{const R=new T(...g);b=Op(R)}break;case"ENDPOINT":{const{port1:R,port2:L}=new MessageChannel;yo(s,L),b=Np(R,[R])}break;case"RELEASE":b=void 0;break;default:return}}catch(w){b={value:w,[Va]:0}}Promise.resolve(b).catch(w=>({value:w,[Va]:0})).then(w=>{const[T,R]=Ja(w);n.postMessage(Object.assign(Object.assign({},T),{id:d}),R),m==="RELEASE"&&(n.removeEventListener("message",o),ho(n),yn in s&&typeof s[yn]=="function"&&s[yn]())}).catch(w=>{const[T,R]=Ja({value:new TypeError("Unserializable return value"),[Va]:0});n.postMessage(Object.assign(Object.assign({},T),{id:d}),R)})}),n.start&&n.start()}function qp(s){return s.constructor.name==="MessagePort"}function ho(s){qp(s)&&s.close()}function hn(s,n){return _n(s,[],n)}function Ka(s){if(s)throw new Error("Proxy has been released and is not useable")}function _o(s){return Or(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 _n(s,n=[],a=function(){}){let o=!1;const l=new Proxy(a,{get(d,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=Or(s,{type:"GET",path:n.map(g=>g.toString())}).then(br);return h.then.bind(h)}return _n(s,[...n,m])},set(d,m,h){Ka(o);const[g,b]=Ja(h);return Or(s,{type:"SET",path:[...n,m].map(w=>w.toString()),value:g},b).then(br)},apply(d,m,h){Ka(o);const g=n[n.length-1];if(g===Tp)return Or(s,{type:"ENDPOINT"}).then(br);if(g==="bind")return _n(s,n.slice(0,-1));const[b,w]=go(h);return Or(s,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:b},w).then(br)},construct(d,m){Ka(o);const[h,g]=go(m);return Or(s,{type:"CONSTRUCT",path:n.map(b=>b.toString()),argumentList:h},g).then(br)}});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 br(s){switch(s.type){case"HANDLER":return fo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Or(s,n,a){return new Promise(o=>{const l=Pp();s.addEventListener("message",function d(m){!m.data||!m.data.id||m.data.id!==l||(s.removeEventListener("message",d),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:ja&&ja.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=hn(xo),Ep=hn(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:ja&&ja.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:d,methods:m}=lt;return await Ep(s,n,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(d)})}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 Yo;(function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"})(Yo||(Yo={}));var Vo;(function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"})(Vo||(Vo={}));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:d,hasDiff:m,readOnly:h,defaultValue:g,onChange:b,onLinkOpen:w,onDeclareConfigChange:T,onCursorPositionChange:R,onActionTrigger:L,onEditorDidMount:A}=s,z=M.useRef(null);M.useImperativeHandle(n,()=>({setOriginalScript(S){var F;(F=z.current)==null||F.setOriginalScript(S)},setScript(S){var F;(F=z.current)==null||F.setValue(S)},gotoLine(){var S;(S=z.current)==null||S.gotoLine()},getEditorLayout(){var S;return(S=z.current)==null?void 0:S.getEditorLayout()},setPosition(S,F){var J;(J=z.current)==null||J.setPosition({column:S,lineNumber:F})},setModelMarkers(S){var F;(F=z.current)==null||F.setModelMarkers(S)}})),M.useEffect(()=>{var S,F;m?(F=z.current)==null||F.addDiffDecorations():(S=z.current)==null||S.removeDiffDecorations()},[m]),M.useEffect(()=>{var S;(S=z.current)==null||S.updateActionTrigger(L)},[L]),M.useEffect(()=>{var S;w&&((S=z.current)==null||S.addLinkOpenFunc(w))},[w]),M.useEffect(()=>{var S;a&&((S=z.current)==null||S.setEditorLayout(Number(a)))},[a,z.current]);function $(S,F){var G,ye,he;Mt.initBuiltinsTrees(),z.current=new vp(S,F,L),w&&((G=z.current)==null||G.addLinkOpenFunc(w)),m&&((ye=z.current)==null||ye.addDiffDecorations()),Qd(S),(he=z.current)==null||he.setEditorLayout(Number(a));const J=S.getValue();z.current.onChangeCursorPosition(R),b&&b(J),!h&&X(J),A&&A()}const X=M.useCallback(async S=>{var ct;const F=Date.now(),{errors:J,functions:G,methods:ye,types:he,variables:le,overloadsFuncs:bt,preParserCode:zt}=await vo(S),Me=new Map(Object.entries(G)),Fe=new Map(Object.entries(ye)),Y=new Map(Object.entries(he)),me=new Map(Object.entries(le));ca.setUserDefined({functions:Me,methods:Fe,types:Y,variables:me},bt),Mt.setUserDefind(Me,Y,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})}(ct=z.current)==null||ct.setModelMarkers(Oe);const Le=Date.now();console.log((Le-F)/1e3)},[T,h]),E=M.useMemo(()=>no.debounce(X,1e3),[X]);function U(S){var F;if(h){X(S||"");return}(F=z.current)==null||F.setModelMarkers([]),S!==void 0&&(b&&b(S),E(S))}return P.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"),yn=Symbol("Comlink.finalizer"),Va=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(),hn(s)}},Dp={canHandle:s=>mo(s)&&Va 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((R,L)=>R[L],s),T=h.reduce((R,L)=>R[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 R=new T(...g);b=Op(R)}break;case"ENDPOINT":{const{port1:R,port2:L}=new MessageChannel;yo(s,L),b=Np(R,[R])}break;case"RELEASE":b=void 0;break;default:return}}catch(w){b={value:w,[Va]:0}}Promise.resolve(b).catch(w=>({value:w,[Va]:0})).then(w=>{const[T,R]=Ja(w);n.postMessage(Object.assign(Object.assign({},T),{id:u}),R),m==="RELEASE"&&(n.removeEventListener("message",o),ho(n),yn in s&&typeof s[yn]=="function"&&s[yn]())}).catch(w=>{const[T,R]=Ja({value:new TypeError("Unserializable return value"),[Va]:0});n.postMessage(Object.assign(Object.assign({},T),{id:u}),R)})}),n.start&&n.start()}function qp(s){return s.constructor.name==="MessagePort"}function ho(s){qp(s)&&s.close()}function hn(s,n){return _n(s,[],n)}function Ka(s){if(s)throw new Error("Proxy has been released and is not useable")}function _o(s){return Or(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 _n(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=Or(s,{type:"GET",path:n.map(g=>g.toString())}).then(gr);return h.then.bind(h)}return _n(s,[...n,m])},set(u,m,h){Ka(o);const[g,b]=Ja(h);return Or(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 Or(s,{type:"ENDPOINT"}).then(gr);if(g==="bind")return _n(s,n.slice(0,-1));const[b,w]=go(h);return Or(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 Or(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 Or(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:ja&&ja.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=hn(xo),Ep=hn(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:ja&&ja.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}=lt;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 Yo;(function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"})(Yo||(Yo={}));var Vo;(function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"})(Vo||(Vo={}));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:R,onActionTrigger:L,onEditorDidMount:A}=s,z=M.useRef(null);M.useImperativeHandle(n,()=>({setOriginalScript(S){var F;(F=z.current)==null||F.setOriginalScript(S)},setScript(S){var F;(F=z.current)==null||F.setValue(S)},gotoLine(){var S;(S=z.current)==null||S.gotoLine()},getEditorLayout(){var S;return(S=z.current)==null?void 0:S.getEditorLayout()},setPosition(S,F){var J;(J=z.current)==null||J.setPosition({column:S,lineNumber:F})},setModelMarkers(S){var F;(F=z.current)==null||F.setModelMarkers(S)}})),M.useEffect(()=>{var S,F;m?(F=z.current)==null||F.addDiffDecorations():(S=z.current)==null||S.removeDiffDecorations()},[m]),M.useEffect(()=>{var S;(S=z.current)==null||S.updateActionTrigger(L)},[L]),M.useEffect(()=>{var S;w&&((S=z.current)==null||S.addLinkOpenFunc(w))},[w]),M.useEffect(()=>{var S;a&&((S=z.current)==null||S.setEditorLayout(Number(a)))},[a,z.current]);function $(S,F){var G,ye,he;Mt.initBuiltinsTrees(),z.current=new vp(S,F,L),w&&((G=z.current)==null||G.addLinkOpenFunc(w)),m&&((ye=z.current)==null||ye.addDiffDecorations()),Qd(S),(he=z.current)==null||he.setEditorLayout(Number(a));const J=S.getValue();z.current.onChangeCursorPosition(R),b&&b(J),!h&&X(J),A&&A()}const X=M.useCallback(async S=>{var ct;const F=Date.now(),{errors:J,functions:G,methods:ye,types:he,variables:le,overloadsFuncs:bt,preParserCode:zt}=await vo(S),Me=new Map(Object.entries(G)),Fe=new Map(Object.entries(ye)),Y=new Map(Object.entries(he)),me=new Map(Object.entries(le));ca.setUserDefined({functions:Me,methods:Fe,types:Y,variables:me},bt),Mt.setUserDefind(Me,Y,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})}(ct=z.current)==null||ct.setModelMarkers(Oe);const Le=Date.now();console.log((Le-F)/1e3)},[T,h]),O=M.useMemo(()=>no.debounce(X,1e3),[X]);function U(S){var F;if(h){X(S||"");return}(F=z.current)==null||F.setModelMarkers([]),S!==void 0&&(b&&b(S),O(S))}return E.jsx(Bd,{height:a,width:o||"100%",defaultLanguage:Re,defaultValue:g||`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:"该脚本是只读的。它无法被编辑。"},...d},onMount:$,onChange:U})},jp=M.forwardRef(Fp),Bp=s=>{const{theme:n,modified:a,original:o,height:l,width:d,renderSideBySide:m=!0}=s,h=M.useCallback((g,b)=>{b.languages.register({id:Re}),b.editor.defineTheme("vs-dark",un),b.editor.defineTheme("vs",cn),b.languages.setMonarchTokensProvider(Re,on),b.languages.setLanguageConfiguration(Re,ln)},[]);return P.jsx(Rd,{height:l||"90vh",width:d||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Re,modified:a,original:o,onMount:h})};De.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"}(De.VMarkerSeverity||(De.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,d,m,h,g=!1;n||(n={}),a=n.debug||!1;try{l=Wp(),d=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),d.selectNodeContents(h),m.addRange(d);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(d):m.removeAllRanges()),h&&document.body.removeChild(h),l()}return g}var Gp=Xp;function gn(s){"@babel/helpers - typeof";return gn=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},gn(s)}Object.defineProperty(es,"__esModule",{value:!0}),es.CopyToClipboard=void 0;var ts=Jo(M),Yp=Jo(Gp),Vp=["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){xn(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 d=Object.getOwnPropertySymbols(s);for(l=0;l<d.length;l++)o=d[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,d;for(d=0;d<o.length;d++)l=o[d],!(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&&bn(s,n)}function bn(s,n){return bn=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},bn(s,n)}function tm(s){var n=am();return function(){var o=rs(s),l;if(n){var d=rs(this).constructor;l=Reflect.construct(o,arguments,d)}else l=o.apply(this,arguments);return rm(this,l)}}function rm(s,n){if(n&&(gn(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 xn(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,d=new Array(l),m=0;m<l;m++)d[m]=arguments[m];return o=n.call.apply(n,[this].concat(d)),xn(al(o),"onClick",function(h){var g=o.props,b=g.text,w=g.onCopy,T=g.children,R=g.options,L=ts.default.Children.only(T),A=(0,Yp.default)(b,R);w&&w(b,A),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 d=l.children,m=Kp(l,Vp),h=ts.default.Children.only(d);return ts.default.cloneElement(h,tl(tl({},m),{},{onClick:this.onClick}))}}]),a}(ts.default.PureComponent);es.CopyToClipboard=sl,xn(sl,"defaultProps",{onCopy:void 0,options:void 0});var sm=es,wn=sm.CopyToClipboard;wn.CopyToClipboard=wn;var nm=wn;const vn=Ou(nm);async function im(s,n=0){const a=s[n];if(!a)return;const{name:o,args:l,type:d,desc:m,examples:h,remarks:g,seeAlso:b,syntax:w,detailedDesc:T,fields:R,returns:L}=a,A={name:o};if(s.length>1&&(A.overloads=`${s.length} overloads`),d&&(A.type=d),l&&(A.name=`${o}()`,A.args=l.map(z=>{const{name:$,desc:X,displayType:E}=z;return{label:`${$} (${E})`,desc:X&&ir(X)}})),m&&(A.desc=m.map(z=>ir(z))),h&&(A.originalExample=h.join(`
141
- `),A.examples=await Se.editor.colorize(A.originalExample,Re,{tabSize:4})),T){A.detailedDesc=[];for(const z of T){const{desc:$,examples:X}=z;let E=$.map(F=>ir(F)),U,S;X&&(S=X.join(`
142
- `),U=await Se.editor.colorize(S,Re,{tabSize:4})),A.detailedDesc.push({desc:E,examples:U,originalExample:S})}}return L&&(A.returns=L.map(z=>ir(z))),g&&(A.remarks=typeof g=="string"?[ir(g)]:g.map(z=>ir(z))),w&&(A.syntax=s.map(z=>{var $;return($=z.syntax)==null?void 0:$[0]})),R&&(A.fields=R.map(z=>{const{name:$,desc:X,type:E}=z;return{label:`${$} (${E})`,desc:X&&ir(X)}})),b&&(A.seeAlso=b.map(z=>ir(z,!0))),A}function ir(s,n=!1){var d;const a=/\*\*([^\*]+)\*\*/g,o=/\`([^\`]+)\`/g,l=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return n&&(s=((d=l.exec(s))==null?void 0:d[0])||""),s.replace(a,(m,h)=>`<strong>${h}</strong>`).replace(o,(m,h)=>`<code>${h}</code>`).replace(l,(m,h,g)=>`<a ${g.startsWith("#")?`data-name="${h}"`:'target="_blank"'} class="${n?"manual-content-see_also-tag":"manual-content-text-link"}" href="${g}">${h}</a>`)}function om(s){var o;const n=[],a=[];for(const l of $a){for(let d of sn[l.key].sort()){if(so.includes(d))continue;let m=d;l.prefix==="fun"&&(m=`${d}()`),m.includes(s)&&(m.startsWith(s)?n.unshift({label:m,group:l,key:`${l.prefix}_${d}`}):n.push({label:m,group:l,key:`${l.prefix}_${d}`}))}for(const[d,m]of lt[l.key])for(const h of m){const{name:g,args:b,type:w,desc:T,examples:R,remarks:L,seeAlso:A,syntax:z,detailedDesc:$,fields:X,returns:E}=h,U={label:g,group:l,key:`${l.prefix}_${g}`};if(l.prefix==="fun"&&(U.label=`${g}()`),U.label.includes(s))break;if(b){let S=!1;for(const F of b){const{name:J,desc:G,displayType:ye}=F;if(J.includes(s)||G!=null&&G.includes(s)||ye!=null&&ye.includes(s)){a.push(U),S=!0;break}}if(S)break}if(w&&w.includes(s)){a.push(U);break}if(T){let S=!1;for(const F of T)if(F.includes(s)){a.push(U),S=!0;break}if(S)break}if(R){let S=!1;for(const F of R)if(F.includes(s)){a.push(U),S=!0;break}if(S)break}if(L&&(typeof L=="string"?L:L.join(`
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:$,onChange:U})},jp=M.forwardRef(Fp),Bp=s=>{const{theme:n,modified:a,original:o,height:l,width:u,renderSideBySide:m=!0}=s,h=M.useCallback((g,b)=>{b.languages.register({id:Re}),b.editor.defineTheme("vs-dark",un),b.editor.defineTheme("vs",cn),b.languages.setMonarchTokensProvider(Re,on),b.languages.setLanguageConfiguration(Re,ln)},[]);return E.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})};De.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"}(De.VMarkerSeverity||(De.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 gn(s){"@babel/helpers - typeof";return gn=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},gn(s)}Object.defineProperty(es,"__esModule",{value:!0}),es.CopyToClipboard=void 0;var ts=Jo(M),Yp=Jo(Gp),Vp=["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){xn(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&&bn(s,n)}function bn(s,n){return bn=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},bn(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&&(gn(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 xn(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)),xn(al(o),"onClick",function(h){var g=o.props,b=g.text,w=g.onCopy,T=g.children,R=g.options,L=ts.default.Children.only(T),A=(0,Yp.default)(b,R);w&&w(b,A),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,Vp),h=ts.default.Children.only(u);return ts.default.cloneElement(h,tl(tl({},m),{},{onClick:this.onClick}))}}]),a}(ts.default.PureComponent);es.CopyToClipboard=sl,xn(sl,"defaultProps",{onCopy:void 0,options:void 0});var sm=es,wn=sm.CopyToClipboard;wn.CopyToClipboard=wn;var nm=wn;const vn=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:R,returns:L}=a,A={name:o};if(s.length>1&&(A.overloads=`${s.length} overloads`),u&&(A.type=u),l&&(A.name=`${o}()`,A.args=l.map(z=>{const{name:$,desc:X,displayType:O}=z;return{label:`${$} (${O})`,desc:X&&br(X)}})),m&&(A.desc=m.map(z=>br(z))),h&&(A.originalExample=h.join(`
141
+ `),A.examples=await Se.editor.colorize(A.originalExample,Re,{tabSize:4})),T){A.detailedDesc=[];for(const z of T){const{desc:$,examples:X}=z;let O=$.map(F=>br(F)),U,S;X&&(S=X.join(`
142
+ `),U=await Se.editor.colorize(S,Re,{tabSize:4})),A.detailedDesc.push({desc:O,examples:U,originalExample:S})}}return L&&(A.returns=L.map(z=>br(z))),g&&(A.remarks=typeof g=="string"?[br(g)]:g.map(z=>br(z))),w&&(A.syntax=s.map(z=>{var $;return($=z.syntax)==null?void 0:$[0]})),R&&(A.fields=R.map(z=>{const{name:$,desc:X,type:O}=z;return{label:`${$} (${O})`,desc:X&&br(X)}})),b&&(A.seeAlso=b.map(z=>om(z))),A}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 $a){for(let u of sn[l.key].sort()){if(so.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 lt[l.key])for(const h of m){const{name:g,args:b,type:w,desc:T,examples:R,remarks:L,seeAlso:A,syntax:z,detailedDesc:$,fields:X,returns:O}=h,U={label:g,group:l,key:`${l.prefix}_${g}`};if(l.prefix==="fun"&&(U.label=`${g}()`),U.label.includes(s))break;if(b){let S=!1;for(const F of b){const{name:J,desc:G,displayType:ye}=F;if(J.includes(s)||G!=null&&G.includes(s)||ye!=null&&ye.includes(s)){a.push(U),S=!0;break}}if(S)break}if(w&&w.includes(s)){a.push(U);break}if(T){let S=!1;for(const F of T)if(F.includes(s)){a.push(U),S=!0;break}if(S)break}if(R){let S=!1;for(const F of R)if(F.includes(s)){a.push(U),S=!0;break}if(S)break}if(L&&(typeof L=="string"?L:L.join(`
143
143
  `)).includes(s)){a.push(U);break}if(A){let S=!1;for(const F of A)if(F.includes(s)){a.push(U),S=!0;break}if(S)break}if(z){let S=!1;for(const F of z)if(F.includes(s)){a.push(U),S=!0;break}if(S)break}if($){let S=!1;for(const F of $){const{desc:J,examples:G}=F;if(J.join(`
144
144
  `).includes(s)){a.push(U),S=!0;break}if((o=G==null?void 0:G.join(`
145
- `))!=null&&o.includes(s)){a.push(U),S=!0;break}}if(S)break}if(X){let S=!1;for(const F of X){const{name:J,desc:G,type:ye}=F;if(J.includes(s)||G!=null&&G.includes(s)||ye!=null&&ye.includes(s)){a.push(U),S=!0;break}}if(S)break}if(E){let S=!1;for(const F of E)if(F.includes(s)){a.push(U),S=!0;break}if(S)break}}}return{labelList:n,contentList:a}}const lm=s=>{var X;const{group:n,itemKey:a,onItemClick:o}=s,[l,d]=M.useState(),[m,h]=M.useState(0),[g,b]=M.useState("Copy code"),[w,T]=M.useState("Copy link");M.useEffect(()=>{R(0)},[a]);const R=E=>{const U=a.replace(`${n==null?void 0:n.prefix}_`,""),S=lt[n==null?void 0:n.key].get(U);h(E),S&&im(S,E).then(F=>{d(F)})},L=E=>{R(E)},A=E=>{var U,S;if(E.target.localName==="a"&&E.target.hash&&((S=(U=E.target)==null?void 0:U.dataset)!=null&&S.name)){E.preventDefault();const{hash:F}=E.target;o(F.replace("#",""))}},z=()=>{b("Copied"),setTimeout(()=>{b("Copy code")},1e3)},$=()=>{T("Link copied"),setTimeout(()=>{T("Copy link")},3e3)};return P.jsx("div",{onClick:A,id:`#${a}`,children:P.jsxs("div",{className:"manual-content-wrapper",children:[P.jsxs("div",{className:"manual-content-header",children:[P.jsxs("div",{children:[P.jsx("h3",{className:"manual-content-header-title",children:l==null?void 0:l.name}),!!(l!=null&&l.overloads)&&P.jsx("span",{className:"manual-content-header-overloads",children:l==null?void 0:l.overloads})]}),P.jsx(vn,{text:(l==null?void 0:l.name)||"",onCopy:$,children:P.jsx("div",{"data-tooltip":w,className:"manual-content-btn",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:P.jsxs("g",{fill:"currentColor",children:[P.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"}),P.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(X=l==null?void 0:l.desc)==null?void 0:X.map((E,U)=>P.jsx("div",{dangerouslySetInnerHTML:{__html:E},className:"manual-content-text"},U)),(l==null?void 0:l.type)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"type"}),P.jsx("div",{className:"manual-content-text",children:l.type})]}),(l==null?void 0:l.syntax)&&P.jsxs(M.Fragment,{children:[P.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(l!=null&&l.overloads)&&"& Overloads"]}),l.syntax.map((E,U)=>{var S;return(((S=l.syntax)==null?void 0:S.length)||0)>1?P.jsx("div",{onClick:()=>L(U),children:P.jsx("pre",{className:`manual-content-syntax with-overloads ${U===m?"selected":""}`,children:E})},U):P.jsx("pre",{className:"manual-content-syntax",children:E},U)})]}),(l==null?void 0:l.args)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),l.args.map((E,U)=>P.jsxs("div",{className:"manual-content-text",children:[P.jsx("span",{className:"manual-content-args-label",children:E.label})," ",P.jsx("span",{dangerouslySetInnerHTML:{__html:E.desc||""}})]},U))]}),(l==null?void 0:l.fields)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"fields"}),l.fields.map((E,U)=>P.jsxs("div",{className:"manual-content-text",children:[P.jsx("span",{className:"manual-content-args-label",children:E.label})," ",P.jsx("span",{dangerouslySetInnerHTML:{__html:E.desc||""}})]},U))]}),(l==null?void 0:l.examples)&&P.jsxs(M.Fragment,{children:[P.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[P.jsx("div",{children:P.jsx("span",{children:"example"})}),P.jsx(vn,{text:l.originalExample||"",onCopy:z,children:P.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:P.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"})})})})]}),P.jsx("pre",{className:"manual-content-example",children:P.jsx("code",{dangerouslySetInnerHTML:{__html:l.examples}})})]}),(l==null?void 0:l.detailedDesc)&&l.detailedDesc.map((E,U)=>P.jsxs(M.Fragment,{children:[E.desc.map((S,F)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:S}},F)),P.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[P.jsx("div",{children:P.jsx("span",{children:"example"})}),P.jsx(vn,{text:E.originalExample||"",onCopy:z,children:P.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:P.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"})})})})]}),P.jsx("pre",{className:"manual-content-example",children:P.jsx("code",{dangerouslySetInnerHTML:{__html:E.examples||""}})})]},U)),(l==null?void 0:l.returns)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"returns"}),l.returns.map((E,U)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:E}},U))]}),(l==null?void 0:l.remarks)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),l.remarks.map((E,U)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:E}},U))]}),(l==null?void 0:l.seeAlso)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),P.jsx("div",{className:"manual-content-see_also",children:l.seeAlso.map((E,U)=>P.jsx("div",{dangerouslySetInnerHTML:{__html:E}},U))})]})]})})};Se.languages.register({id:Re}),Se.editor.defineTheme("vs-dark",un),Se.editor.defineTheme("vs",cn),Se.languages.setMonarchTokensProvider(Re,on),Se.languages.setLanguageConfiguration(Re,ln);const cm=({theme:s="vs-dark"})=>{const[n,a]=M.useState($a[0]),[o,l]=M.useState(null),[d,m]=M.useState(""),[h,g]=M.useState("var_bar_index"),b=M.useRef(null),w=A=>{A.key===(n==null?void 0:n.key)?a(null):a(A)};M.useEffect(()=>{Se.editor.setTheme(s)},[s]);const T=(A,z)=>{z&&a(z),g(A)},R=A=>{if(m(A.target.value),A.target.value.trim()==="")l(null);else{const z=om(A.target.value);l(z)}},L=A=>{const z=$a.find($=>A.startsWith($.prefix));z&&(a(z),g(A),setTimeout(()=>{var $,X;(X=($=b.current)==null?void 0:$.querySelector(`a[data-href="${A}"]`))==null||X.scrollIntoView(!0)},10))};return P.jsxs("div",{className:`${s} manual-warpper`,children:[P.jsxs("div",{className:"manual-left",children:[P.jsxs("div",{className:"manual-search",children:[P.jsx("span",{className:"manual-search-icon",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:P.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"})})}),P.jsx("input",{onChange:R,spellCheck:"false",value:d,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),P.jsx("span",{onClick:()=>m(""),className:`manual-search-clear ${d?"":"hide"}`,children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:P.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"})})})]}),P.jsx("div",{className:`manual-group-search-list manual-scroll ${d?"":"hide"}`,children:P.jsxs("div",{children:[o==null?void 0:o.labelList.map(A=>P.jsx("a",{onClick:z=>{z.preventDefault(),T(A.key,A.group)},className:`manual-group-body-item ${A.key===h?"manual-group-body-item-selected":""}`,"data-href":A.key,href:`#${A.key}`,children:A.label},`search_${A.key}`)),P.jsx("div",{className:"manual-content-separator"}),o==null?void 0:o.contentList.map(A=>P.jsx("a",{onClick:z=>{z.preventDefault(),T(A.key,A.group)},className:`manual-group-body-item ${A.key===h?"manual-group-body-item-selected":""}`,"data-href":A.key,href:`#${A.key}`,children:A.label},`search_${A.key}`))]})}),P.jsx("div",{className:`manual-group-list manual-scroll ${d?"hide":""}`,ref:b,children:$a.map(A=>{var z,$;return P.jsxs(M.Fragment,{children:[P.jsx("div",{onClick:()=>w(A),className:`manual-group-title ${A.key===(n==null?void 0:n.key)?"active":""}`,children:A.title}),P.jsx("div",{className:`manual-group-body manual-scroll ${A.key!==(n==null?void 0:n.key)?"hide":""}`,children:($=(z=sn[A.key])==null?void 0:z.sort().filter(X=>!so.includes(X)))==null?void 0:$.map(X=>{const E=`${A.prefix}_${X}`;return P.jsx("a",{onClick:U=>{U.preventDefault(),T(E)},className:`manual-group-body-item ${E===h?"manual-group-body-item-selected":""}`,"data-href":E,href:`#${E}`,children:`${X}${A.prefix==="fun"?"()":""}`},E)})})]},A.key)})})]}),P.jsx("div",{className:"manual-right manual-scroll",children:P.jsx(lm,{group:n,itemKey:h,onItemClick:L})})]})};De.ReferenceManual=cm,De.TradingVueDiffEditor=Bp,De.TradingVueEditor=jp,De.parseTcc=vo,De.removeScript=Rp,De.scriptsRun=To,Object.defineProperty(De,Symbol.toStringTag,{value:"Module"})});
145
+ `))!=null&&o.includes(s)){a.push(U),S=!0;break}}if(S)break}if(X){let S=!1;for(const F of X){const{name:J,desc:G,type:ye}=F;if(J.includes(s)||G!=null&&G.includes(s)||ye!=null&&ye.includes(s)){a.push(U),S=!0;break}}if(S)break}if(O){let S=!1;for(const F of O)if(F.includes(s)){a.push(U),S=!0;break}if(S)break}}}return{labelList:n,contentList:a}}const cm=s=>{var X;const{group:n,itemKey:a,onItemClick:o}=s,[l,u]=M.useState(),[m,h]=M.useState(0),[g,b]=M.useState("Copy code"),[w,T]=M.useState("Copy link");M.useEffect(()=>{R(0)},[a]);const R=O=>{const U=a.replace(`${n==null?void 0:n.prefix}_`,""),S=lt[n==null?void 0:n.key].get(U);h(O),S&&im(S,O).then(F=>{u(F)})},L=O=>{R(O)},A=O=>{var U,S;if(O.target.localName==="a"&&O.target.hash&&((S=(U=O.target)==null?void 0:U.dataset)!=null&&S.name)){O.preventDefault();const{hash:F}=O.target;o(F.replace("#",""))}},z=()=>{b("Copied"),setTimeout(()=>{b("Copy code")},1e3)},$=()=>{T("Link copied"),setTimeout(()=>{T("Copy link")},3e3)};return E.jsx("div",{onClick:A,id:`#${a}`,children:E.jsxs("div",{className:"manual-content-wrapper",children:[E.jsxs("div",{className:"manual-content-header",children:[E.jsxs("div",{children:[E.jsx("h3",{className:"manual-content-header-title",children:l==null?void 0:l.name}),!!(l!=null&&l.overloads)&&E.jsx("span",{className:"manual-content-header-overloads",children:l==null?void 0:l.overloads})]}),E.jsx(vn,{text:(l==null?void 0:l.name)||"",onCopy:$,children:E.jsx("div",{"data-tooltip":w,className:"manual-content-btn",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:E.jsxs("g",{fill:"currentColor",children:[E.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"}),E.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(X=l==null?void 0:l.desc)==null?void 0:X.map((O,U)=>E.jsx("div",{dangerouslySetInnerHTML:{__html:O},className:"manual-content-text"},U)),(l==null?void 0:l.type)&&E.jsxs(M.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"type"}),E.jsx("div",{className:"manual-content-text",children:l.type})]}),(l==null?void 0:l.syntax)&&E.jsxs(M.Fragment,{children:[E.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(l!=null&&l.overloads)&&"& Overloads"]}),l.syntax.map((O,U)=>{var S;return(((S=l.syntax)==null?void 0:S.length)||0)>1?E.jsx("div",{onClick:()=>L(U),children:E.jsx("pre",{className:`manual-content-syntax with-overloads ${U===m?"selected":""}`,children:O})},U):E.jsx("pre",{className:"manual-content-syntax",children:O},U)})]}),(l==null?void 0:l.args)&&E.jsxs(M.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),l.args.map((O,U)=>E.jsxs("div",{className:"manual-content-text",children:[E.jsx("span",{className:"manual-content-args-label",children:O.label})," ",E.jsx("span",{dangerouslySetInnerHTML:{__html:O.desc||""}})]},U))]}),(l==null?void 0:l.fields)&&E.jsxs(M.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"fields"}),l.fields.map((O,U)=>E.jsxs("div",{className:"manual-content-text",children:[E.jsx("span",{className:"manual-content-args-label",children:O.label})," ",E.jsx("span",{dangerouslySetInnerHTML:{__html:O.desc||""}})]},U))]}),(l==null?void 0:l.examples)&&E.jsxs(M.Fragment,{children:[E.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[E.jsx("div",{children:E.jsx("span",{children:"example"})}),E.jsx(vn,{text:l.originalExample||"",onCopy:z,children:E.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:E.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"})})})})]}),E.jsx("pre",{className:"manual-content-example",children:E.jsx("code",{dangerouslySetInnerHTML:{__html:l.examples}})})]}),(l==null?void 0:l.detailedDesc)&&l.detailedDesc.map((O,U)=>E.jsxs(M.Fragment,{children:[O.desc.map((S,F)=>E.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:S}},F)),E.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[E.jsx("div",{children:E.jsx("span",{children:"example"})}),E.jsx(vn,{text:O.originalExample||"",onCopy:z,children:E.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:E.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"})})})})]}),E.jsx("pre",{className:"manual-content-example",children:E.jsx("code",{dangerouslySetInnerHTML:{__html:O.examples||""}})})]},U)),(l==null?void 0:l.returns)&&E.jsxs(M.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"returns"}),l.returns.map((O,U)=>E.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:O}},U))]}),(l==null?void 0:l.remarks)&&E.jsxs(M.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),l.remarks.map((O,U)=>E.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:O}},U))]}),(l==null?void 0:l.seeAlso)&&E.jsxs(M.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),E.jsx("div",{className:"manual-content-see_also",children:l.seeAlso.map((O,U)=>E.jsx("a",{className:"manual-content-see_also-tag","data-name":O==null?void 0:O.name,href:O==null?void 0:O.link,children:O==null?void 0:O.name},U))})]})]})})};Se.languages.register({id:Re}),Se.editor.defineTheme("vs-dark",un),Se.editor.defineTheme("vs",cn),Se.languages.setMonarchTokensProvider(Re,on),Se.languages.setLanguageConfiguration(Re,ln);const um=({theme:s="vs-dark"})=>{const[n,a]=M.useState($a[0]),[o,l]=M.useState(null),[u,m]=M.useState(""),[h,g]=M.useState("var_bar_index"),b=M.useRef(null),w=A=>{A.key===(n==null?void 0:n.key)?a(null):a(A)};M.useEffect(()=>{Se.editor.setTheme(s)},[s]);const T=(A,z)=>{z&&a(z),g(A)},R=A=>{if(m(A.target.value),A.target.value.trim()==="")l(null);else{const z=lm(A.target.value);l(z)}},L=A=>{const z=$a.find($=>A.startsWith($.prefix));z&&(a(z),g(A),setTimeout(()=>{var $,X;(X=($=b.current)==null?void 0:$.querySelector(`a[data-href="${A}"]`))==null||X.scrollIntoView(!0)},10))};return E.jsxs("div",{className:`${s} manual-warpper`,children:[E.jsxs("div",{className:"manual-left",children:[E.jsxs("div",{className:"manual-search",children:[E.jsx("span",{className:"manual-search-icon",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:E.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"})})}),E.jsx("input",{onChange:R,spellCheck:"false",value:u,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),E.jsx("span",{onClick:()=>m(""),className:`manual-search-clear ${u?"":"hide"}`,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:E.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"})})})]}),E.jsx("div",{className:`manual-group-search-list manual-scroll ${u?"":"hide"}`,children:E.jsxs("div",{children:[o==null?void 0:o.labelList.map(A=>E.jsx("a",{onClick:z=>{z.preventDefault(),T(A.key,A.group)},className:`manual-group-body-item ${A.key===h?"manual-group-body-item-selected":""}`,"data-href":A.key,href:`#${A.key}`,children:A.label},`search_${A.key}`)),E.jsx("div",{className:"manual-content-separator"}),o==null?void 0:o.contentList.map(A=>E.jsx("a",{onClick:z=>{z.preventDefault(),T(A.key,A.group)},className:`manual-group-body-item ${A.key===h?"manual-group-body-item-selected":""}`,"data-href":A.key,href:`#${A.key}`,children:A.label},`search_${A.key}`))]})}),E.jsx("div",{className:`manual-group-list manual-scroll ${u?"hide":""}`,ref:b,children:$a.map(A=>{var z,$;return E.jsxs(M.Fragment,{children:[E.jsx("div",{onClick:()=>w(A),className:`manual-group-title ${A.key===(n==null?void 0:n.key)?"active":""}`,children:A.title}),E.jsx("div",{className:`manual-group-body manual-scroll ${A.key!==(n==null?void 0:n.key)?"hide":""}`,children:($=(z=sn[A.key])==null?void 0:z.sort().filter(X=>!so.includes(X)))==null?void 0:$.map(X=>{const O=`${A.prefix}_${X}`;return E.jsx("a",{onClick:U=>{U.preventDefault(),T(O)},className:`manual-group-body-item ${O===h?"manual-group-body-item-selected":""}`,"data-href":O,href:`#${O}`,children:`${X}${A.prefix==="fun"?"()":""}`},O)})})]},A.key)})})]}),E.jsx("div",{className:"manual-right manual-scroll",children:E.jsx(cm,{group:n,itemKey:h,onItemClick:L})})]})};De.ReferenceManual=um,De.TradingVueDiffEditor=Bp,De.TradingVueEditor=jp,De.parseTcc=vo,De.removeScript=Rp,De.scriptsRun=To,Object.defineProperty(De,Symbol.toStringTag,{value:"Module"})});